/* Hamburger menu styles */
.hamburger-menu {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    cursor: pointer;
    margin-left: 12px;
}
.hamburger-menu span {
    display: block;
    width: 34px;
    height: 4px;
    background: #f7a623;
    margin: 4px 0;
    border-radius: 2px;
    transition: 0.3s;
}
@media (max-width: 768px) {
    .hamburger-menu {
        display: flex;
        position: absolute;
        top: 18px;
        right: 18px;
        z-index: 3000;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    }
    .hamburger-menu.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger-menu.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger-menu.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    /* Hide desktop nav row on mobile; drawer will be used instead */
    .nav-center {
        display: none;
    }
    .nav-list {
        display: none !important;
    }
    .nav-link {
        padding: 14px 24px;
        font-size: 1.1rem;
        text-align: right;
    }
}
/* Reserve space for dynamic header/footer to prevent layout shift */
#mainHeader {
    min-height: 90px; /* Adjust to match your header's height */
}
/* removed empty #mainFooter ruleset */
/* Mission Section Styling */
.mission-section {
    background: #f9f9f9;
    padding: 80px 0;
    text-align: left;
    border-radius: 12px;
        width: 50%;
        min-width: 400px;
        max-width: none;
        margin: 0 0 40px auto;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Mobile: make mission section fit viewport without forcing min-width */
@media (max-width: 480px) {
    .mission-section {
        width: 100%;
        min-width: 0;
        margin: 0 0 40px 0;
    }
}
.mission-title {
    color: #e89c2d;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: left;
}
.mission-desc {
    font-size: 1.15rem;
    color: #333;
    margin-bottom: 28px;
    text-align: left;
}
.mission-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 650px;
    text-align: left;
}
.mission-list li {
    background: #fff;
    margin: 18px 0;
    padding: 18px 28px;
    border-radius: 8px;
    font-size: 1.08rem;
    color: #222;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
    text-align: left;
    position: relative;
    padding-left: 38px;
}
.mission-list li:before {
    content: '\2022';
    color: #e89c2d;
    font-size: 1.5em;
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
}
/* Highlight the active nav link */
.nav-link.active {
    color: var(--gold);
    font-weight: bold;
    transition: color 0.2s;
}

/* Increase header navigation size for better visibility */
header .nav-link,
#mainHeader .nav-link {
    font-size: 1.05rem; /* slightly larger */
    padding: 14px 18px; /* larger hit area */
}

@media (max-width: 768px) {
    header .nav-link,
    #mainHeader .nav-link {
        font-size: 1.02rem; /* slightly smaller on mobile */
        padding: 12px 14px;
    }
    /* Slightly increase main header logo on small screens without breaking layout */
    .logo-img { height: 64px; }
}
/* MASTER STYLESHEET: Haroon Mahmood Welfare Trust */

:root {
    --gold: #f7a623;
    --blue: #0c618e;
    --dark-charcoal: #111111;
    --white: #ffffff;
    --bg-light: #f8fafc;
    --header-h: 110px;
    --header-shrink: 80px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --primary-color: #0c618e;
}

@media (max-width: 768px) {
    .hero-sub {
        padding-top: 120px !important;
    }
}

/* About page font size boost */
.about-section, .text-block, .vision-content {
    font-size: 1.18rem;
    line-height: 1.85;
}

/* 1. RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Prevent horizontal overflow across the entire document */
html { overflow-x: hidden; }

/* Ensure media scales within the viewport */
img, svg, video { max-width: 100%; height: auto; }

html, body {
    height: 100%;
}
body {
    font-family: 'Times New Roman', Times, serif;
    /*padding-top: var(--header-h);*/ /* Space for fixed header */
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main, .main-content {
    flex: 1 0 auto;
}
.main-footer {
    flex-shrink: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

/* MOBILE DRAWER NAVIGATION */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7); /* stronger dim behind drawer */
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease;
    z-index: 1400;
}

.mobile-nav-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-panel {
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    /* Use anchored bottom instead of 100vh to avoid mobile-browser UI clipping */
    bottom: 0;
    width: 78vw;
    max-width: 360px;
    background: #0c618e; /* brand blue */
    color: #ffffff;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1500;
    display: flex;
    flex-direction: column;
    /* safe-area padding for devices with home indicator / notches */
    padding-bottom: constant(safe-area-inset-bottom);
    padding-bottom: env(safe-area-inset-bottom, 16px);
}

.mobile-nav-panel.is-open {
    transform: translateX(0);
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    background: #ffffff;
}

.mobile-nav-logo img {
    height: 72px; /* larger for better visibility on mobile */
    width: auto;
}

.mobile-nav-close {
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    color: #0c618e;
}

/* Hide the small blue close icon in the mobile nav (use the large decorative close instead) */
.mobile-nav-close {
    display: none !important;
    pointer-events: none !important;
}

.mobile-nav-list {
    list-style: none;
    margin: 0;
    /* Use flex column so we can space items and still allow scrolling */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* align items to top */
    align-items: stretch;
    gap: 18px; /* larger gap between nav items */
    padding: 28px 8px 12px; /* more top padding so items start below header */
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-nav-list li {
    margin: 0;
}

.mobile-nav-list .nav-link {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* left-align links */
    padding: 16px 24px; /* larger tap target */
    min-height: 48px; /* recommended touch size */
    margin: 2px 8px; /* small breathing space between items */
    border-radius: 10px; /* button-like appearance */
    text-decoration: none;
    color: #ffffff;
    font-weight: 700; /* strong weight for legibility */
    font-size: 1.4rem; /* bump size for easier reading */
    line-height: 1.3;
}

.mobile-nav-list .nav-link.active {
    background: rgba(255, 255, 255, 0.12);
    border-left: 4px solid var(--gold);
}

.mobile-nav-list .nav-link:hover,
.mobile-nav-list .nav-link:focus {
    background: rgba(255, 255, 255, 0.10);
    outline: none;
}

.mobile-nav-footer {
    padding: 10px 96px 10px 12px; /* reserve space on the right for design so tagline doesn't overlap */
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background-image: url('assets/shared/design.png');
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 56px auto; /* larger design but kept to the right */
}


.mobile-nav-tagline {
    margin: 0;
    font-size: 1rem; /* slightly larger tagline text */
    max-width: calc(100% - 110px); /* keep tagline left of the right-side design */
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--blue);
}
.mobile-nav-tagline .tagline-primary { display: block; white-space: nowrap; }
.mobile-nav-tagline .tagline-secondary { display: block; }

.mobile-nav-subtext {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.8);
}

