/* =========================================
   1. GLOBAL VARIABLES & RESET
   ========================================= */
:root {
    --gini-blue: #0d2e52; /* Deep Navy */
    --gini-green: #76c043; /* Parrot Green */
    --gini-light-bg: #f8f9fa;
}

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

/* =========================================
   2. HEADER & NAVIGATION
   ========================================= */
/* Top Bar */
.top-bar {
    background-color: var(--gini-blue);
    color: white;
    font-size: 0.9rem;
    padding: 8px 0;
}
.top-bar a {
    color: white;
    text-decoration: none;
    margin-right: 15px;
}

/* Navbar */
.navbar {
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    background: white;
    padding: 15px 0;
}
.navbar-brand {
    font-weight: 700;
    color: var(--gini-blue);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}
.navbar-brand img {
    height: 50px;
    margin-right: 10px;
}
.nav-link {
    color: #333;
    font-weight: 500;
    margin: 0 10px;
}
.nav-link:hover {
    color: var(--gini-green);
}
.dropdown-menu {
    border-top: 3px solid var(--gini-green);
}

/* =========================================
   3. HERO SECTION (HOME)
   ========================================= */
.hero-slider-section {
    background: linear-gradient(to right, #ffffff, #f0f8ff);
    padding-top: 60px;
    padding-bottom: 20px;
    position: relative;
}
.hero-heading {
    font-weight: 700;
    color: var(--gini-blue);
    font-size: 3rem;
    line-height: 1.2;
}

/* Carousel Controls */
.carousel-item {
    transition: transform 0.6s ease-in-out;
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: var(--gini-green);
    border-radius: 50%;
    padding: 25px;
    background-size: 50%;
}

/* =========================================
   4. COMPONENT EFFECTS (BUTTONS & IMAGES)
   ========================================= */
/* 3D Image Hover Effect */
.hover-3d-img {
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.hover-3d-img:hover {
    transform: scale(1.02) translateY(-10px);
    box-shadow: 0 19px 38px rgba(0,0,0,0.30), 0 15px 12px rgba(0,0,0,0.22);
}

/* 3D Button Effects */
.btn-gini-green {
    background-color: var(--gini-green);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(118, 192, 67, 0.4), 0 3px 6px rgba(0,0,0,0.1);
    transition: all 0.3s;
}
.btn-gini-green:hover {
    transform: translateY(-3px);
    background-color: #65a836;
    color: white;
    box-shadow: 0 8px 20px rgba(118, 192, 67, 0.5), 0 6px 6px rgba(0,0,0,0.15);
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    border: none;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4), 0 3px 6px rgba(0,0,0,0.1);
    transition: all 0.3s;
}
.btn-whatsapp:hover {
    transform: translateY(-3px);
    color: white; /* Fixed: ensure text stays white */
    background-color: #20bd5a;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.5), 0 6px 6px rgba(0,0,0,0.15);
}

/* =========================================
   5. MARQUEE / RUNNING REEL
   ========================================= */
.marquee-wrapper {
    background: var(--gini-blue);
    padding: 60px 0;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-track {
    display: inline-flex;
    gap: 30px;
    animation: scroll-left 30s linear infinite;
}

.course-card {
    background: white;
    border-radius: 15px;
    width: 300px;
    padding: 20px;
    flex-shrink: 0;
    box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border-bottom: 5px solid var(--gini-green);
    white-space: normal;
}

.marquee-wrapper:hover .marquee-track {
    animation-play-state: paused;
}

.course-card:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 19px 38px rgba(0,0,0,0.30), 0 15px 12px rgba(0,0,0,0.22);
    z-index: 10;
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* =========================================
   6. FEATURES & SECTIONS
   ========================================= */
.features-section {
    padding: 80px 0;
    background: #fff;
}
.feature-box {
    padding: 30px;
    border-radius: 15px;
    background: white;
    border: 1px solid #f0f0f0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    transition: all 0.3s;
    height: 100%;
    text-align: center;
}
.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
}
.feature-icon {
    font-size: 3rem;
    color: var(--gini-green);
    margin-bottom: 20px;
}

/* Subjects Section */
.subjects-section {
    padding: 60px 0 150px 0;
    background: #f4f6f9;
    position: relative;
}
.subject-pill {
    background: white;
    padding: 15px 25px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
    font-weight: 600;
    color: var(--gini-blue);
    transition: all 0.3s;
    margin-bottom: 20px;
}
.subject-pill:hover {
    background: var(--gini-blue);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
}

/* =========================================
   7. FLOATING CTA & FOOTER
   ========================================= */
.floating-cta-wrapper {
    margin-bottom: -90px;
    position: relative;
    z-index: 10;
}
.cta-card {
    background: linear-gradient(135deg, var(--gini-blue) 0%, #163d66 100%);
    border-radius: 20px;
    padding: 30px 50px;
    color: white;
    box-shadow: 0 25px 50px rgba(0,0,0,0.4), 0 15px 15px rgba(0,0,0,0.2);
    text-align: center;
    max-width: 850px;
    margin: 0 auto;
}

footer {
    background: #111;
    color: #aaa;
    padding-top: 140px;
    padding-bottom: 20px;
    position: relative;
    z-index: 1;
}
footer h5 {
    color: white;
    margin-bottom: 20px;
    font-weight: 600;
}
footer a {
    color: #aaa;
    text-decoration: none;
    transition: 0.3s;
    display: block;
    margin-bottom: 10px;
}
footer a:hover {
    color: var(--gini-green);
    padding-left: 5px;
}

/* Floating Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--gini-green);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    z-index: 1000;
    cursor: pointer;
    transition: 0.3s;
}
.chat-widget:hover {
    transform: scale(1.1);
}

/* =========================================
   8. ABOUT US PAGE STYLES
   ========================================= */
/* Single Banner Container */
.about-hero-banner {
    background-image: url('https://img.freepik.com/free-photo/business-people-meeting-looking-presentation_1262-3768.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 400px;
    position: relative;
    width: 100%;
}

/* Dark Overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 46, 82, 0.7); /* Dark Blue tint */
    z-index: 1;
}

.about-hero-banner .container {
    z-index: 2;
}

.hero-text-shadow {
    text-shadow: 0 4px 8px rgba(0,0,0,0.6);
}

.about-image-wrapper img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 20px;
}

/* =========================================
   9. FANCY POPUP MODAL STYLES
   ========================================= */
.fancy-modal-bg {
    background: linear-gradient(135deg, var(--gini-blue) 0%, #05162b 100%);
    border: 2px solid var(--gini-green);
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(118, 192, 67, 0.4);
    overflow: hidden;
}

.icon-glow-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 0 20px rgba(118, 192, 67, 0.6);
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(118, 192, 67, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(118, 192, 67, 0); }
    100% { box-shadow: 0 0 0 0 rgba(118, 192, 67, 0); }
}

.decorative-circle {
    position: absolute;
    top: -50px;
    left: -50px;
    width: 150px;
    height: 150px;
    background: var(--gini-green);
    opacity: 0.1;
    border-radius: 50%;
    z-index: 1;
}

/* =========================================
   10. IMPORTANT: Z-INDEX FIXES
   ========================================= */
/* This fixes the "blur but no popup" issue */

/* Force modal backdrop (the blur) to be high */
.modal-backdrop {
    z-index: 10000 !important;
}

/* Force modal content to be higher than backdrop */
.modal {
    z-index: 10001 !important;
}

/* =========================================
   FIREFOX SPECIFIC FIXES
   ========================================= */

/* 1. Force the modal wrapper to be visible when open */
.modal.show {
    display: block !important; 
    padding-right: 0 !important; /* Prevents layout shift */
}

/* 2. Force the actual dialog box to be on top */
.modal-dialog {
    z-index: 10002 !important; /* Higher than modal wrapper */
    transform: none !important; /* Disable slide effect to prevent rendering glitches */
}

/* 3. Ensure content has a solid background (Just in case gradients fail) */
.fancy-modal-bg {
    background-color: #0d2e52; /* Fallback color */
    background-image: linear-gradient(135deg, var(--gini-blue) 0%, #05162b 100%);
}

/* Service Card Styling inside Modal */
.bg-dark-transparent {
    background-color: rgba(255, 255, 255, 0.05); /* Very subtle transparent white */
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px); /* Lift effect on hover */
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--gini-green) !important; /* Glow green on hover */
}

