@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-green: #92C48C;
    --primary-coral: #FF8F79;
    --light-bg: #F5F5F5;
    --coral: #FF8F79;
    --green: #92C48C;
    --dark: #2c3e50;
    --text-muted: #6B7280;
    --bg-main: #FFFFFF;

    --heading-font: 'Fredoka', sans-serif;
    --body-font: 'Poppins', sans-serif;
    
    --section-py: 100px;
}

@media (max-width: 1024px) { :root { --section-py: 80px; } }
@media (max-width: 768px) { :root { --section-py: 60px; } }

/* Home 2 specific root overrides */
.page-home-2 { --section-py: 70px; }
@media (max-width: 1024px) { .page-home-2 { --section-py: 60px; } }
@media (max-width: 768px) { .page-home-2 { --section-py: 50px; } }

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--body-font); color: var(--dark); background-color: var(--bg-main); line-height: 1.6; overflow-x: hidden; }
h1, h2, h3, h4, h5, h6, .navbar-brand, .font-heading { font-family: var(--heading-font); font-weight: 600; }
h1 { font-size: clamp(36px, 5vw, 72px); line-height: 1.1; }
h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.2; }
h3 { font-size: clamp(24px, 3vw, 36px); }
p { font-size: 16px; line-height: 1.7; }

/* Colors Utility */

.bg-light { background-color: var(--light-bg) !important; }


.text-primary-green { color: var(--primary-green) !important; }
.bg-primary-green { background-color: var(--primary-green) !important; }
.text-primary-coral { color: var(--primary-coral) !important; }
.bg-primary-coral { background-color: var(--primary-coral) !important; }

.text-coral { color: var(--coral) !important; }
.text-light-bg { color: var(--light-bg) !important; }


.text-green { color: var(--green) !important; }
.text-dark { color: var(--dark) !important; }
.bg-coral { background-color: var(--coral) !important; }
.bg-light-bg { background-color: var(--light-bg) !important; }


.bg-green { background-color: var(--green) !important; }

/* Activities */
.activity-card {
    border-radius: 24px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.activity-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}