@media (min-width: 769px) {
    .mobile-nav-overlay,
    .mobile-nav-panel {
        display: none;
    }
}

body.mobile-nav-open {
    overflow: hidden;
}
/* 2. HEADER: 1-2-1 Centered Ratio */
header, 
#mainHeader {
    background: var(--white);
    height: var(--header-h);
    position: relative;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    transition: var(--transition);
}

/*#mainHeader {
    padding: 25px 0;
    background: transparent;
}

header.scrolled, 
#mainHeader.scrolled, 
.main-header.scrolled {
    height: var(--header-shrink);
    background: rgba(255, 255, 255, 0.98);
}*/

.main-header {
    height: 100px;
    transition: all 0.4s ease;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

/*.main-header.scrolled {
    height: 70px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

#mainHeader.scrolled {
    padding: 10px 0;
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.1);
}*/

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1550px;
    margin: 0 auto;
    padding: 0 40px;
}

.nav-left, 
.nav-right {
    flex: 1;
    display: flex;
    align-items: center;
}

.nav-center {
    flex: 2;
    display: flex;
    justify-content: center;
}

.nav-right {
    justify-content: flex-end;
    gap: 20px;
}

.logo-img, 
.design-asset {
    height: 75px;
    transition: var(--transition);
}

header.scrolled .logo-img, 
header.scrolled .design-asset, 
.main-header.scrolled .logo {
    height: 55px;
}

.main-header.scrolled .logo {
    height: 50px;
}

#mainHeader.scrolled img {
    height: 45px;
}

.nav-list {
    display: flex;
    gap: 35px;
    list-style: none;
}

.nav-link {
    text-decoration: none;
    color: var(--blue);
    font-weight: 600;
    transition: 0.3s;
}

.nav-link:hover {
    color: var(--gold);
}

.nav-link.active {
    color: #f7a623 !important;
    font-weight: bold;
    border-bottom: 2.5px solid #f7a623;
    background: none;
    transition: color 0.2s, border-bottom 0.2s;
    border-radius: 0;
}

/* 3. BANNERS & HERO */

.hero, 

.hero, 
.hero-sub {
    background: linear-gradient(rgba(12, 97, 142, 0.9), rgba(12, 97, 142, 0.9)), url('assets/shared/design2.png');
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: calc(var(--header-h) + 40px) 0 120px 0;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.section-label {
    padding: 24px 0 10px;
    margin-bottom: 32px; /* add one more line of space before Regional Impact */
    background: transparent;
}
.section-label h1 {
    text-align: center;
    color: var(--blue);
    /* Match banner/hero heading scale */
    font-size: 2.2rem;
    font-weight: 700;
}
.section-label h1::after {
    content: "";
    display: block;
    width: 180px;
    height: 16px;
    margin: 12px auto 0;
    background: url("assets/shared/brush-underline.svg") center/contain no-repeat;
}
@media (min-width: 992px) {
    .section-label h1 { font-size: 2.8rem; }
}
@media (max-width: 768px) {
    .section-label h1 { font-size: 1.6rem; }
}
.gold-text {
    color: var(--gold);
}

.blue-text {
    color: var(--blue);
}

.hero p {
    margin-bottom: 30px;
}

/* Adjust font size for banner headings */
.hero-sub h1 {
    font-size: 3.5rem; /* Slightly larger size for banner headings */
    font-weight: bold;
    text-align: center; /* Ensure proper alignment */
    line-height: 1.4; /* Maintain spacing */
}

/* Center the small status line on contact page */
.open-status {
    text-align: center;
    font-weight: 600;
    margin: 10px 0 8px;
}

.hero-sub .gold-text {
    color: #e89c2d; /* Highlighted text remains prominent */
}

/* 4. BUTTONS & GLOW */
.btn-connect, 
.btn-main {
    background: var(--gold);
    color: #fff !important;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(247, 166, 35, 0.2);
}

.btn-connect:hover, 
.btn-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(247, 166, 35, 0.6);
}

.btn-outline {
    background: transparent;
    color: #fff !important;
    border: 2px solid #fff;
    padding: 11px 28px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
}

.btn-outline:hover {
    background: #fff;
    color: var(--blue) !important;
}

/* Adjust button font size and width for homepage */
.homepage-buttons {
    font-size: 1rem; /* Smaller font size for buttons */
    text-align: center;
}

.homepage-buttons .btn {
    width: 80%; /* Adjust button width for mobile view */
    max-width: 300px; /* Limit maximum width */
    margin: 10px auto; /* Center buttons with spacing */
    padding: 10px 20px; /* Adjust padding for better appearance */
}

/* Further reduce button size for mobile view on homepage */
@media (max-width: 768px) {
    .homepage-buttons .btn {
        width: auto; /* Fit buttons to content */
        padding: 6px 12px; /* Further reduce padding */
        font-size: 0.8rem; /* Smaller font size */
        display: inline-block; /* Ensure buttons appear in one line */
        margin: 4px; /* Add minimal spacing between buttons */
    }
}

/* 5. CONTENT GRID & CARDS */
.section {
    padding: 80px 0;
    clear: both;
}

/* Compact spacing variant for sections needing less bottom whitespace */
.section.compact-bottom {
    padding-bottom: 24px; /* reduce gap after section content */
}

/* Compact top variant to tighten space after a section label */
.section.compact-top {
    padding-top: 24px;
}

.bg-light {
    background: var(--bg-light);
}

.impact-bar {
    background: #fff;
    padding: 60px 0;
    border-bottom: 1px solid #eee;
}

/* Update in Section 5 */
.impact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4x1 layout for desktop */
    text-align: center;
    gap: 40px;
    padding: 60px 0;
    max-width: 1100px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .impact-grid {
        grid-template-columns: repeat(2, 1fr); /* 2x2 layout for mobile */
        gap: 20px; /* Reduce gap for smaller screens */
    }
}

.impact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.impact-number,
.impact-item h3 {
    font-size: 2.8rem;
    color: var(--blue);
    margin-bottom: 5px;
    font-weight: 700;
}

.impact-item p,
.impact-label {
    color: var(--gold);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.impact-number {
    font-size: 48px;
    color: #003366;
}

.impact-label {
    color: #f39c12;
    font-size: 14px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: start;
}

.prog-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 cards on first row */
    gap: 16px;
    align-items: stretch;
    padding: 12px 0;
}

