
 :root {
            --sky-blue: #47bff9;
            --deep-blue: #186d95;
            --maroon: #9d2a09;
            --light-gray: #f8f9fa;
            --medium-gray: #e9ecef;
            --dark-gray: #495057;
            --white: #ffffff;
            --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
            --border-radius: 8px;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Poppins', sans-serif;
            line-height: 1.6;
            color: var(--dark-gray);
            background-color: var(--white);
            overflow-x: hidden;
        }
        
        h1, h2, h3, h4, h5 {
            font-family: 'Merriweather', serif;
            font-weight: 600;
            color: var(--deep-blue);
            margin-bottom: 1rem;
        }
        
        h1 {
            font-size: 2.8rem;
            line-height: 1.2;
        }
        
        h2 {
            font-size: 2.2rem;
            position: relative;
            padding-bottom: 0.5rem;
        }
        
        h2:after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 60px;
            height: 3px;
            background-color: var(--maroon);
            transform: scaleX(0);
            transform-origin: left;
            transition: transform 0.8s ease;
        }
        
        .animated h2:after {
            transform: scaleX(1);
        }
        
        .container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }
        
        .btn {
            display: inline-block;
            padding: 12px 28px;
            border-radius: var(--border-radius);
            font-weight: 600;
            text-decoration: none;
            transition: all 0.3s ease;
            cursor: pointer;
            border: none;
            font-family: 'Poppins', sans-serif;
            font-size: 1rem;
            transform: translateY(0);
        }
        
        .btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        }
        
        .btn-primary {
            background-color: var(--sky-blue);
            color: var(--white);
        }
        
        .btn-primary:hover {
            background-color: var(--deep-blue);
        }
        
        .btn-secondary {
            background-color: var(--maroon);
            color: var(--white);
        }
        
        .btn-secondary:hover {
            background-color: #7a2107;
        }
        
        .btn-outline {
            background-color: transparent;
            color: var(--deep-blue);
            border: 2px solid var(--deep-blue);
        }
        
        .btn-outline:hover {
            background-color: var(--deep-blue);
            color: var(--white);
        }
        
        /* Header & Navigation */
        header {
            background-color: var(--white);
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            position: sticky;
            top: 0;
            z-index: 1000;
            transform: translateY(0);
            transition: transform 0.25s ease, background-color 0.25s ease;
        }
        
        header.scrolled {
            background-color: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
        }

        /* Ensure mobile menu button receives clicks above other elements */
        .mobile-menu-btn {
            position: relative !important;
            z-index: 99999 !important;
            pointer-events: auto !important;
            background: transparent;
        }
        
        .header-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 20px;
        }
        
        .logo {
            display: flex;
            align-items: center;
        }
        
        .logo-img {
            height: 50px;
            margin-right: 12px;
            /* kept for backward compatibility */
        }
        .logo-image {
            height: 64px; /* increased for better presence */
            width: auto;
            object-fit: contain;
            display: block;
        }
        
        /* Reduce logo size on small screens */
        @media (max-width: 768px) {
            .logo-image {
                height: 48px; /* slightly larger on mobile for readability */
            }

            /* Show and style mobile menu button */
            .mobile-menu-btn {
                display: block;
                font-size: 1.8rem;
                margin-left: auto;
                background: transparent;
                border: none;
                padding: 8px;
                line-height: 1;
            }

            /* Mobile navigation: hidden by default and shown when active */
            #mainNav {
                display: none;
                position: absolute;
                top: 72px;
                right: 20px;
                background: var(--white);
                width: calc(100% - 40px);
                border-radius: 10px;
                box-shadow: var(--shadow);
                padding: 12px 16px;
                z-index: 99998;
                transform-origin: top right;
                opacity: 0;
                transform: translateY(-6px);
                transition: opacity 160ms ease, transform 160ms ease;
            }

            /* When mobile menu is toggled open */
            #mainNav.active {
                display: block;
                opacity: 1;
                transform: translateY(0);
            }

            /* Stack links vertically and adjust spacing */
            #mainNav li {
                margin: 10px 0;
            }

            #mainNav li a {
                display: block;
                padding: 10px 8px;
                color: var(--deep-blue);
                font-size: 1.05rem;
            }
        }
        
        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.05); }
            100% { transform: scale(1); }
        }
        
        .logo-text {
            font-family: 'Merriweather', serif;
            font-weight: 700;
            font-size: 1.6rem;
            color: var(--deep-blue);
        }
        
        .logo-text span {
            color: var(--maroon);
        }
        
        nav {
            margin-left: auto;
            display: flex;
            align-items: center;
        }

        nav ul {
            display: flex;
            list-style: none;
        }
        
        nav ul li {
            margin-left: 32px; /* increased spacing between links */
            position: relative;
        }
        
        nav ul li a {
            text-decoration: none;
            color: var(--deep-blue);
            font-weight: 600; /* slightly bolder for emphasis */
            transition: color 0.3s;
            font-size: 1.1rem; /* increased font size for readability */
            position: relative;
        }
        
        nav ul li a:after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 2px;
            background-color: var(--sky-blue);
            transition: width 0.3s ease;
        }
        
        nav ul li a:hover:after {
            width: 100%;
        }
        
        nav ul li a:hover {
            color: var(--sky-blue);
        }
        
        .mobile-menu-btn {
            display: none;
            background: none;
            border: none;
            font-size: 1.5rem;
            color: var(--deep-blue);
            cursor: pointer;
        }
        
        /* Hero Section */
        .hero {
            background: linear-gradient(rgba(24, 109, 149, 0.85), rgba(24, 109, 149, 0.9)), url('images/hero image.jpg');
            background-size: cover;
            background-position: center;
            color: var(--white);
            /* increased top padding so sticky header does not overlap the hero */
            padding: 160px 0 120px;
            text-align: center;
            overflow: hidden;
            position: relative;
        }
        
        .hero:before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.1) 100%);
            z-index: 1;
        }
        
        .hero .container {
            position: relative;
            z-index: 2;
        }
        
        .hero h1 {
            color: var(--white);
            font-size: 3.2rem;
            margin-bottom: 1.5rem;
            opacity: 0;
            transform: translateY(30px);
            animation: fadeInUp 0.25s ease forwards;
        }
        
        .hero p {
            font-size: 1.2rem;
            max-width: 800px;
            margin: 0 auto 2.5rem;
            opacity: 0;
            transform: translateY(30px);
            animation: fadeInUp 0.25s ease 0.02s forwards;
        }
        
        .hero-btns {
            display: flex;
            justify-content: center;
            gap: 20px;
            flex-wrap: wrap;
            opacity: 0;
            transform: translateY(30px);
            animation: fadeInUp 0.25s ease 0.04s forwards;
        }

        /* Add explicit spacing below hero so the About preview is positioned lower */
        .hero {
            margin-bottom: 64px; /* ensures clear separation */
        }

        .hero + section {
            margin-top: 48px; /* extra breathing room for the About section */
        }

        @media (max-width: 992px) {
            .hero {
                margin-bottom: 48px;
            }

            .hero + section {
                margin-top: 36px;
            }
        }

        @media (max-width: 768px) {
            .hero {
                margin-bottom: 32px;
            }

            .hero + section {
                margin-top: 24px;
            }
        }
        
        /* Animation Keyframes */
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        
        @keyframes fadeInUp {
            from { 
                opacity: 0;
                transform: translateY(30px);
            }
            to { 
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        @keyframes fadeInLeft {
            from { 
                opacity: 0;
                transform: translateX(-30px);
            }
            to { 
                opacity: 1;
                transform: translateX(0);
            }
        }
        
        @keyframes fadeInRight {
            from { 
                opacity: 0;
                transform: translateX(30px);
            }
            to { 
                opacity: 1;
                transform: translateX(0);
            }
        }
        
        @keyframes scaleIn {
            from { 
                opacity: 0;
                transform: scale(0.9);
            }
            to { 
                opacity: 1;
                transform: scale(1);
            }
        }
        
        @keyframes float {
            0% { transform: translateY(0); }
            50% { transform: translateY(-10px); }
            100% { transform: translateY(0); }
        }
        
        /* Sections */
        section {
            padding: 80px 0;
            overflow: hidden;
        }
        
        .section-title {
            text-align: center;
            margin-bottom: 3rem;
            opacity: 0;
            transform: translateY(20px);
            transition: opacity 0.25s ease, transform 0.25s ease;
        }
        
        .section-title.animated {
            opacity: 1;
            transform: translateY(0);
        }
        
        .section-title h2 {
            display: inline-block;
        }
        
        .section-title h2:after {
            left: 50%;
            transform: translateX(-50%) scaleX(0);
        }
        
        .section-title.animated h2:after {
            transform: translateX(-50%) scaleX(1);
        }
        
        .section-subtitle {
            text-align: center;
            color: var(--dark-gray);
            max-width: 700px;
            margin: 0 auto 3rem;
            font-size: 1.1rem;
            opacity: 0;
            transform: translateY(20px);
            transition: opacity 0.25s ease 0.02s, transform 0.25s ease 0.02s;
        }
        
        .section-subtitle.animated {
            opacity: 1;
            transform: translateY(0);
        }
        
        /* About Section */
        .about-content {
            display: flex;
            align-items: center;
            gap: 50px;
            margin-top: 40px; /* added spacing from header */
            margin-bottom: 60px;
        }
        
        .about-text {
            flex: 1;
            opacity: 0;
            transform: translateX(-30px);
            transition: opacity 0.25s ease, transform 0.25s ease;
        }
        
        .about-text.animated {
            opacity: 1;
            transform: translateX(0);
        }
        
        .about-img {
            flex: 1;
            border-radius: var(--border-radius);
            overflow: hidden;
            box-shadow: var(--shadow);
            opacity: 0;
            transform: translateX(30px);
            transition: opacity 0.25s ease, transform 0.25s ease;
        }
        
        .about-img.animated {
            opacity: 1;
            transform: translateX(0);
        }
        
        .about-img img {
            width: 100%;
            height: auto;
            display: block;
            transition: transform 0.5s ease;
        }
        
        .about-img:hover img {
            transform: scale(1.05);
        }
        
        /* Mission & Vision */
        .mission-vision {
            background-color: var(--light-gray);
        }
        
        .mv-cards {
            display: flex;
            gap: 30px;
            margin-top: 40px;
        }
        
        .mv-card {
            flex: 1;
            background-color: var(--white);
            padding: 30px;
            border-radius: var(--border-radius);
            box-shadow: var(--shadow);
            text-align: center;
            transition: transform 0.5s ease;
            opacity: 0;
            transform: translateY(30px);
        }
        
        .mv-card.animated {
            opacity: 1;
            transform: translateY(0);
        }
        
        .mv-card:hover {
            transform: translateY(-10px);
        }
        
        .mv-icon {
            font-size: 2.5rem;
            color: var(--sky-blue);
            margin-bottom: 20px;
            display: inline-block;
            animation: float 3s ease-in-out infinite;
        }
        
        /* Programs */
        .programs-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 30px;
            margin-top: 40px;
        }
        
        .program-card {
            background-color: var(--white);
            border-radius: var(--border-radius);
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: transform 0.5s ease;
            opacity: 0;
            transform: translateY(30px);
        }
        
        .program-card.animated {
            opacity: 1;
            transform: translateY(0);
        }
        
        .program-card:hover {
            transform: translateY(-10px);
        }
        
        .program-img {
            height: 200px;
            width: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }
        
        .program-card:hover .program-img {
            transform: scale(1.05);
        }
        
        .program-content {
            padding: 25px;
        }
        
        /* Impact Stats */
        .impact-stats {
            background-color: var(--deep-blue);
            color: var(--white);
            padding: 60px 0;
        }
        
        .stats-container {
            display: flex;
            justify-content: space-around;
            text-align: center;
            flex-wrap: wrap;
        }
        
        .stat-item {
            padding: 20px;
            opacity: 0;
            transform: scale(0.8);
        }
        
        .stat-item.animated {
            opacity: 1;
            transform: scale(1);
        }
        
        .stat-number {
            font-size: 3rem;
            font-weight: 700;
            margin-bottom: 10px;
            color: var(--sky-blue);
        }
        
        .counter {
            display: inline-block;
        }
        
        /* Testimonials */
        .testimonial-slider {
            max-width: 800px;
            margin: 0 auto;
            position: relative;
            overflow: hidden;
            opacity: 0;
            transform: translateY(30px);
            transition: opacity 0.25s ease, transform 0.25s ease;
        }
        
        .testimonial-slider.animated {
            opacity: 1;
            transform: translateY(0);
        }
        
        .testimonial {
            background-color: var(--white);
            padding: 40px;
            border-radius: var(--border-radius);
            box-shadow: var(--shadow);
            text-align: center;
            margin: 20px;
            box-sizing: border-box;
        }

        /* Carousel layout */
        .testimonial-slider .slides {
            display: flex;
            transition: transform 0.6s ease;
            will-change: transform;
            align-items: center;
        }

        .testimonial {
            min-width: 100%;
            margin: 0;
            padding: 40px 20px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            box-sizing: border-box;
        }

        .testimonial-text {
            font-style: italic;
            font-size: 1.1rem;
            margin-bottom: 20px;
        }

        .testimonial-author {
            font-weight: 600;
            color: var(--deep-blue);
        }

        .testimonial-program {
            color: var(--medium-gray);
            font-size: 0.95rem;
        }

        .testimonial-controls {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 12px;
            margin-top: 16px;
        }

        .testimonial-prev,
        .testimonial-next {
            background: var(--white);
            border: 1px solid var(--medium-gray);
            padding: 8px 12px;
            border-radius: 6px;
            cursor: pointer;
            color: var(--deep-blue);
            font-size: 1.2rem;
        }

        .testimonial-dots {
            display: flex;
            gap: 8px;
        }

        .testimonial-dots button {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            border: none;
            background: var(--medium-gray);
            cursor: pointer;
            opacity: 0.7;
        }

        .testimonial-dots button.active {
            background: var(--sky-blue);
            opacity: 1;
        }

        @media (max-width: 768px) {
            .testimonial {
                padding: 28px;
            }
            .testimonial-prev,
            .testimonial-next {
                padding: 8px 10px;
            }
        }
        
        /* Book Store */
        .book-feature {
            display: flex;
            gap: 50px;
            align-items: center;
            margin-bottom: 60px;
        }
        
        .book-cover {
            flex: 1;
            max-width: 300px;
            box-shadow: var(--shadow);
            border-radius: var(--border-radius);
            overflow: hidden;
            opacity: 0;
            transform: translateX(-30px);
            transition: opacity 0.25s ease, transform 0.25s ease;
        }
        
        .book-cover.animated {
            opacity: 1;
            transform: translateX(0);
        }
        
        .book-cover img {
            width: 100%;
            height: auto;
            display: block;
            transition: transform 0.5s ease;
        }
        
        .book-cover:hover img {
            transform: scale(1.05);
        }
        
        .book-details {
            flex: 2;
            opacity: 0;
            transform: translateX(30px);
            transition: opacity 0.25s ease, transform 0.25s ease;
        }
        
        .book-details.animated {
            opacity: 1;
            transform: translateX(0);
        }

        /* Make book section clearly visible and improve contrast */
        .book-main {
            background-color: var(--light-gray);
            padding: 32px 20px;
            border-radius: 12px;
            margin: 48px 0 24px; /* add top margin so section sits below the page header */
        }

        @media (max-width: 768px) {
            .book-main {
                margin-top: 32px; /* slightly smaller gap on small screens */
            }
        }

        /* Override any animation hiding so content is immediately visible */
        .book-main .book-cover,
        .book-main .book-details {
            opacity: 1 !important;
            transform: none !important;
        }
        
        .book-title {
            color: var(--maroon);
            font-size: 2.5rem;
            margin-bottom: 10px;
        }
        
        .price {
            font-size: 1.8rem;
            font-weight: 700;
            color: var(--deep-blue);
            margin: 20px 0;
        }
        
        /* Contact Form */
        .contact-container {
            display: flex;
            gap: 50px;
        }
        
        .contact-form {
            flex: 1;
            opacity: 0;
            transform: translateX(-30px);
            transition: opacity 0.25s ease, transform 0.25s ease;
        }
        
        .contact-form.animated {
            opacity: 1;
            transform: translateX(0);
        }
        
        .contact-info {
            flex: 1;
            background-color: var(--light-gray);
            padding: 30px;
            border-radius: var(--border-radius);
            opacity: 0;
            transform: translateX(30px);
            transition: opacity 0.25s ease, transform 0.25s ease;
        }
        
        .contact-info.animated {
            opacity: 1;
            transform: translateX(0);
        }
        
        .form-group {
            margin-bottom: 20px;
            opacity: 0;
            transform: translateY(20px);
        }
        
        .form-group.animated {
            opacity: 1;
            transform: translateY(0);
        }
        
        .form-control {
            width: 100%;
            padding: 12px 15px;
            border: 1px solid var(--medium-gray);
            border-radius: var(--border-radius);
            font-family: 'Poppins', sans-serif;
            font-size: 1rem;
            transition: border-color 0.3s ease, box-shadow 0.3s ease;
        }
        
        .form-control:focus {
            outline: none;
            border-color: var(--sky-blue);
            box-shadow: 0 0 0 3px rgba(71, 191, 249, 0.2);
        }
        
        /* Footer */
        footer {
            background-color: var(--deep-blue);
            color: var(--white);
            padding: 60px 0 20px;
        }
        
        .footer-content {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            margin-bottom: 40px;
        }
        
        .footer-column {
            flex: 1;
            min-width: 250px;
            margin-bottom: 30px;
            padding-right: 20px;
            /* Make visible by default */
            opacity: 1;
            transform: none;
            transition: opacity 0.8s ease, transform 0.8s ease;
        }
        
        .footer-column.animated {
            opacity: 1;
            transform: none;
        }
        
        .footer-column h3 {
            color: var(--white);
            margin-bottom: 20px;
            font-size: 1.3rem;
        }
        
        .footer-links {
            list-style: none;
        }
        
        .footer-links li {
            margin-bottom: 10px;
            /* Visible by default */
            opacity: 1;
            transform: none;
        }
        
        .footer-links li.animated {
            opacity: 1;
            transform: none;
        }
        
        .footer-links a {
            color: rgba(255, 255, 255, 0.8);
            text-decoration: none;
            transition: color 0.3s, transform 0.3s;
            display: inline-block;
        }
        
        .footer-links a:hover {
            color: var(--sky-blue);
            transform: translateX(5px);
        }
        
        .social-icons {
            display: flex;
            gap: 15px;
            margin-top: 20px;
        }
        
        .social-icons a {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            background-color: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            color: var(--white);
            text-decoration: none;
            transition: all 0.3s;
        }
        
        .social-icons a:hover {
            background-color: var(--sky-blue);
            transform: translateY(-3px) rotate(5deg);
        }
        
        .copyright {
            text-align: center;
            padding-top: 20px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            color: rgba(255, 255, 255, 0.7);
            font-size: 0.9rem;
        }
        
        /* Page Content Styles */
        .page-header {
            background-color: var(--deep-blue);
            color: var(--white);
            padding: 100px 0 60px;
            text-align: center;
            overflow: hidden;
        }
        
        .page-header h1 {
            color: var(--white);
            opacity: 0;
            transform: translateY(30px);
            animation: fadeInUp 0.25s ease forwards;
        }
        
        .page-header p {
            opacity: 0;
            transform: translateY(30px);
            animation: fadeInUp 0.25s ease 0.02s forwards;
        }
        
        /* Responsive Styles */
        @media (max-width: 992px) {
            h1 {
                font-size: 2.4rem;
            }
            
            h2 {
                font-size: 1.9rem;
            }
            
            .about-content, .book-feature, .contact-container {
                flex-direction: column;
                margin-top: 30px; /* prevent content from sitting too close to header on narrower screens */
            }
            
            .about-img, .book-cover {
                max-width: 100%;
            }
            
            .mv-cards {
                flex-direction: column;
            }
            
            .about-text, .about-img,
            .book-cover, .book-details,
            .contact-form, .contact-info {
                transform: translateY(20px) !important;
            }
            
            .about-text.animated, .about-img.animated,
            .book-cover.animated, .book-details.animated,
            .contact-form.animated, .contact-info.animated {
                transform: translateY(0) !important;
            }
        }
        
        @media (max-width: 768px) {
            /* Full-screen mobile menu overlay */
            nav ul {
                display: none;
                position: fixed;
                top: 0;
                left: 0;
                right: 0;
                height: 100vh;
                background-color: var(--white);
                flex-direction: column;
                padding: 80px 20px 20px;
                box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
                opacity: 0;
                transform: translateY(-6px);
                transition: opacity 200ms ease, transform 200ms ease;
                z-index: 9999;
                overflow-y: auto;
            }

            nav ul.active {
                display: flex;
                opacity: 1;
                transform: translateY(0);
            }

            nav ul li {
                margin: 10px 0;
            }

            .mobile-menu-btn {
                display: block;
                margin-left: auto;
                position: relative;
                z-index: 10001; /* above the menu button */
                pointer-events: auto;
            }

            /* Simple overlay behind menu to capture outside clicks */
            .menu-overlay {
                display: none;
                position: fixed;
                inset: 0;
                background: rgba(0,0,0,0.35);
                z-index: 9998;
                opacity: 0;
                transition: opacity 160ms ease;
            }

            body.menu-open .menu-overlay {
                display: block;
                opacity: 1;
            }

            body.menu-open {
                overflow: hidden; /* prevent background scroll when menu is open */
            }

            nav {
                margin-left: 0;
            }

            .hero {
                /* mobile: make room for sticky header + maintain visual balance */
                padding: 120px 0 80px;
            }

            /* Space for about text when in stacked layout on mobile */
            .about-content {
                margin-top: 24px;
            }

            .hero h1 {
                font-size: 2.2rem;
            }

            .hero-btns {
                flex-direction: column;
                align-items: center;
            }

            .hero-btns .btn {
                width: 100%;
                max-width: 300px;
                margin-bottom: 10px;
            }

            section {
                padding: 60px 0;
            }
        }
        
        /* Utility Classes */
        .text-center {
            text-align: center;
        }
        
        .mb-4 {
            margin-bottom: 2rem;
        }
        
        .mt-4 {
            margin-top: 2rem;
        }
        
        .py-4 {
            padding-top: 2rem;
            padding-bottom: 2rem;
        }
        
        .highlight {
            color: var(--maroon);
            font-weight: 600;
        }
        
        .card {
            background-color: var(--white);
            border-radius: var(--border-radius);
            padding: 30px;
            box-shadow: var(--shadow);
            opacity: 0;
            transform: translateY(30px);
            transition: opacity 0.8s ease, transform 0.8s ease;
        }
        
        .card.animated {
            opacity: 1;
            transform: translateY(0);
        }
        
        /* Page Navigation */
        .page-nav {
            display: none;
        }
        
        /* Tab Content */
        .tab-content {
            display: none;
            animation: fadeIn 0.5s ease forwards;
        }
        
        .tab-content.active {
            display: block;
        }
        
        /* Loading Animation */
        .loader {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: var(--white);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 9999;
            transition: opacity 0.5s ease, visibility 0.5s ease;
        }
        
        .loader.hidden {
            opacity: 0;
            visibility: hidden;
        }
        
        .spinner {
            width: 50px;
            height: 50px;
            border: 5px solid var(--light-gray);
            border-top-color: var(--sky-blue);
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }
        
        @keyframes spin {
            to { transform: rotate(360deg); }
        }
        
        /* Back to Top Button */
        .back-to-top {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 50px;
            height: 50px;
            background-color: var(--maroon);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            cursor: pointer;
            z-index: 100;
            opacity: 0;
            transform: translateY(20px);
            transition: all 0.3s ease;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        }
        
        .back-to-top.visible {
            opacity: 1;
            transform: translateY(0);
        }
        
        .back-to-top:hover {
            background-color: var(--deep-blue);
            transform: translateY(-5px);
        }
        
        /* Animation Delay Classes */
        .delay-1 { transition-delay: 0.02s; }
        .delay-2 { transition-delay: 0.04s; }
        .delay-3 { transition-delay: 0.06s; }
        .delay-4 { transition-delay: 0.08s; }
        .delay-5 { transition-delay: 0.10s; }
        .delay-6 { transition-delay: 0.12s; }
        .delay-7 { transition-delay: 0.14s; }
        .delay-8 { transition-delay: 0.16s; }

        /* Toast Notification */
        .toast {
            position: fixed;
            bottom: 30px;
            right: 30px;
            background-color: rgba(0,0,0,0.85);
            color: var(--white);
            padding: 12px 18px;
            border-radius: 8px;
            box-shadow: 0 6px 18px rgba(0,0,0,0.2);
            z-index: 2000;
            transform: translateY(20px);
            opacity: 0;
            transition: opacity 0.3s ease, transform 0.3s ease;
            display: none;
            font-weight: 500;
        }
        .toast.show {
            display: block;
            opacity: 1;
            transform: translateY(0);
        }





        /* ABOUT US STYLES */
        :root {
            --sky-blue: #47bff9;
            --deep-blue: #186d95;
            --maroon: #9d2a09;
            --light-gray: #f8f9fa;
            --medium-gray: #e9ecef;
            --dark-gray: #495057;
            --white: #ffffff;
            --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
            --border-radius: 8px;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Poppins', sans-serif;
            line-height: 1.6;
            color: var(--dark-gray);
            background-color: var(--white);
        }
        
        h1, h2, h3, h4, h5 {
            font-family: 'Merriweather', serif;
            font-weight: 600;
            color: var(--deep-blue);
            margin-bottom: 1rem;
        }
        
        h1 {
            font-size: 2.8rem;
            line-height: 1.2;
        }
        
        h2 {
            font-size: 2.2rem;
            position: relative;
            padding-bottom: 0.5rem;
        }
        
        h2:after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 60px;
            height: 3px;
            background-color: var(--maroon);
        }
        
        .container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }
        
        .btn {
            display: inline-block;
            padding: 12px 28px;
            border-radius: var(--border-radius);
            font-weight: 600;
            text-decoration: none;
            transition: all 0.3s ease;
            cursor: pointer;
            border: none;
            font-family: 'Poppins', sans-serif;
            font-size: 1rem;
        }
        
        .btn-primary {
            background-color: var(--sky-blue);
            color: var(--white);
        }
        
        .btn-primary:hover {
            background-color: var(--deep-blue);
            transform: translateY(-2px);
            box-shadow: var(--shadow);
        }
        
        .btn-secondary {
            background-color: var(--maroon);
            color: var(--white);
        }
        
        .btn-secondary:hover {
            background-color: #7a2107;
            transform: translateY(-2px);
            box-shadow: var(--shadow);
        }
        
        /* Header & Navigation */
        header {
            background-color: var(--white);
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            position: sticky;
            top: 0;
            z-index: 1000;
        }
        
        .header-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 20px;
        }
        
        .logo {
            display: flex;
            align-items: center;
        }
        
        .logo-img {
            height: 50px;
            margin-right: 12px;
        }
        
        .logo-text {
            font-family: 'Merriweather', serif;
            font-weight: 700;
            font-size: 1.6rem;
            color: var(--deep-blue);
        }
        
        .logo-text span {
            color: var(--maroon);
        }
        
        nav ul {
            display: flex;
            list-style: none;
        }
        
        nav ul li {
            margin-left: 24px;
        }
        
        nav ul li a {
            text-decoration: none;
            color: var(--deep-blue);
            font-weight: 500;
            transition: color 0.3s;
            font-size: 1rem;
        }
        
        nav ul li a:hover {
            color: var(--sky-blue);
        }
        
        .mobile-menu-btn {
            display: none;
            background: none;
            border: none;
            font-size: 1.5rem;
            color: var(--deep-blue);
            cursor: pointer;
        }
        
        /* Page Header */
        .page-header {
            background: linear-gradient(rgba(24, 109, 149, 0.85), rgba(24, 109, 149, 0.9)), url('https://images.unsplash.com/photo-1523580494863-6f3031224c94?ixlib=rb-4.0.3&auto=format&fit=crop&w=1600&q=80');
            background-size: cover;
            background-position: center;
            color: var(--white);
            padding: 120px 0 80px;
            text-align: center;
        }
        
        .page-header h1 {
            color: var(--white);
            font-size: 3.2rem;
            margin-bottom: 1.5rem;
        }
        
        .page-header p {
            font-size: 1.2rem;
            max-width: 800px;
            margin: 0 auto;
            opacity: 0.9;
        }
        
        /* Sections */
        section {
            padding: 80px 0;
        }
        
        .section-title {
            text-align: center;
            margin-bottom: 3rem;
        }
        
        .section-title h2 {
            display: inline-block;
        }
        
        .section-title h2:after {
            left: 50%;
            transform: translateX(-50%);
        }
        
        /* About Content */
        .about-content {
            display: flex;
            align-items: center;
            gap: 50px;
            margin-bottom: 60px;
        }
        
        .about-text {
            flex: 1;
        }
        
        .about-img {
            flex: 1;
            border-radius: var(--border-radius);
            overflow: hidden;
            box-shadow: var(--shadow);
        }
        
        .about-img img {
            width: 100%;
            height: auto;
            display: block;
        }
        
        /* Mission & Vision */
        .mission-vision {
            background-color: var(--light-gray);
        }
        
        .mv-cards {
            display: flex;
            gap: 30px;
            margin-top: 40px;
        }
        
        .mv-card {
            flex: 1;
            background-color: var(--white);
            padding: 30px;
            border-radius: var(--border-radius);
            box-shadow: var(--shadow);
            text-align: center;
            transition: transform 0.3s ease;
        }
        
        .mv-card:hover {
            transform: translateY(-10px);
        }
        
        .mv-icon {
            font-size: 2.5rem;
            color: var(--sky-blue);
            margin-bottom: 20px;
        }
        
        /* Founder Bio */
        .founder-bio {
            background-color: var(--light-gray);
        }
        
        .founder-content {
            display: flex;
            align-items: center;
            gap: 50px;
        }
        
        .founder-portrait {
            flex: 1;
            max-width: 400px;
            border-radius: var(--border-radius);
            overflow: hidden;
            box-shadow: var(--shadow);
        }
        
        .founder-portrait img {
            width: 100%;
            height: auto;
            display: block;
        }
        
        .founder-info {
            flex: 2;
        }

