/*
Theme Name: ESPG Government Theme
Theme URI: https://esp.gov.pg/
Author: Ashley Killie
Description: A custom WordPress theme for East Sepik Provincial Government with built-in Website Content dashboard for non-technical users, government-style homepage, district MPs section, and editable footer.
Version: 2.8.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: espg-gov-theme
*/

:root {
    --espg-yellow: #c89c00;
    --espg-yellow-dark: #9e7b00;
    --espg-bg: #063d2a;
    --espg-text: #222222;
    --espg-muted: #666666;
    --espg-border: #ece7d1;
    --espg-card: #ffffff;
    --espg-shadow: 0 4px 14px rgba(0,0,0,0.05);
    --espg-banner-primary: #bb1e2f;
    --espg-banner-secondary: #166534;
    --espg-banner-text: #ffffff;
    --espg-banner-image: none;
    --espg-footer-primary: #d66046;
    --espg-footer-secondary: #e6a34f;
    --espg-footer-text: #ffffff;
    --espg-footer-image: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 17px;
    color: #1e293b;
    line-height: 1.78;
    background: #f8fafc;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #6b5200; text-decoration: none; }
a:hover { color: #5c4500; }
.container {
    width: min(1180px, calc(100% - 44px));
    margin: 0 auto;
}
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

/* Header */
.site-header {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    position: relative;
    z-index: 50;
}
.gov-topbar {
    background: #ffffff;
    border-bottom: 1px solid #e6e6e6;
    font-size: 14px;
}
.gov-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 42px;
}
.gov-topbar-left,
.gov-topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #111;
}
.gov-topbar-right {
    font-weight: 600;
}
.gov-flag {
    font-size: 18px;
    line-height: 1;
}
.brand-banner {
    background-color: var(--espg-banner-primary);
    background-image: var(--espg-banner-image), linear-gradient(135deg, var(--espg-banner-primary) 0%, var(--espg-banner-secondary) 100%);
    background-size: cover, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
    border-top: 2px solid rgba(212, 175, 55, 0.75);
    border-bottom: 1px solid rgba(212, 175, 55, 0.45);
}
.header-inner {
    display: grid;
    grid-template-columns: 190px 1fr 190px;
    align-items: center;
    gap: 24px;
    padding: 26px 0;
    min-height: 220px;
}
.site-branding {
    text-align: center;
}
.site-title {
    margin: 0;
    font-size: clamp(28px, 3.6vw, 54px);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: .5px;
    text-transform: uppercase;
}
.site-title a { color: var(--espg-banner-text); }
.site-description {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.88);
    color: color-mix(in srgb, var(--espg-banner-text) 88%, transparent);
    font-size: 15px;
}
.header-logo,
.header-emblem {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 126px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.header-logo::after,
.header-emblem::after {
    content: "";
    position: absolute;
    width: 136px;
    height: 136px;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.86) 48%, rgba(255, 255, 255, 0.42) 68%, transparent 78%);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.38),
        0 0 28px rgba(255, 255, 255, 0.24),
        0 0 46px rgba(212, 175, 55, 0.18);
    pointer-events: none;
}
.header-logo img,
.header-emblem img,
.custom-logo {
    position: relative;
    z-index: 1;
    width: 104px;
    height: 104px;
    max-width: 104px;
    max-height: 104px;
    object-fit: contain;
    box-sizing: border-box;
    padding: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.76);
    margin: 0 auto;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.32));
}
.menu-toggle {
    display: none;
    width: 100%;
    background: #ffffff;
    color: #111;
    border: 0;
    border-top: 1px solid #ececec;
    border-bottom: 1px solid #ececec;
    padding: 14px 16px;
    font-weight: 700;
    cursor: pointer;
}
.main-navigation {
    background: #ffffff;
    border-bottom: 1px solid #e7e7e7;
}
.main-navigation .container {
    display: flex;
    justify-content: center;
}

.main-navigation .nav-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    flex-wrap: nowrap;
}

/* Search icon style like PNG government sites */
.nav-inner {
    position: relative;
}

.nav-search-wrap {
    display: flex;
    align-items: center;
    position: relative;
    flex: 0 0 auto;
}

.nav-search-form {
    display: flex;
    align-items: center;
    position: relative;
    margin: 0;
}

.nav-search-toggle {
    border: 0;
    background: transparent;
    color: #60a5fa;
    padding: 6px 8px;
    cursor: pointer;
    line-height: 1;
    font-size: 24px;
}

.nav-search-toggle:hover {
    color: #2563eb;
    background: transparent;
}

.nav-search-panel {
    display: none;
    align-items: center;
    gap: 10px;
    width: min(760px, 90vw);
    max-width: 100%;
}

.nav-inner.search-active {
    justify-content: center !important;
}

.nav-inner.search-active .menu {
    display: none !important;
}

.nav-inner.search-active .nav-search-wrap {
    width: 100%;
    justify-content: center;
}

.nav-search-form.active .nav-search-panel {
    display: flex;
}

.nav-search-form.active .nav-search-toggle {
    display: none;
}

.nav-search-field {
    flex: 1 1 auto;
    min-width: 0;
    padding: 12px 16px !important;
    border: 1px solid #d9d9d9 !important;
    border-radius: 999px;
    background: #ffffff;
    font-size: 16px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.nav-search-field:focus {
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    outline: none;
}

.nav-search-go,
.nav-search-close {
    border: 0;
    background: transparent;
    color: #60a5fa;
    padding: 6px 8px;
    cursor: pointer;
    line-height: 1;
    font-size: 24px;
}

.nav-search-close {
    color: #666666;
    font-size: 30px;
}

.nav-search-go:hover,
.nav-search-close:hover {
    background: transparent;
}

@media (max-width: 768px) {
    .nav-search-panel {
        width: 92vw;
    }

    .nav-search-field {
        font-size: 15px;
        padding: 10px 14px !important;
    }
}

/* Split homepage hero */
.home .site-main {
    padding-top: 0;
}

.espg-split-hero {
    --split-dark: #0d2214;
    --split-green: #0f2318;
    --split-gold: #c9991a;
    --split-gold-light: #e6b833;
    --split-muted: #a8b8a0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: min(760px, calc(100svh - 62px));
    background: var(--split-dark);
    border-bottom: 5px solid var(--split-gold);
    overflow: hidden;
}

.espg-split-hero-left {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(46px, 7vh, 72px) clamp(48px, 5vw, 80px) clamp(38px, 5vh, 56px);
    overflow: hidden;
    isolation: isolate;
    background: var(--split-dark);
}

.espg-left-hero-backgrounds,
.espg-left-hero-background {
    position: absolute;
    inset: 0;
}

.espg-left-hero-backgrounds { z-index: 0; }

.espg-left-hero-background {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0;
    transform: scale(1.025);
    transition: opacity 1.6s ease-in-out, transform 9s linear;
}

.espg-left-hero-background.active {
    opacity: 1;
    transform: scale(1);
}

.espg-split-hero-left::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(105deg, rgba(5, 34, 20, 0.94), rgba(5, 42, 25, 0.80)), repeating-linear-gradient(
        -55deg,
        transparent,
        transparent 28px,
        rgba(255, 255, 255, 0.025) 28px,
        rgba(255, 255, 255, 0.025) 30px
    );
    pointer-events: none;
}

.espg-split-hero-left::after {
    content: "";
    position: absolute;
    top: 15%;
    right: 0;
    width: 4px;
    height: 70%;
    background: linear-gradient(to bottom, transparent, var(--split-gold), transparent);
    z-index: 2;
}

.espg-split-hero-eyebrow,
.espg-split-hero-title,
.espg-split-hero-desc,
.espg-split-hero-actions,
.espg-split-hero-stats {
    position: relative;
    z-index: 3;
}

.espg-split-hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 26px;
    color: var(--split-gold);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.4;
    text-transform: uppercase;
}

.espg-split-hero-eyebrow::before {
    content: "";
    width: 32px;
    height: 2px;
    background: var(--split-gold);
    flex: 0 0 auto;
}

.espg-split-hero-title {
    max-width: 560px;
    margin: 0 0 clamp(20px, 3vh, 28px);
    color: #ffffff;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(48px, 4vw, 60px);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.05;
}

.espg-split-hero-title em {
    color: var(--split-gold-light);
    font-style: normal;
}

.espg-split-hero-desc {
    max-width: 500px;
    margin: 0 0 clamp(28px, 4vh, 42px);
    color: #c2cdbd;
    font-size: 17px;
    line-height: 1.65;
}

.espg-split-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.espg-hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 210px;
    min-height: 46px;
    padding: 13px 30px;
    border-radius: 0;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.2;
    text-transform: uppercase;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.espg-hero-btn:hover,
.espg-split-slide-readmore:hover {
    transform: translateY(-2px);
}

.espg-hero-btn:focus-visible,
.espg-split-slide-readmore:focus-visible,
.espg-split-dot:focus-visible,
.espg-split-arrow-btn:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 3px;
}

.espg-hero-btn-primary {
    background: var(--split-gold);
    color: var(--split-dark);
}

.espg-hero-btn-primary:hover {
    background: var(--split-gold-light);
    color: var(--split-dark);
}

.espg-hero-btn-outline {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.62);
    color: #ffffff;
}

.espg-hero-btn-outline:hover {
    background: rgba(201, 153, 26, 0.14);
    border-color: var(--split-gold);
    color: var(--split-gold);
}

.espg-split-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(34px, 4vw, 76px);
    margin-top: clamp(32px, 5vh, 56px);
    padding-top: clamp(24px, 3.5vh, 36px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.espg-split-stat {
    display: grid;
    gap: 4px;
}

.espg-split-stat-number {
    color: var(--split-gold);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
}

.espg-split-stat-label {
    color: var(--split-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.35;
    text-transform: uppercase;
}

.espg-split-hero-right {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #0a1a0f;
    border-left: 4px solid var(--split-gold);
    overflow: hidden;
}

.espg-split-progress {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 5;
    height: 3px;
    background: var(--split-gold);
}

.espg-split-progress-fill {
    width: 0%;
    height: 100%;
    background: var(--split-gold);
}

.espg-split-slides-track {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.espg-split-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-rows: minmax(0, 58%) minmax(0, 42%);
    background-image:
        linear-gradient(to bottom, rgba(10, 26, 15, 0.08), rgba(10, 26, 15, 0.86)),
        var(--espg-slide-bg);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
}

.espg-split-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.espg-split-slide-image {
    position: relative;
    min-height: 0;
    background-image: var(--espg-slide-bg);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    overflow: hidden;
}

.espg-split-slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: transform 6s ease;
}

.espg-split-slide.active .espg-split-slide-image img {
    transform: scale(1.04);
}

.espg-split-slide-image::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 35%;
    background: linear-gradient(to bottom, transparent, rgba(10, 26, 15, 0.72));
}

.espg-split-slide-badge,
.espg-split-slide-date {
    position: absolute;
    z-index: 2;
}

.espg-split-slide-badge {
    top: 20px;
    left: 24px;
    background: var(--split-gold);
    color: var(--split-dark);
    padding: 5px 12px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.4;
    text-transform: uppercase;
}

.espg-split-slide-date {
    right: 24px;
    bottom: 14px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
}

.espg-split-slide-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 12px;
    padding: clamp(22px, 3vh, 30px) clamp(24px, 3vw, 38px) 24px;
    background: #0f2318;
    backdrop-filter: blur(2px);
    border-top: 2px solid rgba(201, 153, 26, 0.25);
}

.espg-split-slide-headline {
    margin: 0 0 12px;
    color: #ffffff;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.2;
}

.espg-split-slide-desc {
    display: -webkit-box;
    margin: 0;
    color: #c2cdbd;
    font-size: 14px;
    line-height: 1.65;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.espg-split-slide-readmore {
    align-self: flex-start;
    background: var(--split-gold);
    border-radius: 2px;
    color: var(--split-dark);
    display: inline-flex;
    margin-top: 8px;
    padding: 11px 15px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.4;
    text-transform: uppercase;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.espg-split-slide-readmore:hover {
    background: var(--split-gold-light);
    color: var(--split-dark);
}

.espg-split-controls {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 13px clamp(24px, 3vw, 38px);
    background: var(--split-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.espg-split-controls-label {
    color: var(--split-gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.4;
    text-transform: uppercase;
}

.espg-split-dots,
.espg-split-arrow-btns {
    display: flex;
    align-items: center;
}

.espg-split-dots {
    gap: 8px;
}

.espg-split-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.24);
    cursor: pointer;
}

.espg-split-dot.active {
    background: var(--split-gold);
    transform: scale(1.35);
}

.espg-split-arrow-btns {
    gap: 7px;
}

.espg-split-arrow-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 0;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 15px;
    line-height: 1;
}

.espg-split-arrow-btn:hover {
    background: var(--split-gold);
    border-color: var(--split-gold);
    color: var(--split-dark);
}

@media (max-width: 980px) {
    .espg-split-hero {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .espg-split-hero-left::after {
        display: none;
    }

    .espg-split-hero-right {
        height: 640px;
        min-height: 0;
    }

    .espg-split-hero-title {
        font-size: 52px;
    }

    .espg-split-slide-headline {
        font-size: 28px;
    }
}

@media (max-width: 640px) {
    .espg-split-hero-left {
        padding: 44px 22px;
        min-width: 0;
    }

    .espg-split-hero-title {
        max-width: 100%;
        font-size: clamp(32px, 9vw, 38px);
        overflow-wrap: anywhere;
    }

    .espg-split-hero-desc {
        width: 100%;
        max-width: 100%;
        font-size: 15px;
        overflow-wrap: anywhere;
    }

    .espg-hero-btn {
        width: 100%;
        padding-inline: 18px;
    }

    .espg-split-hero-stats {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }

    .espg-split-stat-number {
        font-size: 26px;
    }

    .espg-split-slide-headline {
        font-size: 24px;
    }

    .espg-split-stat-label {
        font-size: 9px;
    }

    .espg-split-hero-right {
        height: 580px;
        min-height: 0;
    }

    .espg-split-slide-image {
        min-height: 0;
    }

    .espg-split-controls {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (min-width: 981px) and (max-height: 760px) {
    .espg-split-hero-left {
        justify-content: flex-start;
    }

    .espg-split-hero-eyebrow {
        margin-bottom: 18px;
    }

    .espg-split-hero-title {
        font-size: clamp(42px, 3.7vw, 56px);
        line-height: 1.02;
    }

    .espg-split-hero-desc {
        font-size: 16px;
        line-height: 1.55;
    }
}

@media (prefers-reduced-motion: reduce) {
    .espg-left-hero-background {
        transition: none;
        transform: none;
    }

    .espg-split-slide,
    .espg-split-slide-image img,
    .espg-hero-btn,
    .espg-split-slide-readmore {
        transition: none;
    }
}
.main-navigation .menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}
.main-navigation li { position: relative; }
.main-navigation a {
    display: block;
    color: #111;
    padding: 18px 20px;
    font-weight: 700;
    font-size: 16px;
}
.main-navigation li:hover > a,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
    background: transparent;
    color: #c23b2a;
}
.main-navigation ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(0,0,0,0.12);
    padding: 0;
    list-style: none;
    z-index: 60;
}
.main-navigation ul li:hover > ul { display: block; }
.main-navigation ul ul a {
    color: var(--espg-text);
    padding: 12px 16px;
}
.main-navigation ul ul li:hover > a {
    background: #f8f3df;
    color: #8a6a00;
}

/* Content */
.site-main,
.content-area {
    padding: 30px 0;
}
.content-wrap {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 28px;
}
.main-column,
.widget-area,
.article-card,
.page-card,
.archive-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--espg-shadow);
}
.main-column,
.article-card,
.page-card,
.archive-card {
    padding: 28px;
}
.widget-area { padding: 22px; height: fit-content; }
.entry-title,
.page-title,
.archive-title { margin-top: 0; }
.entry-meta,
.archive-meta {
    color: var(--espg-muted);
    font-size: 14px;
    margin-bottom: 18px;
}
.widget + .widget { margin-top: 24px; }
.widget-title {
    margin: 0 0 12px;
    padding-left: 10px;
    border-left: 4px solid var(--espg-yellow);
}

/* Sections */
.esp-section {
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 28px;
    box-shadow: var(--espg-shadow);
}
.esp-section-title {
    margin: 0 0 18px;
    font-size: clamp(24px, 3vw, 32px);
    position: relative;
    padding-bottom: 10px;
}
.esp-section-title::after {
    display: none;
}
.btn,
.wp-block-button__link,
button,
input[type="submit"] {
    display: inline-block;
    background: var(--espg-yellow);
    color: #fff;
    border: none;
    padding: 12px 22px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
}
.btn:hover,
.wp-block-button__link:hover,
button:hover,
input[type="submit"]:hover { background: var(--espg-yellow-dark); color: #fff; }

/* Hero */
.esp-hero {
    position: relative;
    min-height: clamp(480px, 62vh, 680px);
    display: flex;
    align-items: center;
    overflow: hidden;
    border-bottom: 5px solid var(--espg-yellow);
    background: #111;
}
.esp-hero-slide {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1.03);
}
.esp-hero.has-slides .esp-hero-slide {
    animation: espgHeroFade 18s infinite;
}
.esp-hero.has-slides .esp-hero-slide:nth-child(1) { animation-delay: 0s; }
.esp-hero.has-slides .esp-hero-slide:nth-child(2) { animation-delay: 6s; }
.esp-hero.has-slides .esp-hero-slide:nth-child(3) { animation-delay: 12s; }
.esp-hero.single-slide .esp-hero-slide,
.esp-hero:not(.has-slides) .esp-hero-slide:first-child {
    opacity: 1;
    animation: none;
    transform: none;
}
.esp-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0,0,0,0.32), rgba(0,0,0,0.22));
    z-index: 1;
}
.esp-hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
}
.esp-hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}
.esp-hero-panel {
    text-align: center;
}
.esp-hero-kicker {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--espg-yellow);
    margin-bottom: 14px;
}
.esp-hero h1 {
    font-size: clamp(28px, 3.6vw, 52px);
    line-height: 1.12;
    margin: 0 0 16px;
    color: #fff;
    text-align: center;
}
.esp-hero p {
    font-size: 17px;
    line-height: 1.72;
    margin: 0 auto 28px;
    max-width: 680px;
    color: rgba(255, 255, 255, 0.92);
    text-align: center;
}
.esp-hero-panel .btn {
    display: inline-block;
}
@keyframes espgHeroFade {
    0% { opacity: 0; transform: scale(1.03); }
    6% { opacity: 1; transform: scale(1); }
    28% { opacity: 1; transform: scale(1); }
    34% { opacity: 0; transform: scale(1.02); }
    100% { opacity: 0; transform: scale(1.02); }
}

/* About section */
.esp-two-col {
    display: grid;
    grid-template-columns: 1.2fr .9fr;
    gap: 28px;
    align-items: center;
}
.esp-about-map img,
.esp-placeholder-img {
    border-radius: 12px;
    border: 2px solid #e7dfbf;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
}
.esp-stat-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    margin-top: 18px;
}
.esp-stat-box {
    background: #f8f3df;
    border-left: 5px solid var(--espg-yellow);
    border-radius: 8px;
    padding: 16px 18px;
    font-weight: 600;
}
.esp-stat-label { display: block; color: var(--espg-muted); font-size: 13px; font-weight: 600; }
.esp-stat-value { display: block; font-size: 20px; color: #1f1f1f; }

/* Governor */
.esp-governor-card {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 28px;
    align-items: center;
    border: 1px solid var(--espg-border);
    border-radius: 14px;
    padding: 28px;
    box-shadow: var(--espg-shadow);
    background: #fff;
}
.esp-governor-card img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 12px;
    border: 3px solid var(--espg-yellow);
}

/* Grid cards */
.esp-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.esp-card-grid.four { grid-template-columns: repeat(4, 1fr); }
.esp-card {
    background: #fff;
    border: 1px solid var(--espg-border);
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    box-shadow: var(--espg-shadow);
}
.esp-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}
.esp-card-body {
    padding: 18px;
}
.esp-card h3 { margin: 0 0 8px; font-size: 20px; }
.esp-card p { margin: 0; color: var(--espg-muted); }

/* Services */
.esp-service-card {
    padding: 24px 20px;
    border-top: 5px solid var(--espg-yellow);
}

/* News / projects */
.esp-simple-card {
    background: #f8f3df;
    border-left: 5px solid var(--espg-yellow);
    border-radius: 10px;
    padding: 22px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.04);
}
.esp-simple-card h3 { margin-top: 0; }



/* Latest News slideshow */
.esp-news-slider {
    position: relative;
    min-height: 420px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
}
.esp-news-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: espgNewsFade 30s infinite;
}
.esp-news-slide-1 { animation-delay: 0s; }
.esp-news-slide-2 { animation-delay: 6s; }
.esp-news-slide-3 { animation-delay: 12s; }
.esp-news-slide-4 { animation-delay: 18s; }
.esp-news-slide-5 { animation-delay: 24s; }
.esp-news-slide-inner {
    position: absolute;
    left: 32px;
    right: 32px;
    bottom: 34px;
    max-width: 760px;
    color: #fff;
    background: rgba(7,14,28,.42);
    border: 1px solid rgba(255,255,255,.12);
    backdrop-filter: blur(2px);
    padding: 24px 26px;
    border-radius: 14px;
}
.esp-news-kicker {
    display: inline-block;
    margin-bottom: 12px;
    margin-right: 10px;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-weight: 700;
    color: #f6d66f;
}
.esp-news-date-badge {
    display: inline-block;
    margin-bottom: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.92);
    color: #111;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .03em;
}
.esp-news-slide h3 {
    margin: 0 0 10px;
    font-size: clamp(28px, 3vw, 46px);
    line-height: 1.08;
    color: #fff;
}
.esp-news-slide p {
    margin: 0 0 18px;
    color: rgba(255,255,255,.95);
    font-size: 18px;
    line-height: 1.6;
}
.esp-news-link,
.esp-news-link:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--espg-yellow);
    color: #111;
    font-weight: 800;
}
.esp-news-link:hover {
    background: #fff;
    color: #111;
}
@keyframes espgNewsFade {
    0% { opacity: 0; }
    3% { opacity: 1; }
    17% { opacity: 1; }
    20% { opacity: 0; }
    100% { opacity: 0; }
}
@media (max-width: 768px) {
    .esp-news-slider { min-height: 360px; }
    .esp-news-slide-inner {
        left: 18px;
        right: 18px;
        bottom: 18px;
        padding: 18px;
    }
    .esp-news-slide p {
        font-size: 16px;
    }
}


/* News cards */
.esp-news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.esp-news-card {
    background: #fff;
    border: 1px solid var(--espg-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,.06);
    display: flex;
    flex-direction: column;
}
.esp-news-card-media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}
.esp-news-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.esp-news-date-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.94);
    color: #111;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .03em;
}
.esp-news-card-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.esp-news-kicker {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-weight: 700;
    color: #9e7b00;
}
.esp-news-card h3 {
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.2;
}
.esp-news-card p {
    margin: 0 0 16px;
    color: #555;
    font-size: 15px;
    line-height: 1.6;
    flex: 1;
}
.esp-news-link,
.esp-news-link:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--espg-yellow);
    color: #111;
    font-weight: 800;
    align-self: flex-start;
}
.esp-news-link:hover {
    background: #111;
    color: #fff;
}
@media (max-width: 1200px) {
    .esp-news-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .esp-news-grid { grid-template-columns: 1fr; }
}

