:root {
    --primary-blue: #0A3857;
    --dark-navy: #06273C;
    --accent-gold: #FFC107;
    --accent-gold-soft: #FFD75E;
    --accent-cyan: #38BDF8;
    --accent-cyan-deep: #0EA5E9;
    --light-bg: #F6F7F9;
    --text-dark: #06273C;
    --muted: #667085;
    --ink: #051422;
    --ink-2: #081d31;
    --font-display: 'Space Grotesk', 'Poppins', system-ui, sans-serif;
    --glow-cyan: 0 0 0 1px rgba(56,189,248,0.25), 0 12px 40px rgba(14,165,233,0.28);
    --glow-gold: 0 10px 36px rgba(255,193,7,0.28);
    --grad-brand: linear-gradient(120deg, #0A3857 0%, #0EA5E9 100%);
    --grad-gold: linear-gradient(120deg, #FFC107 0%, #FF9800 100%);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Header fixed behavior */
:root { --header-height: 76px; }

/* Make header/navbar fixed to top and avoid overlap */
.site-header, .navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(6,39,60,0.04);
}

/* Body spacing to prevent content hiding under fixed header */
body { padding-top: var(--header-height); }

/* Ensure the site-header nav collapse for mobile uses a smooth reveal */
.site-header nav ul {
    transition: max-height .28s ease, opacity .22s ease;
    overflow: hidden;
}
.site-header.nav-open nav ul {
    max-height: 640px; /* large enough to show menu */
    opacity: 1;
}
.site-header nav ul { max-height: 0; opacity: 0; }

/* Toggler button for site-header variant */
.site-header-toggler {
    display: none;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255,255,255,0.98);
    box-shadow: 0 8px 24px rgba(8,28,70,0.06);
    border: none;
}
.site-header-toggler i { font-size: 1.15rem; color: var(--primary-blue); }
.toggler-text { font-weight: 700; font-size: 1.25rem; color: var(--dark-navy); line-height:1; }

/* Typography */
body {
    font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
    color: var(--text-dark);
    background: var(--light-bg);
    line-height: 1.6;
    -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale;
}

h1 { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; color: var(--primary-blue); letter-spacing: -0.02em; }
h2 { font-family: var(--font-display); font-size: 1.75rem; font-weight: 600; color: var(--primary-blue); }
h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; }

/* Container adjustments */
.container, .container-fluid { max-width: 1140px; }

/* Navbar */
.navbar { padding: 0.9rem 0; }
.navbar-brand .brand-name { font-weight: 700; color: var(--primary-blue); letter-spacing: -0.01em; }
.navbar-brand .brand-tagline { font-size: 0.85rem; color: var(--muted); }
.navbar .nav-link { color: var(--dark-navy); padding: 0.55rem 0.9rem; border-radius: .5rem; }
.navbar .nav-link:hover { color: var(--primary-blue); background: rgba(10,56,87,0.04); }
.navbar .nav-link.active { background: rgba(10,56,87,0.06); color: var(--primary-blue); }
.navbar.sticky-top { z-index: 1030; }

/* Remove underline from navbar links and brand */
.navbar .nav-link { text-decoration: none; }
.navbar .navbar-brand { text-decoration: none; }

/* Force remove underlines when browsers/UA styles show them */
.navbar a, .site-header a, .brand a { text-decoration: none !important; }
.navbar .nav-link, .navbar .navbar-brand, .site-header .nav-link, .site-header .brand { text-decoration: none !important; }
.navbar a:link, .navbar a:visited, .navbar a:hover, .navbar a:active,
.site-header a:link, .site-header a:visited, .site-header a:hover, .site-header a:active {
    text-decoration: none !important;
}

