@import url('https://fonts.googleapis.com/css2?family=Jost:wght@300;400;500;600;700&display=swap');

.blog-page {
    min-height: 100vh;
    background: #f5f6fa;
    padding-top: 80px;
    font-family: 'Jost', sans-serif;
}

/* Hero banner */
.blog-hero {
    background: linear-gradient(135deg, #1A2F79 0%, #2c5aa0 100%);
    padding: 80px 20px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.blog-hero__title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 16px;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
}

.blog-hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.75);
    font-weight: 300;
    margin: 0;
    position: relative;
}

.blog-hero__divider {
    width: 60px;
    height: 3px;
    background: rgba(255, 255, 255, 0.6);
    margin: 20px auto 0;
    border-radius: 2px;
    position: relative;
}

/* Posts grid */
.blog-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px 80px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 32px;
}

/* Single card */
.blog-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(26, 47, 121, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(26, 47, 121, 0.16);
}

.blog-card__thumb {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.blog-card__thumb-placeholder {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, #1A2F79 0%, #2c5aa0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-card__thumb-placeholder i {
    font-size: 48px;
    color: rgba(255, 255, 255, 0.4);
}

.blog-card__body {
    padding: 28px 28px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}

.blog-card__date {
    font-size: 12px;
    color: #2c5aa0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.blog-card__category {
    font-size: 11px;
    background: rgba(26, 47, 121, 0.08);
    color: #1A2F79;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.blog-card__title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #1A2F79;
    margin: 0 0 12px;
    line-height: 1.4;
}

.blog-card__excerpt {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.7;
    margin: 0 0 20px;
    flex: 1;
}

.blog-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1A2F79;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: gap 0.2s ease, color 0.2s ease;
    margin-top: auto;
}

.blog-card__link i {
    font-size: 11px;
    transition: transform 0.2s ease;
}

.blog-card__link:hover {
    color: #2c5aa0;
    gap: 12px;
}

.blog-card__link:hover i {
    transform: translateX(3px);
}

/* No posts */
.blog-empty {
    text-align: center;
    padding: 80px 20px;
    grid-column: 1 / -1;
}

.blog-empty i {
    font-size: 64px;
    color: #c5cfe8;
    margin-bottom: 20px;
    display: block;
}

.blog-empty__title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1A2F79;
    margin: 0 0 10px;
}

.blog-empty__text {
    color: #888;
    font-size: 0.95rem;
    margin: 0;
}

/* Pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Jost', sans-serif;
    text-decoration: none;
    color: #1A2F79;
    background: #fff;
    border: 2px solid #e0e6f5;
    transition: all 0.2s ease;
}

.blog-pagination .page-numbers:hover,
.blog-pagination .page-numbers.current {
    background: #1A2F79;
    color: #fff;
    border-color: #1A2F79;
}

/* Single post */
.single-post__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.single-post__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1A2F79;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: gap 0.2s ease;
}

.single-post__back:hover {
    gap: 12px;
}

.single-post__title {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 700;
    color: #1A2F79;
    margin: 0 0 28px;
    line-height: 1.3;
}

.single-post__thumb {
    width: 100%;
    border-radius: 16px;
    margin-bottom: 36px;
    object-fit: cover;
    max-height: 480px;
    display: block;
}

.single-post__content {
    font-size: 1rem;
    line-height: 1.85;
    color: #333;
}

.single-post__content h2,
.single-post__content h3 {
    color: #1A2F79;
    margin-top: 2em;
}

.single-post__content a {
    color: #2c5aa0;
}

.single-post__content img {
    max-width: 100%;
    border-radius: 10px;
    margin: 20px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-page {
        padding-top: 70px;
    }

    .blog-hero {
        padding: 60px 20px 40px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .blog-content {
        padding: 40px 16px 60px;
    }
}

@media (max-width: 480px) {
    .blog-page {
        padding-top: 60px;
    }

    .blog-card__body {
        padding: 20px 20px 18px;
    }
}
