* ===== Google Fonts ===== */
body {
    font-family: 'Nunito', sans-serif;
    color: #556987;
    background-color: #fafbfc;
}

h1, h2, h3, h4, h5, h6, .navbar-brand, .brand-title {
    font-family: 'Fredoka', sans-serif;
}

/* ===== Theme Colors & Variables ===== */
:root {
    --primary-pink: #f04f70;
    --primary-pink-hover: #d84765;
    --pale-pink: #fff0f3;
    
    --secondary-blue: #1f2937;
    
    --light-gray: #f8fafc;
    --dark-text: #2a3342;
    --muted-text: #556987;
    
    /* Soft pastel backgrounds for facilities */
    --light-blue: #e0f2fe;
    --light-green: #dcfce7;
    --light-yellow: #fef9c3;
    --light-pink: #fce7f3;
    --light-orange: #ffedd5;
    --light-cyan: #cffafe;
}

/* ===== Global Utilities ===== */
.text-primary-theme {
    color: var(--primary-pink) !important;
}

.bg-primary-theme {
    background-color: var(--primary-pink) !important;
    color: #fff !important;
}

.btn-primary-theme {
    background-color: var(--primary-pink);
    color: #fff;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary-theme:hover {
    background-color: var(--primary-pink-hover);
    color: #fff;
}

.btn-outline-dark {
    border: 2px solid var(--secondary-blue);
    color: var(--secondary-blue);
    transition: all 0.3s ease;
}

.btn-outline-dark:hover {
    background-color: var(--secondary-blue);
    color: #fff;
}

.text-dark {
    color: var(--dark-text) !important;
}

.text-muted {
    color: var(--muted-text) !important;
}

.bg-pink-light {
    background-color: var(--pale-pink) !important;
}

.text-pink {
    color: var(--primary-pink) !important;
}

.bg-light-gray {
    background-color: var(--light-gray) !important;
}

.bg-pale-pink {
    background-color: var(--pale-pink) !important;
}

.bg-dark-blue {
    background-color: var(--secondary-blue) !important;
}

.section-subtitle {
    font-size: 0.85rem;
    letter-spacing: 1px;
}

/* ===== Custom Animations & Keyframes ===== */

/* Floating Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@keyframes float-slow {
    0% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(15px, -15px) rotate(10deg); }
    66% { transform: translate(-15px, 15px) rotate(-10deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

.float-animation { animation: float 4s ease-in-out infinite; }
.float-slow { animation: float-slow 8s ease-in-out infinite; }
.float-slower { animation: float-slow 12s ease-in-out infinite reverse; }
.float-fast { animation: float 2.5s ease-in-out infinite; }

/* Wobble */
@keyframes wobble {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}
.icon-wobble:hover { animation: wobble 0.5s ease-in-out; }
.wobble-on-hover:hover { animation: wobble 0.5s ease-in-out; }

/* Pulse & Pop */
@keyframes pulse-soft {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(240, 79, 112, 0.4); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(240, 79, 112, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(240, 79, 112, 0); }
}
.btn-pulse { animation: pulse-soft 2s infinite; }
.icon-pulse:hover { animation: pulse-soft 1s infinite; }
.pulse-badge { animation: pulse-soft 2s infinite; display: inline-block; }

.icon-pop:hover { transform: scale(1.2); transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275); }

/* Rotating Stars and Rainbows */
@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes spin-slow { 100% { transform: rotate(360deg); } }
.star-spin { animation: spin 4s linear infinite; }
.spin-slow { animation: spin-slow 15s linear infinite; }
.hover-rotate:hover { transform: rotate(180deg); transition: transform 0.6s ease; }

/* Hover Growth & Movement */
.btn-hover-grow { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.btn-hover-grow:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important; }

.arrow-move { transition: transform 0.3s; }
.btn-hover-grow:hover .arrow-move { transform: translateX(5px); }
.fly-icon { transition: transform 0.3s, opacity 0.3s; }
.btn-hover-grow:hover .fly-icon { transform: translate(4px, -4px); }

