/* =========================================================
   AFDES Elections 2026 — Coming Soon
   File: /assets/css/elections2026.css
========================================================= */

.elections-coming-soon {
    background: #f5f7fa;
    color: var(--text);
    overflow: hidden;
}

/* =========================================================
   HERO
========================================================= */

.elections-hero {
    position: relative;
    isolation: isolate;
    min-height: 690px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(135deg, #06131f 0%, #09243a 56%, #071827 100%);
    background-size: 46px 46px, 46px 46px, auto;
    border-bottom: 5px solid var(--primary);
}

.elections-hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: auto 0 0;
    height: 190px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.18), transparent);
    pointer-events: none;
}

.elections-hero-glow {
    position: absolute;
    z-index: -1;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    filter: blur(10px);
    opacity: 0.2;
    pointer-events: none;
}

.elections-hero-glow-left {
    left: -260px;
    bottom: -300px;
    background: #049bce;
}

.elections-hero-glow-right {
    top: -310px;
    right: -210px;
    background: #d8404e;
}

.elections-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(330px, 0.85fr);
    gap: clamp(44px, 7vw, 100px);
    align-items: center;
    padding-top: clamp(80px, 10vw, 120px);
    padding-bottom: clamp(80px, 10vw, 120px);
}

.elections-copy {
    position: relative;
    z-index: 2;
}

.elections-status-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 30px;
}

.elections-kicker,
.elections-status,
.elections-cycle,
.elections-section-kicker,
.elections-year-label,
.elections-update-copy > span {
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.elections-kicker {
    color: #94dff5;
}

.elections-status {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
}

.elections-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 0 rgba(245, 196, 81, 0.55);
    animation: electionsPulse 2.2s infinite;
}

.elections-cycle {
    margin-bottom: 12px;
    color: var(--gold);
}

.elections-copy h1 {
    margin: 0;
    color: #ffffff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(4rem, 10vw, 7.8rem);
    line-height: 0.88;
    letter-spacing: -0.065em;
}

.elections-copy h1 span {
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.76);
    text-stroke: 1.5px rgba(255, 255, 255, 0.76);
}

.elections-intro {
    max-width: 720px;
    margin: 28px 0 0;
    color: #d5e3ee;
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    line-height: 1.78;
}

.elections-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.elections-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 20px;
    font-size: 0.79rem;
    font-weight: 900;
    letter-spacing: 0.055em;
    text-decoration: none;
    text-transform: uppercase;
    border-radius: 10px;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.elections-button:hover {
    transform: translateY(-2px);
}

.elections-button-primary {
    color: #ffffff;
    background: var(--primary);
    border: 1px solid var(--primary);
}

.elections-button-primary:hover {
    color: #ffffff;
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.elections-button-secondary {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.32);
}

.elections-button-secondary:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(255, 255, 255, 0.54);
}

/* =========================================================
   HERO EMBLEM
========================================================= */

.elections-visual {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 430px;
}

.elections-year-card {
    position: relative;
    z-index: 2;
    width: min(100%, 370px);
    aspect-ratio: 0.88;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 42px 30px;
    text-align: center;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.025)),
        #0a2135;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 34px 80px rgba(0, 0, 0, 0.32);
    clip-path: polygon(50% 0, 94% 17%, 94% 72%, 50% 100%, 6% 72%, 6% 17%);
}

.elections-year-card::before {
    content: "";
    position: absolute;
    inset: 13px;
    z-index: -1;
    border: 1px solid rgba(245, 196, 81, 0.43);
    clip-path: polygon(50% 0, 94% 17%, 94% 72%, 50% 100%, 6% 72%, 6% 17%);
}

.elections-year-label {
    margin: 20px 0 12px;
    color: #a8dff0;
}

.elections-year-card strong {
    color: #ffffff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(4.8rem, 9vw, 6.8rem);
    line-height: 0.9;
    letter-spacing: -0.08em;
}

.elections-year-card strong span {
    color: var(--primary);
}

