/* ══════════════════════════════════════════════════════
   SSS Convent School — Main Stylesheet (Frontend)
   BDIS-inspired school website with Bootstrap 5
   ══════════════════════════════════════════════════════ */

:root {
    --school-green: #047857;
    --school-green-light: #059669;
    --school-green-dark: #065f46;
    --school-gold: #d97706;
    --school-gold-light: #f59e0b;
    --school-maroon: #7f1d1d;
}

* { font-family: 'Poppins', sans-serif; }

/* ═══ Top Bar ═══ */
.top-bar {
    background: var(--school-green-dark);
    color: #fff;
    font-size: 0.8rem;
}
.top-bar a { color: #fff; text-decoration: none; }
.top-bar a:hover { color: var(--school-gold-light); }
.top-bar-admin { font-size: 0.75rem; opacity: 0.85; transition: opacity 0.2s; }
.top-bar-admin:hover { opacity: 1; }

/* ═══ Navbar ═══ */
.main-navbar {
    background: #fff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    padding: 0.5rem 0;
}
.main-navbar .navbar-brand { text-decoration: none; }
.brand-logo {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--school-green); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1rem;
    box-shadow: 0 4px 12px rgba(4,120,87,0.3);
}
.brand-name { font-weight: 700; font-size: 1.05rem; color: var(--school-green-dark); line-height: 1.2; }
.brand-tagline { font-size: 0.7rem; color: #888; }
.navbar-nav .nav-link {
    color: #333 !important;
    font-weight: 500;
    font-size: 0.82rem; /* Updated: Thoda font size kam kiya taaki sab fit ho jaye */
    padding: 0.5rem 0.55rem !important; /* Updated: Items ke beech ki jagah thodi kam ki */
    border-radius: 6px;
    transition: all 0.2s;
    white-space: nowrap; /* Updated: Text ko ek hi line mein force karega */
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background: var(--school-green) !important;
    color: #fff !important;
}
.navbar-nav .nav-link i { font-size: 0.85rem; }

/* ═══ Hero Slider ═══ */
.hero-slide {
    min-height: 75vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 1rem;
}
.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    max-width: 550px;
}
.hero-icon-circle {
    width: 200px; height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 3px solid rgba(255,255,255,0.2);
    display: flex; align-items: center; justify-content: center;
    animation: pulse 3s infinite;
}
.hero-icon-circle i { font-size: 5rem; color: rgba(255,255,255,0.3); }
@keyframes pulse { 0%,100%{transform:scale(1);opacity:0.7} 50%{transform:scale(1.05);opacity:1} }

.carousel-indicators button { width: 30px; height: 4px; border-radius: 2px; }
.carousel-indicators .active { background: var(--school-gold); width: 45px; }