/* Heartbeat */
@keyframes heartbeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.3); }
    28% { transform: scale(1); }
    42% { transform: scale(1.3); }
    70% { transform: scale(1); }
}
.heartbeat { animation: heartbeat 2s infinite; display: inline-block; }

/* Text Animations */
@keyframes highlight {
    0% { background-size: 0 100%; }
    100% { background-size: 100% 100%; }
}
.highlight-text {
    background: linear-gradient(120deg, rgba(240,79,112,0.2) 0%, rgba(240,79,112,0.2) 100%);
    background-repeat: no-repeat;
    background-size: 0 100%;
    background-position: 0 80%;
    animation: highlight 1s 1s forwards ease-in-out;
}

/* ===== Navbar ===== */
.navbar { padding-top: 1rem; padding-bottom: 1rem; }
.nav-link { color: var(--dark-text); margin: 0 0.5rem; transition: color 0.3s; position: relative; }
.nav-link.link-hover::after {
    content: ''; position: absolute; width: 0; height: 2px;
    bottom: 0; left: 0; background-color: var(--primary-pink);
    transition: width 0.3s ease;
}
.nav-link.link-hover:hover::after, .nav-link.active::after { width: 100%; }
.nav-link:hover, .nav-link.active { color: var(--primary-pink); }

@media (max-width: 991.98px) {
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 15px;
        right: 15px;
        z-index: 1000;
        background-color: #fff;
        padding: 20px;
        border-radius: 15px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        margin-top: 10px;
        text-align: center;
    }
    .navbar-nav .nav-link {
        margin: 5px 0;
    }
    .navbar .btn-primary-theme {
        margin-top: 10px;
        display: inline-block;
    }
}