@media (max-width: 600px) {
    .founder-info .mt-4 {
        display: flex;
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    .founder-info .mt-4 .btn {
        width: 100%;
    }
}

/* --------------------------------------------------------------------------
   2026 site refinement: cohesive layout, cards, and responsive presentation
   -------------------------------------------------------------------------- */
:root {
    --sky-blue: #25aee9;
    --deep-blue: #0d5d82;
    --maroon: #9a2d12;
    --ink: #18313f;
    --muted: #5e6e77;
    --surface: #ffffff;
    --soft-surface: #f4f8fa;
    --border-radius: 14px;
    --shadow: 0 12px 32px rgba(22, 57, 75, 0.10);
}

html { scroll-behavior: smooth; }

body {
    color: var(--ink);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 { font-family: 'Playfair Display', Georgia, serif; }

p { color: var(--muted); }

section { padding: clamp(4rem, 7vw, 6.5rem) 0; }

.container {
    max-width: 1240px;
    padding-left: 24px;
    padding-right: 24px;
}

.btn {
    min-height: 46px;
    padding: 12px 22px;
    border-radius: 9px;
    letter-spacing: .01em;
    box-shadow: none;
}

.btn-primary { background: var(--sky-blue); }
.btn-primary:hover { background: var(--deep-blue); }

header {
    border-bottom: 1px solid rgba(13, 93, 130, .08);
    box-shadow: 0 4px 18px rgba(22, 57, 75, .06);
}

.header-container { min-height: 80px; padding-top: 8px; padding-bottom: 8px; }
.logo-image { height: 58px; }
nav ul { align-items: center; gap: 22px; }
nav ul li { margin-left: 0; }
nav ul li a { font-size: .92rem; font-weight: 600; }
nav ul li a.active { color: var(--maroon); }

/* The first visual section now begins immediately below the header. */
.hero {
    margin-bottom: 0;
    min-height: min(690px, calc(100svh - 80px));
    display: grid;
    place-items: center;
    padding: 96px 0;
    background-image: linear-gradient(90deg, rgba(7, 59, 83, .91), rgba(7, 59, 83, .61)), url('images/hero image.jpg');
    background-position: center;
}

.hero + section { margin-top: 0; }
.hero .container { max-width: 980px; }
.hero h1 { font-size: clamp(2.55rem, 5vw, 4.7rem); line-height: 1.06; margin-bottom: 1.1rem; }
.hero p { max-width: 620px; font-size: clamp(1.05rem, 2vw, 1.32rem); color: rgba(255,255,255,.92); margin-bottom: 2rem; }
.hero-btns { gap: 14px; }
.hero-btns .btn { min-width: 156px; }

.section-title { margin-bottom: 1rem; }
.section-title h2 { font-size: clamp(2rem, 3vw, 2.65rem); }
.section-subtitle { max-width: 680px; margin-bottom: 2.5rem; }

.about-content { gap: clamp(2rem, 5vw, 4.5rem); margin: 2.5rem 0 0; }
.about-text p { margin-bottom: 1.1rem; }
.about-img { border-radius: 16px; box-shadow: var(--shadow); }
.about-img img { min-height: 340px; object-fit: cover; }

.mission-vision { background: var(--soft-surface); }
.mv-cards { gap: 24px; margin-top: 2.5rem; }
.mv-card { border-radius: 14px; padding: 36px 30px; box-shadow: var(--shadow); }

/* Home programme cards: consistent vertical cards, including when animations load. */
.programs-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
    margin-top: 2.5rem;
}

.program-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    border: 1px solid rgba(13, 93, 130, .09);
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(22, 57, 75, .09);
    transition: transform .28s ease, box-shadow .28s ease;
}

