:root {
    --green: #1f7a63;
    --green-dark: #0f5132;
    --blue: #1e3a5f;
    --white: #ffffff;
    --ink: #0f172a;
    --muted: #6c757d;
    --bg-soft: #f4f7fb;
    --shadow: 0 14px 34px rgba(30, 58, 95, 0.1);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    touch-action: pan-x pan-y;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: var(--ink);
    background:
    radial-gradient(circle at 8% 2%, rgba(31, 122, 99, 0.08) 0%, transparent 36%),
    radial-gradient(circle at 90% 18%, rgba(30, 58, 95, 0.07) 0%, transparent 34%),
        var(--bg-soft);
}

h1, h2, h3, h4, h5 {
    font-family: 'Poppins', sans-serif;
    margin-top: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1200px, 94%);
    margin: 0 auto;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(30, 58, 95, 0.08);
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 4px 24px rgba(10, 30, 60, 0.10);
    background: rgba(255, 255, 255, 0.98);
}

.navbar {
    height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.brand-logo {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-content: center;
    font-weight: 700;
    color: var(--white);
    background: linear-gradient(135deg, var(--green), var(--blue));
}

.brand-logo-img {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid rgba(30, 58, 95, 0.16);
    box-shadow: 0 3px 10px rgba(30, 58, 95, 0.12);
    background: #fff;
}

.brand small {
    display: block;
    font-size: 11px;
    color: var(--muted);
}

.brand strong {
    font-size: 20px;
    line-height: 1;
    letter-spacing: -0.01em;
    color: #0f223d;
}

.brand small {
    font-size: 10px;
    line-height: 1.2;
}

.nav-wrap {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 14px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    padding: 10px 12px;
    border-radius: 10px;
    font-weight: 500;
    color: var(--blue);
}

.nav-links a.active,
.nav-links a:hover {
    color: var(--green);
    background: rgba(31, 122, 99, 0.1);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lang-toggle {
    background: #f0f6fb;
    border: 1px solid #d9e7f2;
    border-radius: 20px;
    padding: 8px 10px;
    font-size: 13px;
    color: var(--muted);
}

.lang-toggle .selected {
    color: var(--green);
    font-weight: 600;
}

.btn {
    border: none;
    border-radius: 12px;
    padding: 11px 18px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-primary {
    color: var(--white);
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-secondary {
    color: var(--white);
    background: linear-gradient(135deg, var(--blue), #2e537f);
}

.btn-outline {
    border: 1px solid #bed2e5;
    color: var(--blue);
    background: #fff;
}

.hero {
    margin-top: 18px;
    border-radius: 24px;
    min-height: 430px;
    padding: 72px 50px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    color: var(--white);
    background-size: cover;
    background-position: center;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(30, 58, 95, 0.85), rgba(31, 122, 99, 0.55));
}

.hero-content {
    position: relative;
    max-width: 680px;
}

.hero h1 {
    font-size: clamp(30px, 5vw, 52px);
    margin-bottom: 12px;
}

.hero p {
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 24px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.section {
    padding: 62px 0;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 22px;
}

.section-title p {
    color: var(--muted);
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(30, 58, 95, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 36px rgba(30, 58, 95, 0.14);
}

.stat-value {
    font-size: 36px;
    color: var(--green);
    font-weight: 700;
    margin: 8px 0;
}

.muted {
    color: var(--muted);
}

.news-card img,
.district-card img {
    border-radius: 14px;
    height: 180px;
    width: 100%;
    object-fit: cover;
}

.media-embed iframe {
    width: 100%;
    border: 0;
    border-radius: var(--radius);
    min-height: 420px;
    box-shadow: var(--shadow);
}

.cta {
    background: linear-gradient(130deg, var(--blue), var(--green));
    color: var(--white);
    padding: 42px;
    border-radius: 24px;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.page-hero {
    margin: 20px auto 0;
    background: linear-gradient(130deg, #2e537f, #1f7a63);
    color: var(--white);
    padding: 42px;
    border-radius: 22px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group.full {
    grid-column: 1 / -1;
}

input,
textarea,
select {
    border: 1px solid #d2deea;
    border-radius: 12px;
    padding: 12px 14px;
    font: inherit;
    background: #fff;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

.alert {
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 14px;
    font-weight: 500;
}

.alert-success {
    background: #dcf8ef;
    color: #165b48;
}

.alert-error {
    background: #fde7e7;
    color: #8b1f1f;
}

.site-footer {
    margin-top: 60px;
    background: #0f2036;
    color: #dae9f9;
    padding-top: 46px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 20px;
}

.footer-grid h4,
.footer-grid h3 {
    color: #fff;
}

.footer-grid a {
    display: block;
    margin-bottom: 8px;
    color: #c7d6e8;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: grid;
    place-content: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px) scale(1.1);
    background-color: rgba(255, 255, 255, 0.25);
}

.social-links a i {
    font-size: 16px;
    color: #fff;
}

.copyright {
    text-align: center;
    padding: 16px;
    margin: 26px 0 0;
    border-top: 1px solid rgba(218, 233, 249, 0.18);
}

.fade-in {
    opacity: 0;
    transform: translateY(16px);
    transition: all 0.5s ease;
}

.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}

.hamburger {
    display: none;
    background: transparent;
    border: 0;
    width: 42px;
}

.hamburger span {
    display: block;
    height: 3px;
    margin: 6px 0;
    background: var(--blue);
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

th,
td {
    padding: 12px;
    border-bottom: 1px solid #e4ecf4;
    text-align: left;
}

.admin-shell {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: 100vh;
}

.admin-sidebar {
    background: #102540;
    color: #d8e5f3;
    padding: 20px;
}

.admin-sidebar a {
    display: block;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 6px;
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
    background: rgba(255, 255, 255, 0.12);
}

.admin-content {
    padding: 24px;
}

.admin-hero-card {
    border-radius: 16px;
    border: 1px solid #d9e6f2;
    box-shadow: 0 10px 24px rgba(16, 37, 64, 0.08);
}

.admin-hero-form {
    margin-top: 8px;
    gap: 12px 14px;
}

.admin-hero-form label {
    font-weight: 700;
    color: #1a2f4d;
}

.admin-hero-form input,
.admin-hero-form textarea {
    border: 1px solid #c9dced;
    background: #fbfdff;
}

.admin-hero-form textarea {
    min-height: 110px;
}

.admin-hero-form .btn {
    min-height: 44px;
    font-weight: 700;
}

.hero-preview-image {
    width: min(520px, 100%);
    border-radius: 12px;
    border: 1px solid #d6e3ef;
    background: #fff;
    box-shadow: 0 8px 18px rgba(16, 37, 64, 0.12);
    object-fit: cover;
    max-height: 260px;
}

.admin-dashboard {
    display: grid;
    gap: 18px;
}

.admin-overview-hero {
    border-radius: 16px;
    padding: 20px 22px;
    color: #fff;
    background:
        radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.18), transparent 38%),
        linear-gradient(130deg, #1f7a63 0%, #1f6e73 45%, #1e3a5f 100%);
    box-shadow: 0 14px 28px rgba(15, 37, 63, 0.22);
}

.admin-overview-hero h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 30px);
    font-family: 'Sora', sans-serif;
    letter-spacing: -0.01em;
}

.admin-overview-hero p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.9);
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.admin-metric-card {
    border-radius: 14px;
    background: #fff;
    border: 1px solid #dfebf5;
    padding: 16px;
    box-shadow: 0 10px 22px rgba(16, 37, 64, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.admin-metric-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 30px rgba(16, 37, 64, 0.14);
}

.admin-metric-card .metric-icon {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    margin-bottom: 10px;
}

.admin-metric-card .metric-icon svg {
    width: 22px;
    height: 22px;
}

.admin-metric-card .metric-label {
    margin: 0;
    color: #4d5f79;
    font-size: 13px;
    font-weight: 700;
}

.admin-metric-card .metric-value {
    margin: 6px 0 0;
    color: #14253f;
    font-size: clamp(30px, 3.2vw, 38px);
    line-height: 1;
    font-weight: 800;
    font-family: 'Sora', sans-serif;
}

.admin-metric-card .metric-note {
    display: block;
    margin-top: 7px;
    color: #6e7f97;
    font-size: 12px;
}

.admin-metric-card.is-members {
    border-top: 4px solid #1f7a63;
}

.admin-metric-card.is-members .metric-icon {
    color: #1f7a63;
    background: #e5f6ef;
}

.admin-metric-card.is-pending {
    border-top: 4px solid #f59e0b;
}

.admin-metric-card.is-pending .metric-icon {
    color: #b7791f;
    background: #fff6e5;
}

.admin-metric-card.is-complaints {
    border-top: 4px solid #dc2626;
}

.admin-metric-card.is-complaints .metric-icon {
    color: #dc2626;
    background: #fdeeee;
}

.admin-metric-card.is-info {
    border-top: 4px solid #2563eb;
}

.admin-metric-card.is-info .metric-icon {
    color: #2563eb;
    background: #eaf1ff;
}

.admin-quick-access {
    border-radius: 16px;
    border: 1px solid #dce8f2;
    box-shadow: 0 10px 24px rgba(16, 37, 64, 0.08);
}

.admin-quick-access .quick-access-head {
    margin-bottom: 14px;
}

.admin-quick-access h3 {
    margin: 0;
    color: #1a2f4d;
}

.admin-quick-access p {
    margin: 6px 0 0;
    color: #6b7f98;
}

.quick-action-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.quick-action-btn {
    border-radius: 12px;
    border: 1px solid #d7e4ef;
    background: #f8fbff;
    color: #1e3a5f;
    font-weight: 700;
    padding: 12px 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.quick-action-btn:hover {
    transform: translateY(-2px);
    border-color: #bfd4e6;
    background: #edf5ff;
}

.quick-action-icon {
    width: 22px;
    height: 22px;
    color: #1f7a63;
    display: inline-grid;
    place-items: center;
}

.quick-action-icon svg {
    width: 18px;
    height: 18px;
}

@media (max-width: 1180px) {
    .admin-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .quick-action-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .admin-content {
        padding: 16px;
    }

    .admin-stats-grid {
        grid-template-columns: 1fr;
    }

    .quick-action-grid {
        grid-template-columns: 1fr;
    }
}

/* Awayindia-inspired admin skin */
body.admin-page {
    background: #eef2f8;
}

.admin-shell {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
    background: linear-gradient(180deg, #eef2f8 0%, #e9eef6 100%);
}

.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 18px 14px;
    color: #dce6f8;
    background: linear-gradient(180deg, #122947 0%, #182e4f 100%);
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.06);
    overflow-y: auto;
}

.admin-brand {
    padding: 8px 8px 14px;
    margin-bottom: 8px;
}

.admin-brand h2 {
    margin: 0;
    font-size: 33px;
    font-family: 'Sora', sans-serif;
    letter-spacing: -0.02em;
    color: #f8fbff;
}

.admin-brand p {
    margin: 6px 0 0;
    color: rgba(220, 230, 248, 0.86);
    font-size: 13px;
}

.admin-sidebar nav {
    display: grid;
    gap: 6px;
}

.admin-sidebar a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    margin: 0;
    color: #dce6f8;
    font-weight: 600;
    border: 1px solid transparent;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.admin-sidebar a i {
    width: 18px;
    text-align: center;
    color: #aecaec;
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.admin-sidebar a:hover i,
.admin-sidebar a.active i {
    color: #ffd166;
}

.admin-sidebar-user {
    margin-top: 14px;
    padding: 12px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
}

.admin-user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #f0b429;
    color: #132a45;
    font-weight: 800;
}

.admin-sidebar-user strong {
    display: block;
    color: #fff;
    font-size: 13px;
}

.admin-sidebar-user small {
    color: rgba(220, 230, 248, 0.84);
    font-size: 11px;
}

.admin-content {
    padding: 16px 18px 22px;
}

.admin-topbar {
    border-radius: 14px;
    border: 1px solid #d9e4f2;
    background: #fff;
    padding: 12px 16px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 8px 18px rgba(20, 39, 69, 0.07);
}

.admin-topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.admin-menu-toggle {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid #d6e2f0;
    background: #f7fbff;
    color: #25436b;
    display: none;
}

.admin-topbar-search {
    flex: 1;
    max-width: 360px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #dbe6f2;
    border-radius: 999px;
    background: #f8fbff;
    padding: 0 14px;
    height: 42px;
}

.admin-topbar-search i {
    color: #7a8ca7;
}

.admin-topbar-search input {
    border: 0;
    background: transparent;
    width: 100%;
    padding: 0;
    min-height: 0;
    outline: none;
    color: #18304d;
}

.admin-topbar-title h1 {
    margin: 0;
    font-size: clamp(24px, 3vw, 32px);
    color: #152c49;
    letter-spacing: -0.02em;
}

.admin-topbar-title p {
    margin: 3px 0 0;
    color: #5f738f;
    font-size: 13px;
}

.admin-topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-topbar-actions a {
    border-radius: 999px;
    border: 1px solid #d4e2f1;
    background: #f5f9ff;
    color: #1b3658;
    font-weight: 700;
    padding: 9px 14px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.admin-topbar-actions a i {
    color: #1f7a63;
}

.admin-content > .alert {
    margin-bottom: 12px;
}

.admin-page-head {
    border-radius: 14px;
    margin-bottom: 12px;
    padding: 14px 16px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: linear-gradient(120deg, #1d4675 0%, #284f81 52%, #355e91 100%);
    box-shadow: 0 12px 24px rgba(16, 37, 64, 0.18);
}

.admin-page-head-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-page-head .admin-page-head-copy {
    min-width: 0;
}

.admin-page-head h2 {
    margin: 0;
    font-size: clamp(22px, 2.4vw, 30px);
    font-family: 'Sora', sans-serif;
}

.admin-page-head p {
    margin: 6px 0 0;
    color: rgba(240, 247, 255, 0.9);
    font-size: 14px;
}

.admin-count-pill {
    border-radius: 999px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.admin-table-card {
    border-radius: 14px;
    border: 1px solid #dce6f2;
    background: #fff;
    box-shadow: 0 8px 20px rgba(20, 39, 69, 0.07);
}

.admin-dashboard {
    gap: 14px;
}

.admin-overview-hero {
    border-radius: 14px;
    padding: 18px 20px;
}

.admin-stats-grid {
    gap: 12px;
}

.admin-metric-card {
    border-radius: 12px;
    padding: 14px;
}

.admin-metric-card .metric-value {
    font-size: clamp(26px, 3vw, 34px);
}

.admin-quick-access {
    border-radius: 14px;
    padding: 16px;
    background: #fff;
}

.quick-action-grid {
    gap: 8px;
}

.quick-action-btn {
    border-radius: 10px;
    justify-content: flex-start;
}

.admin-hero-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #dce7f3;
    padding: 18px;
    box-shadow: 0 10px 20px rgba(20, 39, 69, 0.07);
}

.admin-hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr);
    gap: 16px;
    align-items: start;
}

.admin-hero-editor-card {
    padding: 20px;
}

.admin-hero-card-head,
.admin-hero-preview-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.admin-hero-card-head h3,
.admin-hero-preview-head h3 {
    margin: 0;
    color: #162f50;
}

.admin-hero-card-head p,
.admin-hero-preview-head p {
    margin: 6px 0 0;
}

.admin-hero-chip {
    flex-shrink: 0;
    border-radius: 999px;
    padding: 6px 10px;
    background: #e8f2ff;
    color: #285289;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid #d7e4f7;
}

.admin-hero-chip-soft {
    background: #eef8f3;
    color: #1f7a63;
    border-color: #d8efe5;
}

.admin-hero-section {
    border: 1px solid #e2ebf6;
    border-radius: 16px;
    padding: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    margin-bottom: 14px;
}

.admin-hero-section h4 {
    margin: 0 0 12px;
    color: #1b3558;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.admin-hero-section-actions {
    margin-bottom: 0;
}

.admin-hero-section .form-grid {
    gap: 12px 12px;
}

.admin-hero-section .form-group {
    gap: 6px;
}

.admin-hero-preview-panel {
    padding: 20px;
    position: sticky;
    top: 18px;
    background:
        radial-gradient(circle at 20% 14%, rgba(31, 122, 99, 0.08), transparent 34%),
        radial-gradient(circle at 84% 16%, rgba(30, 58, 95, 0.08), transparent 34%),
        #fff;
}

.admin-hero-preview-kicker {
    margin: 0;
    color: #1f7a63;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.admin-hero-preview-visual {
    border-radius: 18px;
    padding: 18px;
    background: linear-gradient(150deg, #f4fbf8 0%, #edf4ff 100%);
    border: 1px solid #dbe7f2;
}

.admin-hero-preview-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 7px 12px;
    background: #e8f5ef;
    color: #1f7a63;
    font-size: 12px;
    font-weight: 700;
}

.admin-hero-preview-visual h4 {
    margin: 12px 0 8px;
    color: #1e3a5f;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1;
    letter-spacing: -0.03em;
}

.admin-hero-preview-visual p {
    margin: 0;
}

.admin-hero-preview-visual #previewHeading {
    font-weight: 800;
    color: #243a5e;
    font-size: 18px;
    line-height: 1.3;
}

.admin-hero-preview-visual #previewSubtitle {
    margin-top: 10px;
    color: #5f718a;
    line-height: 1.7;
}

.admin-hero-preview-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.admin-hero-preview-btn {
    border-radius: 14px;
    padding: 10px 14px;
    background: #fff;
    color: #2a446a;
    font-weight: 700;
    border: 1px solid #d8e4f2;
    box-shadow: 0 8px 18px rgba(20, 39, 69, 0.06);
}

.admin-hero-preview-btn.primary {
    background: linear-gradient(135deg, #1f7a63, #1e5f64);
    color: #fff;
    border-color: transparent;
}

.admin-hero-preview-trust {
    margin-top: 14px;
    display: grid;
    gap: 4px;
    padding-top: 14px;
    border-top: 1px solid #dbe7f2;
}

.admin-hero-preview-trust strong {
    color: #1f3558;
}

.admin-hero-preview-trust span {
    color: #6c7e96;
    font-size: 13px;
}

.admin-hero-preview-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 14px;
}

.admin-hero-preview-stats > div {
    border-radius: 14px;
    border: 1px solid #dbe7f2;
    background: #fff;
    padding: 12px;
}

.admin-hero-preview-stats span {
    display: block;
    color: #6a7e98;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.admin-hero-preview-stats strong {
    display: block;
    margin-top: 5px;
    color: #16304f;
    font-size: 18px;
}

.admin-hero-card h3 {
    margin: 0 0 12px;
    color: #162f50;
}

.admin-hero-note {
    margin: 0 0 14px;
    color: #60748e;
    font-size: 13px;
}

.admin-hero-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.admin-hero-actions .btn {
    min-width: 160px;
}

.admin-hero-form .form-group {
    gap: 7px;
}

.admin-hero-form label {
    font-size: 13px;
}

.admin-hero-form input,
.admin-hero-form textarea {
    border-radius: 10px;
    min-height: 42px;
}

.admin-hero-form textarea {
    min-height: 96px;
}

.hero-preview-image {
    border-radius: 10px;
}

.admin-hero-form input,
.admin-hero-form textarea,
.admin-hero-form select {
    border-radius: 12px;
    border: 1px solid #c8dced;
    background: #fbfdff;
    min-height: 44px;
}

.admin-hero-form textarea {
    min-height: 112px;
}

.admin-hero-form label {
    font-size: 13px;
    color: #1a2f4d;
}

.admin-hero-form .muted {
    font-size: 12px;
}

.admin-hero-section .form-group.full {
    grid-column: 1 / -1;
}

.admin-hero-section .form-group input[type="checkbox"] {
    min-height: auto;
}

.admin-hero-table-actions a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 10px;
}

.admin-hero-library-head {
    margin-bottom: 12px;
}

.admin-hero-library-head h3 {
    margin: 0;
    color: #183252;
}

.admin-hero-library-head p {
    margin: 5px 0 0;
    color: #5d7190;
    font-size: 13px;
}

.admin-slider-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.admin-slider-card {
    border: 1px solid #d9e5f3;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 18px rgba(20, 39, 69, 0.08);
}

.admin-slider-card-image-wrap {
    position: relative;
    height: 150px;
    background: #f2f6fb;
}

.admin-slider-drag-handle {
    position: absolute;
    right: 8px;
    top: 8px;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: rgba(19, 42, 69, 0.8);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: grab;
    z-index: 2;
}

.admin-slider-drag-handle:active {
    cursor: grabbing;
}

.admin-slider-card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-slider-card-image-fallback {
    height: 100%;
    display: grid;
    place-items: center;
    color: #7c8fa9;
    font-weight: 700;
    font-size: 13px;
}

.admin-slider-card-body {
    padding: 12px;
}

.admin-slider-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.admin-slider-card-top h4 {
    margin: 0;
    color: #173152;
    font-size: 18px;
}

.admin-slider-order-pill {
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border: 1px solid #d7e3f3;
    color: #355378;
    background: #f7fbff;
    white-space: nowrap;
}

.admin-slider-card-body p {
    margin: 7px 0 10px;
    font-size: 13px;
    color: #5f7492;
}

.admin-slider-card-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.admin-slider-card-meta span {
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 700;
    color: #355378;
    background: #f3f8ff;
    border: 1px solid #d7e3f3;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.admin-slider-card-actions {
    display: grid;
    gap: 8px;
}

.admin-slider-card-actions .btn {
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;
}

.admin-order-inline-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

.admin-order-inline-form input[type="number"] {
    min-height: 38px;
}

.admin-slider-status-badge {
    display: inline-block;
    margin-top: 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    padding: 5px 9px;
}

.admin-slider-status-badge.is-active {
    color: #0f704f;
    background: #e7f8f1;
    border: 1px solid #ccecdc;
}

.admin-slider-status-badge.is-inactive {
    color: #6d7f98;
    background: #f2f6fb;
    border: 1px solid #dbe6f3;
}

.admin-slider-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 16px;
}

.admin-slider-modal.is-open {
    display: flex;
}

.admin-slider-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12, 22, 37, 0.58);
    backdrop-filter: blur(4px);
}

.admin-slider-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(1100px, 100%);
    max-height: 92vh;
    overflow: auto;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(12, 22, 37, 0.3);
    padding: 18px;
}