/* Live header and nav layout styling for current site markup */
.ite-header {
    background: #fff;
    padding: 1rem 0;
}
.site-header {
    padding: 0.9rem 0;
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.site-header .brand {
    display: flex;
    align-items: center;
    gap: .75rem;
}
.site-header .brand-name {
    font-weight: 700;
    color: var(--dark-navy);
}
.site-header .brand-tagline {
    font-size: 0.9rem;
    color: var(--muted);
}
.site-header nav ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.site-header nav .nav-link {
    color: var(--dark-navy);
    border-radius: .75rem;
    padding: .65rem 1rem;
    transition: background .2s ease, color .2s ease;
}
.site-header nav .nav-link:hover,
.site-header nav .nav-link:focus {
    background: rgba(255,193,7,0.08);
    color: var(--primary-blue);
}
.site-header .btn-outline-primary {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}
.site-header .btn-outline-primary:hover {
    background: rgba(255,193,7,0.14);
    border-color: var(--primary-blue);
}

/* Collapsed-menu panel styling — MOBILE ONLY (≤991px).
   On desktop the menu is expanded inline, so these decorative rules must NOT
   apply (otherwise the links float in a detached white pill). */
@media (max-width: 991.98px) {
    .navbar-collapse {
        padding: .75rem 1rem;
        background: #fff;
        border-radius: 1rem;
        box-shadow: 0 18px 40px rgba(8,28,70,0.06);
        margin-top: .75rem;
    }
    .navbar-collapse .nav-link {
        display: block;
        padding: .85rem 1rem;
        text-decoration: none !important;
        color: var(--dark-navy);
        border-radius: .75rem;
    }
    .navbar-collapse .nav-link:hover,
    .navbar-collapse .nav-link:focus {
        background: rgba(255,193,7,0.12);
        color: var(--primary-blue);
        text-decoration: none !important;
    }
    .navbar-nav .nav-item + .nav-item { margin-top: .35rem; }
    /* full-width contact button inside the mobile dropdown */
    .navbar-nav .btn-cta-primary { display: block; text-align: center; margin-top: .35rem; }
}

/* Very specific rules to ensure brand text and child elements are not underlined */
.navbar-brand, .navbar-brand *, .navbar-brand .brand-name, .navbar-brand .brand-tagline {
    text-decoration: none !important;
    color: var(--dark-navy) !important;
}

/* Logo sizing */
.logo { width: 72px; height: auto; display: block; }

/* Toggler */
.navbar-toggler {
    border: none;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.98);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(8,28,70,0.06);
}
.navbar-toggler:focus {
    box-shadow: 0 0 0 4px rgba(255,193,7,0.18);
}
.navbar-toggler .fa-bars { font-size: 1.1rem; color: var(--dark-navy); }
.navbar-toggler .toggler-text { font-weight:700; font-size:1.15rem; color: var(--dark-navy); }

/* Hero */
.hero {
    min-height: 66vh;
    display: flex;
    align-items: center;
    background-image: linear-gradient(135deg, rgba(6,39,60,0.92), rgba(10,56,87,0.88)), url('../images/hero-bg.jpg');
    background-size: cover; background-position: center; color: #fff; padding: 4rem 0;
}
.hero h1 { color: #fff !important; font-size: 3.5rem !important; line-height: 1.2; }
.hero .lead { color: rgba(255,255,255,0.95) !important; font-size: 1.3rem !important; line-height: 1.6; font-weight: 500; }
.hero > div > div > .col-lg-7 > p { color: rgba(255,255,255,0.90) !important; font-size: 1.05rem !important; line-height: 1.8; }
.hero-card { border-radius: 14px; padding: 2rem; background: rgba(255,255,255,0.97); box-shadow: 0 20px 48px rgba(8,28,70,0.16); }

/* Hero card sizing */
.hero-card { max-width: 400px; margin: 0 auto; color: var(--text-dark); }
.hero-card h3 { font-size: 1.4rem; margin-bottom: 0.75rem; }
.hero-card p { font-size: 0.95rem; line-height: 1.6; margin-bottom: 1rem; }

@media (max-width: 576px) {
    .hero { padding: 2rem 0; }
    .hero-card { padding: 1.5rem; border-radius: 12px; }
    .hero-card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
    .hero-card p { font-size: 0.9rem; margin-bottom: 0.75rem; }
}

/* Buttons */
.btn-cta-primary {
    background: var(--accent-gold);
    color: var(--dark-navy) !important;
    border: none;
    padding: 0.6rem 1.8rem !important;
    font-weight: 600;
    box-shadow: 0 10px 28px rgba(255,193,7,0.16);
    transition: transform .2s ease, box-shadow .2s ease;
    border-radius: 0.5rem;
}
.btn-cta-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(255,193,7,0.22); }
.btn-cta-secondary {
    background: var(--primary-blue);
    color: #fff !important; border: none;
    padding: 0.6rem 1.8rem !important;
    font-weight: 600;
    transition: transform .2s ease;
    border-radius: 0.5rem;
}
.btn-cta-secondary:hover { transform: translateY(-2px); }

/* Ensure Bootstrap primary buttons use brand CTA styling */
.btn-primary {
    background: var(--accent-gold) !important;
    color: var(--dark-navy) !important;
    border: none !important;
    box-shadow: 0 8px 24px rgba(255,193,7,0.12);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(255,193,7,0.16);
}

.btn-outline-primary {
    color: var(--primary-blue) !important;
    border-color: var(--primary-blue) !important;
}

/* Cards */
.card { border-radius: 12px; box-shadow: 0 8px 24px rgba(8, 28, 70, 0.06); border: none; padding: 1.5rem; background: #fff; transition: transform .2s ease, box-shadow .2s ease; }
.card h5 { color: var(--primary-blue); font-weight: 600; margin-bottom: 0.75rem; }
.card p { font-size: 0.95rem; line-height: 1.6; color: var(--muted); }
.card .badge { background: var(--primary-blue); }
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(6,39,60,0.1); }