.program-card:hover { transform: translateY(-8px); box-shadow: 0 18px 38px rgba(22, 57, 75, .15); }

.program-img {
    display: block;
    height: 220px;
    flex: 0 0 220px;
    object-fit: cover;
}

.program-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 26px;
}

.program-content h3 {
    color: var(--deep-blue);
    font-size: 1.45rem;
    line-height: 1.3;
    margin-bottom: .75rem;
}

.program-content p { margin-bottom: 1.5rem; }
.program-content .btn { width: 100%; margin-top: auto !important; text-align: center; }

.impact-stats { background: linear-gradient(115deg, #0a5577, #147ba8); }
.stats-container { gap: 16px; }
.stat-item { flex: 1 1 180px; }

.testimonial { border-radius: 16px; box-shadow: var(--shadow); }
.card { border-radius: 16px; box-shadow: var(--shadow); }

.back-to-top { box-shadow: 0 8px 18px rgba(0,0,0,.2); }

@media (max-width: 1024px) {
    nav ul { gap: 14px; }
    nav ul li a { font-size: .84rem; }
    .programs-grid { gap: 18px; }
    .program-content { padding: 22px; }
}

@media (max-width: 768px) {
    .container { padding-left: 18px; padding-right: 18px; }
    .header-container { min-height: 70px; }
    .logo-image { height: 46px; }
    #mainNav { top: 68px; right: 18px; width: calc(100% - 36px); border: 1px solid rgba(13, 93, 130, .1); }
    .hero { min-height: calc(100svh - 70px); padding: 72px 0; background-position: 58% center; }
    .hero h1 { font-size: clamp(2.35rem, 11vw, 3.4rem); }
    .hero-btns { flex-direction: column; align-items: stretch; max-width: 320px; margin: 0 auto; }
    .hero-btns .btn { width: 100%; }
    .about-content, .mv-cards { flex-direction: column; }
    .about-content { margin-top: 2rem; }
    .about-img { width: 100%; order: -1; }
    .about-img img { min-height: 250px; }
    .programs-grid { grid-template-columns: 1fr; gap: 20px; margin-top: 2rem; }
    .program-card { max-width: 540px; width: 100%; margin: 0 auto; }
    .program-img { height: 210px; flex-basis: 210px; }
    .program-content { padding: 24px; }
    .stat-number { font-size: 2.45rem; }
}

@media (max-width: 420px) {
    section { padding: 3.75rem 0; }
    .hero { padding: 56px 0; }
    .hero h1 { font-size: 2.3rem; }
    .program-img { height: 190px; flex-basis: 190px; }
    .program-content { padding: 22px 20px; }
}

.loader { display: none !important; }

/* Footer text stays high contrast against the foundation blue. */
footer p,
footer .footer-links,
footer .footer-links li,
footer .footer-links a,
footer .copyright p {
    color: #ffffff !important;
}

footer .footer-links a:hover { color: #8cddff !important; }

.copyright .design-credit { margin-top: 10px; font-size: .9rem; }
.copyright .design-credit a { color: #ffffff; text-decoration: none; }
.copyright .design-credit a:hover { color: #8cddff; text-decoration: underline; }

/* Keep text readable over every hero image. */
.hero p,
.page-header p { color: #ffffff !important; }

/* Consistent image framing for the individual programme sections. */
.program-section .program-content { align-items: center; }
.program-section .program-image {
    flex: 0 1 500px;
    aspect-ratio: 4 / 3;
    border-radius: 16px;
}
.program-section .program-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 768px) {
    .program-section .program-image {
        width: 100%;
        max-width: 560px;
        flex-basis: auto;
        margin: 0 auto;
    }
}

        .founder-name {
            color: var(--maroon);
            font-size: 2.2rem;
            margin-bottom: 10px;
        }
        
        .founder-title {
            color: var(--sky-blue);
            font-weight: 500;
            margin-bottom: 20px;
            font-size: 1.2rem;
        }
        
        /* Core Values */
        .values-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 30px;
            margin-top: 40px;
        }
        
        .value-card {
            background-color: var(--white);
            border-radius: var(--border-radius);
            padding: 30px;
            box-shadow: var(--shadow);
            transition: transform 0.3s ease;
            text-align: center;
        }
        
        .value-card:hover {
            transform: translateY(-8px);
        }
        
        .value-icon {
            font-size: 2.5rem;
            color: var(--maroon);
            margin-bottom: 20px;
        }
        
        /* Timeline */
        .timeline-section {
            background-color: var(--light-gray);
        }
        
        .timeline {
            position: relative;
            max-width: 800px;
            margin: 0 auto;
        }
        
        .timeline:before {
            content: '';
            position: absolute;
            left: 50%;
            top: 0;
            bottom: 0;
            width: 3px;
            background-color: var(--sky-blue);
            transform: translateX(-50%);
        }
        
        .timeline-item {
            position: relative;
            margin-bottom: 50px;
            width: 50%;
            padding-right: 40px;
        }
        
        .timeline-item:nth-child(even) {
            margin-left: 50%;
            padding-left: 40px;
            padding-right: 0;
        }
        
        .timeline-content {
            background-color: var(--white);
            padding: 25px;
            border-radius: var(--border-radius);
            box-shadow: var(--shadow);
            position: relative;
        }
        
        .timeline-year {
            font-size: 1.8rem;
            font-weight: 700;
            color: var(--maroon);
            margin-bottom: 10px;
        }
        
        .timeline-item:before {
            content: '';
            position: absolute;
            right: -10px;
            top: 20px;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background-color: var(--maroon);
            z-index: 1;
        }
        
        .timeline-item:nth-child(even):before {
            right: auto;
            left: -10px;
        }
        
        /* CTA Section */
        .cta-section {
            background: linear-gradient(rgba(71, 191, 249, 0.9), rgba(24, 109, 149, 0.9));
            color: var(--white);
            text-align: center;
        }
        
        .cta-section h2 {
            color: var(--white);
        }
        
        .cta-section h2:after {
            background-color: var(--white);
            left: 50%;
            transform: translateX(-50%);
        }
        
        /* Footer */
        footer {
            background-color: var(--deep-blue);
            color: var(--white);
            padding: 60px 0 20px;
        }
        
        .footer-content {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            margin-bottom: 40px;
        }
        
        .footer-column {
            flex: 1;
            min-width: 250px;
            margin-bottom: 30px;
            padding-right: 20px;
        }
        
        .footer-column h3 {
            color: var(--white);
            margin-bottom: 20px;
            font-size: 1.3rem;
        }
        
        .footer-links {
            list-style: none;
        }
        
        .footer-links li {
            margin-bottom: 10px;
        }
        
        .footer-links a {
            color: rgba(255, 255, 255, 0.8);
            text-decoration: none;
            transition: color 0.3s;
        }
        
        .footer-links a:hover {
            color: var(--sky-blue);
        }
        
        .social-icons {
            display: flex;
            gap: 15px;
            margin-top: 20px;
        }
        
        .social-icons a {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            background-color: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            color: var(--white);
            text-decoration: none;
            transition: all 0.3s;
        }
        
        .social-icons a:hover {
            background-color: var(--sky-blue);
            transform: translateY(-3px);
        }
        
        .copyright {
            text-align: center;
            padding-top: 20px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            color: rgba(255, 255, 255, 0.7);
            font-size: 0.9rem;
        }
        
        /* Responsive Styles */
        @media (max-width: 992px) {
            h1 {
                font-size: 2.4rem;
            }
            
            h2 {
                font-size: 1.9rem;
            }
            
            .about-content, .founder-content {
                flex-direction: column;
            }
            
            .mv-cards {
                flex-direction: column;
            }
            
            .timeline:before {
                left: 20px;
            }
            
            .timeline-item {
                width: 100%;
                padding-left: 50px;
                padding-right: 0;
            }
            
            .timeline-item:nth-child(even) {
                margin-left: 0;
                padding-left: 50px;
            }
            
            .timeline-item:before {
                left: 10px;
                right: auto;
            }
            
            .timeline-item:nth-child(even):before {
                left: 10px;
            }
        }
        
        @media (max-width: 768px) {
            nav ul {
                display: none;
                position: absolute;
                top: 100%;
                left: 0;
                width: 100%;
                background-color: var(--white);
                flex-direction: column;
                padding: 20px;
                box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
            }
            
            nav ul.active {
                display: flex;
            }
            
            nav ul li {
                margin: 10px 0;
            }
            
            .mobile-menu-btn {
                display: block;
            }
            
            .page-header {
                padding: 100px 0 60px;
            }
            
            .page-header h1 {
                font-size: 2.2rem;
            }
            
            section {
                padding: 60px 0;
            }
            
            .founder-portrait {
                max-width: 100%;
            }
        }
        
        /* Utility Classes */
        .text-center {
            text-align: center;
        }
        
        .mb-4 {
            margin-bottom: 2rem;
        }
        
        .mt-4 {
            margin-top: 2rem;
        }
        
        .highlight {
            color: var(--maroon);
            font-weight: 600;
        }


        /* PROGRAMS PAGE STYLES */
        :root {
            --sky-blue: #47bff9;
            --deep-blue: #186d95;
            --maroon: #9d2a09;
            --light-gray: #f8f9fa;
            --medium-gray: #e9ecef;
            --dark-gray: #495057;
            --white: #ffffff;
            --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
            --border-radius: 8px;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Poppins', sans-serif;
            line-height: 1.6;
            color: var(--dark-gray);
            background-color: var(--white);
        }
        
        h1, h2, h3, h4, h5 {
            font-family: 'Merriweather', serif;
            font-weight: 600;
            color: var(--deep-blue);
            margin-bottom: 1rem;
        }
        
        h1 {
            font-size: 2.8rem;
            line-height: 1.2;
        }
        
        h2 {
            font-size: 2.2rem;
            position: relative;
            padding-bottom: 0.5rem;
        }
        
        h2:after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 60px;
            height: 3px;
            background-color: var(--maroon);
        }
        
        .container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }
        
        .btn {
            display: inline-block;
            padding: 12px 28px;
            border-radius: var(--border-radius);
            font-weight: 600;
            text-decoration: none;
            transition: all 0.3s ease;
            cursor: pointer;
            border: none;
            font-family: 'Poppins', sans-serif;
            font-size: 1rem;
        }
        
        .btn-primary {
            background-color: var(--sky-blue);
            color: var(--white);
        }
        
        .btn-primary:hover {
            background-color: var(--deep-blue);
            transform: translateY(-2px);
            box-shadow: var(--shadow);
        }
        
        .btn-secondary {
            background-color: var(--maroon);
            color: var(--white);
        }
        
        .btn-secondary:hover {
            background-color: #7a2107;
            transform: translateY(-2px);
            box-shadow: var(--shadow);
        }
        
        .btn-outline {
            background-color: transparent;
            color: var(--deep-blue);
            border: 2px solid var(--deep-blue);
        }
        
        .btn-outline:hover {
            background-color: var(--deep-blue);
            color: var(--white);
        }
        
        /* Header & Navigation */
        header {
            background-color: var(--white);
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            position: sticky;
            top: 0;
            z-index: 1000;
        }
        
        .header-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 20px;
        }
        
        .logo {
            display: flex;
            align-items: center;
        }
        
        .logo-img {
            height: 50px;
            margin-right: 12px;
        }
        
        .logo-text {
            font-family: 'Merriweather', serif;
            font-weight: 700;
            font-size: 1.6rem;
            color: var(--deep-blue);
        }
        
        .logo-text span {
            color: var(--maroon);
        }
        
        nav ul {
            display: flex;
            list-style: none;
        }
        
        nav ul li {
            margin-left: 24px;
        }
        
        nav ul li a {
            text-decoration: none;
            color: var(--deep-blue);
            font-weight: 500;
            transition: color 0.3s;
            font-size: 1rem;
        }
        
        nav ul li a:hover {
            color: var(--sky-blue);
        }
        
        .mobile-menu-btn {
            display: none;
            background: none;
            border: none;
            font-size: 1.5rem;
            color: var(--deep-blue);
            cursor: pointer;
        }
        
        /* Page Header */
        .page-header {
            background: linear-gradient(rgba(24, 109, 149, 0.85), rgba(24, 109, 149, 0.9)), url('https://images.unsplash.com/photo-1542744173-8e7e53415bb0?ixlib=rb-4.0.3&auto=format&fit=crop&w=1600&q=80');
            background-size: cover;
            background-position: center;
            color: var(--white);
            padding: 120px 0 80px;
            text-align: center;
        }
        
        .page-header h1 {
            color: var(--white);
            font-size: 3.2rem;
            margin-bottom: 1.5rem;
        }
        
        .page-header p {
            font-size: 1.2rem;
            max-width: 800px;
            margin: 0 auto;
            opacity: 0.9;
        }
        
        /* Programs Intro */
        .programs-intro {
            padding: 80px 0 40px;
            text-align: center;
        }
        
        .programs-intro p {
            max-width: 800px;
            margin: 0 auto 2rem;
            font-size: 1.1rem;
        }
        
        /* Program Sections */
        .program-section {
            padding: 80px 0;
        }
        
        .program-section:nth-child(even) {
            background-color: var(--light-gray);
        }
        
        .program-content {
            display: flex;
            align-items: center;
            gap: 50px;
        }
        
        .program-content.reverse {
            flex-direction: row-reverse;
        }
        
        .program-text {
            flex: 1;
        }
        
        .program-image {
            flex: 1;
            border-radius: var(--border-radius);
            overflow: hidden;
            box-shadow: var(--shadow);
        }
        
        .program-image img {
            width: 100%;
            height: auto;
            display: block;
            transition: transform 0.5s ease;
        }
        
        .program-image:hover img {
            transform: scale(1.03);
        }
        
        .program-features {
            margin: 2rem 0;
        }
        
        .program-features ul {
            list-style-type: none;
        }
        
        .program-features li {
            padding: 10px 0;
            padding-left: 35px;
            position: relative;
        }
        
        .program-features li:before {
            content: '✓';
            position: absolute;
            left: 0;
            top: 10px;
            width: 24px;
            height: 24px;
            background-color: var(--sky-blue);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.9rem;
        }
        
        /* Program CTA Cards */
        .program-cta-cards {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 30px;
            margin-top: 60px;
        }
        
        .cta-card {
            background-color: var(--white);
            border-radius: var(--border-radius);
            padding: 30px;
            box-shadow: var(--shadow);
            text-align: center;
            transition: transform 0.3s ease;
        }
        
        .cta-card:hover {
            transform: translateY(-10px);
        }
        
        .cta-icon {
            font-size: 2.5rem;
            color: var(--maroon);
            margin-bottom: 20px;
        }
        
        /* Testimonials */
        .testimonial-section {
            background: linear-gradient(rgba(71, 191, 249, 0.05), rgba(24, 109, 149, 0.08));
        }
        
        .testimonial-slider {
            max-width: 800px;
            margin: 0 auto;
            position: relative;
        }
        
        .testimonial {
            background-color: var(--white);
            padding: 40px;
            border-radius: var(--border-radius);
            box-shadow: var(--shadow);
            text-align: center;
            margin: 20px;
        }
        
        .testimonial-text {
            font-style: italic;
            font-size: 1.1rem;
            margin-bottom: 20px;
            line-height: 1.8;
        }
        
        .testimonial-author {
            font-weight: 600;
            color: var(--deep-blue);
        }
        
        .testimonial-program {
            color: var(--maroon);
            font-size: 0.9rem;
            margin-top: 5px;
        }
        
        /* Footer */
        footer {
            background-color: var(--deep-blue);
            color: var(--white);
            padding: 60px 0 20px;
        }
        
        .footer-content {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            margin-bottom: 40px;
        }
        
        .footer-column {
            flex: 1;
            min-width: 250px;
            margin-bottom: 30px;
            padding-right: 20px;
        }
        
        .footer-column h3 {
            color: var(--white);
            margin-bottom: 20px;
            font-size: 1.3rem;
        }
        
        .footer-links {
            list-style: none;
        }
        
        .footer-links li {
            margin-bottom: 10px;
        }
        
        .footer-links a {
            color: rgba(255, 255, 255, 0.8);
            text-decoration: none;
            transition: color 0.3s;
        }
        
        .footer-links a:hover {
            color: var(--sky-blue);
        }
        
        .social-icons {
            display: flex;
            gap: 15px;
            margin-top: 20px;
        }
        
        .social-icons a {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            background-color: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            color: var(--white);
            text-decoration: none;
            transition: all 0.3s;
        }
        
        .social-icons a:hover {
            background-color: var(--sky-blue);
            transform: translateY(-3px);
        }
        
        .copyright {
            text-align: center;
            padding-top: 20px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            color: rgba(255, 255, 255, 0.7);
            font-size: 0.9rem;
        }
        
        /* Responsive Styles */
        @media (max-width: 992px) {
            h1 {
                font-size: 2.4rem;
            }
            
            h2 {
                font-size: 1.9rem;
            }
            
            .program-content, .program-content.reverse {
                flex-direction: column;
            }
            
            .program-image, .program-text {
                width: 100%;
            }
        }
        
        @media (max-width: 768px) {
            nav ul {
                display: none;
                position: absolute;
                top: 100%;
                left: 0;
                width: 100%;
                background-color: var(--white);
                flex-direction: column;
                padding: 20px;
                box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
            }
            
            nav ul.active {
                display: flex;
            }
            
            nav ul li {
                margin: 10px 0;
            }
            
            .mobile-menu-btn {
                display: block;
            }
            
            .page-header {
                padding: 100px 0 60px;
            }
            
            .page-header h1 {
                font-size: 2.2rem;
            }
            
            .program-section {
                padding: 60px 0;
            }
            
            .programs-intro {
                padding: 60px 0 30px;
            }
        }
        
        /* Utility Classes */
        .text-center {
            text-align: center;
        }
        
        .mb-4 {
            margin-bottom: 2rem;
        }
        
        .mt-4 {
            margin-top: 2rem;
        }
        
        .highlight {
            color: var(--maroon);
            font-weight: 600;
        }
        
        .program-tag {
            display: inline-block;
            padding: 5px 15px;
            background-color: var(--light-gray);
            color: var(--deep-blue);
            border-radius: 20px;
            font-size: 0.9rem;
            font-weight: 600;
            margin-bottom: 1rem;
        }

        /* BOOKSTORE PAGE STYLES */
        :root {
            --sky-blue: #47bff9;
            --deep-blue: #186d95;
            --maroon: #9d2a09;
            --light-gray: #f8f9fa;
            --medium-gray: #e9ecef;
            --dark-gray: #495057;
            --white: #ffffff;
            --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
            --border-radius: 8px;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Poppins', sans-serif;
            line-height: 1.6;
            color: var(--dark-gray);
            background-color: var(--white);
        }
        
        h1, h2, h3, h4, h5 {
            font-family: 'Merriweather', serif;
            font-weight: 600;
            color: var(--deep-blue);
            margin-bottom: 1rem;
        }
        
        h1 {
            font-size: 2.8rem;
            line-height: 1.2;
        }
        
        h2 {
            font-size: 2.2rem;
            position: relative;
            padding-bottom: 0.5rem;
        }
        
        h2:after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 60px;
            height: 3px;
            background-color: var(--maroon);
        }
        
        .container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }
        
        .btn {
            display: inline-block;
            padding: 12px 28px;
            border-radius: var(--border-radius);
            font-weight: 600;
            text-decoration: none;
            transition: all 0.3s ease;
            cursor: pointer;
            border: none;
            font-family: 'Poppins', sans-serif;
            font-size: 1rem;
        }
        
        .btn-primary {
            background-color: var(--sky-blue);
            color: var(--white);
        }
        
        .btn-primary:hover {
            background-color: var(--deep-blue);
            transform: translateY(-2px);
            box-shadow: var(--shadow);
        }
        
        .btn-secondary {
            background-color: var(--maroon);
            color: var(--white);
        }
        
        .btn-secondary:hover {
            background-color: #7a2107;
            transform: translateY(-2px);
            box-shadow: var(--shadow);
        }
        
        .btn-outline {
            background-color: transparent;
            color: var(--deep-blue);
            border: 2px solid var(--deep-blue);
        }
        
        .btn-outline:hover {
            background-color: var(--deep-blue);
            color: var(--white);
        }
        
        /* Header & Navigation */
        header {
            background-color: var(--white);
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            position: sticky;
            top: 0;
            z-index: 1000;
        }
        
        .header-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 20px;
        }
        
        .logo {
            display: flex;
            align-items: center;
        }
        
        .logo-img {
            height: 50px;
            margin-right: 12px;
        }
        
        .logo-text {
            font-family: 'Merriweather', serif;
            font-weight: 700;
            font-size: 1.6rem;
            color: var(--deep-blue);
        }
        
        .logo-text span {
            color: var(--maroon);
        }
        
        nav ul {
            display: flex;
            list-style: none;
        }
        
        nav ul li {
            margin-left: 24px;
        }
        
        nav ul li a {
            text-decoration: none;
            color: var(--deep-blue);
            font-weight: 500;
            transition: color 0.3s;
            font-size: 1rem;
        }
        
        nav ul li a:hover {
            color: var(--sky-blue);
        }
        
        .mobile-menu-btn {
            display: none;
            background: none;
            border: none;
            font-size: 1.5rem;
            color: var(--deep-blue);
            cursor: pointer;
        }
        
        /* Page Header */
        .page-header {
            background: linear-gradient(rgba(24, 109, 149, 0.85), rgba(24, 109, 149, 0.9)), url('https://images.unsplash.com/photo-1544947950-fa07a98d237f?ixlib=rb-4.0.3&auto=format&fit=crop&w=1600&q=80');
            background-size: cover;
            background-position: center;
            color: var(--white);
            padding: 120px 0 80px;
            text-align: center;
        }
        
        .page-header h1 {
            color: var(--white);
            font-size: 3.2rem;
            margin-bottom: 1.5rem;
        }
        
        .page-header p {
            font-size: 1.2rem;
            max-width: 800px;
            margin: 0 auto;
            opacity: 0.9;
        }
        
        /* Main Book Section */
        .book-main {
            padding: 80px 0;
        }
        
        .book-container {
            display: flex;
            gap: 50px;
            margin-bottom: 60px;
        }
        
        .book-cover-section {
            flex: 1;
            max-width: 400px;
        }
        
        .book-cover {
            border-radius: var(--border-radius);
            overflow: hidden;
            box-shadow: var(--shadow);
            margin-bottom: 20px;
        }
        
        .book-cover img {
            width: 100%;
            height: auto;
            display: block;
        }
        
        .book-details {
            flex: 2;
        }
        
        .book-title {
            color: var(--maroon);
            font-size: 2.5rem;
            margin-bottom: 10px;
        }
        
        .book-author {
            font-size: 1.3rem;
            color: var(--deep-blue);
            margin-bottom: 20px;
            font-weight: 500;
        }
        
        .book-description {
            margin-bottom: 30px;
            font-size: 1.1rem;
            line-height: 1.8;
        }
        
        /* Pricing Section */
        .pricing-section {
            background-color: var(--light-gray);
            padding: 30px;
            border-radius: var(--border-radius);
            margin-bottom: 30px;
        }
        
        .price {
            font-size: 2.2rem;
            font-weight: 700;
            color: var(--maroon);
            margin-bottom: 10px;
        }
        
        .price-note {
            color: var(--dark-gray);
            font-size: 0.9rem;
            margin-bottom: 20px;
        }
        
        .format-options {
            display: flex;
            gap: 15px;
            margin-bottom: 25px;
            flex-wrap: wrap;
        }
        
        .format-option {
            padding: 12px 20px;
            background-color: var(--white);
            border: 2px solid var(--medium-gray);
            border-radius: var(--border-radius);
            cursor: pointer;
            transition: all 0.3s;
            text-align: center;
            flex: 1;
            min-width: 120px;
        }
        
        .format-option.active {
            border-color: var(--sky-blue);
            background-color: rgba(71, 191, 249, 0.1);
        }
        
        .format-icon {
            font-size: 1.5rem;
            color: var(--deep-blue);
            margin-bottom: 8px;
        }
        
        /* Payment Options */
        .payment-section {
            margin-bottom: 30px;
        }
        
        .payment-options {
            display: flex;
            gap: 15px;
            margin-top: 15px;
            flex-wrap: wrap;
        }
        
        .payment-option {
            display: flex;
            align-items: center;
            padding: 12px 20px;
            background-color: var(--light-gray);
            border-radius: var(--border-radius);
            flex: 1;
            min-width: 150px;
        }
        
        .payment-icon {
            font-size: 1.8rem;
            margin-right: 15px;
        }
        
        .payment-icon.visa {
            color: #1a1f71;
        }
        
        .payment-icon.mpesa {
            color: #00A859;
        }
        
        .payment-icon.paypal {
            color: #003087;
        }
        
        /* CTA Buttons */
        .cta-buttons {
            display: flex;
            gap: 15px;
            flex-wrap: wrap;
        }
        
        /* Preview Section */
        .preview-section {
            padding: 80px 0;
            background-color: var(--light-gray);
        }
        
        .preview-container {
            display: flex;
            gap: 50px;
            align-items: flex-start;
        }
        
        .author-message {
            flex: 1;
        }
        
        .author-portrait {
            width: 150px;
            height: 150px;
            border-radius: 50%;
            overflow: hidden;
            margin-bottom: 20px;
            box-shadow: var(--shadow);
        }
        
        .author-portrait img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .book-preview {
            flex: 1;
            background-color: var(--white);
            padding: 30px;
            border-radius: var(--border-radius);
            box-shadow: var(--shadow);
        }
        
        .preview-pages {
            display: flex;
            gap: 20px;
            margin-top: 30px;
        }
        
        .preview-page {
            flex: 1;
            background-color: #f5f2e9;
            padding: 25px;
            border-radius: var(--border-radius);
            border: 1px solid #e6dfd1;
            min-height: 250px;
            font-family: 'Georgia', serif;
            line-height: 1.7;
        }
        
        /* Testimonials */
        .testimonials-section {
            padding: 80px 0;
        }
        
        .testimonials-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 30px;
            margin-top: 40px;
        }
        
        .testimonial-card {
            background-color: var(--white);
            padding: 30px;
            border-radius: var(--border-radius);
            box-shadow: var(--shadow);
        }
        
        .testimonial-text {
            font-style: italic;
            margin-bottom: 20px;
            line-height: 1.7;
        }
        
        .testimonial-author {
            font-weight: 600;
            color: var(--deep-blue);
        }
        
        .rating {
            color: #ffc107;
            margin-bottom: 10px;
        }
        
        /* Checkout Modal */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 1001;
            justify-content: center;
            align-items: center;
        }
        
        .modal-content {
            background-color: var(--white);
            padding: 40px;
            border-radius: var(--border-radius);
            max-width: 500px;
            width: 90%;
            max-height: 90vh;
            overflow-y: auto;
        }
        
        .close-modal {
            float: right;
            font-size: 1.5rem;
            cursor: pointer;
            color: var(--dark-gray);
        }
        
        .form-group {
            margin-bottom: 20px;
        }
        
        .form-label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
        }
        
        .form-control {
            width: 100%;
            padding: 12px 15px;
            border: 1px solid var(--medium-gray);
            border-radius: var(--border-radius);
            font-family: 'Poppins', sans-serif;
            font-size: 1rem;
        }
        
        /* Footer */
        footer {
            background-color: var(--deep-blue);
            color: var(--white);
            padding: 60px 0 20px;
        }
        
        .footer-content {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            margin-bottom: 40px;
        }
        
        .footer-column {
            flex: 1;
            min-width: 250px;
            margin-bottom: 30px;
            padding-right: 20px;
        }
        
        .footer-column h3 {
            color: var(--white);
            margin-bottom: 20px;
            font-size: 1.3rem;
        }
        
        .footer-links {
            list-style: none;
        }
        
        .footer-links li {
            margin-bottom: 10px;
        }
        
        .footer-links a {
            color: rgba(255, 255, 255, 0.8);
            text-decoration: none;
            transition: color 0.3s;
        }
        
        .footer-links a:hover {
            color: var(--sky-blue);
        }
        
        .social-icons {
            display: flex;
            gap: 15px;
            margin-top: 20px;
        }
        
        .social-icons a {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            background-color: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            color: var(--white);
            text-decoration: none;
            transition: all 0.3s;
        }
        
        .social-icons a:hover {
            background-color: var(--sky-blue);
            transform: translateY(-3px);
        }
        
        .copyright {
            text-align: center;
            padding-top: 20px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            color: rgba(255, 255, 255, 0.7);
            font-size: 0.9rem;
        }
        
        /* Responsive Styles */
        @media (max-width: 992px) {
            h1 {
                font-size: 2.4rem;
            }
            
            h2 {
                font-size: 1.9rem;
            }
            
            .book-container, .preview-container {
                flex-direction: column;
            }
            
            .book-cover-section {
                max-width: 100%;
            }
            
            .preview-pages {
                flex-direction: column;
            }
        }
        
        @media (max-width: 768px) {
            nav ul {
                display: none;
                position: absolute;
                top: 100%;
                left: 0;
                width: 100%;
                background-color: var(--white);
                flex-direction: column;
                padding: 20px;
                box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
            }
            
            nav ul.active {
                display: flex;
            }
            
            nav ul li {
                margin: 10px 0;
            }
            
            .mobile-menu-btn {
                display: block;
            }
            
            .page-header {
                padding: 100px 0 60px;
            }
            
            .page-header h1 {
                font-size: 2.2rem;
            }
            
            .book-main, .preview-section, .testimonials-section {
                padding: 60px 0;
            }
            
            .book-title {
                font-size: 2rem;
            }
            
            .cta-buttons {
                flex-direction: column;
            }
            
            .cta-buttons .btn {
                width: 100%;
                text-align: center;
            }
        }
        
        /* Utility Classes */
        .text-center {
            text-align: center;
        }
        
        .mb-4 {
            margin-bottom: 2rem;
        }
        
        .mt-4 {
            margin-top: 2rem;
        }
        
        .highlight {
            color: var(--maroon);
            font-weight: 600;
}
        
        .secure-badge {
            display: inline-flex;
            align-items: center;
            background-color: #28a745;
            color: white;
            padding: 5px 12px;
            border-radius: 20px;
            font-size: 0.9rem;
            margin-left: 10px;
        }
        
        .badge {
            display: inline-block;
            padding: 5px 10px;
            background-color: var(--light-gray);
            color: var(--deep-blue);
            border-radius: 4px;
            font-size: 0.8rem;
            font-weight: 600;
            margin-right: 10px;
            margin-bottom: 10px;
        }






        /* CONTACT US PAGE */
        :root {
            --sky-blue: #47bff9;
            --deep-blue: #186d95;
            --maroon: #9d2a09;
            --light-gray: #f8f9fa;
            --medium-gray: #e9ecef;
            --dark-gray: #495057;
            --white: #ffffff;
            --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
            --border-radius: 8px;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Poppins', sans-serif;
            line-height: 1.6;
            color: var(--dark-gray);
            background-color: var(--white);
        }
        
        h1, h2, h3, h4, h5 {
            font-family: 'Merriweather', serif;
            font-weight: 600;
            color: var(--deep-blue);
            margin-bottom: 1rem;
        }
        
        h1 {
            font-size: 2.8rem;
            line-height: 1.2;
        }
        
        h2 {
            font-size: 2.2rem;
            position: relative;
            padding-bottom: 0.5rem;
        }
        
        h2:after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 60px;
            height: 3px;
            background-color: var(--maroon);
        }
        
        .container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }
        
        .btn {
            display: inline-block;
            padding: 12px 28px;
            border-radius: var(--border-radius);
            font-weight: 600;
            text-decoration: none;
            transition: all 0.3s ease;
            cursor: pointer;
            border: none;
            font-family: 'Poppins', sans-serif;
            font-size: 1rem;
        }
        
        .btn-primary {
            background-color: var(--sky-blue);
            color: var(--white);
        }
        
        .btn-primary:hover {
            background-color: var(--deep-blue);
            transform: translateY(-2px);
            box-shadow: var(--shadow);
        }
        
        .btn-secondary {
            background-color: var(--maroon);
            color: var(--white);
        }
        
        .btn-secondary:hover {
            background-color: #7a2107;
            transform: translateY(-2px);
            box-shadow: var(--shadow);
        }
        
        .btn-outline {
            background-color: transparent;
            color: var(--deep-blue);
            border: 2px solid var(--deep-blue);
        }
        
        .btn-outline:hover {
            background-color: var(--deep-blue);
            color: var(--white);
        }
        
        .btn-whatsapp {
            background-color: #25D366;
            color: var(--white);
        }
        
        .btn-whatsapp:hover {
            background-color: #128C7E;
            transform: translateY(-2px);
            box-shadow: var(--shadow);
        }
        
        /* Header & Navigation */
        header {
            background-color: var(--white);
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            position: sticky;
            top: 0;
            z-index: 1000;
        }
        
        .header-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 20px;
        }
        
        .logo {
            display: flex;
            align-items: center;
        }
        
        .logo-img {
            height: 50px;
            margin-right: 12px;
        }
        
        .logo-text {
            font-family: 'Merriweather', serif;
            font-weight: 700;
            font-size: 1.6rem;
            color: var(--deep-blue);
        }
        
        .logo-text span {
            color: var(--maroon);
        }
        
        nav ul {
            display: flex;
            list-style: none;
        }
        
        nav ul li {
            margin-left: 24px;
        }
        
        nav ul li a {
            text-decoration: none;
            color: var(--deep-blue);
            font-weight: 500;
            transition: color 0.3s;
            font-size: 1rem;
        }
        
        nav ul li a:hover {
            color: var(--sky-blue);
        }
        
        .mobile-menu-btn {
            display: none;
            background: none;
            border: none;
            font-size: 1.5rem;
            color: var(--deep-blue);
            cursor: pointer;
        }
        
        /* Page Header */
        .page-header {
            background: linear-gradient(rgba(24, 109, 149, 0.85), rgba(24, 109, 149, 0.9)), url('https://images.unsplash.com/photo-1521791136064-7986c2920216?ixlib=rb-4.0.3&auto=format&fit=crop&w=1600&q=80');
            background-size: cover;
            background-position: center;
            color: var(--white);
            padding: 120px 0 80px;
            text-align: center;
        }
        
        .page-header h1 {
            color: var(--white);
            font-size: 3.2rem;
            margin-bottom: 1.5rem;
        }
        
        .page-header p {
            font-size: 1.2rem;
            max-width: 800px;
            margin: 0 auto;
            opacity: 0.9;
        }
        
        /* Contact Main Section */
        .contact-main {
            padding: 80px 0;
        }
        
        .contact-container {
            display: flex;
            gap: 50px;
        }
        
        .contact-form-section {
            flex: 1;
        }
        
        .contact-info-section {
            flex: 1;
        }
        
        /* Contact Form */
        .form-group {
            margin-bottom: 20px;
        }
        
        .form-label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
        }
        
        .form-control {
            width: 100%;
            padding: 12px 15px;
            border: 1px solid var(--medium-gray);
            border-radius: var(--border-radius);
            font-family: 'Poppins', sans-serif;
            font-size: 1rem;
            transition: border-color 0.3s;
        }
        
        .form-control:focus {
            outline: none;
            border-color: var(--sky-blue);
        }
        
        textarea.form-control {
            min-height: 150px;
            resize: vertical;
        }
        
        /* Contact Info Cards */
        .contact-info-card {
            background-color: var(--white);
            padding: 30px;
            border-radius: var(--border-radius);
            box-shadow: var(--shadow);
            margin-bottom: 30px;
        }
        
        .contact-item {
            display: flex;
            align-items: flex-start;
            margin-bottom: 25px;
        }
        
        .contact-icon {
            width: 50px;
            height: 50px;
            background-color: rgba(71, 191, 249, 0.1);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 15px;
            flex-shrink: 0;
        }
        
        .contact-icon i {
            font-size: 1.3rem;
            color: var(--sky-blue);
        }
        
        .contact-details h3 {
            margin-bottom: 5px;
            font-size: 1.2rem;
        }
        
        /* Google Map */
        .map-container {
            margin-top: 30px;
            border-radius: var(--border-radius);
            overflow: hidden;
            box-shadow: var(--shadow);
        }
        
        .map-placeholder {
            width: 100%;
            height: 300px;
            background-color: var(--light-gray);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }
        
        .map-placeholder i {
            font-size: 3rem;
            color: var(--sky-blue);
            margin-bottom: 15px;
        }
        
        /* Social Media Links */
        .social-section {
            margin-top: 30px;
        }
        
        .social-icons {
            display: flex;
            gap: 15px;
            margin-top: 15px;
        }
        
        .social-icons a {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 45px;
            height: 45px;
            background-color: var(--light-gray);
            border-radius: 50%;
            color: var(--deep-blue);
            text-decoration: none;
            transition: all 0.3s;
        }
        
        .social-icons a:hover {
            background-color: var(--sky-blue);
            color: var(--white);
            transform: translateY(-3px);
        }
        
        /* WhatsApp Chat Widget */
        .whatsapp-widget {
            position: fixed;
            bottom: 30px;
            right: 30px;
            z-index: 999;
        }
        
        .whatsapp-btn {
            display: flex;
            align-items: center;
            padding: 15px 20px;
            background-color: #25D366;
            color: white;
            border-radius: 50px;
            text-decoration: none;
            box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
            transition: all 0.3s;
        }
        
        .whatsapp-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
        }
        
        .whatsapp-icon {
            font-size: 1.8rem;
            margin-right: 10px;
        }
        
        .whatsapp-text {
            font-weight: 600;
        }
        
        /* FAQ Section */
        .faq-section {
            background-color: var(--light-gray);
            padding: 80px 0;
        }
        
        .faq-container {
            max-width: 800px;
            margin: 0 auto;
        }
        
        .faq-item {
            background-color: var(--white);
            margin-bottom: 15px;
            border-radius: var(--border-radius);
            overflow: hidden;
            box-shadow: var(--shadow);
        }
        
        .faq-question {
            padding: 20px;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-weight: 600;
        }
        
        .faq-question:hover {
            background-color: rgba(71, 191, 249, 0.05);
        }
        
        .faq-answer {
            padding: 0 20px;
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease, padding 0.3s ease;
        }
        
        .faq-item.active .faq-answer {
            padding: 0 20px 20px 20px;
            max-height: 300px;
        }
        
        .faq-toggle {
            color: var(--sky-blue);
            font-size: 1.2rem;
            transition: transform 0.3s;
        }
        
        .faq-item.active .faq-toggle {
            transform: rotate(45deg);
        }
        
        /* Emergency Contact Banner */
        .emergency-banner {
            background-color: rgba(157, 42, 9, 0.1);
            border-left: 4px solid var(--maroon);
            padding: 20px;
            border-radius: var(--border-radius);
            margin-top: 40px;
        }
        
        /* Footer */
        footer {
            background-color: var(--deep-blue);
            color: var(--white);
            padding: 60px 0 20px;
        }
        
        .footer-content {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            margin-bottom: 40px;
        }
        
        .footer-column {
            flex: 1;
            min-width: 250px;
            margin-bottom: 30px;
            padding-right: 20px;
        }
        
        .footer-column h3 {
            color: var(--white);
            margin-bottom: 20px;
            font-size: 1.3rem;
        }
        
        .footer-links {
            list-style: none;
        }
        
        .footer-links li {
            margin-bottom: 10px;
        }
        
        .footer-links a {
            color: rgba(255, 255, 255, 0.8);
            text-decoration: none;
            transition: color 0.3s;
        }
        
        .footer-links a:hover {
            color: var(--sky-blue);
        }
        
        .copyright {
            text-align: center;
            padding-top: 20px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            color: rgba(255, 255, 255, 0.7);
            font-size: 0.9rem;
        }
        
        /* Responsive Styles */
        @media (max-width: 992px) {
            h1 {
                font-size: 2.4rem;
            }
            
            h2 {
                font-size: 1.9rem;
            }
            
            .contact-container {
                flex-direction: column;
            }
        }
        
        @media (max-width: 768px) {
            nav ul {
                display: none;
                position: absolute;
                top: 100%;
                left: 0;
                width: 100%;
                background-color: var(--white);
                flex-direction: column;
                padding: 20px;
                box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
            }
            
            nav ul.active {
                display: flex;
            }
            
            nav ul li {
                margin: 10px 0;
            }
            
            .mobile-menu-btn {
                display: block;
            }
            
            .page-header {
                padding: 100px 0 60px;
            }
            
            .page-header h1 {
                font-size: 2.2rem;
            }
            
            .contact-main, .faq-section {
                padding: 60px 0;
            }
            
            .whatsapp-widget {
                bottom: 20px;
                right: 20px;
            }
            
            .whatsapp-btn {
                padding: 12px 15px;
            }
            
            .whatsapp-text {
                display: none;
            }
            
            .whatsapp-icon {
                margin-right: 0;
                font-size: 2rem;
            }
        }
        
        /* Utility Classes */
        .text-center {
            text-align: center;
        }
        
        .mb-4 {
            margin-bottom: 2rem;
        }
        
        .mt-4 {
            margin-top: 2rem;
        }
        
        .highlight {
            color: var(--maroon);
            font-weight: 600;
        }
        
        .required {
            color: var(--maroon);
        }
        
        /* Force spacing between page header and About block (higher specificity to override other rules) */
        .page-header + .about-content {
            margin-top: 64px !important;
        }

        @media (max-width: 992px) {
            .page-header + .about-content {
                margin-top: 48px !important;
            }
        }

        @media (max-width: 768px) {
            .page-header + .about-content {
                margin-top: 32px !important;
            }
        }

        /* Ensure About & Mission content is visible and readable */
        .page-header + .about-content,
        .about-content,
        .about-text,
        .about-img,
        .mission-vision,
        .mission-vision .mv-card,
        .mv-cards,
        .section-title,
        .section-subtitle {
            opacity: 1 !important;
            transform: none !important;
            color: var(--deep-blue) !important;
        }

        .mission-vision {
            background-color: var(--light-gray) !important;
        }

        .mission-vision .mv-card p,
        .about-text p,
        .section-subtitle {
            color: var(--dark-gray) !important;
        }

        .section-title h2 {
            color: var(--deep-blue) !important;
        }

        /* Form Status Messages */
        .form-status {
            padding: 15px;
            border-radius: var(--border-radius);
            margin-bottom: 20px;
            display: none;
        }
        
        .form-status.success {
            background-color: rgba(40, 167, 69, 0.1);
            border-left: 4px solid #28a745;
            color: #155724;
        }
        
        .form-status.error {
            background-color: rgba(220, 53, 69, 0.1);
            border-left: 4px solid #dc3545;
            color: #721c24;

        /* Header layout override — ensure nav sits to the far right with generous gap */
        .header-container {
            justify-content: flex-start !important;
            gap: 48px !important; /* slightly more space for larger logo */
        }

        nav {
            margin-left: auto !important;
        }

        /* Ensure mobile menu button is positioned at the right on mobile */
        @media (max-width: 768px) {
            .mobile-menu-btn {
                display: block;
                margin-left: auto;
                font-size: 1.8rem !important; /* ensure icon is larger on phones */
            }
        }
        }

