        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: 'Poppins', sans-serif;
            background: green;
            color: #fff;
            overflow-x: hidden;
            font-size: 16px;
            line-height: 1.7;
        }

        h1, h2, h3, h4, h5, h6 {
            font-family: 'Montserrat', sans-serif;
            font-weight: 700;
            line-height: 1.3;
        }

        /* Scrollbar */
        ::-webkit-scrollbar {
            width: 10px;
        }

        ::-webkit-scrollbar-track {
            background: #0A1628;
        }

        ::-webkit-scrollbar-thumb {
            background: linear-gradient(180deg, #1E3A5F 0%, #108A56 100%);
            border-radius: 5px;
        }

        /* Background */
        .bg-decoration {
            position: fixed;
            inset: 0;
            pointer-events: none;
            opacity: 0.3;
            z-index: 0;
        }

        .bg-blob {
            position: absolute;
            border-radius: 50%;
            filter: blur(120px);
            animation: pulse 6s ease-in-out infinite;
        }

        .bg-blob-1 {
            top: -100px;
            left: -100px;
            width: 500px;
            height: 500px;
            background: linear-gradient(to bottom right, #1E3A5F, transparent);
        }

        .bg-blob-2 {
            bottom: -100px;
            right: -100px;
            width: 500px;
            height: 500px;
            background: linear-gradient(to top left, #2C5282, transparent);
            animation-delay: 2s;
        }

        .bg-blob-3 {
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 600px;
            height: 600px;
            background: linear-gradient(circle, #16a34a, transparent);
            opacity: 0.2;
            animation-delay: 4s;
        }

        /* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.5s;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(22, 163, 74, 0.2);
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(22, 163, 74, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    z-index: 1001;
}

.logo-icon {
    background: linear-gradient(135deg, #22c55e, #15803d);
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: transform 0.3s;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.logo:hover .logo-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.5);
}

.logo-text h1 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e3a5f;
    letter-spacing: -0.5px;
}

.logo-text p {
    font-size: 0.75rem;
    color: #4ade80;
    font-weight: 500;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu a {
    color: #1e5f38;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #4ade80, #16a34a);
    transition: width 0.3s;
}

.nav-menu a:hover {
    color: #16a34a;
    transform: translateY(-1px);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu a.active {
    color: #16a34a;
}

.nav-menu a.active::after {
    width: 100%;
}

.cta-button {
    background: linear-gradient(to right, #16a34a, #15803d);
    padding: 0.6rem 1.75rem;
    border-radius: 9999px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(22, 163, 74, 0.3);
}

.cta-button:hover {
    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.5);
    transform: translateY(-2px) scale(1.05);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    position: absolute;
    left: 1.5rem;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: #1e3a5f;
    transition: all 0.3s;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, rgba(10, 22, 40, 0.98), rgba(30, 58, 95, 0.98));
    backdrop-filter: blur(10px);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s ease;
}

.mobile-menu-overlay.active {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.mobile-menu-overlay a {
    color: #fff;
    text-decoration: none;
    font-size: 1.75rem;
    font-weight: 600;
    margin: 1.5rem 0;
    transition: all 0.3s;
}

.mobile-menu-overlay a:hover {
    color: #4ade80;
    transform: translateX(10px);
}

.mobile-menu-overlay a.active {
    color: #4ade80;
}

        /* Hero Section */
        .hero {
            position: relative;
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 6rem 1.5rem 4rem;
            overflow: hidden;
        }

        .hero-background {
            position: absolute;
            inset: 0;
            z-index: 0;
        }

        .hero-slide-bg {
            position: absolute;
            inset: 0;
            opacity: 0;
            transition: opacity 0.9s ease-in-out;
            background-size: cover;
            background-position: center;
        }

        .hero-slide-bg::before {
            content: '';
            position: absolute;
            inset: 0;
            /* Dark gradient overlay so white text stays legible over any photo, on any screen size */
            background: linear-gradient(
                135deg,
                rgba(8, 18, 38, 0.82) 0%,
                rgba(10, 30, 22, 0.6) 50%,
                rgba(8, 18, 38, 0.85) 100%
            );
            z-index: 1;
        }

        .hero-slide-bg.active {
            opacity: 1;
            z-index: 1;
        }

        .hero-content {
            position: relative;
            z-index: 10;
            max-width: 1152px;
            margin: 0 auto;
            text-align: center;
        }

        /* Carousel Dots */
        .carousel-dots {
            position: absolute;
            bottom: 3rem;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 1rem;
            z-index: 10;
        }

        .carousel-dot {
            position: relative;
            width: 10px;
            height: 10px;
            border-radius: 9999px;
            background: rgba(255, 255, 255, 0.4);
            border: 2px solid rgba(255, 255, 255, 0.7);
            overflow: hidden;
            cursor: pointer;
            transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s, border-color 0.3s;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        }

        .carousel-dot.active {
            width: 40px;
            background: rgba(255, 255, 255, 0.15);
            border-color: rgba(74, 222, 128, 0.7);
            box-shadow: 0 4px 16px rgba(22, 163, 74, 0.4), 0 2px 8px rgba(0, 0, 0, 0.2);
        }

        .carousel-dot:hover {
            border-color: #4ade80;
            transform: scale(1.15);
        }

        .carousel-dot.active:hover {
            transform: none;
        }

        .carousel-dot-progress {
            position: absolute;
            inset: 0;
            width: 0%;
            background: linear-gradient(to right, #4ade80, #16a34a);
            border-radius: 9999px;
        }

        .hero h1 {
            font-size: clamp(2.5rem, 5.5vw, 5rem);
            font-weight: 900;
            margin-bottom: 1.5rem;
            line-height: 1.15;
            letter-spacing: -1.5px;
            color: #ffffff;
            max-width: 920px;
            margin-left: auto;
            margin-right: auto;
            text-shadow: 0 4px 24px rgba(0, 0, 0, 0.55) !important;
        }

        .hero-highlight {
            background: linear-gradient(to right, #4ade80, #86efac, #16a34a);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            filter: drop-shadow(0 2px 10px rgba(74, 222, 128, 0.35));
        }

        .gradient-text {
            color: #14532d;
            text-shadow:
                0 2px 8px rgba(255, 255, 255, 0.95),
                0 4px 16px rgba(255, 255, 255, 0.8),
                0 1px 3px rgba(0, 0, 0, 0.1);
        }

        .hero-description {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: #dbe9e0;
    line-height: 1.7;
    font-weight: 400;

    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);

    max-width: 720px;
    margin: 0 auto 2.75rem;
}


        .hero-cta {
            margin-top: 0.5rem;
            font-size: 1.05rem;
            padding: 0.85rem 2.25rem;
        }

        /* Smooth crossfade between rotating hero themes — a single keyframe
           animation drives each phase so it never races a CSS transition
           on the same properties (that double-drive was the flicker source). */
        .hero-content-out {
            animation: heroContentOut 0.28s ease forwards;
        }

        .hero-content-in {
            animation: heroContentIn 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
        }

        @keyframes heroContentOut {
            from { opacity: 1; transform: translateY(0); }
            to   { opacity: 0; transform: translateY(-8px); }
        }

        @keyframes heroContentIn {
            from { opacity: 0; transform: translateY(14px); }
            to   { opacity: 1; transform: translateY(0); }
        }

        /* Plays once on a section's content when nav brings you to it,
           so arriving (especially via the instant long-jump) still feels
           like a deliberate, gentle entrance rather than a hard cut. */
        .nav-target-reveal {
            animation: navTargetReveal 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
        }

        @keyframes navTargetReveal {
            from { opacity: 0; transform: translateY(28px); }
            to   { opacity: 1; transform: translateY(0); }
        }

        /* Prev / Next arrows */
        .hero-arrow {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            z-index: 10;
            width: 48px;
            height: 48px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(8, 18, 38, 0.45);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            border: 1px solid rgba(255, 255, 255, 0.25);
            border-radius: 50%;
            color: #fff;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .hero-arrow:hover {
            background: rgba(74, 222, 128, 0.35);
            border-color: #4ade80;
            transform: translateY(-50%) scale(1.12);
            box-shadow: 0 8px 24px rgba(74, 222, 128, 0.35);
        }

        .hero-arrow:active {
            transform: translateY(-50%) scale(0.96);
        }

        .hero-arrow i {
            width: 24px;
            height: 24px;
        }

        .hero-arrow-prev { left: 1.5rem; }
        .hero-arrow-next { right: 1.5rem; }

        /* Section Styles */
        section {
            position: relative;
            padding: 6rem 1.5rem;
            scroll-margin-top: 90px; /* keeps the fixed navbar from covering the section top on direct anchor jumps */
        }

        .section-container {
            max-width: 1280px;
            margin: 0 auto;
            position: relative;
            z-index: 2;
        }

        .section-badge {
            display: inline-block;
            padding: 0.6rem 1.25rem;
            background: rgba(30, 58, 95, 0.4);
            border: 1px solid rgba(74, 222, 128, 0.4);
            border-radius: 9999px;
            color: #ffffff;
            font-size: 1rem;
            font-weight: 600;
            margin-bottom: 1rem;
            backdrop-filter: blur(10px);
            letter-spacing: 0.5px;
        }

        .section-title {
            font-size: clamp(2rem, 4vw, 3rem);
            font-weight: 800;
            margin-bottom: 1rem;
            letter-spacing: -1px;
        }

        .section-description {
            font-size: clamp(1rem, 2vw, 1.25rem);
            color: #94a3b8;
            max-width: 768px;
            margin: 0 auto 4rem;
            line-height: 1.7;
        }

        /* Cards */
        .card {
            background: linear-gradient(135deg, rgba(30, 58, 95, 0.4), rgba(21, 128, 61, 0.2));
            backdrop-filter: blur(16px);
            border: 1px solid rgba(74, 222, 128, 0.3);
            border-radius: 1rem;
            overflow: hidden;
            transition: all 0.4s;
            height: 100%;
        }

        .card:hover {
            border-color: rgba(74, 222, 128, 0.7);
            transform: translateY(-10px);
            box-shadow: 0 20px 50px rgba(34, 197, 94, 0.3);
            background: linear-gradient(135deg, rgba(30, 58, 95, 0.6), rgba(21, 128, 61, 0.3));
        }

        .card-image {
            width: 100%;
            height: 200px;
            object-fit: cover;
            transition: transform 0.4s;
        }

        .card:hover .card-image {
            transform: scale(1.1);
        }

        .card-content {
            padding: 2rem;
        }

        .card-title {
            font-size: 1.75rem;
            font-weight: 700;
            color: #fff;
            margin-bottom: 1rem;
            line-height: 1.3;
        }

        .card-text {
            color: #cbd5e1;
            line-height: 1.7;
            margin-bottom: 1.5rem;
            font-size: 1.05rem;
        }

        .card-list {
            list-style: none;
        }

        .card-list li {
            display: flex;
            align-items: start;
            gap: 0.75rem;
            margin-bottom: 0.875rem;
            color: #94a3b8;
            font-size: 1rem;
            line-height: 1.6;
        }

        .card-list li::before {
            content: '✓';
            color: #4ade80;
            font-weight: bold;
            flex-shrink: 0;
        }

        /* Grid Layouts */
        .grid-2 {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
        }

        .grid-3 {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 2rem;
        }

        /* Impact Gallery */
        .impact-gallery {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
            margin-top: 3rem;
        }

        .impact-image {
            position: relative;
            border-radius: 1rem;
            overflow: hidden;
            height: 300px;
            cursor: pointer;
            transition: all 0.4s;
            border: 1px solid rgba(74, 222, 128, 0.3);
        }

        .impact-image:hover {
            transform: scale(1.05) rotate(1deg);
            border-color: #4ade80;
            box-shadow: 0 20px 50px rgba(34, 197, 94, 0.4);
        }

        .impact-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.4s;
        }

        .impact-image:hover img {
            transform: scale(1.15);
        }

        .impact-image::before {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(to top, rgba(10, 22, 40, 0.9), rgba(30, 58, 95, 0.5));
            z-index: 1;
        }

        .impact-caption {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            padding: 1.5rem;
            color: white;
            z-index: 2;
        }

        .impact-caption h3 {
            font-size: 1.5rem;
            margin-bottom: 0.75rem;
            color: #fff;
            font-weight: 700;
        }

        .impact-caption p {
            font-size: 1.05rem;
            color: #cbd5e1;
            line-height: 1.6;
        }

        /* Special Sections */
        .membership-benefits {
            background: linear-gradient(135deg, rgba(30, 58, 95, 0.5), rgba(21, 128, 61, 0.2));
            backdrop-filter: blur(16px);
            border: 1px solid rgba(74, 222, 128, 0.4);
            border-radius: 1.5rem;
            padding: 4rem 3rem;
            margin-bottom: 4rem;
        }

        .benefit-card {
            background: rgba(10, 22, 40, 0.5);
            border: 1px solid rgba(74, 222, 128, 0.3);
            border-radius: 1rem;
            padding: 2rem;
            transition: all 0.3s;
            backdrop-filter: blur(10px);
        }

        .benefit-card:hover {
            background: rgba(30, 58, 95, 0.5);
            border-color: #4ade80;
            transform: translateY(-5px);
            box-shadow: 0 10px 30px rgba(34, 197, 94, 0.3);
        }

        /* Info Box */
        .info-box {
            background: linear-gradient(135deg, rgba(30, 58, 95, 0.5), rgba(21, 128, 61, 0.2));
            backdrop-filter: blur(16px);
            border: 1px solid rgba(74, 222, 128, 0.4);
            border-radius: 1.5rem;
            padding: 3rem;
            text-align: center;
        }

        .info-icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 80px;
            height: 80px;
            background: linear-gradient(135deg, #22c55e, #15803d);
            border-radius: 50%;
            margin-bottom: 2rem;
            box-shadow: 0 10px 30px rgba(34, 197, 94, 0.4);
        }

        /* Contact Form */
        .contact-form {
            max-width: 900px;
            margin: 0 auto;
            background: linear-gradient(135deg, rgba(30, 58, 95, 0.5), rgba(21, 128, 61, 0.2));
            backdrop-filter: blur(16px);
            border: 1px solid rgba(74, 222, 128, 0.3);
            border-radius: 1.5rem;
            padding: 3rem;
        }

        .form-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 1.5rem;
            margin-bottom: 1.5rem;
        }

        .form-group {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }

        .form-group label {
            color: #4ade80;
            font-size: 1rem;
            font-weight: 600;
        }

        .form-group input,
        .form-group textarea,
        .form-group select {
            background: rgba(10, 22, 40, 0.5);
            border: 1px solid rgba(74, 222, 128, 0.3);
            border-radius: 0.5rem;
            padding: 0.875rem 1.25rem;
            color: #fff;
            font-family: 'Poppins', sans-serif;
            transition: all 0.3s;
            font-size: 1rem;
        }

        .form-group input:focus,
        .form-group textarea:focus,
        .form-group select:focus {
            outline: none;
            border-color: #4ade80;
            box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.2);
            background: rgba(30, 58, 95, 0.4);
        }

        .form-group textarea {
            min-height: 120px;
            resize: vertical;
        }

        .form-group-full {
            grid-column: 1 / -1;
        }

        .submit-button {
            width: 100%;
            padding: 1rem;
            background: linear-gradient(to right, #16a34a, #15803d);
            border: none;
            border-radius: 0.5rem;
            color: #fff;
            font-weight: 600;
            font-size: 1rem;
            cursor: pointer;
            transition: all 0.3s;
            box-shadow: 0 4px 15px rgba(22, 163, 74, 0.3);
        }

        .submit-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 30px rgba(34, 197, 94, 0.5);
        }

        /* Footer */
        footer {
            background: linear-gradient(to bottom, green, #060f1a);
            border-top: 1px solid rgba(74, 222, 128, 0.2);
            padding: 4rem 1.5rem 2rem;
        }

        .footer-grid {
            max-width: 1280px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 3rem;
            margin-bottom: 3rem;
        }

        .footer-section h4 {
            color: #4ade80;
            font-size: 1.25rem;
            margin-bottom: 1.5rem;
            font-weight: 700;
        }

        .footer-text {
            color:#ffffff;
            line-height: 1.8;
            margin-bottom: 1.5rem;
            font-size: 1rem;
        }

        .footer-links {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .footer-links a {
            color:#ffffff;
            text-decoration: none;
            transition: all 0.3s;
            font-size: 1rem;
        }

        .footer-links a:hover {
            color: #4ade80;
            padding-left: 5px;
        }

        .office-card {
            background: rgba(30, 58, 95, 0.3);
            border: 1px solid rgba(74, 222, 128, 0.2);
            border-radius: 1rem;
            padding: 1.5rem;
            margin-bottom: 1.5rem;
            transition: all 0.3s;
        }

        .office-card:hover {
            background: rgba(30, 58, 95, 0.5);
            border-color: #4ade80;
            transform: translateY(-3px);
        }

        .office-name {
            color: #fff;
            font-weight: 700;
            margin-bottom: 0.5rem;
            font-size: 1.1rem;
        }

        .contact-person {
            color: #86efac;
            font-size: 1rem;
            margin-bottom: 1rem;
        }

        .contact-item {
            display: flex;
            align-items: start;
            gap: 0.75rem;
            margin-bottom: 0.75rem;
            color:#ffffff;
            font-size: 1rem;
        }

        .contact-item i {
            color: #4ade80;
            flex-shrink: 0;
        }

        .footer-bottom {
            text-align: center;
            padding-top: 2rem;
            border-top: 1px solid rgba(74, 222, 128, 0.2);
            color: #64748b;
            font-size: 1rem;
        }

        /* Animations */
        @keyframes pulse {
            0%, 100% {
                opacity: 0.3;
            }
            50% {
                opacity: 0.5;
            }
        }

        /* News Date */
        .news-date {
            display: inline-block;
            background: rgba(30, 58, 95, 0.5);
            color: #4ade80;
            padding: 0.5rem 1.25rem;
            border-radius: 20px;
            font-size: 0.95rem;
            font-weight: 600;
            margin-bottom: 1rem;
            border: 1px solid rgba(74, 222, 128, 0.4);
        }

        /* Responsive */
        @media (min-width: 768px) {
            .nav-menu {
                display: flex !important;
            }

            .mobile-menu-btn {
                display: none !important;
            }

            .logo {
                margin-left: 0;
            }
        }

       @media (max-width: 767px) {
    .nav-menu {
        display: none !important;
    }

    .hero-arrow {
        display: none;
    }

    .mobile-menu-btn {
        display: flex !important;
    }

    .logo {
        margin-left: auto;
        margin-right: 0;
    }

    .nav-container {
        justify-content: flex-start;
    }

            section {
                padding: 4rem 1.5rem;
            }

            .contact-form {
                padding: 2.5rem 1.5rem;
            }

            .impact-image {
                height: 250px;
            }

            .carousel-dots {
                bottom: 2rem;
            }

            .membership-benefits {
                padding: 2.5rem 1.5rem;
            }
            
            .card-title {
                font-size: 1.5rem;
            }
            
            .benefit-card h3 {
                font-size: 1.3rem !important;
            }
        }
        
    h1, h2, h3, h4, h5, h6,
.gradient-text {
    color:#ffffff;
    text-shadow: none !important;
}

/* =========================
   MOBILE / SMALL DEVICE FIXES
   (Paste at the VERY END)
   ========================= */

/* Prevent random overflow on small screens */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Make ALL images responsive everywhere */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Fix for background-image slides (avoid weird cropping on some phones) */
.hero-slide-bg {
  background-position: center !important;
  background-size: cover !important;
}

/* Make nav not squeeze content */
@media (max-width: 767px) {
  nav {
    padding-left: 0;
    padding-right: 0;
  }

  .nav-container {
    padding: 0.9rem 1rem;
  }

  .logo-text h1 {
    font-size: 1.1rem;
    line-height: 1.1;
    white-space: nowrap;
  }

  .logo-text p {
    font-size: 0.7rem;
    line-height: 1.1;
  }

  /* HERO: ensure content fits screen height and doesn't hide behind nav */
  .hero {
    min-height: 100svh;              /* better than 100vh on mobile browsers */
    padding: 6.5rem 1rem 3.5rem;     /* extra top space for fixed nav */
  }

  .hero-content {
    width: 100%;
    max-width: 100%;
  }

  .hero h1 {
    font-size: clamp(1.75rem, 7.5vw, 2.5rem);
    margin-bottom: 1.1rem;
    line-height: 1.22;
    word-break: keep-all;
  }

  .hero-description {
    margin-bottom: 1.75rem;
    font-size: 1rem;
    line-height: 1.65;
  }

  .hero-cta {
    font-size: 1rem;
    padding: 0.75rem 1.75rem;
  }

  /* Cards + images: prevent overflow, keep images clean */
  .grid-2,
  .grid-3,
  .impact-gallery {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .card-content {
    padding: 1.5rem;
  }

  .card-image {
    height: 190px;          /* better fit on phones */
    object-fit: cover;
  }

  .impact-image {
    height: 240px;
  }

  .impact-image img {
    object-fit: cover;
  }

  /* Carousel dots: keep visible and clickable */
  .carousel-dots {
    bottom: 1.25rem;
    gap: 0.6rem;
  }

  /* Forms: ensure inputs don't overflow and remain readable */
  .contact-form {
    padding: 2rem 1.25rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-group input,
  .form-group textarea,
  .form-group select {
    width: 100%;
  }

  /* Reduce blur cost on very small devices (performance) */
  .mobile-menu-overlay {
    backdrop-filter: blur(6px);
  }
}

/* Extra small phones (<= 380px) */
@media (max-width: 380px) {
  .hero {
    padding: 6.25rem 0.9rem 3.25rem;
  }

  .hero h1 {
    font-size: 1.6rem;
  }
}
