:root {
    --article-navy: #102432;
    --article-gold: #a98a50;
    --article-cream: #f7f4ed;
}

.articles-home-section,
.articles-listing-section,
.related-articles-section {
    padding: 88px 0;
    background: #f7f8fa;
}

.articles-listing-section {
    padding-top: 36px;
}

.articles-home-section .articles-heading-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    text-align: right;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 36px;
}

.article-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(16, 36, 50, 0.08);
    border-radius: 24px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 18px 55px rgba(16, 36, 50, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.article-card:hover {
    color: inherit;
    transform: translateY(-7px);
    box-shadow: 0 26px 70px rgba(16, 36, 50, 0.14);
}

.article-card figure {
    height: 250px;
    margin: 0;
    overflow: hidden;
    background: #e8ecef;
}

.article-card figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.article-card:hover figure img {
    transform: scale(1.045);
}

.article-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 24px;
}

.article-card-body time {
    color: var(--article-gold);
    font-size: 13px;
    font-weight: 700;
}

.article-card-body h2,
.article-card-body h3 {
    margin: 12px 0 10px;
    color: var(--article-navy);
    font-size: 21px;
    line-height: 1.55;
}

.article-card-body p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #687680;
    font-size: 14px;
    line-height: 1.9;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.article-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 20px;
    color: var(--article-gold);
    font-size: 14px;
    font-weight: 800;
}

.articles-empty {
    grid-column: 1 / -1;
    padding: 50px 24px;
    border: 1px dashed rgba(16, 36, 50, 0.18);
    border-radius: 24px;
    background: #fff;
    text-align: center;
}

.articles-page-hero {
    padding-bottom: 44px;
    background: linear-gradient(180deg, #f3efe6 0%, #f7f8fa 100%);
}

.article-detail-hero {
    padding: 128px 0 54px;
    background: linear-gradient(180deg, #f5f2eb 0%, #fff 100%);
}

.article-detail-hero-card {
    position: relative;
    min-height: clamp(460px, 55vw, 650px);
    overflow: hidden;
    border-radius: clamp(24px, 3vw, 38px);
    background: var(--article-navy);
    box-shadow: 0 30px 90px rgba(16, 36, 50, 0.22);
}

.article-detail-hero-card > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-detail-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(7, 18, 27, 0.18), rgba(7, 18, 27, 0.62) 55%, rgba(7, 18, 27, 0.94)),
        linear-gradient(180deg, rgba(7, 18, 27, 0.08), rgba(7, 18, 27, 0.45));
}

.article-detail-heading {
    position: relative;
    z-index: 2;
    display: flex;
    width: min(100%, 760px);
    min-height: clamp(460px, 55vw, 650px);
    margin-inline-start: auto;
    padding: clamp(28px, 5vw, 70px);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: right;
}

.article-back-link {
    margin-bottom: 24px;
    padding: 9px 15px;
    border: 1px solid rgba(232, 204, 145, 0.34);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.11);
    color: #f0dcae;
    text-decoration: none;
    backdrop-filter: blur(10px);
}

.article-detail-heading h1 {
    max-width: 720px;
    margin: 0;
    color: #fff;
    font-size: clamp(34px, 4.6vw, 64px);
    line-height: 1.25;
}

.article-detail-heading > p {
    max-width: 630px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(16px, 1.5vw, 20px);
    line-height: 1.95;
}

.article-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.article-detail-meta > * {
    padding: 8px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #f3dfb2;
    font-size: 13px;
}

.article-blocks-section {
    padding: 36px 0 92px;
    background: #fff;
}

.article-blocks-container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.article-content-block {
    margin-bottom: 28px;
    overflow: hidden;
    border: 1px solid rgba(16, 36, 50, 0.08);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 18px 60px rgba(16, 36, 50, 0.07);
}

.article-content-block.has-image-and-text {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
}

.article-content-block.has-image-and-text:nth-child(even) .article-block-image {
    order: 2;
}

.article-block-image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 360px;
    margin: 0;
    overflow: hidden;
    background: var(--article-navy);
}

.article-block-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: contain;
    object-position: center;
}

.article-content-block.has-image-only .article-block-image {
    min-height: clamp(360px, 55vw, 680px);
    max-height: 720px;
}

.article-content-block.has-image-only .article-block-image img {
    min-height: clamp(360px, 55vw, 680px);
    max-height: 720px;
}

.article-block-copy {
    display: flex;
    min-height: 100%;
    padding: clamp(28px, 5vw, 62px);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.article-block-copy h2,
.article-block-copy h3,
.article-block-copy h4 {
    width: 100%;
    margin: 0 0 18px;
    color: var(--article-navy);
    line-height: 1.55;
}

.article-block-copy h2 {
    font-size: clamp(26px, 3vw, 38px);
}

.article-block-copy h3 {
    font-size: clamp(22px, 2.5vw, 31px);
}

.article-block-copy h4 {
    font-size: clamp(19px, 2vw, 25px);
}

.article-block-text {
    width: 100%;
    color: #33444f;
    font-size: clamp(16px, 1.4vw, 19px);
    line-height: 2.15;
    white-space: normal;
}

.article-content-block.has-text-only .article-block-copy {
    min-height: auto;
    background: linear-gradient(135deg, #fff, #faf8f3);
}

.article-resources-section {
    padding: 0 0 92px;
    background: #fff;
}

.article-resources-container {
    display: grid;
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.article-links-panel {
    padding: clamp(26px, 4vw, 42px);
    border: 1px solid rgba(16, 36, 50, 0.09);
    border-radius: 26px;
    background: var(--article-cream);
}

.article-links-panel > span {
    color: var(--article-gold);
    font-size: 13px;
    font-weight: 800;
}

.article-links-panel h2 {
    margin: 8px 0 22px;
    color: var(--article-navy);
    font-size: clamp(23px, 2.4vw, 31px);
}

.article-resource-links {
    display: grid;
    gap: 10px;
}

.article-resource-links a {
    display: flex;
    padding: 15px 17px;
    border-radius: 14px;
    background: #fff;
    color: var(--article-navy);
    flex-direction: column;
    gap: 5px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-resource-links a:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(16, 36, 50, 0.1);
}

.article-resource-links small {
    color: #76838c;
}

.related-articles-section {
    background: var(--article-cream);
}

@media (max-width: 980px) {
    .articles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .article-content-block.has-image-and-text {
        grid-template-columns: 1fr;
    }

    .article-content-block.has-image-and-text:nth-child(even) .article-block-image {
        order: initial;
    }

    .article-resources-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .articles-home-section,
    .articles-listing-section,
    .related-articles-section {
        padding: 58px 0;
    }

    .articles-home-section .articles-heading-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-top: 25px;
    }

    .article-card figure {
        height: 220px;
    }

    .article-detail-hero {
        padding-top: 108px;
    }

    .article-detail-hero-card,
    .article-detail-heading {
        min-height: 500px;
    }

    .article-detail-overlay {
        background: linear-gradient(180deg, rgba(7, 18, 27, 0.22), rgba(7, 18, 27, 0.92));
    }

    .article-detail-heading {
        justify-content: flex-end;
        padding: 24px 20px 34px;
    }

    .article-detail-heading h1 {
        font-size: clamp(30px, 9vw, 42px);
    }

    .article-content-block,
    .article-block-image,
    .article-block-image img {
        border-radius: 20px;
        min-height: 260px;
    }

    .article-block-copy {
        padding: 28px 22px;
    }

    .article-block-text {
        font-size: 16px;
    }
}