/* Final cascade safeguards for the refined public-facing layout. */
body { color: var(--ink); background: var(--surface); }
section { padding: clamp(4rem, 7vw, 6.5rem) 0; }
#home.tab-content { padding: 0; }
.container { max-width: 1240px; padding-left: 24px; padding-right: 24px; }
.header-container { min-height: 80px; padding-top: 8px; padding-bottom: 8px; }
.logo-image { height: 58px; }
.hero {
    margin-bottom: 0 !important;
    min-height: min(690px, calc(100svh - 80px));
    display: grid;
    place-items: center;
    padding: 96px 0;
    background-image: linear-gradient(90deg, rgba(7, 59, 83, .91), rgba(7, 59, 83, .61)), url('images/hero image.jpg');
    background-position: center;
}
.hero + section { margin-top: 0 !important; }
.hero h1 { font-size: clamp(2.55rem, 5vw, 4.7rem); line-height: 1.06; }
.hero p { color: rgba(255,255,255,.92); }
.programs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; margin-top: 2.5rem; }
.program-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    border: 1px solid rgba(13, 93, 130, .09);
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(22, 57, 75, .09);
}
.program-img { display: block; height: 220px; flex: 0 0 220px; object-fit: cover; }
.program-content { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 26px; }
.program-content h3 { color: var(--deep-blue); font-size: 1.45rem; line-height: 1.3; margin-bottom: .75rem; }
.program-content p { margin-bottom: 1.5rem; }
.program-content .btn { width: 100%; margin-top: auto !important; text-align: center; }
@media (max-width: 768px) {
    .container { padding-left: 18px; padding-right: 18px; }
    .header-container { min-height: 70px; }
    .logo-image { height: 46px; }
    .hero { min-height: calc(100svh - 70px); padding: 72px 0; background-position: 58% center; }
    .hero h1 { font-size: clamp(2.35rem, 11vw, 3.4rem); }
    .hero-btns { flex-direction: column; align-items: stretch; max-width: 320px; margin: 0 auto; }
    .hero-btns .btn { width: 100%; }
    .programs-grid { grid-template-columns: 1fr; gap: 20px; margin-top: 2rem; }
    .program-card { max-width: 540px; width: 100%; margin: 0 auto; }
    .program-img { height: 210px; flex-basis: 210px; }
    .program-content { padding: 24px; }
}

@media (max-width: 420px) {
    section { padding: 3.75rem 0; }
    .hero { padding: 56px 0; }
    .hero h1 { font-size: 2.3rem; }
    .program-img { height: 190px; flex-basis: 190px; }
    .program-content { padding: 22px 20px; }
}
