/*
|--------------------------------------------------------------------------
| AFDES Home Page CSS
|--------------------------------------------------------------------------
| This file is organized by homepage section so it is easier to edit.
*/

/* =======================================================================
   BREAKING NEWS TICKER
======================================================================= */
.breaking-news {
    align-items: center;
    background: var(--primary);
    color: var(--white);
    display: flex;
    gap: 14px;
    overflow: hidden;
    padding: 10px 16px;
}

.breaking-news strong {
    background: var(--navy);
    padding: 4px 8px;
    text-transform: uppercase;
    flex: 0 0 auto;
}

.ticker {
    overflow: hidden;
    width: 100%;
    white-space: nowrap;
}

.ticker-track {
    display: inline-flex;
    align-items: center;
    gap: 48px;
    min-width: max-content;
    white-space: nowrap;

    animation: ticker 25s linear infinite;

    /* Begin completely outside the right edge */
    transform: translate3d(100vw, 0, 0);

    will-change: transform;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.ticker-track:hover {
    animation-play-state: paused;
}

.ticker-track span {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    font-weight: 500;
    transform: translateZ(0);
}

@keyframes ticker {
    from {
        transform: translate3d(100vw, 0, 0);
    }

    to {
        transform: translate3d(-100%, 0, 0);
    }
}

/* =======================================================================
   MAIN HOMEPAGE WRAPPER
======================================================================= */
.homepage-layout {
    margin-top: 28px;
}

/* =======================================================================
   HERO / MAIN LEAD SECTION
======================================================================= */
.lead-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 28px;
    margin-bottom: 42px;
}

.main-lead {
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.main-lead img {
    display: block;
    height: clamp(260px, 30vw, 320px);
    object-fit: cover;
    width: 100%;
}

.lead-content {
    border-top: 4px solid var(--primary);
    padding: 30px;
}

.lead-content .label {
    color: var(--primary);
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.lead-content h1 {
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.05;
    letter-spacing: -0.8px;
    margin: 8px 0 16px;
}

.lead-content p {
    color: #334155;
    font-size: 1.08rem;
    line-height: 1.55;
    margin-bottom: 18px;
    max-width: 760px;
}

.lead-content .meta {
    color: var(--muted);
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.lead-content .read-more {
    background: var(--navy);
    color: var(--white);
    display: inline-block;
    font-weight: 800;
    padding: 10px 16px;
}

.lead-content .read-more:hover {
    background: var(--primary);
    color: var(--white);
}

.side-leads {
    display: grid;
    gap: 18px;
}

.side-leads article {
    background: var(--white);
    border-left: 5px solid var(--primary);
    box-shadow: var(--shadow-soft);
    padding: 22px;
}

.side-leads h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.38rem;
    line-height: 1.15;
    margin: 8px 0;
}

.side-leads p {
    color: var(--muted);
}

/* =======================================================================
   TOP STORIES SECTION
   Uses 3:2 editorial image ratio for AFDES article artwork.
======================================================================= */

.top-stories-section {
    margin: 0 0 42px;
}

.top-stories-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    align-items: stretch;
}

/* Main story */

.top-story-main {
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    height: 100%;
    display: grid;
    grid-template-rows: auto 1fr;
    overflow: hidden;
}

.top-story-main > a {
    display: block;
    overflow: hidden;
    background: #e2e8f0;
}

.top-story-main img {
    width: 100%;
    aspect-ratio: 3 / 2;
    height: auto;
    object-fit: cover;
    object-position: center;
    display: block;
}

.top-story-main .story-content {
    position: static;
    background: var(--white);
    padding: 22px;
}

.top-story-main h2 {
    margin: 0 0 12px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.7rem, 2.6vw, 2.35rem);
    line-height: 1.08;
}

.top-story-main p {
    color: var(--muted);
    line-height: 1.55;
}