/* =========================================
   HIGHLIGHTED CLOSE BUTTON (OPPOSITE COLOR)
   ========================================= */
.btn-close-highlight {
    background: transparent;
    /* #ff4757 is a bright red/pink that contrasts perfectly with Dark Blue */
    border: 2px solid #ff4757; 
    color: #ff4757;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-close-highlight:hover {
    background: #ff4757;
    color: white;
    /* Red Glow Effect on Hover */
    box-shadow: 0 0 20px rgba(255, 71, 87, 0.6); 
    transform: translateY(-2px);
}


/* =========================================
   VIDEO CARD STYLES (3D Effect)
   ========================================= */

.video-card {
    border-radius: 20px;
    background: white;
    /* Base Shadow - Subtle */
    box-shadow: 0 10px 20px rgba(0,0,0,0.08), 0 6px 6px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); /* Smooth Physics */
    overflow: hidden; /* Ensures image doesn't bleed out of rounded corners */
}

/* The 3D Lift on Hover */
.video-card:hover {
    transform: translateY(-10px) scale(1.02); /* Lift Up and Slight Zoom */
    /* Deep Shadow - 3D Pop */
    box-shadow: 0 20px 40px rgba(0,0,0,0.15), 0 15px 12px rgba(0,0,0,0.10);
    z-index: 5;
}