.activity-img-wrapper {
    width: 100%;
    height: 280px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
}
.activity-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.container.position-relative.z-1.reveal-up.delay-100.show {
    padding: 34px 0px;
}
.activity-card:hover .activity-img-wrapper img {
    transform: scale(1.08);
}
.bg-light { background-color: #FFF0F2; }
.bg-light { background-color: #FFFBE6; }
.bg-light { background-color: #F0F7EF; }
.bg-light { background-color: #F9F2ED; }
.bg-light { background-color: #FFF0ED; }

/* Curriculum */
.curriculum-card {
    border-radius: 20px;
    padding: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    background: white;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.curriculum-card:hover {
    border-color: var(--coral);
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(255, 143, 121, 0.15);
}
.curriculum-img {
    width: 100%;
    height: 440px;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 15px;
}
.curriculum-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0;
    text-align: center;
    word-break: break-word;
}

/* Gallery Masonry to Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}
.gallery-grid .gallery-item {
    width: 100%;
    margin-bottom: 0;
}
.gallery-grid .image-wrapper {
    height: 460px;
    width: 100%;
    display: block;
}
.gallery-grid .image-wrapper img {
    height: 100% !important;
    width: 100% !important;
    object-fit: cover;
    object-position: center;
}
.gallery-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    color: white;
    font-size: 2rem;
    pointer-events: none;
}
.image-wrapper:hover .gallery-overlay { opacity: 1; }

/* Footer Links */
.footer-links-new a {
    color: var(--text-muted);
    text-decoration: none;
    display: block;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}
.footer-links-new a:hover {
    color: var(--coral);
    transform: translateX(5px);
}
.hover-text-coral:hover { color: var(--coral) !important; }
.fs-7 { font-size: 0.8rem; }
.icon-circle { transition: transform 0.3s ease; }
.icon-circle:hover { transform: translateY(-3px); }

/* Buttons */
.btn-apply { background-color: var(--coral); color: white; border-radius: 50px; padding: 12px 30px; font-weight: 600; border: 2px solid var(--coral); transition: all 0.3s ease; text-decoration: none; display: inline-block; }
.btn-apply:hover { background-color: transparent; color: var(--coral); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(255, 143, 121, 0.3); }
.btn-outline-coral { background-color: transparent; color: var(--coral); border-radius: 50px; padding: 12px 30px; font-weight: 600; border: 2px solid var(--coral); transition: all 0.3s ease; text-decoration: none; display: inline-block; }
.btn-outline-coral:hover { background-color: var(--coral); color: white; transform: translateY(-2px); }

/* Header */
.header { transition: padding 0.3s ease, box-shadow 0.3s ease; }
.header.scrolled { padding-top: 5px !important; padding-bottom: 5px !important; box-shadow: 0 4px 15px rgba(0,0,0,0.08) !important; }
.nav-item-link { color: var(--dark); text-decoration: none; font-weight: 500; font-size: 15px; position: relative; transition: color 0.3s; text-transform: uppercase; letter-spacing: 0.5px; margin: 0 10px; }
.nav-item-link:hover, .nav-item-link.active { color: var(--coral); }
.nav-item-link::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 3px; background-color: var(--coral); transition: width 0.3s ease; border-radius: 2px; }
.nav-item-link:hover::after, .nav-item-link.active::after { width: 100%; }

/* Sections Global */
.section-py { padding-top: var(--section-py); padding-bottom: var(--section-py); }
.tracking-wider { letter-spacing: 1.5px; }

/* Title Animations */
.section-heading .section-kicker { opacity: 0; transform: translateY(15px); display: inline-block; transition: opacity 0.6s ease, transform 0.6s ease; }
.section-heading h2 { opacity: 0; transform: translateY(25px); transition: opacity 0.6s ease 0.1s, transform 0.6s ease 0.1s; }
.section-heading::after { content: ""; display: block; width: 60px; height: 4px; background-color: var(--yellow); margin: 15px auto 0; border-radius: 4px; transform: scaleX(0); transition: transform 0.6s ease 0.2s; }
.section-heading.text-start::after { margin-left: 0; }
.section-heading p { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease 0.3s, transform 0.6s ease 0.3s; }
.section-heading.is-visible .section-kicker, .section-heading.is-visible h2, .section-heading.is-visible p { opacity: 1; transform: translateY(0); }
.section-heading.is-visible::after { transform: scaleX(1); }

/* Reveals */
.reveal, .reveal-up { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal-right { opacity: 0; transform: translateX(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal-scale { opacity: 0; transform: scale(0.9); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.show, .reveal-up.show, .reveal-left.show, .reveal-right.show, .reveal-scale.show { opacity: 1; transform: translateY(0) translateX(0) scale(1); }

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
/* Continuous Decorative Animations */
@keyframes floating { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes floating-slow { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes wiggle { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes swing { 0% { transform: rotate(4deg); } 50% { transform: rotate(-4deg); } 100% { transform: rotate(4deg); } }
@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } }

.decor-floating { position: absolute; pointer-events: none; z-index: 1; }
.icon-float { animation: floating 4s ease-in-out infinite; }
.icon-float-slow { animation: floating-slow 6s ease-in-out infinite; }
.icon-wiggle { animation: wiggle 3s ease-in-out infinite; }
.icon-swing { animation: swing 5s ease-in-out infinite; }
.icon-pulse { animation: pulse 3s infinite; }

@media (prefers-reduced-motion: reduce) {
    .icon-float, .icon-float-slow, .icon-wiggle, .icon-swing, .icon-pulse { animation: none !important; transform: none !important; }
    .reveal, .reveal-up, .reveal-left, .reveal-right, .reveal-scale { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* Specific elements */
.advantage-card, .program-card, .testi-card { transition: transform 0.3s ease, box-shadow 0.3s ease; border: 1px solid rgba(0,0,0,0.05); }
.advantage-card { border-radius: 24px; }
.program-card { border-radius: 30px; overflow: hidden; }
.advantage-card:hover, .program-card:hover { transform: translateY(-6px); box-shadow: 0 15px 30px rgba(0,0,0,0.08) !important; }
.program-card .prog-img { transition: transform 0.5s ease; border-top-left-radius: 30px; border-top-right-radius: 30px; }
.program-card:hover .prog-img { transform: scale(1.05); }

/* Curriculum Grid */
.curr-item { background: white; padding: 15px; border-radius: 20px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: transform 0.3s ease; }
.curr-item:hover { transform: translateY(-5px); }

/* Activities Grid */
.activity-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 250px; gap: 20px; }
.activity-box { border-radius: 24px; overflow: hidden; position: relative; box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.activity-box img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.activity-box:hover img { transform: scale(1.05); }
.box-large { grid-column: span 8; grid-row: span 2; }
.box-tall { grid-column: span 4; grid-row: span 2; }
.box-wide { grid-column: span 8; grid-row: span 1; }
.box-small { grid-column: span 4; grid-row: span 1; }
@media (max-width: 768px) { .activity-grid { display: flex; flex-direction: column; } .activity-box { height: 250px; } }

/* Gallery */
.gallery-card { border-radius: 20px; overflow: hidden; }
.gallery-card img { transition: transform 0.5s ease; min-height: 250px; object-fit: cover; object-position: top; }
.gallery-card:hover img { transform: scale(1.05); }
.gallery-overlay { background: rgba(44, 62, 80, 0.7); opacity: 0; transition: opacity 0.3s ease; }
.gallery-card:hover .gallery-overlay { opacity: 1; }
.filter-btn-group .btn { border-radius: 50px; border: 2px solid var(--coral); color: var(--coral); font-weight: 500; }
.filter-btn-group .btn.active, .filter-btn-group .btn:hover { background-color: var(--coral); color: white; }
.gallery-item.hide { display: none; }

/* Swiper */
.swiper-pagination-bullet { background-color: var(--coral); }
.swiper-pagination-bullet-active { width: 25px; border-radius: 10px; }

/* Accordion */
.accordion-item { border: none; margin-bottom: 15px; border-radius: 20px !important; overflow: hidden; box-shadow: 0 4px 10px rgba(0,0,0,0.03); }
.accordion-button { font-family: var(--heading-font); font-weight: 600; padding: 20px; background-color: white !important; color: var(--dark) !important; box-shadow: none !important; }
.accordion-button:not(.collapsed) { color: var(--coral) !important; }
.accordion-body { background-color: white; padding: 20px; padding-top: 0; color: var(--text-muted); }

/* Form */
.form-control, .form-select { border-radius: 15px; padding: 15px 20px; border: 1px solid #e2e8f0; background-color: #f8fafc; font-size: 15px; }
.form-control:focus, .form-select:focus { border-color: var(--coral); box-shadow: 0 0 0 4px rgba(255, 143, 121, 0.1); background-color: white; }

.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

/* Footer */
.footer-curved { background-color: var(--green); color: white; position: relative; margin-top: 100px; padding-top: 100px; }
.footer-curved::before { content: ''; position: absolute; top: -99px; left: 0; width: 100%; height: 100px; background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320" preserveAspectRatio="none"><path fill="%2392C48C" fill-opacity="1" d="M0,128L48,144C96,160,192,192,288,181.3C384,171,480,117,576,112C672,107,768,149,864,165.3C960,181,1056,171,1152,144C1248,117,1344,75,1392,53.3L1440,32L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom center; background-size: 100% 100%; }
.footer-links a { color: white; text-decoration: none; display: block; margin-bottom: 12px; transition: all 0.3s; }
.footer-links a:hover { color: var(--yellow); transform: translateX(5px); }
.social-circle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.2); color: white; transition: all 0.3s; margin-right: 10px; text-decoration: none; }
.social-circle:hover { background: var(--yellow); color: var(--dark); transform: translateY(-3px); }

/* Buttons Advanced Hover */
.btn-apply, .btn-outline-coral {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    z-index: 1;
}
.btn-apply { background-color: var(--coral); color: white; border: 2px solid var(--coral); }
.btn-outline-coral { background-color: transparent; color: var(--coral); border: 2px solid var(--coral); }

.btn-apply:hover, .btn-outline-coral:hover {
    background-color: var(--coral);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 143, 121, 0.3);
}

.btn-apply:active, .btn-outline-coral:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(255, 143, 121, 0.2);
}

.btn-apply::before, .btn-outline-coral::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    transition: all 0.5s ease;
    z-index: -1;
}
.btn-apply:hover::before, .btn-outline-coral:hover::before {
    left: 150%;
    transition: all 0.6s ease;
}

.btn-icon-arrow {
    display: inline-block;
    margin-left: 8px;
    transition: transform 0.3s ease;
}
.btn-apply:hover .btn-icon-arrow, .btn-outline-coral:hover .btn-icon-arrow {
    transform: translateX(5px);
}

/* Icons Animation */
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-15px); } 100% { transform: translateY(0px); } }
@keyframes float-slow { 0% { transform: translateY(0px); } 50% { transform: translateY(-10px); } 100% { transform: translateY(0px); } }
@keyframes swing { 0% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } 100% { transform: rotate(-5deg); } }
@keyframes wiggle { 0%, 100% { transform: rotate(0deg); } 25% { transform: rotate(-8deg); } 75% { transform: rotate(8deg); } }
@keyframes pulse-anim { 0% { transform: scale(1); } 50% { transform: scale(1.08); } 100% { transform: scale(1); } }

.icon-float { animation: float 3.5s ease-in-out infinite; }
.icon-float-slow { animation: float-slow 5.5s ease-in-out infinite; }
.icon-swing { animation: swing 4.5s ease-in-out infinite; }
.icon-wiggle { animation: wiggle 3.5s ease-in-out infinite; }
.icon-pulse { animation: pulse-anim 7s ease-in-out infinite; }

/* Reduced motion fixes */
@media (prefers-reduced-motion: reduce) {
    .icon-float, .icon-float-slow, .icon-swing, .icon-wiggle, .icon-pulse {
        animation: none !important;
        transform: none !important;
    }
    .reveal, .reveal-up, .reveal-left, .reveal-right, .reveal-scale, .section-heading h2, .section-heading .section-kicker, .reveal-title {
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
        visibility: visible !important;
    }
}

/* Fix Reveal Visibility */
.reveal-scale.show, .reveal.show, .reveal-up.show, .reveal-left.show, .reveal-right.show { 
    visibility: visible !important; 
    opacity: 1 !important;
}

/* Back to Top */
.back-to-top { position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px; background-color: var(--coral); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; z-index: 999; opacity: 0; visibility: hidden; transform: translateY(20px); transition: all 0.3s ease; box-shadow: 0 5px 15px rgba(255, 143, 121, 0.4); text-decoration: none; }
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background-color: var(--dark); color: white; transform: translateY(-5px); }

.shape-blob { position: absolute; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; z-index: 0; pointer-events: none; }

/* Image wrapper hover */
.image-wrapper { position: relative; overflow: hidden; }
.image-wrapper img { transition: transform 0.6s ease; }
.image-wrapper:hover img { transform: scale(1.05); }

/* Utility Grid for Curriculum */
.curriculum-map { position: relative; max-width: 900px; margin: 0 auto; text-align: center; }
.curr-item img { width: 60px; height: 60px; object-fit: contain; margin-bottom: 10px; }

/* Learning Approach */
.learning-card { border-radius: 24px; transition: transform 0.3s ease; }
.learning-card:hover { transform: translateY(-5px); }
.learning-icon { width: 70px; height: 70px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 20px; }

/* Accordion plus rotate */
.accordion-button::after { transition: transform 0.3s ease; }

/* Nav Mobile overrides */
@media (max-width: 991.98px) {
    .navbar-collapse { background: white; padding: 20px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); position: absolute; top: 100%; left: 0; width: 100%; z-index: 1000; }
    .nav-item-link { margin: 10px 0; display: block; }
}
section[id] { scroll-margin-top: 100px; }

#backToTop.show { opacity: 1 !important; visibility: visible !important; transform: translateY(0) !important; }

/* Blog Cards */
.blog-card:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(0,0,0,0.1) !important; }
.blog-card:hover .image-wrapper img { transform: scale(1.05); }
.blog-link:hover .blog-arrow { transform: translateX(5px); }