.top-story-meta {
    margin-top: 14px;
    color: #94a3b8;
    font-size: .76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* Right column stories */

.top-story-side {
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    gap: 16px;
    height: 100%;
}

.mini-top-story {
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    display: grid;
    grid-template-columns: 42% 1fr;
    min-height: 0;
}

.mini-top-story > a {
    display: block;
    overflow: hidden;
    background: #e2e8f0;
}

.mini-top-story img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.mini-top-story-content {
    padding: 14px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.mini-top-story h3 {
    margin: 7px 0 10px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: .98rem;
    line-height: 1.24;
}

.mini-story-meta {
    margin-top: auto;
    color: #94a3b8;
    font-size: .70rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
}

@media (max-width: 900px) {
    .top-stories-grid {
        grid-template-columns: 1fr;
    }

    .top-story-side {
        grid-template-rows: auto;
    }

    .mini-top-story {
        grid-template-columns: 120px 1fr;
    }
}

/* =======================================================================
   MAIN CONTENT + SIDEBAR GRID
======================================================================= */
.content-grid,
.page-grid {
    display: grid;
    gap: 34px;
    grid-template-columns: minmax(0, 1fr) 340px;
    padding-bottom: 34px;
}

/* =======================================================================
   LATEST NEWS & ANALYSIS CARD WALL
======================================================================= */
.latest-news-block {
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    padding: 18px;
}

.latest-heading {
    background: var(--navy);
    border-bottom: 0;
    color: var(--white);
    margin: -18px -18px 18px;
    padding: 18px;
}

.latest-heading a {
    color: var(--gold);
}

.article-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.article-card {
    background: var(--white);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.2s ease;
}

.article-card:hover {
    box-shadow: var(--shadow-soft);
    transform: translateY(-3px);
}

.article-card-image {
    display: block;
}

.article-card img {
    display: block;
    height: 110px;
    object-fit: cover;
    width: 100%;
}

.card-body {
    padding: 14px;
}

.card-body .label {
    display: inline-block;
    margin-bottom: 4px;
}

.card-body h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.05rem;
    line-height: 1.05;
    margin: 0 0 8px;
}

.card-body h3 a {
    line-height: 1.05;
}

.card-body p {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.45;
    margin: 0 0 12px;
}

.latest-card .meta {
    font-size: 0.76rem;
    margin-bottom: 0;
}

/* =======================================================================
   YOUTUBE VIDEO REPORTS SECTION
======================================================================= */
.video-section {
    margin-top: 38px;
}

.video-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.video-card {
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.video-card iframe {
    aspect-ratio: 16 / 9;
    border: 0;
    display: block;
    width: 100%;
}

.video-card-body {
    padding: 18px;
}

.video-card h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.25rem;
    line-height: 1.2;
    margin-bottom: 8px;
}

.video-card p {
    color: var(--muted);
    font-size: 0.95rem;
}

/* =======================================================================
   NEWS ROW SECTIONS
======================================================================= */
.news-section {
    margin-top: 38px;
}

.story-list {
    display: grid;
    gap: 18px;
}

.story-row {
    background: var(--white);
    border: 1px solid var(--border);
    display: grid;
    gap: 18px;
    grid-template-columns: 190px 1fr;
    padding: 14px;
}

.story-row img {
    height: 125px;
    object-fit: cover;
    width: 100%;
}

.story-row h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.25rem;
    line-height: 1.15;
    margin-bottom: 8px;
}

.story-row p,
.mini-story p {
    color: var(--muted);
    font-size: 0.95rem;
}

/* =======================================================================
   TWO-COLUMN AND THREE-COLUMN CATEGORY SECTIONS
======================================================================= */
.category-columns {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 38px;
}

.category-columns.three {
    grid-template-columns: repeat(3, 1fr);
}

.section-heading.small h2 {
    font-size: 1.35rem;
}

.mini-story {
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
}

.mini-story h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.05rem;
    line-height: 1.25;
}