.admin-slider-modal-close {
    position: absolute;
    right: 16px;
    top: 12px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: #f1f5fb;
    color: #183252;
    font-size: 26px;
    line-height: 1;
}

.admin-slider-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    padding-right: 48px;
}

.admin-slider-modal-kicker {
    margin: 0;
    color: #1f7a63;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.admin-slider-modal-head h3 {
    margin: 3px 0 6px;
    color: #16304f;
}

.admin-slider-modal-head p {
    margin: 0;
    color: #5f718a;
    font-size: 13px;
}

.admin-slider-modal-form .admin-hero-section:last-child {
    margin-bottom: 0;
}

body.modal-open {
    overflow: hidden;
}

.table-wrap {
    border-radius: 14px;
    border: 1px solid #dce6f2;
    background: #fff;
    box-shadow: 0 8px 20px rgba(20, 39, 69, 0.07);
}

table {
    box-shadow: none;
    border-radius: 14px;
}

th,
td {
    border-bottom: 1px solid #ebf1f7;
}

td a {
    font-weight: 700;
    color: #1a4f87;
}

.admin-content svg {
    max-width: 100%;
    max-height: 100%;
}

@media (max-width: 1024px) {
    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        width: 270px;
        z-index: 260;
        transform: translateX(-110%);
        transition: transform 0.25s ease;
    }

    .admin-menu-open .admin-sidebar {
        transform: translateX(0);
    }

    .admin-content {
        padding: 14px;
    }

    .admin-menu-toggle {
        display: inline-grid;
        place-items: center;
        flex-shrink: 0;
    }

    .admin-topbar-search {
        order: 3;
        max-width: none;
        width: 100%;
    }
}

@media (max-width: 700px) {
    .admin-topbar {
        flex-wrap: wrap;
    }

    .admin-topbar-left {
        width: 100%;
    }

    .admin-topbar-actions {
        width: 100%;
    }

    .admin-topbar-actions a {
        width: 100%;
        text-align: center;
    }

    .admin-page-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-stats-grid,
    .quick-action-grid {
        grid-template-columns: 1fr;
    }

    .admin-hero-actions {
        width: 100%;
    }

    .admin-hero-actions .btn {
        width: 100%;
    }

    .admin-hero-layout {
        grid-template-columns: 1fr;
    }

    .admin-hero-preview-panel {
        position: static;
    }

    .admin-hero-preview-stats {
        grid-template-columns: 1fr;
    }

    .admin-slider-card-grid {
        grid-template-columns: 1fr;
    }
}

.login-card {
    width: min(440px, 94%);
    margin: 80px auto;
}