/* Hero Slider Styles */
.hero-slider-section { height: 650px; }
.hero-slider-section .swiper-slide { height: 100%; }
.hero-slide-content { padding: 80px 0; }
.hero-slider-section .swiper-button-next, .hero-slider-section .swiper-button-prev { width: 50px; height: 50px; background: rgba(0,0,0,0.3); border-radius: 50%; color: white; transition: all 0.3s; }
.hero-slider-section .swiper-button-next:after, .hero-slider-section .swiper-button-prev:after { font-size: 20px; }
.hero-slider-section .swiper-button-next:hover, .hero-slider-section .swiper-button-prev:hover { background: var(--primary-coral); }
.hero-slider-section .swiper-pagination-bullet { background: white; opacity: 0.5; width: 10px; height: 10px; }
.hero-slider-section .swiper-pagination-bullet-active { background: var(--primary-coral); opacity: 1; width: 25px; border-radius: 5px; }

@media (max-width: 992px) { .hero-slider-section { height: 550px; } }
@media (max-width: 768px) { .hero-slider-section { height: 500px; } .hero-slider-section h1 { font-size: 2.5rem !important; } }


/* ==========================================================================
   Responsive Overrides & Fixes
   ========================================================================== */

/* Hero Section Padding Override */
@media (max-width: 991px) {
    .hero-section .container[style*="padding: 180px 0;"] {
        padding: 100px 15px !important;
    }
}
@media (max-width: 768px) {
    .hero-section .container[style*="padding: 180px 0;"] {
        padding: 60px 15px !important;
    }
    
    /* Make typography smaller on mobile */
    .display-1 {
        font-size: 2.5rem !important;
    }
    .display-4 {
        font-size: 1.8rem !important;
    }
    .lead.fs-4 {
        font-size: 1.1rem !important;
    }

    /* Floating Decor elements overlap on mobile, scale them down or hide non-essential ones */
    .decor-floating {
        transform: scale(0.4) !important;
        opacity: 0.2 !important; /* reduce opacity so text remains readable if it overlaps */
        z-index: 0 !important;
    }
    
    /* Image overlaps in About Section */
    .position-relative.d-inline-block {
        margin-bottom: 3rem;
    }
    
    /* Buttons stacking */
    .hero-section .d-flex.gap-3 {
        flex-direction: column;
        width: 100%;
        gap: 1rem !important;
    }
    .hero-section .btn {
        width: 100%;
        font-size: 1rem !important;
        padding: 1rem !important;
    }
}


/* GD Exact Page (Anisabad) Mobile Resets */
@media (max-width: 768px) {
    .gd-exact-page [style*="padding"] {
        /* Override huge paddings like padding: 80px 5%; */
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }
    .gd-exact-page [style*="height: 100vh"] {
        height: auto !important;
        min-height: 100vh;
    }
    .gd-exact-page .display-3 {
        font-size: 2rem !important;
    }
    .gd-exact-page .col-lg-6 {
        margin-bottom: 1.5rem;
    }
}

/* Ensure no horizontal scroll globally */
html, body {
    overflow-x: hidden !important;
    width: 100%;
}