/* ===== Hero Section ===== */
.hero-section {
    background-image: radial-gradient(circle at 10% 20%, #fefce8 0%, transparent 20%), 
                      radial-gradient(circle at 90% 80%, #f0fdf4 0%, transparent 20%);
}

.shape { position: absolute; border-radius: 50%; z-index: 0; opacity: 0.6; }
.shape-1 { width: 100px; height: 100px; background-color: #fef08a; top: 15%; left: 5%; }
.shape-2 { width: 60px; height: 60px; background-color: #a7f3d0; top: 30%; right: 40%; }
.shape-3 { width: 150px; height: 150px; background-color: #fbcfe8; bottom: 20%; left: 30%; }

.feature-icon {
    width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; transition: transform 0.3s;
}

.cloud-divider { position: absolute; bottom: -1px; left: 0; width: 100%; overflow: hidden; line-height: 0; }
.cloud-divider svg { display: block; width: 100%; height: auto; }

/* ===== About Us Section ===== */
.about-images { position: relative; padding-right: 50px; padding-bottom: 50px; }
.main-img { border: 10px solid #fff; z-index: 2; position: relative; transition: transform 0.5s; }
.sub-img { position: absolute; bottom: 0; right: 0; border: 8px solid #fff; z-index: 3; }
.img-hover-zoom:hover { transform: scale(1.02); }

.icon-box {
    width: 45px; height: 45px; display: flex; align-items: center; justify-content: center;
    border-radius: 12px; font-size: 1.25rem; flex-shrink: 0; transition: transform 0.4s;
}
.hover-flip:hover { transform: rotateY(180deg); }

.rainbow-deco { position: absolute; top: -20px; left: 20px; opacity: 0.5; z-index: 1; }

/* ===== Programs Section ===== */
.dot-pattern {
    position: absolute; top: 0; right: 0; width: 150px; height: 150px;
    background-image: radial-gradient(var(--primary-pink) 2px, transparent 2px);
    background-size: 15px 15px; opacity: 0.2; z-index: 1;
}

.program-card { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.card-hover-3d:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(-5deg);
    box-shadow: 10px 15px 25px rgba(0,0,0,0.1) !important;
}

.border-top-green { border-top: 5px solid #22c55e !important; }
.border-top-yellow { border-top: 5px solid #eab308 !important; }
.border-top-pink { border-top: 5px solid #ef4444 !important; }
.border-top-blue { border-top: 5px solid #3b82f6 !important; }

/* ===== Why Choose Us Section ===== */
.why-icon-box {
    width: 70px; height: 70px; display: flex; align-items: center; justify-content: center; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.bounce-hover:hover { transform: translateY(-10px) scale(1.1); box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important; }

/* ===== Gallery Section ===== */
.gallery-img-wrapper { overflow: hidden; }
.gallery-img { height: 250px; transition: transform 0.5s ease; }
.gallery-img-wrapper:hover .gallery-img { transform: scale(1.1) rotate(2deg); }
.wiggle-icon { transition: transform 0.3s; }
.btn-hover-grow:hover .wiggle-icon { transform: rotate(15deg) scale(1.2); }

/* ===== Facilities Section ===== */
.facility-card { transition: transform 0.3s ease; }
.facility-card:hover { transform: translateY(-8px); }
.facility-icon {
    width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; border-radius: 15px; font-size: 1.5rem; transition: transform 0.3s;
}

.bg-light-blue { background-color: var(--light-blue); }
.bg-light-green { background-color: var(--light-green); }
.bg-light-yellow { background-color: var(--light-yellow); }
.bg-light-pink { background-color: var(--light-pink); }
.bg-light-orange { background-color: var(--light-orange); }
.bg-light-cyan { background-color: var(--light-cyan); }

/* ===== Testimonials & Admission Banner ===== */
.testimonial-card { transition: transform 0.3s; }
.testimonial-card:hover { transform: scale(1.02); }

@keyframes starFade {
    0% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
    100% { opacity: 0.3; transform: scale(0.8); }
}
.star-animate { animation: starFade 2s infinite ease-in-out; }

#testimonialCarousel .carousel-indicators { bottom: -40px; }
#testimonialCarousel .carousel-indicators button { width: 10px; height: 10px; border-radius: 50%; background-color: #cbd5e1; transition: background-color 0.3s, transform 0.3s; }
#testimonialCarousel .carousel-indicators button.active { background-color: var(--primary-pink); transform: scale(1.3); }

.banner-card { position: relative; z-index: 1; }
.banner-circle-1 { position: absolute; width: 200px; height: 200px; background: rgba(255,255,255,0.4); border-radius: 50%; top: -50px; right: -50px; z-index: 0; }
.banner-circle-2 { position: absolute; width: 100px; height: 100px; background: rgba(255,255,255,0.3); border-radius: 50%; bottom: 20%; left: -20px; z-index: 0; }
.admission-img { max-height: 120%; margin-bottom: -50px; transition: transform 0.5s; }
.banner-card:hover .admission-img { transform: translateY(-10px); }

/* ===== Contact Section ===== */
.bg-light-blue-pattern {
    background-color: #f0f9ff;
    background-image: radial-gradient(#e0f2fe 20%, transparent 20%), radial-gradient(#e0f2fe 20%, transparent 20%);
    background-size: 20px 20px; background-position: 0 0, 10px 10px;
}

.contact-icon { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; transition: transform 0.3s; }
.contact-info-item:hover .contact-icon { transform: scale(1.1); background-color: var(--primary-pink) !important; color: white !important; }

.form-card-hover { transition: box-shadow 0.3s, transform 0.3s; }
.form-card-hover:hover { box-shadow: 0 1rem 3rem rgba(0,0,0,0.1) !important; transform: translateY(-5px); }

.input-focus-anim { transition: transform 0.2s, box-shadow 0.2s; }
.input-focus-anim:focus { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,0.05) !important; }

/* ===== Footer ===== */
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: rgba(255, 255, 255, 0.7); text-decoration: none; transition: all 0.3s; display: inline-block; }
.footer-links a:hover { color: var(--primary-pink); transform: translateX(5px); }
.social-icon { width: 35px; height: 35px; display: flex; align-items: center; justify-content: center; border-color: rgba(255,255,255,0.2); color: rgba(255,255,255,0.7); transition: all 0.3s; }
.social-icon:hover { background-color: var(--primary-pink); border-color: var(--primary-pink); color: #fff; transform: translateY(-3px) rotate(8deg); }

/* ===== Newsletter Card ===== */
.newsletter-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 100%);
    border: 1px solid rgba(255,255,255,0.14);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
    transition: border-color 0.35s ease, box-shadow 0.35s ease;
}
.newsletter-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(240,79,112,0.22) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}
.newsletter-card > * { position: relative; z-index: 1; }
.newsletter-card:hover {
    border-color: rgba(240,79,112,0.45);
    box-shadow: 0 16px 40px rgba(240,79,112,0.14);
}

/* Icon Badge */
.newsletter-icon-badge {
    width: 38px;
    min-width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f04f70, #ff8fab);
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #fff !important;
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(240,79,112,0.45);
    animation: pulse-soft 3s infinite;
}

/* Benefit Pills */
.newsletter-pill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px;
    background: rgba(255,255,255,0.12) !important;
    border: 1px solid rgba(255,255,255,0.20) !important;
    color: rgba(255,255,255,0.85) !important;
    font-size: 0.7rem !important;
    font-weight: 600 !important;
    padding: 4px 11px !important;
    border-radius: 50px !important;
    line-height: 1.2;
    letter-spacing: 0.3px;
    transition: background 0.25s, border-color 0.25s, color 0.25s;
    cursor: default;
    white-space: nowrap;
}
.newsletter-pill:hover {
    background: rgba(240,79,112,0.25) !important;
    border-color: rgba(240,79,112,0.55) !important;
    color: #fff !important;
}
.newsletter-pill i { color: #f04f70 !important; font-size: 0.68rem; }

/* Input with icon inside */
.newsletter-input-wrapper {
    position: relative !important;
    display: block !important;
}
.newsletter-input-icon {
    position: absolute !important;
    left: 15px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: rgba(0,0,0,0.32) !important;
    font-size: 0.82rem !important;
    pointer-events: none !important;
    z-index: 10 !important;
    line-height: 1;
}
.newsletter-input.form-control {
    padding-left: 2.5rem !important;
    padding-right: 1rem !important;
    border: 2px solid rgba(255,255,255,0.15) !important;
    background: #ffffff !important;
    color: #374151 !important;
    height: auto !important;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease !important;
}
.newsletter-input.form-control:focus {
    border-color: #f04f70 !important;
    box-shadow: 0 0 0 4px rgba(240,79,112,0.15) !important;
    transform: translateY(-1px);
    outline: none !important;
}
.newsletter-input.form-control::placeholder {
    color: rgba(0,0,0,0.35) !important;
    font-size: 0.88rem;
}

/* Button */
.newsletter-btn {
    padding: 0.55rem 1rem !important;
    font-size: 0.9rem !important;
    letter-spacing: 0.4px;
}

/* Feedback */
.newsletter-feedback {
    border-radius: 10px;
    padding: 0.5rem 0.9rem;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    animation: feedbackSlideIn 0.3s ease;
}
.newsletter-feedback.feedback-success {
    background: rgba(34,197,94,0.14);
    border: 1px solid rgba(34,197,94,0.38);
    color: #86efac;
}
.newsletter-feedback.feedback-error {
    background: rgba(239,68,68,0.14);
    border: 1px solid rgba(239,68,68,0.38);
    color: #fca5a5;
}
@keyframes feedbackSlideIn {
    from { opacity: 0; transform: translateY(-5px); }
    to   { opacity: 1; transform: translateY(0); }
}