:root {
    --gold-accent: #D4AF37;
}

/* ==================================
   1. Background Layer
==================================== */
.hero-section {
    position: relative;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 24px;
    overflow: hidden;
}

/* Dark blue overlay mask for the video */
.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(10, 37, 64, 0.75), rgba(10, 37, 64, 0.90));
    z-index: 1;
}

/* Background Video Layer */
.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* ==================================
   2. Typography Hierarchy
==================================== */
.hero-content {
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    z-index: 2; /* Keep above the background video and overlay */
}

.hero-logo {
    width: 120px;
    height: auto;
}

.kicker {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--gold-accent);
    letter-spacing: 1.5px;
}

.hero-title {
    display: flex;
    flex-direction: column;
    gap: 8px;
    line-height: 1.2;
}

.title-zh {
    color: #ffffff;
    font-size: 2.25rem;
    font-weight: 800;
}

.title-en {
    color: var(--gold-accent);
    font-size: 3.5rem;
    font-weight: 900;
}

.hero-subtitle {
    color: #ffffff;
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 8px;
}

/* ==================================
   3. Button Group / CTA Cluster
==================================== */
.cta-group {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease-in-out;
}

.btn-primary {
    background-color: var(--brand-red, #C8102E);
    color: #ffffff;
    padding: 12px 24px;
}

.btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    padding: 10px 24px; /* Account for 2px border to visually match primary height */
}

.btn-tertiary {
    color: #ffffff;
    border: 2px solid #ffffff;
    padding: 10px 16px; /* Account for 2px border to visually match primary height */
}