/* Medium screens: show 2 cards per row */
@media (max-width: 1100px) {
    .prog-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Large screens: center last row (items 4 & 5) */
@media (min-width: 1101px) {
    .prog-cards .process-card:nth-child(4) {
        grid-column: 2;
    }
    .prog-cards .process-card:nth-child(5) {
        grid-column: 3;
    }
}

/* THE PARENT CONTAINER: Add this class to the div holding the cards */
.process-flex-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Centers cards to avoid "odd" empty spaces */
    gap: 30px;
    padding: 40px 0;
    max-width: 1200px;
    margin: 0 auto;
}

/* THE CARD STYLE: Updated with your existing code + alignment fixes */
.process-card {
    background: #fff;
    padding: 0; /* outer padding removed so headings sit higher */
    border-radius: 0;
    position: relative;
    box-shadow: 12px 12px 0px rgba(0, 51, 102, 0.05);
    border-top: 6px solid var(--gold);
    transition: all 0.4s ease;
    cursor: pointer;
    perspective: 1000px; /* enable 3D flip */
    overflow: hidden; /* keep faces inside */
    min-height: 420px; /* ensure container height so sections don't overlap */
    /* Flex sizing ensures 3 cards sit in a row on desktop */
    flex: 1 1 350px; 
    max-width: 380px; 
    display: flex;
    flex-direction: column;
    text-align: left; /* Keeps text professional within the card */
    height: 100%;
}

/* Center headings inside program/process cards */
.process-card:hover {
    transform: translate(-5px, -5px);
    box-shadow: 18px 18px 0px var(--gold);
    border-top-color: var(--primary-color);
}

.prog-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* center last row automatically */
    gap: 16px;
    align-items: stretch;
    padding: 12px 0;
}

/* Flip card internals */
.process-card .card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
    will-change: transform;
}
.process-card .card-face {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    padding: 12px 16px; /* compact inner padding to fit content */
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* distribute content top-to-bottom to use blank space */
    gap: 6px;
}

/* Make the mini-map span the same horizontal area as the card text
   so the map lines up with the "Open now..." text and looks rectangular. */
.process-card .card-face .mini-map {
    margin-left: -28px;
    margin-right: -28px;
    padding: 0;
}
.process-card .card-face .mini-map iframe {
    width: 100%;
    height: 200px; /* rectangular shape; increase if you want taller */
    border-radius: 8px;
    display: block;
}
@media (max-width: 768px) {
    .process-card .card-face .mini-map {
        margin-left: -20px;
        margin-right: -20px;
    }
    .process-card .card-face .mini-map iframe {
        height: 180px;
    }
}

/* Reduce extra vertical gap above the heading and push it up */
.process-card h3 {
    text-align: center;
    width: 100%;
    margin: -8px 0 12px 0; /* pull heading upward into the card */
    padding-top: 0;
    font-weight: 600;
}
.process-card .card-back {
    transform: rotateY(180deg);
}

/* Flip controlled only by the `.is-flipped` class (click/tap/keyboard) */
.process-card.is-flipped .card-inner {
    transform: rotateY(180deg);
}

/* Reduce padding on mobile to prevent squish */
@media (max-width: 768px) {
    .process-card { min-height: 340px; }
    .process-card .card-face { padding: 16px 12px; }
}

/* Mobile: remove extra space under the map and hide redundant CTA */
@media (max-width: 768px) {
    .process-card .card-face { padding-bottom: 12px; }
    .process-card .card-face .mini-map { margin-bottom: 0; }
    .map-cta { display: block; text-align: center; margin-top: 10px; }
    /* Ensure the card itself doesn't add extra bottom gap */
    .process-card { margin-bottom: 6px; }
}

@media (max-width: 1100px) {
    .process-card { min-height: 380px; }
}

/* --- Workflow stepper buttons --- */
.workflow-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 10px;
}
.cta-group { display:flex; justify-content:center; margin-top: 16px; }
.step-btn {
    background: #fff;
    color: var(--blue);
    border: 2px solid var(--gold);
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform .2s ease, box-shadow .2s ease;
}
.step-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,0.08); }
.arrow { font-size: 22px; color: var(--gold); opacity: 0.9; }

/* CTA button styling */
.cta-btn {
    border-radius: 999px;
    padding: 12px 28px;
    box-shadow: 0 6px 18px rgba(247,166,35,0.25);
    letter-spacing: 0.2px;
    position: relative;
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(247,166,35,0.35); }