/* Section backgrounds */
.section-white { background: #fff; }
.section-alt { background: var(--light-bg); }

/* Accessibility: visible focus states */
a:focus, .btn:focus, .nav-link:focus { outline: none; }
.nav-link:focus-visible, .btn:focus-visible, .navbar-toggler:focus-visible { box-shadow: 0 0 0 4px rgba(10,56,87,0.08); border-radius: .5rem; }

/* Counters */
.counter-card { border-radius: 12px; padding: 1.75rem 1.5rem; text-align: center; box-shadow: 0 8px 24px rgba(8, 28, 70, 0.06); transition: transform .2s ease, box-shadow .2s ease; }
.counter-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(6,39,60,0.15); }
.counter-card h3 { font-size: 1.8rem; font-weight: 700; margin-bottom: 0.5rem; }
.counter-card p { font-size: 0.95rem; }

/* Counter card color variants */
.counter-dark {
    background: linear-gradient(135deg, #0A3857 0%, #06273C 100%) !important;
    color: #fff !important;
}

.counter-gold {
    background: linear-gradient(135deg, #FFC107 0%, #FF9800 100%) !important;
    color: #06273C !important;
}

.counter-navy {
    background: linear-gradient(135deg, #06273C 0%, #0A3857 100%) !important;
    color: #fff !important;
}

.counter-orange {
    background: linear-gradient(135deg, #FF9800 0%, #FFC107 100%) !important;
    color: #06273C !important;
}

/* Project images */
.project-image { min-height: 220px; background-size: cover; background-position: center; }

/* Ensure card images scale and keep aspect ratio */
.card-img-top, .project-image img { width: 100%; height: auto; object-fit: cover; border-top-left-radius: 12px; border-top-right-radius: 12px; }

/* Project grid helpers */
.projects-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 1.5rem;
    padding: 0.5rem 0;
}

/* Project card styling */
.project-card {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 48px rgba(10,56,87,0.15) !important;
}

.project-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 240px;
    background: linear-gradient(135deg, #f0f2f5 0%, #e8eaed 100%);
}

.project-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.project-card:hover .project-image {
    transform: scale(1.08);
}

.project-overlay {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
}

.project-overlay .badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-item:nth-child(3n+1) .project-overlay .badge {
    background: linear-gradient(135deg, #0A3857 0%, #06273C 100%) !important;
}

.project-item:nth-child(3n+2) .project-overlay .badge {
    background: linear-gradient(135deg, #FFC107 0%, #FF9800 100%) !important;
    color: #fff !important;
}

.project-item:nth-child(3n+3) .project-overlay .badge {
    background: linear-gradient(135deg, #06273C 0%, #0A3857 100%) !important;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 0.5rem 0;
}

.service-card {
    background: linear-gradient(135deg, #fff 0%, #FAFBFC 100%);
    border: 1px solid rgba(10,56,87,0.06);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,193,7,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.service-card:hover {
    transform: translateY(-8px);
    background: linear-gradient(135deg, #FAFBFC 0%, #fff 100%);
    border-color: rgba(10,56,87,0.1);
    box-shadow: 0 20px 48px rgba(10,56,87,0.12) !important;
}

.service-icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-navy));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon-wrapper {
    transform: scale(1.1) rotate(-5deg);
}

.service-icon {
    font-size: 2rem;
    color: #fff;
}

.service-content {
    position: relative;
    z-index: 1;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-card h5 {
    color: var(--primary-blue);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.service-card p {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.service-item:nth-child(3n+1) .service-icon-wrapper {
    background: linear-gradient(135deg, #0A3857 0%, #06273C 100%);
}

.service-item:nth-child(3n+2) .service-icon-wrapper {
    background: linear-gradient(135deg, #FFC107 0%, #FF9800 100%);
}

.service-item:nth-child(3n+3) .service-icon-wrapper {
    background: linear-gradient(135deg, #06273C 0%, #0A3857 100%);
}

/* Footer */
footer.footer { background: var(--dark-navy); color: #fff; }
footer.footer a { color: #fff; }
footer.footer a:hover { color: var(--accent-gold); }
.footer .highlight { color: var(--accent-gold); }

/* Contact form */
.contact-info { background: #fff; border-radius: 12px; padding: 2rem; box-shadow: 0 8px 24px rgba(8, 28, 70, 0.06); }
.contact-info h5 { color: var(--primary-blue); margin-bottom: 1rem; font-weight: 600; }

/* Enhanced Contact Page */
.contact-info-card {
    background: linear-gradient(135deg, #fff 0%, #FAFBFC 100%);
    border: 1px solid rgba(10,56,87,0.06);
    transition: all 0.3s ease;
}

.contact-info-card:hover {
    box-shadow: 0 20px 48px rgba(10,56,87,0.1) !important;
}

.contact-item {
    transition: all 0.2s ease;
}

.contact-item:hover {
    transform: translateX(6px);
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-navy));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-item h6 {
    color: var(--primary-blue);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.contact-form-card {
    background: linear-gradient(135deg, #fff 0%, #FAFBFC 100%);
    border: 1px solid rgba(10,56,87,0.06);
}

.form-control-lg {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1.5px solid rgba(10,56,87,0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.form-control-lg:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(10,56,87,0.08);
    outline: none;
}

.form-control-lg::placeholder {
    color: var(--muted);
}

.form-label {
    color: var(--text-dark);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.map-responsive {
    background: linear-gradient(135deg, #f0f2f5 0%, #e8eaed 100%);
    display: block;
}

/* Responsive */
@media (max-width: 991px) {
    h1 { font-size: 1.9rem; }
    .hero { padding: 2.5rem 0; }
    .hero-card { padding: 1.75rem; }
    .card { padding: 1.25rem; }
    .navbar-brand .brand-tagline { display: none; }
}

@media (max-width: 576px) {
    .logo { width: 48px; }
    .navbar .nav-link { padding: .45rem 0.6rem; }
    .navbar-toggler .fa-bars, .navbar-toggler .fa-xmark { font-size: 1.15rem; color: var(--primary-blue); }
    .navbar-toggler { width: 48px; height: 48px; }
    /* show site-header toggler on small screens */
    .site-header-toggler { display: inline-flex; }
    /* allow navigation in the header to collapse and expand */
    .site-header nav ul { display: block; width: 100%; }
    .site-header .brand { flex: 0 0 auto; }
    .site-header .container { padding-left: 0.75rem; padding-right: 0.75rem; }

    /* mobile-only collapsed behavior: transition, hidden by default */
    .site-header nav ul {
        transition: max-height .28s ease, opacity .22s ease;
        overflow: hidden;
        max-height: 0;
        opacity: 0;
    }
    .site-header.nav-open nav ul {
        max-height: 640px;
        opacity: 1;
    }
}

/* Tablet breakpoint tweaks */
@media (max-width: 992px) {
    .projects-grid { 
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    h2 { font-size: 1.5rem; }
    .hero { min-height: 56vh; background-position: center 30%; }
}

/* Mobile tweaks */
@media (max-width: 576px) {
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.125rem; }
    .projects-grid { 
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .service-card {
        padding: 1.5rem 1rem;
    }
    .service-icon-wrapper {
        width: 70px;
        height: 70px;
    }
    .service-icon {
        font-size: 1.5rem;
    }
    .project-image-wrapper {
        height: 200px;
    }
    .hero { padding: 2rem 0; min-height: 44vh; background-position: center 35%; }
    .card { margin-bottom: 0.85rem; }
    footer.footer { padding: 2rem 1rem; }
    .counter-card { padding: 1.25rem; }

    /* Hide verbose brand text inside the collapsed mobile header */
    .navbar-brand .brand-name, .navbar-brand .brand-tagline { display: none !important; }
}

/* Tablet & mobile (below Bootstrap's lg breakpoint): standard hamburger nav.
   The links live in #navbarMain and collapse into the dropdown panel
   (styled in the ≤991.98px block above). No forced inline nav. */
@media (min-width: 577px) and (max-width: 991.98px) {
    :root { --header-height: 74px; }
    .navbar { padding: 0.5rem 0; min-height: 74px; }
    .logo { width: 56px; }
}

/* Desktop (lg and up): single unified inline navbar */
@media (min-width: 992px) {
    :root { --header-height: 86px; }
    .navbar {
        padding: 0.5rem 0 !important;
        min-height: 86px;
    }
    .navbar .container { align-items: center; }
    .logo { width: 64px; }
    .navbar .nav-link { padding: .45rem .9rem; }
    .navbar-nav { gap: .25rem; align-items: center; }
}

/* ========== HOME PAGE MOBILE OPTIMIZATIONS ========== */

/* Home page hero section responsive padding and sizing */
.hero { transition: min-height 0.3s ease, padding 0.3s ease; }
.hero-card { border-radius: 14px; }

/* Mobile Hero (≤576px): Compact for small screens */
@media (max-width: 576px) {
    .hero {
        min-height: 48vh;
        padding: 1.5rem 0;
        padding-top: calc(var(--header-height) + 1rem);
    }
    .hero h1 {
        font-size: 1.4rem;
        margin-bottom: 0.75rem;
        line-height: 1.3;
    }
    .hero .lead {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
    .hero p {
        font-size: 0.9rem;
    }
    .hero-card {
        padding: 1.25rem;
        margin-top: 1.5rem;
        border-radius: 12px;
    }
    .hero-card h4 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    .hero-card p {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    /* Hero buttons: full width, stacked on mobile */
    .d-flex.gap-3 {
        flex-direction: column;
    }
    .d-flex.gap-3 .btn {
        width: 100%;
        padding: 0.7rem 1rem;
        font-size: 0.95rem;
        border-radius: 8px;
    }
    
    /* Counter cards: compact layout */
    .counter-card {
        padding: 1rem;
        border-radius: 10px;
    }
    .counter-card h3 {
        font-size: 1.4rem;
        margin-bottom: 0.25rem;
    }
    .counter-card p {
        font-size: 0.8rem;
        line-height: 1.3;
    }
    
    /* Section headings */
    h2 {
        font-size: 1.25rem;
        margin-bottom: 1.25rem;
        line-height: 1.3;
    }
    
    /* Section spacing */
    section {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
    
    /* Purpose card in Why section */
    .card h5 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    .card p {
        font-size: 0.85rem;
    }
    .card ul li {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }
    
    /* SDG and Ecosystem cards */
    .sdg-card {
        padding: 1rem !important;
        border-radius: 10px !important;
    }
    .sdg-card h5 {
        font-size: 0.95rem;
        margin-bottom: 0.25rem;
    }
    .sdg-card p {
        font-size: 0.8rem;
    }
    
    /* Badge sizing */
    .badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }
    
    /* CTA section */
    .cta-section {
        margin: 0 0.75rem;
        border-radius: 12px;
        padding: 1.5rem 1rem !important;
    }
    .cta-section h2 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    .cta-section p {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 1rem;
    }
    .cta-section .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Tablet Optimizations (577px - 992px) */
@media (min-width: 577px) and (max-width: 992px) {
    .hero {
        min-height: 56vh;
        padding: 2rem 0;
    }
    .hero h1 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    .hero .lead {
        font-size: 1.05rem;
        margin-bottom: 1rem;
    }
    .hero-card {
        padding: 1.5rem;
        margin-top: 1.5rem;
    }
    .hero-card h4 {
        font-size: 1.15rem;
        margin-bottom: 0.75rem;
    }
    
    /* Tablet hero buttons: horizontal wrap with min-width */
    .d-flex.gap-3 {
        flex-wrap: wrap;
    }
    .d-flex.gap-3 .btn {
        min-width: 160px;
        padding: 0.65rem 1.5rem;
        font-size: 0.95rem;
    }
    
    /* Counter cards on tablet: 2 columns instead of 4 */
    .counter-card {
        padding: 1.25rem;
        border-radius: 11px;
    }
    .counter-card h3 {
        font-size: 1.6rem;
        margin-bottom: 0.5rem;
    }
    .counter-card p {
        font-size: 0.9rem;
    }
    
    /* Section spacing on tablet */
    section {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    /* Card sizing on tablet */
    .card {
        padding: 1.35rem;
    }
    .card h5 {
        font-size: 1rem;
    }
    
    /* CTA section */
    .cta-section {
        margin: 0 1rem;
        border-radius: 12px;
        padding: 2rem 1.5rem !important;
    }
}

/* Desktop Optimizations (993px+) */
@media (min-width: 993px) {
    .hero {
        min-height: 62vh;
        padding: 3rem 0;
    }
    .hero h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    /* CTA section */
    .cta-section {
        margin: 0 2rem;
        border-radius: 14px;
        padding: 3rem !important;
    }
}

/* Utility: Shadow depth */
.shadow-md {
    box-shadow: 0 10px 28px rgba(8, 28, 70, 0.08) !important;
}

.shadow-lg {
    box-shadow: 0 20px 48px rgba(8, 28, 70, 0.14) !important;
}

/* ========== VISUAL ENHANCEMENTS ========== */

/* Gradient accents for visual depth */
.bg-gradient {
    background-attachment: fixed;
    background-blend-mode: overlay;
}

/* Enhanced section backgrounds with subtle patterns */
.bg-light {
    background: linear-gradient(135deg, #F6F7F9 0%, #FAFBFC 100%);
}

.bg-dark {
    background: linear-gradient(135deg, #06273C 0%, #0A3857 100%);
}

/* Card gradient hover effect */
.card {
    overflow: hidden;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,193,7,0.08), transparent);
    transition: left 0.5s ease;
    pointer-events: none;
}

.card:hover::before {
    left: 100%;
}

/* Enhanced list styling */
.list-unstyled li {
    transition: transform 0.2s ease, color 0.2s ease;
    padding: 0.25rem 0;
}

.list-unstyled li:hover {
    transform: translateX(4px);
    color: var(--primary-blue);
}

.list-unstyled i {
    transition: transform 0.2s ease;
}

.list-unstyled li:hover i {
    transform: scale(1.2);
}

/* Badge styling enhancement */
.badge {
    display: inline-block;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.badge:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(10,56,87,0.2);
}

/* Counter card special styling */
.counter-card {
    position: relative;
    overflow: hidden;
}

.counter-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,193,7,0.05) 0%, transparent 70%);
    pointer-events: none;
}

.counter-card h3 {
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-navy));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Vision/Mission card special styling */
.hero-card {
    border: 1px solid rgba(10,56,87,0.08);
    background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(246,247,249,0.5));
    backdrop-filter: blur(8px);
}

.hero-card h4 {
    color: var(--primary-blue);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

/* SDG and Ecosystem card enhancements */
.sdg-card {
    border-left: 4px solid var(--accent-gold);
    transition: all 0.3s ease;
}

.sdg-card:hover {
    border-left-color: var(--primary-blue);
    background: linear-gradient(135deg, #fff 0%, rgba(246,247,249,0.8) 100%);
}

.sdg-card h5 {
    color: var(--primary-blue);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
}

/* Button enhancements */
.btn {
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:active {
    transform: scale(0.98);
}

/* Section dividers with gradient */
section {
    position: relative;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(10,56,87,0.1), transparent);
}

section:first-of-type::before {
    display: none;
}

/* CTA section premium styling */
.cta-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-navy) 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,193,7,0.1) 0%, transparent 70%);
    animation: pulse-bg 8s ease-in-out infinite;
    pointer-events: none;
}

.cta-section > .container {
    position: relative;
    z-index: 1;
}

@keyframes pulse-bg {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, -20px); }
}

/* Typography enhancements */
h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.01em;
    font-weight: 700;
}

h2 {
    position: relative;
    padding-bottom: 0.5rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-gold), transparent);
    border-radius: 2px;
}

@media (max-width: 576px) {
    h2::after {
        width: 40px;
    }
}

/* Link hover effects */
a {
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-blue);
}

/* Footer link enhancements */
footer.footer a {
    position: relative;
    text-decoration: none;
}

footer.footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: width 0.3s ease;
}

footer.footer a:hover::after {
    width: 100%;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Text selection styling */
::selection {
    background: var(--primary-blue);
    color: #fff;
}

::-moz-selection {
    background: var(--primary-blue);
    color: #fff;
}

/* =====================================================================
   FUTURISTIC THEME LAYER  —  CodNesta Group
   Loaded last so it refines the base styles above.
   ===================================================================== */

/* ---- Global overflow guard (prevents mobile horizontal scroll) ---- */
html, body { overflow-x: hidden; max-width: 100%; }

/* ---- Extended spacing utilities (Bootstrap stops at 5; templates use 6–9) ---- */
.p-6 { padding: 3rem !important; }
.py-6 { padding-top: 4rem !important; padding-bottom: 4rem !important; }
.py-7 { padding-top: 5.5rem !important; padding-bottom: 5.5rem !important; }
.py-8 { padding-top: 7rem !important; padding-bottom: 7rem !important; }
.py-9 { padding-top: 8.5rem !important; padding-bottom: 8.5rem !important; }
.mb-6 { margin-bottom: 4rem !important; }
.mt-6 { margin-top: 4rem !important; }
.my-6 { margin-top: 4rem !important; margin-bottom: 4rem !important; }
@media (min-width: 768px) {
    .p-md-6 { padding: 3rem !important; }
    .py-md-7 { padding-top: 5.5rem !important; padding-bottom: 5.5rem !important; }
    .py-md-8 { padding-top: 7rem !important; padding-bottom: 7rem !important; }
    .py-md-9 { padding-top: 8.5rem !important; padding-bottom: 8.5rem !important; }
}
@media (min-width: 992px) {
    .py-lg-7 { padding-top: 5.5rem !important; padding-bottom: 5.5rem !important; }
    .py-lg-8 { padding-top: 7rem !important; padding-bottom: 7rem !important; }
}

/* ---- Scroll progress bar ---- */
.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0%;
    z-index: 2000;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-gold));
    box-shadow: 0 0 12px rgba(56,189,248,0.6);
    transition: width 0.08s linear;
}

/* ---- Ambient background (fixed, behind everything) ---- */
.ambient-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}
.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.5;
}
.ambient-orb--1 {
    width: 520px; height: 520px;
    top: -160px; left: -120px;
    background: radial-gradient(circle, rgba(56,189,248,0.30), transparent 70%);
    animation: orb-float-1 18s ease-in-out infinite;
}
.ambient-orb--2 {
    width: 460px; height: 460px;
    bottom: -180px; right: -120px;
    background: radial-gradient(circle, rgba(255,193,7,0.22), transparent 70%);
    animation: orb-float-2 22s ease-in-out infinite;
}
.ambient-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(10,56,87,0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(10,56,87,0.045) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 40%, transparent 100%);
}
@keyframes orb-float-1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(60px, 50px) scale(1.12); }
}
@keyframes orb-float-2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-50px, -40px) scale(1.1); }
}

/* ---- Eyebrow chip (section labels) ---- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent-cyan-deep);
    background: rgba(56,189,248,0.10);
    border: 1px solid rgba(56,189,248,0.22);
    padding: 0.4rem 0.9rem;
    border-radius: 100px;
    margin-bottom: 1rem;
}
.eyebrow::before {
    content: '';
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
    animation: pulse-dot 2s ease-in-out infinite;
}
.eyebrow--light {
    color: #cdeffd;
    background: rgba(56,189,248,0.14);
    border-color: rgba(255,255,255,0.18);
}
.eyebrow--gold { color: #b97e00; background: rgba(255,193,7,0.14); border-color: rgba(255,193,7,0.3); }
.eyebrow--gold::before { background: var(--accent-gold); box-shadow: 0 0 10px var(--accent-gold); }
@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.6; }
}

/* ---- Gradient text utility ---- */
.text-gradient {
    background: linear-gradient(110deg, var(--accent-gold) 0%, var(--accent-gold-soft) 40%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* ---- Futuristic HOME hero ---- */
.hero--home {
    position: relative;
    overflow: hidden;
    min-height: 86vh;
    padding: 5rem 0 4.5rem;
    background:
        radial-gradient(1200px 600px at 80% -10%, rgba(56,189,248,0.18), transparent 60%),
        linear-gradient(135deg, rgba(5,20,34,0.94), rgba(8,29,49,0.90)),
        var(--ink);
    color: #fff;
}
.hero--home::before {           /* faint photo texture */
    content: '';
    position: absolute; inset: 0;
    background-image: url('../images/hero-bg.jpg');
    background-size: cover; background-position: center;
    opacity: 0.10; mix-blend-mode: luminosity;
    pointer-events: none;
}
.hero--home::after {            /* dotted grid overlay */
    content: '';
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 30px 30px;
    mask-image: linear-gradient(180deg, #000, transparent 85%);
    -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%);
    pointer-events: none;
}
.hero--home .container { position: relative; z-index: 2; }
.hero-glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: 1;
    pointer-events: none;
}
.hero-glow-orb.one { width: 320px; height: 320px; top: -60px; right: 8%; background: radial-gradient(circle, rgba(56,189,248,0.45), transparent 70%); animation: orb-float-1 14s ease-in-out infinite; }
.hero-glow-orb.two { width: 260px; height: 260px; bottom: -80px; left: 4%; background: radial-gradient(circle, rgba(255,193,7,0.30), transparent 70%); animation: orb-float-2 18s ease-in-out infinite; }

.hero--home h1 {
    color: #fff !important;
    font-family: var(--font-display);
    letter-spacing: -0.03em;
    font-size: clamp(2rem, 5.2vw, 3.4rem) !important;
    line-height: 1.12;
    overflow-wrap: break-word;
}
.hero--home .lead { color: rgba(255,255,255,0.92) !important; }
.hero--home p { color: rgba(255,255,255,0.78); }

/* trust / stat strip under hero CTAs */
.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2.5rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(255,255,255,0.12);
}
.hero-trust .num {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1;
    color: #fff;
}
.hero-trust .lbl { font-size: 0.8rem; color: rgba(255,255,255,0.6); margin-top: 0.25rem; }

/* Dark glass Vision/Mission card on hero */
.hero-card.hero-card--glass {
    background: linear-gradient(160deg, rgba(255,255,255,0.10), rgba(255,255,255,0.03));
    border: 1px solid rgba(255,255,255,0.16);
    box-shadow: 0 30px 70px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.18);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: #fff;
    max-width: 420px;
}
.hero-card--glass h4 { color: #fff !important; }
.hero-card--glass p { color: rgba(255,255,255,0.78) !important; }
.hero-card--glass .fa-solid { color: var(--accent-gold); }

/* ---- Buttons: glow polish ---- */
.btn-cta-primary {
    background: var(--grad-gold) !important;
    box-shadow: var(--glow-gold);
    border-radius: 0.65rem;
}
.btn-cta-primary:hover { box-shadow: 0 18px 48px rgba(255,193,7,0.4); }
.btn-cta-secondary {
    background: linear-gradient(120deg, rgba(255,255,255,0.10), rgba(255,255,255,0.04)) !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.28) !important;
    backdrop-filter: blur(6px);
    border-radius: 0.65rem;
}
.btn-cta-secondary:hover {
    border-color: var(--accent-cyan) !important;
    box-shadow: 0 0 0 1px rgba(56,189,248,0.4), 0 12px 36px rgba(14,165,233,0.3);
}

/* ---- Section heading underline: dual-tone ---- */
h2::after {
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-cyan));
    height: 3px; width: 64px;
}
/* Center the underline when the heading sits in a centered block */
.text-center h2::after { left: 50%; transform: translateX(-50%); }

