/* =========================================
   PAGE-SPECIFIC LAYOUTS
   ========================================= */

/* ---------- HERO (home) ---------- */

.hero {
    position: relative;
    min-height: 540px;
    display: flex;
    align-items: center;
    background:
        linear-gradient(
            90deg,
            rgba(12, 36, 59, 0.95) 0%,
            rgba(12, 36, 59, 0.78) 55%,
            rgba(12, 36, 59, 0.35) 100%
        ),
        url("../assets/images/chintheche-hero.jpg") center 45% / cover
            no-repeat;
    color: #fff;
}

.hero__inner {
    position: relative;
    z-index: 1;
    padding: 90px 0 80px;
    max-width: 720px;
}

.hero__eyebrow {
    display: inline-block;
    color: var(--secondary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2.2px;
    margin-bottom: 20px;
}

.hero h1 {
    color: #fff;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.13;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.hero h1 span {
    display: block;
    color: var(--secondary);
}

.hero p {
    color: #e4ebf2;
    font-size: 16px;
    line-height: 1.8;
    max-width: 600px;
    margin-bottom: 28px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

@media (max-width: 640px) {
    .hero { min-height: 460px; }
    .hero__inner { padding: 70px 0 60px; }
    .hero__actions .btn { width: 100%; }
}

/* ---------- HIGHLIGHT SPLIT (home programs preview) ---------- */

.highlight-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
}

.highlight {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.highlight__eyebrow {
    color: var(--secondary-dark);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.highlight h3 {
    color: var(--primary);
    font-size: 22px;
    line-height: 1.35;
}

.highlight p {
    color: var(--text-soft);
    font-size: 14.5px;
    line-height: 1.75;
}

.highlight__allocation {
    display: flex;
    flex-direction: column;
    padding: 12px 16px;
    background: var(--light);
    border-left: 3px solid var(--secondary);
    border-radius: var(--radius-sm);
}

.highlight__allocation span {
    color: var(--muted);
    font-size: 12px;
}

.highlight__allocation strong {
    color: var(--primary);
    font-size: 20px;
}

.highlight__link {
    color: var(--primary);
    font-size: 13.5px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

.highlight__link .icon {
    transition: transform var(--transition);
}

.highlight__link:hover {
    color: var(--secondary-dark);
}

.highlight__link:hover .icon {
    transform: translateX(4px);
}

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

/* ---------- PAGE BANNER (inner pages) ---------- */

.page-banner {
    background: linear-gradient(
        135deg,
        var(--primary-dark) 0%,
        #1c4a6b 100%
    );
    color: #fff;
    padding: 70px 0 60px;
}

.page-banner h1 {
    color: #fff;
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.page-banner p {
    color: #cdd9e4;
    max-width: 640px;
    font-size: 15.5px;
    line-height: 1.75;
}

/* ---------- PROFILE SUB-SECTION (constituency page) ---------- */

.profile-section {
    padding: 42px 0;
    border-bottom: 1px solid var(--border);
}

.profile-section:last-child {
    border-bottom: 0;
}

.profile-section__head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 22px;
}

.profile-section__icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-sm);
    font-size: 19px;
    flex-shrink: 0;
}

.profile-section__head h2 {
    color: var(--primary);
    font-size: 22px;
    margin-bottom: 4px;
}

.profile-section__head p {
    color: var(--muted);
    font-size: 14px;
}

/* ---------- CONTACT BLOCK (home footer-section) ---------- */

.contact-section {
    background: var(--surface-alt);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
}

.contact-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px;
}

.contact-panel h3 {
    color: var(--primary);
    font-size: 18px;
    padding-bottom: 14px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

.contact-row {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.contact-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.contact-row__icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-sm);
    font-size: 17px;
    flex-shrink: 0;
}

.contact-row h4 {
    color: var(--primary);
    font-size: 14px;
    margin-bottom: 3px;
}

.contact-row p {
    color: var(--text-soft);
    font-size: 13.5px;
    line-height: 1.6;
}

.contact-official {
    padding: 14px 16px;
    margin-bottom: 10px;
    background: var(--light);
    border-left: 3px solid var(--secondary);
    border-radius: var(--radius-sm);
}

.contact-official strong {
    display: block;
    color: var(--primary);
    font-size: 13.5px;
    margin-bottom: 3px;
}

.contact-official span {
    color: var(--muted);
    font-size: 12.5px;
}

@media (max-width: 820px) {
    .contact-grid { grid-template-columns: 1fr; }
}
/* =========================================
   HERO SLIDESHOW (Crossfade)
========================================= */

.hero {
    position: relative;
    /* Remove the background image from CSS, JS handles it now */
    background: #102b46; /* Deep navy fallback */
}

.hero__bg-layers {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero__bg-layer {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 45%;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero__bg-layer.is-active {
    opacity: 1;
}

/* Keep the overlay on top of the images, but below the text */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        90deg,
        rgba(12, 36, 59, 0.95) 0%,
        rgba(12, 36, 59, 0.78) 55%,
        rgba(12, 36, 59, 0.35) 100%
    );
}

/* Ensure text and buttons sit above the overlay */
.hero .container {
    position: relative;
    z-index: 2;
}