.id-card {
    width: min(420px, 100%);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid #d8e4ef;
    background: #fff;
}

.id-head {
    background: linear-gradient(120deg, var(--blue), var(--green));
    color: #fff;
    padding: 16px;
}

.id-body {
    padding: 16px;
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 16px;
}

.id-body img {
    width: 90px;
    height: 90px;
    border-radius: 10px;
    object-fit: cover;
}

@media (max-width: 980px) {
    .grid-4,
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .admin-shell {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .navbar {
        height: auto;
        min-height: 86px;
        padding: 14px 0;
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 40px;
        height: 40px;
        border-radius: 10px;
        background: rgba(31, 122, 99, 0.08);
        transition: background 0.2s;
    }

    .hamburger:hover {
        background: rgba(31, 122, 99, 0.16);
    }

    .hamburger span {
        transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
    }

    .hamburger.open span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .hamburger.open span:nth-child(2) {
        opacity: 0;
        width: 0;
    }

    .hamburger.open span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* mobile nav backdrop */
    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(10, 30, 60, 0.35);
        backdrop-filter: blur(3px);
        z-index: 1050;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .nav-overlay.open {
        display: block;
        opacity: 1;
    }

    .nav-wrap {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        position: fixed;
        left: 0;
        right: 0;
        top: 86px;
        background: #f8fbfa;
        border-bottom: 2px solid rgba(31, 122, 99, 0.18);
        padding: 0 20px 20px;
        z-index: 999;
        box-shadow: 0 16px 40px rgba(10, 30, 60, 0.16);
        transform: translateY(-110%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.28s ease;
    }

    .nav-wrap.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 2px;
    }

    .nav-links a {
        display: flex;
        padding: 11px 12px;
        border-radius: 10px;
        font-size: 15px;
    }

    .nav-actions {
        margin-top: 12px;
        width: 100%;
        padding-top: 12px;
        border-top: 1px solid rgba(31, 122, 99, 0.14);
        gap: 12px;
    }

    .nav-login-btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .hero {
        padding: 42px 24px;
    }

    .grid-4,
    .grid-3,
    .form-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .media-embed iframe {
        min-height: 240px;
    }
}

@media print {
    .no-print {
        display: none !important;
    }
}

/* Modern UI refresh layer for public website */
.site-body {
    font-family: 'Inter', sans-serif;
    background: #f4f7fb;
    color: #10213a;
}

html.menu-open {
    overflow: hidden;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: 'Poppins', sans-serif;
    letter-spacing: -0.02em;
}

.navbar {
    height: 86px;
}

.brand-logo {
    border-radius: 14px;
}

.brand strong {
    font-size: 20px;
}

@media (max-width: 1100px) {
    .brand strong {
        font-size: 18px;
    }

    .brand small {
        font-size: 9px;
    }
}

.nav-links {
    gap: 8px;
}

.nav-links a {
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 600;
    font-size: 15px;
}

.lang-toggle {
    border-radius: 999px;
    padding: 6px 8px;
    display: inline-flex;
    gap: 8px;
    align-items: center;
    background: #ecf2f8;
}

.lang-toggle a {
    padding: 5px 9px;
    border-radius: 999px;
}

.lang-toggle .selected {
    color: #fff;
    background: #1f7a63;
}

.btn {
    border-radius: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
    transform: scale(1.03);
}

.btn-outline {
    border-color: #d5e1ef;
    font-weight: 700;
}

.hero {
    margin-top: 26px;
    border-radius: 20px;
    min-height: 460px;
    padding: 78px 54px;
    isolation: isolate;
}

.hero::before {
    background: linear-gradient(120deg, rgba(31, 122, 99, 0.92) 0%, rgba(30, 58, 95, 0.92) 100%);
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 14% 18%, rgba(255, 255, 255, 0.22), transparent 34%);
    z-index: 0;
}

.hero-content {
    z-index: 2;
}

.hero h1 {
    font-size: clamp(34px, 6vw, 58px);
    font-weight: 800;
    margin-bottom: 16px;
}

.hero p {
    font-size: 17px;
    max-width: 620px;
}

.btn-ghost {
    border: 1px solid rgba(255, 255, 255, 0.8);
    color: #fff;
    background: transparent;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.14);
}

.section {
    padding: 56px 0;
}

.section-title {
    margin-bottom: 24px;
}

.card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(20, 39, 69, 0.08);
}

.stat-card {
    padding: 22px;
}

.stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #1f7a63;
    background: #e7f5f0;
    font-weight: 700;
}

.stat-value {
    font-size: 34px;
    margin: 12px 0 6px;
}

.stat-label {
    margin: 0;
    color: #4e5c72;
    font-weight: 600;
}

.news-card {
    overflow: hidden;
}

.news-image-wrap {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 14px;
}

.news-card img {
    transition: transform 0.35s ease;
}

.news-card:hover img {
    transform: scale(1.08);
}

.district-tile {
    min-height: 150px;
    display: grid;
    place-items: center;
    text-align: center;
    background:
        linear-gradient(140deg, rgba(31, 122, 99, 0.13), rgba(30, 58, 95, 0.13)),
        #fff;
    border: 1px solid #d8e5f1;
    box-shadow: 0 10px 26px rgba(20, 39, 69, 0.08);
}

.district-tile:hover {
    box-shadow: 0 14px 28px rgba(31, 122, 99, 0.22);
}

.district-tile h3 {
    margin: 0;
    color: #1e3a5f;
}

.media-frame {
    position: relative;
}

.media-frame iframe {
    border-radius: 16px;
    min-height: 420px;
}

.play-overlay {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 24px;
    background: rgba(30, 58, 95, 0.72);
    pointer-events: none;
}

.cta {
    border-radius: 18px;
}

.cta-centered {
    text-align: center;
    justify-content: center;
}

.cta-centered .btn {
    min-width: 190px;
}

.union-cta-section {
    padding-top: 18px;
    padding-bottom: 0;
}

.union-cta-card {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    padding: 20px;
    color: #fff;
    background:
        radial-gradient(circle at 16% 16%, rgba(255, 255, 255, 0.12) 0, transparent 24%),
        radial-gradient(circle at 86% 18%, rgba(149, 255, 208, 0.12) 0, transparent 24%),
        linear-gradient(135deg, #237f67 0%, #166a4f 44%, #103a58 100%);
    box-shadow: 0 22px 40px rgba(17, 47, 74, 0.14);
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.95fr);
    grid-template-areas:
        "copy visual"
        "strip strip";
    gap: 18px;
}

/* Pull the CTA slightly over the footer to avoid visible page background strip */
.union-cta-card {
    margin-bottom: -12px;
}

.union-cta-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 72px 72px;
    opacity: 0.28;
    pointer-events: none;
}

.union-cta-copy,
.union-cta-visual,
.union-cta-strip {
    position: relative;
    z-index: 1;
}

.union-cta-copy {
    grid-area: copy;
    align-self: center;
    padding: 10px 4px 10px 2px;
}

.union-cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #dff7e9;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.union-cta-copy h2 {
    margin: 14px 0 10px;
    font-size: clamp(30px, 4vw, 54px);
    line-height: 1.02;
    color: #fff;
}

.union-cta-copy p {
    margin: 0;
    max-width: 560px;
    font-size: clamp(15px, 1.55vw, 18px);
    line-height: 1.65;
    color: rgba(240, 248, 252, 0.92);
}

.union-cta-benefits {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
}

.union-cta-benefit {
    min-height: 88px;
    border-radius: 18px;
    padding: 14px 12px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
}

.union-cta-benefit-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 14px;
    flex-shrink: 0;
}

.union-cta-benefit-text {
    font-size: 13px;
    line-height: 1.2;
    font-weight: 700;
    color: #f5fffb;
}

.union-cta-visual {
    grid-area: visual;
    min-height: 280px;
    display: grid;
    place-items: center;
    position: relative;
}

.union-cta-emblem {
    width: min(100%, 420px);
    height: auto;
    filter: drop-shadow(0 18px 30px rgba(8, 23, 42, 0.24));
}

.union-cta-strip {
    grid-area: strip;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 15px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--ink);
    box-shadow: 0 14px 30px rgba(15, 31, 48, 0.14);
}