/* Anchored elements clear the fixed navbar when jumped to */
[id] { scroll-margin-top: calc(var(--header-height) + 16px); }

/* Headings on dark sections must read as white (fixes navy-on-navy) */
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4, .bg-dark h5, .bg-dark h6,
.cta-section h1, .cta-section h2, .cta-section h3 { color: #fff !important; }

/* ---- Cards: luminous top edge on hover ---- */
.card {
    border: 1px solid rgba(10,56,87,0.06);
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
}
.card::after {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    width: 0; height: 2px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
    transition: width 0.4s ease;
}
.card:hover::after { width: 80%; }
.card:hover { border-color: rgba(56,189,248,0.25); }

/* ---- Counter cards: fix gradient-text bug + add glow ---- */
.counter-card h3 {
    -webkit-text-fill-color: currentColor !important;
    background: none !important;
    color: inherit !important;
    font-family: var(--font-display);
}
.counter-card {
    border: 1px solid rgba(255,255,255,0.12);
    position: relative;
}
.counter-card::before {
    content: '';
    position: absolute; inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.25);
    pointer-events: none;
}
.counter-card:hover {
    box-shadow: 0 22px 50px rgba(6,39,60,0.28), var(--glow-cyan);
}

/* ---- Ecosystem / SDG card accents ---- */
.sdg-card { backdrop-filter: blur(4px); }

