/* --- Professional Homepage Styles --- */
body {
    overflow-x: hidden;
    background-color: #ffffff; 
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(20px); /* Reduced movement distance for less work */
    /* Changed duration from 0.8s to 0.4s */
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
    will-change: opacity, transform; /* Hints browser to optimize rendering */
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Top Story Section & News Hub matching Hero Layout --- */
.top-story-section {
    max-width: 1100px;
    margin: 1.5rem auto 1.75rem auto;
    padding: 0 1.25rem;
}

.hero-headline {
    font-size: 1.35rem;
    line-height: 1.35;
}

/* --- Desktop Top Story Optimizations (dont touch mobile version) --- */
.hero-kicker {
    display: none; /* Hidden on mobile */
}

@media (min-width: 768px) {
    .top-story-section .hero-news-card {
        flex-direction: row !important;
        align-items: stretch !important;
        min-height: 440px !important;
        background-color: #ffffff;
        border-radius: 16px !important;
        box-shadow: 0 10px 25px rgba(0,0,0,0.05) !important;
        border: 1px solid #f3f4f6;
    }
    
    html.dark-mode .top-story-section .hero-news-card {
        background-color: var(--dark-bg-secondary) !important;
        border-color: var(--dark-border-color);
        box-shadow: 0 10px 30px rgba(0,0,0,0.2) !important;
    }

    .top-story-section .hero-news-card-image-wrapper {
        width: 55% !important; /* Visual weight of image */
        height: auto !important;
        flex-shrink: 0 !important;
    }

    .top-story-section .hero-news-card-text {
        width: 45% !important;
        padding: 3rem !important; /* Generous padding for desktop depth */
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        box-sizing: border-box;
    }

    .hero-kicker {
        display: block !important;
        font-family: 'Inter', sans-serif;
        font-size: 0.75rem;
        font-weight: 800;
        color: #dc2626; /* Accent red color */
        text-transform: uppercase;
        letter-spacing: 0.12em;
        margin-bottom: 0.75rem;
    }
    html.dark-mode .hero-kicker {
        color: #fca5a5;
    }

    .hero-headline {
        font-size: 2rem !important; /* Beautiful large headline size */
        line-height: 1.25 !important;
        font-weight: 900 !important;
        color: #111827 !important;
        margin-bottom: 1rem !important;
    }
    html.dark-mode .hero-headline {
        color: var(--dark-text-primary) !important;
    }

    .hero-subheadline-container {
        max-height: 80px !important; /* Allow up to 3 lines of subheadline */
        margin-bottom: 1.5rem !important;
    }
    .hero-subheadline-container p {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
        color: #4b5563 !important;
    }
    html.dark-mode .hero-subheadline-container p {
        color: var(--dark-text-secondary) !important;
    }
    
    .top-story-section .hero-news-card .read-more-text {
        font-size: 0.85rem !important;
        font-weight: 800 !important;
        color: #0073e6 !important;
        text-transform: uppercase;
        display: inline-flex !important;
        align-items: center !important;
        gap: 0.35rem !important;
        transition: gap 0.2s ease !important;
        margin-top: 0.5rem !important;
    }
    .top-story-section .hero-news-card:hover .read-more-text {
        color: #005bb5 !important;
    }
}



/* --- Section Divider --- */
.section-divider {
    border: 0;
    height: 1px;
    background: #e5e7eb;
    margin: 0 auto 1.5rem auto;
    max-width: 1100px;
}

/* --- General Content Sections --- */
.content-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}

.content-section {
    margin-bottom: 6rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-family: 'Merriweather', serif;
    font-weight: 900;
    color: #1c1e21;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.15rem;
    color: #606770;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- "In the News" Section --- */
.news-grid-full {
    display: grid;
    grid-template-columns: 1fr; /* Default to 1 column on mobile */
    gap: 2rem;
}

.news-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.news-card-image-wrapper {
    overflow: hidden;
    height: 220px;
    position: relative;
}

/* Black faded shadow overlay on image wrapper bottom */
.news-card-image-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

/* Date text absolute positioned overlay */
.news-card-date {
    position: absolute;
    bottom: 12px;
    left: 16px;
    z-index: 2;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

.news-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-card:hover .news-card-image {
    transform: scale(1.08);
}

.news-card-text {
    padding: 1.5rem;
}

.news-card-headline {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1c1e21;
    margin: 0 0 0.5rem 0;
}

.news-card-subheadline {
    font-size: 1rem;
    color: #606770;
    line-height: 1.6;
    margin: 0;
}

/* --- "Why Join Us?" Section --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    text-align: center;
}

.feature-item {
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item .feature-icon {
    background-color: #e7f3ff;
    color: #0073e6;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.feature-item:hover .feature-icon {
    background-color: #0073e6;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 115, 230, 0.4);
}

.feature-item .feature-icon svg {
    width: 28px;
    height: 28px;
}

.feature-item h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #1c1e21;
}

.feature-item p {
    color: #606770;
    line-height: 1.7;
}

/* --- Final CTA Section --- */
.cta-section {
    background: #111827; /* Dark background for contrast */
    color: #fff;
    text-align: center;
    padding: 6rem 1.5rem;
}

.cta-content h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
    opacity: 0.8;
}

.cta-button {
    background-color: #0073e6;
    color: #fff;
    padding: 16px 36px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: transform 0.2s ease, background-color 0.2s ease;
    display: inline-block;
}

.cta-button:hover {
    transform: translateY(-3px);
    background-color: #005bb5;
}

/* --- Responsive Design --- */
@media (min-width: 768px) {
    /* NEW: Set grid to 2 columns on tablets and larger */
    .news-grid-full {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 600px) {
    .cta-content h1 { font-size: 2.2rem; }
    .cta-content p { font-size: 1.1rem; }
    .content-wrapper { padding: 0 1rem; }
    .section-title { font-size: 2rem; }
}

/* --- NEW: Support CTA Banner at top of page --- */
.support-cta-banner {
    background-color: #111827;
    color: #f3f4f6;
    padding: 1rem 1.5rem;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.support-cta-banner p {
    margin: 0;
    font-weight: 500;
}

.support-cta-button {
    background-color: #FBBF24; /* A standout color like yellow/gold */
    color: #1c1e21;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: transform 0.2s ease, background-color 0.2s ease;
    white-space: nowrap;
}

.support-cta-button:hover {
    background-color: #F59E0B;
    transform: translateY(-2px);
}