/* --- Variables & Reset --- */
:root {
    --primary: #004d99;       /* Deep Blue */
    --primary-dark: #002a55;
    --accent: #ff8800;        /* Vibrant Orange */
    --accent-hover: #e67e00;
    --text-dark: #2c3e50;
    --text-light: #666;
    --bg-light: #f8faff;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* --- Preloader Styles --- */
#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 9999; /* Stays on top of everything */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* Hide loader when loaded */
#loader-wrapper.loaded {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-content p {
    margin-top: 20px;
    font-family: 'Poppins', sans-serif;
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 1px;
    animation: pulseText 1.5s infinite;
}

/* The Book Animation */
.book {
    border: 4px solid var(--primary);
    width: 60px;
    height: 45px;
    position: relative;
    perspective: 150px;
    border-radius: 3px;
    background: white; /* Cover of the book */
}

.page {
    display: block;
    width: 30px; /* Half the width of the book */
    height: 45px; /* Full height */
    border: 4px solid var(--accent); /* Orange pages */
    border-left: 1px solid var(--accent);
    margin: 0;
    position: absolute;
    right: -4px; /* Align to the right side */
    top: -4px;
    overflow: hidden;
    background: var(--accent);
    transform-origin: left;
    animation: flip 2s infinite linear;
}

.page:nth-child(1) { animation-delay: 0s; }
.page:nth-child(2) { animation-delay: 0.6s; }
.page:nth-child(3) { animation-delay: 1.2s; }

/* Animation Keyframes */
@keyframes flip {
    0% { transform: rotateY(0deg); opacity: 1; }
    50% { transform: rotateY(-180deg); opacity: 0.8; }
    100% { transform: rotateY(-180deg); opacity: 0; }
}

@keyframes pulseText {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}



h1, h2, h3, h4, h5 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--primary);
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
a { text-decoration: none; transition: var(--transition); }
ul { list-style: none; }

/* --- Header --- */
.main-header {
    background: var(--white);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-content { display: flex; justify-content: space-between; align-items: center; }

.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 50px; }
.logo h1 { font-size: 1.3rem; color: var(--primary-dark); }
.highlight { color: var(--accent); }

.main-nav ul { display: flex; gap: 30px; }
.main-nav a { color: var(--text-dark); font-weight: 600; font-size: 0.95rem; }
.main-nav a:hover { color: var(--accent); }

/* --- Buttons --- */
.cta-button {
    background: linear-gradient(135deg, var(--accent), #ff6600);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 136, 0, 0.3);
    border: none;
    cursor: pointer;
    display: inline-block;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 136, 0, 0.4);
}

.full-width { width: 100%; }

/* --- Hero Section (Animated) --- */
.hero-section {
    position: relative;
    height: 85vh; /* Almost full screen */
    background: url('hero-bg.jpg') center/cover no-repeat; /* Ensure you have this image */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(0, 77, 153, 0.9), rgba(0, 30, 60, 0.85));
}

.hero-content { position: relative; z-index: 2; max-width: 800px; }
.hero-content h2 { color: var(--white); font-size: 3rem; margin-bottom: 20px; line-height: 1.2; }
.hero-content p { font-size: 1.2rem; margin-bottom: 30px; opacity: 0.9; }

/* Hero Entrance Animations */
.animate-text { opacity: 0; transform: translateY(30px); animation: fadeInUp 0.8s forwards; }
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

/* --- Section Titles --- */
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 2.2rem; margin-bottom: 10px; }
.underline { width: 80px; height: 4px; background: var(--accent); margin: 0 auto; border-radius: 2px; }

/* --- Focus Areas (Cards) --- */
.focus-areas { padding: 80px 20px; background: var(--white); }
.pillar-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }

.pillar {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    text-align: center;
    transition: var(--transition);
    border: 1px solid #eee;
    position: relative;
    overflow: hidden;
}

.pillar:hover { transform: translateY(-10px); border-color: var(--accent); }
.pillar::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 5px;
    background: var(--accent); transform: scaleX(0); transition: var(--transition);
}
.pillar:hover::before { transform: scaleX(1); }

.icon-box {
    width: 70px; height: 70px; background: rgba(0, 77, 153, 0.1);
    color: var(--primary); font-size: 30px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px; transition: var(--transition);
}

.pillar:hover .icon-box { background: var(--primary); color: var(--white); }
.subtitle { color: var(--accent); font-weight: 600; font-size: 0.9rem; margin-bottom: 15px; }
.read-more { color: var(--primary); font-weight: 600; font-size: 0.9rem; margin-top: 20px; display: inline-block; }