.elections-year-card p {
    margin-top: 18px;
    color: #cfdae3;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.elections-stars {
    display: flex;
    gap: 12px;
    color: var(--gold);
    font-size: 0.64rem;
}

.elections-stars-bottom {
    margin-top: 28px;
}

.elections-orbit {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
}

.elections-orbit-one {
    width: 430px;
    height: 430px;
    animation: electionsRotate 34s linear infinite;
}

.elections-orbit-two {
    width: 510px;
    height: 510px;
    border-style: dashed;
    border-color: rgba(4, 155, 206, 0.21);
    animation: electionsRotate 45s linear infinite reverse;
}

.elections-orbit::after {
    content: "";
    position: absolute;
    top: 50%;
    left: -5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 20px rgba(245, 196, 81, 0.7);
}

/* =========================================================
   COVERAGE PREVIEW
========================================================= */

.elections-preview {
    padding: clamp(76px, 9vw, 118px) 0;
    background:
        radial-gradient(circle at 8% 4%, rgba(4, 155, 206, 0.09), transparent 25%),
        #f5f7fa;
}

.elections-section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.72fr);
    gap: clamp(34px, 7vw, 90px);
    align-items: end;
    margin-bottom: 42px;
}

.elections-section-kicker {
    display: inline-block;
    margin-bottom: 13px;
    color: var(--primary);
}

.elections-section-heading h2,
.elections-update-copy h2 {
    margin: 0;
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.elections-section-heading h2 {
    max-width: 760px;
    font-size: clamp(2.25rem, 5vw, 4.2rem);
}

.elections-section-heading > p {
    margin: 0;
    color: #5d6c7d;
    line-height: 1.75;
}

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

.elections-feature-card {
    position: relative;
    min-height: 325px;
    padding: 34px 30px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #dbe3ea;
    box-shadow: 0 14px 38px rgba(7, 24, 39, 0.065);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.elections-feature-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), #68d2f4);
}

.elections-feature-card:nth-child(2)::before {
    background: linear-gradient(90deg, #0f3655, var(--primary));
}

.elections-feature-card:nth-child(3)::before {
    background: linear-gradient(90deg, #b42939, #e35b65);
}

.elections-feature-card:hover {
    transform: translateY(-7px);
    border-color: rgba(4, 155, 206, 0.4);
    box-shadow: 0 24px 56px rgba(7, 24, 39, 0.12);
}

.elections-feature-number {
    position: absolute;
    top: 24px;
    right: 24px;
    color: #dfe7ed;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.5rem;
    font-weight: 900;
}

.elections-feature-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin-bottom: 30px;
    color: #ffffff;
    background: var(--navy);
    font-size: 1.25rem;
}

.elections-feature-card:nth-child(2) .elections-feature-icon {
    background: var(--primary);
}

.elections-feature-card:nth-child(3) .elections-feature-icon {
    background: #b42939;
}

.elections-feature-card h3 {
    margin: 0 0 14px;
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.55rem;
}

.elections-feature-card p {
    margin: 0;
    color: #5c6b79;
    line-height: 1.72;
}

/* =========================================================
   UPDATE PANEL
========================================================= */

.elections-update-panel {
    padding: 0 0 clamp(76px, 9vw, 112px);
    background: #f5f7fa;
}

.elections-update-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 28px;
    align-items: center;
    padding: clamp(30px, 5vw, 50px);
    color: #ffffff;
    background:
        radial-gradient(circle at right top, rgba(4, 155, 206, 0.25), transparent 34%),
        linear-gradient(135deg, #071827, #0d2c44);
    border-left: 5px solid var(--gold);
    box-shadow: 0 24px 60px rgba(7, 24, 39, 0.14);
}

.elections-update-icon {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: var(--gold);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 1.5rem;
}

.elections-update-copy > span {
    display: block;
    margin-bottom: 9px;
    color: #8fdaee;
}

.elections-update-copy h2 {
    color: #ffffff;
    font-size: clamp(1.75rem, 4vw, 2.8rem);
}

.elections-update-copy p {
    max-width: 720px;
    margin: 13px 0 0;
    color: #c9d9e5;
    line-height: 1.7;
}

.elections-text-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-decoration: none;
    text-transform: uppercase;
}

