/* ── EasyCollector Public School Website Theme ──────────────────────── */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--light, #f8fafc); color: var(--text-main, #1e293b); line-height: 1.6; overflow-x: hidden; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 1.5rem; }

/* Announcement Notice Top Bar */
.top-notice-bar {
    background: linear-gradient(90deg, var(--primary, #1e3a8a), var(--secondary, #d97706));
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 0.6rem 1rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    letter-spacing: 0.01em;
    position: relative;
    z-index: 101;
}
.top-notice-bar a {
    color: #ffffff;
    text-decoration: underline;
    margin-left: 0.5rem;
    font-weight: 800;
}

/* Navbar */
.site-nav {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border, #e2e8f0);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0.85rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-brand { display: flex; align-items: center; gap: 0.85rem; text-decoration: none; color: var(--dark, #0f172a); font-weight: 800; font-size: 1.25rem; }
.nav-logo { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; background: var(--primary, #1e3a8a); color: white; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; font-weight: 800; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.nav-menu { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-link { text-decoration: none; color: var(--text-muted, #64748b); font-weight: 600; font-size: 0.95rem; transition: color 0.2s; }
.nav-link:hover { color: var(--primary, #1e3a8a); }
.btn-portal, a.btn-portal, button.btn-portal {
    background: var(--primary, #1e3a8a) !important;
    color: #ffffff !important;
    padding: 0.65rem 1.35rem;
    border-radius: 10px;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}
.btn-portal:hover, .btn-portal:focus, a.btn-portal:hover, button.btn-portal:hover {
    transform: translateY(-1px);
    opacity: 0.95;
    color: #ffffff !important;
}

/* ── HERO CAROUSEL & MEDIA ───────────────────────────────────────── */
.hero-carousel-wrapper {
    position: relative;
    overflow: hidden;
    background: #0f172a;
    min-height: 540px;
}
.hero-slides-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 540px;
}
.hero-slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
}
.hero-slide.active {
    opacity: 1;
    visibility: visible;
    position: relative;
    min-height: 540px;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.65) 60%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
    max-width: 820px;
    padding: 5rem 0;
}
.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    color: #ffffff;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
}
.hero-title {
    font-size: 3.5rem;
    line-height: 1.15;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.hero-sub {
    font-size: 1.25rem;
    color: #e2e8f0;
    margin-bottom: 2.25rem;
    line-height: 1.6;
    max-width: 700px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-lg {
    padding: 0.9rem 2rem;
    font-size: 1.05rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}
.btn-primary, a.btn-primary, button.btn-primary { background: var(--primary, #1e3a8a) !important; color: #ffffff !important; box-shadow: 0 6px 18px rgba(0,0,0,0.25); text-decoration: none !important; }
.btn-primary:hover, .btn-primary:focus, a.btn-primary:hover, button.btn-primary:hover { background: var(--primary, #1e3a8a) !important; opacity: 0.92; transform: translateY(-2px); color: #ffffff !important; }
.btn-secondary, a.btn-secondary, button.btn-secondary { background: rgba(255, 255, 255, 0.95) !important; color: var(--dark, #0f172a) !important; text-decoration: none !important; }
.btn-secondary:hover, .btn-secondary:focus, a.btn-secondary:hover, button.btn-secondary:hover { background: #ffffff !important; transform: translateY(-2px); color: var(--dark, #0f172a) !important; }

/* Carousel Navigation Controls */
.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
}
.carousel-nav-btn:hover { background: rgba(255, 255, 255, 0.4); transform: translateY(-50%) scale(1.08); }
.carousel-nav-prev { left: 1.5rem; }
.carousel-nav-next { right: 1.5rem; }

.carousel-indicators {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 0.6rem;
}
.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.25s;
}
.carousel-dot.active {
    width: 32px;
    border-radius: 10px;
    background: var(--secondary, #d97706);
}

/* ── STATIC / VIDEO HERO ALTERNATIVES ───────────────────────────── */
.hero-static {
    padding: 5.5rem 0 4.5rem;
    background: radial-gradient(circle at 85% 20%, rgba(30, 58, 138, 0.06) 0%, transparent 60%), #ffffff;
    border-bottom: 1px solid var(--border, #e2e8f0);
}
.hero-static-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 4rem; align-items: center; }
.hero-card {
    background: white;
    border-radius: 20px;
    border: 1px solid var(--border, #e2e8f0);
    padding: 1.5rem;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.08);
    position: relative;
}
.hero-card-img {
    width: 100%;
    height: 340px;
    border-radius: 14px;
    object-fit: cover;
    display: block;
}

/* Stats Section */
.stats-section { padding: 3rem 0; background: #ffffff; border-bottom: 1px solid var(--border, #e2e8f0); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.stat-num { font-size: 2.2rem; font-weight: 800; color: var(--primary, #1e3a8a); }
.stat-label { font-size: 0.85rem; color: var(--text-muted, #64748b); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-top: 0.25rem; }

/* Sections */
.section { padding: 5rem 0; }
.section-header { text-align: center; max-width: 680px; margin: 0 auto 3.5rem; }
.section-title { font-size: 2.3rem; font-weight: 800; color: var(--dark, #0f172a); margin-bottom: 0.75rem; letter-spacing: -0.02em; }
.section-desc { font-size: 1.05rem; color: var(--text-muted, #64748b); line-height: 1.6; }

/* Features / Pillars */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.feature-box {
    background: white;
    padding: 2.5rem;
    border-radius: 18px;
    border: 1px solid var(--border, #e2e8f0);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}
.feature-box:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,0.06); }
.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(30, 58, 138, 0.08);
    color: var(--primary, #1e3a8a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}
.feature-title { font-size: 1.25rem; font-weight: 700; color: var(--dark, #0f172a); margin-bottom: 0.6rem; }
.feature-desc { color: var(--text-muted, #64748b); font-size: 0.95rem; line-height: 1.6; }

/* Fees Transparency Preview */
.fee-table-card {
    background: white;
    border-radius: 18px;
    border: 1px solid var(--border, #e2e8f0);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
.fee-table { width: 100%; border-collapse: collapse; text-align: left; }
.fee-table th { background: #f8fafc; padding: 1.15rem 1.5rem; font-size: 0.85rem; font-weight: 800; color: var(--text-muted, #64748b); text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px solid var(--border, #e2e8f0); }
.fee-table td { padding: 1.15rem 1.5rem; border-bottom: 1px solid var(--border, #e2e8f0); font-size: 0.95rem; }
.fee-table tr:last-child td { border-bottom: none; }

/* Admissions & Inquiry Form */
.admissions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: flex-start; }
.admissions-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border, #e2e8f0);
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
}
.form-group { margin-bottom: 1.25rem; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.85rem; }
@media (max-width: 600px) {
    .form-row-3 { grid-template-columns: 1fr; gap: 0; }
}
.form-label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 0.4rem; color: var(--dark, #0f172a); }
.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border, #e2e8f0);
    border-radius: 10px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.15s;
    font-family: inherit;
}
.form-control:focus { border-color: var(--primary, #1e3a8a); }

/* Alert notifications */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
}
.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }

/* Footer */
.site-footer {
    background: var(--dark, #0f172a);
    color: #94a3b8;
    padding: 4.5rem 0 2.5rem;
    margin-top: 5rem;
    border-top: 1px solid #1e293b;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-title { color: white; font-weight: 700; font-size: 1.1rem; margin-bottom: 1.25rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.65rem; }
.footer-links a { color: #94a3b8; text-decoration: none; font-size: 0.92rem; transition: color 0.15s; }
.footer-links a:hover { color: white; }
.footer-bottom { border-top: 1px solid #1e293b; padding-top: 2rem; text-align: center; font-size: 0.85rem; color: #64748b; }

@media (max-width: 900px) {
    .hero-title { font-size: 2.5rem; }
    .hero-static-grid, .admissions-grid, .stats-grid, .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .nav-menu { display: none; }
    .carousel-nav-btn { display: none; }
}