/* =======================================================================
   RESEARCH & REPORTS SPOTLIGHT SECTION
======================================================================= */
.spotlight-section {
    background: var(--navy);
    color: var(--white);
    margin-top: 38px;
    padding: 34px;
}

.spotlight-section .label {
    color: var(--gold);
}

.spotlight-section h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    line-height: 1.1;
    margin-bottom: 12px;
}

.spotlight-section p {
    color: #d8e2ea;
    margin-bottom: 18px;
    max-width: 720px;
}

/* =======================================================================
   SIDEBAR
======================================================================= */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.side-widget {
    background: var(--white);
    border-top: 5px solid var(--primary);
    box-shadow: var(--shadow-soft);
    padding: 22px;
}

.side-widget h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.35rem;
    margin-bottom: 14px;
}

.editor-pick h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.7rem;
    line-height: 1.1;
    margin-bottom: 12px;
}

.search-form,
.newsletter-form {
    display: grid;
    gap: 10px;
}

.most-read {
    counter-reset: item;
    list-style: none;
}

.most-read li {
    border-bottom: 1px solid var(--border);
    display: grid;
    gap: 12px;
    grid-template-columns: 34px 1fr;
    padding: 12px 0;
}

.most-read li::before {
    color: var(--primary);
    content: counter(item);
    counter-increment: item;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.7rem;
    font-weight: 900;
    line-height: 1;
}

.most-read a {
    font-weight: 800;
}

.section-links {
    display: grid;
    gap: 8px;
}

