.blog-page-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: clamp(220px, 32vw, 340px);
    overflow: hidden;
    text-align: center;
}

.blog-page-hero--article {
    min-height: clamp(240px, 34vw, 360px);
}

.blog-page-hero-bg {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    transform: scale(1.03);
}

.blog-page-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(8, 12, 18, 0.55) 0%, rgba(8, 12, 18, 0.72) 100%),
        rgba(0, 0, 0, 0.35);
}

.blog-page-hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: clamp(2.5rem, 6vw, 4rem) 1rem;
    max-width: 920px;
}

.blog-page-hero h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.85rem, 4.5vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.blog-page-breadcrumb {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.4;
}

.blog-page-breadcrumb a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.blog-page-breadcrumb a:hover {
    opacity: 0.8;
}

.blog-page-breadcrumb-sep {
    opacity: 0.75;
    font-size: 0.72rem;
}

.blog-article-hero-date {
    margin: 0.15rem 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.88rem;
}

.blog-list-section {
    background: #ffffff;
    padding: clamp(2rem, 4vw, 3rem) 0 clamp(2.5rem, 5vw, 3.5rem);
}

.blog-list-section .container {
    width: 90%;
    max-width: 90%;
}

.blog-list-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.25rem, 2.5vw, 2rem);
}

.blog-card {
    height: 100%;
}

.blog-card-link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.blog-card-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #ffffff;
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-radius 0.25s ease;
}

.blog-card-meta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    max-height: 0;
    padding: 0 1rem;
    background: var(--brand-primary, #0379c3);
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.25s ease, padding 0.25s ease, opacity 0.25s ease;
}

.blog-card-meta-label,
.blog-card-meta-date {
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.blog-card-meta-date {
    font-weight: 700;
    text-align: right;
}

.blog-card-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 10px;
    transition: border-radius 0.25s ease;
}

.blog-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.blog-card-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(17, 24, 39, 0.42) 0%,
        rgba(17, 24, 39, 0.08) 42%,
        rgba(17, 24, 39, 0.18) 100%
    );
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.blog-card-overlay-meta {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.blog-card-overlay-label,
.blog-card-overlay-date {
    position: absolute;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: opacity 0.2s ease;
}

.blog-card-overlay-label {
    top: 0.9rem;
    left: 0.9rem;
    color: var(--brand-primary, #0379c3);
    line-height: 1.3;
    max-width: 55%;
}

.blog-card-overlay-date {
    top: 0.9rem;
    right: 0.9rem;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.35;
    text-align: right;
    max-width: 42%;
}

.blog-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.1rem 0 0.35rem;
    transition: background 0.25s ease, padding 0.25s ease;
}

.blog-card-title {
    margin: 0;
    color: #111827;
    font-size: clamp(1rem, 1.6vw, 1.18rem);
    font-weight: 800;
    line-height: 1.45;
    letter-spacing: -0.01em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: font-size 0.25s ease, -webkit-line-clamp 0.25s ease, color 0.2s ease;
}

.blog-card-details {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
    transition: max-height 0.25s ease, opacity 0.2s ease, margin 0.25s ease;
}

.blog-card-author {
    margin: 0.55rem 0 0.75rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.4;
}

.blog-card-author-by {
    color: #9ca3af;
}

.blog-card-author-name {
    color: #111827;
}

.blog-card-excerpt {
    margin: 0 0 1rem;
    color: #6b7280;
    font-size: 0.84rem;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-read {
    margin-top: auto;
    color: #111827;
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.18rem;
    text-decoration-thickness: 1px;
}

@media (hover: hover) {
    .blog-card-link:hover .blog-card-shell {
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
        transform: translateY(-4px);
    }

    .blog-card-link:hover .blog-card-meta-bar {
        max-height: 3rem;
        padding: 0.85rem 1rem;
        opacity: 1;
    }

    .blog-card-link:hover .blog-card-media {
        border-radius: 0;
    }

    .blog-card-link:hover .blog-card-media::after {
        opacity: 0;
    }

    .blog-card-link:hover .blog-card-overlay-meta {
        opacity: 0;
    }

    .blog-card-link:hover .blog-card-media img {
        transform: scale(1.04);
    }

    .blog-card-link:hover .blog-card-body {
        background: #f0f4f8;
        padding: 1.15rem 1rem 1.25rem;
    }

    .blog-card-link:hover .blog-card-title {
        font-size: clamp(1.05rem, 1.7vw, 1.25rem);
        -webkit-line-clamp: 4;
    }

    .blog-card-link:hover .blog-card-details {
        max-height: 0;
        opacity: 0;
        margin-top: 0;
    }
}

.blog-pagination {
    margin-top: 2rem;
}

.blog-empty-state {
    text-align: center;
    padding: clamp(2rem, 5vw, 3.5rem) 1rem;
    background: #ffffff;
    border: 1px solid #e8edf2;
    border-radius: 6px;
}

.blog-empty-state h2 {
    margin: 0 0 0.65rem;
    font-size: 1.35rem;
    font-weight: 800;
    color: #111827;
}

.blog-empty-state p {
    margin: 0 0 1.25rem;
    color: #6b7280;
}

.blog-article-section {
    background: #ffffff;
    padding: clamp(2rem, 4vw, 3rem) 0 clamp(2.5rem, 5vw, 4rem);
}

.blog-article-container {
    width: min(820px, 92%);
    max-width: min(820px, 92%);
}

.blog-article-excerpt {
    margin: 0 0 1.25rem;
    color: #4b5563;
    font-size: 1.05rem;
    line-height: 1.75;
    font-weight: 500;
}

.blog-article-content {
    color: #374151;
    font-size: 0.98rem;
    line-height: 1.85;
}

.blog-article-content h2,
.blog-article-content h3,
.blog-article-content h4 {
    margin: 1.75rem 0 0.85rem;
    color: #111827;
    font-weight: 800;
    line-height: 1.35;
}

.blog-article-content p {
    margin: 0 0 1rem;
}

.blog-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.blog-article-content ul,
.blog-article-content ol {
    margin: 0 0 1rem;
    padding-left: 1.25rem;
}

.blog-article-actions {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e8edf2;
}

.blog-premium-btn,
.blog-empty-state .btn-brand,
.blog-article-actions .btn-outline-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.65rem 1.25rem;
    border-radius: 4px;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.blog-empty-state .btn-brand {
    background: var(--brand-primary, #0379c3);
    color: #ffffff;
    border: 1px solid var(--brand-primary, #0379c3);
}

.blog-empty-state .btn-brand:hover {
    background: var(--brand-primary-dark, #026aaa);
    border-color: var(--brand-primary-dark, #026aaa);
    color: #ffffff;
}

.blog-article-actions .btn-outline-brand {
    background: transparent;
    color: var(--brand-primary, #0379c3);
    border: 1px solid var(--brand-primary, #0379c3);
}

.blog-article-actions .btn-outline-brand:hover {
    background: var(--brand-primary, #0379c3);
    color: #ffffff;
}

@media (max-width: 1199.98px) {
    .blog-list-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .blog-list-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.75rem;
    }

    .blog-card-media {
        border-radius: 8px;
    }

    .blog-card-overlay-label,
    .blog-card-overlay-date,
    .blog-card-meta-label,
    .blog-card-meta-date {
        font-size: 0.62rem;
    }
}

@media (max-width: 575.98px) {
    .blog-page-hero {
        min-height: 200px;
    }

    .blog-list-section .container,
    .blog-article-container {
        width: 94%;
        max-width: 94%;
    }
}