/* Image Wrapper for Overlay Effect */
.video-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 200px; /* Fixed height for uniformity */
}

.video-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Image Zoom inside card on hover */
.video-card:hover .video-img-wrapper img {
    transform: scale(1.1);
}

/* Play Icon Overlay */
.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    color: white;
    font-size: 3rem;
    opacity: 0; /* Hidden by default */
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
}

/* Show Play Icon on Hover */
.video-card:hover .play-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}


/* =========================================
   CONTACT PAGE STYLES
   ========================================= */

/* Contact Info Cards (Left Column) */
.contact-info-card {
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
    border-color: var(--gini-green);
}

.icon-box {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Map Container styling */
.map-container iframe {
    filter: grayscale(20%) contrast(95%); /* Subtle professional map look */
    transition: all 0.3s ease;
}

.map-container:hover iframe {
    filter: grayscale(0%) contrast(100%);
}

/* Form Styling Tweaks */
.form-floating > .form-control:focus,
.form-floating > .form-select:focus {
    border-color: var(--gini-green);
    box-shadow: 0 0 0 0.25rem rgba(118, 192, 67, 0.25);
}

/* Custom Accordion (FAQ Section) */
.custom-accordion .accordion-button {
    background-color: white;
    color: var(--gini-blue);
    box-shadow: none; /* Remove default bootstrap focus shadow */
}

.custom-accordion .accordion-button:not(.collapsed) {
    color: var(--gini-green);
    background-color: rgba(118, 192, 67, 0.1); /* Light green background when open */
    box-shadow: inset 0 -1px 0 rgba(0,0,0,.125);
}

.custom-accordion .accordion-button:focus {
    border-color: var(--gini-green);
    box-shadow: none; /* Clean focus state */
}

/* Change the default blue accordion icon to green */
.custom-accordion .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2376c043'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.custom-accordion .accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2376c043'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transform: rotate(-180deg);
}


/* content scroll in video card */
/* Fixed Height Wrapper for Descriptions */
.desc-wrapper {
    height: 80px; /* Adjust this to fit exactly 3 or 4 lines */
    overflow: hidden;
    position: relative;
    margin-bottom: 5px;
    transition: background 0.3s;
}

/* When "Read More" is clicked, allow scrolling */
.desc-wrapper.scroll-active {
    overflow-y: auto; /* Enables vertical scrollbar */
    padding-right: 5px; /* Space for scrollbar */
}

/* Custom Thin Scrollbar (Webkit browsers like Chrome/Edge) */
.desc-wrapper::-webkit-scrollbar {
    width: 4px;
}
.desc-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1; 
    border-radius: 4px;
}
.desc-wrapper::-webkit-scrollbar-thumb {
    background: var(--gini-green); /* Your green color */
    border-radius: 4px;
}
.desc-wrapper::-webkit-scrollbar-thumb:hover {
    background: #5a9e2f;
}

/* The Read More Button */
.read-more-btn {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gini-blue);
    cursor: pointer;
    display: none; /* Hidden by default, JS will show it if needed */
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.read-more-btn:hover {
    text-decoration: underline;
    color: var(--gini-green);
}


/* read more button */

/* The Read More Pill Button */
.read-more-btn {
    font-size: 0.7rem;          /* Very small text */
    font-weight: 600;
    color: var(--gini-blue);
    background-color: #e9ecef;  /* Light grey background */
    padding: 2px 10px;          /* Skinny padding for "pill" look */
    border-radius: 20px;        /* Full rounded corners */
    cursor: pointer;
    display: none;              /* Hidden by default (JS controls this) */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: fit-content;         /* Only as wide as the text */
    transition: all 0.2s ease;
    border: 1px solid transparent; /* Prevents jumping on hover */
}

/* Hover Effect */
.read-more-btn:hover {
    background-color: var(--gini-green);
    color: white;
    text-decoration: none;      /* No underline */
    transform: translateY(-1px); /* Slight lift */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

 .map-container iframe {
        width: 100% !important;
        height: 300px !important; /* Matches your desired height */
        border: 0;
    }


    /*  The Button Design move page top */
    #scrollToTopBtn {
        display: none; /* Hidden by default */
        position: fixed; /* Fixed/sticky position */
        bottom: 30px; /* Place the button at the bottom of the page */
        right: 30px; /* Place the button 30px from the right */
        z-index: 99; /* Make sure it does not overlap */
        border: none;
        outline: none;
        background-color: var(--gini-blue, #0d6efd); /* Use your brand color or Bootstrap blue */
        color: white;
        cursor: pointer;
        padding: 15px;
        border-radius: 50%; /* Rounded circle */
        width: 50px;
        height: 50px;
        font-size: 18px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        transition: opacity 0.3s, transform 0.3s;
    }

    /* Hover Effect */
    #scrollToTopBtn:hover {
        background-color: #0a58ca; /* Darker blue */
        transform: translateY(-3px); /* Slight lift */
    }