.section-links a {
    border-bottom: 1px solid var(--border);
    color: var(--text);
    font-weight: 800;
    padding: 8px 0;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tags a {
    background: var(--gray);
    color: var(--navy);
    font-size: 0.84rem;
    font-weight: 800;
    padding: 7px 10px;
}

.tags a:hover {
    background: var(--primary);
    color: var(--white);
}

/* ==========================================================
   TOP STORIES EXCERPTS
========================================================== */

.mini-top-story-content {
    min-width: 0;
}

.mini-story-excerpt {
    margin: 7px 0 9px;
    color: #64748b;
    font-size: .88rem;
    line-height: 1.45;

    overflow: hidden;
    max-height: 4.35em; /* Approximately 3 lines */

    display: -webkit-box;
    display: box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.mini-story-meta,
.top-story-meta {
    color: #94a3b8;
    font-size: .76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* =======================================================================
   MARKET WATCH STRIPE
======================================================================= */
.market-watch {
    background: #ffffff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 34px 0;
    overflow: hidden;
    padding: 12px 14px;
    position: relative;
}

.market-watch-header {
    flex: 0 0 auto;
    position: relative;
    z-index: 3;
}

.market-watch-header span {
    background: var(--navy);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    padding: 7px 10px;
    text-transform: uppercase;
}

.market-ticker {
    flex: 1;
    overflow: hidden;
    position: relative;
    white-space: nowrap;
}

/* Left and right feather fade */
.market-ticker::before,
.market-ticker::after {
    content: "";
    height: 100%;
    pointer-events: none;
    position: absolute;
    top: 0;
    width: 70px;
    z-index: 2;
}

.market-ticker::before {
    left: 0;
    background: linear-gradient(to right, #ffffff, rgba(255, 255, 255, 0));
}

.market-ticker::after {
    right: 0;
    background: linear-gradient(to left, #ffffff, rgba(255, 255, 255, 0));
}

.market-track {
    animation: marketTicker 38s linear infinite;
    display: inline-flex;
    align-items: center;
    gap: 34px;
    min-width: max-content;
    white-space: nowrap;

    transform: translate3d(0, 0, 0);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.market-track:hover {
    animation-play-state: paused;
}

.market-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font-size: 0.86rem;
    line-height: 1;
}

.market-item strong {
    color: var(--navy);
    font-weight: 900;
}

.market-item em {
    color: #334155;
    font-style: normal;
    font-weight: 700;
}

.market-item b {
    font-size: 0.8rem;
    font-weight: 900;
}

.market-item .up {
    color: #12805c;
}

.market-item .down {
    color: #b42318;
}

@keyframes marketTicker {
    from {
        transform: translate3d(0, 0, 0);
    }

    to {
        transform: translate3d(-50%, 0, 0);
    }
}

@media (max-width: 768px) {
    .market-watch {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
        margin: 26px 0;
    }

    .market-ticker::before,
    .market-ticker::after {
        width: 42px;
    }

    .market-track {
        animation-duration: 45s;
        gap: 28px;
    }

    .market-item {
        font-size: 0.8rem;
    }
}

/* =======================================================================
   ABOUT / MISSION STRIPE
======================================================================= */

.mission-panel {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 18px;

    margin-top: 42px;
    margin-bottom: 42px;

    padding: 20px 24px;

    background: #f8fafc;

    border-top: 1px solid var(--border);
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    border-left: 4px solid var(--primary);

    color: var(--text);
}

.mission-panel .label {
    display: block;
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1.4px;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.mission-panel h2 {
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.3rem;
    line-height: 1.2;
    margin: 0 0 8px;
}

.mission-panel p {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.55;
    margin: 0;
    max-width: 900px;
}

.mission-panel .light {
    background: var(--navy);
    color: var(--white);
    font-weight: 700;
    padding: 12px 22px;
    white-space: nowrap;
}

.mission-panel .light:hover {
    background: var(--primary);
    color: var(--white);
}

@media (max-width: 980px) {
    .mission-panel {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .mission-panel .light {
        width: fit-content;
    }
}

/* =========================================================
   SOCIAL / COMMUNITY WIDGET
========================================================= */

.social-widget {
    background: var(--navy);
    color: var(--white);
    border-top: 5px solid var(--gold);
    padding: 22px;
}

.social-widget h3 {
    color: var(--white);
    margin-bottom: 8px;
}

.social-widget h3::after {
    content: "";
    display: block;
    width: 42px;
    height: 2px;
    background: var(--gold);
    margin-top: 10px;
}

.social-widget p {
    color: #d8e2ea;
    font-size: 0.95rem;
    line-height: 1.45;
    margin-bottom: 18px;
}

.social-icon-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.social-icon-row a {
    color: var(--white);
    text-align: center;
    font-size: 0.72rem;
    text-decoration: none;
}

.social-icon-row span {
    align-items: center;
    background: var(--white);
    border-radius: 50%;
    color: var(--navy);
    display: flex;
    font-size: 1.05rem;
    font-weight: 900;
    height: 42px;
    justify-content: center;
    margin: 0 auto 7px;
    transition: all 0.2s ease;
    width: 42px;
}

.social-icon-row small {
    display: block;
    font-size: 0.68rem;
    line-height: 1.1;
}

.social-icon-row a:hover span {
    background: var(--gold);
    color: var(--navy);
    transform: translateY(-2px);
}

@media (max-width: 980px) {
    .social-icon-row {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

/* =======================================================================
   HOVER STATES
======================================================================= */
.lead-content h1 a:hover,
.side-leads h2 a:hover,
.card-body h3 a:hover,
.story-row h3 a:hover,
.mini-story h3 a:hover,
.top-story-main h2 a:hover,
.mini-top-story h3 a:hover,
.editor-pick h2 a:hover,
.most-read a:hover,
.section-links a:hover,
.video-card h3:hover {
    color: var(--primary);
}

/* =======================================================================
   FADE-IN ANIMATION SUPPORT
======================================================================= */
.fade-in-card {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.fade-in-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =======================================================================
   RESPONSIVE STYLES
======================================================================= */
@media (max-width: 1100px) {
    .article-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .category-columns.three {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 980px) {
    .lead-section,
    .content-grid,
    .page-grid,
    .mission-panel {
        grid-template-columns: 1fr;
    }

    .main-lead img {
        height: 280px;
    }

    .sidebar {
        order: 2;
    }
}

@media (max-width: 900px) {
    .top-stories-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .story-row,
    .category-columns,
    .category-columns.three {
        grid-template-columns: 1fr;
    }

    .story-row img {
        height: 210px;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .article-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .breaking-news {
        font-size: 0.86rem;
    }

    .lead-content,
    .side-widget,
    .card-body {
        padding: 18px;
    }

    .main-lead img {
        height: 230px;
    }

    .mini-top-story {
        grid-template-columns: 96px 1fr;
    }

    .spotlight-section {
        padding: 24px;
    }
}


/* =========================================================
   CONSISTENT EXCERPT HEIGHTS
   Keeps cards/lists aligned even when excerpts are long.
========================================================= */
.card-body p,
.latest-card p,
.story-row p,
.archive-card p,
.author-post-card p,
.related-card p {
    line-height: 1.5;
    min-height: 4.5em; /* approximately 3 lines */
    overflow: hidden;
}


/* =========================================================
   FINAL CARD TIGHTENING
   Keeps latest cards compact with small images and tight H3 line spacing.
========================================================= */
.latest-card .card-body p {
    min-height: 0;
}

.latest-card .card-body h3,
.latest-card .card-body h3 a {
    line-height: 1.05;
}

.sidebar-recaptcha-notice {
    margin: 8px 0 12px;
    font-size: 10.5px;
    font-weight: 400;
    line-height: 1.45;
    color: #6b7280;
    text-align: left;
    text-transform: none;
}

.sidebar-recaptcha-notice a {
    color: inherit;
    text-decoration: underline;
}

.sidebar-recaptcha-notice a:hover {
    color: #049bce;
}
.website-field {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
    z-index: -1 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}


/* ==========================================================
   TOP STORIES — COMPACT, BALANCED EDITORIAL LAYOUT
   Only affects the Top Stories block on desktop.
   The three right-side stories retain horizontal artwork,
   but use compact panoramic images and tighter typography so
   the column finishes alongside the featured story.
========================================================== */
@media (min-width: 901px) {
    .top-stories-grid {
        grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
        align-items: stretch;
    }

    .top-story-main {
        height: 100%;
        grid-template-rows: auto 1fr;
    }

    .top-story-main .story-content {
        padding: 24px 24px 22px;
    }

    .top-story-main p {
        font-size: 1rem;
        line-height: 1.58;
        max-width: 820px;
    }

    .top-story-side {
        height: 100%;
        display: grid;
        grid-template-rows: repeat(3, minmax(0, 1fr));
        gap: 14px;
        min-height: 0;
    }

    .mini-top-story {
        min-height: 0;
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: 112px minmax(0, 1fr);
        overflow: hidden;
    }

    .mini-top-story > a {
        min-height: 0;
        overflow: hidden;
        background: #e2e8f0;
    }

    .mini-top-story img {
        width: 100%;
        height: 112px;
        display: block;
        object-fit: cover;
        object-position: center;
    }

    .mini-top-story-content {
        min-height: 0;
        padding: 10px 12px 11px;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .mini-top-story-content .label {
        font-size: .68rem;
        line-height: 1.2;
        letter-spacing: .07em;
    }

    .mini-top-story h3 {
        margin: 5px 0 7px;
        font-size: .93rem;
        line-height: 1.16;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        overflow: hidden;
    }

    .mini-story-meta {
        margin-top: auto;
        font-size: .63rem;
        line-height: 1.25;
        letter-spacing: .035em;
    }
}

@media (max-width: 900px) {
    .top-story-side {
        height: auto;
        grid-template-rows: none;
    }

    .mini-top-story {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
    }

    .mini-top-story > a {
        aspect-ratio: 16 / 9;
    }

    .mini-top-story img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
}

/* =======================================================================
   AFDES CIVIC ACADEMY — HOMEPAGE SIGNATURE FEATURE
======================================================================= */
.home-academy-feature {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(440px, 1.05fr);
    margin: 0 0 44px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: linear-gradient(90deg, #fff 0%, #fff 48%, #f8fcfe 100%);
}

.home-academy-copy {
    padding: clamp(28px, 3.2vw, 40px) clamp(24px, 3.4vw, 42px);
}

.home-academy-copy .label {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--primary);
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.home-academy-copy h2 {
    max-width: 620px;
    margin: 0 0 11px;
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.65rem, 2.7vw, 2.35rem);
    letter-spacing: -.025em;
    line-height: 1.07;
}

.home-academy-copy p {
    max-width: 690px;
    margin: 0 0 19px;
    color: var(--muted);
    font-size: .92rem;
    line-height: 1.62;
}

.home-academy-preview {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    padding: clamp(28px, 3.2vw, 40px) clamp(28px, 3.6vw, 46px);
    border-left: 1px solid var(--border);
    color: var(--navy);
    text-decoration: none;
    transition: background-color .2s ease;
}

.home-academy-preview:hover {
    background: rgba(4,155,206,.035);
}

.home-academy-preview-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.home-academy-preview-label {
    display: block;
    color: var(--primary);
    font-size: .66rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.home-academy-preview-head strong {
    display: block;
    margin-top: 5px;
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.35rem, 2.15vw, 1.9rem);
    line-height: 1.08;
}

.home-academy-preview small {
    flex: 0 0 auto;
    padding-bottom: 3px;
    color: var(--primary);
    font-size: .66rem;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
    transition: color .2s ease, transform .2s ease;
}

.home-academy-preview:hover small {
    color: var(--navy);
    transform: translateX(2px);
}

.home-academy-mini-path {
    display: grid;
    grid-template-columns: auto minmax(18px, 1fr) auto minmax(18px, 1fr) auto minmax(18px, 1fr) auto;
    align-items: center;
    gap: 9px;
    padding: 17px 0 2px;
    border-top: 1px solid #dfe9ef;
}

.home-academy-path-step {
    display: grid;
    min-width: 64px;
    justify-items: center;
    gap: 7px;
    color: var(--navy);
}

.home-academy-path-icon {
    display: block;
    width: 47px;
    height: 38px;
    background: currentColor;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.home-academy-path-icon--bill {
    color: var(--primary);
    -webkit-mask-image: url('/assets/aca/icons/process/bill-document.svg');
    mask-image: url('/assets/aca/icons/process/bill-document.svg');
}

.home-academy-path-icon--congress {
    -webkit-mask-image: url('/assets/aca/icons/institutions/congress-capitol.svg');
    mask-image: url('/assets/aca/icons/institutions/congress-capitol.svg');
}

.home-academy-path-icon--president {
    color: #3f596c;
    -webkit-mask-image: url('/assets/aca/icons/institutions/president-white-house.svg');
    mask-image: url('/assets/aca/icons/institutions/president-white-house.svg');
}

.home-academy-path-icon--law {
    color: #2f8b63;
    -webkit-mask-image: url('/assets/aca/icons/process/approval.svg');
    mask-image: url('/assets/aca/icons/process/approval.svg');
}

.home-academy-path-step em {
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: .75rem;
    font-style: normal;
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
    white-space: nowrap;
}

.home-academy-mini-path b {
    position: relative;
    height: 1px;
    background: #bbd2de;
}

.home-academy-mini-path b::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -1px;
    width: 6px;
    height: 6px;
    border-top: 1px solid #9bb8c7;
    border-right: 1px solid #9bb8c7;
    transform: translateY(-50%) rotate(45deg);
}

@media (max-width: 980px) {
    .home-academy-feature {
        grid-template-columns: 1fr;
        background: #fff;
    }

    .home-academy-preview {
        border-top: 1px solid var(--border);
        border-left: 0;
        background: #f8fcfe;
    }
}

@media (max-width: 640px) {
    .home-academy-copy,
    .home-academy-preview {
        padding: 26px 22px;
    }

    .home-academy-preview-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
    }

    .home-academy-mini-path {
        grid-template-columns: 1fr 1fr;
        gap: 18px 12px;
        padding-top: 20px;
    }

    .home-academy-mini-path b {
        display: none;
    }

    .home-academy-path-step {
        min-width: 0;
        padding: 11px 4px;
        border-bottom: 1px solid #e4edf2;
    }
}

/* =======================================================================
   2026 ELECTION SPOTLIGHT — TEMPORARY HOMEPAGE FEATURE
   Rendering window is controlled in includes/home-election-spotlight.php.
======================================================================= */
.home-election-spotlight {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) auto;
    align-items: stretch;
    min-height: 156px;
    margin: 0 0 30px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: #fff;
    overflow: hidden;
}

.home-election-date {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px 26px;
    border-right: 1px solid var(--border);
    background: #f5fafc;
}

.home-election-date span {
    margin-bottom: 7px;
    color: var(--primary);
    font-size: .62rem;
    font-style: normal;
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.home-election-date strong {
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.65rem, 2.4vw, 2.15rem);
    font-weight: 700;
    letter-spacing: -.035em;
    line-height: .95;
}

.home-election-date em {
    margin-top: 5px;
    color: #6f8392;
    font-size: .72rem;
    font-style: normal;
    font-weight: 800;
    letter-spacing: .08em;
}

.home-election-spotlight-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    padding: 24px clamp(26px, 3.3vw, 46px);
}

.home-election-kicker {
    display: inline-block;
    margin-bottom: 6px;
    color: var(--primary);
    font-size: .64rem;
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.home-election-spotlight-copy h2 {
    margin: 0 0 7px;
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.45rem, 2.2vw, 1.95rem);
    letter-spacing: -.025em;
    line-height: 1.08;
}

.home-election-spotlight-copy p {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    font-size: .84rem;
    line-height: 1.5;
}

.home-election-scope {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 0;
    margin-top: 12px;
    color: #526b7d;
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.home-election-scope span {
    display: inline-flex;
    align-items: center;
}

.home-election-scope span:not(:last-child)::after {
    content: "";
    width: 3px;
    height: 3px;
    margin: 0 10px;
    border-radius: 50%;
    background: #9cb8c7;
}

.home-election-action {
    display: flex;
    min-width: 230px;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 9px;
    padding: 24px clamp(26px, 3vw, 42px);
    border-left: 1px solid var(--border);
    background: linear-gradient(135deg, #fbfdfe 0%, #f4fafc 100%);
    text-align: right;
}

.home-election-action-label {
    color: #8194a1;
    font-size: .61rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.home-election-spotlight-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .055em;
    line-height: 1.2;
    text-decoration: none;
    text-transform: uppercase;
}

.home-election-spotlight-link span {
    transition: transform .2s ease;
}

.home-election-spotlight-link:hover span {
    transform: translateX(3px);
}

@media (max-width: 980px) {
    .home-election-spotlight {
        grid-template-columns: 126px minmax(0, 1fr);
    }

    .home-election-action {
        grid-column: 1 / -1;
        min-width: 0;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 16px 24px;
        border-top: 1px solid var(--border);
        border-left: 0;
        text-align: left;
    }
}

@media (max-width: 640px) {
    .home-election-spotlight {
        grid-template-columns: 1fr;
        min-height: 0;
        margin-bottom: 26px;
    }

    .home-election-date {
        display: grid;
        grid-template-columns: auto auto 1fr;
        align-items: baseline;
        justify-content: start;
        gap: 8px;
        padding: 18px 22px;
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .home-election-date span {
        margin: 0 5px 0 0;
    }

    .home-election-date strong {
        font-size: 1.55rem;
    }

    .home-election-date em {
        margin: 0;
    }

    .home-election-spotlight-copy {
        padding: 23px 22px;
    }

    .home-election-scope {
        line-height: 1.5;
    }

    .home-election-action {
        grid-column: auto;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 18px 22px;
    }
}