/* Footer */
.site-footer {
    margin-top: 30px;
    color: var(--espg-footer-text);
    background-color: var(--espg-footer-primary);
    background-image: linear-gradient(90deg, var(--espg-footer-primary) 0%, var(--espg-footer-secondary) 100%);
    position: relative;
    overflow: hidden;
}
.site-footer.has-watermark::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--espg-footer-image);
    background-repeat: no-repeat;
    background-position: right center;
    background-size: auto 88%;
    opacity: .10;
    pointer-events: none;
}
.footer-main,
.footer-bottom {
    position: relative;
    z-index: 1;
}
.footer-main {
    display: grid;
    grid-template-columns: 220px repeat(4, 1fr);
    gap: 34px;
    padding: 54px 0 26px;
    align-items: start;
}
.footer-brand-col {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}
.footer-logo {
    max-width: 170px;
    width: 100%;
    height: auto;
}
.footer-site-title,
.footer-content-col h3 {
    margin: 0 0 18px;
    color: var(--espg-footer-text);
    font-size: 18px;
}
.footer-content-col,
.footer-content-col p,
.footer-content-col li,
.footer-copyright {
    color: var(--espg-footer-text);
}
.footer-content-col p {
    margin: 0 0 14px;
    line-height: 1.6;
}
.footer-content-col ul {
    margin: 0;
    padding-left: 18px;
}
.footer-content-col li {
    margin-bottom: 10px;
}
.site-footer a,
.site-footer .widget a {
    color: var(--espg-footer-text);
}
.site-footer a:hover,
.site-footer .widget a:hover {
    opacity: .88;
}
.site-footer .widget {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    margin: 0;
}
.site-footer .widget-title {
    border: 0;
    padding: 0;
    margin: 0 0 18px;
    color: var(--espg-footer-text);
    font-size: 18px;
}
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid rgba(255,255,255,.28);
    padding: 18px 0 28px;
}
.footer-socials {
    display: flex;
    gap: 10px;
}
.social-icon {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    font-weight: 700;
    font-size: 16px;
    line-height: 1;
}
.social-facebook { background: #3457b1; }
.social-linkedin { background: #0077b5; }
.site-info { display: none; }

/* Comments / forms */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
textarea,
select {
    width: 100%;
    border: 1px solid #d6d6d6;
    border-radius: 6px;
    padding: 12px 14px;
    background: #fff;
}

/* Tables */
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { padding: 12px; border: 1px solid #e3e3e3; text-align: left; }
th { background: var(--espg-yellow); color: #fff; }

/* Responsive */
@media (max-width: 1024px) {
    .esp-card-grid,
    .esp-card-grid.four,
    .esp-stat-grid,
    .content-wrap { grid-template-columns: repeat(2, 1fr); }
    .footer-main { grid-template-columns: 180px repeat(2, 1fr); }
    .content-wrap { grid-template-columns: 1fr; }
    .esp-two-col,
    .esp-governor-card { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .header-inner {
        grid-template-columns: 70px 1fr 70px;
        gap: 12px;
    }
    .site-description { display: none; }
    .menu-toggle { display: block; }
    .main-navigation .menu {
        display: none;
        flex-direction: column;
    }
    .main-navigation .nav-inner {
        align-items: stretch;
    }
    .nav-search-wrap {
        width: 100%;
        padding: 12px 16px 16px;
        justify-content: center;
    }
    .nav-search-form {
        width: 100%;
        max-width: 420px;
    }
    .nav-search-field {
        width: 100%;
    }
    .main-navigation.toggled .menu { display: flex; }
    .main-navigation ul ul {
        position: static;
        display: block;
        box-shadow: none;
        background: rgba(255,255,255,.08);
    }
    .main-navigation ul ul a { color: #fff; }
    .esp-section,
    .main-column,
    .article-card,
    .page-card,
    .archive-card,
    .widget-area { padding: 22px; }
    .esp-card-grid,
    .esp-card-grid.four,
    .esp-stat-grid { grid-template-columns: 1fr; }
    .footer-main { grid-template-columns: 1fr; gap: 24px; }
    .footer-brand-col { justify-content: flex-start; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .esp-hero { min-height: 360px; }
    .esp-hero p { font-size: 15px; }
}


/* About stats responsive updates */
@media (max-width: 1024px) {
    .esp-stat-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 768px) {
    .esp-stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .esp-stat-grid {
        grid-template-columns: 1fr;
    }
}


/* Live map */
#espg-live-map {
    width: 100%;
    height: 420px;
    border-radius: 12px;
    border: 2px solid #e7dfbf;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    background: #eef4ea;
}

.espg-map-popup {
    font-family: "Segoe UI", Arial, sans-serif;
    line-height: 1.5;
}

.leaflet-control-attribution {
    font-size: 10px;
}

@media (max-width: 768px) {
    #espg-live-map {
        height: 340px;
    }
}


/* District page templates */
.district-page-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 16px 30px;
}
.district-page { color: var(--espg-text); }
.district-page .esp-wrap { max-width: 1200px; margin: 0 auto; }
.district-page .esp-breadcrumb {
    color: rgba(255,255,255,.92);
    font-size: 14px;
    margin-bottom: 14px;
}
.district-page .esp-title h1 {
    font-size: 42px;
    line-height: 1.15;
    color: #fff;
    margin: 0 0 8px;
}
.district-page .esp-sub {
    color: rgba(255,255,255,.95);
    font-size: 18px;
}
.district-page .esp-hero {
    position: relative;
    min-height: 360px;
    padding: 74px 0 40px;
    overflow: hidden;
    border-radius: 0 0 18px 18px;
    border-bottom: 5px solid var(--espg-yellow);
    background:
      linear-gradient(rgba(8,20,38,.55), rgba(8,20,38,.55)),
      linear-gradient(120deg, var(--espg-banner-primary), var(--espg-banner-secondary));
}
.district-page .esp-hero-slides { position:absolute; inset:0; }
.district-page .esp-hero-slide {
    position:absolute; inset:0;
    background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(0,0,0,.12));
    opacity:.38;
}
.district-page .esp-hero-slide.s1 { background-position:center; }
.district-page .esp-hero-slide.s2 { background-position:left; }
.district-page .esp-hero-slide.s3 { background-position:right; }
.district-page .esp-hero .esp-wrap { position:relative; z-index:2; }
.district-page .esp-btns {
    display:flex; flex-wrap:wrap; gap:12px; margin-top:22px;
}
.district-page .esp-btn, .district-page .esp-btn:visited {
    display:inline-flex; align-items:center; justify-content:center;
    min-height:42px; padding:10px 18px; border-radius:999px;
    background: rgba(255,255,255,.14); color:#fff; border:1px solid rgba(255,255,255,.24);
    font-weight:700;
}
.district-page .esp-btn:hover { background:#fff; color:#8a6a00; }
.district-page .esp-strip { margin-top: 22px; }
.district-page .esp-stats {
    display:grid; grid-template-columns: repeat(5,1fr); gap:18px;
}
.district-page .esp-stat {
    background:#f8f3df; border-left:5px solid var(--espg-yellow);
    border-radius:12px; padding:18px 18px 16px; box-shadow: var(--espg-shadow);
}
.district-page .esp-stat .k { font-size:26px; font-weight:800; color:#333; margin-bottom:5px; }
.district-page .esp-stat .l { font-size:14px; color:#666; }
.district-page .esp-section { margin-top: 26px; }
.district-page .esp-grid-2 {
    display:grid; grid-template-columns: 1.18fr .9fr; gap:24px;
}
.district-page .esp-card, .district-page .mp-col, .district-page .plan-col {
    background:#fff; border:1px solid var(--espg-border); border-radius:14px;
    box-shadow: var(--espg-shadow); padding:24px;
}
.district-page .esp-h2 {
    font-size:30px; margin:0 0 16px; color:#1f1f1f;
}
.district-page .esp-p { color:#444; line-height:1.75; }
.district-page .esp-list { margin: 0 0 16px 18px; padding:0; }
.district-page .esp-list li { margin-bottom:10px; }
.district-page iframe { border-radius:12px; }
.district-page .esp-note { margin-top:10px; font-size:13px; color:#666; }
.district-page .mp-grid { display:grid; grid-template-columns: 1fr 1fr; gap:24px; }
.district-page .esp-mp {
    display:flex; align-items:flex-start; gap:18px;
}
.district-page .esp-avatar {
    width:120px; height:120px; object-fit:cover; border-radius:12px; flex:0 0 120px;
    background:#f4f4f4;
}
.district-page .badge {
    display:inline-block; background:#f8f3df; color:#8a6a00; border:1px solid #ebddb0;
    font-size:12px; font-weight:700; padding:5px 9px; border-radius:999px; margin-bottom:8px;
}
.district-page .esp-mp .n, .district-page .esp-person .n { font-weight:800; color:#222; margin-bottom:5px; }
.district-page .esp-mp .r, .district-page .esp-person .r { color:#555; line-height:1.6; font-size:14px; }
.district-page .esp-lead {
    display:grid; grid-template-columns: repeat(3,1fr); gap:18px; margin-top: 10px;
}
.district-page .esp-person {
    display:flex; gap:14px; align-items:flex-start;
    background:#fff; border:1px solid var(--espg-border); border-radius:14px;
    padding:18px; box-shadow: var(--espg-shadow);
}
.district-page .esp-person .esp-avatar {
    width:78px; height:78px; flex-basis:78px; border-radius:12px;
}
.district-page .esp-services {
    display:grid; grid-template-columns: repeat(2,1fr); gap:18px;
}

.district-page .esp-services .esp-service:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}
.district-page .esp-service {
    background:#fff; border:1px solid var(--espg-border); border-top:5px solid var(--espg-yellow);
    border-radius:14px; padding:20px; box-shadow: var(--espg-shadow);
}
.district-page .esp-service .t { font-size:20px; font-weight:800; margin-bottom:8px; }
.district-page .esp-service .c { color:#555; }
.district-page .esp-cols-3 {
    display:grid; grid-template-columns: repeat(3,1fr); gap:22px;
}
.district-page a { word-break: break-word; }

/* LLG photo card grid */
.esp-photo-card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 18px;
}

.esp-photo-card {
    background: #fff;
    border: 1px solid var(--espg-border);
    border-top: 4px solid var(--espg-yellow);
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
    box-shadow: var(--espg-shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.esp-photo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(7, 28, 18, 0.13);
}

.esp-photo-card img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 14px;
    display: block;
    background: #e9ede8;
    border: 3px solid #f0ead6;
}

.esp-photo-card h3 {
    font-size: 15px;
    font-weight: 700;
    color: #222;
    margin: 0 0 6px;
}

.esp-photo-card p {
    font-size: 13px;
    color: #555;
    margin: 0 0 4px;
    line-height: 1.5;
}

.esp-photo-card p:last-child { margin-bottom: 0; }

@media (max-width: 1100px) {
    .esp-photo-card-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .esp-photo-card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .esp-photo-card-grid { grid-template-columns: 1fr; }
}
.district-page .esp-footer { margin-top: 26px; margin-bottom: 10px; }

/* Avatar placeholder */
.district-page .esp-avatar-placeholder {
    display: block;
    flex: 0 0 78px;
    width: 78px;
    height: 78px;
    border-radius: 12px;
    overflow: hidden;
    background: #e9ede8;
}
.district-page .esp-avatar-placeholder svg {
    width: 100%;
    height: 100%;
}
.district-page .esp-mp .esp-avatar-placeholder {
    flex: 0 0 120px;
    width: 120px;
    height: 120px;
}

/* Stat strip icons */
.district-page .esp-stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(200, 156, 0, 0.14);
    color: #7b5d00;
    margin-bottom: 10px;
}
.district-page .esp-stat-icon svg {
    width: 18px;
    height: 18px;
}

/* District service icons */
.district-page .esp-service {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.district-page .esp-service-icon {
    flex: 0 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(200, 156, 0, 0.12);
    color: #7b5d00;
    margin-top: 2px;
}
.district-page .esp-service-icon svg {
    width: 20px;
    height: 20px;
}

/* Contacts section — match page style */
.district-page .esp-contacts-section {
    margin-top: 26px;
    margin-bottom: 26px;
}

/* Map footer */
.esp-district-map-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
    flex-wrap: wrap;
}
.esp-district-map-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    border-radius: 8px;
    background: var(--espg-elementor-green-2, #0b6a46);
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.18s;
}
.esp-district-map-link:hover { opacity: 0.85; text-decoration: none; }

/* Breadcrumb links */
.district-page .esp-breadcrumb a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}
.district-page .esp-breadcrumb a:hover {
    color: #fff;
    text-decoration: underline;
}

@media (max-width: 1100px) {
    .district-page .esp-stats { grid-template-columns: repeat(3,1fr); }
    .district-page .esp-grid-2, .district-page .mp-grid, .district-page .esp-cols-3 { grid-template-columns: 1fr; }
    .district-page .esp-lead { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
    .district-page .esp-title h1 { font-size: 32px; }
    .district-page .esp-sub { font-size: 16px; }
    .district-page .esp-stats, .district-page .esp-lead, .district-page .esp-services, .district-page .esp-cols-3 { grid-template-columns: 1fr; }
    .district-page .esp-mp { flex-direction: column; }
    .district-page .esp-card, .district-page .mp-col, .district-page .plan-col, .district-page .esp-person, .district-page .esp-service { padding:18px; }
}


/* Top bar: Here's how you know + popup + dropdown panel */
.gov-topbar-right { position: relative; }
.esp-how-btn {
    background: none;
    border: 0;
    font: inherit;
    font-weight: 600;
    color: #111;
    cursor: pointer;
    padding: 0;
    opacity: 1;
    transition: opacity .2s ease, color .2s ease;
}
.gov-topbar-right:hover .esp-how-btn,
.esp-how-btn:focus,
.esp-how-btn:focus-visible {
    opacity: 1;
    color: #111;
}
.esp-how-btn:hover { text-decoration: underline; }

.esp-howyouknow-popup {
    display: none;
    position: absolute;
    top: 30px;
    right: 0;
    width: 360px;
    max-width: calc(100vw - 32px);
    background: #ef4444;
    color: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0,0,0,.18);
    z-index: 1200;
}
.esp-howyouknow-popup.active { display: block; }
.esp-howyouknow-popup-inner { padding: 18px; }
.esp-howyouknow-popup p {
    margin: 0 0 14px;
    color: #fff;
    line-height: 1.6;
    font-size: 15px;
}
.esp-howyouknow-close {
    background: #fff;
    color: #111;
    border: 0;
    border-radius: 8px;
    padding: 8px 14px;
    cursor: pointer;
    font-weight: 600;
}
.esp-howyouknow-close:hover { background: #f3f3f3; }

.esp-how-panel {
    max-height: 0;
    overflow: hidden;
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    transition: max-height .35s ease, padding .35s ease;
}
.esp-how-panel.active { max-height: 260px; }
.esp-how-panel-inner {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 40px;
    padding: 0 20px;
}
.esp-how-panel.active .esp-how-panel-inner { padding: 16px 20px 22px; }
.esp-how-col { text-align: center; color: #111; }
.esp-how-col h4 { margin: 0 0 8px; font-size: 18px; font-weight: 700; }
.esp-how-col p { margin: 0; font-size: 15px; line-height: 1.7; }
.esp-how-icon { font-size: 22px; margin-bottom: 6px; }

@media (max-width: 768px) {
    .gov-topbar-inner {
        align-items: flex-start;
        flex-direction: column;
        padding: 8px 0;
    }
    .esp-how-panel.active { max-height: 420px; }
    .esp-how-panel-inner { grid-template-columns: 1fr; gap: 22px; }
    .esp-howyouknow-popup {
        right: auto;
        left: 0;
        width: 320px;
    }
}

/* Elementor-style homepage design layer */
:root {
    --espg-elementor-green: #063d2a;
    --espg-elementor-green-2: #0b5a3a;
    --espg-elementor-gold: #d4af37;
    --espg-elementor-red: #b61f2b;
    --espg-elementor-ink: #17231c;
    --espg-elementor-muted: #647064;
    --espg-elementor-border: #dfe7df;
    --espg-elementor-shadow: 0 20px 55px rgba(7, 28, 18, 0.16);
    --espg-elementor-soft-shadow: 0 12px 30px rgba(7, 28, 18, 0.11);
}

.site-header {
    position: relative;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 36px rgba(7, 28, 18, 0.14);
}

.gov-topbar {
    background: linear-gradient(90deg, #052c1f 0%, #0b5a3a 100%);
    border: 0;
    padding: 4px 0;
}

.gov-topbar-inner {
    min-height: 34px;
}

.gov-topbar-left,
.gov-topbar-right,
.esp-how-btn {
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
}

.gov-topbar-right:hover .esp-how-btn,
.esp-how-btn:focus,
.esp-how-btn:focus-visible {
    color: #ffffff !important;
}

.brand-banner {
    background:
        linear-gradient(135deg, rgba(6, 61, 42, 0.95), rgba(11, 90, 58, 0.86)),
        radial-gradient(circle at 78% 28%, rgba(212, 175, 55, 0.24), transparent 24rem);
    border-top: 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.45);
}

.header-inner {
    min-height: 188px;
    padding: 24px 0;
}

.site-title {
    font-size: clamp(30px, 4.2vw, 56px);
    letter-spacing: 0;
}

.site-description {
    max-width: 700px;
    margin: 10px auto 0;
    color: var(--espg-elementor-gold);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.header-logo img,
.header-emblem img,
.custom-logo {
    width: 104px;
    height: 104px;
    max-width: 104px;
    max-height: 104px;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.32));
}

.main-navigation {
    border: 0;
    box-shadow: inset 0 -1px 0 var(--espg-elementor-border);
}

.main-navigation .nav-inner {
    min-height: 62px;
    gap: 8px;
}

.main-navigation .menu,
#primary-menu {
    gap: 6px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.main-navigation .menu a,
#primary-menu a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 7px;
    color: var(--espg-elementor-ink);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.main-navigation .menu > .menu-item-has-children > a::after,
#primary-menu > .menu-item-has-children > a::after {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 0.2s ease;
}

.main-navigation .menu > .menu-item-has-children:hover > a::after,
.main-navigation .menu > .menu-item-has-children:focus-within > a::after,
#primary-menu > .menu-item-has-children:hover > a::after,
#primary-menu > .menu-item-has-children:focus-within > a::after {
    transform: translateY(1px) rotate(225deg);
}

.main-navigation .menu a:hover,
#primary-menu a:hover {
    background: rgba(11, 90, 58, 0.09);
    color: var(--espg-elementor-green-2);
}

.nav-search-toggle {
    color: var(--espg-elementor-green-2);
}

.nav-search-input {
    border-radius: 7px;
    border-color: var(--espg-elementor-border);
}

.site-main {
    overflow: hidden;
}

.esp-hero {
    min-height: clamp(620px, 76vh, 820px);
    border-bottom: 0;
}

.esp-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    z-index: 2;
    height: 150px;
    background: linear-gradient(180deg, transparent 0%, rgba(6, 61, 42, 0.98) 88%);
    pointer-events: none;
}

.esp-hero-overlay {
    background:
        linear-gradient(90deg, rgba(5, 32, 23, 0.9) 0%, rgba(6, 61, 42, 0.58) 56%, rgba(182, 31, 43, 0.3) 100%),
        radial-gradient(circle at 78% 20%, rgba(212, 175, 55, 0.34), transparent 25rem);
}

.esp-hero-content {
    max-width: 850px;
    padding: 70px 0 130px;
}

.esp-hero h1 {
    font-size: clamp(42px, 6vw, 78px);
    line-height: 1.02;
    letter-spacing: 0;
    margin-bottom: 20px;
    text-shadow: 0 16px 34px rgba(0, 0, 0, 0.3);
}

.esp-hero p {
    max-width: 680px;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(18px, 1.7vw, 22px);
    line-height: 1.7;
    margin-bottom: 32px;
}

.btn,
.wp-block-button__link,
button,
input[type="submit"],
.esp-news-link,
.esp-news-link:visited {
    border-radius: 7px;
    background: linear-gradient(135deg, var(--espg-elementor-gold), #e7c765);
    color: #132017;
    box-shadow: 0 12px 28px rgba(212, 175, 55, 0.28);
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.btn:hover,
.wp-block-button__link:hover,
button:hover,
input[type="submit"]:hover,
.esp-news-link:hover {
    background: linear-gradient(135deg, #f0d57c, var(--espg-elementor-gold));
    color: #132017;
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(212, 175, 55, 0.34);
}

.site-main > .container {
    width: min(1180px, calc(100% - 44px));
    padding-top: clamp(34px, 5vw, 72px);
}

.esp-section {
    position: relative;
    margin-bottom: clamp(26px, 4vw, 46px);
    padding: clamp(30px, 4.5vw, 58px);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--espg-elementor-ink);
    box-shadow: var(--espg-elementor-shadow);
}

.esp-section:nth-of-type(even) {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(245, 250, 245, 0.96));
}

.esp-section-title {
    color: var(--espg-elementor-ink);
    font-size: clamp(28px, 3.2vw, 44px);
    line-height: 1.12;
    margin-bottom: 28px;
    padding-bottom: 16px;
}

.esp-section-title::after {
    width: 92px;
    height: 4px;
    background: linear-gradient(90deg, var(--espg-elementor-red), var(--espg-elementor-gold), var(--espg-elementor-green-2));
}

.esp-two-col {
    gap: clamp(28px, 5vw, 58px);
}

.esp-two-col p,
.esp-section p {
    color: var(--espg-elementor-muted);
}

.esp-about-map iframe,
.esp-about-map img,
.esp-placeholder-img {
    border: 0 !important;
    border-radius: 8px !important;
    box-shadow: var(--espg-elementor-soft-shadow);
}

.esp-map-card {
    margin-top: clamp(22px, 3vw, 34px);
    padding: clamp(18px, 2.6vw, 28px);
    border: 1px solid var(--espg-elementor-border);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--espg-elementor-soft-shadow);
}

.esp-map-card h3 {
    margin: 0 0 16px;
    font-size: clamp(22px, 2.2vw, 30px);
}

.esp-map-card .esp-about-map iframe,
.esp-map-card .esp-placeholder-img {
    width: 100%;
    min-height: 420px;
}

.esp-stat-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.esp-stat-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    min-height: 118px;
    padding: 18px 18px 18px 22px;
    border: 1px solid var(--espg-elementor-border);
    border-left: 0;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--espg-elementor-soft-shadow);
    overflow: hidden;
    position: relative;
}

.esp-stat-box::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: linear-gradient(180deg, var(--espg-elementor-red), var(--espg-elementor-gold));
}

.esp-stat-label {
    display: block;
    margin-bottom: 8px;
    color: var(--espg-elementor-muted);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.esp-stat-value {
    display: block;
    color: var(--espg-elementor-green);
    font-size: clamp(18px, 1.7vw, 24px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: 0;
    overflow-wrap: anywhere;
    word-break: normal;
}

.esp-mvv-section {
    margin-top: 0;
}

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

.esp-mvv-card {
    min-height: 100%;
    padding: clamp(22px, 3vw, 34px);
}

.esp-mvv-card h3 {
    margin: 0 0 12px;
    font-size: clamp(22px, 2.2vw, 30px);
}

.esp-mvv-card p {
    margin: 0;
    font-size: 16px;
    line-height: 1.75;
}

.esp-governor-card {
    position: relative;
    grid-template-columns: minmax(190px, 260px) 1fr;
    gap: clamp(22px, 3.5vw, 42px);
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--espg-elementor-border);
    border-radius: 8px;
    padding: clamp(22px, 3.4vw, 40px);
    background:
        linear-gradient(135deg, #ffffff 0%, #f7fbf7 74%, #eef7ef 100%);
    box-shadow: var(--espg-elementor-soft-shadow);
}

.esp-governor-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: linear-gradient(90deg, var(--espg-elementor-red), var(--espg-elementor-gold), var(--espg-elementor-green-2));
}

.esp-governor-media {
    position: relative;
    overflow: hidden;
    align-self: stretch;
    min-height: 260px;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(6, 61, 42, 0.18), rgba(212, 175, 55, 0.16)),
        #f2f5ef;
    box-shadow: 0 16px 32px rgba(7, 28, 18, 0.14);
}

.esp-governor-media img {
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.esp-governor-content {
    max-width: 780px;
}

.esp-governor-content h3 {
    margin: 0 0 12px;
    font-size: clamp(23px, 2.3vw, 34px);
    line-height: 1.16;
}

.esp-governor-content p {
    margin: 0 0 22px;
    color: var(--espg-elementor-muted);
    font-size: clamp(16px, 1.35vw, 18px);
    line-height: 1.8;
}

.esp-governor-content .btn {
    min-width: 150px;
}

.esp-governor-card h3,
.esp-card h3,
.esp-news-card h3,
.esp-simple-card h3,
.esp-section h3 {
    color: var(--espg-elementor-ink);
}

.esp-card-grid,
.esp-card-grid.four,
.esp-news-grid {
    gap: 22px;
}

.esp-card,
.esp-news-card,
.esp-simple-card {
    border: 1px solid var(--espg-elementor-border);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--espg-elementor-soft-shadow);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.esp-card:hover,
.esp-news-card:hover,
.esp-simple-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(7, 28, 18, 0.16);
}

.esp-card {
    text-align: left;
}

.esp-card img {
    height: 300px;
}

.esp-card-body,
.esp-news-card-body {
    padding: 22px;
}

.esp-service-card {
    border-top: 0;
    position: relative;
}

.esp-service-card::before,
.esp-news-card::before,
.esp-simple-card::before {
    content: "";
    display: block;
    height: 5px;
    background: linear-gradient(90deg, var(--espg-elementor-red), var(--espg-elementor-gold), var(--espg-elementor-green-2));
}

.esp-simple-card {
    border-left: 0;
    background: #ffffff;
    overflow: hidden;
}

.esp-simple-card h3,
.esp-simple-card p {
    padding-left: 0;
}

.esp-news-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.esp-news-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.esp-news-card-media {
    aspect-ratio: 16 / 10;
    position: relative;
    overflow: hidden;
    background: #eef4ef;
}

.esp-news-card-media a {
    display: block;
    height: 100%;
}

.esp-news-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.esp-news-card h3 a,
.espg-news-update-card h2 a {
    color: inherit;
    text-decoration: none;
}

.esp-news-card h3 a:hover,
.espg-news-update-card h2 a:hover {
    color: var(--espg-elementor-red);
}

.esp-news-card p,
.espg-news-update-card p {
    overflow-wrap: anywhere;
}

.esp-news-card .esp-news-link {
    margin-top: auto;
}

.esp-news-link,
.esp-news-link:visited,
.espg-news-update-link,
.espg-news-update-link:visited {
    width: fit-content;
    text-decoration: none;
}

.esp-news-link:focus-visible,
.espg-news-update-link:focus-visible,
.esp-news-card h3 a:focus-visible,
.espg-news-update-card h2 a:focus-visible,
.esp-news-card-media a:focus-visible,
.espg-news-update-media a:focus-visible {
    outline: 3px solid rgba(212, 175, 55, 0.72);
    outline-offset: 3px;
}

.esp-admin-structure {
    --admin-green: #00632a;
    --admin-green-dark: #00491f;
    --admin-gold: #f3b500;
    --admin-line: 3px;
    --admin-row-1: 112px;
    --admin-row-2: 154px;
    --admin-row-3: 178px;
    --admin-row-4: 96px;
    --admin-row-5: 96px;
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--admin-green-dark);
}

@keyframes espAdminFadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes espAdminLineGrowX {
    from {
        opacity: 0;
        transform: scaleX(0);
    }
    to {
        opacity: 1;
        transform: scaleX(1);
    }
}

@keyframes espAdminLineGrowY {
    from {
        opacity: 0;
        transform: translateX(-50%) scaleY(0);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) scaleY(1);
    }
}

@keyframes espAdminDotPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(243, 181, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 0 7px rgba(243, 181, 0, 0);
    }
}

@keyframes espAdminIconFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

#administration.esp-section {
    padding: clamp(12px, 2vw, 22px);
    width: min(1360px, calc(100vw - 32px));
    max-width: none;
    margin-left: 50%;
    transform: translateX(-50%);
    overflow: hidden;
}

.esp-admin-structure .esp-admin-banner {
    display: block;
    margin: 0 0 18px;
    padding: clamp(18px, 3.1vw, 30px) 22px;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--admin-green-dark), var(--admin-green));
    color: #ffffff;
    font-size: clamp(26px, 4.5vw, 52px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: 2px;
    text-align: center;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.24);
    text-decoration: none;
    animation: espAdminFadeUp 0.55s ease both;
    transition: opacity 0.2s ease, box-shadow 0.2s ease;
}
.esp-admin-banner-link:hover {
    opacity: 0.9;
    box-shadow: 0 8px 32px rgba(0, 73, 31, 0.38);
}
.esp-admin-banner-arrow {
    display: inline-block;
    margin-left: 12px;
    font-size: 0.7em;
    vertical-align: middle;
    transition: transform 0.2s ease;
}
.esp-admin-banner-link:hover .esp-admin-banner-arrow {
    transform: translateX(5px);
}

.esp-admin-cta {
    text-align: center;
    margin-top: 28px;
}
.esp-admin-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--admin-green-dark), var(--admin-green));
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    text-transform: uppercase;
    box-shadow: 0 4px 18px rgba(0, 73, 31, 0.28);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.esp-admin-cta-btn:hover {
    box-shadow: 0 8px 32px rgba(0, 73, 31, 0.42);
    transform: translateY(-2px);
    color: #ffffff;
}

.esp-admin-chart {
    display: grid;
    grid-template-columns: minmax(310px, 330px) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.esp-admin-rail,
.esp-admin-flow {
    display: grid;
    gap: 14px;
}

.esp-admin-rail {
    grid-template-rows: var(--admin-row-1) var(--admin-row-2) var(--admin-row-3) var(--admin-row-4) var(--admin-row-5);
}

.esp-admin-rail-item,
.esp-admin-node {
    display: flex;
    align-items: center;
    min-width: 0;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--admin-green-dark), var(--admin-green));
    color: #ffffff;
    font-weight: 900;
    line-height: 1.25;
    text-transform: uppercase;
    box-shadow: 0 12px 26px rgba(0, 73, 31, 0.18);
}