.elections-text-link:hover {
    color: var(--gold);
}

/* =========================================================
   INTERACTIVE ELECTION MAP
========================================================= */

.elections-map-section {
    position: relative;
    padding: clamp(70px, 9vw, 120px) 0;
    background: #ffffff;
}

.elections-map-heading {
    margin-bottom: 38px;
}

.elections-map-container {
    position: relative;
    width: 100%;
    min-height: 0;
    overflow: visible;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    -webkit-tap-highlight-color: transparent;
}

.elections-map-frame {
    display: block;
    width: 100%;
    height: 1240px;
    overflow: hidden;
    border: 0;
    outline: 0;
    background: transparent;
    -webkit-tap-highlight-color: transparent;
}

.elections-map-noscript {
    margin: 18px 0 0;
    padding: 16px 18px;
    color: #7a2028;
    background: #fff2f3;
    border-left: 4px solid #d8404e;
}

/* =========================================================
   MOTION + RESPONSIVE
========================================================= */

@keyframes electionsPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(245, 196, 81, 0.55);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(245, 196, 81, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(245, 196, 81, 0);
    }
}

@keyframes electionsRotate {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 980px) {
    .elections-hero-inner {
        grid-template-columns: 1fr;
    }

    .elections-copy {
        max-width: 820px;
    }

    .elections-visual {
        min-height: 360px;
    }

    .elections-year-card {
        width: 320px;
    }

    .elections-orbit-one {
        width: 360px;
        height: 360px;
    }

    .elections-orbit-two {
        width: 420px;
        height: 420px;
    }

    .elections-section-heading {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .elections-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .elections-feature-card:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .elections-map-section {
        padding: 60px 0;
    }

   .elections-map-frame {
        height: 920px;
    }

    .elections-hero {
        min-height: auto;
    }

    .elections-hero-inner {
        gap: 56px;
    }

    .elections-copy h1 {
        font-size: clamp(3.8rem, 19vw, 6.2rem);
    }

    .elections-actions,
    .elections-button {
        width: 100%;
    }

    .elections-visual {
        min-height: 325px;
    }

    .elections-year-card {
        width: 280px;
    }

    .elections-year-card strong {
        font-size: 5.2rem;
    }

    .elections-orbit-one {
        width: 320px;
        height: 320px;
    }

    .elections-orbit-two {
        width: 370px;
        height: 370px;
    }

    .elections-feature-grid {
        grid-template-columns: 1fr;
    }

    .elections-feature-card,
    .elections-feature-card:last-child {
        grid-column: auto;
    }

    .elections-update-inner {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .elections-text-link {
        white-space: normal;
    }
}

@media (max-width: 430px) {
    .elections-status-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .elections-visual {
        min-height: 285px;
    }

    .elections-year-card {
        width: 235px;
        padding: 34px 24px;
    }

    .elections-year-card strong {
        font-size: 4.3rem;
    }

    .elections-stars {
        gap: 8px;
    }

    .elections-orbit-one {
        width: 270px;
        height: 270px;
    }

    .elections-orbit-two {
        width: 315px;
        height: 315px;
    }

    .elections-feature-card {
        min-height: 0;
        padding: 30px 24px;
    }
}


@media (max-width: 900px) {
    .elections-map-frame {
        height: 980px;
    }
}

@media (max-width: 600px) {
    .elections-map-frame {
        height: 860px;
    }
}

@media (max-width: 430px) {
    .elections-map-frame {
        height: 800px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .elections-status-dot,
    .elections-orbit {
        animation: none;
    }

    .elections-button,
    .elections-feature-card {
        transition: none;
    }
}