/* Hover States */
.btn-primary:hover { background-color: #a80c25; }
.btn-secondary:hover { background-color: rgba(255, 255, 255, 0.1); }
.btn-tertiary:hover { text-decoration: underline; color: var(--gold-accent); border-color: var(--gold-accent); }

/* Responsiveness */
@media (max-width: 768px) {
    .hero-logo { width: 90px; }
    .title-zh { font-size: 1.75rem; }
    .title-en { font-size: 2.5rem; }
    .cta-group { flex-direction: column; width: 100%; }
    .btn { width: 100%; }
    .btn-tertiary { width: auto; }
}

/* ==================================
   Split-Screen Feature Section
==================================== */
.feature-section {
    padding: 80px 24px;
    background-color: var(--bg-white, #ffffff);
    display: flex;
    justify-content: center;
}

.feature-container {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

/* 1. Left Column: Media / Card Container */
.feature-media {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    aspect-ratio: 4 / 3;
}

.feature-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 2. Right Column: Text Content & Stats Block */
.feature-content {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.feature-title {
    color: var(--brand-navy, #0A2540);
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 8px;
    line-height: 1.2;
}

.feature-subtitle {
    color: var(--brand-red, #C8102E);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.feature-description {
    color: var(--text-grey, #4A5568);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

/* Data Metrics / Stats Component */
.feature-stats {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 32px;
    margin-top: 24px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stat-value {
    color: var(--brand-navy, #0A2540);
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.1;
}

.stat-label {
    color: #718096; /* Lighter muted grey */
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 4px;
    letter-spacing: 0.5px;
}

/* Responsive Overrides */
@media (max-width: 900px) {
    .feature-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .feature-stats {
        gap: 24px;
        flex-wrap: wrap;
    }
}

/* ==================================
   Word Cloud Section
==================================== */
.word-cloud-section {
    padding: 80px 24px;
    background-color: var(--bg-white, #ffffff);
    display: flex;
    justify-content: center;
}

.word-cloud-container {
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.word-cloud-image {
    width: 100%;
    max-width: 900px;
    box-shadow: 0 10px 25px rgba(10, 37, 64, 0.1);
    border-radius: 12px;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .word-cloud-section { padding: 60px 24px; }
}

/* ==================================
   Banded Links Section
==================================== */
.banded-links-section {
    padding: 0px 30px 30px 30px;
    background-color: var(--bg-white, #ffffff);
    display: flex;
    justify-content: center;
}

.banded-links-container {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    justify-items: center;
}

.banded-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #BA1434;
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    width: 100%;
    max-width: 220px;
    aspect-ratio: 1 / 1;
    border-radius: 20px;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(186, 20, 52, 0.2);
}

.banded-btn:hover {
    background-color: #680016;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(104, 0, 22, 0.3);
}

@media (max-width: 768px) {
    .banded-links-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .banded-btn {
        font-size: 1.25rem;
        border-radius: 16px;
    }
}

/* ==================================
   Latest News Section
==================================== */
.news-section {
    padding: 80px 24px;
    background-color: var(--light-grey, #EDF2F7);
    display: flex;
    justify-content: center;
}

.news-container {
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.news-section-title {
    color: var(--brand-navy, #0A2540);
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.2;
}

/* Grid Layout Architecture */
.news-grid-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
}

/* 1. Left Column: Featured Card */
.news-featured-col {
    display: flex;
    flex-direction: column;
}

.featured-card {
    display: flex;
    flex-direction: row;
    background-color: var(--bg-white, #ffffff);
    border: 1px solid var(--border-grey, #E2E8F0);
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
}

.featured-media {
    flex: 0 0 50%;
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
    overflow: hidden;
}

.featured-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.featured-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 32px;
    flex: 1;
}

.featured-text-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.featured-kicker {
    color: var(--brand-red, #C8102E);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.featured-title {
    color: var(--brand-navy, #0A2540);
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.3;
}

.featured-snippet {
    color: var(--text-grey, #4A5568);
    font-size: 1rem;
    line-height: 1.6;
    
    /* Text truncation controls */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-solid-navy {
    background-color: var(--brand-navy, #0A2540);
    color: var(--bg-white, #ffffff);
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s ease;
    align-self: flex-start;
}

.btn-solid-navy:hover {
    background-color: #1a3c61;
}

/* 2. Right Column: Secondary Feed Stack */
.news-feed-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feed-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1; /* Pushes the 'View All News' button to the baseline */
}

.feed-card {
    background-color: var(--bg-white, #ffffff);
    border: 1px solid var(--border-grey, #E2E8F0);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.feed-date {
    color: #718096;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.feed-title-link {
    color: var(--brand-navy, #0A2540);
    font-size: 1.125rem;
    font-weight: 700;
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.feed-title-link:hover {
    color: var(--brand-red, #C8102E);
}

.btn-outline-navy {
    background-color: transparent;
    border: 2px solid var(--brand-navy, #0A2540);
    color: var(--brand-navy, #0A2540);
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    margin-top: auto;
    transition: all 0.2s ease;
}

.btn-outline-navy:hover {
    background-color: var(--brand-navy, #0A2540);
    color: var(--bg-white, #ffffff);
}

/* Responsive Grid */
@media (max-width: 900px) {
    .news-grid-layout {
        grid-template-columns: 1fr;
    }

    .featured-card {
        flex-direction: column;
    }

    .featured-media {
        flex: auto;
        aspect-ratio: 16 / 9;
        border-bottom-left-radius: 0;
        border-top-right-radius: 12px;
    }
    
    .btn-solid-navy {
        align-self: stretch;
    }
}

/* ==================================
   Article Listing Section
==================================== */
.articles-section {
    padding: 80px 24px;
    background-color: var(--bg-white, #ffffff);
    display: flex;
    justify-content: center;
}

.articles-container {
    max-width: 1200px;
    width: 100%;
}

/* Section Header Block */
.articles-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 24px;
}

.articles-title-stack h2 {
    color: var(--brand-navy, #0A2540);
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 8px;
}

.articles-title-stack p {
    color: var(--text-grey, #4A5568);
    font-size: 1.125rem;
}

.articles-view-all {
    margin-top: 0; /* Overrides .btn-outline-navy baseline push */
}

/* Card Grid Container */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Individual Card Component */
.article-card {
    display: flex;
    flex-direction: column;
    background-color: var(--bg-white, #ffffff);
    border-radius: 12px;
    border: 1px solid var(--border-grey, #E2E8F0);
    overflow: hidden; /* Applies implicit border-radius to image */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.article-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.article-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; /* Matches the articles.html card ratio */
    flex-shrink: 0;
    overflow: hidden;
}

.article-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.article-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: #07C160; /* Brand green for WeChat */
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
    text-transform: uppercase;
    z-index: 1;
}

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

.article-title {
    color: var(--brand-navy, #0A2540);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
}

.article-excerpt {
    color: var(--text-grey, #4A5568);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 16px;
    /* Line-clamp strategy */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-footer {
    border-top: 1px solid var(--border-grey, #E2E8F0);
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.article-meta {
    color: #718096;
    font-size: 0.875rem;
    font-weight: 500;
}

.article-icon {
    color: var(--brand-navy, #0A2540);
    font-size: 1.25rem;
    transition: transform 0.2s ease;
}

.article-card:hover .article-icon {
    transform: translate(2px, -2px); /* Moves arrow slightly up-right on hover */
    color: var(--brand-red, #C8102E);
}

/* Responsive Reflows */
@media (max-width: 1024px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .articles-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
}