.esp-admin-rail-item {
    gap: 14px;
    padding: 16px 24px;
    font-size: clamp(18px, 1.38vw, 23px);
    overflow: hidden;
    animation: espAdminFadeUp 0.55s ease both;
}

.esp-admin-rail-item:nth-child(1) { animation-delay: 0.08s; }
.esp-admin-rail-item:nth-child(2) { animation-delay: 0.18s; }
.esp-admin-rail-item:nth-child(3) { animation-delay: 0.28s; }
.esp-admin-rail-item:nth-child(4) { animation-delay: 0.38s; }
.esp-admin-rail-item:nth-child(5) { animation-delay: 0.48s; }

.esp-admin-icon {
    display: inline-flex;
    flex: 0 0 auto;
    width: 54px;
    height: 54px;
    align-items: center;
    justify-content: center;
}

.esp-admin-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.esp-admin-node .esp-admin-icon,
.esp-admin-rail-item .esp-admin-icon,
.esp-admin-wide-node .esp-admin-icon {
    animation: espAdminIconFloat 3.6s ease-in-out infinite;
}

.esp-admin-flow {
    grid-template-rows: var(--admin-row-1) var(--admin-row-2) var(--admin-row-3) var(--admin-row-4) var(--admin-row-5) auto;
}

.esp-admin-row {
    position: relative;
    display: grid;
    align-items: center;
    gap: clamp(10px, 1.6vw, 18px);
}

.esp-admin-row-exec {
    justify-items: center;
}

.esp-admin-node-exec {
    position: relative;
    z-index: 2;
    justify-content: center;
    width: min(420px, 70%);
    min-height: 68px;
    padding: 14px 22px;
    font-size: clamp(22px, 2.4vw, 32px);
    text-align: center;
    animation: espAdminFadeUp 0.55s 0.14s ease both;
}

.esp-admin-row-exec::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -31px;
    width: var(--admin-line);
    height: 38px;
    background: var(--admin-gold);
    transform-origin: top;
    transform: translateX(-50%);
    animation: espAdminLineGrowY 0.45s 0.48s ease both;
}

.esp-admin-row-sectors {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: center;
    padding-top: 44px;
}

.esp-admin-row-sectors::before,
.esp-admin-row-districts::before {
    content: "";
    position: absolute;
    left: 9%;
    right: 9%;
    top: 20px;
    height: var(--admin-line);
    background: var(--admin-gold);
    transform-origin: center;
    animation: espAdminLineGrowX 0.55s 0.58s ease both;
}

.esp-admin-row-districts::before {
    animation-delay: 0.9s;
}

.esp-admin-sector {
    position: relative;
    min-height: 86px;
    justify-content: center;
    gap: 10px;
    padding: 12px 10px;
    font-size: clamp(13px, 1.02vw, 18px);
    line-height: 1.18;
    text-align: left;
    animation: espAdminFadeUp 0.5s ease both;
}

.esp-admin-sector:nth-child(1) { animation-delay: 0.68s; }
.esp-admin-sector:nth-child(2) { animation-delay: 0.76s; }
.esp-admin-sector:nth-child(3) { animation-delay: 0.84s; }
.esp-admin-sector:nth-child(4) { animation-delay: 0.92s; }
.esp-admin-sector:nth-child(5) { animation-delay: 1s; }

.esp-admin-sector .esp-admin-icon {
    width: 42px;
    height: 42px;
}

.esp-admin-sector > span:last-child {
    min-width: 0;
    overflow-wrap: anywhere;
}

.esp-admin-sector:nth-child(4) {
    gap: 8px;
    padding-inline: 8px;
    font-size: clamp(12px, 0.88vw, 15px);
}

.esp-admin-sector:nth-child(4) .esp-admin-icon {
    width: 34px;
    height: 34px;
}

.esp-admin-sector::before,
.esp-admin-district::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -26px;
    width: var(--admin-line);
    height: 26px;
    background: var(--admin-gold);
    transform-origin: top;
    transform: translateX(-50%);
    animation: espAdminLineGrowY 0.35s ease both;
}

.esp-admin-sector::after,
.esp-admin-district::after,
.esp-admin-wide-node::after {
    content: "";
    position: absolute;
    left: 50%;
    top: -32px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--admin-gold);
    transform: translateX(-50%);
    animation: espAdminDotPulse 2.4s ease-in-out infinite;
}

.esp-admin-row-districts {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-items: center;
    padding-top: 42px;
}

.esp-admin-district {
    position: relative;
    display: flex;
    min-height: 128px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 10px;
    border: 2px solid var(--admin-green);
    border-radius: 8px;
    background: #ffffff;
    color: var(--admin-green-dark);
    font-size: clamp(13px, 1.02vw, 17px);
    font-weight: 900;
    line-height: 1.12;
    text-align: center;
    text-transform: uppercase;
    box-shadow: 0 10px 24px rgba(0, 73, 31, 0.08);
    animation: espAdminFadeUp 0.5s ease both;
}

.esp-admin-district:nth-child(1) { animation-delay: 1.02s; }
.esp-admin-district:nth-child(2) { animation-delay: 1.1s; }
.esp-admin-district:nth-child(3) { animation-delay: 1.18s; }
.esp-admin-district:nth-child(4) { animation-delay: 1.26s; }
.esp-admin-district:nth-child(5) { animation-delay: 1.34s; }
.esp-admin-district:nth-child(6) { animation-delay: 1.42s; }

.esp-admin-map-shape {
    display: block;
    width: 48px;
    height: 42px;
    background: var(--admin-green);
    clip-path: polygon(26% 4%, 61% 14%, 74% 32%, 88% 34%, 72% 58%, 80% 82%, 52% 74%, 34% 96%, 18% 76%, 3% 62%, 15% 38%);
}

.esp-admin-map-shape.shape-2 { clip-path: polygon(20% 18%, 44% 0, 66% 16%, 86% 36%, 76% 66%, 52% 90%, 18% 78%, 2% 46%); }
.esp-admin-map-shape.shape-3 { clip-path: polygon(10% 18%, 52% 4%, 82% 28%, 94% 62%, 56% 88%, 24% 76%, 4% 48%); }
.esp-admin-map-shape.shape-4 { clip-path: polygon(2% 8%, 38% 12%, 48% 34%, 92% 42%, 78% 72%, 40% 88%, 10% 60%); }
.esp-admin-map-shape.shape-5 { clip-path: polygon(18% 0, 54% 10%, 68% 35%, 94% 50%, 72% 82%, 34% 72%, 8% 42%); }
.esp-admin-map-shape.shape-6 { clip-path: polygon(28% 8%, 66% 0, 92% 24%, 72% 52%, 80% 78%, 44% 92%, 6% 66%, 16% 30%); }

.esp-admin-wide-node {
    position: relative;
    display: flex;
    align-self: center;
    min-height: 82px;
    align-items: center;
    justify-content: center;
    gap: 26px;
    margin: 0 4px;
    border: 2px solid var(--admin-green);
    border-radius: 8px;
    background: #ffffff;
    color: var(--admin-green-dark);
    text-transform: uppercase;
    animation: espAdminFadeUp 0.5s ease both;
}

.esp-admin-wide-node {
    animation-delay: 1.52s;
}

.esp-admin-wide-node + .esp-admin-wide-node {
    animation-delay: 1.68s;
}

.esp-admin-wide-node::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -24px;
    width: var(--admin-line);
    height: 24px;
    background: var(--admin-gold);
    transform-origin: top;
    transform: translateX(-50%);
    animation: espAdminLineGrowY 0.35s 1.42s ease both;
}

.esp-admin-wide-node + .esp-admin-wide-node::before {
    animation-delay: 1.58s;
}

.esp-admin-wide-node .esp-admin-icon {
    width: 70px;
    height: 70px;
    color: var(--admin-green);
}

.esp-admin-wide-node strong {
    font-size: clamp(34px, 4.2vw, 56px);
    line-height: 1;
    letter-spacing: 2px;
}

.esp-admin-tagline {
    margin: 0 !important;
    color: var(--admin-green-dark) !important;
    font-size: clamp(18px, 2vw, 26px);
    font-style: italic;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    animation: espAdminFadeUp 0.5s 1.82s ease both;
}

.esp-admin-details {
    margin-top: clamp(26px, 4vw, 44px);
    padding: clamp(24px, 3.4vw, 42px);
    border: 1px solid var(--espg-elementor-border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--espg-elementor-soft-shadow);
    overflow: hidden;
    position: relative;
}

.esp-admin-details::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: linear-gradient(90deg, var(--espg-elementor-red), var(--espg-elementor-gold), var(--espg-elementor-green-2));
}

.esp-admin-details-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.esp-admin-details-heading span {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(243, 181, 0, 0.18);
    color: #785b00;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.esp-admin-details-heading h3 {
    margin: 10px 0 10px;
    color: var(--espg-elementor-ink);
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.12;
    text-transform: uppercase;
}

.esp-admin-details-heading p {
    max-width: 760px;
    margin: 0;
    color: var(--espg-elementor-muted) !important;
    font-size: 16px;
    line-height: 1.65;
}

.esp-admin-details-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.esp-admin-details-actions a {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 7px;
    background: rgba(11, 90, 58, 0.09);
    color: var(--espg-elementor-green-2);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.esp-admin-details-actions a:hover {
    background: rgba(212, 175, 55, 0.18);
    color: #7b5d00;
}

.esp-admin-details-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 22px;
}

.esp-admin-details-stats div {
    min-height: 92px;
    padding: 16px;
    border: 1px solid var(--espg-elementor-border);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(7, 28, 18, 0.07);
}

.esp-admin-details-stats strong {
    display: block;
    color: var(--admin-green-dark);
    font-size: clamp(26px, 3vw, 42px);
    line-height: 1;
}

.esp-admin-details-stats span {
    display: block;
    margin-top: 8px;
    color: var(--espg-elementor-muted);
    font-size: 12px;
    font-weight: 900;
    line-height: 1.25;
    text-transform: uppercase;
}

.esp-admin-details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.esp-admin-detail-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--espg-elementor-border);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--espg-elementor-soft-shadow);
}

.esp-admin-detail-card header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px 14px;
    border-top: 5px solid var(--admin-green);
    background: #ffffff;
    color: var(--espg-elementor-ink);
}

.esp-admin-detail-card h4 {
    margin: 0;
    color: var(--espg-elementor-ink);
    font-size: 18px;
    line-height: 1.18;
    text-transform: uppercase;
}

.esp-admin-detail-card header span {
    flex: 0 0 auto;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(243, 181, 0, 0.18);
    color: #7b5d00;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.2;
}

.esp-admin-detail-card ul {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0 20px 18px;
    list-style: none;
}

.esp-admin-detail-card li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 34px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(0, 99, 42, 0.1);
    color: var(--espg-elementor-muted);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
}

.esp-admin-detail-card li:last-child {
    border-bottom: 0;
}

.esp-admin-detail-card li span {
    min-width: 0;
}

.esp-admin-detail-card li strong {
    flex: 0 0 auto;
    min-width: 32px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(0, 99, 42, 0.08);
    color: var(--admin-green-dark);
    font-size: 12px;
    line-height: 1.2;
    text-align: center;
}

@media (prefers-reduced-motion: reduce) {
    .esp-admin-structure *,
    .esp-admin-structure *::before,
    .esp-admin-structure *::after {
        animation: none !important;
        transition: none !important;
    }
}

.esp-news-card-media img,
.esp-card img {
    transition: transform 0.45s ease;
}

.esp-news-card:hover .esp-news-card-media img,
.esp-card:hover img {
    transform: scale(1.045);
}

.espg-about-panel,
.espg-about-card,
.espg-contact-feature,
.espg-contact-card,
.espg-projects-toolbar,
.espg-project-card,
.espg-news-updates-toolbar,
.espg-news-update-card,
.espg-services-toolbar,
.espg-service-page-card,
.espg-administration-panel,
.espg-administration-summary div,
.esp-admin-detail-card {
    transition: transform 0.24s ease, box-shadow 0.24s ease;
    will-change: transform;
}

.espg-about-panel:hover,
.espg-about-card:hover,
.espg-contact-feature:hover,
.espg-contact-card:hover,
.espg-projects-toolbar:hover,
.espg-project-card:hover,
.espg-news-updates-toolbar:hover,
.espg-news-update-card:hover,
.espg-services-toolbar:hover,
.espg-service-page-card:hover,
.espg-administration-panel:hover,
.espg-administration-summary div:hover,
.esp-admin-detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 48px rgba(7, 28, 18, 0.16);
}

.espg-animate-on-scroll {
    opacity: 0;
    transform: translateY(26px);
    transition:
        opacity 0.7s ease,
        transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
    transition-delay: calc(var(--espg-motion-order, 0) * 70ms);
    will-change: opacity, transform;
}

.espg-animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.esp-hero-content.espg-animate-on-scroll {
    transform: translateY(34px);
}

.esp-hero-content.is-visible h1 {
    animation: espgTitleLift 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.esp-hero-content.is-visible p {
    animation: espgTitleLift 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.12s both;
}

.esp-hero-content.is-visible .btn {
    animation: espgButtonPop 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 0.26s both;
}

.esp-stat-box.is-visible::before,
.esp-service-card.is-visible::before,
.esp-news-card.is-visible::before,
.esp-simple-card.is-visible::before {
    animation: espgAccentSweep 0.8s ease both;
}

.main-navigation.espg-animate-on-scroll {
    transform: translateY(-12px);
}

.brand-banner.espg-animate-on-scroll {
    transform: translateY(-16px);
}

@keyframes espgTitleLift {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes espgButtonPop {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes espgAccentSweep {
    from {
        transform: scaleX(0);
        transform-origin: left center;
    }
    to {
        transform: scaleX(1);
        transform-origin: left center;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    .espg-animate-on-scroll,
    .espg-animate-on-scroll.is-visible {
        opacity: 1;
        transform: none;
    }
}

.esp-news-kicker {
    color: var(--espg-elementor-red);
}

.esp-news-date-badge {
    border-radius: 7px;
}

.site-footer {
    margin-top: 0;
    background:
        linear-gradient(135deg, #052c1f 0%, #0b5a3a 70%, #123f2e 100%);
}

.site-footer::after {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: linear-gradient(90deg, var(--espg-elementor-red), var(--espg-elementor-gold), var(--espg-elementor-green-2));
}

@media (max-width: 1100px) {
    #administration.esp-section {
        width: auto;
        margin-left: 0;
        transform: none;
    }

    .header-inner {
        grid-template-columns: 118px 1fr 118px;
        min-height: 164px;
    }

    .header-logo,
    .header-emblem {
        min-height: 104px;
        padding: 0;
    }

    .header-logo::after,
    .header-emblem::after {
        width: 112px;
        height: 112px;
    }

    .header-logo img,
    .header-emblem img,
    .custom-logo {
        width: 86px;
        height: 86px;
        max-width: 86px;
        max-height: 86px;
    }

    .esp-card-grid.four,
    .esp-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .esp-admin-chart {
        grid-template-columns: 1fr;
    }

    .esp-admin-rail {
        grid-template-rows: none;
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .esp-admin-rail-item {
        min-height: 132px;
        flex-direction: column;
        justify-content: center;
        padding: 16px 10px;
        font-size: 14px;
        text-align: center;
    }

    .esp-admin-flow {
        grid-template-rows: auto;
    }

    .esp-admin-row-sectors {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .esp-admin-row-districts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .esp-admin-details-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .esp-admin-details-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .esp-stat-value {
        font-size: clamp(20px, 4vw, 26px);
    }
}

@media (max-width: 1024px) {
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 52px;
        width: 100%;
        border: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.16);
        border-bottom: 1px solid var(--espg-elementor-border);
        background: #ffffff;
        color: var(--espg-elementor-ink);
        font-size: 15px;
        font-weight: 800;
        letter-spacing: 0;
        text-transform: uppercase;
    }

    .main-navigation {
        max-height: 0;
        overflow: hidden;
        border-bottom: 0;
        transition: max-height 0.32s ease;
    }

    .main-navigation.toggled {
        max-height: 80vh;
        overflow-y: auto;
        border-bottom: 1px solid var(--espg-elementor-border);
    }

    .main-navigation .container.nav-inner {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        min-height: 0;
        width: min(100% - 28px, 1180px);
        padding: 12px 0 16px;
    }

    .main-navigation .menu,
    #primary-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }

    .main-navigation.toggled .menu,
    .main-navigation.toggled #primary-menu {
        display: flex;
    }

    .main-navigation .menu li,
    #primary-menu li {
        width: 100%;
    }

    .main-navigation .menu a,
    #primary-menu a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        min-height: 48px;
        padding: 10px 14px;
    }

    .main-navigation ul ul {
        position: static;
        display: block;
        min-width: 0;
        padding-left: 12px;
        box-shadow: none;
        background: rgba(11, 90, 58, 0.06);
    }

    .main-navigation ul ul a {
        color: var(--espg-elementor-ink);
        font-size: 12px;
    }

    .nav-search-wrap {
        width: 100%;
        padding-top: 10px;
        justify-content: center;
    }

    .nav-search-form {
        width: 100%;
    }

    .nav-search-panel {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .container,
    .site-main > .container {
        width: min(100% - 28px, 1180px);
    }

    .header-inner,
    .esp-two-col,
    .esp-governor-card,
    .esp-card-grid,
    .esp-card-grid.four,
    .esp-mvv-grid,
    .esp-news-grid {
        grid-template-columns: 1fr;
    }

    .esp-admin-structure .esp-admin-banner {
        letter-spacing: 1px;
    }

    .esp-admin-rail,
    .esp-admin-row-sectors,
    .esp-admin-row-districts {
        grid-template-columns: 1fr;
    }

    .esp-admin-rail-item {
        min-height: 0;
        flex-direction: row;
        justify-content: flex-start;
        padding: 16px 18px;
        font-size: 16px;
        text-align: left;
    }

    .esp-admin-row-exec::after,
    .esp-admin-row-sectors::before,
    .esp-admin-row-districts::before,
    .esp-admin-sector::before,
    .esp-admin-sector::after,
    .esp-admin-district::before,
    .esp-admin-district::after,
    .esp-admin-wide-node::before,
    .esp-admin-wide-node::after {
        display: none;
    }

    .esp-admin-node-exec {
        width: 100%;
        min-height: 64px;
    }

    .esp-admin-row-sectors,
    .esp-admin-row-districts {
        padding-top: 0;
    }

    .esp-admin-sector {
        min-height: 74px;
        justify-content: flex-start;
        padding: 14px 18px;
        font-size: 16px;
    }

    .esp-admin-district {
        min-height: 120px;
        font-size: 16px;
    }

    .esp-admin-wide-node {
        min-height: 78px;
        margin-top: 0;
        gap: 16px;
    }

    .esp-admin-wide-node .esp-admin-icon {
        width: 54px;
        height: 54px;
    }

    .esp-admin-details-heading {
        display: block;
    }

    .esp-admin-details-heading h3 {
        margin-top: 10px;
        text-align: left;
    }

    .esp-admin-details-actions {
        justify-content: flex-start;
        margin-top: 18px;
    }

    .esp-admin-details-stats {
        grid-template-columns: 1fr;
    }

    .esp-admin-details-grid {
        grid-template-columns: 1fr;
    }

    .header-inner {
        min-height: auto;
        gap: 14px;
    }

    .header-logo,
    .header-emblem {
        width: min(124px, 100%);
        min-height: 88px;
        justify-self: center;
    }

    .header-logo::after,
    .header-emblem::after {
        width: 92px;
        height: 92px;
    }

    .header-logo img,
    .header-emblem img,
    .custom-logo {
        width: 70px;
        height: 70px;
        max-width: 70px;
        max-height: 70px;
    }

    .esp-hero {
        min-height: 540px;
    }

    .esp-hero-content {
        text-align: center;
        padding: 54px 0 110px;
    }

    .esp-hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .esp-stat-grid {
        grid-template-columns: 1fr;
    }

    .esp-governor-card {
        padding: 22px;
    }

    .esp-governor-media,
    .esp-governor-media img {
        min-height: 280px;
    }

    .esp-governor-content .btn {
        width: 100%;
    }

    .esp-map-card .esp-about-map iframe,
    .esp-map-card .esp-placeholder-img {
        min-height: 320px;
    }
}

/* Elementor-style district pages */
.district-page-wrapper {
    max-width: none;
    padding: 0;
    background:
        radial-gradient(circle at 10% 0%, rgba(212, 175, 55, 0.16), transparent 34rem),
        linear-gradient(180deg, var(--espg-elementor-green) 0%, var(--espg-elementor-green-2) 48%, var(--espg-elementor-green) 100%);
}

.district-page {
    color: var(--espg-elementor-ink);
}

.district-page .esp-wrap {
    width: min(1180px, calc(100% - 44px));
    max-width: none;
}

.district-page .esp-hero {
    min-height: clamp(330px, 42vh, 440px);
    padding: clamp(48px, 7vw, 76px) 0 clamp(42px, 6vw, 70px);
    border: 0;
    border-radius: 0;
    background:
        linear-gradient(115deg, rgba(3, 22, 15, 0.97) 0%, rgba(6, 61, 42, 0.92) 52%, rgba(4, 38, 26, 0.97) 100%),
        radial-gradient(circle at 80% 30%, rgba(200, 156, 0, 0.18), transparent 22rem);
}

.district-page .esp-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 82px;
    z-index: 1;
    background: linear-gradient(180deg, transparent 0%, rgba(6, 61, 42, 0.88) 100%);
    pointer-events: none;
}

.district-page .esp-hero-slides {
    z-index: 0;
}

.district-page .esp-hero-slide {
    opacity: 0.18;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(0, 0, 0, 0.06)),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0 1px, transparent 1px 26px);
}

.district-page .esp-hero .esp-wrap {
    position: relative;
    z-index: 2;
}

.district-page .esp-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 32px;
    padding: 0 14px;
    margin-bottom: 18px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.district-page .esp-title h1 {
    max-width: 780px;
    font-size: clamp(40px, 5.1vw, 68px);
    line-height: 1.04;
    letter-spacing: 0;
    margin-bottom: 10px;
    text-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.district-page .esp-sub {
    max-width: 720px;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(17px, 1.7vw, 21px);
    line-height: 1.5;
    font-weight: 700;
}

.district-page .esp-btns {
    gap: 10px;
    margin-top: 24px;
}

.district-page .esp-btn,
.district-page .esp-btn:visited {
    min-height: 46px;
    padding: 10px 18px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    font-size: 14px;
    font-weight: 800;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.district-page .esp-btn:hover {
    background: linear-gradient(135deg, var(--espg-elementor-gold), #e7c765);
    color: #132017;
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(212, 175, 55, 0.3);
}

.district-page .esp-strip {
    position: relative;
    z-index: 4;
    margin-top: clamp(-58px, -4vw, -34px);
    padding-bottom: 22px;
}

.district-page .esp-stats {
    gap: 18px;
}

.district-page .esp-stat {
    min-height: 118px;
    position: relative;
    overflow: hidden;
    padding: 22px 20px;
    border: 1px solid var(--espg-elementor-border);
    border-left: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--espg-elementor-shadow);
}

.district-page .esp-stat::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: linear-gradient(180deg, var(--espg-elementor-red), var(--espg-elementor-gold));
}

.district-page .esp-stat .k {
    color: var(--espg-elementor-green);
    font-size: clamp(23px, 2.2vw, 30px);
    line-height: 1.1;
}

.district-page .esp-stat .l {
    color: var(--espg-elementor-muted);
    font-weight: 700;
}

.district-page .esp-section,
.district-page .esp-footer {
    margin-top: clamp(26px, 4vw, 46px);
}

.district-page .esp-section {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.district-page .esp-grid-2,
.district-page .mp-grid,
.district-page .esp-lead,
.district-page .esp-services,
.district-page .esp-cols-3 {
    gap: 22px;
}

.district-page .esp-card,
.district-page .mp-col,
.district-page .plan-col,
.district-page .esp-person,
.district-page .esp-service {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--espg-elementor-border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--espg-elementor-soft-shadow);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.district-page .esp-card,
.district-page .mp-col,
.district-page .plan-col {
    padding: clamp(24px, 3.4vw, 42px);
}

.district-page .esp-card:hover,
.district-page .mp-col:hover,
.district-page .plan-col:hover,
.district-page .esp-person:hover,
.district-page .esp-service:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 48px rgba(7, 28, 18, 0.17);
}

.district-page .esp-card::before,
.district-page .mp-col::before,
.district-page .plan-col::before,
.district-page .esp-person::before,
.district-page .esp-service::before {
    content: "";
    display: block;
    height: 5px;
    margin: -42px -42px 28px;
    background: linear-gradient(90deg, var(--espg-elementor-red), var(--espg-elementor-gold), var(--espg-elementor-green-2));
}

.district-page .esp-person::before,
.district-page .esp-service::before {
    margin: -18px -18px 16px;
}

.district-page .esp-h2 {
    color: var(--espg-elementor-ink);
    font-size: clamp(25px, 2.7vw, 36px);
    line-height: 1.15;
    margin-bottom: 18px;
}

.district-page .esp-p,
.district-page .esp-list,
.district-page .esp-service .c,
.district-page .esp-note,
.district-page .esp-mp .r,
.district-page .esp-person .r {
    color: var(--espg-elementor-muted);
}

.district-page .esp-list li {
    padding-left: 2px;
}

.district-page iframe {
    min-height: 320px;
    border: 0 !important;
    border-radius: 8px;
    box-shadow: var(--espg-elementor-soft-shadow);
}

.district-page .esp-mp {
    display: grid;
    grid-template-columns: minmax(220px, 320px) 1fr;
    gap: 26px;
    align-items: start;
}

.district-page .esp-avatar {
    border-radius: 8px;
    border: 4px solid #ffffff;
    box-shadow: 0 14px 30px rgba(7, 28, 18, 0.16);
}

.district-page .esp-mp .esp-avatar {
    width: 100%;
    height: 360px;
    flex-basis: auto;
    border: 0;
    border-radius: 8px;
    object-fit: cover;
    object-position: top center;
    box-shadow: 0 18px 36px rgba(7, 28, 18, 0.18);
}

.district-page .badge {
    border: 0;
    border-radius: 7px;
    background: rgba(212, 175, 55, 0.16);
    color: #7b5d00;
}

.district-page .esp-mp .n,
.district-page .esp-person .n,
.district-page .esp-service .t {
    color: var(--espg-elementor-ink);
}

.district-page .esp-person,
.district-page .esp-service {
    padding: 18px;
}

.district-page .esp-service {
    border-top: 0;
}

.district-page .esp-lead .esp-person {
    display: block;
    padding: 0;
}

.district-page .esp-lead .esp-person::before {
    margin: 0;
}

.district-page .esp-lead .esp-person .esp-avatar {
    width: 100%;
    height: 300px;
    max-height: 300px;
    flex-basis: auto;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    object-fit: cover;
    object-position: top center;
}

.district-page .esp-lead .esp-person > div {
    padding: 20px;
}

.district-page .esp-footer {
    padding-bottom: clamp(34px, 5vw, 70px);
}

.district-page a {
    color: #0b5a3a;
    font-weight: 700;
}

.district-page a:hover {
    color: var(--espg-elementor-red);
}

@media (max-width: 1100px) {
    .district-page .esp-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .district-page .esp-wrap {
        width: min(100% - 28px, 1180px);
    }

    .district-page .esp-hero {
        min-height: auto;
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .district-page .esp-title h1 {
        max-width: 100%;
        font-size: clamp(30px, 8.5vw, 42px);
        overflow-wrap: anywhere;
        hyphens: auto;
    }

    .district-page .esp-sub {
        font-size: 16px;
        overflow-wrap: anywhere;
    }

    .district-page .esp-btns {
        flex-direction: column;
        gap: 8px;
    }

    .district-page .esp-btn {
        width: 100%;
        min-height: 44px;
    }

    .district-page .esp-strip {
        margin-top: -36px;
    }

    .district-page .esp-stats,
    .district-page .esp-grid-2,
    .district-page .mp-grid,
    .district-page .esp-mp,
    .district-page .esp-lead,
    .district-page .esp-services,
    .district-page .esp-cols-3 {
        grid-template-columns: 1fr;
    }

    .district-page .esp-mp .esp-avatar {
        height: 320px;
    }

    .district-page .esp-card,
    .district-page .mp-col,
    .district-page .plan-col {
        padding: 22px;
    }

    .district-page .esp-card::before,
    .district-page .mp-col::before,
    .district-page .plan-col::before {
        margin: -22px -22px 20px;
    }
}

/* About Us page */
.espg-about-us-page {
    background:
        radial-gradient(circle at 10% 0%, rgba(212, 175, 55, 0.16), transparent 34rem),
        linear-gradient(180deg, var(--espg-elementor-green) 0%, var(--espg-elementor-green-2) 48%, var(--espg-elementor-green) 100%);
}

.espg-about-hero {
    position: relative;
    padding: clamp(86px, 12vw, 150px) 0 clamp(70px, 9vw, 120px);
    color: #ffffff;
    overflow: hidden;
}

.espg-about-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(5, 32, 23, 0.92), rgba(6, 61, 42, 0.64)),
        radial-gradient(circle at 82% 20%, rgba(212, 175, 55, 0.32), transparent 26rem);
}