/* ═══ News Ticker ═══ */
.news-ticker { background: var(--school-green-dark); padding: 0.5rem 0; overflow: hidden; }
.ticker-label {
    background: var(--school-gold); color: #fff; padding: 0.3rem 1rem;
    font-weight: 700; font-size: 0.75rem; text-transform: uppercase;
    letter-spacing: 1px; border-radius: 0 20px 20px 0; white-space: nowrap;
}
.ticker-scroll { overflow: hidden; flex: 1; }
.ticker-content {
    display: inline-flex; white-space: nowrap;
    animation: tickerScroll 35s linear infinite;
}
.ticker-item { color: #fff; font-size: 0.85rem; padding: 0 2rem; }
@keyframes tickerScroll { 0%{transform:translateX(100%)} 100%{transform:translateX(-100%)} }

/* ═══ Sections ═══ */
.gradient-text {
    background: linear-gradient(135deg, var(--school-green), var(--school-green-light), var(--school-gold));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.section-title { font-weight: 800; }
.section-subtitle { color: #888; max-width: 600px; margin: 0 auto; }
.section-pattern {
    background-image: radial-gradient(circle at 20px 20px, rgba(4,120,87,0.04) 1px, transparent 0);
    background-size: 40px 40px;
}
.bg-light-green { background: #f0fdf4; }

/* ═══ Highlight Cards ═══ */
.highlight-card {
    background: #fff; border-radius: 16px; padding: 2rem 1.5rem;
    text-align: center; box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.3s; border: 1px solid transparent;
}
.highlight-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(4,120,87,0.15);
    border-color: rgba(4,120,87,0.15);
}
.highlight-icon {
    width: 65px; height: 65px; border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1rem; font-size: 1.8rem;
    background: rgba(4,120,87,0.08); color: var(--school-green);
    transition: all 0.3s;
}
.highlight-card:hover .highlight-icon { background: var(--school-green); color: #fff; transform: scale(1.1); }
.highlight-title { font-size: 1.05rem; color: var(--school-green-dark); }
.highlight-desc { font-size: 0.85rem; color: #888; }
.highlight-link { color: var(--school-green); font-weight: 600; font-size: 0.85rem; text-decoration: none; opacity: 0; transition: all 0.3s; }
.highlight-card:hover .highlight-link { opacity: 1; }

/* ═══ Principal Card ═══ */
.principal-card {
    border-radius: 16px; overflow: hidden; box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}
.principal-photo-section {
    background: linear-gradient(135deg, var(--school-green-dark), var(--school-green));
    padding: 3rem 2rem; text-align: center;
}
.principal-avatar {
    width: 120px; height: 120px; border-radius: 50%;
    background: rgba(255,255,255,0.15); border: 3px solid rgba(255,255,255,0.3);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto;
}
.principal-avatar i { font-size: 3rem; color: rgba(255,255,255,0.5); }
.principal-message { font-style: italic; color: #555; line-height: 1.8; font-size: 0.95rem; }

/* ═══ Content Cards ═══ */
.content-card {
    background: #fff; border-radius: 12px;
    transition: all 0.3s;
}
.content-card:hover { box-shadow: 0 8px 25px rgba(0,0,0,0.08); }
.content-card-icon {
    width: 48px; height: 48px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
}
.values-icon {
    width: 60px; height: 60px; border-radius: 16px;
    background: rgba(4,120,87,0.08); color: var(--school-green);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto; font-size: 1.6rem; transition: all 0.3s;
}
.values-card:hover .values-icon { background: var(--school-green); color: #fff; }
.values-card { transition: transform 0.3s; }
.values-card:hover { transform: translateY(-5px); }

/* ═══ Timeline ═══ */
.timeline { position: relative; padding-left: 20px; }
.timeline::before { content: ''; position: absolute; left: 24px; top: 0; bottom: 0; width: 2px; background: rgba(4,120,87,0.15); }
.timeline-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.timeline-dot {
    width: 50px; height: 50px; border-radius: 50%;
    background: var(--school-green); color: #fff;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; box-shadow: 0 4px 12px rgba(4,120,87,0.3);
    z-index: 1;
}

/* ═══ Step Numbers ═══ */
.step-number {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--school-green); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; flex-shrink: 0;
}
.step-number.small { width: 28px; height: 28px; font-size: 0.8rem; }

/* ═══ Stat Cards ═══ */
.stat-card {
    padding: 2rem; border-radius: 16px; text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.stat-card i { font-size: 2rem; margin-bottom: 0.5rem; display: block; }
.stat-card h3 { font-size: 2.5rem; font-weight: 800; }
.stat-dark { background: var(--school-green-dark); }
.stat-light-green { background: var(--school-green-light); }

/* ═══ Facility Cards ═══ */
.facility-card .facility-icon {
    width: 60px; height: 60px; border-radius: 16px;
    background: rgba(4,120,87,0.08); color: var(--school-green);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto; font-size: 1.6rem;
}
.facility-page-card:hover { transform: translateY(-5px); }
.facility-page-img {
    height: 200px; background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    display: flex; align-items: center; justify-content: center;
}
.facility-page-img i { font-size: 3rem; color: var(--school-green); opacity: 0.3; }
.facility-page-icon {
    width: 40px; height: 40px; border-radius: 10px;
    background: rgba(4,120,87,0.1); color: var(--school-green);
    display: flex; align-items: center; justify-content: center;
}

/* ═══ Topper Cards ═══ */
.topper-card {
    text-align: center; padding: 1.5rem; border-radius: 16px;
    background: #fff; box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: all 0.3s; border: 2px solid transparent;
}
.topper-card:hover { transform: translateY(-5px); box-shadow: 0 12px 30px rgba(0,0,0,0.1); }
.topper-gold { border-color: var(--school-gold); }
.topper-avatar {
    width: 80px; height: 80px; border-radius: 50%;
    background: linear-gradient(135deg, rgba(4,120,87,0.08), rgba(217,119,6,0.08));
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; margin: 0 auto;
}
.topper-avatar img { width: 100%; height: 100%; object-fit: cover; }
.topper-avatar i { font-size: 2.5rem; color: rgba(4,120,87,0.3); }
.topper-badge {
    position: absolute; top: -5px; right: -5px;
    width: 28px; height: 28px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 0.7rem;
}
.badge-0 { background: var(--school-gold); }
.badge-1 { background: #9ca3af; }
.badge-2 { background: #92400e; }

/* ═══ Testimonials ═══ */
.testimonial-card {
    background: #fff; padding: 1.5rem; border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06); height: 100%;
    transition: all 0.3s;
}
.testimonial-card:hover { box-shadow: 0 8px 25px rgba(0,0,0,0.1); }
.testimonial-text { color: #666; font-style: italic; font-size: 0.9rem; line-height: 1.7; }
.testimonial-avatar {
    width: 42px; height: 42px; border-radius: 50%;
    background: rgba(4,120,87,0.1); color: var(--school-green);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
}

/* ═══ Activity Cards ═══ */
.activity-card:hover { transform: translateY(-5px); }
.activity-placeholder {
    height: 200px; background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    display: flex; align-items: center; justify-content: center;
}
.activity-placeholder i { font-size: 3rem; color: var(--school-green); opacity: 0.3; }

/* ═══ Gallery ═══ */
.gallery-thumb {
    position: relative; overflow: hidden; cursor: pointer;
    border-radius: 8px;
}
.gallery-thumb img { transition: transform 0.3s; }
.gallery-thumb:hover img { transform: scale(1.1); }
.gallery-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    padding: 1rem 0.5rem; opacity: 0; transition: opacity 0.3s;
}
.gallery-thumb:hover .gallery-overlay { opacity: 1; }
.gallery-caption { color: #fff; font-size: 0.8rem; font-weight: 500; }
.gallery-placeholder {
    height: 220px; background: #f0f0f0;
    display: flex; align-items: center; justify-content: center;
}
.gallery-placeholder i { font-size: 3rem; color: #ccc; }
#photoModal .modal-content { background: rgba(0,0,0,0.9); }

/* ═══ Page Banner ═══ */
.page-banner {
    background: linear-gradient(135deg, var(--school-green-dark), var(--school-green), var(--school-green-light));
    position: relative; overflow: hidden;
}
.page-banner::before {
    content: ''; position: absolute; inset: 0;
    background-image: radial-gradient(circle at 20px 20px, rgba(255,255,255,0.05) 1px, transparent 0);
    background-size: 40px 40px;
}
.breadcrumbs { font-size: 0.85rem; opacity: 0.6; margin-top: 0.5rem; }
.breadcrumbs i { font-size: 0.6rem; }

/* ═══ Contact ═══ */
.contact-info-card {
    display: flex; gap: 1rem; padding: 1rem; border-radius: 12px;
    background: #f8fffe; border: 1px solid #e0f2f1;
}
.contact-info-icon {
    width: 45px; height: 45px; border-radius: 12px;
    background: var(--school-green); color: #fff;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

/* ═══ CTA Section ═══ */
.cta-section {
    background: linear-gradient(135deg, var(--school-green), var(--school-green-light));
    position: relative; overflow: hidden;
}
.cta-section::before {
    content: ''; position: absolute; inset: 0;
    background-image: radial-gradient(circle at 20px 20px, rgba(255,255,255,0.05) 1px, transparent 0);
    background-size: 40px 40px;
}

/* ═══ Footer ═══ */
.footer-main { background: var(--school-green-dark); }
.footer-heading { color: var(--school-gold-light); font-weight: 700; margin-bottom: 1rem; }
.footer-text { font-size: 0.85rem; color: rgba(255,255,255,0.7); line-height: 1.7; }
.footer-links { list-style: none; padding: 0; }
.footer-links li a {
    color: rgba(255,255,255,0.7); text-decoration: none;
    font-size: 0.85rem; display: inline-block;
    padding: 0.2rem 0; transition: all 0.2s;
}
.footer-links li a:hover { color: #fff; padding-left: 5px; }
.footer-contact p { font-size: 0.85rem; color: rgba(255,255,255,0.7); margin-bottom: 0.5rem; }
.footer-contact i { width: 20px; }
.social-links a {
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(255,255,255,0.1); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    text-decoration: none; transition: all 0.3s;
}
.social-links a:hover { background: rgba(255,255,255,0.25); transform: translateY(-2px); }
.disclosure-box { background: rgba(255,255,255,0.08); border-radius: 8px; padding: 0.8rem; }
.footer-bottom { background: var(--school-green); }

/* ═══ Floating Enquiry ═══ */
.floating-enquiry { position: fixed; bottom: 24px; right: 24px; z-index: 999; }
.btn-enquiry {
    background: var(--school-gold); color: #fff !important;
    border-radius: 50px; padding: 0.75rem 1.5rem;
    font-weight: 600; box-shadow: 0 6px 20px rgba(217,119,6,0.4);
    transition: all 0.3s; text-decoration: none;
}
.btn-enquiry:hover {
    background: var(--school-gold-light); color: #fff !important;
    transform: scale(1.05); box-shadow: 0 8px 25px rgba(217,119,6,0.5);
}

/* ═══ Scroll to Top ═══ */
.scroll-top-btn {
    position: fixed; bottom: 24px; left: 24px; z-index: 999;
    width: 42px; height: 42px; border-radius: 50%;
    background: var(--school-gold); color: #fff; border: none;
    box-shadow: 0 4px 15px rgba(217,119,6,0.3);
    display: none; transition: all 0.3s; cursor: pointer;
}
.scroll-top-btn:hover { background: var(--school-gold-light); transform: translateY(-3px); }
.scroll-top-btn.show { display: flex; align-items: center; justify-content: center; }

/* ═══ Misc ═══ */
.white-70 { opacity: 0.7; }
.rule-icon {
    width: 55px; height: 55px; border-radius: 50%;
    background: rgba(4,120,87,0.08); color: var(--school-green);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto; font-size: 1.5rem;
}
.subject-card {
    background: #f0fdf4; border-radius: 12px; padding: 1rem;
    text-align: center; transition: all 0.3s;
}
.subject-card:hover { background: var(--school-green); color: #fff; transform: translateY(-3px); }
.subject-card:hover i, .subject-card:hover h6, .subject-card:hover small { color: #fff !important; }
.subject-card i { font-size: 2rem; color: var(--school-green); }

/* ═══ Responsive ═══ */
@media (max-width: 768px) {
    .hero-title { font-size: 2rem; }
    .hero-slide { min-height: 60vh; }
    .ticker-content { animation-duration: 20s; }
}