.union-cta-joiners {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.union-cta-avatar-stack {
    display: inline-flex;
    align-items: center;
}

.union-cta-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin-right: -10px;
    border: 2px solid #fff;
    background: linear-gradient(135deg, #1f7a63, #2557a6);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 6px 14px rgba(18, 47, 74, 0.18);
}

.union-cta-joiners-badge {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, #1d6f58, #163e5f);
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
}

.union-cta-joiners-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.union-cta-joiners-copy strong {
    font-size: 14px;
    color: #12314d;
}

.union-cta-joiners-copy small {
    font-size: 12px;
    color: #51677f;
}

.union-cta-button {
    min-width: 194px;
    min-height: 52px;
    padding: 0 18px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #207a63 0%, #1b6b53 100%);
    box-shadow: 0 12px 24px rgba(31, 122, 99, 0.2);
    white-space: nowrap;
}

.union-cta-button:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.union-cta-button i:first-child {
    font-size: 15px;
}

.union-cta-button i:last-child {
    margin-left: 2px;
    font-size: 14px;
}

/* =========================================================
   MOBILE FOOTER — app-style dark accordion layout
   Only applies on screens ≤ 760px
   ========================================================= */

.footer-mobile  { display: none; }
.footer-desktop { display: block; }

/* =========================================================
   DESKTOP FOOTER — rich dark layout
   Only applies on screens > 760px
   ========================================================= */

@media (min-width: 761px) {

    /* Reset legacy footer-grid on desktop */
    .footer-grid { display: none !important; }
    .copyright   { display: none; }

    .site-footer {
        margin-top: 0;
        padding-top: 0;
        padding-bottom: 0;
        background: #0d1d32;
    }

    /* --- Main 4-column grid --- */
    .footer-d-grid {
        display: grid;
        grid-template-columns: 1.8fr 1fr 1.2fr 1.2fr;
        gap: 40px;
        padding-top: 48px;
        padding-bottom: 48px;
        border-bottom: 1px solid rgba(255,255,255,0.07);
    }

    /* Brand column */
    .footer-d-brand-top {
        display: flex;
        align-items: center;
        gap: 14px;
        margin-bottom: 16px;
    }

    .footer-d-logo {
        width: 64px;
        height: 64px;
        border-radius: 50%;
        object-fit: contain;
        background: rgba(255,255,255,0.06);
        border: 2px solid rgba(255,255,255,0.12);
        flex-shrink: 0;
    }

    .footer-d-logo-placeholder {
        width: 64px;
        height: 64px;
        border-radius: 50%;
        background: rgba(31,122,99,0.25);
        border: 2px solid rgba(31,122,99,0.4);
        display: grid;
        place-items: center;
        font-size: 26px;
        color: #7dd3b8;
        flex-shrink: 0;
    }

    .footer-d-brand-name {
        display: flex;
        flex-direction: column;
        gap: 3px;
    }

    .footer-d-brand-name strong {
        color: #fff;
        font-size: 22px;
        font-family: 'Poppins', sans-serif;
        font-weight: 700;
        line-height: 1.1;
    }

    .footer-d-brand-name span {
        color: #6a8faa;
        font-size: 12px;
        line-height: 1.4;
    }

    .footer-d-brand-desc {
        color: #7a9bb8;
        font-size: 13.5px;
        line-height: 1.65;
        margin: 0 0 18px;
    }

    .footer-d-divider {
        border: none;
        border-top: 1px solid rgba(255,255,255,0.1);
        margin: 0 0 16px;
    }

    .footer-d-follow-label {
        color: #e8f1fa;
        font-size: 14px;
        font-weight: 600;
        margin: 0 0 12px;
    }

    .footer-d-socials {
        display: flex;
        gap: 12px;
    }

    .footer-d-social {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        display: grid;
        place-items: center;
        font-size: 17px;
        color: #fff;
        text-decoration: none;
        transition: transform 0.2s ease, filter 0.2s ease;
        margin-bottom: 0 !important;
    }

    .footer-d-social:hover {
        transform: translateY(-3px);
        filter: brightness(1.15);
    }

    .footer-d-social-fb { background: #1877f2; }
    .footer-d-social-x  { background: #14171a; border: 1px solid rgba(255,255,255,0.2); }
    .footer-d-social-yt { background: #ff0000; }
    .footer-d-social-ig { background: linear-gradient(135deg, #f9ce34, #ee2a7b, #6228d7); }

    /* Generic column styles */
    .footer-d-col-heading {
        display: flex;
        align-items: center;
        gap: 10px;
        color: #fff;
        font-size: 17px;
        font-family: 'Poppins', sans-serif;
        font-weight: 700;
        margin: 0 0 20px;
    }

    .footer-d-col-icon {
        width: 32px;
        height: 32px;
        border-radius: 8px;
        display: grid;
        place-items: center;
        font-size: 14px;
        color: #fff;
        flex-shrink: 0;
    }

    .footer-d-col-icon-green { background: rgba(31,122,99,0.75); }
    .footer-d-col-icon-teal  { background: rgba(13,148,136,0.75); }
    .footer-d-col-icon-blue  { background: rgba(30,80,160,0.75); }

    /* Link lists (Quick Links / Support) */
    .footer-d-link-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .footer-d-link-list li {
        border-top: 1px solid rgba(255,255,255,0.06);
    }

    .footer-d-link-list li:last-child {
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }

    .footer-d-link-list a {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 11px 4px;
        color: #8fafc8;
        font-size: 14px;
        text-decoration: none;
        transition: color 0.18s ease, padding-left 0.18s ease;
        margin-bottom: 0 !important;
    }

    .footer-d-link-list a:hover {
        color: #fff;
        padding-left: 8px;
    }

    .footer-d-link-list a .fa-chevron-right {
        margin-left: auto;
        font-size: 11px;
        color: #3d6080;
        transition: transform 0.18s ease, color 0.18s ease;
        flex-shrink: 0;
    }

    .footer-d-link-list a:hover .fa-chevron-right {
        transform: translateX(3px);
        color: #7dd3b8;
    }

    .footer-d-link-icon {
        color: #4d7a8a;
        font-size: 13px;
        width: 16px;
        text-align: center;
        flex-shrink: 0;
    }

    .footer-d-link-list a:hover .footer-d-link-icon {
        color: #7dd3b8;
    }

    /* Contact list */
    .footer-d-contact-list {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .footer-d-contact-list li {
        display: flex;
        align-items: center;
        gap: 12px;
        color: #8fafc8;
        font-size: 14px;
    }

    .footer-d-contact-icon {
        width: 34px;
        height: 34px;
        border-radius: 50%;
        display: grid;
        place-items: center;
        font-size: 14px;
        color: #fff;
        flex-shrink: 0;
    }

    .footer-d-ci-loc   { background: rgba(31,122,99,0.6); }
    .footer-d-ci-email { background: rgba(30,80,160,0.6); }
    .footer-d-ci-phone { background: rgba(13,148,136,0.6); }
    .footer-d-ci-clock { background: rgba(31,122,99,0.45); }

    /* Bottom bar */
    .footer-d-bottom {
        background: #08172a;
        padding: 18px 0;
    }

    .footer-d-bottom-inner {
        display: flex;
        align-items: center;
        gap: 16px;
        justify-content: center;
    }

    .footer-d-bottom-shield {
        color: #3d6080;
        font-size: 20px;
        flex-shrink: 0;
    }

    .footer-d-bottom-copy {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }

    .footer-d-bottom-copy > span {
        color: #4d7090;
        font-size: 13px;
    }

    .footer-d-bottom-links {
        display: flex;
        gap: 8px;
        align-items: center;
        font-size: 12px;
    }

    .footer-d-bottom-links a {
        color: #4d7090;
        text-decoration: none;
        transition: color 0.18s ease;
        margin-bottom: 0 !important;
    }

    .footer-d-bottom-links a:hover {
        color: #7dd3b8;
    }

    .footer-d-sep {
        color: #2d4a60;
    }

    .footer-d-bottom-deco {
        position: absolute;
        right: 40px;
        color: #1e3a55;
        font-size: 28px;
    }

    .footer-d-bottom-inner {
        position: relative;
    }

    /* Hide mobile copyright on desktop */
    .footer-copyright-mobile { display: none; }
}

@media (max-width: 760px) {

    .footer-desktop { display: none !important; }
    .footer-mobile  { display: block; }

    /* Remove any top margin on the footer so it sits flush under CTA */
    .site-footer {
        margin-top: 0;
        padding: 0 0 0;
    }

    /* --- Brand block --- */
    .footer-m-brand {
        background: #0d1f35;
        padding: 20px 16px 16px;
    }

    .footer-m-brand-left {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 14px;
    }

    .footer-m-logo {
        width: 52px;
        height: 52px;
        border-radius: 50%;
        object-fit: contain;
        background: rgba(255,255,255,0.08);
        flex-shrink: 0;
        border: 2px solid rgba(255,255,255,0.15);
    }

    .footer-m-logo-placeholder {
        width: 52px;
        height: 52px;
        border-radius: 50%;
        background: rgba(31,122,99,0.35);
        color: #fff;
        font-size: 22px;
        font-weight: 700;
        display: grid;
        place-items: center;
        flex-shrink: 0;
    }

    .footer-m-brand-text {
        display: flex;
        flex-direction: column;
        gap: 3px;
    }

    .footer-m-brand-text strong {
        color: #fff;
        font-size: 17px;
        font-family: 'Poppins', sans-serif;
    }

    .footer-m-brand-text span {
        color: #8fafc8;
        font-size: 12px;
        line-height: 1.4;
    }

    /* Social icons row */
    .footer-m-socials {
        display: flex;
        gap: 10px;
    }

    .footer-social-btn {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        display: grid;
        place-items: center;
        font-size: 15px;
        color: #fff;
        transition: transform 0.2s ease, filter 0.2s ease;
        margin-bottom: 0 !important;
    }

    .footer-social-btn:hover {
        transform: translateY(-2px);
        filter: brightness(1.15);
    }

    .footer-social-fb { background: #1877f2; }
    .footer-social-x  { background: #14171a; border: 1px solid rgba(255,255,255,0.18); }
    .footer-social-yt { background: #ff0000; }
    .footer-social-ig { background: linear-gradient(135deg, #f9ce34, #ee2a7b, #6228d7); }

    /* --- Accordion cards --- */
    .footer-m-accordion {
        background: #132030;
        border-top: 1px solid rgba(255,255,255,0.06);
    }

    .footer-m-acc-header {
        width: 100%;
        background: transparent;
        border: none;
        padding: 14px 16px;
        display: flex;
        align-items: center;
        gap: 12px;
        cursor: pointer;
        text-align: left;
    }

    .footer-m-acc-icon-wrap {
        width: 34px;
        height: 34px;
        border-radius: 10px;
        display: grid;
        place-items: center;
        font-size: 15px;
        color: #fff;
        flex-shrink: 0;
    }

    .footer-acc-green { background: rgba(31, 122, 99, 0.85); }
    .footer-acc-teal  { background: rgba(13, 148, 136, 0.85); }
    .footer-acc-blue  { background: rgba(30, 80, 160, 0.85); }

    .footer-m-acc-title {
        flex: 1;
        color: #e8f1fa;
        font-size: 15px;
        font-weight: 600;
        font-family: 'Poppins', sans-serif;
    }

    .footer-m-acc-chevron {
        color: #6a8faa;
        font-size: 13px;
        transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .footer-m-accordion.open .footer-m-acc-chevron {
        transform: rotate(180deg);
    }

    /* Accordion body — smooth slide */
    .footer-m-acc-body {
        overflow: hidden;
        max-height: 0;
        transition: max-height 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .footer-m-accordion.open .footer-m-acc-body {
        max-height: 400px;
    }

    /* --- Icon grid (Quick Links / Support) --- */
    .footer-m-icon-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
        padding: 10px 12px 16px;
    }

    .footer-m-icon-grid-5 {
        grid-template-columns: repeat(5, 1fr);
    }

    .footer-m-icon-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        text-decoration: none;
        color: #b0cde6;
        font-size: 11px;
        text-align: center;
        margin-bottom: 0 !important;
        padding: 8px 4px;
        border-radius: 10px;
        transition: background 0.18s ease, color 0.18s ease;
    }

    .footer-m-icon-item:hover {
        background: rgba(255,255,255,0.06);
        color: #fff;
    }

    .footer-m-item-icon {
        width: 38px;
        height: 38px;
        border-radius: 10px;
        background: rgba(255,255,255,0.07);
        display: grid;
        place-items: center;
        font-size: 16px;
        color: #7dd3b8;
        transition: background 0.18s ease;
    }

    .footer-m-icon-item:hover .footer-m-item-icon {
        background: rgba(31,122,99,0.28);
        color: #a7f0d8;
    }

    /* --- Contact list --- */
    .footer-m-contact-list {
        list-style: none;
        padding: 10px 16px 16px;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .footer-m-contact-list li {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        color: #b0cde6;
        font-size: 13.5px;
    }

    .footer-m-contact-list li i {
        color: #7dd3b8;
        font-size: 14px;
        margin-top: 2px;
        flex-shrink: 0;
        width: 16px;
        text-align: center;
    }

    /* copyright */
    .copyright {
        background: #0a1828;
        color: #4d7090;
        font-size: 12px;
        padding: 12px 16px;
        margin: 0;
        border-top: 1px solid rgba(255,255,255,0.05);
        text-align: center;
    }
}

.site-footer {
    background: #1e3a5f;
    margin-top: 0;
    padding: 0;
}

.footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 24px;
}

.mobile-bottom-nav {
    display: none !important;
}

/* Mobile-only elements hidden by default */
.nav-join-btn,
.nav-drawer-header,
.nav-trust-badges,
.nav-link-icon {
    display: none;
}

@media (max-width: 900px) {
    .hero {
        padding: 56px 28px;
        min-height: 390px;
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .brand-mark {
        width: 48px;
        height: 48px;
    }

    .brand-logo-img,
    .brand-logo {
        width: 48px;
        height: 48px;
    }

    .brand strong {
        font-size: 16px;
    }

    .brand small {
        max-width: 138px;
        font-size: 8px;
    }

    .hamburger {
        display: block;
        z-index: 160;
    }

    .hamburger span {
        border-radius: 3px;
    }

    .nav-wrap {
        display: flex;
        position: fixed;
        top: 0;
        right: 0;
        width: min(82vw, 340px);
        height: 100vh;
        background: #fff;
        box-shadow: -12px 0 30px rgba(15, 23, 42, 0.18);
        transform: translateX(110%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.3s ease, opacity 0.3s ease;
        padding: 98px 20px 24px;
        gap: 16px;
        align-items: stretch;
        border: 0;
    }

    .nav-wrap.open {
        transform: translateX(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links {
        flex-direction: column;
    }

    .nav-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-actions .btn,
    .lang-toggle {
        width: 100%;
        justify-content: center;
    }

    .hero {
        margin-top: 14px;
    }

    .grid-4,
    .grid-3,
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .media-frame iframe {
        min-height: 230px;
    }

    .mobile-bottom-nav {
        display: none;
    }

}

@media (max-width: 560px) {

    .union-cta-section {
        padding-top: 10px;
        padding-bottom: 12px;
    }

    .union-cta-card {
        padding: 16px;
        border-radius: 22px;
        grid-template-columns: 1fr;
        grid-template-areas:
            "visual"
            "copy"
            "strip";
        gap: 12px;
    }

    .union-cta-copy {
        padding: 0;
    }

    .union-cta-copy h2 {
        margin-top: 12px;
        font-size: clamp(26px, 9vw, 38px);
    }

    .union-cta-copy p {
        font-size: 14px;
        line-height: 1.6;
    }

    .union-cta-benefits {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-top: 16px;
    }

    .union-cta-benefit {
        min-height: 80px;
        padding: 12px 10px;
    }

    .union-cta-visual {
        min-height: 210px;
    }

    .union-cta-emblem {
        width: min(100%, 330px);
    }

    .union-cta-strip {
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
    }

    .union-cta-joiners {
        align-items: flex-start;
    }

    .union-cta-button {
        width: 100%;
        min-width: 0;
    }
    .grid-4,
    .grid-3,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .updates-layout {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .quick-actions {
        display: none;
    }

    .quick-head h3 {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .quick-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .quick-grid a {
        padding: 10px 6px;
        font-size: 12px;
    }

    .quick-grid a span {
        width: 26px;
        height: 26px;
    }

    .district-layout {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .district-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .district-photo-card img {
        height: 100px;
    }

    .member-cta-card {
        padding: 18px;
    }

    .dashboard-news-layout {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .preview-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 12px;
    }

    .preview-side {
        grid-template-columns: repeat(2, 1fr);
    }

    .preview-id-card img {
        width: 70px;
        height: 70px;
    }

    .split-media {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .gallery-grid img {
        height: 70px;
    }

    .news-card {
        padding: 12px;
    }

    .news-card h3 {
        font-size: 16px;
        margin: 8px 0 4px;
    }

    .updates-cards {
        grid-template-columns: 1fr;
    }

    .site-footer {
        padding: 28px 0;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .container,
    .home-shell {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 8px;
        padding-right: 8px;
    }

    .section {
        width: 100% !important;
        padding: 12px 0;
    }

    .navbar {
        height: 62px;
    }

    .home-hero {
        grid-template-columns: 1fr !important;
        padding: 10px 10px 14px;
        gap: 12px;
    }

    .home-hero-left,
    .home-hero-right,
    .hero-image-wrap {
        width: 100%;
        max-width: 100%;
    }

    .home-hero::after {
        bottom: -20px;
        height: 72px;
        left: -2%;
        right: -2%;
    }

    .home-hero-left h1 {
        font-size: clamp(24px, 7vw, 32px);
        margin: 6px 0 3px;
    }

    .home-hero-left h3 {
        font-size: 18px;
        margin-bottom: 6px;
    }

    .home-hero-left p {
        font-size: 14px;
        line-height: 1.5;
    }

    .home-badge {
        font-size: 11px;
        padding: 5px 10px;
    }

    .home-hero-left h1::after {
        width: 80px;
        height: 4px;
        margin-top: 6px;
    }

    .hero-trust-row {
        margin-top: 10px;
        gap: 8px;
    }

    .avatar-stack img {
        width: 26px;
        height: 26px;
        margin-left: -8px;
    }

    .avatar-stack img:first-child {
        margin-left: 0;
    }

    .hero-image-wrap {
        height: 240px;
        border-radius: 14px;
    }

    .hero-image-wrap::after {
        height: 50px;
        bottom: -6px;
    }

    .section-stats {
        padding-bottom: 18px;
        margin-top: -4px;
    }

    .stats-grid {
        gap: 10px;
    }

    .stats-grid .card {
        min-height: 110px;
        padding: 14px;
    }

    .stat-icon {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .stat-value {
        font-size: 22px;
    }

    .stat-label {
        font-size: 12px;
    }

    .section-title h2 {
        font-size: 20px;
        margin: 0;
    }

    .news-card {
        padding: 10px;
    }

    .news-image-wrap {
        height: 140px;
    }

    .news-card h3 {
        font-size: 14px;
        margin: 6px 0 3px;
    }

    .news-card p {
        font-size: 12px;
    }

    .read-more {
        font-size: 12px;
    }

    .quick-actions {
        display: none;
    }

    .quick-head {
        margin-bottom: 8px;
    }

    .quick-head h3 {
        font-size: 13px;
    }

    .quick-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .quick-grid a {
        padding: 8px 4px;
        font-size: 10px;
        border-radius: 8px;
    }

    .quick-grid a span {
        width: 22px;
        height: 22px;
        margin-bottom: 2px;
    }

    .quick-grid a span i {
        font-size: 10px;
    }

    .district-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .district-photo-card img {
        height: 90px;
    }

    .district-info h3 {
        font-size: 16px;
        margin: 0 0 3px;
    }

    .member-cta-card {
        padding: 14px;
        border-radius: 12px;
    }

    .member-cta-card h3 {
        font-size: 16px;
        margin-bottom: 6px;
    }

    .member-cta-card p {
        font-size: 12px;
        margin: 0;
        line-height: 1.5;
    }

    .member-crown {
        width: 30px;
        height: 30px;
        font-size: 18px;
        margin-bottom: 2px;
    }

    .dashboard-preview,
    .news-media {
        padding: 14px;
    }

    .dashboard-preview h3,
    .news-media h3 {
        font-size: 16px;
        margin: 0 0 10px;
    }

    .preview-side a {
        padding: 6px 8px;
        font-size: 12px;
    }

    .preview-main {
        padding: 8px;
    }

    .profile-mini img {
        width: 38px;
        height: 38px;
    }

    .mini-stats p {
        font-size: 12px;
        padding: 6px;
    }

    .preview-id-card {
        padding: 8px;
        gap: 6px;
    }

    .preview-id-card small {
        font-size: 10px;
    }

    .preview-id-card img {
        width: 60px;
        height: 60px;
    }

    .media-frame {
        min-height: 200px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 4px;
    }

    .gallery-grid img {
        height: 60px;
    }

    .final-cta {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .final-cta h2 {
        font-size: 18px;
        margin: 0;
    }

    .final-cta p {
        margin: 0;
        font-size: 13px;
    }

    .final-cta .btn {
        width: 100%;
    }

    .site-footer {
        padding: 24px 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .footer-grid h3,
    .footer-grid h4 {
        font-size: 14px;
        margin: 0 0 8px;
    }

    .footer-grid p,
    .footer-grid a {
        font-size: 12px;
    }

    .footer-grid a {
        display: block;
        margin-bottom: 4px;
    }

    .social-links {
        margin-top: 8px !important;
        flex-wrap: wrap;
    }

    .social-links a {
        width: 36px;
        height: 36px;
        flex-shrink: 0;
    }
}

/* Premium homepage UI layer */
.nav-login-btn {
    padding-inline: 16px;
    min-height: 42px;
}


.home-shell {
    width: min(1280px, 98%);
}

.section-hero {
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
}

.home-hero {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 40px;
    align-items: center;
    background:
        radial-gradient(circle at 8% 10%, rgba(31, 122, 99, 0.08), transparent 34%),
        radial-gradient(circle at 84% 12%, rgba(30, 58, 95, 0.08), transparent 36%),
        #f3f8fd;
    border-radius: 0;
    padding: 24px 26px 18px;
    box-shadow: none;
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.home-hero-slider {
    position: relative;
    border-radius: 18px;
}

.home-hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(14px) scale(0.995);
    transition: opacity 0.45s ease, transform 0.55s ease;
}

.home-hero-slide.is-active {
    position: relative;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.home-hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 8;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: #1e3a5f;
    box-shadow: 0 8px 20px rgba(20, 39, 69, 0.22);
    cursor: pointer;
}

.home-hero-nav.prev {
    left: 8px;
}

.home-hero-nav.next {
    right: 8px;
}

.home-hero-dots {
    position: absolute;
    left: 50%;
    bottom: 8px;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 8;
}

.home-hero-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    border: 0;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
}

.home-hero-dot.is-active {
    width: 22px;
    background: #fff;
}

.home-hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -18px;
    height: 58px;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(244, 247, 251, 0) 0%, rgba(244, 247, 251, 0.9) 100%);
    z-index: 0;
}

.home-hero-left,
.home-hero-right {
    position: relative;
    z-index: 2;
}

.section-stats {
    padding-top: 0;
    padding-bottom: 38px;
    margin-top: -14px;
    position: relative;
    z-index: 2;
}

.section-stats .stats-grid {
    margin-top: 0;
    gap: 14px;
}

.home-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e8f5ef;
    color: #1f7a63;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 700;
}

.home-badge::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 14px;
    color: #14956f;
}

.home-hero-left h1 {
    font-size: clamp(40px, 5.6vw, 66px);
    line-height: 1;
    margin: 14px 0 6px;
    color: #1e3a5f;
    letter-spacing: -0.03em;
}

.home-hero-left h1::after {
    content: '';
    display: block;
    width: 130px;
    height: 5px;
    margin-top: 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, #1f7a63, #20a67e);
}

.home-hero-left h3 {
    margin: 0 0 10px;
    font-size: 32px;
    color: #1f2f49;
}

.home-hero-left p {
    margin: 0;
    color: #6c757d;
    font-size: 17px;
    line-height: 1.8;
    max-width: 560px;
}

.hero-trust-row {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.hero-trust-row p {
    margin: 0;
    font-size: 14px;
    color: #34445f;
}

.trust-growth {
    font-size: 13px;
    font-weight: 600;
    color: #1f7a63;
    padding-left: 12px;
    border-left: 1px solid #d2dfec;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.trust-growth::before {
    content: '\f201';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 12px;
}

.hero-actions .btn {
    min-height: 44px;
    padding-inline: 20px;
}

.avatar-stack {
    display: flex;
    align-items: center;
}

.avatar-stack img {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 2px solid #fff;
    margin-left: -10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.avatar-stack img:first-child {
    margin-left: 0;
}

.hero-image-wrap {
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    height: 485px;
    box-shadow: 0 14px 28px rgba(17, 37, 63, 0.16);
}

.hero-image-wrap > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slider {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slider-track {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.03);
    transition: opacity 0.6s ease, transform 1.6s ease;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
}

.hero-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    color: #1e3a5f;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 20px rgba(12, 32, 55, 0.24);
    cursor: pointer;
    z-index: 4;
}

.hero-slider-btn.prev {
    left: 12px;
}

.hero-slider-btn.next {
    right: 12px;
}

.hero-slider-dots {
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 4;
}

.hero-slider-dot {
    width: 8px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.hero-slider-dot.is-active {
    width: 22px;
    background: #ffffff;
}

.hero-image-gradient {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
    linear-gradient(102deg, rgba(31, 122, 99, 0.44) 0%, rgba(30, 58, 95, 0.14) 44%, transparent 82%),
    radial-gradient(circle at 84% 16%, rgba(255, 255, 255, 0.2), transparent 36%);
}

.hero-image-wrap::after {
    content: '';
    position: absolute;
    left: -12%;
    right: -12%;
    bottom: -18px;
    height: 92px;
    z-index: 2;
    background:
        radial-gradient(120% 100% at 50% 0%, rgba(22, 181, 132, 0.4) 0%, rgba(22, 181, 132, 0.2) 38%, transparent 72%),
        linear-gradient(100deg, rgba(31, 122, 99, 0.58), rgba(30, 58, 95, 0.3));
    filter: blur(0.4px);
    border-radius: 55% 55% 0 0;
}

.card-glass {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 14px;
}

.floating-stat {
    position: absolute;
    padding: 10px 12px;
    min-width: 114px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 3;
    box-shadow: 0 10px 24px rgba(17, 37, 63, 0.16);
}

.floating-stat-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: #ecf6f3;
    color: #1f7a63;
    font-size: 14px;
    flex-shrink: 0;
}

.stat-icon-district {
    background: #fff3dc;
    color: #e9a100;
}

.stat-icon-issues {
    background: #ebf7f3;
    color: #1f7a63;
}

.stat-icon-card {
    background: #e8f5ef;
    color: #1f7a63;
}


.floating-stat strong {
    font-size: 22px;
    color: #0f253f;
    line-height: 1.1;
    display: block;
}

.floating-stat small {
    color: #48607e;
    font-weight: 600;
    font-size: 12px;
    display: block;
}

.stat-one {
    right: 18px;
    top: 20px;
}

.stat-two {
    left: 18px;
    top: 42%;
}

.stat-three {
    right: 14px;
    bottom: 16px;
}

.stats-grid .card {
    padding: 24px;
    min-height: 142px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 18px;
    border: 1px solid rgba(30, 58, 95, 0.1);
    background: linear-gradient(180deg, #ffffff 0%, #f6fbff 100%);
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stats-grid .card::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 4px;
    background: linear-gradient(90deg, rgba(31, 122, 99, 0.78), rgba(30, 58, 95, 0.55));
    opacity: 0.18;
}

.stats-grid .card:hover {
    transform: translateY(-7px) scale(1.01);
    box-shadow: 0 18px 38px rgba(17, 37, 63, 0.15);
}

.stats-grid .stat-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(145deg, #eef8f3, #dff2ea);
    box-shadow: inset 0 0 0 1px rgba(31, 122, 99, 0.08);
}

.section-title-tools {
    align-items: center;
}

.title-controls {
    display: flex;
    gap: 8px;
}

.title-controls button,
.quick-head button {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid #d8e4ef;
    background: #fff;
    color: #1e3a5f;
    cursor: pointer;
}

.updates-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 20px;
    align-items: stretch;
}

.updates-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.news-meta-row {
    margin-top: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.news-tag {
    font-size: 11px;
    font-weight: 700;
    border-radius: 999px;
    padding: 4px 8px;
    color: #166350;
    background: #e7f7f1;
}

.news-card .muted {
    font-size: 13px;
}

.news-card h3 {
    margin: 10px 0 8px;
    font-size: 21px;
}

.news-card p {
    margin-top: 0;
}

.read-more {
    color: #1f7a63;
    font-weight: 700;
    font-size: 14px;
}


.quick-actions {
    padding: 20px;
}

.quick-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.quick-head h3 {
    margin: 0;
}

.command-center {
    padding: 18px;
    border-radius: 20px;
    border: 1px solid #d7e6f3;
    background:
        radial-gradient(circle at 90% 10%, rgba(31, 122, 99, 0.12), transparent 38%),
        linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
    box-shadow: 0 18px 38px rgba(16, 38, 63, 0.14);
    display: flex;
    flex-direction: column;
    gap: 14px;
    height: 100%;
}

.command-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 0;
}

.command-head h3 {
    color: #102a48;
    font-size: 28px;
    margin: 0;
    letter-spacing: -0.01em;
}

.command-head p {
    margin: 4px 0 0;
    color: #5d7590;
    font-size: 13px;
}

.command-pulse {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: #1f7a63;
    box-shadow: 0 0 0 0 rgba(31, 122, 99, 0.46);
    animation: commandPulse 2.2s infinite;
}

@keyframes commandPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(31, 122, 99, 0.42);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(31, 122, 99, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(31, 122, 99, 0);
    }
}

.command-mini-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.mini-stat {
    border-radius: 14px;
    border: 1px solid #dbe8f5;
    background: #fff;
    padding: 10px 10px 9px;
    box-shadow: 0 8px 16px rgba(16, 38, 63, 0.06);
}

.mini-stat small {
    display: block;
    color: #67819b;
    font-size: 11px;
    margin-bottom: 3px;
}

.mini-stat strong {
    font-size: 22px;
    line-height: 1;
    color: #143557;
    font-family: 'Sora', sans-serif;
}

.command-actions {
    gap: 10px;
}

.command-actions a {
    min-height: 72px;
    border-radius: 14px;
    border: 1px solid #d8e7f4;
    background: linear-gradient(160deg, #f4f9ff 0%, #edf6ff 100%);
    box-shadow: 0 8px 16px rgba(16, 38, 63, 0.06);
    padding: 12px;
}

.command-actions a b {
    font-size: 15px;
    color: #16385b;
    font-weight: 800;
}

.command-actions a span {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #d4e3f1;
}

.command-actions a:hover {
    transform: translateY(-4px);
    border-color: #bcd4ea;
    background: linear-gradient(160deg, #ecf5ff 0%, #e3f3ee 100%);
    box-shadow: 0 14px 24px rgba(16, 38, 63, 0.11);
}

.command-activity {
    margin-top: 2px;
    padding-top: 10px;
    border-top: 1px dashed #cfe0ee;
}

.command-activity h4 {
    margin: 0 0 8px;
    color: #163758;
    font-size: 16px;
}

.command-activity ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.command-activity li {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 9px;
    align-items: start;
    padding: 8px;
    border-radius: 12px;
    background: #f6faff;
    border: 1px solid #e2ecf7;
    opacity: 0;
    transform: translateY(7px);
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
}

.command-activity li.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.command-activity li:hover {
    background: #eef6ff;
}

.command-activity li i {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: inline-grid;
    place-items: center;
    color: #1f7a63;
    background: #fff;
    border: 1px solid #d9e7f3;
    font-size: 13px;
}

.command-activity li p {
    margin: 1px 0 2px;
    color: #1b3858;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

.command-activity li small {
    color: #6a8199;
    font-size: 12px;
}

.updates-main {
    min-width: 0;
}

.title-controls {
    display: flex;
    gap: 8px;
}

.title-controls button,
.news-image-slider-btn,
.update-gallery-btn {
    border: 1px solid #d8e4ef;
    background: #fff;
    color: #1e3a5f;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    box-shadow: 0 6px 18px rgba(15, 39, 71, 0.08);
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.title-controls button:hover,
.news-image-slider-btn:hover,
.update-gallery-btn:hover {
    transform: translateY(-1px);
    background: #f6fbff;
}

.updates-cards {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.updates-cards::-webkit-scrollbar {
    display: none;
}

.news-card {
    flex: 0 0 min(100%, 330px);
    scroll-snap-align: start;
}

.news-image-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: linear-gradient(180deg, #edf5fb 0%, #f7fbff 100%);
    min-height: 220px;
}

.news-image-wrap img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.news-image-slider,
.update-detail-gallery {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
}

.update-detail-gallery {
    min-height: 420px;
}

.news-image-slider-track,
.update-detail-gallery-track {
    display: flex;
    width: 100%;
    transition: transform 0.35s ease;
}

.news-image-slide,
.update-detail-slide {
    flex: 0 0 100%;
    width: 100%;
    margin: 0;
}

.news-image-slide img,
.update-detail-slide img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.update-detail-slide img {
    height: 420px;
}

.news-image-slider-btn,
.update-gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.news-image-slider-btn.prev,
.update-gallery-btn.prev {
    left: 10px;
}

.news-image-slider-btn.next,
.update-gallery-btn.next {
    right: 10px;
}

.news-image-slider-dots,
.update-gallery-dots {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 2;
}

.news-image-slider-dot,
.update-gallery-dot {
    width: 9px;
    height: 9px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.58);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.news-image-slider-dot.is-active,
.update-gallery-dot.is-active {
    background: #1f7a63;
}

.updates-selected-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.updates-selected-strip img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #d8e4ef;
}

.update-detail-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.update-detail-chip {
    display: inline-block;
    border-radius: 999px;
    padding: 6px 12px;
    background: #e7f7f1;
    color: #1f7a63;
    font-weight: 700;
    margin-bottom: 10px;
}

.page-hero-updates h1 {
    margin-bottom: 8px;
}

.update-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
    color: #5b6d82;
}

.update-detail-meta span {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid #d9e6f2;
    border-radius: 999px;
    padding: 6px 12px;
}

.update-detail-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.update-detail-layout {
    display: grid;
    grid-template-columns: 1.7fr 0.9fr;
    gap: 20px;
}

.update-detail-card,
.update-share-card {
    background: #fff;
    border: 1px solid #dde6f0;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(15, 39, 71, 0.08);
}

.update-detail-content {
    padding: 18px;
}

.update-detail-content h2,
.update-share-card h3 {
    font-family: 'Sora', sans-serif;
}

.update-detail-content p {
    line-height: 1.8;
    color: #324861;
    white-space: pre-wrap;
}

.update-detail-sidebar {
    display: grid;
    align-content: start;
}

.update-share-card {
    padding: 18px;
}

.update-share-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.update-detail-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.update-detail-list li {
    border-bottom: 1px dashed #dce6f2;
    padding-bottom: 8px;
}

@media (max-width: 991px) {
    .update-detail-layout {
        grid-template-columns: 1fr;
    }

    .news-card {
        flex-basis: 290px;
    }
}

@media (max-width: 576px) {
    .news-card {
        flex-basis: 84vw;
    }

    .update-share-buttons {
        grid-template-columns: 1fr;
    }
}

.quick-actions h3 {
    margin-bottom: 14px;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.quick-grid a {
    background: #f2f6fb;
    border-radius: 12px;
    padding: 14px 8px;
    font-size: 13px;
    font-weight: 700;
    text-align: left;
    display: grid;
    gap: 6px;
    place-items: start;
    color: #1e3a5f;
    transition: all 0.22s ease;
}

.quick-grid a span {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: #fff;
}

.quick-grid a span i {
    color: var(--green);
    font-size: 14px;
}


.quick-grid a:hover {
    background: #e4eef9;
    transform: translateY(-3px);
}

.district-layout {
    display: grid;
    grid-template-columns: 1fr 250px;
    gap: 20px;
    align-items: start;
}

/* Legacy grid class kept for pages/districts.php */
.district-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

/* Carousel wrapper — full width inside district-layout left column */
.district-carousel-wrap {
    min-width: 0;
}

.district-cards {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.district-cards::-webkit-scrollbar {
    display: none;
}

.district-cards .district-photo-card {
    flex: 0 0 200px;
    scroll-snap-align: start;
}

.district-photo-card {
    overflow: hidden;
    padding: 0;
}

.district-photo-card img {
    height: 116px;
    width: 100%;
    object-fit: cover;
}

.district-info {
    padding: 12px;
}

.district-info h3 {
    margin: 0 0 4px;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.district-info a {
    color: #1f7a63;
    font-weight: 700;
    font-size: 13px;
}

.member-cta-card {
    border-radius: 16px;
    background: linear-gradient(155deg, #1f7a63, #1e3a5f);
    color: #fff;
    padding: 22px;
    box-shadow: 0 14px 32px rgba(17, 37, 63, 0.22);
}

.member-crown {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.15);
    margin-bottom: 4px;
}

.member-cta-card h3 {
    margin-top: 0;
}

.member-cta-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.7;
}

.member-cta-card .btn {
    width: 100%;
    margin-top: 8px;
    background: #fff;
    color: #184268;
}

.member-cta-card .hero-trust-row p {
    color: #fff;
}

.dashboard-news-layout {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 20px;
}

.dashboard-preview,
.news-media {
    padding: 22px;
}

.preview-grid {
    border-radius: 14px;
    background: linear-gradient(165deg, #ebf4ff, #f9fcff);
    padding: 14px;
    display: grid;
    grid-template-columns: 120px 1fr 150px;
    gap: 12px;
}

.preview-side {
    display: grid;
    gap: 10px;
}

.preview-side a {
    border-radius: 10px;
    background: #fff;
    color: #1e3a5f;
    padding: 8px 10px;
    font-size: 13px;
    font-weight: 700;
}

.preview-main {
    border-radius: 12px;
    background: #fff;
    padding: 10px;
}

.profile-mini {
    display: flex;
    gap: 10px;
    align-items: center;
}

.profile-mini img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
}

.profile-mini strong {
    display: block;
}

.profile-mini small {
    color: #5b6b82;
}

.mini-stats {
    margin-top: 10px;
    display: grid;
    gap: 6px;
}

.mini-stats p {
    margin: 0;
    border-radius: 8px;
    background: #f2f6fb;
    padding: 8px;
    font-size: 13px;
    color: #32435f;
    display: flex;
    justify-content: space-between;
}

.preview-id-card {
    border-radius: 12px;
    background: #fff;
    padding: 12px;
    display: grid;
    align-content: start;
    gap: 10px;
}

.preview-id-card img {
    width: 82px;
    height: 82px;
}

.split-media {
    display: grid;
    grid-template-columns: 1fr 160px;
    gap: 14px;
    align-items: stretch;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.gallery-grid img {
    border-radius: 10px;
    width: 100%;
    height: 78px;
    object-fit: cover;
}

.final-cta {
    justify-content: space-between;
    text-align: left;
    background: linear-gradient(105deg, #1f7a63, #0f5132, #1e3a5f);
}

@keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.home-hero-left,
.home-hero-right {
    animation: riseIn 0.55s ease both;
}

.home-hero-right {
    animation-delay: 0.08s;
}

.final-cta p {
    margin: 6px 0 0;
    color: rgba(255, 255, 255, 0.92);
}

.footer-grid {
    grid-template-columns: 1.35fr 1fr 1fr 1fr;
    gap: 24px;
}

.footer-grid p,
.footer-grid a {
    font-size: 14px;
}

.footer-grid .social-links {
    margin-top: 12px;
}

@media (max-width: 1100px) {
    .updates-layout {
        grid-template-columns: 1fr;
    }

    .command-center {
        height: auto;
    }

    .district-layout {
        grid-template-columns: 1fr;
    }

    .dashboard-news-layout {
        grid-template-columns: 1fr;
    }

    .district-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .home-hero {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 16px 12px;
        border-radius: 0;
    }

    .home-hero-left,
    .home-hero-right,
    .hero-image-wrap {
        width: 100%;
        max-width: 100%;
    }

    .home-hero::after {
        bottom: -14px;
        height: 48px;
    }

    .section-stats {
        padding-top: 2px;
        padding-bottom: 26px;
        margin-top: -8px;
    }

    .section-stats .stats-grid {
        margin-top: -8px;
    }

    .navbar {
        height: 68px;
    }

    .home-hero-left h3 {
        font-size: 28px;
    }

    .hero-image-wrap {
        height: 320px;
    }

    .hero-image-wrap::after {
        height: 72px;
        bottom: -10px;
    }

    .floating-stat {
        display: none;
    }

    .stats-grid .card {
        min-height: 132px;
    }

    .updates-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .district-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .preview-grid {
        grid-template-columns: 1fr;
    }

    .split-media {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 640px) {
    .section {
        padding: 38px 0;
    }

    .home-hero {
        padding: 12px 12px 16px;
        gap: 16px;
    }

    .home-hero::after {
        bottom: -12px;
        height: 44px;
    }

    .home-hero-left h1 {
        font-size: clamp(28px, 8vw, 40px);
        margin: 8px 0 4px;
    }

    .home-hero-left h3 {
        font-size: 22px;
        margin-bottom: 8px;
    }

    .home-hero-left p {
        font-size: 15px;
        line-height: 1.6;
    }

    .home-badge {
        font-size: 12px;
        padding: 6px 12px;
    }

    .home-hero-left h1::after {
        width: 100px;
        margin-top: 8px;
    }

    .hero-trust-row {
        margin-top: 14px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .hero-actions {
        margin-top: 14px;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-image-wrap {
        height: 280px;
        border-radius: 16px;
    }

    .hero-slider-btn {
        width: 30px;
        height: 30px;
    }

    .hero-slider-dots {
        bottom: 8px;
    }

    .hero-image-wrap::after {
        height: 60px;
        bottom: -8px;
    }

    .section-stats {
        padding-top: 0;
        padding-bottom: 24px;
        margin-top: -6px;
    }

    .section-stats-modern {
        margin-top: 8px;
    }

    .stats-grid .card {
        min-height: 120px;
        padding: 18px;
    }

    .stat-icon {
        width: 36px;
        height: 36px;
    }

    .stat-value {
        font-size: 26px;
    }

    .stat-label {
        font-size: 14px;
    }

    .updates-cards {
        grid-template-columns: 1fr;
    }

    .district-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .command-head h3 {
        font-size: 24px;
    }

    .command-mini-stats {
        grid-template-columns: 1fr;
    }

    .command-actions {
        grid-template-columns: 1fr;
    }

    .final-cta {
        text-align: center;
        justify-content: center;
    }

    .trust-growth {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Modern stats dashboard section */
.section-stats-modern {
    margin-top: 10px;
    padding-top: 0;
    padding-bottom: 34px;
    position: relative;
    z-index: 3;
}

.section-stats-modern .stats-surface {
    border-radius: 16px 16px 18px 18px;
    padding: 22px;
    background:
        radial-gradient(circle at 14% 18%, rgba(255, 255, 255, 0.2), transparent 42%),
        radial-gradient(circle at 88% 8%, rgba(255, 255, 255, 0.16), transparent 36%),
        linear-gradient(140deg, #1f7a63 0%, #1b6f73 44%, #1e3a5f 100%);
    box-shadow: 0 16px 38px rgba(20, 39, 69, 0.24);
}

.section-stats-modern .stats-head {
    margin-bottom: 16px;
}

.section-stats-modern .stats-head h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(20px, 3vw, 28px);
    letter-spacing: -0.01em;
}

.section-stats-modern .stats-head p {
    margin: 6px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 14px;
}

.section-stats-modern .stats-grid-modern {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.section-stats-modern .stat-card-modern {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.36);
    border-radius: 14px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(7px);
    box-shadow: 0 10px 26px rgba(14, 32, 54, 0.2);
    transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.section-stats-modern .stat-card-modern:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 16px 30px rgba(14, 32, 54, 0.28);
}

.section-stats-modern .stat-card-modern.is-primary {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.2));
    border-color: rgba(255, 255, 255, 0.7);
}

.section-stats-modern .stat-card-modern .stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    color: #1f7a63;
}

.section-stats-modern .stat-number-wrap {
    margin: 10px 0 4px;
}

.section-stats-modern .stat-card-modern .stat-value {
    color: #ffffff;
    font-size: clamp(34px, 4vw, 44px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    text-shadow: 0 3px 8px rgba(15, 30, 48, 0.35);
}

.section-stats-modern .stat-card-modern .stat-label {
    margin: 0;
    color: #f4fbff;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.section-stats-modern .stat-card-modern .stat-note {
    display: block;
    margin-top: 6px;
    color: rgba(240, 250, 255, 0.88);
    font-size: 12px;
}

.section-stats-modern.stats-animate .stat-card-modern {
    opacity: 0;
    transform: translateY(16px);
}

.section-stats-modern.stats-animate.stats-visible .stat-card-modern {
    opacity: 1;
    transform: translateY(0);
}

.section-stats-modern.stats-animate.stats-visible .stat-card-modern:nth-child(1) { transition-delay: 0.02s; }
.section-stats-modern.stats-animate.stats-visible .stat-card-modern:nth-child(2) { transition-delay: 0.08s; }
.section-stats-modern.stats-animate.stats-visible .stat-card-modern:nth-child(3) { transition-delay: 0.14s; }
.section-stats-modern.stats-animate.stats-visible .stat-card-modern:nth-child(4) { transition-delay: 0.2s; }

@media (max-width: 980px) {
    .section-stats-modern .stats-grid-modern {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .section-stats-modern {
        padding-bottom: 22px;
    }

    .section-stats-modern .stats-surface {
        padding: 14px;
        border-radius: 14px;
    }

    .section-stats-modern .stats-grid-modern {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        padding-bottom: 4px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .section-stats-modern .stats-grid-modern .stat-card-modern {
        flex: 0 0 84%;
        scroll-snap-align: center;
    }

    .section-stats-modern .stats-grid-modern::-webkit-scrollbar {
        height: 6px;
    }

    .section-stats-modern .stats-grid-modern::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.4);
        border-radius: 999px;
    }
}

@media (max-width: 400px) {
    .container,
    .home-shell,
    .home-hero,
    .section,
    .section-hero {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* =========================================================
   COMPREHENSIVE MOBILE RESPONSIVE FIXES
   ========================================================= */

/* --- Prevent horizontal overflow globally --- */
html {
    overflow-x: hidden;
    max-width: 100vw;
}

/* --- Navbar / Header mobile fixes --- */
@media (max-width: 760px) {
    .site-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
    }

    .navbar {
        height: auto;
        min-height: 60px;
        padding: 10px 0;
        flex-wrap: nowrap;
        position: relative;
    }

    .brand {
        flex: 1;
        min-width: 0;
        overflow: hidden;
    }

    .brand span {
        overflow: hidden;
        min-width: 0;
    }

    .brand strong {
        font-size: 15px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
        max-width: 180px;
    }

    .brand small {
        display: none;
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        flex-shrink: 0;
        width: 38px;
        height: 38px;
        padding: 0;
        z-index: 201;
    }

    .hamburger span {
        display: block;
        height: 2px;
        width: 22px;
        background: var(--blue);
        border-radius: 2px;
        margin: 3px auto;
        transition: all 0.25s ease;
    }

    /* Slide-out nav drawer */
    .nav-wrap {
        display: flex !important;
        position: fixed;
        top: 0;
        right: 0;
        width: min(70vw, 300px);
        height: 100dvh;
        background: #fff;
        box-shadow: -8px 0 32px rgba(15, 23, 42, 0.18);
        transform: translateX(110%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.3s ease, opacity 0.3s ease;
        padding: 20px 20px 24px;
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
        border: 0;
        z-index: 1100;
        overflow-y: auto;
    }

    .nav-wrap.open {
        transform: translateX(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 4px;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 12px 14px;
        font-size: 15px;
        border-radius: 10px;
    }

    .nav-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        margin-top: 4px;
        padding-top: 14px;
        border-top: 1px solid #e8f0f8;
    }

    .nav-actions .btn,
    .lang-toggle {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    /* Overlay handled by #navOverlay div — no pseudo-element needed */

    /* --- Mobile-only elements shown inside the media query --- */
    .nav-join-btn,
    .nav-drawer-header,
    .nav-trust-badges {
        display: flex;
    }

    /* --- Mobile "Join Now" button in header bar --- */
    .nav-join-btn {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background: #1f7a63;
        color: #fff !important;
        font-size: 13px;
        font-weight: 700;
        font-family: 'Poppins', sans-serif;
        padding: 8px 14px;
        border-radius: 10px;
        text-decoration: none;
        white-space: nowrap;
        flex-shrink: 0;
        transition: background 0.2s ease;
        margin-right: 8px;
    }

    .nav-join-btn:hover {
        background: #17664f;
    }

    /* Hamburger — clean bordered square */
    .hamburger {
        width: 38px;
        height: 38px;
        border-radius: 10px;
        border: 1.5px solid rgba(30, 58, 95, 0.18);
        background: #fff;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0;
        padding: 0;
        flex-shrink: 0;
    }

    .hamburger span {
        display: block;
        width: 18px;
        height: 2px;
        background: #1e3a5f;
        border-radius: 2px;
        margin: 2.5px 0;
        transition: all 0.25s ease;
    }

    .hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
    .hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    /* --- Drawer panel background — teal gradient header zone --- */
    .nav-wrap {
        background: #fff;
    }

    /* --- Drawer header row — full teal gradient banner --- */
    .nav-drawer-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 18px 20px;
        margin: -16px -20px 12px;
        background: linear-gradient(135deg, #1a6b55 0%, #1f7a63 50%, #165c47 100%);
        border-radius: 0;
        flex-shrink: 0;
        position: relative;
        overflow: hidden;
    }

    .nav-drawer-header::before {
        content: '';
        position: absolute;
        top: -20px;
        right: -20px;
        width: 90px;
        height: 90px;
        background: rgba(255,255,255,0.07);
        border-radius: 50%;
    }

    .nav-drawer-header::after {
        content: '';
        position: absolute;
        bottom: -30px;
        left: 40px;
        width: 120px;
        height: 120px;
        background: rgba(255,255,255,0.05);
        border-radius: 50%;
    }

    .nav-drawer-brand {
        display: flex;
        align-items: center;
        gap: 12px;
        position: relative;
        z-index: 1;
    }

    .nav-drawer-logo {
        width: 46px;
        height: 46px;
        border-radius: 50%;
        overflow: hidden;
        border: 2.5px solid rgba(255,255,255,0.4);
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255,255,255,0.15);
    }

    .nav-drawer-logo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .nav-drawer-logo span {
        font-size: 18px;
        font-weight: 800;
        color: #fff;
    }

    .nav-drawer-brand strong {
        display: block;
        font-size: 15px;
        font-weight: 700;
        color: #fff;
        font-family: 'Poppins', sans-serif;
        line-height: 1.2;
    }

    .nav-drawer-brand small {
        display: block;
        font-size: 11px;
        color: rgba(255,255,255,0.72);
        margin-top: 2px;
        font-weight: 500;
    }

    .nav-drawer-close {
        width: 34px;
        height: 34px;
        border-radius: 50%;
        background: rgba(255,255,255,0.18);
        border: 1.5px solid rgba(255,255,255,0.35);
        color: #fff;
        font-size: 15px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        flex-shrink: 0;
        transition: background 0.2s ease;
        position: relative;
        z-index: 1;
    }

    .nav-drawer-close:hover {
        background: rgba(255,255,255,0.3);
    }

    /* --- Nav links with icons --- */
    .nav-links a {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 11px 12px;
        font-size: 15px;
        font-weight: 500;
        color: #1e3a5f;
        border-radius: 10px;
        text-decoration: none;
        border-left: 3px solid transparent;
        transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
    }

    .nav-links a:hover {
        background: #f0f9f6;
        color: #1f7a63;
        border-left-color: rgba(31,122,99,0.3);
    }

    .nav-links a.active {
        background: linear-gradient(90deg, #e6f5ef 0%, #f0faf6 100%);
        color: #1f7a63;
        font-weight: 600;
        border-left-color: #1f7a63;
    }

    .nav-link-icon {
        width: 34px;
        height: 34px;
        border-radius: 9px;
        background: #f0f4f8;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 13px;
        color: #6b8aaa;
        flex-shrink: 0;
        transition: background 0.18s ease, color 0.18s ease;
    }

    .nav-links a:hover .nav-link-icon {
        background: #d4ede5;
        color: #1f7a63;
    }

    .nav-links a.active .nav-link-icon {
        background: #1f7a63;
        color: #fff;
    }

    /* --- Member Login button with icon --- */
    .nav-login-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    /* --- Trust badges row at drawer bottom --- */
    .nav-trust-badges {
        display: flex;
        align-items: flex-start;
        justify-content: space-around;
        background: linear-gradient(135deg, #f0faf6 0%, #e8f4f0 100%);
        border: 1px solid rgba(31,122,99,0.12);
        border-radius: 12px;
        padding: 14px 8px;
        margin-top: 4px;
        gap: 8px;
    }

    .nav-trust-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        flex: 1;
    }

    .nav-trust-item i {
        font-size: 18px;
        color: #1f7a63;
        background: rgba(31,122,99,0.12);
        width: 36px;
        height: 36px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 2px;
    }

    .nav-trust-title {
        font-size: 12px;
        font-weight: 700;
        color: #1e3a5f;
        font-family: 'Poppins', sans-serif;
    }

    .nav-trust-sub {
        font-size: 10px;
        color: #8aabcc;
        font-weight: 500;
    }

}

/* --- Hero section mobile --- */
@media (max-width: 760px) {
    .section-hero {
        padding: 0;
    }

    .home-hero {
        grid-template-columns: 1fr !important;
        gap: 16px;
        padding: 16px 14px 20px;
        border-radius: 0;
    }

    .home-hero-left {
        order: 1;
    }

    .home-hero-right {
        order: 2;
    }

    .home-hero-left h1 {
        font-size: clamp(26px, 7.5vw, 38px);
        margin: 8px 0 4px;
        line-height: 1.1;
    }

    .home-hero-left h3 {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .home-hero-left p {
        font-size: 14px;
        line-height: 1.65;
    }

    .hero-actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: 14px;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-trust-row {
        margin-top: 14px;
        flex-wrap: wrap;
        gap: 8px;
    }

    .trust-growth {
        display: none;
    }

    .hero-image-wrap {
        height: 220px;
        border-radius: 16px;
    }

    .floating-stat {
        display: none;
    }

    .home-hero::after {
        bottom: -12px;
        height: 44px;
    }
}

/* --- Stats section mobile --- */
@media (max-width: 760px) {
    .section-stats-modern {
        margin-top: 6px;
        padding-bottom: 20px;
    }

    .section-stats-modern .stats-surface {
        padding: 14px;
        border-radius: 14px;
    }

    .section-stats-modern .stats-head h2 {
        font-size: 18px;
    }

    .section-stats-modern .stats-grid-modern {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        overflow-x: unset;
        padding-bottom: 0;
        scroll-snap-type: none;
    }

    .section-stats-modern .stats-grid-modern .stat-card-modern {
        flex: unset;
        scroll-snap-align: unset;
        padding: 14px 10px;
    }

    .section-stats-modern .stat-card-modern .stat-value {
        font-size: clamp(24px, 6vw, 32px);
    }

    .section-stats-modern .stat-card-modern .stat-label {
        font-size: 11px;
    }

    .section-stats-modern .stat-card-modern .stat-note {
        font-size: 11px;
    }
}

/* --- Updates / News cards mobile --- */
@media (max-width: 760px) {
    .updates-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .updates-cards {
        gap: 14px;
        padding-bottom: 8px;
    }

    .news-card {
        flex: 0 0 82vw;
    }

    .news-image-wrap img,
    .news-image-slide img {
        height: 180px;
    }

    .news-image-wrap {
        min-height: 180px;
    }

    .news-card h3 {
        font-size: 16px;
    }

    .command-center {
        display: none;
    }

    .section-title h2 {
        font-size: 20px;
    }
}

/* --- Districts section mobile --- */
@media (max-width: 760px) {
    .district-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .district-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .district-photo-card img {
        height: 100px;
    }

    .member-cta-card {
        padding: 18px;
    }
}

/* --- Footer mobile --- */
@media (max-width: 760px) {
    .site-footer {
        margin-top: 40px;
        padding: 32px 0 16px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 20px 16px;
        padding: 0 16px;
    }

    .footer-grid > div:first-child {
        grid-column: 1 / -1;
    }

    .footer-grid h3,
    .footer-grid h4 {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .footer-grid p,
    .footer-grid a {
        font-size: 13px;
    }

    .social-links {
        margin-top: 10px !important;
    }

    .copyright {
        font-size: 13px;
        padding: 14px 16px;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .footer-grid > div:first-child {
        grid-column: unset;
    }
}

/* --- Final CTA mobile --- */
@media (max-width: 760px) {
    .final-cta,
    .cta {
        flex-direction: column;
        text-align: center;
        gap: 14px;
        padding: 24px 20px;
    }

    .final-cta .btn,
    .cta .btn {
        width: 100%;
    }

    .final-cta h2 {
        font-size: 20px;
    }
}

/* --- General section padding on mobile --- */
@media (max-width: 760px) {
    .section {
        padding: 32px 0;
    }

    .container,
    .home-shell {
        width: 100%;
        padding-left: 14px;
        padding-right: 14px;
        box-sizing: border-box;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 24px 0;
    }

    .container,
    .home-shell {
        padding-left: 10px;
        padding-right: 10px;
    }

    .navbar {
        min-height: 56px;
    }

    .brand-mark {
        width: 46px;
        height: 46px;
    }

    .brand-logo-img,
    .brand-logo {
        width: 46px;
        height: 46px;
    }

    .brand strong {
        font-size: 14px;
        max-width: 150px;
    }

    .home-hero {
        padding: 12px 10px 16px;
    }

    .home-hero-left h1 {
        font-size: clamp(22px, 7vw, 28px);
    }

    .hero-image-wrap {
        height: 190px;
    }

    .section-stats-modern .stats-grid-modern {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .section-stats-modern .stat-card-modern .stat-value {
        font-size: clamp(22px, 5.5vw, 28px);
    }

    .updates-cards .news-card {
        flex: 0 0 90vw;
    }

    .district-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .page-hero {
        padding: 24px 16px;
        border-radius: 12px;
        margin: 10px auto 0;
    }

    .page-hero h1 {
        font-size: clamp(20px, 5.5vw, 28px);
    }

    .cta {
        padding: 20px 16px;
        border-radius: 14px;
    }
}

/* --- Prevent text/button overflow --- */
@media (max-width: 760px) {
    .btn {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    img {
        max-width: 100%;
        height: auto;
    }

    .home-hero-slider {
        overflow: hidden;
    }

    /* Ensure full-width sections don't cause scroll */
    .section-hero,
    .section-stats,
    .section-stats-modern {
        overflow: hidden;
    }
}

/* --- MS section (media showcase) mobile --- */
@media (max-width: 760px) {
    .ms-section {
        overflow: hidden;
    }

    .ms-section .container {
        padding-left: 10px;
        padding-right: 10px;
    }

}

/* --- Mobile bottom safe area spacing --- */
@media (max-width: 760px) {
    body {
        padding-bottom: env(safe-area-inset-bottom, 0);
    }
}

/* === Header: Member Login button enhancements === */
.nav-actions .nav-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 999px;
    background: linear-gradient(180deg, #0f8a5a 0%, #0b6f46 100%);
    color: #fff !important;
    box-shadow: 0 6px 18px rgba(11,111,70,0.18), inset 0 -2px 0 rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    font-weight: 700;
    white-space: nowrap;
    word-break: keep-all;
    text-decoration: none;
    transition: transform .14s ease, box-shadow .14s ease, opacity .14s ease;
}

.nav-actions .nav-login-btn i {
    background: rgba(255,255,255,0.08);
    padding: 6px;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-actions .nav-login-btn:hover,
.nav-actions .nav-login-btn:focus {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(11,111,70,0.22), inset 0 -2px 0 rgba(255,255,255,0.04);
    opacity: 0.98;
}

/* Slightly smaller on narrow viewports to prevent wrapping */
@media (max-width: 980px) {
    .nav-actions .nav-login-btn {
        padding: 8px 14px;
    }
}

@media (max-width: 760px) {
    /* Keep header compact on mobile */
    .nav-actions .nav-login-btn {
        padding: 8px 12px;
        font-size: 14px;
    }
}

/* GO's & Official Updates widget styles */
.gos-widget { 
    max-width: 360px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.gos-head { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    gap: 12px;
    margin-bottom: 16px;
}

.gos-head h3 { 
    margin: 0; 
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a3a3a;
}

.gos-head p {
    margin: 4px 0 0;
    font-size: 0.85rem;
}

.gos-live { 
    display: flex; 
    align-items: center; 
    gap: 6px;
    flex-shrink: 0;
}

.gos-live-dot { 
    width: 10px; 
    height: 10px; 
    background: #28a745; 
    border-radius: 50%; 
    box-shadow: 0 0 8px rgba(40, 167, 69, 0.4);
    display: inline-block;
    animation: liveBlink 1.5s ease-in-out infinite;
}

@keyframes liveBlink {
    0% { 
        background: #28a745;
        box-shadow: 0 0 8px rgba(40, 167, 69, 0.4), 0 0 12px rgba(40, 167, 69, 0.2);
    }
    50% { 
        background: #20c997;
        box-shadow: 0 0 12px rgba(40, 167, 69, 0.6), 0 0 20px rgba(40, 167, 69, 0.3);
    }
    100% { 
        background: #28a745;
        box-shadow: 0 0 8px rgba(40, 167, 69, 0.4), 0 0 12px rgba(40, 167, 69, 0.2);
    }
}

.gos-highlight { 
    background: linear-gradient(135deg, #ffffff 0%, #f8fbfc 100%);
    padding: 14px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    margin-bottom: 14px;
}

.gos-highlight-section {
    position: relative;
    margin-bottom: 14px;
}

.gos-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.gos-highlight-track {
    display: flex;
    transition: transform 0.4s ease-in-out;
}

.gos-highlight-card { 
    background: linear-gradient(135deg, #ffffff 0%, #f8fbfc 100%);
    padding: 14px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    min-width: 100%;
    flex-shrink: 0;
}

.gos-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #0f8a5a;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.gos-carousel-nav:hover {
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-50%) scale(1.05);
}

.gos-prev {
    left: 10px;
}

.gos-next {
    right: 10px;
}

.gos-badge { 
    display: inline-block; 
    background: #e6ffed; 
    color: #067a2f; 
    padding: 4px 10px; 
    border-radius: 14px; 
    font-weight: 700; 
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.gos-highlight-card .gos-badge {
    display: inline-block;
}

.gos-highlight-title { 
    margin: 6px 0 8px;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    color: #1a3a3a;
}

.gos-meta-row { 
    display: flex; 
    gap: 8px; 
    align-items: center;
    margin-bottom: 8px;
}

.gos-meta-row small {
    color: #9ca3af;
    font-size: 0.8rem;
}

.gos-tag { 
    background: rgba(13, 110, 253, 0.1); 
    color: #0d6efd; 
    padding: 2px 8px; 
    border-radius: 10px; 
    font-size: 0.75rem;
    font-weight: 600;
}

.gos-desc { 
    margin: 8px 0 10px;
    line-height: 1.4;
    font-size: 0.9rem;
    color: #4b5563;
}

.gos-actions { 
    display: flex; 
    gap: 8px;
}

.gos-actions .btn {
    flex: 1;
    font-size: 0.85rem;
    padding: 8px 12px;
}

.gos-actions .btn-primary {
    background: #0f8a5a;
    border-color: #0f8a5a;
    color: white;
}

.gos-actions .btn-outline {
    border: 1px solid #d1d5db;
    color: #374151;
}

.gos-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.gos-summary { 
    background: #fbfdff;
    border-radius: 10px;
    padding: 10px;
    margin-top: 10px;
    font-size: 0.85rem;
    line-height: 1.5;
}

.gos-summary h5 {
    margin: 0 0 6px;
    font-weight: 700;
    color: #1a3a3a;
}

.gos-summary p {
    margin: 4px 0;
    color: #4b5563;
}

.gos-quick-grid { 
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px; 
    margin-bottom: 12px;
}

.gos-quick-grid a { 
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: center;
    justify-content: center;
    padding: 8px 6px;
    border-radius: 10px;
    background: #f8fafc;
    text-decoration: none;
    color: #1a3a3a;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.03);
    text-align: center;
}

.gos-quick-grid a:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    background: #ffffff;
}

.gos-quick-grid .icon { 
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #dbeafe, #e0e7ff);
    border-radius: 6px;
    color: #0d6efd;
    font-size: 12px;
}

.gos-quick-grid a:hover .icon {
    background: linear-gradient(135deg, #bfdbfe, #c7d2fe);
    transform: scale(1.1);
}

.gos-footer { 
    margin-top: 0;
}

.btn-block { 
    display: block; 
    width: 100%; 
    text-align: center;
    padding: 10px;
    border-radius: 10px;
    background: rgba(15, 138, 90, 0.08);
    color: #0f8a5a;
    border: 1px solid rgba(15, 138, 90, 0.2);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-block:hover {
    background: rgba(15, 138, 90, 0.12);
    border-color: rgba(15, 138, 90, 0.4);
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .gos-widget { 
        max-width: 100%;
    }
    
    .gos-quick-grid { 
        grid-template-columns: repeat(3, 1fr);
    }
}