.espg-about-hero .container {
    position: relative;
    z-index: 1;
}

.espg-about-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.12);
    font-weight: 800;
}

.espg-about-hero h1 {
    max-width: 880px;
    margin: 0 0 20px;
    color: #ffffff;
    font-size: clamp(44px, 6vw, 80px);
    line-height: 1.02;
}

.espg-about-hero p {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(18px, 1.8vw, 23px);
    line-height: 1.7;
}

/* ── About Us stats bar ──────────────────────────────────────────── */
.espg-about-stats {
    background: rgba(255,255,255,0.06);
    border-top: 1px solid rgba(255,255,255,0.12);
    border-bottom: 1px solid rgba(255,255,255,0.12);
    padding: 28px 0;
}

.espg-about-stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
}

.espg-about-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 12px 16px;
    border-right: 1px solid rgba(255,255,255,0.15);
}

.espg-about-stat:last-child {
    border-right: none;
}

.espg-stat-number {
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 900;
    color: #ffffff;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.espg-stat-label {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,0.72);
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

@media (max-width: 768px) {
    .espg-about-stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1px;
        background: rgba(255,255,255,0.12);
    }
    .espg-about-stat {
        background: transparent;
        border-right: none;
    }
}

@media (max-width: 480px) {
    .espg-about-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

.espg-about-content {
    padding: clamp(34px, 5vw, 70px) 0;
}

.espg-about-grid,
.espg-about-cards {
    display: grid;
    gap: 22px;
}

.espg-about-grid {
    grid-template-columns: 1.2fr 0.8fr;
}

.espg-about-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.espg-about-panel,
.espg-about-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--espg-elementor-border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--espg-elementor-soft-shadow);
    padding: clamp(24px, 3.4vw, 42px);
}

.espg-about-panel::before,
.espg-about-card::before {
    content: "";
    display: block;
    height: 5px;
    margin: -42px -42px 28px;
    background: linear-gradient(90deg, var(--espg-elementor-red), var(--espg-elementor-gold), var(--espg-elementor-green-2));
}

.espg-about-panel h2,
.espg-about-card h3 {
    margin-top: 0;
    color: var(--espg-elementor-ink);
}

.espg-about-panel p,
.espg-about-card p,
.espg-about-panel li {
    color: var(--espg-elementor-muted);
}

.espg-about-highlight ul {
    margin: 0;
    padding-left: 20px;
}

.espg-about-highlight li + li {
    margin-top: 10px;
}

@media (max-width: 900px) {
    .espg-about-grid,
    .espg-about-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .espg-about-panel,
    .espg-about-card {
        padding: 22px;
    }

    .espg-about-panel::before,
    .espg-about-card::before {
        margin: -22px -22px 20px;
    }
}

/* Contact page */
.espg-contact-page {
    background:
        radial-gradient(circle at 10% 0%, rgba(212, 175, 55, 0.16), transparent 34rem),
        linear-gradient(180deg, var(--espg-elementor-green) 0%, var(--espg-elementor-green-2) 48%, var(--espg-elementor-green) 100%);
}

.espg-contact-hero {
    position: relative;
    padding: clamp(86px, 12vw, 150px) 0 clamp(70px, 9vw, 120px);
    color: #ffffff;
    overflow: hidden;
}

.espg-contact-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(5, 32, 23, 0.92), rgba(6, 61, 42, 0.64)),
        radial-gradient(circle at 82% 20%, rgba(212, 175, 55, 0.32), transparent 26rem);
}

.espg-contact-hero .container {
    position: relative;
    z-index: 1;
}

.espg-contact-kicker,
.espg-contact-town {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 7px;
    font-weight: 800;
}

.espg-contact-kicker {
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.12);
}

.espg-contact-hero h1 {
    max-width: 920px;
    margin: 0 0 20px;
    color: #ffffff;
    font-size: clamp(44px, 6vw, 80px);
    line-height: 1.02;
}

.espg-contact-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(18px, 1.8vw, 23px);
    line-height: 1.7;
}

.espg-contact-section {
    padding: clamp(34px, 5vw, 74px) 0;
}

.espg-contact-feature,
.espg-contact-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--espg-elementor-border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--espg-elementor-soft-shadow);
}

.espg-contact-feature {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: clamp(24px, 3.4vw, 42px);
    margin-bottom: 24px;
}

.espg-contact-feature::before,
.espg-contact-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: linear-gradient(90deg, var(--espg-elementor-red), var(--espg-elementor-gold), var(--espg-elementor-green-2));
}

.espg-contact-feature h2,
.espg-contact-card h2 {
    color: var(--espg-elementor-ink);
}

.espg-contact-feature h2 {
    margin: 0 0 14px;
    font-size: clamp(27px, 3vw, 42px);
}

.espg-contact-feature p,
.espg-contact-card p,
.espg-contact-card dd {
    color: var(--espg-elementor-muted);
}

.espg-contact-feature p {
    margin: 5px 0;
}

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

.espg-contact-card {
    padding: 28px;
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.espg-contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 48px rgba(7, 28, 18, 0.17);
}

.espg-contact-town {
    margin: 0 0 16px;
    background: rgba(212, 175, 55, 0.16);
    color: #7b5d00;
}

.espg-contact-card h2 {
    margin: 0 0 18px;
    font-size: 24px;
    line-height: 1.18;
}

.espg-contact-card dl {
    display: grid;
    gap: 12px;
    margin: 0 0 18px;
}

.espg-contact-card dl div {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 10px;
    align-items: start;
}

.espg-contact-card dt {
    color: var(--espg-elementor-ink);
    font-weight: 800;
}

.espg-contact-card dd {
    margin: 0;
    word-break: break-word;
}

.espg-contact-card a,
.espg-contact-feature a {
    color: #0b5a3a;
    font-weight: 800;
}

.espg-contact-map-link,
.espg-contact-map-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 18px;
    border-radius: 7px;
    background: linear-gradient(135deg, var(--espg-elementor-gold), #e7c765);
    color: #132017 !important;
    box-shadow: 0 12px 28px rgba(212, 175, 55, 0.24);
}

/* Administration page */
.espg-administration-page {
    background:
        radial-gradient(circle at 10% 0%, rgba(212, 175, 55, 0.16), transparent 34rem),
        linear-gradient(180deg, var(--espg-elementor-green) 0%, var(--espg-elementor-green-2) 48%, var(--espg-elementor-green) 100%);
}

@keyframes espgAdminPageFadeUp {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes espgAdminPageScaleIn {
    from {
        opacity: 0;
        transform: scale(0.96);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes espgAdminTreeDot {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.28);
    }
    50% {
        box-shadow: 0 0 0 7px rgba(212, 175, 55, 0);
    }
}

.espg-administration-hero {
    position: relative;
    padding: clamp(86px, 12vw, 150px) 0 clamp(70px, 9vw, 120px);
    color: #ffffff;
    overflow: hidden;
}

.espg-administration-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(5, 32, 23, 0.92), rgba(6, 61, 42, 0.64)),
        radial-gradient(circle at 82% 20%, rgba(212, 175, 55, 0.32), transparent 26rem);
}

.espg-administration-hero .container {
    position: relative;
    z-index: 1;
}

.espg-administration-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.12);
    font-weight: 800;
}

.espg-administration-hero h1 {
    max-width: 920px;
    margin: 0 0 20px;
    color: #ffffff;
    font-size: clamp(44px, 6vw, 80px);
    line-height: 1.02;
}

.espg-administration-hero p {
    max-width: 780px;
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(18px, 1.8vw, 23px);
    line-height: 1.7;
}

.espg-administration-section {
    padding: clamp(34px, 5vw, 74px) 0;
}

.espg-administration-summary {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.espg-administration-summary div,
.espg-administration-panel {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--espg-elementor-border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--espg-elementor-soft-shadow);
}

.espg-administration-summary div {
    min-height: 108px;
    padding: 18px;
}

.espg-administration-summary div::before,
.espg-administration-panel::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: linear-gradient(90deg, var(--espg-elementor-red), var(--espg-elementor-gold), var(--espg-elementor-green-2));
}

.espg-administration-summary strong {
    display: block;
    color: var(--espg-elementor-green);
    font-size: clamp(28px, 3vw, 44px);
    line-height: 1;
}

.espg-administration-summary span {
    display: block;
    margin-top: 8px;
    color: var(--espg-elementor-muted);
    font-size: 12px;
    font-weight: 900;
    line-height: 1.25;
    text-transform: uppercase;
}

.espg-administration-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.7fr);
    gap: 22px;
    margin-bottom: 24px;
}

.espg-administration-panel {
    padding: clamp(24px, 3.4vw, 42px);
}

.espg-administration-panel h2 {
    margin: 0 0 18px;
    color: var(--espg-elementor-ink);
    font-size: clamp(27px, 3vw, 42px);
    line-height: 1.12;
}

.espg-administration-panel p,
.espg-admin-page-tree li {
    color: var(--espg-elementor-muted);
}

.espg-admin-page-tree,
.espg-admin-page-tree ol {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.espg-admin-page-tree ol {
    margin-top: 10px;
    padding-left: 20px;
    border-left: 2px solid rgba(11, 90, 58, 0.16);
}

.espg-admin-page-tree li {
    position: relative;
    padding: 8px 0 8px 16px;
    font-weight: 700;
    line-height: 1.35;
}

.espg-admin-page-tree li::before {
    content: "";
    position: absolute;
    left: -5px;
    top: 19px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--espg-elementor-gold);
    animation: espgAdminTreeDot 2.6s ease-in-out infinite;
}

.espg-admin-page-tree > li {
    padding-left: 0;
}

.espg-admin-page-tree > li::before {
    display: none;
}

.espg-admin-page-tree span {
    color: var(--espg-elementor-ink);
    font-weight: 900;
}

.espg-administration-note .esp-btn {
    margin-top: 12px;
}

.espg-administration-details {
    margin-top: 0;
}

.espg-administration-page .espg-animate-on-scroll {
    opacity: 0;
    transform: translateY(22px);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.espg-administration-page .espg-administration-summary div.espg-animate-on-scroll {
    transform: scale(0.96);
}

.espg-administration-page .espg-animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
    animation: espgAdminPageFadeUp 0.58s ease both;
}

.espg-administration-page .espg-administration-summary div.is-visible {
    animation-name: espgAdminPageScaleIn;
}

.espg-administration-page .espg-administration-kicker.is-visible { animation-delay: 0s; }
.espg-administration-page .espg-administration-hero h1.is-visible { animation-delay: 0.08s; }
.espg-administration-page .espg-administration-hero p.is-visible { animation-delay: 0.16s; }
.espg-administration-page .espg-administration-summary div:nth-child(1).is-visible { animation-delay: 0.04s; }
.espg-administration-page .espg-administration-summary div:nth-child(2).is-visible { animation-delay: 0.1s; }
.espg-administration-page .espg-administration-summary div:nth-child(3).is-visible { animation-delay: 0.16s; }
.espg-administration-page .espg-administration-summary div:nth-child(4).is-visible { animation-delay: 0.22s; }
.espg-administration-page .espg-administration-summary div:nth-child(5).is-visible { animation-delay: 0.28s; }
.espg-administration-page .espg-administration-panel.is-visible { animation-delay: 0.06s; }
.espg-administration-page .espg-administration-note.is-visible { animation-delay: 0.14s; }
.espg-administration-page .espg-admin-page-tree li.is-visible { animation-duration: 0.45s; }
.espg-administration-page .esp-admin-detail-card:nth-child(1).is-visible { animation-delay: 0.04s; }
.espg-administration-page .esp-admin-detail-card:nth-child(2).is-visible { animation-delay: 0.1s; }
.espg-administration-page .esp-admin-detail-card:nth-child(3).is-visible { animation-delay: 0.16s; }
.espg-administration-page .esp-admin-detail-card:nth-child(4).is-visible { animation-delay: 0.22s; }
.espg-administration-page .esp-admin-detail-card:nth-child(5).is-visible { animation-delay: 0.28s; }
.espg-administration-page .esp-admin-detail-card:nth-child(6).is-visible { animation-delay: 0.34s; }

@media (prefers-reduced-motion: reduce) {
    .espg-administration-page *,
    .espg-administration-page *::before,
    .espg-administration-page *::after {
        animation: none !important;
        transition: none !important;
    }
}

@media (max-width: 1100px) {
    .espg-contact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .espg-administration-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .espg-administration-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .espg-contact-feature {
        display: block;
        padding: 22px;
    }

    .espg-contact-map-button {
        margin-top: 18px;
        width: 100%;
    }

    .espg-contact-grid {
        grid-template-columns: 1fr;
    }

    .espg-contact-card {
        padding: 22px;
    }

    .espg-contact-card dl div {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .espg-administration-summary {
        grid-template-columns: 1fr;
    }

    .espg-administration-panel {
        padding: 22px;
    }
}

/* Projects page */
.espg-projects-page {
    background:
        radial-gradient(circle at 10% 0%, rgba(212, 175, 55, 0.16), transparent 34rem),
        linear-gradient(180deg, var(--espg-elementor-green) 0%, var(--espg-elementor-green-2) 48%, var(--espg-elementor-green) 100%);
}

.espg-projects-hero {
    position: relative;
    padding: clamp(86px, 12vw, 150px) 0 clamp(70px, 9vw, 120px);
    color: #ffffff;
    overflow: hidden;
    background: #063d2a;
}

.espg-projects-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(5, 32, 23, 0.94) 0%, rgba(6, 61, 42, 0.72) 56%, rgba(5, 32, 23, 0.38) 100%),
        radial-gradient(circle at 82% 20%, rgba(212, 175, 55, 0.32), transparent 26rem);
}

.espg-projects-hero-slides,
.espg-projects-hero-slide {
    position: absolute;
    inset: 0;
}

.espg-projects-hero-slides {
    z-index: 0;
}

.espg-projects-hero-slide {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0;
    transform: scale(1.04);
}

.espg-projects-hero.has-slides .espg-projects-hero-slide {
    animation: espgProjectsHeroFade 18s infinite;
}

.espg-projects-hero.has-slides .espg-projects-hero-slide:nth-child(1) { animation-delay: 0s; }
.espg-projects-hero.has-slides .espg-projects-hero-slide:nth-child(2) { animation-delay: 6s; }
.espg-projects-hero.has-slides .espg-projects-hero-slide:nth-child(3) { animation-delay: 12s; }
.espg-projects-hero.single-slide .espg-projects-hero-slide:first-child {
    opacity: 1;
    transform: scale(1);
}

.espg-projects-hero .container {
    position: relative;
    z-index: 2;
}

@keyframes espgProjectsHeroFade {
    0% { opacity: 0; transform: scale(1.04); }
    7% { opacity: 1; transform: scale(1); }
    30% { opacity: 1; transform: scale(1); }
    38% { opacity: 0; transform: scale(1.03); }
    100% { opacity: 0; transform: scale(1.03); }
}

.espg-projects-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.12);
    font-weight: 800;
}

.espg-projects-hero h1 {
    max-width: 920px;
    margin: 0 0 20px;
    color: #ffffff;
    font-size: clamp(44px, 6vw, 80px);
    line-height: 1.02;
}

.espg-projects-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(18px, 1.8vw, 23px);
    line-height: 1.7;
}

.espg-economic-section {
    padding: clamp(48px, 7vw, 92px) 0 0;
}

.espg-economic-intro,
.espg-priority-card {
    border: 1px solid var(--espg-elementor-border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--espg-elementor-soft-shadow);
}

.espg-economic-intro {
    position: relative;
    overflow: hidden;
    padding: clamp(26px, 4vw, 52px);
}

.espg-economic-intro::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, var(--espg-elementor-red), var(--espg-elementor-gold), var(--espg-elementor-green-2));
}

.espg-economic-kicker,
.espg-priority-heading span {
    display: block;
    margin-bottom: 10px;
    color: var(--espg-elementor-green-2);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.espg-economic-intro h2,
.espg-priority-heading h2 {
    color: var(--espg-elementor-ink);
    line-height: 1.15;
}

.espg-economic-intro h2 {
    max-width: 940px;
    margin: 0 0 20px;
    font-size: clamp(30px, 4vw, 50px);
}

.espg-economic-intro p {
    max-width: 1040px;
    margin: 0;
    color: var(--espg-elementor-muted);
    font-size: clamp(16px, 1.5vw, 19px);
    line-height: 1.8;
}

.espg-priority-heading {
    margin: clamp(38px, 5vw, 64px) 0 20px;
}

.espg-priority-heading h2 {
    margin: 0;
    font-size: clamp(28px, 3vw, 42px);
}

.espg-priority-card {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.45fr) minmax(0, 0.8fr);
    overflow: hidden;
}

.espg-priority-card + .espg-priority-card {
    margin-top: 18px;
}

.espg-priority-column {
    padding: clamp(24px, 3vw, 38px);
}

.espg-priority-column + .espg-priority-column {
    border-left: 1px solid var(--espg-elementor-border);
}

.espg-priority-column h3 {
    margin: 0 0 18px;
    color: var(--espg-elementor-green-2);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.espg-priority-index {
    display: inline-flex;
    margin-bottom: 14px;
    padding: 5px 9px;
    border-radius: 5px;
    background: rgba(212, 175, 55, 0.2);
    color: #765900;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.espg-priority-column p {
    margin: 0;
    color: var(--espg-elementor-ink);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.45;
}

.espg-priority-areas ol {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 20px;
    margin: 0;
    padding-left: 24px;
}

.espg-priority-areas li {
    padding-left: 4px;
    color: var(--espg-elementor-muted);
    line-height: 1.5;
}

.espg-priority-areas li::marker {
    color: #765900;
    font-weight: 900;
}

.espg-priority-target {
    background: rgba(11, 90, 58, 0.06);
}

.espg-projects-section {
    padding: clamp(34px, 5vw, 74px) 0;
}

.espg-projects-toolbar,
.espg-project-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--espg-elementor-border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--espg-elementor-soft-shadow);
}

.espg-projects-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: clamp(24px, 3.4vw, 42px);
    margin-bottom: 24px;
}

.espg-projects-toolbar::before,
.espg-project-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: linear-gradient(90deg, var(--espg-elementor-red), var(--espg-elementor-gold), var(--espg-elementor-green-2));
}

.espg-projects-toolbar h2 {
    margin: 0 0 8px;
    color: var(--espg-elementor-ink);
    font-size: clamp(28px, 3vw, 42px);
}

.espg-projects-toolbar p,
.espg-project-card p,
.espg-project-card dd {
    color: var(--espg-elementor-muted);
}

.espg-projects-toolbar p {
    margin: 0;
}

.espg-projects-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.espg-projects-tabs span,
.espg-project-status,
.espg-project-sector {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 10px;
    border-radius: 7px;
    font-weight: 800;
}

.espg-projects-tab {
    background: rgba(11, 90, 58, 0.09);
    color: var(--espg-elementor-green-2);
    border: none;
    box-shadow: none;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    transition: background 0.18s, color 0.18s;
}

.espg-projects-tab:hover,
.espg-projects-tab.is-active {
    background: var(--espg-elementor-green-2, #0b5a3a);
    color: #fff;
}

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

.espg-project-card {
    display: flex;
    flex-direction: column;
    padding: 28px;
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.espg-project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 48px rgba(7, 28, 18, 0.17);
}

.espg-project-card-top {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
}

.espg-project-status {
    background: rgba(212, 175, 55, 0.18);
    color: #7b5d00;
}

/* Status-specific badge colours */
.espg-status-planned {
    background: rgba(37, 99, 235, 0.12);
    color: #1e3a8a;
}

.espg-status-in-progress {
    background: rgba(234, 88, 12, 0.14);
    color: #9a3412;
}

.espg-status-completed {
    background: rgba(21, 128, 61, 0.15);
    color: #14532d;
}

.espg-project-sector {
    background: rgba(11, 90, 58, 0.1);
    color: var(--espg-elementor-green-2);
}

.espg-project-card h3 {
    margin: 0 0 12px;
    color: var(--espg-elementor-ink);
    font-size: 24px;
    line-height: 1.18;
    font-weight: 800;
}

.espg-project-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 7px;
    background: linear-gradient(135deg, var(--espg-elementor-gold), #e7c765);
    color: #132017;
    font-weight: 800;
    margin-top: auto;
    text-decoration: none;
    transition: background 0.18s;
}

.espg-project-link:hover {
    color: #132017;
    background: linear-gradient(135deg, #e7c765, var(--espg-elementor-gold));
}

.espg-projects-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 24px;
    color: #555;
    font-size: 16px;
    margin: 0;
}

.espg-project-card dl {
    display: grid;
    gap: 10px;
    margin: 18px 0 0;
}

.espg-project-card dl div {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 10px;
}

.espg-project-card dt {
    color: var(--espg-elementor-ink);
    font-weight: 800;
}

.espg-project-card dd {
    margin: 0;
}

@media (max-width: 1100px) {
    .espg-priority-card {
        grid-template-columns: 1fr 1.5fr;
    }

    .espg-priority-target {
        grid-column: 1 / -1;
        border-top: 1px solid var(--espg-elementor-border);
        border-left: 0 !important;
    }

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

@media (max-width: 768px) {
    .espg-priority-card {
        grid-template-columns: 1fr;
    }

    .espg-priority-column + .espg-priority-column {
        border-top: 1px solid var(--espg-elementor-border);
        border-left: 0;
    }

    .espg-priority-target {
        grid-column: auto;
    }

    .espg-priority-areas ol {
        grid-template-columns: 1fr;
    }

    .espg-projects-toolbar {
        display: block;
        padding: 22px;
    }

    .espg-projects-tabs {
        justify-content: flex-start;
        margin-top: 18px;
    }

    .espg-projects-grid {
        grid-template-columns: 1fr;
    }

    .espg-project-card {
        padding: 22px;
    }

    .espg-project-card dl div {
        grid-template-columns: 1fr;
        gap: 2px;
    }
}

/* Project modal */
.espg-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(10, 30, 18, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: espg-modal-fade-in 0.18s ease;
}

.espg-modal-backdrop[hidden] {
    display: none;
}

@keyframes espg-modal-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.espg-modal-panel {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 660px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px;
    position: relative;
    box-shadow: 0 24px 64px rgba(0,0,0,0.28);
    animation: espg-modal-slide-up 0.22s ease;
}

@keyframes espg-modal-slide-up {
    from { transform: translateY(24px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

body.espg-modal-open {
    overflow: hidden;
}

.espg-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.espg-modal-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.espg-modal-close {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #f5f5f5;
    box-shadow: none;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    transition: background 0.15s;
}

.espg-modal-close:hover {
    background: #e5e5e5;
}

.espg-modal-title {
    margin: 0 0 10px;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--espg-elementor-ink, #132017);
}

.espg-modal-summary {
    color: #555;
    margin: 0 0 22px;
    line-height: 1.65;
}

/* Progress bar */
.espg-modal-progress-wrap {
    margin-bottom: 22px;
}

.espg-modal-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #444;
}

.espg-modal-progress-bar {
    height: 10px;
    border-radius: 99px;
    background: #e8ede8;
    overflow: hidden;
}

.espg-modal-progress-fill {
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--espg-elementor-green-2, #0b5a3a), #4caf6e);
    transition: width 0.5s ease;
}

/* Meta grid */
.espg-modal-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 24px;
    margin: 0 0 24px;
    padding: 20px;
    background: #f7faf7;
    border-radius: 8px;
}

.espg-modal-meta div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.espg-modal-meta dt {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #888;
}

.espg-modal-meta dd {
    margin: 0;
    font-weight: 600;
    color: var(--espg-elementor-ink, #132017);
}

/* External report link */
.espg-modal-ext-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 7px;
    border: 2px solid var(--espg-elementor-green-2, #0b5a3a);
    color: var(--espg-elementor-green-2, #0b5a3a);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.18s, color 0.18s;
}

.espg-modal-ext-link:hover {
    background: var(--espg-elementor-green-2, #0b5a3a);
    color: #fff;
}

.espg-modal-ext-link[hidden] { display: none; }
.espg-modal-progress-wrap[hidden] { display: none; }
.espg-modal-agency-row[hidden],
.espg-modal-funding-row[hidden],
.espg-modal-contractor-row[hidden] { display: none; }

@media (max-width: 600px) {
    .espg-modal-panel { padding: 22px 18px; }
    .espg-modal-title { font-size: 22px; }
    .espg-modal-meta  { grid-template-columns: 1fr; }
}

/* News & Updates page */
.espg-news-updates-page {
    background:
        radial-gradient(circle at 10% 0%, rgba(212, 175, 55, 0.16), transparent 34rem),
        linear-gradient(180deg, var(--espg-elementor-green) 0%, var(--espg-elementor-green-2) 48%, var(--espg-elementor-green) 100%);
}

.espg-news-updates-hero {
    position: relative;
    padding: clamp(86px, 12vw, 150px) 0 clamp(70px, 9vw, 120px);
    color: #ffffff;
    overflow: hidden;
}

.espg-news-updates-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(5, 32, 23, 0.92), rgba(6, 61, 42, 0.64)),
        radial-gradient(circle at 82% 20%, rgba(212, 175, 55, 0.32), transparent 26rem);
}

.espg-news-updates-hero .container {
    position: relative;
    z-index: 1;
}

.espg-news-updates-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.12);
    font-weight: 800;
}

.espg-news-updates-hero h1 {
    max-width: 920px;
    margin: 0 0 20px;
    color: #ffffff;
    font-size: clamp(44px, 6vw, 80px);
    line-height: 1.02;
}

.espg-news-updates-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(18px, 1.8vw, 23px);
    line-height: 1.7;
}

.espg-news-updates-section {
    padding: clamp(34px, 5vw, 74px) 0;
}

.espg-news-updates-toolbar,
.espg-news-update-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--espg-elementor-border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--espg-elementor-soft-shadow);
}