@media (max-width: 768px) {
    /* Stack workflow vertically on mobile with tighter spacing */
    .workflow-steps { gap: 6px; flex-direction: column; align-items: center; }
    .step-btn { padding: 8px 14px; font-size: 0.95rem; }
    /* Downward arrows with reduced gaps */
    .arrow { font-size: 0; margin: 2px 0; line-height: 1; }
    .arrow::after { content: "\2193"; font-size: 16px; color: var(--gold); }
    /* Compact mobile CTA placed after some space */
    .cta-group { margin-top: 20px; }
    .cta-btn { width: auto !important; padding: 6px 12px; font-size: 0.8rem; box-shadow: 0 3px 10px rgba(247,166,35,0.22); }
}
.premium-card {
    box-shadow: 10px 10px 30px rgba(0, 51, 102, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.premium-card:hover {
    transform: translateY(-5px);
    box-shadow: 15px 15px 40px rgba(212, 175, 55, 0.15);
    border-left-color: #003366;
}

.full-width-card {
    grid-column: span 2;
    background: #003366;
    color: white;
}

.metric-tag {
    margin-top: 20px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    font-weight: bold;
    color: #003366;
    background: #f8f9fa;
    padding: 8px 15px;
    align-self: flex-start;
    border: 1px solid #eee;
}

.ben-badge {
    margin-top: 16px;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--primary-color);
    background: #f8f9fa;
    padding: 6px 10px;
    display: inline-block;
    border-left: 3px solid var(--gold);
}

/* Programme card lists */
.prog-card-list {
    list-style: disc;
    padding-left: 20px;
    margin: 8px 0 0;
}
.prog-card-list li {
    line-height: 1.45;
    color: #444;
    font-size: 0.95rem;
    margin-bottom: 6px; /* tighter list spacing so lists don't push content down */
}

/* Ensure paragraphs and headings inside cards use available space without overflow */
.process-card p {
    margin: 0 0 8px 0; /* tighter paragraph spacing */
}
.process-card .ben-badge {
    margin-top: 8px; /* tighter spacing above badge */
}

/* 6. TABLES & FORMS */
.impact-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.impact-table th {
    background: var(--blue);
    color: #fff;
    padding: 20px;
    text-align: left;
}

.impact-table td {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

/* REGIONAL IMPACT TABLE: FINAL ALIGNMENT */
.impact-table, 
table.impact-table {
    width: 100% !important;
    max-width: 1000px !important;
    margin: 20px auto 12px !important; /* tighten space below the table */
    border-collapse: collapse !important;
    text-align: center !important;
}

.impact-table th {
    background: var(--blue) !important;
    color: #ffffff !important;
    padding: 18px !important;
    text-align: center !important;
    font-weight: 700 !important;
    border: none !important;
}

.impact-table td {
    padding: 20px !important;
    text-align: center !important;
    border-bottom: 1px solid #eee !important;
    color: #444 !important;
    vertical-align: middle !important;
}

.impact-table td:first-child {
    min-width: 180px !important;
    font-weight: 700 !important;
    color: var(--blue) !important;
}

.hmwt-form {
    display: flex;
    flex-direction: column;
    gap: 12px; /* tighter spacing between fields */
    background: #fff;
    padding: 22px; /* reduce inner padding to shorten height */
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px; /* slightly tighter label-to-input spacing */
    text-align: left;
}

.form-group label {
    font-weight: 600;
    color: var(--blue);
}

.form-group input, 
.form-group textarea, 
.form-group select {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    width: 100%;
}

/* 7. UNIFIED MASTER FOOTER */
.main-footer {
    background: #2c2c2c;
    color: #ffffff;
    padding: 40px 0 10px 0;
    margin-top: 20px;
    border-top: 4px solid #D4AF37;
    clear: both;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-bottom: 0 !important;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 60px;
    padding-bottom: 40px;
    /* border-bottom removed to fix white line above copyright */
}

.footer-logo {
    height: 60px;
    filter: brightness(0) invert(1);
    margin-bottom: 20px;
    width: 300px; /* Adjust the width as needed */
    height: auto; /* Maintain aspect ratio */
}

.footer-tagline {
    margin-top: 15px;
    font-style: italic;
    color: #f1c40f;
    border-left: 2px solid #f1c40f;
    padding-left: 15px;
    font-size: 0.95rem;
}

.gov-labels span {
    background: rgba(241, 196, 15, 0.1);
    color: #f1c40f;
    display: inline-block;
    padding: 6px 18px;
    line-height: 1.2;
    white-space: nowrap;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: bold;
    border: 1px solid #f1c40f;
    margin-bottom: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 10px;
    font-size: 0.9rem;
    opacity: 1;
    background: #2c2c2c;
    color: #ccc;
    margin-bottom: 0 !important;
}

/* RESPONSIVE HEADER / NAV ADJUSTMENTS */
@media (max-width: 768px) {
    header, #mainHeader {
        height: auto;
        padding: 8px 0;
        align-items: flex-start;
    }

    /* Stack header rows so nav can wrap without being overlapped */
    .nav-container {
        flex-direction: column;
        align-items: center;
        padding: 0 12px;
        gap: 6px;
    }

    .nav-left, .nav-right {
        flex: 0 0 auto;
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 6px;
    }

    .nav-center {
        order: 2;
        /* expand slightly beyond the container padding so background reaches edges */
        width: calc(100% + 24px);
        margin: 0 -12px;
        display: flex;
        justify-content: center;
        padding: 8px 12px 12px;
        background: var(--white);
        box-shadow: 0 2px 10px rgba(0,0,0,0.06);
        z-index: 1100;
    }

    .nav-list {
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
        padding: 6px 0;
        width: 100%;
    }

    .nav-link {
        font-size: 0.95rem;
        padding: 6px 8px;
    }

    .logo-img { height: 72px; }

    /* hide decorative design on small screens to save space */
    .nav-right .design-asset { display: none; }
}

@media (max-width: 480px) {
    .hamburger-menu.active span:nth-child(1) {
        transform: translateY(12px) rotate(45deg);
    }
    .hamburger-menu.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger-menu.active span:nth-child(3) {
        transform: translateY(-12px) rotate(-45deg);
    }
}

/* Enforce smaller logos on mobile to avoid overlap with the X */
@media (max-width: 768px) {
    #mainHeader .logo-img { height: 52px !important; width: auto; }
    .mobile-nav-logo img { height: 60px !important; width: auto; }
}

.key-achievements-list li,
.achievement-list li {
    position: relative;
    padding-left: 45px;
    margin-bottom: 20px;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #444;
}

.achievement-list {
    margin: 20px 0;
}

.achievement-list li {
    padding-left: 40px;
    margin-bottom: 18px;
    color: #333;
    line-height: 1.5;
}

/* ACHIEVEMENTS SECTION WRAPPER */
.achievements-section {
    padding: 0px 0;
    background: #f9f9f9;
    overflow: hidden;
}

.achievement-wrapper {
    position: relative;
    display: flex;
    align-items: flex-start; /* place heading at the top to remove extra top gap */
    min-height: 420px; /* slightly reduced to tighten whitespace */
}

.achievement-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 800px; /* allow a bit wider when centered */
    margin: 0 auto; /* center the block within the container */
    text-align: center; /* center heading and lines */
}

.achievement-list {
    margin-top: 20px;
    font-size: 17px;
    line-height: 2.2;
    display: flex;
    flex-direction: column;
    align-items: center; /* center each line under the heading */
}

/* THE TRANSPARENT WATERMARK DESIGN */
.watermark-design {
    position: relative;
    text-align: right;
}

.watermark-design img {
    opacity: 0.1;
    max-width: 100%;
    height: auto;
}

/* Keep the watermark small to match paragraph height on desktop */
@media (min-width: 769px) {
    .grid-2 .watermark-design { align-self: start; display: flex; justify-content: flex-end; }
    .grid-2 .watermark-design img { max-height: 320px; width: auto; }
}

/* Achievements: keep decorative design smaller than the paragraph block */
@media (min-width: 769px) {
    .achievement-wrapper .watermark-design { align-self: start; display: flex; justify-content: flex-end; }
    .achievement-wrapper .watermark-design img { max-height: 340px; width: auto; }
}

@media (max-width: 768px) {
    .watermark-design {
        position: absolute;
        top: 0;
        right: 0; /* Avoid overflow on small screens */
        width: 100%;
        height: 100%;
        z-index: -1;
        background: url('assets/shared/design.png') no-repeat center center;
        background-size: cover;
    }

    .container.grid-2 {
        position: relative;
        z-index: 2;
    }

    .watermark-design img {
        display: none;
    }
}

/* CUSTOM TICK STYLES */
.achievement-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 30px;
}

.achievement-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.tick-icon {
    min-width: 24px;
    height: 24px;
    background-color: var(--blue);
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
}

.tick-icon::after {
    content: '';
    width: 6px;
    height: 10px;
    border: solid var(--gold);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    position: absolute;
    top: 4px;
}