/* ---- Navbar: refined glass + animated underline ---- */
.navbar {
    background: rgba(255,255,255,0.82) !important;
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid rgba(10,56,87,0.07);
}
.navbar .nav-link {
    position: relative;
    font-weight: 500;
}
.navbar .nav-link::after {
    content: '';
    position: absolute;
    left: 0.9rem; right: 0.9rem; bottom: 0.3rem;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-cyan));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.28s var(--ease-spring);
    border-radius: 2px;
}
.navbar .nav-link:hover::after,
.navbar .nav-link.active::after { transform: scaleX(1); }
.navbar-brand .brand-name { font-family: var(--font-display); }

/* ---- Footer: dark, modern ---- */
footer.footer {
    background: linear-gradient(180deg, var(--ink-2), var(--ink));
    position: relative;
    border-top: 1px solid rgba(56,189,248,0.18);
}
footer.footer h6 { font-family: var(--font-display); letter-spacing: 0.04em; }

/* ---- Flash toasts ---- */
.flash-stack {
    position: fixed;
    top: calc(var(--header-height) + 12px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1900;
    width: auto;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.flash-toast {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.85rem 1.1rem;
    border-radius: 14px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    box-shadow: 0 18px 44px rgba(8,28,70,0.18);
    border: 1px solid rgba(10,56,87,0.08);
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-dark);
    animation: toast-in 0.45s var(--ease-spring) both;
}
.flash-toast--success { border-left: 4px solid #16a34a; }
.flash-toast--success i { color: #16a34a; }
.flash-toast--danger, .flash-toast--error { border-left: 4px solid #dc2626; }
.flash-toast--danger i, .flash-toast--error i { color: #dc2626; }
.flash-toast i { font-size: 1.15rem; }
.flash-toast span { flex: 1; }
.flash-close {
    border: none; background: none;
    font-size: 1.3rem; line-height: 1;
    color: var(--muted); cursor: pointer;
}
.flash-close:hover { color: var(--text-dark); }
@keyframes toast-in {
    from { opacity: 0; transform: translateY(-14px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---- Back to top ---- */
.back-to-top {
    position: fixed;
    bottom: 26px; right: 26px;
    width: 48px; height: 48px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.2);
    background: var(--grad-brand);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 14px 34px rgba(10,56,87,0.32);
    opacity: 0; visibility: hidden;
    transform: translateY(16px);
    transition: all 0.35s var(--ease-spring);
    z-index: 1500;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(14,165,233,0.42); }

/* ---- News grid (was missing) ---- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.news-card .card { height: 100%; }
.card-header-badge {
    padding: 1.25rem 1.5rem 0;
}
.card-header-badge .badge {
    background: var(--grad-brand);
    color: #fff;
    font-size: 0.7rem;
    padding: 0.4rem 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.news-item:nth-child(3n+2) .card-header-badge .badge,
.news-card:nth-child(3n+2) .card-header-badge .badge { background: var(--grad-gold); color: var(--dark-navy); }
.news-card .card h5 { line-height: 1.4; }
.search-box-card {
    background: linear-gradient(160deg, #ffffff, #f6f9fc);
    border: 1px solid rgba(10,56,87,0.07);
}
.search-box-card h6 { color: var(--primary-blue); font-family: var(--font-display); }

@media (max-width: 992px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) { .news-grid { grid-template-columns: 1fr; } }

/* ---- Service "Explore" + project "Learn more" arrow motion ---- */
.service-content a:hover .fa-arrow-right,
.project-card a:hover .fa-arrow-right,
.news-card a:hover .fa-arrow-right { transform: translateX(4px); }
.service-content a .fa-arrow-right,
.project-card a .fa-arrow-right,
.news-card a .fa-arrow-right { transition: transform 0.25s ease; }

/* ---- Respect reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
    .ambient-orb, .hero-glow-orb, .cta-section::before, .eyebrow::before { animation: none !important; }
    html { scroll-behavior: auto; }
}

/* ---- Mobile: tame ambient + hero on small screens ---- */
@media (max-width: 576px) {
    .ambient-orb { filter: blur(50px); opacity: 0.35; }
    .hero--home { min-height: auto; padding: 2rem 0 2.25rem; }
    .hero-trust { gap: 1.25rem 1.75rem; margin-top: 1.5rem; padding-top: 1.25rem; }
    .hero-trust .num { font-size: 1.3rem; }
    .hero-card--glass { margin-top: 1.5rem; }
    .back-to-top { bottom: 18px; right: 18px; width: 44px; height: 44px; }
}
@media (min-width: 577px) and (max-width: 992px) {
    .hero--home { min-height: auto; padding: 3rem 0; }
}