.espg-news-updates-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: clamp(24px, 3.4vw, 42px);
    margin-bottom: 24px;
}

.espg-news-updates-toolbar::before,
.espg-news-update-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: linear-gradient(90deg, var(--espg-elementor-red), var(--espg-elementor-gold), var(--espg-elementor-green-2));
}

.espg-news-updates-toolbar h2 {
    margin: 0 0 8px;
    color: var(--espg-elementor-ink);
    font-size: clamp(28px, 3vw, 42px);
}

.espg-news-updates-toolbar p,
.espg-news-update-card p {
    color: var(--espg-elementor-muted);
}

.espg-news-updates-toolbar p {
    margin: 0;
}

.espg-news-updates-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.espg-news-updates-tabs span,
.espg-news-update-type,
.espg-news-update-date {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 10px;
    border-radius: 7px;
    font-weight: 800;
}

.espg-news-updates-tabs span {
    background: rgba(11, 90, 58, 0.09);
    color: var(--espg-elementor-green-2);
}

.espg-news-updates-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.espg-news-update-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.espg-news-update-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 48px rgba(7, 28, 18, 0.17);
}

.espg-news-update-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #eef4ef;
}

.espg-news-update-media a {
    display: block;
    height: 100%;
}

.espg-news-update-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.espg-news-update-card:hover .espg-news-update-media img {
    transform: scale(1.045);
}

.espg-news-update-date {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--espg-elementor-ink);
}

.espg-news-update-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 24px;
}

.espg-news-update-type {
    margin-bottom: 14px;
    background: rgba(212, 175, 55, 0.18);
    color: #7b5d00;
}

.espg-news-update-card h2 {
    margin: 0 0 12px;
    color: var(--espg-elementor-ink);
    font-size: 24px;
    line-height: 1.18;
}

.espg-news-update-card p {
    margin: 0 0 18px;
}

.espg-news-update-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 7px;
    background: linear-gradient(135deg, var(--espg-elementor-gold), #e7c765);
    color: #132017;
    font-weight: 800;
    margin-top: auto;
}

.espg-news-update-link:hover {
    color: #132017;
    background: linear-gradient(135deg, #e7c765, var(--espg-elementor-gold));
}

@media (max-width: 1100px) {
    .espg-news-updates-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .espg-news-updates-toolbar {
        display: block;
        padding: 22px;
    }

    .espg-news-updates-tabs {
        justify-content: flex-start;
        margin-top: 18px;
    }

    .espg-news-updates-grid {
        grid-template-columns: 1fr;
    }

    .espg-news-update-body {
        padding: 22px;
    }
}

/* Services page */
.espg-services-page {
    background:
        radial-gradient(circle at 12% 0%, rgba(212, 175, 55, 0.16), transparent 34rem),
        linear-gradient(180deg, var(--espg-elementor-green) 0%, var(--espg-elementor-green-2) 48%, var(--espg-elementor-green) 100%);
}

.espg-services-hero {
    position: relative;
    padding: clamp(86px, 12vw, 150px) 0 clamp(70px, 9vw, 120px);
    color: #ffffff;
    overflow: hidden;
}

.espg-services-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(5, 32, 23, 0.92), rgba(6, 61, 42, 0.64)),
        radial-gradient(circle at 82% 20%, rgba(212, 175, 55, 0.32), transparent 26rem);
}

.espg-services-hero .container {
    position: relative;
    z-index: 1;
}

.espg-services-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.12);
    font-weight: 800;
}

.espg-services-hero h1 {
    max-width: 920px;
    margin: 0 0 20px;
    color: #ffffff;
    font-size: clamp(44px, 6vw, 80px);
    line-height: 1.02;
}

.espg-services-hero p {
    max-width: 780px;
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(18px, 1.8vw, 23px);
    line-height: 1.7;
}

.espg-services-section {
    padding: clamp(34px, 5vw, 74px) 0;
}

.espg-services-toolbar,
.espg-service-page-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--espg-elementor-border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--espg-elementor-soft-shadow);
}

.espg-services-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px 24px;
    padding: clamp(24px, 3.4vw, 42px);
    margin-bottom: 24px;
}

.espg-services-toolbar::before,
.espg-service-page-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: linear-gradient(90deg, var(--espg-elementor-red), var(--espg-elementor-gold), var(--espg-elementor-green-2));
}

.espg-services-toolbar h2 {
    margin: 0 0 8px;
    color: var(--espg-elementor-ink);
    font-size: clamp(28px, 3vw, 42px);
}

.espg-services-toolbar p,
.espg-service-page-card p {
    color: var(--espg-elementor-muted);
}

.espg-services-toolbar p {
    margin: 0;
}

.espg-services-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    align-self: center;
    max-width: 420px;
}

.espg-services-tab,
.espg-service-category {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 10px;
    border-radius: 7px;
    font-weight: 800;
}

.espg-services-tab {
    background: rgba(11, 90, 58, 0.09);
    color: var(--espg-elementor-green-2);
    border: none;
    box-shadow: none;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    transition: background 0.18s ease, color 0.18s ease;
}

.espg-services-tab:hover,
.espg-services-tab.is-active {
    background: var(--espg-elementor-green-2);
    color: #fff;
}

.espg-services-group {
    margin-bottom: 44px;
}

.espg-services-group:last-child {
    margin-bottom: 0;
}

.espg-services-group-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 20px;
    font-size: 13px;
    font-weight: 800;
    color: var(--espg-elementor-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.espg-services-group-heading::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--espg-elementor-border);
}

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

.espg-service-page-card {
    display: flex;
    flex-direction: column;
    padding: 28px;
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.espg-service-page-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 48px rgba(7, 28, 18, 0.17);
}

.espg-service-icon-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.espg-service-icon-wrap svg {
    display: block;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    padding: 9px;
    border-radius: 10px;
    background: rgba(212, 175, 55, 0.15);
    color: #7b5d00;
}

.espg-service-page-card:hover .espg-service-icon-wrap svg {
    background: rgba(11, 90, 58, 0.1);
    color: var(--espg-elementor-green-2);
}

.espg-service-category {
    background: rgba(212, 175, 55, 0.18);
    color: #7b5d00;
    font-size: 12px;
}

.espg-service-page-card h2 {
    margin: 0 0 12px;
    color: var(--espg-elementor-ink);
    font-size: 25px;
    line-height: 1.16;
}

.espg-service-page-card p {
    margin: 0 0 20px;
    flex: 1;
}

.espg-services-results-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 20px;
}

.espg-services-results-bar p {
    margin: 0;
    color: var(--espg-elementor-muted);
    font-weight: 700;
}

.espg-services-results-bar a {
    color: var(--espg-elementor-green-2);
    font-weight: 800;
}

.espg-service-meta {
    display: grid;
    gap: 10px;
    margin: 0 0 22px;
    padding: 16px;
    border-radius: 8px;
    background: rgba(11, 90, 58, 0.06);
}

.espg-service-meta div {
    display: grid;
    gap: 2px;
}

.espg-service-meta dt {
    color: var(--espg-elementor-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.espg-service-meta dd {
    margin: 0;
    color: var(--espg-elementor-ink);
    line-height: 1.45;
}

.espg-service-page-card[hidden] {
    display: none;
}

.espg-services-empty {
    margin: 24px 0 0;
    padding: 28px;
    border: 1px dashed var(--espg-elementor-border);
    border-radius: 8px;
    color: var(--espg-elementor-muted);
    text-align: center;
}

.espg-services-empty[hidden] {
    display: none;
}

.espg-service-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 7px;
    background: linear-gradient(135deg, var(--espg-elementor-gold), #e7c765);
    color: #132017;
    font-weight: 800;
}

@media (max-width: 1280px) {
    .espg-services-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1100px) {
    .espg-services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .espg-services-results-bar {
        align-items: flex-start;
        flex-direction: column;
    }

    .espg-services-toolbar {
        display: block;
        padding: 22px;
    }

    .espg-services-tabs {
        justify-content: flex-start;
        margin-top: 18px;
        max-width: none;
    }

    .espg-services-grid {
        grid-template-columns: 1fr;
    }

    .espg-service-page-card {
        padding: 22px;
    }
}

/* Remove the dark-green gradient fade at the hero bottom — it was
   designed to blend into the dark page; now we want a clean edge. */
.esp-hero::after {
    display: none !important;
}

.esp-section,
.esp-section:nth-of-type(even) {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 16px rgba(0, 34, 68, .06) !important;
}

/* District pages also become light */
.district-page-wrapper {
    background: #f0f2f5 !important;
}

.district-page .esp-hero::after {
    display: none !important;
}

/* Section header accent — disabled */
.esp-section-title::after {
    display: none !important;
}

/* News section — give it a slightly larger title to highlight it */
#news .esp-section-title {
    font-size: clamp(26px, 3vw, 38px);
}

/* Announcement / notices band — used when notices section is present */
.espg-notices-band {
    background: #002244 !important;
    color: #ffffff;
    padding: 32px;
    border-radius: 8px;
    margin-bottom: clamp(26px, 4vw, 46px);
    border: 0 !important;
    box-shadow: 0 4px 18px rgba(0,34,68,.18) !important;
}

.espg-notices-band .esp-section-title {
    color: #ffffff;
}

.espg-notices-band .esp-section-title::after {
    background: #C9A227 !important;
}

.espg-notice-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.espg-notice-item {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 8px;
    padding: 18px;
}

.espg-notice-item h3 {
    margin: 0 0 8px;
    font-size: 17px;
    color: #ffffff;
}

.espg-notice-item p {
    margin: 0 0 12px;
    font-size: 14px;
    color: rgba(255,255,255,.82);
}

.espg-notice-link {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 6px;
    background: #C9A227;
    color: #111 !important;
    font-size: 13px;
    font-weight: 800;
}

.espg-notice-link:hover {
    background: #ffffff;
    color: #002244 !important;
}

/* ── Breaking news ticker ─────────────────────────────────────────── */
.espg-ticker {
    background: #002244;
    color: #ffffff;
    padding: 9px 0;
    overflow: hidden;
    position: relative;
    z-index: 10;
}
.espg-ticker-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    overflow: hidden;
}
.espg-ticker-label {
    flex: 0 0 auto;
    background: #C9A227;
    color: #111;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 4px;
    white-space: nowrap;
}
.espg-ticker-track {
    flex: 1;
    overflow: hidden;
    min-width: 0;
}
.espg-ticker-items {
    display: flex;
    gap: 52px;
    white-space: nowrap;
    animation: espgTickerScroll 28s linear infinite;
    width: max-content;
}
.espg-ticker-items:hover { animation-play-state: paused; }
.espg-ticker-item {
    color: rgba(255,255,255,.88);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
.espg-ticker-item::before {
    content: '◆';
    margin-right: 10px;
    color: #C9A227;
    font-size: 9px;
}
.espg-ticker-item:hover { color: #C9A227; }
@keyframes espgTickerScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ── Province stats band ──────────────────────────────────────────── */
.espg-stats-band {
    background: #002244;
    color: #fff;
    padding: 22px 0;
    margin-bottom: 0;
}
.espg-stats-band-inner {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    text-align: center;
}
.espg-stat-item {
    padding: 8px 16px;
    border-right: 1px solid rgba(255,255,255,.14);
}
.espg-stat-item:last-child { border-right: 0; }
.espg-stat-num {
    display: block;
    font-size: clamp(22px, 2.4vw, 34px);
    font-weight: 900;
    color: #C9A227;
    line-height: 1.1;
}
.espg-stat-lbl {
    display: block;
    font-size: 11px;
    color: rgba(255,255,255,.72);
    margin-top: 5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}
@media (max-width: 768px) {
    .espg-stats-band-inner { grid-template-columns: repeat(2, 1fr); }
    .espg-stat-item:nth-child(2n) { border-right: 0; }
    .espg-stat-item { border-bottom: 1px solid rgba(255,255,255,.1); }
    .espg-stat-item:nth-last-child(-n+2) { border-bottom: 0; }
}

/* ── Section header with "View all" link ─────────────────────────── */
.espg-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}
.espg-section-header .esp-section-title {
    margin-bottom: 0;
}
.espg-view-all {
    flex: 0 0 auto;
    font-size: 14px;
    font-weight: 700;
    color: #C9A227;
    text-decoration: none;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: border-color .2s ease;
}
.espg-view-all:hover { border-bottom-color: #C9A227; color: #C9A227; }

/* ── Featured news layout ─────────────────────────────────────────── */
.espg-news-featured-wrap {
    display: grid;
    grid-template-columns: 1.65fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
.espg-news-featured-card .esp-news-card-media {
    aspect-ratio: 16 / 9;
}
.espg-news-featured-card .esp-news-card-body h3 {
    font-size: clamp(20px, 1.9vw, 26px);
    line-height: 1.22;
}
.espg-news-side-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.espg-news-side-card {
    display: grid !important;
    grid-template-columns: 130px 1fr;
    min-height: 0;
}
.espg-news-side-card .esp-news-card-media {
    aspect-ratio: unset !important;
    height: 100%;
    border-radius: 0;
    overflow: hidden;
}
.espg-news-side-card .esp-news-card-media img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    display: block;
}
.espg-news-side-card .esp-news-card-media a {
    display: block;
    height: 100%;
}
.espg-news-side-card .esp-news-card-body {
    padding: 14px 16px;
}
.espg-news-side-card .esp-news-card-body h3 {
    font-size: 15px;
    line-height: 1.28;
}
.espg-news-side-card .esp-news-card-body p {
    font-size: 13px;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.espg-news-extra {
    margin-top: 0;
}

/* Smaller "Read more" link variant */
.espg-news-link-sm {
    padding: 7px 13px !important;
    font-size: 13px !important;
    min-height: 34px !important;
}

/* MP photo placeholder */
.espg-mp-photo-placeholder {
    width: 100%;
    height: 280px;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 960px) {
    .espg-news-featured-wrap {
        grid-template-columns: 1fr;
    }
    .espg-news-side-card {
        grid-template-columns: 110px 1fr !important;
    }
}
@media (max-width: 600px) {
    .espg-news-side-card {
        grid-template-columns: 1fr !important;
        display: flex !important;
        flex-direction: column;
    }
    .espg-news-side-card .esp-news-card-media {
        aspect-ratio: 4/3 !important;
        height: auto;
    }
    .espg-section-header { flex-wrap: wrap; }
}

/* ── Quick Services: equal-height cards, button pinned to bottom ── */
#services .esp-card-grid.four {
    align-items: stretch;
}
#services .esp-service-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}
#services .esp-service-card .esp-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    align-items: center;
    text-align: center;
}
#services .esp-service-card .esp-card-body h3 {
    margin-bottom: 10px;
}
#services .esp-service-card .esp-card-body p {
    flex: 1;
    margin-bottom: 0;
}
#services .esp-service-card .esp-news-link,
#services .esp-service-card .esp-news-link:visited {
    margin-top: 20px !important;
    padding: 10px 30px !important;
    background: #063d2a !important;
    color: #fff !important;
    border-radius: 999px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    min-height: 40px !important;
    box-shadow: 0 4px 12px rgba(6,61,42,0.18) !important;
    letter-spacing: 0.4px;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    align-self: center;
}
#services .esp-service-card .esp-news-link:hover {
    background: #0b5a3a !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(6,61,42,0.28) !important;
}

/* ── Provincial Development Projects on homepage: match Services cards ── */
#projects .esp-card-grid {
    align-items: stretch;
}
#projects .esp-simple-card {
    display: flex;
    flex-direction: column;
}
#projects .esp-simple-card p {
    flex: 1;
    margin-bottom: 0;
}
#projects .esp-simple-card .esp-news-link,
#projects .esp-simple-card .esp-news-link:visited {
    margin-top: 20px !important;
    padding: 10px 30px !important;
    background: #063d2a !important;
    color: #fff !important;
    border-radius: 999px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    min-height: 40px !important;
    box-shadow: 0 4px 12px rgba(6,61,42,0.18) !important;
    letter-spacing: 0.4px;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    align-self: flex-start;
}
#projects .esp-simple-card .esp-news-link:hover {
    background: #0b5a3a !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(6,61,42,0.28) !important;
}

/* ── Inner page hero (shared across all non-front pages) ─────────── */
.espg-inner-hero {
    min-height: clamp(240px, 34vh, 360px) !important;
}

.espg-inner-hero .esp-hero-content {
    padding: 48px 0 64px;
    max-width: 860px;
}

.espg-inner-hero h1 {
    font-size: clamp(26px, 3.8vw, 48px) !important;
    margin-bottom: 0 !important;
}

.espg-page-breadcrumb {
    display: block;
    margin: 0 0 14px;
    font-size: 14px;
    color: rgba(255,255,255,.7);
    letter-spacing: .02em;
}

.espg-page-breadcrumb a {
    color: rgba(255,255,255,.7);
    text-decoration: none;
}

.espg-page-breadcrumb a:hover {
    color: #C9A227;
    text-decoration: underline;
}

/* Inner page content area spacing */
.espg-inner-content {
    padding-top: 36px;
    padding-bottom: 48px;
}

.espg-inner-content .main-column {
    max-width: 860px;
}

/* Single post thumbnail */
.espg-post-thumbnail {
    margin: 0 0 24px;
    border-radius: 8px;
    overflow: hidden;
}

.espg-post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .espg-inner-hero {
        min-height: clamp(200px, 28vh, 280px) !important;
    }
    .espg-inner-hero .esp-hero-content {
        padding: 36px 0 50px;
        text-align: center;
    }
    .espg-page-breadcrumb {
        text-align: center;
    }
}

/* ── District hero: two-column layout (left text + right news float) */
.espg-district-hero-wrap {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 32px !important;
    padding-top: 52px !important;
    padding-bottom: 68px !important;
}
.espg-district-hero-left {
    flex: 1 !important;
    min-width: 0 !important;
}

/* ── District hero emblem (shows when no news panel) ── */
.espg-hero-emblem {
    flex: 0 0 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    animation: espgHnfSlideIn 0.6s cubic-bezier(0.22,1,0.36,1) 0.15s both;
}
.espg-hero-emblem svg {
    width: 170px;
    height: 170px;
    filter: drop-shadow(0 4px 24px rgba(0,0,0,0.35));
}

.espg-hero-emblem.has-district-logo {
    flex-basis: 220px;
}

.espg-district-hero-logo {
    width: 190px;
    height: 190px;
    object-fit: contain;
    filter: drop-shadow(0 10px 28px rgba(0,0,0,.38));
}
.espg-hero-emblem-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
}
@media (max-width: 720px) {
    .espg-hero-emblem:not(.has-district-logo) { display: none; }
    .espg-hero-emblem.has-district-logo {
        display: flex;
        flex: 0 0 120px;
    }
    .espg-district-hero-logo {
        width: 110px;
        height: 110px;
    }
}

/* ── Floating news panel (slide in from right on load) ───────────── */
.espg-hero-news-float {
    flex: 0 0 296px;
    width: 296px;
    background: rgba(0, 8, 24, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.13);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    animation: espgHnfSlideIn 0.55s cubic-bezier(0.22,1,0.36,1) 0.2s both;
}
@keyframes espgHnfSlideIn {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}
.espg-hnf-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: rgba(201,162,39,0.16);
    border-bottom: 1px solid rgba(255,255,255,0.09);
}
.espg-hnf-label {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .11em;
    text-transform: uppercase;
    color: #C9A227;
}
.espg-hnf-all {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    transition: color .2s;
}
.espg-hnf-all:hover { color: #C9A227; }
.espg-hnf-list {
    display: flex;
    flex-direction: column;
}
.espg-hnf-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    text-decoration: none;
    transition: background .18s ease;
}
.espg-hnf-item:last-child { border-bottom: none; }
.espg-hnf-item:hover { background: rgba(255,255,255,0.07); }
.espg-hnf-thumb {
    flex: 0 0 60px;
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    background: rgba(255,255,255,0.07);
}
.espg-hnf-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.espg-hnf-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.espg-hnf-cat {
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: #C9A227;
    line-height: 1;
}
.espg-hnf-title {
    font-size: 12.5px;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    line-height: 1.32;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.espg-hnf-date {
    font-size: 10.5px;
    color: rgba(255,255,255,0.38);
    margin-top: 1px;
}
@media (max-width: 1100px) {
    .espg-hero-news-float { flex: 0 0 260px; width: 260px; }
}
@media (max-width: 860px) {
    .espg-district-hero-wrap {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding-bottom: 28px !important;
        gap: 20px !important;
    }
    .espg-hero-news-float {
        flex: none !important;
        width: 100% !important;
        max-width: 480px;
    }
    .espg-hnf-list { flex-direction: row; flex-wrap: wrap; }
    .espg-hnf-item { flex: 0 0 calc(50% - 0px); border-right: 1px solid rgba(255,255,255,0.06); }
    .espg-hnf-item:nth-child(even) { border-right: none; }
}
@media (max-width: 520px) {
    .espg-hnf-list { flex-direction: column; }
    .espg-hnf-item { flex: none; border-right: none; }
    .espg-hero-news-float { max-width: 100%; }
}

/* ── MP card: clickable link to district page ────────────────────── */
.espg-mp-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: transform .22s ease, box-shadow .22s ease;
}
.espg-mp-card-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,34,68,.14) !important;
    text-decoration: none;
    color: inherit;
}
.espg-mp-card-img-wrap {
    position: relative;
    overflow: hidden;
}
.espg-mp-card-img-wrap img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform .3s ease;
}
.espg-mp-card-link:hover .espg-mp-card-img-wrap img {
    transform: scale(1.04);
}
.espg-mp-photo-placeholder {
    position: relative;
}
.espg-mp-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 14px;
    background: linear-gradient(to top, rgba(0,34,68,.78) 0%, transparent 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    text-align: center;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .22s ease, transform .22s ease;
    pointer-events: none;
}
.espg-mp-card-link:hover .espg-mp-card-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* ── District page news section header ───────────────────────────── */
.espg-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}
.espg-section-head .esp-h2 { margin-bottom: 0; }

/* ── District news grid (3-col, same style as front-page news) ───── */
.espg-district-news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
@media (max-width: 900px) {
    .espg-district-news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 580px) {
    .espg-district-news-grid { grid-template-columns: 1fr; }
}

/* ── District notices list ───────────────────────────────────────── */
.espg-notices-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.espg-notice-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #002244;
    border-radius: 8px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.espg-notice-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}