.achievement-item p {
    font-size: 1.05rem;
    color: #444;
    line-height: 1.6;
    margin: 0;
}

/* 9. RESPONSIVENESS */
@media (max-width: 992px) {
    .grid-2, 
    .container[style*="display:grid"] {
        grid-template-columns: 1fr !important;
        text-align: center;
    }

    .commitment-image {
        margin-top: 30px;
        display: flex;
        justify-content: center;
    }

    .side-design {
        max-width: 250px;
    }
}

@media (max-width: 768px) {
    header,
    #mainHeader {
        height: auto !important;
        padding: 10px 0 !important;
    }

    .nav-container {
        flex-direction: column !important;
        padding: 10px;
        align-items: center;
        gap: 10px;
    }

    /* .nav-list mobile display is controlled by hamburger logic above */

    .nav-right {
        width: 100%;
        justify-content: center;
        gap: 15px;
    }

    .logo-img {
        height: 48px !important; /* slightly larger for visibility */
        width: auto;
        margin-bottom: 10px;
    }

    .nav-link {
        font-size: 14px;
    }

    .btn-connect {
        font-size: 0.8rem;
        padding: 8px 15px;
    }

    .design-asset {
        display: none !important;
    }

    .hero-sub .btn-container,
    .hero-btns,
    .hero-sub .container, 
    div[style*="display: flex"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
        align-items: center !important;
    }

    .btn-main, 
    .btn-outline,
    .btn-connect, 
    .btn-primary, 
    .btn-secondary,
    a[style*="border-radius"] {
        width: 90% !important;
        max-width: 300px !important;
        text-align: center !important;
        margin: 0 auto !important;
    }

    .impact-grid,
    .section .container[style*="grid-template-columns"] {
        grid-template-columns: 1fr 1fr !important;
        gap: 20px !important;
        padding: 40px 15px !important;
    }

    .impact-number,
    .stat-number,
    h2[style*="font-size"] {
        font-size: 28px !important;
    }

    .impact-label,
    .stat-label {
        font-size: 1.2rem !important; /* Impact bar content size 4 */
    }

    .process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Creates 3 equal columns */
    gap: 30px;
    margin-top: 40px;
}

    .watermark-design {
        width: 250px;
        right: 0; /* Keep within viewport */
        opacity: 0.08;
    }

    .achievement-content {
        max-width: 100%;
        text-align: center;
    }

    .achievement-list li {
        text-align: left;
    }

    .footer-content {
        grid-template-columns: 1fr !important;
        text-align: center;
    }

    .footer-brand, 
    .footer-links, 
    .footer-info {
        margin-bottom: 30px;
    }

    .gov-labels, 
    .gov-pills {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 600px) {
    /* Convert Regional Impact table to stacked cards on mobile */
    .impact-table {
        width: 100% !important;
        max-width: none !important;
        border: 0;
        box-shadow: none;
        margin: 12px 0 !important;
    }
    .impact-table thead { display: none; }
    .impact-table tbody, 
    .impact-table tr, 
    .impact-table td { display: block; width: 100%; }
    .impact-table tr {
        margin: 12px 0;
        background: #fff;
        border: 1px solid #eee;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
        overflow: hidden;
    }
    .impact-table td {
        padding: 10px 16px !important;
        border-bottom: 1px solid #eee !important;
        font-size: 0.95rem !important;
        white-space: normal !important; /* allow wrapping inside cards */
        text-align: left !important;
    }
    .impact-table td:last-child { border-bottom: 0 !important; }
    .impact-table td:first-child {
        font-weight: 700 !important;
        color: var(--blue) !important;
        background: #f8fafc !important;
        border-bottom: 1px solid #eee !important;
        border-radius: 12px 12px 0 0 !important;
        position: static !important; /* undo sticky from larger breakpoints */
        left: auto !important;
        text-align: center !important; /* center ONLY region name on mobile cards */
    }
    /* Add labels before each service cell */
    .impact-table td:nth-child(2)::before { content: 'Livelihood: '; font-weight: 600; color: var(--blue); }
    .impact-table td:nth-child(3)::before { content: 'Healthcare: '; font-weight: 600; color: var(--blue); }
    .impact-table td:nth-child(4)::before { content: 'Education: '; font-weight: 600; color: var(--blue); }
    .impact-table td:nth-child(5)::before { content: 'Food Aid: '; font-weight: 600; color: var(--blue); }

    .section-title { font-size: 1.8rem; }

    .impact-stats, 
    .stats-grid, 
    [style*="display: flex"] { 
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 20px !important;
        padding: 20px !important;
        text-align: center;
    }

    .impact-stats h2, 
    .stat-number, 
    h1[style*="15k"] {
        font-size: 24px !important;
        margin-bottom: 5px !important;
    }

    .impact-stats p, 
    .stat-label {
        font-size: 12px !important;
        text-transform: uppercase;
        letter-spacing: 1px;
    }
}

/* SPECIFIC FIXES */
.nav-link.active { color: var(--gold); }
.hero h1,
.hero-sub h1 {
    /* unified hero/banner heading scale */
    font-size: 2.2rem;
    line-height: 1.08;
    font-weight: 700;
    margin: 0 0 16px;
    color: #fff;
    text-shadow: 0 1px 0 rgba(0,0,0,0.12);
}

@media (min-width: 992px) {
    .hero h1,
    .hero-sub h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .hero h1,
    .hero-sub h1 {
        font-size: 1.6rem !important;
    }
}

/* Sub-heading (e.g., "Established 2024") */
.sub-heading {
    display: inline-block;
    font-size: 1.05rem;
    color: #666;
    font-weight: 600;
    margin-bottom: 10px;
}

/* Slightly larger on medium screens */
@media (min-width: 768px) {
    .sub-heading { font-size: 1.15rem; }
}

/* About page: slightly larger, readable typography for vision content */
.vision-content .sub-heading {
    font-size: 1.2rem;
    color: #666;
    font-weight: 600;
}

.vision-content .section-title {
    font-size: 1.8rem;
    line-height: 1.08;
    color: var(--dark-charcoal);
    margin-bottom: 14px;
}

.vision-content p {
    font-size: 1.05rem;
    color: #333;
    line-height: 1.7;
}

/* About section: unify paragraph and list item color/weight */
.about-section .about-description,
.about-section .about-list li {
    color: #333;
    font-weight: 400; /* ensure no bold */
    line-height: 1.7;
}