/* --- Amenities (Grid with Hover) --- */
.amenities-section { padding: 80px 20px; background: var(--bg-light); }
.amenities-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; }

.amenity-item {
    background: var(--white); padding: 30px; border-radius: 10px;
    text-align: center; box-shadow: 0 5px 15px rgba(0,0,0,0.03); transition: var(--transition);
}
.amenity-item:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.amenity-item i { font-size: 2.5rem; color: var(--accent); margin-bottom: 15px; }


/* --- Horizontal Testimonials (Instagram Style) --- */

.testimonials-section {
    padding: 80px 0;
    background-color: var(--bg-light); /* Uses your global light grey variable */
    overflow: hidden;
    text-align: center;
}

/* "Swipe to see more" Hint Animation */
.scroll-hint {
    font-size: 0.9rem;
    color: #888;
    margin-top: -10px;
    margin-bottom: 20px;
    animation: bounceRight 2s infinite;
}

@keyframes bounceRight {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

/* Wrapper to handle padding for shadows */
.scroller-wrapper {
    width: 100%;
    padding: 30px 0 50px 0; /* Top padding allows space for the popping image */
}

/* The Scrolling Track */
.testimonial-track {
    display: flex;
    gap: 30px;
    overflow-x: auto; /* Enables horizontal scroll */
    padding: 0 20px;
    scroll-snap-type: x mandatory; /* Makes cards snap to center */
    -webkit-overflow-scrolling: touch; /* Smooth scroll on iOS */
    scrollbar-width: none; /* Hide scrollbar Firefox */
}

/* Hide scrollbar for Chrome/Safari */
.testimonial-track::-webkit-scrollbar {
    display: none;
}

/* Individual Card Design */
.testimonial-card {
    min-width: 300px; /* Fixed width prevents squashing */
    max-width: 300px;
    background: var(--white);
    border-radius: 15px;
    padding: 0 25px 30px 25px; /* Top padding is 0 because avatar handles it */
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    text-align: center;
    scroll-snap-align: center; /* Ensures card stops in the middle */
    transition: transform 0.3s ease;
    border: 1px solid #f0f0f0;
    margin-top: 40px; /* Pushes card down to make room for the head */
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent); /* Highlights border on hover */
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

/* --- Professional Circular Avatar --- */
.avatar-box {
    width: 85px;
    height: 85px;
    /* This negative margin pulls the image UP so it sits on the border */
    margin: -42.5px auto 20px; 
    border-radius: 50%; /* Perfect circle */
    border: 4px solid var(--white); /* Thick white border */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    background-color: #f0f2f5; /* Light grey background for transparency */
    position: relative;
    z-index: 2;
}

.avatar-box img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures photo fills circle without distorting */
}