.espg-notice-badge {
    display: inline-block;
    background: #002244;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 4px;
}
.espg-notice-date {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
}
.espg-notice-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}
.espg-notice-title a {
    color: #002244;
    text-decoration: none;
}
.espg-notice-title a:hover { color: #C9A227; }
.espg-notice-desc {
    font-size: 13px;
    color: #475569;
    margin: 0;
    line-height: 1.5;
}
.espg-notice-link {
    font-size: 13px;
    font-weight: 700;
    color: #002244;
    text-decoration: none;
    margin-top: auto;
}
.espg-notice-link:hover { color: #C9A227; }
@media (max-width: 640px) {
    .espg-notices-list { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════
   WordPress Theme Feel
   Generous whitespace · Modern typography · Friendly cards
   ═══════════════════════════════════════════════════════════════════ */

/* ── Font & base ─────────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    letter-spacing: -0.02em;
    line-height: 1.18;
}
.site-main a { color: #0b6a46; transition: color .18s ease; }
.site-main a:hover { color: #063d2a; }

/* ── Sections: balanced breathing room ──────────────────────────── */
.esp-section {
    padding: clamp(44px, 5.5vw, 72px) 0 !important;
    background: #ffffff !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
}
.esp-section:nth-of-type(even) {
    background: #f8fafc !important;
    border-top: 1px solid #f1f5f9 !important;
    border-bottom: 1px solid #f1f5f9 !important;
}
/* Restore org chart break-out centering (margin-left:50% + translateX trick) */
#administration.esp-section {
    margin-left: 50% !important;
    padding: clamp(12px, 2vw, 22px) !important;
}

/* ── Section headings ────────────────────────────────────────────── */
h2.esp-section-title {
    font-size: clamp(28px, 3.6vw, 46px) !important;
    font-weight: 800 !important;
    letter-spacing: -0.03em !important;
    color: #0f172a !important;
    text-align: center;
    margin-bottom: 36px !important;
    padding-bottom: 0 !important;
    line-height: 1.15 !important;
}
h2.esp-section-title::after {
    display: none !important;
}

/* ── Cards: airy, rounded, subtle ───────────────────────────────── */
.esp-card {
    border-radius: 24px !important;
    padding: 36px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.05), 0 6px 24px rgba(15,23,42,.07) !important;
    border: 1px solid rgba(226,232,240,.9) !important;
    transition: box-shadow .25s ease, transform .25s ease !important;
}
.esp-card:not(.espg-mp-card-link):hover {
    box-shadow: 0 2px 8px rgba(0,0,0,.06), 0 16px 48px rgba(15,23,42,.12) !important;
    transform: translateY(-3px) !important;
}
.esp-card h3 {
    font-size: 19px !important;
    font-weight: 700 !important;
    letter-spacing: -.015em !important;
    line-height: 1.3 !important;
}
.esp-card p { font-size: 15px !important; color: #64748b !important; line-height: 1.75 !important; }

/* ── News cards ──────────────────────────────────────────────────── */
.esp-news-card {
    border-radius: 20px !important;
    border: 1px solid rgba(226,232,240,.8) !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.04), 0 6px 20px rgba(15,23,42,.07) !important;
    transition: box-shadow .25s ease, transform .25s ease !important;
}
.esp-news-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,.06), 0 20px 56px rgba(15,23,42,.12) !important;
    transform: translateY(-5px) !important;
}
.esp-news-card-body { padding: 24px !important; }
.esp-news-card h3,
.esp-news-title {
    font-size: 17px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    letter-spacing: -.015em !important;
    margin-bottom: 10px !important;
}
.esp-news-card p,
.esp-news-excerpt {
    font-size: 14.5px !important;
    line-height: 1.72 !important;
    color: #64748b !important;
}
.esp-news-grid,
.espg-district-news-grid { gap: 28px !important; }
.esp-news-kicker {
    font-size: 11px !important;
    letter-spacing: .11em !important;
    margin-bottom: 10px !important;
}
.esp-news-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
}
.esp-news-date { font-size: 12px; color: #94a3b8; font-weight: 600; }

/* ── "Read more" button ──────────────────────────────────────────── */
.esp-news-link,
.esp-news-link:visited {
    border-radius: 12px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    padding: 8px 18px !important;
    min-height: 36px !important;
    letter-spacing: .01em !important;
}

/* ── Inner page comfort ──────────────────────────────────────────── */
.espg-inner-content { padding-top: 56px !important; padding-bottom: 80px !important; }
.main-column,
.page-card,
.article-card,
.archive-card {
    border-radius: 22px !important;
    padding: 48px !important;
    background: #fff !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.04), 0 6px 28px rgba(15,23,42,.08) !important;
    border: 1px solid rgba(226,232,240,.6) !important;
}
.entry-content { font-size: 17px !important; line-height: 1.84 !important; color: #334155 !important; }
.entry-content p { margin-bottom: 24px !important; }
.entry-content h2 {
    font-size: clamp(22px, 3vw, 30px) !important;
    font-weight: 800 !important;
    letter-spacing: -.025em !important;
    margin: 44px 0 14px !important;
    color: #0f172a !important;
}
.entry-content h3 {
    font-size: clamp(18px, 2.2vw, 23px) !important;
    font-weight: 700 !important;
    margin: 34px 0 10px !important;
    color: #1e293b !important;
}
.entry-content ul,
.entry-content ol { margin: 0 0 24px 26px !important; line-height: 1.82 !important; }
.entry-content li { margin-bottom: 8px !important; }
.entry-meta {
    font-size: 13.5px !important;
    color: #94a3b8 !important;
    margin-bottom: 28px !important;
    padding-bottom: 24px !important;
    border-bottom: 1px solid #f1f5f9 !important;
}
.espg-post-thumbnail { margin-bottom: 32px !important; border-radius: 16px !important; overflow: hidden !important; }

/* ── District page: airy & friendly ─────────────────────────────── */
.district-page-wrapper { padding-bottom: 60px !important; }
.district-page .esp-section {
    padding: clamp(36px, 5vw, 64px) 0 !important;
    margin-top: 0 !important;
}
.district-page .esp-card,
.district-page .mp-col,
.district-page .plan-col {
    border-radius: 22px !important;
    padding: 32px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.05), 0 6px 22px rgba(15,23,42,.08) !important;
    border: 1px solid rgba(226,232,240,.8) !important;
}
.district-page .esp-h2 {
    font-size: clamp(20px, 2.6vw, 28px) !important;
    font-weight: 800 !important;
    letter-spacing: -.025em !important;
    color: #0f172a !important;
    margin-bottom: 20px !important;
}
.district-page .esp-p { font-size: 16px !important; line-height: 1.82 !important; color: #475569 !important; }
.district-page .esp-grid-2 { gap: 28px !important; }
.district-page .esp-stat {
    border-radius: 20px !important;
    border-left: none !important;
    border-top: 4px solid #C9A227 !important;
    border-right: none !important;
    border-bottom: none !important;
    padding: 24px 20px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.04), 0 6px 18px rgba(15,23,42,.07) !important;
    background: #fff !important;
}
.district-page .esp-stat .k { font-size: 28px !important; font-weight: 900 !important; letter-spacing: -.03em !important; }
.district-page .esp-stat .l { font-size: 13px !important; color: #64748b !important; font-weight: 600 !important; }
.district-page .esp-service {
    border-radius: 20px !important;
    border-top: 4px solid #C9A227 !important;
    border-left: none !important; border-right: none !important; border-bottom: none !important;
    padding: 26px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.04), 0 6px 18px rgba(15,23,42,.07) !important;
    background: #fff !important;
}
.district-page .esp-service .t { font-size: 17px !important; font-weight: 800 !important; letter-spacing: -.01em !important; }
.district-page .esp-service .c { font-size: 15px !important; color: #64748b !important; line-height: 1.7 !important; }
.district-page .esp-person {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 14px 16px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(226,232,240,.8) !important;
    border-left: 4px solid var(--espg-elementor-green-2, #0b6a46) !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.04), 0 4px 16px rgba(15,23,42,.06) !important;
}
.district-page .esp-person::before {
    display: none !important;
}
.district-page .esp-avatar-placeholder,
.district-page .esp-person .esp-avatar {
    flex: 0 0 48px !important;
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
}
.district-page .esp-person .n { font-size: 14px !important; margin-bottom: 2px !important; }
.district-page .esp-person .r { font-size: 13px !important; }
.district-page .esp-list li { margin-bottom: 12px !important; line-height: 1.75 !important; }
.district-page .esp-note { font-size: 13px !important; color: #94a3b8 !important; line-height: 1.6 !important; }
.district-page .esp-strip { margin-top: 32px !important; }

/* ── Notices ─────────────────────────────────────────────────────── */
.espg-notice-item {
    border-radius: 18px !important;
    border: 1px solid rgba(226,232,240,.8) !important;
    border-left: 4px solid #0b6a46 !important;
    padding: 24px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.04), 0 4px 16px rgba(15,23,42,.07) !important;
    background: #fff !important;
}
.espg-notices-list { gap: 20px !important; }

/* ── Stat grid on homepage ───────────────────────────────────────── */
.esp-stat-grid { gap: 20px !important; }
.esp-stat-item {
    border-radius: 20px !important;
    padding: 28px 20px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.05), 0 6px 20px rgba(15,23,42,.07) !important;
    border: 1px solid rgba(226,232,240,.7) !important;
}

/* ── Governor / hero cards ───────────────────────────────────────── */
.esp-governor-card { border-radius: 24px !important; overflow: hidden !important; }

/* ── Responsive adjustments ──────────────────────────────────────── */
@media (max-width: 768px) {
    .esp-section { padding: clamp(44px, 12vw, 72px) 0 !important; }
    h2.esp-section-title { font-size: clamp(24px, 7vw, 34px) !important; }
    h2.esp-section-title::after { margin: 14px auto 36px; }
    .main-column,
    .page-card,
    .article-card,
    .archive-card { padding: 28px !important; border-radius: 16px !important; }
    .esp-card { padding: 24px !important; border-radius: 18px !important; }
    .district-page .esp-card,
    .district-page .mp-col,
    .district-page .plan-col { padding: 22px !important; border-radius: 16px !important; }
    .espg-inner-content { padding-top: 36px !important; padding-bottom: 52px !important; }
}

/* ── District Leaflet boundary map ──────────────────────────────── */
.esp-district-leaflet-map {
    width: 100%;
    height: 340px;
    border-radius: 10px;
    overflow: hidden;
    z-index: 0;
}

/* ── Centre download buttons in About article and Plan card ─────── */
.district-page article .esp-btns,
.district-page .esp-card .esp-btns {
    justify-content: center !important;
}

/* ── Card buttons — visible on white card backgrounds ────────────── */
.district-page .esp-card .esp-btns .esp-btn {
    background: var(--espg-elementor-green-2, #0b6a46) !important;
    color: #fff !important;
    border-color: var(--espg-elementor-green-2, #0b6a46) !important;
}
.district-page .esp-card .esp-btns .esp-btn:hover {
    opacity: 0.85;
}

/* ── Placeholder / TBC text style ───────────────────────────────── */
.esp-tbc {
    color: #94a3b8 !important;
    font-style: italic !important;
    font-weight: 400 !important;
}

.district-page .esp-stat .k.is-pending {
    color: #64748b !important;
    font-size: 15px !important;
    font-style: italic;
    letter-spacing: 0 !important;
    line-height: 1.3;
}

.esp-verification-notice {
    grid-column: 1 / -1;
    margin: 0;
    padding: 18px 20px;
    border: 1px solid #eadca9;
    border-radius: 10px;
    background: #fff9e8;
    color: #5f5130;
    line-height: 1.6;
}

/* ── LLG photo card — compact sizing ────────────────────────────── */
.esp-photo-card {
    padding: 14px 12px !important;
}
.esp-photo-card .esp-avatar-placeholder {
    width: 56px !important;
    height: 56px !important;
    border-radius: 50%;
    border: 2px solid #f0ead6;
    margin: 0 auto 10px;
    flex: none;
}
.esp-photo-card .esp-avatar-placeholder svg {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}
.esp-photo-card img {
    width: 56px !important;
    height: 56px !important;
    margin-bottom: 10px !important;
}
.esp-photo-card h3 {
    font-size: 13px !important;
    margin-bottom: 4px !important;
}
.esp-photo-card p {
    font-size: 12px !important;
    margin-bottom: 2px !important;
}


/* ── All Districts page ──────────────────────────────────────────── */
.espg-map-hint {
    color: #555;
    font-size: 14px;
    margin-bottom: 14px;
}

.espg-all-districts-map-wrap {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 14px rgba(0,0,0,0.10);
    border: 2px solid #e7dfbf;
}

#espg-districts-map {
    width: 100%;
    height: 500px;
    background: #eef4ea;
    z-index: 0;
}

@media (max-width: 768px) {
    #espg-districts-map { height: 340px; }
}

/* Legend strip below map */
.espg-districts-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    padding: 12px 16px;
    background: #fff;
    border-top: 1px solid #e5e7eb;
}

.espg-dl-item {
    display: flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
    color: #222;
    font-size: 13px;
    font-weight: 500;
    transition: opacity .15s;
}
.espg-dl-item:hover { opacity: .65; }

.espg-dl-swatch {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 3px;
    flex-shrink: 0;
}

/* District cards grid */
.espg-districts-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 8px;
}

@media (max-width: 900px) {
    .espg-districts-cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .espg-districts-cards-grid { grid-template-columns: 1fr; }
}

.espg-district-card {
    display: flex;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    text-decoration: none;
    color: inherit;
    transition: transform .2s, box-shadow .2s;
    border: 1px solid #ece9e0;
}
.espg-district-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    color: inherit;
}

.espg-dc-accent {
    width: 6px;
    flex-shrink: 0;
}

.espg-dc-body {
    padding: 16px 18px;
    flex: 1;
}

.espg-dc-body h3 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
}

.espg-dc-stats {
    list-style: none;
    padding: 0;
    margin: 0 0 10px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 13px;
    color: #555;
}

.espg-dc-stats span {
    font-weight: 600;
    color: #333;
    margin-right: 4px;
}

.espg-dc-link {
    font-size: 13px;
    font-weight: 600;
    color: #0b6a46;
}

/* Map popups */
.espg-dp-popup {
    min-width: 160px;
    line-height: 1.6;
}
.espg-dp-swatch {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    margin-right: 5px;
    vertical-align: middle;
}
.espg-dp-link {
    color: #0b6a46 !important;
    font-weight: 600;
    text-decoration: underline;
}

/* Homepage design refresh from supplied mockup. Header and footer remain untouched. */
body.home {
    --home-gold: #c9991a;
    --home-gold-light: #e6b833;
    --home-gold-dark: #9e7b00;
    --home-green-900: #0d2214;
    --home-green-800: #0f3d20;
    --home-green-700: #166534;
    --home-green-50: #f4f9f4;
    --home-white: #ffffff;
    --home-gray-50: #f8faf8;
    --home-gray-100: #f0f4f0;
    --home-gray-200: #e2ebe2;
    --home-gray-400: #9ca89c;
    --home-gray-600: #4a5a4a;
    --home-gray-800: #1f2d1f;
    --home-red: #bb1e2f;
    --home-shadow-sm: 0 1px 4px rgba(10, 40, 20, 0.07);
    --home-shadow-md: 0 4px 16px rgba(10, 40, 20, 0.09);
    --home-shadow-lg: 0 8px 32px rgba(10, 40, 20, 0.12);
    background-color: #eef4ee !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='%23166534' stroke-width='1.2' stroke-opacity='0.13'%3E%3Cpath d='M0 25 Q12.5 10 25 25 Q37.5 40 50 25 Q62.5 10 75 25 Q87.5 40 100 25'/%3E%3Cpath d='M0 50 Q12.5 35 25 50 Q37.5 65 50 50 Q62.5 35 75 50 Q87.5 65 100 50'/%3E%3Cpath d='M0 75 Q12.5 60 25 75 Q37.5 90 50 75 Q62.5 60 75 75 Q87.5 90 100 75'/%3E%3Cpath d='M25 0 L50 25 L25 50 L0 25Z'/%3E%3Cpath d='M75 0 L100 25 L75 50 L50 25Z'/%3E%3Cpath d='M25 50 L50 75 L25 100 L0 75Z'/%3E%3Cpath d='M75 50 L100 75 L75 100 L50 75Z'/%3E%3Ccircle cx='50' cy='25' r='3'/%3E%3Ccircle cx='50' cy='75' r='3'/%3E%3Ccircle cx='0' cy='50' r='3'/%3E%3Ccircle cx='100' cy='50' r='3'/%3E%3C/g%3E%3C/svg%3E") !important;
    background-repeat: repeat !important;
    background-size: 100px 100px !important;
}

.home .site-main {
    padding: 0;
}

.home .site-main > .container {
    max-width: 1200px;
    padding-top: 48px;
    padding-bottom: 0;
}

.home .esp-section {
    background: var(--home-white) !important;
    border: 1px solid rgba(22, 101, 52, 0.07) !important;
    border-radius: 12px;
    box-shadow: var(--home-shadow-sm) !important;
    margin-bottom: 28px;
    padding: 44px 40px;
}

.home .esp-section--tinted {
    background: var(--home-green-50) !important;
}

.home .esp-section-title {
    color: var(--home-gray-800);
    font-size: clamp(20px, 2.6vw, 28px) !important;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.2;
    margin: 0 0 28px;
}

.home .esp-section-title--center {
    text-align: center;
}

.home .esp-section-title--underline {
    border-bottom: 2px solid var(--home-gray-200);
    margin-bottom: 28px;
    padding-bottom: 16px;
}

.home .espg-section-header {
    align-items: baseline;
    display: flex;
    justify-content: space-between;
    margin-bottom: 28px;
}

.home .espg-view-all {
    color: var(--home-green-700);
    font-size: 13px;
    font-weight: 700;
}

.home .espg-view-all:hover {
    color: var(--home-gold-dark);
}

.home .espg-news-featured-wrap {
    display: grid;
    gap: 20px;
    grid-template-columns: 1.6fr 1fr;
}

.home .espg-news-featured-card .esp-news-card-media {
    aspect-ratio: 16 / 10;
}

.home .espg-news-side-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.home .espg-news-side-card {
    display: flex !important;
    flex-direction: column;
}

.home .espg-news-side-card .esp-news-card-media {
    aspect-ratio: 16 / 8 !important;
    border-radius: 0;
    height: auto;
}

.home .esp-news-card,
.home .esp-card,
.home .esp-simple-card,
.home .esp-service-card {
    background: var(--home-white);
    border: 1px solid var(--home-gray-200);
    border-radius: 16px;
    box-shadow: var(--home-shadow-sm);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}

.home .esp-news-card:hover,
.home .esp-card:hover,
.home .esp-simple-card:hover,
.home .esp-service-card:hover {
    box-shadow: var(--home-shadow-lg);
    transform: translateY(-3px);
}

.home .esp-news-card-media {
    overflow: hidden;
    position: relative;
}

.home .esp-news-card-media a {
    display: block;
    height: 100%;
}

.home .esp-news-card-media img {
    display: block;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    width: 100%;
}

.home .esp-news-card:hover .esp-news-card-media img {
    transform: scale(1.04);
}

.home .esp-news-date-badge {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: var(--home-shadow-sm);
    color: #111111;
    font-size: 11px;
    font-weight: 700;
    left: 12px;
    padding: 4px 10px;
    position: absolute;
    top: 12px;
}

.home .esp-news-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 20px;
}

.home .esp-news-kicker {
    color: var(--home-green-700);
    display: inline-block;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.home .esp-news-card h3 {
    color: var(--home-gray-800);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 8px;
}

.home .esp-news-card p {
    color: var(--home-gray-600);
    flex: 1;
    font-size: 13.5px;
    line-height: 1.65;
    margin: 0 0 16px;
}

.home .esp-news-link {
    align-items: center;
    align-self: flex-start;
    background: var(--home-gold);
    border-radius: 20px;
    color: #ffffff;
    display: inline-flex;
    font-size: 12.5px;
    font-weight: 700;
    justify-content: center;
    padding: 9px 18px;
}

.home .espg-news-link-sm {
    font-size: 11.5px;
    padding: 7px 14px;
}

.home .esp-news-link:hover {
    background: var(--home-gold-dark);
    color: #ffffff;
}

.home .esp-mvv-grid,
.home .esp-card-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home .esp-card-grid.four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home .esp-mvv-card {
    background: var(--home-white);
    border: 1px solid var(--home-gray-200);
    border-radius: 12px;
    box-shadow: var(--home-shadow-sm);
    overflow: hidden;
    padding: 28px 24px;
    position: relative;
    transition: box-shadow 0.2s, transform 0.2s;
}

.home .esp-mvv-card:hover {
    box-shadow: var(--home-shadow-lg);
    transform: translateY(-3px);
}

.home .esp-mvv-card::before {
    content: "";
    height: 4px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.home .esp-mvv-card:nth-child(1)::before {
    background: linear-gradient(to right, var(--home-red), #e6a31a);
}

.home .esp-mvv-card:nth-child(2)::before {
    background: linear-gradient(to right, #e6a31a, var(--home-gold));
}

.home .esp-mvv-card:nth-child(3)::before {
    background: linear-gradient(to right, var(--home-gold), var(--home-green-700));
}

.home .esp-mvv-card h3,
.home .esp-simple-card h3,
.home .esp-service-card h3 {
    color: var(--home-gray-800);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.3;
    margin: 14px 0 10px;
}

.home .esp-mvv-card p,
.home .esp-simple-card p,
.home .esp-service-card p {
    color: var(--home-gray-600);
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}

.home .esp-stat-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-top: 24px;
}

.home .esp-stat-box {
    background: #ffffff;
    border: 1px solid var(--home-gray-200);
    border-top: 4px solid var(--home-gold);
    border-radius: 12px;
    box-shadow: var(--home-shadow-sm);
    padding: 18px;
}

.home .esp-stat-box::before {
    display: none;
}

.home .esp-stat-label {
    color: var(--home-gray-400);
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.home .esp-stat-value {
    color: var(--home-gray-800);
    display: block;
    font-size: 22px;
    font-weight: 800;
}

.home #about > p {
    color: var(--home-gray-600);
    font-size: 15px;
    line-height: 1.7;
    margin: 0 0 14px;
}

.home #about {
    padding: 44px 40px;
}

.home #about .esp-section-title {
    margin-bottom: 28px;
    padding-bottom: 16px;
}

.home #about > p {
    max-width: none;
}

.home #about .esp-stat-grid {
    gap: 14px;
    margin: 24px 0 0;
}

.home #about .esp-stat-box {
    justify-content: flex-start;
    min-height: 100px;
    padding: 18px;
}

.home #about .esp-stat-label {
    letter-spacing: 0.04em;
}

.home #about .esp-stat-value {
    line-height: 1.15;
}

.home .esp-governor-card {
    align-items: center;
    background: var(--home-green-50);
    border: 1px solid rgba(22, 101, 52, 0.1);
    border-radius: 12px;
    box-shadow: var(--home-shadow-sm);
    display: grid;
    gap: 32px;
    grid-template-columns: 220px 1fr;
    padding: 32px;
}

.home .esp-governor-media img {
    aspect-ratio: 4 / 5;
    border: 3px solid var(--home-gold);
    border-radius: 12px;
    box-shadow: var(--home-shadow-md);
    object-fit: cover;
    object-position: top;
    width: 100%;
}

.home .esp-governor-content h3 {
    color: var(--home-gray-800);
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 12px;
}

.home .esp-governor-content p {
    color: var(--home-gray-600);
    font-size: 15px;
    line-height: 1.75;
    margin: 0;
}

.home .espg-mp-card-link {
    color: inherit;
    display: block;
    text-align: center;
}

.home .espg-mp-card-img-wrap {
    overflow: hidden;
    position: relative;
}

.home .espg-mp-card-img-wrap img {
    height: 180px;
    object-fit: cover;
    object-position: top;
    transition: transform 0.4s;
    width: 100%;
}

.home .espg-mp-card-link:hover .espg-mp-card-img-wrap img {
    transform: scale(1.05);
}

.home .espg-mp-card-overlay {
    align-items: center;
    background: rgba(10, 60, 25, 0.55);
    color: #ffffff;
    display: flex;
    font-size: 13px;
    font-weight: 700;
    inset: 0;
    justify-content: center;
    opacity: 0;
    position: absolute;
    transition: opacity 0.2s;
}

.home .espg-mp-card-link:hover .espg-mp-card-overlay {
    opacity: 1;
}

.home .esp-card-body {
    padding: 16px 14px 18px;
}

.home .esp-card h3 {
    color: var(--home-gray-800);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 5px;
}

.home .esp-card p {
    color: var(--home-gray-400);
    font-size: 12px;
    font-weight: 500;
    margin: 0;
}

.home .esp-service-card .esp-card-body {
    border-top: 4px solid var(--home-gold);
    padding: 28px 22px 26px;
    text-align: center;
}

.home .esp-service-card .esp-news-link {
    margin: 20px auto 0;
}

.home .esp-simple-card {
    padding: 26px 24px;
}

.home #administration.esp-section {
    padding: 0;
}

.home .esp-admin-structure {
    border: 1px solid var(--home-gray-200);
    border-radius: 12px;
    box-shadow: var(--home-shadow-sm);
    margin: 0;
    overflow: hidden;
}

.home .esp-admin-structure .esp-admin-banner {
    align-items: center;
    background: var(--home-green-700);
    color: #ffffff;
    display: flex;
    font-size: 22px;
    font-weight: 800;
    justify-content: space-between;
    letter-spacing: 0;
    padding: 22px 36px;
    text-transform: uppercase;
}

.home .esp-admin-structure .esp-admin-banner:hover {
    background: #0f5228;
    color: #ffffff;
}

.home .esp-admin-chart {
    border-top: 1px solid var(--home-gray-200);
    display: grid;
    grid-template-columns: 220px 1fr;
}

.home .esp-admin-rail {
    background: var(--home-green-700);
    display: flex;
    flex-direction: column;
}

.home .esp-admin-rail-item {
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    display: flex;
    font-size: 12px;
    font-weight: 700;
    gap: 12px;
    letter-spacing: 0;
    line-height: 1.35;
    padding: 18px 16px;
    text-transform: uppercase;
}

.home .esp-admin-rail-item:last-child {
    border-bottom: 0;
}

.home .esp-admin-icon svg {
    fill: currentColor;
    height: 24px;
    width: 24px;
}

.home .esp-admin-flow {
    align-items: center;
    background: var(--home-gray-50);
    display: flex;
    flex-direction: column;
    padding: 28px 24px 24px;
}

.home .esp-admin-node-exec {
    background: var(--home-green-900);
    border-radius: 6px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    padding: 13px 36px;
    text-transform: uppercase;
}

.home .esp-admin-row-sectors,
.home .esp-admin-row-districts {
    display: grid;
    gap: 12px;
    width: 100%;
}