@media (max-width: 768px) {
    .vision-content .sub-heading { font-size: 1.05rem; }
    .vision-content .section-title { font-size: 1.35rem; }
    .vision-content p { font-size: 1rem; }
}
.about-section {
    margin-top: 40px; /* add a line more of space after Commitment section */
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
    grid-auto-rows: 1fr;
}
.about-item {
    background: #ffffff;
    border-top: 6px solid var(--gold);
    border-radius: 10px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.06);
    padding: 24px;
    height: 100%; /* allow equal height in grid row */
    display: flex;
    flex-direction: column;
    position: relative; /* contains ripple */
    overflow: hidden; /* clip blurred gradient */
    cursor: pointer;
    will-change: transform, box-shadow;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.about-item:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 18px 32px rgba(0,0,0,0.10);
    border-top-color: var(--primary-color);
}
.about-title {
    margin-bottom: 10px;
    letter-spacing: 0.2px;
    text-align: center;
}
@media (max-width: 768px) {
    .about-item .about-title {
        text-align: center !important;
        display: block;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}
.about-description {
    margin-bottom: 12px;
}
.about-list {
    list-style: none;
    padding-left: 0;
}
.about-list li {
    position: relative;
    padding-left: 28px;
    margin: 8px 0;
}
.about-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 4px rgba(247,166,35,0.15);
    transition: transform .2s ease, box-shadow .2s ease;
}
.about-item:hover .about-list li::before {
    transform: scale(1.15);
    box-shadow: 0 0 0 6px rgba(247,166,35,0.12);
}

/* blurred gold + blue gradient overlay (shows on hover/touch) */
.about-item::after {
        content: "";
        position: absolute;
        inset: -10%; /* extend slightly to avoid edge artifacts when blurred */
        border-radius: 16px;
        background:
            radial-gradient(160px 160px at 20% 18%, rgba(247,166,35,0.35), transparent 65%),
            radial-gradient(220px 220px at 80% 82%, rgba(12,97,142,0.30), transparent 70%);
        filter: blur(22px);
        opacity: 0;
        transition: opacity .25s ease, transform .25s ease;
        pointer-events: none;
}
.about-item:hover::after,
.about-item.gradient-active::after { opacity: 0.34; transform: scale(1.02); }

/* centered watermark image only on tap/click */
.about-item::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    background: url('assets/shared/design.png') no-repeat center / contain;
    opacity: 0;
    transition: opacity .25s ease;
    pointer-events: none;
}
.about-item.wm-active::before { opacity: 0.18; }
.about-item:hover::before { opacity: 0.18; }

/* tap/click ripple */
.about-item .ripple {
    position: absolute;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: rgba(247,166,35,0.25);
    width: 16px;
    height: 16px;
    pointer-events: none;
    animation: ripple 600ms ease-out;
}
@keyframes ripple {
    to { transform: translate(-50%, -50%) scale(16); opacity: 0; }
}
@media (max-width: 992px) {
    .about-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .about-grid { grid-template-columns: 1fr; }
}

/* Vision sub-heading spacing */
.about-grid .about-item:first-child .sub-heading { display: inline-block; margin-top: 8px; }
.section .container p, 
.section .container div[style*="color: orange"] {
    /*font-size: 11px !important;*/
    letter-spacing: 0.5px !important;
    line-height: 1.4 !important;
}
@media (max-width: 768px) {
    /* Shrinks the header height to keep more content visible */
    header, #mainHeader {
        height: 80px !important;
        padding: 5px 0 !important;
    }

    /* Centers the logo and makes it smaller */
    .logo-img {
        height: 48px !important; /* unify mobile logo size */
        margin-bottom: 5px;
    }

    /* Hides the top-right button on mobile to stop overlapping */
    .nav-right {
        display: none !important;
    }

    /* Centers the navigation links in a single, neat line */
    .nav-container {
        flex-direction: column !important;
        justify-content: center !important;
    }

    .nav-list {
        gap: 15px !important;
        margin: 0 !important;
    }

    .nav-link {
        font-size: 13px !important;
    }
}
.process-grid {
    margin-top: 80px !important; /* Moves the Verification/Approval boxes down */
}
/* Reduce top padding for light sections to remove excess whitespace */
.section.bg-light {
    padding-top: 40px;
    padding-bottom: 40px;
}

/* When the process-grid appears inside a light section, reduce its top margin to tighten spacing */
.section.bg-light .process-grid {
    margin-top: 20px !important;
}
/* FOOTER LINK COLOR FIX */
.main-footer a,
.main-footer a:visited {
    color: #ffffff;
    text-decoration: none;
}

.main-footer a:hover {
    color: #f1c40f; /* gold on hover */
    text-decoration: underline;
}
/* MOBILE FIX: Add to the very bottom of your stylesheet */
@media (max-width: 768px) {
    /* 1. Make the container fill the screen width */
    .process-flex-container {
        display: block !important; /* Stack verification/approval cards vertically */
        padding: 0 15px !important;
        width: 100% !important;
    }
    .prog-cards {
        display: grid !important;
        grid-template-columns: 1fr !important; /* One column on mobile */
        gap: 12px !important;
        padding: 0 15px !important;
        width: 100% !important;
    }

    /* 2. Fix the card compression */
    .process-card, 
    .premium-card {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 20px !important;
        /* Reduce high padding that squishes text */
        padding: 16px 12px !important; 
        box-sizing: border-box !important;
    }

    /* 3. Ensure headings and text use the extra space */
    .process-card h3, 
    .premium-card h3 {
        font-size: 1.4rem !important;
    }
    
    .process-card p, 
    .premium-card p {
        font-size: 16px !important; /* Makes it readable on small screens */
        line-height: 1.5 !important;
    }
}
/* Fix for mobile: stack them back into 1 column on small screens */
@media (max-width: 768px) {
    .process-grid {
        grid-template-columns: 1fr;
    }
}
.footer-contact h4 {
    margin-bottom: 20px;
    color: var(--white);
}

.contact-item {
    display: flex;
    align-items: flex-start; /* Aligns icon with the top of the text for long addresses */
    gap: 12px;
    margin-bottom: 15px;
}

.contact-item .icon {
    font-size: 1.2rem;
    min-width: 25px; /* Ensures all icons take up the same horizontal space */
}

.contact-item a, .contact-item p {
    color: #fff;
    text-decoration: none;
    line-height: 1.4;
    margin: 0;
}
/* --- GALLERY STYLES --- */

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 2px solid var(--blue);
    color: var(--blue);
    padding: 8px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
    background: var(--blue);
    color: #fff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));

    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); /* Soft shadow */
    transition: var(--transition);
    cursor: pointer;
}

