/* --- Variables & Global Styles --- */

* {
    scroll-behavior: smooth;
}

        :root {
            --klnt-blue: #003366;
            --klnt-gold: #b99044;
            --klnt-gold-dark: #c29644;
            --text-dark: #333333;
            --text-light: #666666;
            --bg-light: #f8f9fa;
            --header-height-scrolled: 70px;
        }

        html { scroll-behavior: auto; /* We handle smooth scroll manually to control URL */ }

        body {
            font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
            color: var(--text-dark);
            overflow-x: hidden;
            padding-bottom: 70px; 
            padding-top: 0; 
        }

        h1, h2, h3, h4, h5, h6 {
            font-weight: 700;
            color: var(--klnt-gold-dark);
        }

        a { text-decoration: none; color: inherit; transition: 0.3s; cursor: pointer; }
        
        .section-padding { padding: 80px 0; }
        
        .section-title {
            text-align: center;
            margin-bottom: 50px;
            position: relative;
        }
        
        .section-title h2 {
            font-size: 2.5rem;
            text-transform: capitalize;
            letter-spacing: 1px;
            color: var(--klnt-gold-dark);
        }
        
        .section-title::after {
            content: '';
            display: block;
            width: 80px;
            height: 4px;
            background: var(--klnt-gold);
            margin: 15px auto 0;
        }

        
        /* --- Fixed Header Wrapper --- */
        .fixed-header-wrapper {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            z-index: 1040;
            background: transparent;
            transition: background-color 0.4s ease;
            box-shadow: none;
        }

        /* --- Top Bar --- */
        .top-bar {
            background: rgba(0, 0, 0, 0.6);
            color: #fff;
            padding: 8px 0;
            font-size: 0.8rem;
            border-bottom: 1px solid rgba(255,255,255,0.1);
            /* Transition for smooth collapse */
            transition: all 0.4s ease;
            overflow: hidden;
            max-height: 50px; /* Approximate initial height */
            position: relative;
            z-index: 2;
        }
        
        .top-bar a { color: #fff; text-shadow: 1px 1px 3px rgba(0,0,0,0.8); }
        .top-bar a:hover { color: var(--klnt-gold); }

        /* --- Sticky Logic: Collapse Top Bar --- */
        .fixed-header-wrapper.scrolled .top-bar {
            max-height: 0; /* Collapses space */
            opacity: 0;
            padding: 0;
            border: none;
            overflow: hidden;
            pointer-events: none;
        }

        /* --- Navigation --- */
        .navbar {
            background: transparent !important;
            padding: 20px 0; /* More padding initially */
            transition: all 0.4s ease;
        }

        /* Navbar on Scroll */
        .fixed-header-wrapper.scrolled .navbar {
            background-color: rgba(0, 0, 0, 0.95) !important; /* Solid dark background */
            padding: 10px 0; /* Compact padding */
            box-shadow: 0 2px 15px rgba(0,0,0,0.3);
        }

        .navbar-brand {
            padding: 0;
            z-index: 2; 
            transition: all 0.4s ease;
        }
        
        .navbar-brand img {
            height: 60px; 
            transition: height 0.3s ease;
        }
        
        .fixed-header-wrapper.scrolled .navbar-brand img {
            height: 45px; /* Smaller logo on scroll */
        }

        .nav-link {
            font-weight: 600;
            color: rgba(255, 255, 255, 0.9) !important;
            margin: 0 5px;
            position: relative;
            font-size: 1rem;
            text-transform: capitalize;
            text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
        }

        .nav-link:hover, .nav-link.active { color: var(--klnt-gold) !important; }
        .nav-link::after {
            content: ''; position: absolute; width: 0; height: 2px; bottom: 0; left: 0;
            background-color: var(--klnt-gold); transition: width 0.3s;
        }
        .nav-link:hover::after { width: 100%; }

        /* Mobile Menu Toggler */
        .navbar-toggler { z-index: 1051; border: none; padding: 0; }
        .navbar-toggler:focus { box-shadow: none; }

        /* Mobile Offcanvas Menu */
        .offcanvas-start { z-index: 1050; border-right: 1px solid rgba(255,255,255,0.1); }
        .offcanvas-backdrop { z-index: 1049; }
        .offcanvas-header { background: #000; color: white; border-bottom: 1px solid #333; }
        .offcanvas-body { background: #1a1a1a; padding: 0; }
        .offcanvas .nav-link {
            font-size: 1.2rem; padding: 20px; border-bottom: 1px solid #333;
            color: #ccc !important; text-shadow: none;
            display: block; width: 100%;
        }
        .offcanvas .nav-link:hover, .offcanvas .nav-link.active {
            color: var(--klnt-gold) !important; background: rgba(255,255,255,0.05);
            padding-left: 30px; 
        }

        /* --- Hero Section (Updated for Zoom Effect) --- */
        .hero-section {
            position: relative;
            height: 100vh;
            min-height: 600px;
            overflow: hidden;
        }

        .swiper { width: 100%; height: 100%; }

        .swiper-slide {
            background-position: center;
            background-size: cover;
            display: flex;
            align-items: center;
            position: relative;
            /* Animation for Zoom Effect */
            transform: scale(1);
            transition: transform 10s linear; 
        }

        /* Active slide zooms in slowly (Ken Burns effect) */
        .swiper-slide-active {
            transform: scale(1.15);
        }

        .slide-overlay {
            position: absolute;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0, 0, 0, 0.5); 
            z-index: 1;
        }

        .hero-content {
            position: relative;
            z-index: 2;
            color: white;
            max-width: 800px;
            padding-left: 5%;
            margin-top: 60px;
        }

        .hero-title {
            font-size: 3.5rem;
            font-weight: 800;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
            margin-bottom: 20px;
            opacity: 0;
            transform: translateY(30px);
            transition: all 0.8s ease 0.3s;
        }

        .hero-desc {
            font-size: 1.2rem;
            margin-bottom: 30px;
            opacity: 0;
            transform: translateY(30px);
            transition: all 0.8s ease 0.5s;
        }

        .btn-klnt {
            background-color: var(--klnt-gold);
            color: var(--klnt-blue);
            font-weight: 700;
            padding: 12px 30px;
            border-radius: 30px;
            opacity: 0;
            transform: translateY(30px);
            transition: all 0.8s ease 0.7s, background 0.3s;
            display: inline-block;
        }

        .btn-klnt:hover { background-color: white; color: var(--klnt-blue); }

        /* Animation trigger */
        .swiper-slide-active .hero-title,
        .swiper-slide-active .hero-desc,
        .swiper-slide-active .btn-klnt {
            opacity: 1;
            transform: translateY(0);
        }

        /* --- Custom Hero Controls --- */
        .hero-custom-nav {
            position: absolute;
            bottom: 30px;
            left: 30px;
            z-index: 10;
            display: flex;
            gap: 15px;
        }

        .hero-arrow-btn {
            width: 50px; height: 50px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.2);
            border: 1px solid rgba(255, 255, 255, 0.5);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: 0.3s;
            backdrop-filter: blur(5px);
        }

        .hero-arrow-btn:hover { background: var(--klnt-gold); color: var(--klnt-blue); border-color: var(--klnt-gold); }

        /* Image Buttons (Thumbnails) at Bottom Right */
        .hero-thumbnails {
            position: absolute;
            bottom: 30px;
            right: 30px;
            z-index: 10;
            display: flex;
            gap: 10px;
        }

        .thumb-btn {
            width: 100px; height: 50px;
            object-fit: cover;
            border: 2px solid rgba(255,255,255,0.5);
            cursor: pointer;
            transition: all 0.4s ease;
            opacity: 0.6;
            border-radius: 4px;
        }
        .thumb-btn:hover { opacity: 1; }
        .thumb-btn.active-thumb {
            height: 80px;
            border-color: var(--klnt-gold);
            opacity: 1;
            transform: translateX(-10px);
            box-shadow: 0 0 10px rgba(0,0,0,0.5);
        }

        @media (min-width: 992px) { .hero-thumbnails { flex-direction: column; } }
        @media (max-width: 991px) {
            .hero-thumbnails { flex-direction: row; bottom: 80px; right: 15px; }
            .thumb-btn { width: 60px; height: 40px; }
            .thumb-btn.active-thumb { height: 60px; transform: translateY(-5px); }
            .hero-custom-nav { bottom: 15px; left: 15px; }
            .hero-arrow-btn { width: 40px; height: 40px; }
        }

        /* --- About Section (Enhanced) --- */

        #about p {
            transition: transform 0.4s ease, color 0.4s ease;
        }

        #about p:hover {
            transform: translateY(-4px);
            color: var(--text-dark);
        }

        .about-img-wrapper {
            overflow: hidden;
            border-radius: 12px;
        }

        .about-img-wrapper img {
            transition: transform 0.6s ease, box-shadow 0.6s ease;
        }

        .about-img-wrapper:hover img {
            transform: scale(1.06);
            box-shadow: 0 20px 40px rgba(0,0,0,0.15);
        }
        .mission-vision-card {
            background: #f7f7f7;
            padding: 20px;
            border-left: 4px solid var(--klnt-gold);
            box-shadow: 0 10px 30px rgba(0,0,0,0.05);
            height: 100%;
            transition: transform 0.4s ease, box-shadow 0.4s ease;
        }
        .mission-vision-card:hover {
                 /*transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0,0,0,0.1);*/
                 transform: translateY(-8px);
                 box-shadow: 0 25px 50px rgba(0,0,0,0.12);
                  }
        .mv-icon { font-size: 2.5rem; color: var(--klnt-blue); margin-bottom: 20px; }

        /* --- Objectives List Styling --- */
        .objectives-list .list-group-item {
            border: none;
            padding: 15px 0;
            border-bottom: 1px solid #eee;
            font-size: 1.05rem;
        }
        .objectives-list .list-group-item:last-child { border-bottom: none; }
        .check-icon {
            color: var(--klnt-gold-dark);
            margin-right: 15px;
            font-size: 1.2rem;
        }

        /* --- Target Groups Card Styling --- */
        .target-group-card {
            background: var(--bg-light);
            border-radius: 15px;
            padding: 15px;
            height: auto;
            border: 1px solid #eee;
        }
        .tg-item {
            display: flex;
            align-items: center;
            margin-bottom: 8px;
            background: white;
            padding: 5px 10px;
            border-radius: 10px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.03);
            transition: 0.3s;
        }
        .tg-item:hover {
            transform: translateX(5px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.08);
        }
        .tg-icon-box {
            width: 40px;
            height: 40px;
            background: rgba(0, 51, 102, 0.1);
            color: var(--klnt-gold-dark);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 15px;
            flex-shrink: 0;
        }


        .objectives-list li {
            transition: transform 0.3s ease, background 0.3s ease;
            border-radius: 8px;
        }

        .objectives-list li:hover {
            transform: translateX(6px);
            background: rgba(255,255,255,0.05);
        }

        /* --- CEO Section --- */
        .ceo-section {
            background: var(--bg-light);
            padding: 60px 0;
            border-radius: 20px;
            margin-top: 50px;
            box-shadow: inset 0 0 20px rgba(0,0,0,0.03);
        }
        .ceo-img-container {
            position: relative;
            display: inline-block;
        }
        .ceo-img {
            width: 150px; height: 150px;
            object-fit: cover;
            border-radius: 50%;
            border: 5px solid white;
            box-shadow: 0 10px 20px rgba(0,0,0,0.15);
            transition: transform 0.5s ease, box-shadow 0.5s ease;
            z-index: 2;
            position: relative;
        }
        .ceo-img-bg {
            position: absolute;
            top: -10px; left: -10px;
            width: 150px; height: 150px;
            border-radius: 50%;
            background: var(--klnt-gold);
            z-index: 1;
        }

        .ceo-img-container:hover .ceo-img {
            transform: scale(1.08);
            box-shadow: 0 20px 35px rgba(0,0,0,0.25);
        }
        .ceo-quote {
            font-size: 1.5rem;
            color: var(--klnt-blue);
            font-weight: 300;
            font-style: italic;
        }
        .ceo-quote::before { content: '\f10d'; font-family: 'Font Awesome 6 Free'; font-weight: 900; margin-right: 15px; color: var(--klnt-gold-dark); }

        /* --- Programs Section --- */
        .program-card {
            background: white; border-radius: 15px; padding: 30px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.05);
            transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            border-bottom: 4px solid transparent; height: 100%;
        }
        .program-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.15); border-bottom: 4px solid var(--klnt-blue); }
        .program-icon { font-size: 3rem; color: var(--klnt-blue); margin-bottom: 20px; }

        /* --- Partners Slider --- */
        .partner-logo {
            filter: grayscale(20%);
            opacity: 0.8;
            transition: all 0.4s ease;
            width: 120px; 
            height: 100px;
            margin: 0 auto;
            display: block;
        }
        .swiper-slide:hover .partner-logo {
            filter: grayscale(0%);
            opacity: 1;
            transform: scale(1.1);
        }
        .partner-name {
            position: absolute;
            bottom: 0; left: 0; width: 100%;
            background: rgba(0,0,0,0.8);
            color: white;
            text-align: center;
            padding: 5px;
            font-size: 0.8rem;
            opacity: 0;
            transition: 0.3s;
            transform: translateY(10px);
        }
        .swiper-slide:hover .partner-name {
            opacity: 1; transform: translateY(0);
        }

        /* --- Testimonials Section --- */
        .testimonial-card {
            background: white;
            padding: 40px;
            border-radius: 20px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.08);
            text-align: center;
            margin: 10px;
            border: 1px solid #eee;
            transition: 0.3s;
        }
        .testimonial-card:hover { transform: translateY(-10px); border-color: var(--klnt-gold); }
        .testimonial-img {
            width: 80px; height: 80px;
            border-radius: 50%;
            object-fit: cover;
            margin-bottom: 15px;
            border: 3px solid var(--klnt-gold);
        }
        .testimonial-text {
            font-style: italic;
            color: var(--text-light);
            font-size: 1rem;
            line-height: 1.6;
        }

        /* --- Events Slider Section --- */
        .event-card {
            border: none; box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            border-radius: 10px; overflow: hidden; height: 100%; background: white;
        }
        .event-date-badge {
            position: absolute; top: 15px; left: 15px; background: var(--klnt-gold);
            color: var(--klnt-blue); padding: 10px 15px; border-radius: 8px;
            text-align: center; font-weight: bold; line-height: 1.2;
        }
        .event-status { font-size: 0.8rem; padding: 4px 10px; border-radius: 20px; font-weight: 600; }
        .status-upcoming { background: #e3f2fd; color: #1976d2; }
        .status-ongoing { background: #e8f5e9; color: #2e7d32; }

        /* --- Project Slider Section --- */
        .project-card-slider {
            background: #fff; border-radius: 10px; overflow: hidden;
            box-shadow: 0 4px 10px rgba(0,0,0,0.08); border: 1px solid #eee;
            transition: 0.3s; height: auto; display: flex; flex-direction: column;
        }
        .project-card-slider:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.12); }
        .project-details { padding: 20px; flex-grow: 1; }
        .project-contact-row { background: var(--bg-light); padding: 15px; font-size: 0.85rem; }
        .project-contact-row a { color: var(--klnt-blue); font-weight: 600; display: block; margin-bottom: 5px; }
        .project-contact-row a:hover { color: var(--klnt-gold-dark); }

        /* --- Gallery Slider Section --- */
       .gallery-item {
            position: relative;
            cursor: pointer;
            border-radius: 10px;
            overflow: hidden;
            height: 300px;
            background: #000;
        }

        .gallery-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: 0.4s;
        }

        .gallery-overlay {
            position: absolute;
            inset: 0;
            background: rgba(0, 51, 102, 0.7);
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: 0.3s;
        }

        .gallery-item:hover .gallery-overlay {
            opacity: 1;
        }

        .gallery-item:hover img {
            transform: scale(1.1);
        }

        /* --- Blog Slider Section --- */
        .blog-card {
            background: white; border-radius: 10px; overflow: hidden;
            box-shadow: 0 4px 10px rgba(0,0,0,0.08); border: 1px solid #eee;
        }
        .blog-content { padding: 20px; }
        .blog-date { color: var(--klnt-gold-dark); font-size: 0.9rem; font-weight: 600; }

        /* --- Contact Section --- */
        .contact-info-box {
            background: var(--klnt-blue); color: white; padding: 40px; border-radius: 10px; height: 100%;
        }
        .contact-icon {
            width: 50px; height: 50px; background: rgba(255,255,255,0.1);
            border-radius: 50%; display: flex; align-items: center; justify-content: center;
            margin-right: 15px; font-size: 1.2rem; color: var(--klnt-gold);
        }

        /* --- Footer --- */
        footer {
            background: #000; color: white; padding: 60px 0 20px; font-size: 0.95rem;
        }
        footer h5 { color: white; margin-bottom: 25px; }
        footer a { color: #ccc; display: block; margin-bottom: 10px; }
        footer a:hover { color: var(--klnt-gold); padding-left: 5px; }
        .footer-social a {
            display: inline-flex; width: 40px; height: 40px; background: #222; color: white;
            align-items: center; justify-content: center; border-radius: 50%; margin-right: 10px; transition: 0.3s;
        }
        .footer-social a:hover { background: var(--klnt-gold); color: var(--klnt-blue); transform: translateY(-3px); }

        /* --- Bottom Action Bar --- */
        .bottom-action-bar {
            position: fixed; bottom: 0; left: 0; width: 100%; z-index: 1000;
            background: white; box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        }
        .mobile-nav-btn {
            flex: 1; text-align: center; padding: 10px 0; color: var(--text-dark); font-size: 0.8rem;
            border-right: 1px solid #eee; background: white;
        }
        .mobile-nav-btn:last-child { border-right: none; }
        .mobile-nav-btn i { display: block; font-size: 1.2rem; margin-bottom: 2px; color: var(--klnt-blue); }

        /* Desktop Floating Buttons */
        .desktop-floating-btn {
            position: fixed; bottom: 30px; width: 50px; height: 50px; border-radius: 50%;
            display: flex; align-items: center; justify-content: center; color: white;
            font-size: 1.5rem; box-shadow: 0 4px 15px rgba(0,0,0,0.3); z-index: 999; transition: 0.3s;
        }
        .btn-wa { left: 30px; background: #25D366; }
        .btn-scroll { right: 30px; background: var(--klnt-blue); opacity: 0; pointer-events: none; }
        .btn-scroll.visible { opacity: 1; pointer-events: all; }
        .desktop-floating-btn:hover { transform: scale(1.1); }

        /* Swiper Navigation for sections */
        .swiper-section-nav {
            position: absolute; top: 40px; right: 0; z-index: 5; display: flex; gap: 10px;
        }
        .section-nav-btn {
            width: 40px; height: 40px; border-radius: 50%; background: var(--klnt-blue);
            color: white; border: none; display: flex; align-items: center; justify-content: center; transition: 0.3s;
        }
        .section-nav-btn:hover { background: var(--klnt-gold); color: var(--klnt-blue); }

        /* Responsive Visibility */
        @media (max-width: 991px) {
            .desktop-only { display: none !important; }
            .hero-title { font-size: 2.2rem; }
            .section-title h2 { font-size: 2rem; }
        }
        @media (min-width: 992px) { .mobile-only { display: none !important; } }

        /* Modal Lightbox */
        .lightbox-modal .modal-content { background: transparent; border: none; }
        .lightbox-modal .modal-body { padding: 0; text-align: center; position: relative; }
        .lightbox-img { max-width: 100%; max-height: 85vh; border-radius: 5px; box-shadow: 0 0 20px rgba(0,0,0,0.5); }
        .lightbox-caption { color: white; margin-top: 10px; text-shadow: 1px 1px 2px black; }
        .lb-control {
            position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.5);
            color: white; width: 40px; height: 40px; border-radius: 50%;
            display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 10;
        }
        .lb-prev { left: -20px; }
        .lb-next { right: -20px; }
        .lb-close { position: absolute; top: -40px; right: 0; color: white; font-size: 2rem; cursor: pointer; }

    .imgBig {
    position: relative;
   /* change path */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* 🔥 stack / parallax effect */
    padding: 100px 0;
    overflow: hidden;
}

/* Dark overlay */
.imgBig .bg-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: ;
}

.imgBig .container {
    z-index: 1;
}


.stats-section {
    background: url('/static/images/parallax-bg.jpg') center/cover fixed no-repeat;
    position: relative;
}

.stats-section .overlay {
    background: rgba(0, 0, 0, 0.6);
    padding: 90px 0;
}

/* Glass cards */
.stat-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    padding: 35px 20px;
    transition: all 0.35s ease;
    height: 100%;
}

/* Hover pop effect */
.stat-card:hover {
    transform: translateY(-12px) scale(1.04);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.stat-card h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-card p {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    opacity: 0.9;
}