/* Card Text Styling */
.stars {
    color: #ffb400; /* Gold color */
    letter-spacing: 2px;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.card-content p {
    font-style: italic;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.student-info h5 {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 3px;
    font-size: 1.1rem;
}

.student-info small {
    color: #888;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Mobile Adjustment */
@media (max-width: 768px) {
    .testimonial-card {
        min-width: 280px; /* Slightly smaller cards on phone */
    }
}


/* --- Contact & Form Section --- */
.contact-section { padding: 80px 20px; background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: var(--white); }
.contact-container { display: flex; flex-wrap: wrap; gap: 50px; align-items: center; }

.contact-info-box { flex: 1; min-width: 300px; }
.contact-info-box h3 { color: var(--white); font-size: 2.5rem; margin-bottom: 20px; }
.info-list li { margin-bottom: 15px; display: flex; align-items: center; gap: 15px; font-size: 1.1rem; }
.info-list i { color: var(--accent); }

/* --- New WhatsApp Card Styling --- */
.whatsapp-card {
    flex: 1;
    min-width: 300px;
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    text-align: center;
    border-top: 5px solid #25D366; /* WhatsApp Green Border */
}

.wa-header {
    margin-bottom: 20px;
}

.wa-header i {
    font-size: 4rem;
    color: #25D366;
    margin-bottom: 10px;
}

.whatsapp-card p {
    color: #666;
    margin-bottom: 30px;
}

.whatsapp-btn-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #25D366;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 15px 30px;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    width: 100%;
}

.whatsapp-btn-large:hover {
    background-color: #1ebe57;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

.wa-note {
    margin-top: 20px !important;
    color: #999 !important;
    font-size: 0.9rem;
}

/* --- BONUS: Floating Sticky Button --- */
.float-wa {
    position: fixed;
    width: 80px;
    height: 80px;
    bottom: 25px;
    right: 25px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 40px;
    box-shadow: 2px 2px 3px #999;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.float-wa:hover {
    background-color: #1ebe57;
    transform: scale(1.1);
}

/* Pulse Animation for the button */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Mobile Adjustment */
@media (max-width: 768px) {
    .float-wa {
        width: 70px;
        height: 70px;
        font-size: 47px;
        bottom: 15px;
        right: 15px;
    }
}



footer{
    margin:20px 0px;
    
}

/* --- Map & Location Section --- */
.map-section {
    padding: 80px 20px;
    background: var(--white);
}

.map-container {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    align-items: center;
}

.map-text {
    flex: 1;
    min-width: 300px;
}

.map-text .section-title.left-align {
    text-align: left;
    margin-bottom: 30px;
}

.map-text .section-title.left-align .underline {
    margin: 0; /* Aligns underline to the left */
}

.address-lead {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--text-light);
}

.address-box {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.location-icon {
    font-size: 2.5rem;
    color: var(--accent);
    background: rgba(255, 136, 0, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.address-box h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.address-box p {
    margin-bottom: 5px;
    color: var(--text-dark);
}

.hours-box {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    border-left: 4px solid var(--primary);
}

.hours-box h4 {
    margin-bottom: 10px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hours-box .closed {
    color: #e74c3c;
    font-weight: 600;
}

.secondary-btn {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: none;
}

.secondary-btn:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

/* Map Frame Styling */
.map-frame {
    flex: 1;
    min-width: 300px;
    height: 450px;
    background: #eee;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    border: 5px solid var(--white);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .map-container {
        flex-direction: column-reverse; /* Puts map on top of text on mobile if desired, or remove to keep text first */
    }
    
    .map-frame {
        height: 300px; /* Smaller map on mobile */
        width: 100%;
    }
}


/* --- Social Media (Icons Only) --- */
.social-section {
    padding: 60px 20px; /* Reduced padding for a tighter look */
    background-color: var(--white);
    text-align: center;
}

.social-icons-container {
    display: flex;
    justify-content: center;
    gap: 50px; /* Space between the two icons */
    margin-top: 30px;
}

.social-icon-box {
    font-size: 4rem; /* Makes icons nice and big */
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy effect */
    display: inline-block;
}

/* Instagram Gradient Color */
.social-icon-box.insta {
    background: -webkit-linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    /* Fallback color if gradient fails */
    color: #bc1888;
}

/* YouTube Red Color */
.social-icon-box.youtube {
    color: #FF0000;
}

/* Hover Effects */
.social-icon-box:hover {
    transform: scale(1.2) translateY(-10px); /* Grows and floats up */
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.2)); /* Adds a shadow below the icon */
}

/* Mobile Adjustment */
@media (max-width: 768px) {
    .social-icon-box {
        font-size: 3rem; /* Slightly smaller on phones */
        gap: 30px;
    }
}




.input-group { position: relative; margin-bottom: 25px; }
.input-group input, .input-group select {
    width: 100%; padding: 15px; border: 2px solid #eee; border-radius: 8px;
    font-family: inherit; font-size: 1rem; outline: none; transition: var(--transition);
    background: #fff;
}
.input-group label {
    position: absolute; left: 15px; top: 15px; color: #999;
    pointer-events: none; transition: var(--transition); background: #fff; padding: 0 5px;
}
.input-group input:focus, .input-group input:valid { border-color: var(--primary); }
.input-group input:focus ~ label, .input-group input:valid ~ label {
    top: -10px; font-size: 0.8rem; color: var(--primary); font-weight: 600;
}

/* --- Scroll Reveal Animation Class --- */
.reveal { opacity: 0; transform: translateY(50px); transition: all 1s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* --- Mobile Menu --- */
.menu-toggle { display: none; background: none; border: none; font-size: 1.5rem; color: var(--primary); cursor: pointer; }

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .main-nav {
        position: fixed; top: 70px; left: -100%; width: 100%; height: 100vh;
        background: var(--white); flex-direction: column; transition: 0.3s; padding: 20px;
    }
    .main-nav.active { left: 0; }
    .main-nav ul { flex-direction: column; text-align: center; }
    .nav-cta { display: none; }
    .hero-content h2 { font-size: 2rem; }
}