.gallery-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-card:hover img {
    transform: scale(1.05); /* Subtle zoom */
}

.gallery-caption {
    padding: 15px;
    background: #fff;
    border-top: 1px solid #eee;
}

.gallery-caption p {
    font-size: 0.95rem;
    color: var(--blue);
    font-weight: 600;
    margin: 0;
}

/* Modal / Lightbox */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(12, 97, 142, 0.95);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80vh;
    border-radius: 4px;
}

#modalCaption {
    margin: auto;
    display: block;
    width: 80%;
    text-align: center;
    color: #fff;
    padding: 20px 0;
    font-size: 1.2rem;
}

.modal-close {
    position: absolute;
    top: 30px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr; /* Stack on mobile */
    }
}

/* Adjust footer logo and contact information for mobile view */
@media (max-width: 768px) {
    .footer-logo {
        width: 160px; /* Slightly larger size for better visibility */
        height: auto;
    }

    .footer-contact {
        text-align: center;
        padding: 0 15px; /* Adjust padding for better alignment */
    }

    .footer-contact .contact-item {
        display: flex;
        align-items: center; /* Align icon and text vertically */
        justify-content: center; /* Center items horizontally */
        gap: 8px; /* Reduce gap between icon and text */
        margin-bottom: 10px; /* Add spacing between contact items */
    }

    .footer-contact p {
        margin: 0; /* Remove extra margin */
        word-wrap: break-word; /* Ensure long text wraps properly */
    }
}

/* Fine-tune alignment of location icon in footer contact */
@media (max-width: 768px) {
    .footer-contact .contact-item {
        gap: 6px; /* Slightly reduce gap for better alignment */
    }

    .footer-contact .contact-item .icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem; /* Adjust icon size for better balance */
    }
}

/* Align location icon below mail icon for mobile view */
@media (max-width: 768px) {
    .footer-contact .contact-item {
        flex-direction: column; /* Stack items vertically */
        align-items: center; /* Center align all items */
    }

    .footer-contact .contact-item:last-child {
        margin-top: 10px; /* Add spacing above the location item */
    }
}

/* Adjust font sizes for content between header and footer */
section {
    font-size: 1.2rem; /* Slightly larger for section content */
    line-height: 1.8; /* Improve readability */
}

.section-title {
    font-size: 2.2rem; /* Slightly larger for section titles */
    font-weight: bold;
}

.subtitle {
    font-size: 1.3rem; /* Slightly larger for subtitles */
    color: #555; /* Ensure good contrast */
}

.impact-table th, .impact-table td {
    font-size: 1.125rem; /* Adjust table content size */
    padding: 10px; /* Add spacing for better readability */
}

/* Adjust font sizes for impact items on desktop and mobile */
.impact-item .impact-number {
    font-size: 3rem; /* Larger size for desktop */
    font-weight: bold;
    color: var(--blue);
}

.impact-item .impact-label {
    font-size: 1.2rem; /* Larger size for desktop */
    font-weight: 600;
    color: var(--gold);
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .impact-item .impact-number {
        font-size: 2.5rem; /* Adjust size for mobile */
    }

    .impact-item .impact-label {
        font-size: 1rem; /* Adjust size for mobile */
    }
}

/* Impact Section Styling */
.impact-section {
    padding: 0px 0;
    background-color: #f8fafc;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.impact-item {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.impact-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--blue);
}

.impact-label {
    font-size: 1rem;
    color: var(--gold);
    margin-top: 10px;
}

/* Commitment Section Styling */
.commitment-image {
    position: relative;
    text-align: right;
}

