/* ==========================================================================
   Baby Blossom International Preschool - Animations & Internal Page Layouts
   ========================================================================== */

/* -----------------------------------------
   1. Global Entry Animations
   ----------------------------------------- */
/* Fade-in configuration for smooth element loading */
.entry-fade {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

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

/* -----------------------------------------
   2. Worksheets (Activities) Page Styles
   ----------------------------------------- */
.activities-header {
    text-align: center;
    padding: 4rem 2rem 2rem;
    background: #fff5f7;
}

.activities-header h1 span { color: var(--secondary-color); }

.filter-container {
    display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; margin: 2rem 0 3rem;
}

.filter-btn {
    padding: 0.6rem 1.5rem; border: 2px solid var(--primary-color);
    background: transparent; border-radius: 50px; cursor: pointer;
    font-weight: bold; color: var(--text-dark); transition: all 0.3s ease;
}

.filter-btn.active, .filter-btn:hover {
    background-color: var(--secondary-color); border-color: var(--secondary-color); color: var(--white); box-shadow: 0 4px 10px rgba(255, 111, 145, 0.2);
}

.worksheets-section { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.worksheet-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2.5rem; margin-bottom: 4rem; }

.worksheet-card { background: var(--white); border-radius: 15px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); overflow: hidden; border: 1px solid #ffe3e8; transition: transform 0.3s ease; }
.worksheet-card:hover { transform: translateY(-8px); box-shadow: 0 10px 25px rgba(255, 111, 145, 0.15); }

.card-image { background: #e8dbec; height: 180px; display: flex; align-items: center; justify-content: center; }
.placement-icon { font-size: 4rem; color: var(--secondary-color); }
.card-info { padding: 1.5rem; position: relative; }
.card-info h3 { margin-bottom: 0.5rem; }

/* Custom Badges for Worksheets */
.badge { display: inline-block; padding: 0.2rem 0.6rem; font-size: 0.75rem; font-weight: bold; border-radius: 5px; margin: 0.5rem 0 1rem; }
.pre-nursery-badge { background: #f3e5f5; color: #4a148c; }
.nursery-badge { background: #e3f2fd; color: #0d47a1; }
.lkg-badge { background: #fff3e0; color: #e65100; }
.ukg-badge { background: #e8f5e9; color: #1b5e20; }

.btn-download { display: block; text-align: center; background: var(--secondary-color); color: var(--white); padding: 0.7rem; border-radius: 8px; text-decoration: none; font-weight: bold; transition: background 0.3s; }
.btn-download:hover { background: #ff4f76; }


/* -----------------------------------------
   3. Programs Page Styles
   ----------------------------------------- */
.programs-header { text-align: center; padding: 4rem 2rem 1rem; background-color: var(--white); }
.programs-header h1 span { color: var(--secondary-color); }

.programs-section { max-width: 1200px; margin: 0 auto 5rem; padding: 2rem; }
.program-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2.5rem; }

.program-card { background-color: var(--bg-light); border-radius: 20px; padding: 3rem 2rem; text-align: center; border: 1px solid #ffe3e8; box-shadow: 0 4px 10px rgba(0,0,0,0.02); transition: all 0.3s ease; }
.program-card:hover { transform: translateY(-8px); box-shadow: 0 10px 25px rgba(255, 111, 145, 0.15); }

.program-icon-wrap { width: 80px; height: 80px; background-color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; font-size: 2.2rem; color: var(--secondary-color); box-shadow: 0 4px 8px rgba(0,0,0,0.05); }
.age-tag { display: inline-block; background-color: var(--secondary-color); color: var(--white); padding: 0.3rem 1rem; border-radius: 30px; font-size: 0.85rem; font-weight: bold; margin: 1rem 0 1.5rem; }

.program-features { list-style: none; text-align: left; margin-top: 1.5rem; padding-left: 1rem; }
.program-features li { margin-bottom: 0.6rem; font-size: 0.95rem; }
.program-features li i { color: #2e7d32; margin-right: 0.5rem; }


/* -----------------------------------------
   4. Teachers & About Us Page Styles
   ----------------------------------------- */
.faculty-header, .about-hero { 
    text-align: center; padding: 5rem 2rem 2rem; 
    background: linear-gradient(to bottom, var(--bg-light) 0%, var(--white) 100%); 
}
.faculty-header h1 span, .about-hero-content h1 span { color: var(--secondary-color); }

.teachers-section, .vision-mission-section { max-width: 1200px; margin: 2rem auto 5rem; padding: 0 2rem; }
.teachers-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 3rem; }

.teacher-card { background: var(--white); border: 1px solid #ffe3e8; padding: 2.5rem 1.5rem; border-radius: 20px; text-align: center; box-shadow: 0 4px 12px rgba(0,0,0,0.03); transition: transform 0.3s ease; }
.teacher-card:hover { transform: translateY(-5px); }

.teacher-avatar-wrap { width: 100px; height: 100px; background-color: var(--primary-color); border-radius: 50%; margin: 0 auto 1.5rem; display: flex; align-items: center; justify-content: center; }
.avatar-placeholder { font-size: 2.5rem; color: var(--white); }
.teacher-card h3 { color: #333; margin-bottom: 0.3rem; }
.teacher-role { display: inline-block; color: var(--secondary-color); font-size: 0.88rem; font-weight: bold; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.5px; }
.teacher-card p { font-size: 0.95rem; color: #666; margin-bottom: 1.5rem; }

.teacher-socials { display: flex; justify-content: center; gap: 1.2rem; }
.teacher-socials a { color: #aaa; font-size: 1.2rem; transition: color 0.3s; }
.teacher-socials a:hover { color: var(--secondary-color); }

.info-container { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; margin-top: 2rem; }
.info-block { background-color: var(--bg-light); border-left: 5px solid var(--secondary-color); padding: 3rem 2rem; border-radius: 0 20px 20px 0; }
.info-block h2 { color: #333; margin-bottom: 1rem; }
@media (max-width: 768px) { .info-container { grid-template-columns: 1fr; gap: 1.5rem; } }


/* -----------------------------------------
   5. Gallery & Modal Lightbox Styles
   ----------------------------------------- */
.gallery-header { text-align: center; padding: 5rem 2rem 1rem; background-color: var(--white); }
.gallery-header h1 span { color: var(--secondary-color); }

.gallery-section { max-width: 1200px; margin: 0 auto 5rem; padding: 0 2rem; }
.gallery-filter-wrap { display: flex; justify-content: center; gap: 1rem; margin: 2rem 0 3rem; flex-wrap: wrap; }
.gallery-btn { padding: 0.7rem 1.8rem; border: 2px solid var(--primary-color); background: transparent; border-radius: 50px; cursor: pointer; font-weight: bold; color: var(--text-dark); transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); }
.gallery-btn.active, .gallery-btn:hover { background-color: var(--secondary-color); border-color: var(--secondary-color); color: var(--white); box-shadow: 0 4px 10px rgba(255, 111, 145, 0.2); }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; }
.gallery-item { background: var(--white); border-radius: 15px; overflow: hidden; border: 1px solid #ffe3e8; box-shadow: 0 4px 10px rgba(0,0,0,0.02); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.gallery-item:hover { transform: scale(1.03); box-shadow: 0 10px 20px rgba(255, 111, 145, 0.1); }

.media-box { width: 100%; height: 180px; overflow: hidden; }
.thumbnail { cursor: pointer; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-item:hover .thumbnail { transform: scale(1.08); }
.media-caption { padding: 1.2rem; text-align: center; font-weight: bold; font-size: 1.05rem; color: var(--text-dark); background: var(--white); }

/* Full-Screen Image Modal (Lightbox) */
.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0, 0, 0, 0.85); backdrop-filter: blur(5px); }
.modal-content { margin: 5% auto; display: block; width: 80%; max-width: 800px; border-radius: 10px; box-shadow: 0 5px 25px rgba(0,0,0,0.5); animation: zoomIn 0.4s ease; }
@keyframes zoomIn { from { transform: scale(0.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.close-modal { position: absolute; top: 20px; right: 35px; color: #ffffff; font-size: 45px; font-weight: bold; transition: 0.3s; cursor: pointer; }
.close-modal:hover, .close-modal:focus { color: var(--secondary-color); text-decoration: none; }
#caption { margin: auto; display: block; width: 80%; max-width: 700px; text-align: center; color: #ffffff; padding: 15px 0; font-size: 1.2rem; font-weight: bold; letter-spacing: 1px; }


/* -----------------------------------------
   6. Admission & Contact Form Styles
   ----------------------------------------- */

/* Fix for Contact Page Centering */
.contact-header {
    text-align: center !important; /* 'important' se hum ise force karenge ki ye center hi rahe */
    width: 100%;
}

.contact-header h1, .contact-header p {
    margin-left: auto;
    margin-right: auto;
}

.admission-container, .contact-section { max-width: 1200px; margin: 4rem auto; padding: 0 2rem; }
.admission-form-box h2 span, .contact-header h1 span, .contact-form-panel h2, .contact-info-panel h2 { color: var(--secondary-color); }

.admission-form-box { background-color: var(--white); border: 1px solid #ffe3e8; padding: 3rem; border-radius: 25px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.form-divider { border: 0; height: 2px; background: linear-gradient(to right, var(--primary-color), transparent); margin: 1.5rem 0 2.5rem; }

.contact-wrapper { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; margin-bottom: 4rem; }
@media (max-width: 768px) { .contact-wrapper { grid-template-columns: 1fr; gap: 2.5rem; } }

.contact-info-panel { background-color: var(--bg-light); border-radius: 20px; padding: 3rem 2rem; border: 1px solid #ffe3e8; }
.info-card { display: flex; gap: 1.2rem; margin-bottom: 2rem; background: var(--white); padding: 1.5rem; border-radius: 12px; box-shadow: 0 4px 10px rgba(0,0,0,0.01); }
.info-card i { font-size: 2rem; color: var(--secondary-color); margin-top: 0.2rem; }
.info-card h3 { font-size: 1.1rem; margin-bottom: 0.3rem; color: #333; }
.info-card p { font-size: 0.95rem; color: #666; }

.contact-form-panel { background: var(--white); border: 1px solid #ffe3e8; padding: 3rem 2rem; border-radius: 20px; box-shadow: 0 6px 15px rgba(0,0,0,0.02); }

.form-group { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.8rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; gap: 0; } }

.form-group label { font-weight: bold; font-size: 0.95rem; }
.form-group label i { color: var(--secondary-color); margin-right: 0.3rem; }

.form-group input, .form-group select, .contact-form-panel textarea { 
    padding: 0.8rem 1rem; border: 2px solid #f0f0f0; border-radius: 10px; 
    font-size: 1rem; outline: none; width: 100%; transition: border-color 0.3s; 
}
.contact-form-panel textarea { resize: none; }
.form-group input:focus, .form-group select:focus, .contact-form-panel textarea:focus { border-color: var(--secondary-color); }

.btn-submit { 
    width: 100%; background-color: var(--secondary-color); color: var(--white); 
    padding: 1rem; border: none; border-radius: 10px; font-size: 1.1rem; 
    font-weight: bold; cursor: pointer; box-shadow: 0 4px 15px rgba(255, 111, 145, 0.2); transition: background 0.3s; 
}
.btn-submit:hover { background-color: #ff4f76; }

.map-container { width: 100%; margin-top: 3rem; }


/* =========================================
   7. Vision & Mission Page Specific Styles 
   ========================================= */

.vision-header {
    background: linear-gradient(rgba(255, 245, 247, 0.85), rgba(232, 219, 236, 0.9)),
                url('https://images.unsplash.com/photo-1509062522246-3755977927d7?w=1200') no-repeat center center/cover;
    padding: 6rem 2rem;
    text-align: center;
}

.vision-header h1 {
    font-size: 3.2rem;
    color: #333;
    margin-bottom: 1rem;
}

.vision-mission-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.vm-section, .values-section {
    margin-bottom: 5rem;
}

.quote-section {
    background: var(--secondary-color);
    color: var(--white);
    padding: 4rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(255, 111, 145, 0.2);
    margin-bottom: 2rem;
}

.quote-section h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.quote-section p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    opacity: 0.95;
}


/* =========================================
   Navbar Dropdown Hover Styles 
   ========================================= */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-radius: 10px;
    list-style: none;
    min-width: 220px;
    z-index: 1000;
    overflow: hidden;
    border: 1px solid #ffe3e8;
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    color: var(--text-dark);
    transition: background 0.3s, color 0.3s;
}

.dropdown-menu li a:hover {
    background-color: var(--bg-light);
    color: var(--secondary-color);
}

/* Jab mouse About Us par jayega tab Dropdown dikhega */
.dropdown:hover .dropdown-menu {
    display: block;
    animation: fadeInUp 0.3s ease;
}

/* =========================================
   8. Legacy Page Specific Styles 
   ========================================= */
.legacy-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 5rem;
}

.legacy-section img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(255, 111, 145, 0.15);
}

.legacy-content h2 {
    color: var(--secondary-color);
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto 5rem;
}

.timeline-item {
    background: var(--white);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.04);
    border-left: 6px solid var(--secondary-color);
    transition: transform 0.3s ease;
    border-top: 1px solid #ffe3e8;
    border-right: 1px solid #ffe3e8;
    border-bottom: 1px solid #ffe3e8;
}

.timeline-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 25px rgba(255, 111, 145, 0.15);
}

.timeline-item h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

.timeline-year {
    display: inline-block;
    background: var(--primary-color);
    color: #4a148c;
    padding: 0.3rem 1.2rem;
    border-radius: 20px;
    font-weight: bold;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .legacy-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}