.home .esp-admin-row-sectors {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.home .esp-admin-row-districts {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.home .esp-admin-sector,
.home .esp-admin-district,
.home .esp-admin-wide-node {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--home-gray-200);
    border-radius: 8px;
    box-shadow: var(--home-shadow-sm);
    color: var(--home-gray-800);
    display: flex;
    font-size: 12px;
    font-weight: 800;
    gap: 8px;
    justify-content: center;
    line-height: 1.25;
    min-height: 62px;
    padding: 10px;
    text-align: center;
}

.home .esp-admin-sector .esp-admin-icon {
    color: var(--home-green-700);
}

.home .esp-admin-wide-node {
    margin-top: 14px;
    min-width: 240px;
}

.home .esp-admin-wide-node .esp-admin-icon {
    color: var(--home-green-700);
}

.home .esp-admin-tagline {
    color: var(--home-gray-600);
    font-size: 14px;
    font-style: italic;
    margin: 18px 0 14px;
}

.home .esp-admin-cta-btn {
    background: var(--home-gold);
    border-radius: 6px;
    color: var(--home-green-900);
    display: inline-flex;
    font-size: 13px;
    font-weight: 800;
    padding: 12px 22px;
}

.home .esp-admin-cta-btn:hover {
    background: var(--home-gold-light);
    color: var(--home-green-900);
}

.esp-cta-band {
    background: linear-gradient(135deg, #082816 0%, #0d3d20 50%, #082816 100%);
    margin-top: 0;
    overflow: hidden;
    padding: 56px 0 52px;
    position: relative;
}

.esp-cta-band::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1' stroke-opacity='0.06'%3E%3Cpath d='M0 25 Q12.5 10 25 25 Q37.5 40 50 25 Q62.5 10 75 25 Q87.5 40 100 25'/%3E%3Cpath d='M0 50 Q12.5 35 25 50 Q37.5 65 50 50 Q62.5 35 75 50 Q87.5 65 100 50'/%3E%3Cpath d='M0 75 Q12.5 60 25 75 Q37.5 90 50 75 Q62.5 60 75 75 Q87.5 90 100 75'/%3E%3Cpath d='M25 0 L50 25 L25 50 L0 25Z'/%3E%3Cpath d='M75 0 L100 25 L75 50 L50 25Z'/%3E%3Cpath d='M25 50 L50 75 L25 100 L0 75Z'/%3E%3Cpath d='M75 50 L100 75 L75 100 L50 75Z'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 100px 100px;
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.esp-cta-band::after {
    background: linear-gradient(to right, #bb1e2f, #e6a31a, var(--home-gold), #1e8449);
    content: "";
    height: 4px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.esp-cta-band-inner {
    align-items: center;
    display: grid;
    gap: 48px;
    grid-template-columns: 1fr auto;
    position: relative;
    z-index: 1;
}

.esp-cta-band-text h2 {
    color: #ffffff;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 10px;
}

.esp-cta-band-text p {
    color: rgba(255, 255, 255, 0.68);
    font-size: 15px;
    line-height: 1.65;
    margin: 0;
}

.esp-cta-band-actions {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    gap: 10px;
}

.esp-cta-btn-primary,
.esp-cta-btn-outline {
    align-items: center;
    border-radius: 6px;
    display: inline-flex;
    font-size: 13px;
    font-weight: 800;
    justify-content: center;
    letter-spacing: 0;
    padding: 14px 28px;
    text-transform: uppercase;
    white-space: nowrap;
}

.esp-cta-btn-primary {
    background: var(--home-gold);
    color: var(--home-green-900);
}

.esp-cta-btn-primary:hover {
    background: var(--home-gold-light);
    color: var(--home-green-900);
}

.esp-cta-btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.88);
}

.esp-cta-btn-outline:hover {
    border-color: var(--home-gold);
    color: var(--home-gold);
}

@media (max-width: 1100px) {
    .home .espg-news-featured-wrap,
    .home .esp-governor-card,
    .home .esp-admin-chart {
        grid-template-columns: 1fr;
    }

    .home .esp-admin-rail {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .home .esp-admin-rail-item {
        border-bottom: 0;
        border-right: 1px solid rgba(255, 255, 255, 0.1);
    }

    .home .esp-admin-row-sectors {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .home .esp-admin-row-districts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .home .esp-mvv-grid,
    .home .esp-card-grid,
    .home .esp-card-grid.four,
    .home .esp-stat-grid,
    .esp-cta-band-inner {
        grid-template-columns: 1fr;
    }

    .home .esp-admin-rail,
    .home .esp-admin-row-sectors,
    .home .esp-admin-row-districts {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .home .site-main > .container {
        padding-top: 28px;
    }

    .home .esp-section {
        padding: 28px 20px;
    }

    .home .esp-section-title,
    .esp-cta-band-text h2 {
        font-size: 24px;
    }

    .home .esp-admin-rail,
    .home .esp-admin-row-sectors,
    .home .esp-admin-row-districts {
        grid-template-columns: 1fr;
    }

    .esp-cta-band {
        padding: 42px 0 40px;
    }
}

/* Final homepage alignment: match supplied About/Mandate reference. */
.home .site-main > .container {
    width: min(1200px, calc(100% - 40px));
}

.home #mission-vision-values.esp-section,
.home #about.esp-section {
    border: 1px solid rgba(22, 101, 52, 0.07) !important;
    border-radius: 12px !important;
    box-shadow: var(--home-shadow-sm) !important;
    margin-bottom: 20px !important;
    overflow: hidden;
    padding: 44px 40px !important;
}

.home #mission-vision-values.esp-section {
    background: var(--home-green-50) !important;
}

.home #mission-vision-values .esp-section-title {
    margin: 0 0 28px !important;
    text-align: center;
}

.home #mission-vision-values .esp-mvv-grid {
    gap: 20px !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home #mission-vision-values .esp-mvv-card {
    min-height: 186px;
    padding: 38px 24px 28px !important;
}

.home #about.esp-section {
    background: var(--home-white) !important;
}

.home #about .esp-section-title {
    border-bottom: 2px solid var(--home-gray-200) !important;
    margin: 0 0 28px !important;
    padding-bottom: 16px !important;
    text-align: center;
}

.home #about > p {
    color: var(--home-gray-600) !important;
    font-size: 15px !important;
    line-height: 1.7 !important;
    margin: 0 0 14px !important;
}

.home #about .esp-stat-grid {
    display: grid !important;
    gap: 14px !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    margin: 24px 0 24px !important;
}

.home #about .esp-stat-box {
    border: 1px solid var(--home-gray-200) !important;
    border-top: 4px solid var(--home-gold) !important;
    border-radius: 8px !important;
    box-shadow: var(--home-shadow-sm) !important;
    min-height: 100px !important;
    padding: 18px !important;
}

.home #about .esp-stat-box::before {
    display: none !important;
}

@media (max-width: 900px) {
    .home #mission-vision-values .esp-mvv-grid,
    .home #about .esp-stat-grid {
        grid-template-columns: 1fr !important;
    }
}

.home .esp-governor-section,
.home .esp-administrator-section,
.home #members-of-parliament,
.home #services,
.home #projects {
    border: 1px solid rgba(22, 101, 52, 0.07) !important;
    border-radius: 0 !important;
    box-shadow: var(--home-shadow-sm) !important;
    margin-bottom: 20px !important;
    padding: 44px 40px !important;
}

.home .esp-governor-section,
.home .esp-administrator-section,
.home #services {
    background: var(--home-green-50) !important;
}

.home #members-of-parliament,
.home #projects {
    background: var(--home-white) !important;
}

.home .esp-governor-section .esp-section-title,
.home .esp-administrator-section .esp-section-title,
.home #members-of-parliament .esp-section-title,
.home #services .esp-section-title,
.home #projects .esp-section-title {
    border-bottom: 2px solid var(--home-gray-200) !important;
    margin: 0 0 36px !important;
    padding-bottom: 16px !important;
    text-align: center;
}

.home .esp-governor-section .esp-governor-card {
    background: var(--home-green-50) !important;
    border: 1px solid rgba(22, 101, 52, 0.1) !important;
    border-radius: 12px !important;
    box-shadow: var(--home-shadow-sm) !important;
    display: grid !important;
    gap: 32px !important;
    grid-template-columns: 220px 1fr !important;
    padding: 32px !important;
}

.home .esp-administrator-section .esp-administrator-card {
    background: var(--home-green-50) !important;
    border: 1px solid rgba(22, 101, 52, 0.1) !important;
    border-radius: 12px !important;
    box-shadow: var(--home-shadow-sm) !important;
    display: grid !important;
    gap: 32px !important;
    grid-template-columns: 220px 1fr !important;
    padding: 32px !important;
}

.home .esp-administrator-section .esp-administrator-card::before {
    background: linear-gradient(to right, var(--home-red), #e6a31a, var(--home-gold), var(--home-green-700)) !important;
    content: "" !important;
    display: block !important;
    height: 4px !important;
    left: 0 !important;
    position: absolute !important;
    right: 0 !important;
    top: 0 !important;
}

.home .esp-governor-section .esp-governor-card::before {
    background: linear-gradient(to right, var(--home-red), #e6a31a, var(--home-gold), var(--home-green-700)) !important;
    content: "" !important;
    display: block !important;
    height: 4px !important;
    left: 0 !important;
    position: absolute !important;
    right: 0 !important;
    top: 0 !important;
}

.home .esp-governor-section .esp-governor-media img {
    aspect-ratio: 4 / 5 !important;
    border: 3px solid var(--home-gold) !important;
    border-radius: 12px !important;
    height: auto !important;
    object-fit: cover !important;
    object-position: top !important;
    width: 100% !important;
}

.home .esp-administrator-section .esp-governor-media img,
.home .esp-administrator-section .espg-mp-photo-placeholder {
    aspect-ratio: 4 / 5 !important;
    border: 3px solid var(--home-gold) !important;
    border-radius: 12px !important;
    height: auto !important;
    object-fit: cover !important;
    object-position: top !important;
    width: 100% !important;
}

.home #members-of-parliament .esp-card-grid {
    gap: 20px !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.home #members-of-parliament .espg-mp-card-link {
    align-items: stretch;
    border-radius: 16px !important;
    min-height: 100%;
    padding: 34px 28px 28px;
}

.home #members-of-parliament .espg-mp-card-img-wrap,
.home #members-of-parliament .espg-mp-photo-placeholder {
    background: #f8faf8;
    margin: 0 auto 18px;
    max-width: 280px;
    width: 100%;
}

.home #members-of-parliament .espg-mp-card-img-wrap img,
.home #members-of-parliament .espg-mp-photo-placeholder {
    aspect-ratio: 4 / 5;
    height: auto !important;
    object-fit: cover;
    object-position: top;
}

.home #members-of-parliament .esp-card-body {
    padding: 0 !important;
    text-align: center;
}

.home #members-of-parliament .esp-card h3 {
    font-size: 18px !important;
    line-height: 1.25 !important;
    margin: 0 0 8px !important;
}

.home #members-of-parliament .esp-card p {
    color: #64748b !important;
    font-size: 14px !important;
}

.home #services .esp-card-grid.four {
    gap: 20px !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.home #services .esp-service-card,
.home #projects .esp-simple-card {
    border-radius: 16px !important;
    min-height: 230px;
    padding: 34px 28px 28px !important;
    text-align: center;
}

.home #services .esp-service-card .esp-card-body {
    border-top: 0 !important;
    padding: 0 !important;
}

.home #services .esp-service-card .esp-card-body::before,
.home #projects .esp-simple-card::before {
    background: linear-gradient(to right, var(--home-red), var(--home-gold), var(--home-green-700));
    content: "";
    display: block;
    height: 5px;
    margin: 0 auto 28px;
    width: 80%;
}

.home #services .esp-service-card h3,
.home #projects .esp-simple-card h3 {
    font-size: 18px !important;
    margin: 0 0 14px !important;
    text-align: center;
}

.home #services .esp-service-card p,
.home #projects .esp-simple-card p {
    color: #64748b !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
    text-align: center;
}

.home #services .esp-news-link,
.home #projects .esp-news-link {
    background: var(--home-green-900) !important;
    border-radius: 22px !important;
    color: #ffffff !important;
    margin: 28px auto 0 !important;
    padding: 10px 24px !important;
}

.home #projects .esp-card-grid {
    gap: 20px !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.home #projects .esp-simple-card {
    text-align: left;
}

.home #projects .esp-simple-card::before {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
}

.home #projects .esp-simple-card h3,
.home #projects .esp-simple-card p {
    text-align: left;
}

.home #projects .esp-news-link {
    margin-left: 0 !important;
}

@media (max-width: 1100px) {
    .home .esp-governor-section .esp-governor-card,
    .home .esp-administrator-section .esp-administrator-card,
    .home #members-of-parliament .esp-card-grid,
    .home #projects .esp-card-grid {
        grid-template-columns: 1fr !important;
    }

    .home #services .esp-card-grid.four {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 700px) {
    .district-page .esp-services .esp-service:last-child:nth-child(odd) {
        grid-column: auto;
    }
    .home #services .esp-card-grid.four {
        grid-template-columns: 1fr !important;
    }
}

.home #news.esp-section {
    background: var(--home-white) !important;
    border: 1px solid rgba(22, 101, 52, 0.07) !important;
    border-radius: 0 !important;
    box-shadow: var(--home-shadow-sm) !important;
    margin-bottom: 20px !important;
    padding: 44px 40px !important;
}

.home #featured-events.esp-events-section {
    background: var(--home-green-50) !important;
    border: 1px solid rgba(22, 101, 52, 0.07) !important;
    border-radius: 0 !important;
    box-shadow: var(--home-shadow-sm) !important;
    margin-bottom: 20px !important;
    padding: 44px 40px !important;
}

.home #featured-events .esp-section-title {
    border-bottom: 2px solid var(--home-gray-200) !important;
    margin: 0 0 36px !important;
    padding-bottom: 16px !important;
    text-align: center;
}

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

.home .esp-event-card {
    background: #ffffff;
    border: 1px solid var(--home-gray-200);
    border-radius: 16px;
    box-shadow: var(--home-shadow-sm);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}

.home .esp-event-card:hover {
    box-shadow: var(--home-shadow-lg);
    transform: translateY(-3px);
}

.home .esp-event-media {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
}

.home .esp-event-media img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.home .esp-event-date {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    color: #111111;
    font-size: 11px;
    font-weight: 800;
    left: 12px;
    padding: 5px 10px;
    position: absolute;
    top: 12px;
}

.home .esp-event-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 20px;
}

.home .esp-event-location {
    color: var(--home-green-700);
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.home .esp-event-card h3 {
    color: var(--home-gray-800);
    font-size: 18px;
    line-height: 1.3;
    margin: 0 0 10px;
}

.home .esp-event-card p {
    color: #64748b;
    flex: 1;
    font-size: 14px;
    line-height: 1.65;
    margin: 0;
}

.home .esp-event-card .esp-news-link {
    margin-top: 20px;
}

@media (max-width: 900px) {
    .home .esp-events-grid {
        grid-template-columns: 1fr !important;
    }
}

.home #cultural-calendar.esp-cultural-section-home {
    background: var(--home-white) !important;
    border: 1px solid rgba(22, 101, 52, 0.07) !important;
    border-radius: 0 !important;
    box-shadow: var(--home-shadow-sm) !important;
    margin-bottom: 20px !important;
    padding: 44px 40px !important;
}

.home #cultural-calendar .espg-section-header {
    align-items: flex-start !important;
    margin-bottom: 28px !important;
}

.home #cultural-calendar .esp-section-title {
    margin: 0 0 8px !important;
}

.home .esp-cultural-intro {
    color: #64748b;
    margin: 0;
    max-width: 720px;
}

.home .esp-cultural-home-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home .esp-cultural-home-card {
    background: #ffffff;
    border: 1px solid var(--home-gray-200);
    border-radius: 16px;
    box-shadow: var(--home-shadow-sm);
    overflow: hidden;
}

.home .esp-cultural-home-media {
    aspect-ratio: 16 / 10;
    position: relative;
}

.home .esp-cultural-home-media img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.home .esp-cultural-home-media span {
    background: var(--home-gold);
    border-radius: 20px;
    color: var(--home-green-900);
    font-size: 11px;
    font-weight: 800;
    left: 12px;
    padding: 5px 10px;
    position: absolute;
    top: 12px;
}

.home .esp-cultural-home-body {
    padding: 18px;
}

.home .esp-cultural-home-card h3 {
    color: var(--home-gray-800);
    font-size: 17px;
    line-height: 1.3;
    margin: 0;
}

.espg-cultural-calendar-page {
    background: #eef4ee;
}

.espg-cultural-hero {
    background: linear-gradient(135deg, #082816, #0d3d20);
    color: #ffffff;
    padding: clamp(72px, 10vw, 120px) 0;
}

.espg-cultural-kicker {
    color: var(--home-gold, #c9991a);
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.espg-cultural-hero h1 {
    color: #ffffff;
    font-size: clamp(42px, 6vw, 76px);
    line-height: 1.04;
    margin: 0 0 18px;
}

.espg-cultural-hero p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 18px;
    line-height: 1.7;
    margin: 0;
    max-width: 780px;
}

.espg-cultural-section {
    padding: 56px 0 72px;
}

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

.espg-cultural-card {
    background: #ffffff;
    border: 1px solid #e2ebe2;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(10, 40, 20, 0.12);
    overflow: hidden;
}

.espg-cultural-media {
    aspect-ratio: 16 / 10;
    position: relative;
}

.espg-cultural-media img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.espg-cultural-media span {
    background: #c9991a;
    border-radius: 20px;
    color: #0d2214;
    font-size: 12px;
    font-weight: 800;
    left: 14px;
    padding: 6px 12px;
    position: absolute;
    top: 14px;
}

.espg-cultural-body {
    padding: 24px;
}

.espg-cultural-district {
    color: #166534;
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.espg-cultural-body h2 {
    color: #1f2d1f;
    font-size: 22px;
    line-height: 1.2;
    margin: 0 0 12px;
}

.espg-cultural-body p {
    color: #64748b;
    line-height: 1.7;
    margin: 0 0 18px;
}

.espg-cultural-link {
    background: #0d2214;
    border-radius: 22px;
    color: #ffffff;
    display: inline-flex;
    font-weight: 800;
    padding: 10px 18px;
}

@media (max-width: 1000px) {
    .home .esp-cultural-home-grid,
    .espg-cultural-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .home .esp-cultural-home-grid,
    .espg-cultural-grid {
        grid-template-columns: 1fr;
    }
}

.home #news .espg-section-header {
    align-items: center !important;
    display: flex !important;
    justify-content: space-between !important;
    margin: 0 0 36px !important;
}

.home #news .esp-section-title {
    font-size: clamp(24px, 2.6vw, 32px) !important;
    line-height: 1.15 !important;
    margin: 0 !important;
}

.home #news .espg-view-all {
    align-items: center;
    display: inline-flex;
    font-size: 13px !important;
    font-weight: 800 !important;
    white-space: nowrap;
}

.home #news .espg-news-featured-wrap {
    align-items: stretch !important;
    display: grid !important;
    gap: 20px !important;
    grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr) !important;
}

.home #news .espg-news-main-stack {
    display: grid !important;
    gap: 20px !important;
    grid-template-rows: auto 1fr;
    min-width: 0;
}

.home #news .esp-news-card {
    border: 1px solid var(--home-gray-200) !important;
    border-radius: 16px !important;
    box-shadow: var(--home-shadow-sm) !important;
    overflow: hidden !important;
}

.home #news .espg-news-featured-card {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    min-height: 0 !important;
}

.home #news .espg-news-featured-card .esp-news-card-media {
    aspect-ratio: 16 / 10 !important;
    height: auto !important;
    min-height: 0 !important;
}

.home #news .espg-news-featured-card .esp-news-card-body {
    min-height: 0 !important;
    padding: 22px 20px 24px !important;
}

.home #news .espg-news-side-stack {
    display: grid !important;
    gap: 20px !important;
    height: 100% !important;
}

.home #news .espg-news-top-card {
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
}

.home #news .espg-news-top-card .esp-news-card-media {
    aspect-ratio: 16 / 6 !important;
    height: auto !important;
    width: 100% !important;
}

.home #news .espg-news-top-card .esp-news-card-body {
    padding: 20px !important;
}

.home #news .espg-news-top-card h3 {
    font-size: 17px !important;
}

.home #news .espg-news-side-card {
    display: flex !important;
    flex-direction: column !important;
    min-height: 270px !important;
}

.home #news .espg-news-side-card .esp-news-card-media {
    aspect-ratio: 16 / 8 !important;
    height: auto !important;
}

.home #news .espg-news-side-card .esp-news-card-body {
    padding: 20px !important;
}

.home #news .esp-news-card h3 {
    font-size: 18px !important;
    line-height: 1.3 !important;
    margin: 0 0 10px !important;
}

.home #news .esp-news-card p {
    color: #64748b !important;
    font-size: 14px !important;
    line-height: 1.65 !important;
    margin: 0 0 18px !important;
}

.home #news .esp-news-link {
    background: var(--home-gold) !important;
    border-radius: 12px !important;
    color: #ffffff !important;
    margin-top: auto !important;
    padding: 10px 20px !important;
}

.home #news .espg-news-extra {
    display: none !important;
}

@media (max-width: 1000px) {
    .home #news .espg-news-featured-wrap {
        grid-template-columns: 1fr !important;
    }

    .home #news .espg-news-top-card .esp-news-card-media {
        aspect-ratio: 16 / 8 !important;
    }

    .home #news .espg-news-featured-card {
        display: flex !important;
        height: auto !important;
        min-height: auto !important;
    }

    .home #news .espg-news-featured-card .esp-news-card-media {
        aspect-ratio: 16 / 10 !important;
        min-height: 0 !important;
    }
}

/* Consistent leadership portraits across the homepage and district pages. */
.home .esp-governor-section .esp-governor-card,
.home .esp-administrator-section .esp-administrator-card {
    grid-template-columns: 240px minmax(0, 1fr) !important;
}

.home .esp-governor-media,
.home #members-of-parliament .espg-mp-card-img-wrap,
.home #members-of-parliament .espg-mp-photo-placeholder {
    width: 240px !important;
    max-width: 240px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.home .esp-governor-media img,
.home .esp-governor-media .espg-mp-photo-placeholder,
.home #members-of-parliament .espg-mp-card-img-wrap img,
.home #members-of-parliament .espg-mp-photo-placeholder,
.district-page .esp-mp .esp-avatar,
.district-page .esp-lead .esp-person .esp-avatar {
    display: block !important;
    width: 240px !important;
    min-width: 240px !important;
    max-width: 240px !important;
    height: 300px !important;
    min-height: 300px !important;
    max-height: 300px !important;
    aspect-ratio: 4 / 5 !important;
    object-fit: cover !important;
    object-position: top center !important;
}

.district-page .esp-mp {
    grid-template-columns: 240px minmax(0, 1fr) !important;
}

.district-page .esp-lead .esp-person .esp-avatar {
    margin-left: auto !important;
    margin-right: auto !important;
}

@media (max-width: 700px) {
    .home .esp-governor-section .esp-governor-card,
    .home .esp-administrator-section .esp-administrator-card,
    .district-page .esp-mp {
        grid-template-columns: 1fr !important;
    }
}