.commitment-image .side-design {
    opacity: 0.1;
    max-width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .commitment-image {
        text-align: center;
    }

    .commitment-image .side-design {
        opacity: 0.2;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .hero-btns {
        flex-direction: column;
        gap: 10px;
    }

    .hero-btns a {
        font-size: 0.9rem;
        padding: 8px 12px;
        width: 100%;
        text-align: center;
    }
}

/* Footer Links Alignment */
.footer-links div {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

@media (max-width: 768px) {
    .footer-links div {
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: center;
        text-align: center;
    }
}

/* Desktop: make footer into three even columns and ensure sitemap items are one-per-line */
@media (min-width: 769px) {
    .footer-content {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr; /* Brand | Sitemap | Contact */
        gap: 24px;
        align-items: start;
        text-align: left;
    }

    .footer-links {
        /* ensure heading and links align to left and look tidy */
    }

    .footer-links h4 {
        margin-bottom: 8px;
    }

    .footer-links div {
        align-items: flex-start; /* left align the stacked links */
    }

    .footer-links div a {
        display: block; /* force one link per line */
        margin: 6px 0;
        padding: 0;
    }
}

/* Center sitemap column on desktop for improved visual balance */
@media (min-width: 769px) {
    .footer-links {
        text-align: center; /* center heading + links */
    }

    .footer-links h4 {
        text-align: center;
        margin-bottom: 8px;
    }

    .footer-links div {
        align-items: center; /* center stacked links horizontally */
        justify-content: center;
    }

    .footer-links div a {
        display: block;
        margin: 6px 0;
    }
}

/* CTA mobile override: ensure small inline button on mobile */
@media (max-width: 768px) {
    .cta-group .cta-btn {
        width: auto !important;
        max-width: 220px !important;
        display: inline-block !important;
        padding: 8px 16px !important;
        font-size: 0.9rem !important;
        line-height: 1.2 !important;
    }
}



/* Mobile-first refinements for Impact cards */
@media (max-width: 768px) {
    .impact-section { padding: 10px 0; }
    .impact-grid { 
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important; 
        gap: 14px !important; 
        width: 100%;
    }
    .impact-item { padding: 16px; border-radius: 12px; }
    .impact-item .impact-number { font-size: 1.9rem !important; }
    .impact-item .impact-label { font-size: 0.95rem !important; line-height: 1.25; letter-spacing: 0.6px; }
}

/* Center the form heading on contact page */
.form-side h2 {
    text-align: center;
    margin-bottom: 18px;
}

@media (max-width: 480px) {
    .impact-grid { grid-template-columns: 1fr !important; gap: 12px !important; }
    .impact-item { padding: 14px; }
    .impact-item .impact-number { font-size: 1.7rem !important; }
    .impact-item .impact-label { font-size: 0.9rem !important; }
}


/* ===== Additional styles for contact page enhancements ===== */
.stats-row {
    display: flex;
    gap: 18px;
    margin: 14px 0 18px 0;
    align-items: center;
}
.stats-row .stat {
    background: rgba(12,97,142,0.06);
    padding: 10px 14px;
    border-radius: 10px;
    min-width: 92px;
    text-align: left;
    box-shadow: 0 2px 8px rgba(12,97,142,0.04);
}
.stats-row .stat-value {
    color: var(--blue);
    font-weight: 700;
    font-size: 1.1rem;
}
.stats-row .stat-label {
    color: #666;
    font-size: 0.85rem;
    margin-top: 4px;
}
.form-side {
    position: relative;
}
.form-side::before {
    content: "";
    position: absolute;
    right: -40px;
    top: 30px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle at 30% 30%, rgba(247,166,35,0.06), transparent 30%), radial-gradient(circle at 70% 70%, rgba(12,97,142,0.04), transparent 30%);
    pointer-events: none;
    border-radius: 12px;
    z-index: 0;
    display: block;
}
.form-side .hmwt-form { position: relative; z-index: 2; }
@media (max-width: 900px) {
    .stats-row { flex-direction: column; gap: 8px; }
    .form-side::before { display: none; }
}

/* Contact page: center mini-map and button, even spacing */
.process-card .mini-map {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 12px;
    padding-top: 8px;
}
.process-card .mini-map .embedded-map {
    width: 100%;
    max-width: 460px; /* broadened to cover more blank space */
    height: 340px; /* increased height to fill area */
    border: 0;
}

/* Center the Official Channels heading inside the process card */
.process-card > h3.gold-text {
    text-align: center;
    margin-top: 4px;
}
.process-card .mini-map .action-btn {
    display: inline-block;
    padding: 8px 14px;
    margin: 0;
}

/* Nudge the Get Directions button up slightly for better visual spacing */
.process-card .mini-map { gap: 8px; }
.process-card .mini-map .action-btn { margin-top: 4px; }

/* Reduce vertical gap between map and button further */
.process-card .mini-map { gap: 4px; padding-top: 4px; }
.process-card .mini-map .action-btn { margin-top: 0; }
.map-cta { text-align: center; margin-top: 2px; }

@media (max-width: 768px) {
    .process-card .mini-map .embedded-map { max-width: 100%; height: 220px; }
}

/* Mobile: allow status text to wrap so it's fully visible */
@media (max-width: 480px) {
    .open-status {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        font-size: 15px; /* slightly smaller to fit */
        line-height: 1.35;
    }
}

/* Get Directions button styling: new color and disable visual change on press */
.map-cta .action-btn,
.process-card .mini-map .action-btn {
    background: #0c618e; /* deep blue */
    color: #ffffff;
    border: 2px solid #0c618e;
    box-shadow: none;
    transition: none; /* disable hover/press transitions */
}
.map-cta .action-btn:hover,
.map-cta .action-btn:focus,
.map-cta .action-btn:active,
.process-card .mini-map .action-btn:hover,
.process-card .mini-map .action-btn:focus,
.process-card .mini-map .action-btn:active {
    background: #0c618e;
    color: #ffffff;
    border-color: #0c618e;
    transform: none;
    box-shadow: none;
}

/* Make the mobile CTA easier to tap (full-width on very small screens) */
@media (max-width: 480px) {
    .map-cta .action-btn,
    .process-card .mini-map .action-btn {
        display: inline-block;
        width: 90%;
        max-width: 320px;
        padding: 12px 16px;
        border-radius: 8px;
    }
}

/* Plain text link variant for Get Directions (no button) */
.map-cta .map-link {
    color: var(--blue);
    text-decoration: underline;
    font-weight: 700;
    background: transparent;
    border: none;
    padding: 0;
    display: inline-block;
}
.map-cta .map-link:hover,
.map-cta .map-link:focus,
.map-cta .map-link:active {
    color: var(--blue);
    text-decoration: underline;
    background: transparent;
    outline: none;
}
@media (max-width: 480px) {
    .map-cta .map-link { font-size: 15px; }
}

/* CONTACT PAGE: stack details + map vertically on mobile */
@media (max-width: 768px) {
    /* Stack two-column contact layout */
    .container.grid-2,
    .grid-2 {
        display: block !important;
    }

    .form-side,
    .info-side {
        width: 100% !important;
    }

    /* Ensure card and form use full width without overflow */
    .hmwt-form,
    .process-card {
        width: 100% !important;
        box-sizing: border-box;
        padding-left: 16px;
        padding-right: 16px;
    }

    /* Map container: full-width, no restrictive side padding */
    .mini-map {
        width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin: 16px 0 0;
    }

    /* Google Maps iframe: responsive full-width */
    .mini-map iframe,
    .mini-map .embedded-map {
        width: 100% !important;
        max-width: 100% !important;
        height: 260px;
        display: block;
    }
}

@media (max-width: 480px) {
    .hmwt-form,
    .process-card {
        padding-left: 12px;
        padding-right: 12px;
    }
}



/* Tablet layout: center the last (Values) card with same column size */
@media (min-width: 600px) and (max-width: 1200px) {
    /* Use grid on the about section container for tablet view */
    .about-section > .container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
        align-items: stretch;
    }

    /* Center the 3rd card (Our Values) in the middle with single-column width */
    .about-section > .container .about-item:nth-of-type(3) {
        grid-column: 1 / span 2;              /* occupy the row */
        justify-self: center;                  /* center horizontally */
        width: 100%;                           /* take available width */
        max-width: calc((100% - 24px) / 2);    /* same as one grid column (gap=24px) */
        margin: 0 auto;                        /* fallback center */
    }
}

/* Tablet view: keep headings centered, body content left-aligned */
@media (min-width: 600px) and (max-width: 1200px) {
    .process-card h3 { text-align: center; }
    .process-card .card-face,
    .process-card .card-back { text-align: left; }
    .process-card p,
    .process-card .ben-badge,
    .process-card .metric-tag { margin-left: 0; margin-right: 0; }
    .prog-card-list { display: block; text-align: left; margin-left: 0; margin-right: 0; }
}

/* Tablet header: center menu exactly between logo and design */
@media (min-width: 769px) and (max-width: 1200px) {
    #mainHeader .nav-container {
        display: grid;
        grid-template-columns: auto 1fr auto; /* logo | centered menu | design */
        align-items: center;
        gap: 20px;
        padding: 0 16px; /* pull content closer to edges to free middle space */
    }
    #mainHeader .nav-left { justify-self: start; justify-content: flex-start; }
    #mainHeader .nav-center { justify-self: center; width: 100%; display: flex; justify-content: center; }
    #mainHeader .nav-right { justify-self: end; }
    #mainHeader .nav-list { justify-content: center; gap: 28px; }
}