/* Mobile administration chart: prevent desktop sizing from shifting the page. */
@media (max-width: 700px) {
    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    .home .site-main,
    .home .espg-split-hero,
    .home .espg-split-hero-left,
    .home .espg-split-hero-right,
    .home .site-main > .container,
    .home .site-main .esp-section {
        box-sizing: border-box !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .home .espg-split-hero {
        grid-template-columns: minmax(0, 1fr) !important;
        width: 100% !important;
    }

    .home #administration.esp-section {
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 0 20px !important;
        padding: 0 !important;
        transform: none !important;
        overflow: hidden !important;
    }

    .home .esp-admin-structure,
    .home .esp-admin-chart,
    .home .esp-admin-rail,
    .home .esp-admin-flow,
    .home .esp-admin-row,
    .home .esp-admin-row-sectors,
    .home .esp-admin-row-districts {
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        transform: none !important;
    }

    .home .esp-admin-chart {
        display: block !important;
    }

    .home .esp-admin-rail,
    .home .esp-admin-row-sectors,
    .home .esp-admin-row-districts {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .home .esp-admin-flow {
        align-items: stretch !important;
        padding: 20px 14px !important;
    }

    .home .esp-admin-structure .esp-admin-banner,
    .home .esp-admin-node,
    .home .esp-admin-node-exec,
    .home .esp-admin-sector,
    .home .esp-admin-district,
    .home .esp-admin-wide-node,
    .home .esp-admin-tagline,
    .home .esp-admin-cta,
    .home .esp-admin-cta-btn {
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow-wrap: anywhere !important;
        white-space: normal !important;
    }

    .home .esp-admin-structure .esp-admin-banner {
        font-size: 20px !important;
        justify-content: center !important;
        padding: 18px 14px !important;
        text-align: center !important;
    }

    .home .esp-admin-rail-item {
        width: 100% !important;
        min-width: 0 !important;
        padding: 16px 14px !important;
    }

    .home .esp-admin-cta-btn {
        justify-content: center !important;
        padding: 14px 16px !important;
        text-align: center !important;
    }
}

/* Unified inner-page styling: matches the homepage visual language while preserving page-specific layouts. */
body:not(.home):has(.espg-services-page),
body:not(.home):has(.espg-projects-page),
body:not(.home):has(.espg-news-updates-page),
body:not(.home):has(.espg-contact-page),
body:not(.home):has(.espg-administration-page),
body:not(.home):has(.espg-cultural-calendar-page),
body:not(.home):has(.espg-districts-all-page),
body:not(.home):has(.espg-about-us-page),
body:not(.home):has(.district-page-wrapper) {
    --inner-gold: #c9991a;
    --inner-gold-light: #e6b833;
    --inner-gold-dark: #9e7b00;
    --inner-green-900: #0d2214;
    --inner-green-800: #0f3d20;
    --inner-green-700: #166534;
    --inner-green-50: #f4f9f4;
    --inner-red: #bb1e2f;
    --inner-white: #ffffff;
    --inner-gray-50: #f8faf8;
    --inner-gray-100: #f0f4f0;
    --inner-gray-200: #e2ebe2;
    --inner-gray-400: #9ca89c;
    --inner-gray-600: #4a5a4a;
    --inner-gray-800: #1f2d1f;
    --inner-shadow-sm: 0 1px 4px rgba(10, 40, 20, 0.07);
    --inner-shadow-md: 0 4px 16px rgba(10, 40, 20, 0.09);
    --inner-shadow-lg: 0 8px 32px rgba(10, 40, 20, 0.12);
    background-color: #eef4ee !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='%23166534' stroke-width='1.2' stroke-opacity='0.13'%3E%3Cpath d='M0 25 Q12.5 10 25 25 Q37.5 40 50 25 Q62.5 10 75 25 Q87.5 40 100 25'/%3E%3Cpath d='M0 50 Q12.5 35 25 50 Q37.5 65 50 50 Q62.5 35 75 50 Q87.5 65 100 50'/%3E%3Cpath d='M0 75 Q12.5 60 25 75 Q37.5 90 50 75 Q62.5 60 75 75 Q87.5 90 100 75'/%3E%3Cpath d='M25 0 L50 25 L25 50 L0 25Z'/%3E%3Cpath d='M75 0 L100 25 L75 50 L50 25Z'/%3E%3Cpath d='M25 50 L50 75 L25 100 L0 75Z'/%3E%3Cpath d='M75 50 L100 75 L75 100 L50 75Z'/%3E%3Ccircle cx='50' cy='25' r='3'/%3E%3Ccircle cx='50' cy='75' r='3'/%3E%3Ccircle cx='0' cy='50' r='3'/%3E%3Ccircle cx='100' cy='50' r='3'/%3E%3C/g%3E%3C/svg%3E") !important;
    background-repeat: repeat !important;
    background-size: 100px 100px !important;
}

.espg-services-page,
.espg-projects-page,
.espg-news-updates-page,
.espg-contact-page,
.espg-administration-page,
.espg-cultural-calendar-page,
.espg-districts-all-page,
.espg-about-us-page,
.district-page-wrapper {
    background: transparent !important;
}

.espg-services-hero,
.espg-projects-hero,
.espg-news-updates-hero,
.espg-contact-hero,
.espg-administration-hero,
.espg-cultural-hero,
.espg-about-hero,
.espg-districts-all-page .esp-hero {
    background: #0d2214 !important;
    border-bottom: 4px solid var(--inner-gold);
    color: #ffffff !important;
    min-height: 0 !important;
    overflow: hidden;
    padding: clamp(72px, 9vw, 112px) 0 clamp(58px, 7vw, 88px) !important;
    position: relative;
}

.espg-services-hero::before,
.espg-projects-hero::before,
.espg-news-updates-hero::before,
.espg-contact-hero::before,
.espg-administration-hero::before,
.espg-cultural-hero::before,
.espg-about-hero::before,
.espg-districts-all-page .esp-hero-overlay {
    background:
        linear-gradient(90deg, rgba(13, 34, 20, 0.95), rgba(15, 61, 32, 0.82)),
        repeating-linear-gradient(120deg, rgba(255,255,255,0.06) 0, rgba(255,255,255,0.06) 1px, transparent 1px, transparent 28px) !important;
    content: "";
    inset: 0;
    position: absolute;
}

.espg-services-hero .container,
.espg-projects-hero .container,
.espg-news-updates-hero .container,
.espg-contact-hero .container,
.espg-administration-hero .container,
.espg-cultural-hero .container,
.espg-about-hero .container,
.espg-districts-all-page .esp-hero .container {
    max-width: 1200px;
    position: relative;
    z-index: 1;
}

.espg-services-kicker,
.espg-projects-kicker,
.espg-news-updates-kicker,
.espg-contact-kicker,
.espg-administration-kicker,
.espg-cultural-kicker,
.espg-about-kicker {
    background: var(--inner-gold) !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: #0d2214 !important;
    display: inline-flex !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    letter-spacing: 0.14em !important;
    margin: 0 0 18px !important;
    min-height: 0 !important;
    padding: 8px 14px !important;
    text-transform: uppercase;
}

.espg-services-hero h1,
.espg-projects-hero h1,
.espg-news-updates-hero h1,
.espg-contact-hero h1,
.espg-administration-hero h1,
.espg-cultural-hero h1,
.espg-about-hero h1,
.espg-districts-all-page .esp-hero h1 {
    color: #ffffff !important;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(38px, 5vw, 68px) !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
    line-height: 1.06 !important;
    margin: 0 0 18px !important;
    max-width: 900px;
}

.espg-services-hero p,
.espg-projects-hero p,
.espg-news-updates-hero p,
.espg-contact-hero p,
.espg-administration-hero p,
.espg-cultural-hero p,
.espg-about-hero p,
.espg-districts-all-page .esp-hero p {
    color: rgba(255, 255, 255, 0.82) !important;
    font-size: 17px !important;
    line-height: 1.7 !important;
    margin: 0 !important;
    max-width: 760px;
}

.espg-services-section,
.espg-projects-section,
.espg-news-updates-section,
.espg-contact-section,
.espg-administration-section,
.espg-cultural-section,
.espg-about-section,
.espg-districts-all-page .container > .esp-section,
.district-page .esp-section {
    background: var(--inner-white) !important;
    border: 1px solid rgba(22, 101, 52, 0.07) !important;
    border-radius: 12px !important;
    box-shadow: var(--inner-shadow-sm) !important;
    margin: 28px auto !important;
    max-width: 1200px;
    padding: 44px 40px !important;
}

.espg-services-section > .container,
.espg-projects-section > .container,
.espg-news-updates-section > .container,
.espg-contact-section > .container,
.espg-administration-section > .container,
.espg-cultural-section > .container,
.espg-districts-all-page > .container {
    max-width: 100%;
    padding: 0 !important;
}

.espg-services-toolbar,
.espg-projects-toolbar,
.espg-news-updates-toolbar,
.espg-contact-feature,
.espg-administration-panel,
.espg-administration-summary div,
.espg-cultural-card,
.espg-news-update-card,
.espg-project-card,
.espg-service-page-card,
.espg-contact-card,
.espg-district-card,
.district-page .esp-card,
.district-page .mp-col,
.district-page .plan-col {
    background: #ffffff !important;
    border: 1px solid var(--inner-gray-200) !important;
    border-radius: 12px !important;
    box-shadow: var(--inner-shadow-sm) !important;
    overflow: hidden;
}

.espg-services-toolbar,
.espg-projects-toolbar,
.espg-news-updates-toolbar,
.espg-contact-feature,
.espg-administration-panel {
    padding: clamp(24px, 3vw, 36px) !important;
}

.espg-services-toolbar::before,
.espg-projects-toolbar::before,
.espg-news-updates-toolbar::before,
.espg-service-page-card::before,
.espg-project-card::before,
.espg-news-update-card::before,
.espg-contact-feature::before,
.espg-contact-card::before,
.espg-administration-panel::before,
.espg-administration-summary div::before {
    background: linear-gradient(90deg, var(--inner-red), var(--inner-gold), var(--inner-green-700)) !important;
    height: 4px !important;
}

.espg-services-toolbar h2,
.espg-projects-toolbar h2,
.espg-news-updates-toolbar h2,
.espg-contact-feature h2,
.espg-contact-card h2,
.espg-administration-panel h2,
.espg-cultural-body h2,
.espg-service-page-card h2,
.espg-project-card h2,
.espg-news-update-card h2,
.district-page .esp-section h2,
.district-page .esp-card h3,
.espg-districts-all-page .esp-section-title,
.espg-district-card h3 {
    color: var(--inner-gray-800) !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
}

.espg-services-toolbar p,
.espg-projects-toolbar p,
.espg-news-updates-toolbar p,
.espg-contact-feature p,
.espg-contact-card p,
.espg-contact-card dd,
.espg-administration-panel p,
.espg-cultural-body p,
.espg-service-page-card p,
.espg-project-card p,
.espg-news-update-card p,
.district-page p,
.espg-map-hint {
    color: var(--inner-gray-600) !important;
    line-height: 1.7 !important;
}

.espg-services-tab,
.espg-projects-tab,
.espg-news-updates-tabs span {
    background: rgba(22, 101, 52, 0.09) !important;
    border-radius: 8px !important;
    color: var(--inner-green-700) !important;
}

.espg-services-tab:hover,
.espg-services-tab.is-active,
.espg-projects-tab:hover,
.espg-projects-tab.is-active {
    background: var(--inner-green-700) !important;
    color: #ffffff !important;
}

.espg-service-page-link,
.espg-project-link,
.espg-news-update-link,
.espg-cultural-link,
.espg-contact-map-link,
.espg-contact-map-button,
.espg-administration-note .esp-btn,
.espg-dc-link,
.district-page .esp-btn {
    background: var(--inner-gold) !important;
    border: 0 !important;
    border-radius: 12px !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    text-decoration: none !important;
}

.espg-service-page-link:hover,
.espg-project-link:hover,
.espg-news-update-link:hover,
.espg-cultural-link:hover,
.espg-contact-map-link:hover,
.espg-contact-map-button:hover,
.espg-administration-note .esp-btn:hover,
.district-page .esp-btn:hover {
    background: var(--inner-gold-dark) !important;
    color: #ffffff !important;
}

.espg-service-page-card:hover,
.espg-project-card:hover,
.espg-news-update-card:hover,
.espg-contact-card:hover,
.espg-cultural-card:hover,
.espg-district-card:hover,
.district-page .esp-card:hover {
    box-shadow: var(--inner-shadow-lg) !important;
    transform: translateY(-3px) !important;
}

.espg-administration-summary {
    gap: 14px !important;
}

.espg-administration-summary strong {
    color: var(--inner-gold) !important;
}

.espg-contact-town,
.espg-news-update-type,
.espg-news-update-date,
.espg-cultural-media span,
.espg-service-number {
    background: rgba(201, 153, 26, 0.14) !important;
    color: var(--inner-green-700) !important;
    font-weight: 800 !important;
}

.espg-districts-all-page .esp-hero-panel {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.espg-districts-all-page .espg-page-breadcrumb,
.espg-districts-all-page .espg-page-breadcrumb a {
    color: rgba(255, 255, 255, 0.78) !important;
}

@media (max-width: 900px) {
    .espg-services-section,
    .espg-projects-section,
    .espg-news-updates-section,
    .espg-contact-section,
    .espg-administration-section,
    .espg-cultural-section,
    .espg-about-section,
    .espg-districts-all-page .container > .esp-section,
    .district-page .esp-section {
        margin: 20px auto !important;
        padding: 30px 20px !important;
    }

    .espg-services-hero,
    .espg-projects-hero,
    .espg-news-updates-hero,
    .espg-contact-hero,
    .espg-administration-hero,
    .espg-cultural-hero,
    .espg-about-hero,
    .espg-districts-all-page .esp-hero {
        padding: 54px 0 44px !important;
    }

    .espg-services-hero h1,
    .espg-projects-hero h1,
    .espg-news-updates-hero h1,
    .espg-contact-hero h1,
    .espg-administration-hero h1,
    .espg-cultural-hero h1,
    .espg-about-hero h1,
    .espg-districts-all-page .esp-hero h1 {
        font-size: 34px !important;
    }
}

/* ══════════════════════════════════════════════════════════════════════
 * PNG Gov Standards – News Ticker (Standard 1.11)
 * ══════════════════════════════════════════════════════════════════════ */
.gov-news-ticker {
    background: #063d2a;
    color: #fff;
    overflow: hidden;
    position: relative;
    z-index: 10;
    border-bottom: 2px solid #bb1e2f;
}
.gov-ticker-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    min-height: 38px;
}
.gov-ticker-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    white-space: nowrap;
    background: #bb1e2f;
    padding: 2px 10px;
    border-radius: 3px;
    flex-shrink: 0;
}
.gov-ticker-wrap {
    flex: 1;
    overflow: hidden;
    position: relative;
}
.gov-ticker-track {
    display: flex;
    gap: 56px;
    white-space: nowrap;
    animation: gov-ticker-scroll 28s linear infinite;
}
.gov-ticker-track:hover { animation-play-state: paused; }
.gov-ticker-item {
    font-size: 18px;
    white-space: nowrap;
    flex-shrink: 0;
}
.gov-ticker-item a { color: #fff; text-decoration: none; }
.gov-ticker-item a:hover { text-decoration: underline; }
.gov-ticker-pause {
    background: transparent;
    border: 1px solid rgba(255,255,255,.4);
    color: #fff;
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 3px;
    cursor: pointer;
    flex-shrink: 0;
    line-height: 1;
}
.gov-ticker-pause:hover { background: rgba(255,255,255,.15); }
@keyframes gov-ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.gov-ticker-paused .gov-ticker-track { animation-play-state: paused; }

/* ══════════════════════════════════════════════════════════════════════
 * PNG Gov Standards – Breadcrumbs on virtual pages
 * ══════════════════════════════════════════════════════════════════════ */
.espg-page-breadcrumb {
    font-size: 13px;
    color: rgba(255,255,255,.75);
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.espg-page-breadcrumb a {
    color: rgba(255,255,255,.85);
    text-decoration: none;
}
.espg-page-breadcrumb a:hover { text-decoration: underline; color: #fff; }
.espg-page-breadcrumb span[aria-current="page"] {
    color: #fff;
    font-weight: 600;
}

/* ══════════════════════════════════════════════════════════════════════
 * PNG Gov Standards – Feedback Form (Standard 1.12)
 * ══════════════════════════════════════════════════════════════════════ */
.espg-feedback-section { padding: 60px 0; }
.espg-feedback-form { max-width: 780px; margin: 0 auto; }
.espg-form-row { display: grid; gap: 20px; margin-bottom: 20px; }
.espg-form-row-2 { grid-template-columns: 1fr 1fr; }
.espg-form-group { display: flex; flex-direction: column; gap: 6px; }
.espg-form-group label { font-size: 14px; font-weight: 600; color: var(--espg-text); }
.espg-form-group input,
.espg-form-group select,
.espg-form-group textarea {
    border: 1.5px solid #d1d5db;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 15px;
    font-family: inherit;
    background: #fff;
    color: var(--espg-text);
    transition: border-color .2s;
}
.espg-form-group input:focus,
.espg-form-group select:focus,
.espg-form-group textarea:focus { outline: none; border-color: #063d2a; box-shadow: 0 0 0 3px rgba(6,61,42,.12); }
.espg-form-note { font-size: 13px; color: var(--espg-muted); margin-bottom: 20px; }
.espg-feedback-success {
    background: #d1fae5; border: 1px solid #34d399; color: #065f46;
    padding: 20px 24px; border-radius: 8px; margin-bottom: 24px; font-size: 15px;
}
.espg-feedback-error {
    background: #fee2e2; border: 1px solid #f87171; color: #991b1b;
    padding: 16px 20px; border-radius: 8px; margin-bottom: 20px; font-size: 14px;
}
@media (max-width: 600px) { .espg-form-row-2 { grid-template-columns: 1fr; } }

/* ══════════════════════════════════════════════════════════════════════
 * PNG Gov Standards – HTML Sitemap
 * ══════════════════════════════════════════════════════════════════════ */
.espg-sitemap-section { padding: 60px 0; }
.espg-sitemap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.espg-sitemap-col h2 { font-size: 18px; font-weight: 700; margin-bottom: 16px; color: var(--espg-text); border-bottom: 2px solid var(--espg-border); padding-bottom: 8px; }
.espg-sitemap-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.espg-sitemap-list li a { color: #063d2a; font-size: 14px; text-decoration: none; display: flex; align-items: center; gap: 6px; }
.espg-sitemap-list li a::before { content: '›'; color: #bb1e2f; font-weight: 700; }
.espg-sitemap-list li a:hover { text-decoration: underline; color: #bb1e2f; }
.espg-sitemap-list small { color: var(--espg-muted); font-size: 12px; }
@media (max-width: 900px) { .espg-sitemap-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .espg-sitemap-grid { grid-template-columns: 1fr; } }

/* ══════════════════════════════════════════════════════════════════════
 * PNG Gov Standards – Policy pages (Privacy, Terms, Accessibility)
 * ══════════════════════════════════════════════════════════════════════ */
.espg-policy-section { padding: 60px 0; }
.espg-policy-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    color: var(--espg-text);
    font-size: 15px;
}
.espg-policy-content h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 2.5rem 0 .8rem;
    color: #063d2a;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--espg-border);
}
.espg-policy-content p { margin-bottom: 1rem; }
.espg-policy-content ul { margin: .5rem 0 1rem 1.5rem; }
.espg-policy-content ul li { margin-bottom: .4rem; }
.espg-policy-content a { color: #bb1e2f; }
.espg-policy-content a:hover { text-decoration: underline; }
.espg-policy-updated { font-size: 13px; color: var(--espg-muted); margin-bottom: 2rem; border-left: 3px solid #bb1e2f; padding-left: 12px; }

/* ══════════════════════════════════════════════════════════════════════
 * Footer bottom – Standard 1.17 legal links
 * ══════════════════════════════════════════════════════════════════════ */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid rgba(255,255,255,.15);
}
.footer-bottom-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.footer-legal-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.footer-legal-links a {
    color: rgba(255,255,255,.75);
    font-size: 12px;
    text-decoration: none;
    transition: color .2s;
}
.footer-legal-links a:hover { color: #fff; text-decoration: underline; }
.footer-legal-links span[aria-hidden] { color: rgba(255,255,255,.35); font-size: 11px; }
.footer-copyright { font-size: 13px; color: rgba(255,255,255,.75); }
.footer-credit {
    font-size: 12px;
    color: rgba(255,255,255,.58);
}
.footer-socials { display: flex; align-items: center; gap: 10px; }
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    color: #fff;
    transition: background .2s;
    text-decoration: none;
}
.social-icon:hover { background: rgba(255,255,255,.25); }
@media (max-width: 640px) {
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .footer-legal-links { gap: 6px; }
}

/* ── Provincial Fact Sheet table (About Us page + Homepage) ── */
.espg-factsheet-section { padding: 60px 0; background: #f9fafb; }
.espg-factsheet-note {
    text-align: center;
    color: #6b7280;
    font-size: .95rem;
    margin-bottom: 32px;
}
.espg-fact-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .95rem;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,.07);
}
.espg-fact-table th,
.espg-fact-table td {
    padding: 14px 20px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: top;
    line-height: 1.5;
}
.espg-fact-table th {
    width: 38%;
    font-weight: 600;
    color: var(--espg-bg, #063d2a);
    background: #f0fdf4;
    white-space: nowrap;
}
.espg-fact-table td { color: #374151; }
.espg-fact-table tr:last-child th,
.espg-fact-table tr:last-child td { border-bottom: none; }
.espg-fact-table tr:nth-child(even) td { background: #fafbfc; }
@media (max-width: 640px) {
    .espg-fact-table th { white-space: normal; width: auto; }
    .espg-fact-table th,
    .espg-fact-table td { padding: 10px 14px; font-size: .88rem; }
}

/* ── Administration page: PA contact block ── */
.espg-admin-contact-block {
    background: rgba(255,255,255,.08);
    border-left: 3px solid var(--espg-yellow, #c89c00);
    padding: 14px 16px;
    margin: 20px 0;
    border-radius: 0 6px 6px 0;
    font-size: .92rem;
}
.espg-admin-contact-block strong { display: block; margin-bottom: 6px; font-size: .95rem; }
.espg-admin-contact-block a { color: var(--espg-yellow, #c89c00); }
.espg-admin-orgchart-link { margin-top: 20px; }

/* ── LLG breakdown section ── */
.espg-llg-breakdown {
    margin-top: 56px;
    padding-top: 40px;
    border-top: 2px solid #e5e7eb;
}
.espg-llg-breakdown-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--espg-bg, #063d2a);
    margin-bottom: 8px;
}
.espg-llg-breakdown-note {
    color: #6b7280;
    font-size: .95rem;
    margin-bottom: 28px;
}
.espg-llg-breakdown-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.espg-llg-district-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
    overflow: hidden;
    border-top: 3px solid var(--espg-yellow, #c89c00);
}
.espg-llg-district-card header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--espg-bg, #063d2a);
    color: #fff;
    padding: 12px 16px;
    gap: 8px;
}
.espg-llg-district-card header h4 {
    font-size: .95rem;
    font-weight: 600;
    margin: 0;
}
.espg-llg-district-card header span {
    font-size: .8rem;
    background: var(--espg-yellow, #c89c00);
    color: var(--espg-bg, #063d2a);
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 20px;
    white-space: nowrap;
}
.espg-llg-district-card ul {
    list-style: none;
    margin: 0;
    padding: 12px 0;
}
.espg-llg-district-card ul li {
    padding: 7px 16px;
    font-size: .88rem;
    color: #1e293b;
    border-bottom: 1px solid #f0fdf4;
    display: flex;
    align-items: center;
    gap: 8px;
}
.espg-llg-district-card ul li::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--espg-yellow, #c89c00);
    flex-shrink: 0;
}
.espg-llg-district-card ul li:last-child { border-bottom: none; }
@media (max-width: 1024px) {
    .espg-llg-breakdown-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .espg-llg-breakdown-grid { grid-template-columns: 1fr; }
}

/* ── District page professional improvements ── */

/* Stat strip */
.espg-district-strip .esp-stats {
    gap: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,.10);
}
.espg-district-strip .esp-stat {
    border-right: 1px solid rgba(255,255,255,.08);
    padding: 28px 20px 22px;
    position: relative;
    transition: background .2s;
}
.espg-district-strip .esp-stat:last-child { border-right: none; }
.espg-district-strip .esp-stat--pending { opacity: .65; }
.espg-district-strip .esp-stat--pending .k {
    font-size: 1.6rem;
    color: rgba(255,255,255,.4);
    letter-spacing: 2px;
}
.esp-stat-pending-note {
    font-size: .68rem;
    color: rgba(255,255,255,.45);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-top: 2px;
}

/* About section */
.espg-district-about-card {
    grid-column: 1 / -1;
    text-align: left !important;
}

.espg-district-about-section .espg-district-map-card {
    grid-column: 1 / -1;
    padding: clamp(20px, 3vw, 30px);
}

.espg-district-map-card .esp-h2 {
    margin-bottom: 18px;
}

.espg-district-map-card iframe {
    width: 100%;
    min-height: 440px;
    border-radius: 9px;
}
.espg-district-about-text {
    text-align: left !important;
    margin-bottom: 24px;
    color: #374151;
    line-height: 1.7;
}
.espg-district-meta-rows {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}
.espg-district-meta-row { border-top: 1px solid #f0fdf4; padding-top: 14px; }
.espg-district-meta-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--espg-bg, #063d2a);
    margin-bottom: 8px;
}
.espg-district-meta-label svg { flex-shrink: 0; color: var(--espg-yellow, #c89c00); }
.espg-district-meta-row p {
    margin: 0;
    font-size: .92rem;
    color: #374151;
    line-height: 1.6;
    text-align: left;
}
.espg-district-verify-note {
    font-size: .78rem;
    color: #9ca3af;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #f3f4f6;
    text-align: left !important;
}

/* LLG tags */
.espg-llg-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.espg-llg-tag {
    display: inline-flex;
    align-items: center;
    background: #f0fdf4;
    color: var(--espg-bg, #063d2a);
    border: 1px solid #bbf7d0;
    border-radius: 20px;
    padding: 3px 12px;
    font-size: .8rem;
    font-weight: 500;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .espg-district-strip .esp-stats { border-radius: 8px; }
    .espg-district-about-section .esp-grid-2 { grid-template-columns: 1fr; }

    .espg-district-map-card iframe {
        min-height: 320px;
        height: 320px;
    }
}

/* ── Service card download button ── */
.esp-service--has-dl { flex-direction: column; align-items: flex-start; }
.esp-service-body { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.espg-service-dl-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 6px 14px;
    background: transparent;
    border: 1.5px solid var(--espg-bg, #063d2a);
    border-radius: 20px;
    color: var(--espg-bg, #063d2a);
    font-size: .78rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: .03em;
    transition: background .15s, color .15s;
    align-self: flex-start;
}
.espg-service-dl-btn:hover {
    background: var(--espg-bg, #063d2a);
    color: #fff;
    text-decoration: none;
}
.espg-service-dl-btn svg { flex-shrink: 0; }

/* ── Services section downloads panel ── */
.espg-service-downloads {
    margin-top: 36px;
    padding-top: 28px;
    border-top: 2px solid #e5e7eb;
}
.espg-service-downloads-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--espg-bg, #063d2a);
    margin: 0 0 16px;
}
.espg-service-downloads-title svg { color: var(--espg-yellow, #c89c00); }
.espg-service-downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 10px;
}
.espg-dl-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 14px;
    text-decoration: none;
    color: #111827;
    transition: border-color .15s, box-shadow .15s;
}
.espg-dl-item:hover {
    border-color: var(--espg-bg, #063d2a);
    box-shadow: 0 2px 8px rgba(6,61,42,.10);
    color: #111827;
    text-decoration: none;
}
.espg-dl-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    flex-shrink: 0;
}
.espg-dl-icon.is-pdf   { background: #fee2e2; color: #dc2626; }
.espg-dl-icon.is-excel { background: #dcfce7; color: #16a34a; }
.espg-dl-icon.is-word  { background: #dbeafe; color: #2563eb; }
.espg-dl-icon.is-file  { background: #f3f4f6; color: #6b7280; }
.espg-dl-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}
.espg-dl-name {
    font-size: .88rem;
    font-weight: 600;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.espg-dl-type {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #6b7280;
}
.espg-dl-arrow { color: var(--espg-bg, #063d2a); flex-shrink: 0; }

/* ── Unified LLG Section (district pages) ── */
.espg-llg-section { background: #f9fafb; }
.espg-section-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
}
.espg-section-head .esp-h2 { margin: 0; }
.espg-llg-section-badge {
    display: inline-flex;
    align-items: center;
    background: var(--espg-bg, #063d2a);
    color: #fff;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    border-radius: 20px;
    padding: 3px 12px;
}
.espg-llg-section-intro {
    color: #6b7280;
    font-size: .95rem;
    margin-bottom: 36px;
}
.espg-llg-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}
.espg-llg-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(6,61,42,.07);
    overflow: hidden;
    border: 1px solid #e5e7eb;
}
.espg-llg-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--espg-bg, #063d2a);
    color: #fff;
    padding: 14px 20px;
}
.espg-llg-card-header svg { color: var(--espg-yellow, #c89c00); flex-shrink: 0; }
.espg-llg-card-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}

.espg-llg-planning-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    padding: 0 20px;
    border-bottom: 1px solid #e5e7eb;
    background: #f8fbf9;
}

.espg-llg-planning-meta > div {
    padding: 12px 0;
}

.espg-llg-planning-meta > div + div {
    padding-left: 16px;
    border-left: 1px solid #e5e7eb;
}

.espg-llg-planning-meta dt {
    margin-bottom: 2px;
    color: #6b7280;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.espg-llg-planning-meta dd {
    margin: 0;
    color: var(--espg-bg, #063d2a);
    font-size: .85rem;
    font-weight: 700;
}
.espg-llg-card-officials {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0;
    padding: 0;
}
.espg-llg-official {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 16px;
    text-align: center;
    gap: 8px;
}
.espg-llg-officials-divider {
    width: 1px;
    background: #e5e7eb;
    margin: 20px 0;
}
.espg-llg-official-role {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--espg-bg, #063d2a);
    background: #f0fdf4;
    border-radius: 20px;
    padding: 2px 10px;
}
.espg-llg-official-photo {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f0fdf4;
}

.espg-llg-photo-open {
    display: block;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: zoom-in;
}

.espg-llg-photo-open:hover,
.espg-llg-photo-open:focus-visible {
    background: transparent;
    box-shadow: 0 0 0 4px rgba(200, 156, 0, .28);
}

.espg-llg-photo-open:focus-visible {
    outline: 3px solid var(--espg-bg, #063d2a);
    outline-offset: 3px;
}

body.espg-lightbox-open {
    overflow: hidden;
}

.espg-photo-lightbox[hidden] {
    display: none;
}

.espg-photo-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(2, 12, 8, .88);
    backdrop-filter: blur(6px);
}

.espg-photo-lightbox-dialog {
    position: relative;
    display: grid;
    justify-items: center;
    width: min(92vw, 900px);
    max-height: 92vh;
    padding: 18px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .5);
}

.espg-photo-lightbox-image {
    max-width: 100%;
    max-height: calc(92vh - 90px);
    object-fit: contain;
}

.espg-photo-lightbox-caption {
    margin: 10px 44px 0;
    color: #1f2937;
    font-weight: 700;
    text-align: center;
}

.espg-photo-lightbox-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #ffffff;
    color: #111827;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .28);
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.espg-photo-lightbox-close:hover,
.espg-photo-lightbox-close:focus-visible {
    background: var(--espg-bg, #063d2a);
    color: #ffffff;
}
.espg-llg-official-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #f0fdf4;
}
.espg-llg-official-avatar svg { width: 100%; height: 100%; }

@media (max-width: 600px) {
    .espg-llg-official-photo,
    .espg-llg-official-avatar {
        width: 84px;
        height: 84px;
    }
}
.espg-llg-official-name {
    font-weight: 700;
    font-size: .9rem;
    color: #111827;
    line-height: 1.3;
}
.espg-llg-official-name.is-tbc {
    color: #9ca3af;
    font-weight: 400;
    font-style: italic;
}
.espg-llg-official-email {
    font-size: .75rem;
    color: var(--espg-bg, #063d2a);
    word-break: break-all;
    text-decoration: none;
}
.espg-llg-official-email:hover { text-decoration: underline; }

@media (max-width: 600px) {
    .espg-llg-cards-grid { grid-template-columns: 1fr; }
    .espg-llg-card-officials { grid-template-columns: 1fr; }
    .espg-llg-officials-divider { width: auto; height: 1px; margin: 0 20px; }
}
/* Branded treatment used when optional editorial imagery has not been supplied. */
.espg-demo-image-removed {
    width: 100%;
    min-height: 180px;
    height: 100%;
    background:
        radial-gradient(circle at 82% 18%, rgba(255, 205, 65, 0.2), transparent 28%),
        linear-gradient(135deg, #173f2a 0%, #245e3d 52%, #8f1d2c 100%);
}
