* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8f9fa;
    color: #333;
    min-height: 100vh;
    line-height: 1.6;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-label { color: #2563eb; font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 8px; }
.section-header h2 { font-size: 34px; font-weight: 700; color: #1e293b; }

/* ===== TOPBAR ===== */
.topbar { background: #0f172a; color: #94a3b8; font-size: 13px; padding: 8px 0; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.topbar-left span { margin-right: 20px; }

/* ===== PUBLIC NAV ===== */
.public-nav { background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,0.08); position: sticky; top: 0; z-index: 1000; }
.public-nav .container { display: flex; justify-content: space-between; align-items: center; height: 72px; }
.pub-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #1e293b; }
.pub-logo .logo-icon { font-size: 36px; }
.pub-logo strong { font-size: 20px; display: block; line-height: 1.2; }
.pub-logo small { font-size: 12px; color: #64748b; text-transform: uppercase; letter-spacing: 1px; }
.pub-nav-links { list-style: none; display: flex; align-items: center; gap: 8px; }
.pub-nav-links a { text-decoration: none; color: #475569; font-weight: 500; padding: 8px 16px; border-radius: 6px; transition: all 0.2s; font-size: 15px; }
.pub-nav-links a:hover, .pub-nav-links a.active { color: #2563eb; background: #eff6ff; }
.pub-nav-links .nav-btn { background: #2563eb; color: #fff !important; padding: 10px 22px; border-radius: 8px; }
.pub-nav-links .nav-btn:hover { background: #1d4ed8; }

.mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.mobile-toggle span { display: block; width: 24px; height: 2px; background: #1e293b; margin: 5px 0; transition: 0.3s; }

/* ===== HERO SLIDER ===== */
.hero-slider { position: relative; height: 560px; overflow: hidden; }
.slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.8s ease; }
.slide.active { opacity: 1; z-index: 1; }
.slide-content { text-align: center; max-width: 750px; padding: 0 20px; }
.slide-content h1 { font-size: 48px; font-weight: 800; color: #fff; margin-bottom: 16px; line-height: 1.15; text-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.slide-content p { font-size: 19px; color: rgba(255,255,255,0.9); margin-bottom: 32px; line-height: 1.6; }
.slide-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; background: rgba(255,255,255,0.2); border: 2px solid rgba(255,255,255,0.4); color: #fff; font-size: 22px; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; transition: all 0.2s; backdrop-filter: blur(4px); }
.slider-arrow:hover { background: rgba(255,255,255,0.35); }
.slider-arrow.prev { left: 24px; }
.slider-arrow.next { right: 24px; }
.slider-dots { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 10; display: flex; gap: 10px; }
.slider-dots .dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.4); border: 2px solid rgba(255,255,255,0.6); cursor: pointer; transition: all 0.3s; }
.slider-dots .dot.active { background: #fff; width: 32px; border-radius: 6px; }

/* ===== STATS BAR ===== */
.stats-bar { background: #1e293b; padding: 48px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-item .stat-num { font-size: 42px; font-weight: 800; color: #38bdf8; }
.stat-item .stat-label { font-size: 14px; color: #94a3b8; text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }

/* ===== ABOUT ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-text h5 { margin-bottom: 8px; }
.about-text h2 { font-size: 32px; color: #1e293b; margin-bottom: 20px; line-height: 1.3; }
.about-text p { color: #475569; margin-bottom: 16px; font-size: 15px; }
.about-features { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.about-features li { color: #1e293b; font-weight: 500; font-size: 14px; padding: 6px 0; }
.about-image { display: flex; justify-content: center; }
.about-img-placeholder { background: linear-gradient(135deg, #eff6ff, #dbeafe); border-radius: 16px; width: 100%; height: 380px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.about-img-placeholder span { font-size: 100px; }
.about-img-placeholder p { color: #64748b; margin-top: 12px; font-size: 16px; }

/* ===== PROGRAMS ===== */
.programs-section { background: #f1f5f9; }
.programs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.program-card { background: #fff; border-radius: 16px; padding: 36px 24px; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,0.04); transition: transform 0.3s, box-shadow 0.3s; border: 1px solid #e2e8f0; }
.program-card:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(0,0,0,0.1); }
.program-icon { font-size: 48px; margin-bottom: 16px; }
.program-card h3 { font-size: 18px; color: #1e293b; margin-bottom: 10px; }
.program-card p { font-size: 14px; color: #64748b; line-height: 1.6; }

/* ===== WHY CHOOSE US ===== */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.why-card { background: #fff; border-radius: 16px; padding: 32px 24px; border: 1px solid #e2e8f0; transition: all 0.3s; }
.why-card:hover { border-color: #2563eb; box-shadow: 0 8px 24px rgba(37,99,235,0.1); }
.why-num { font-size: 36px; font-weight: 800; color: #dbeafe; margin-bottom: 12px; }
.why-card h3 { font-size: 18px; color: #1e293b; margin-bottom: 8px; }
.why-card p { font-size: 14px; color: #64748b; }

/* ===== CTA ===== */
.cta-section { background: linear-gradient(135deg, #1e3a8a, #2563eb); padding: 72px 0; text-align: center; }
.cta-section h2 { font-size: 34px; color: #fff; margin-bottom: 12px; }
.cta-section p { font-size: 18px; color: rgba(255,255,255,0.85); margin-bottom: 28px; }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===== PAGE BANNER ===== */
.page-banner { background: linear-gradient(135deg, #1e293b, #334155); padding: 64px 0; text-align: center; }
.page-banner h1 { font-size: 40px; color: #fff; font-weight: 700; margin-bottom: 10px; }
.page-banner p { font-size: 17px; color: #94a3b8; }
.admission-banner { background: linear-gradient(135deg, #1e3a8a, #2563eb); }

/* ===== ACADEMICS ===== */
.academic-block { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.acad-card { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.05); border: 1px solid #e2e8f0; }
.acad-header { padding: 18px 24px; color: #fff; font-size: 18px; font-weight: 700; }
.acad-header.pre-primary { background: #f59e0b; }
.acad-header.primary { background: #3b82f6; }
.acad-header.middle { background: #10b981; }
.acad-header.secondary { background: #8b5cf6; }
.acad-body { padding: 24px; }
.acad-body p { font-size: 14px; color: #475569; margin-bottom: 10px; }
.acad-body h4 { font-size: 15px; color: #1e293b; margin: 14px 0 8px; }
.acad-body ul { padding-left: 20px; }
.acad-body ul li { font-size: 14px; color: #475569; margin-bottom: 4px; }

.facilities-section { background: #f1f5f9; }
.facilities-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; text-align: center; }
.facility-item { background: #fff; border-radius: 14px; padding: 32px 16px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); border: 1px solid #e2e8f0; transition: transform 0.2s; }
.facility-item:hover { transform: translateY(-4px); }
.facility-item span { font-size: 40px; display: block; margin-bottom: 12px; }
.facility-item h4 { font-size: 14px; color: #1e293b; }

/* ===== ADMISSION ===== */
.admission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.admission-info h2 { font-size: 30px; color: #1e293b; margin-bottom: 24px; }
.process-steps { margin-bottom: 32px; }
.step { display: flex; gap: 16px; margin-bottom: 20px; align-items: flex-start; }
.step-num { width: 40px; height: 40px; min-width: 40px; background: #2563eb; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; }
.step h4 { font-size: 16px; color: #1e293b; margin-bottom: 4px; }
.step p { font-size: 14px; color: #64748b; }
.docs-required { background: #f1f5f9; border-radius: 12px; padding: 24px; }
.docs-required h3 { font-size: 18px; color: #1e293b; margin-bottom: 12px; }
.docs-required ul { padding-left: 20px; }
.docs-required ul li { font-size: 14px; color: #475569; margin-bottom: 6px; }

.enquiry-form-card { background: #fff; border-radius: 16px; padding: 36px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); border: 1px solid #e2e8f0; }
.enquiry-form-card h3 { font-size: 22px; color: #1e293b; margin-bottom: 6px; }
.enquiry-form-card > p { font-size: 14px; color: #64748b; margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-info-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-card { background: #fff; border-radius: 14px; padding: 28px; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,0.05); border: 1px solid #e2e8f0; transition: transform 0.2s; }
.contact-card:hover { transform: translateY(-3px); }
.contact-card-icon { font-size: 36px; margin-bottom: 12px; }
.contact-card h4 { font-size: 16px; color: #1e293b; margin-bottom: 8px; }
.contact-card p { font-size: 14px; color: #64748b; line-height: 1.6; }
.contact-map h3 { font-size: 22px; color: #1e293b; margin-bottom: 16px; }

/* ===== SITE FOOTER ===== */
.site-footer { background: #0f172a; color: #94a3b8; padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-col h3 { color: #fff; font-size: 20px; margin-bottom: 16px; }
.footer-col h4 { color: #e2e8f0; font-size: 16px; margin-bottom: 14px; }
.footer-col p { font-size: 14px; line-height: 1.7; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: #94a3b8; text-decoration: none; font-size: 14px; transition: color 0.2s; }
.footer-col ul li a:hover { color: #38bdf8; }
.footer-col .contact-list li { font-size: 14px; line-height: 1.7; }
.footer-bottom { border-top: 1px solid #1e293b; padding: 20px 0; text-align: center; font-size: 14px; }

/* ===== BUTTONS ===== */
.btn { display: inline-block; padding: 12px 24px; border: none; border-radius: 8px; font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none; transition: all 0.2s; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: #2563eb; color: #fff; }
.btn-primary:hover { background: #1d4ed8; }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.6); }
.btn-outline:hover { background: rgba(255,255,255,0.15); border-color: #fff; }
.btn-success { background: #10b981; color: #fff; }
.btn-success:hover { background: #059669; }
.btn-danger { background: #ef4444; color: #fff; }
.btn-danger:hover { background: #dc2626; }
.btn-warning { background: #f59e0b; color: #fff; }
.btn-warning:hover { background: #d97706; }
.btn-lg { padding: 15px 36px; font-size: 17px; border-radius: 10px; }
.btn-sm { padding: 6px 14px; font-size: 13px; border-radius: 6px; }
.btn-block { width: 100%; text-align: center; padding: 14px; font-size: 16px; }

/* ===== FORMS ===== */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 500; color: #374151; font-size: 14px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 11px 14px; border: 1.5px solid #d1d5db; border-radius: 8px; font-size: 14px; font-family: inherit; transition: border-color 0.2s, box-shadow 0.2s; background: #fff; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.form-group textarea { resize: vertical; min-height: 90px; }
.form-group input::placeholder, .form-group textarea::placeholder { color: #9ca3af; }

/* ===== ALERTS ===== */
.alert { padding: 14px 20px; border-radius: 8px; margin-bottom: 20px; font-size: 14px; font-weight: 500; }
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-danger { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

/* ===== ADMIN LAYOUT ===== */
.layout { display: flex; min-height: 100vh; }

.sidebar { width: 240px; background: #1e293b; color: #fff; position: fixed; top: 0; left: 0; height: 100vh; padding-top: 20px; z-index: 100; }
.sidebar-header { padding: 10px 24px 30px; border-bottom: 1px solid #334155; }
.sidebar-header h2 { font-size: 22px; font-weight: 700; color: #38bdf8; }
.nav-links { list-style: none; padding: 16px 0; }
.nav-links li a { display: block; padding: 12px 24px; color: #cbd5e1; text-decoration: none; font-size: 15px; transition: background 0.2s, color 0.2s; }
.nav-links li a:hover, .nav-links li a.active { background: #334155; color: #fff; }
.nav-links li a.logout-link { color: #f87171; margin-top: 20px; border-top: 1px solid #334155; padding-top: 16px; }
.nav-links li a.logout-link:hover { background: #7f1d1d; color: #fff; }

.main-content { margin-left: 240px; padding: 32px; flex: 1; width: calc(100% - 240px); }
.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.page-header h1 { font-size: 26px; font-weight: 700; color: #1e293b; }

.card { background: #fff; border-radius: 12px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); padding: 24px; margin-bottom: 24px; }

/* Dashboard */
.dashboard-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-bottom: 28px; }
.stat-card { background: #fff; border-radius: 12px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); padding: 28px; text-align: center; }
.stat-card h3 { font-size: 14px; color: #64748b; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.stat-card .stat-number { font-size: 36px; font-weight: 700; color: #1e293b; }
.stat-card.students { border-top: 4px solid #3b82f6; }
.stat-card.classes { border-top: 4px solid #10b981; }

/* Tables */
.table-container { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
table thead { background: #f8fafc; }
table th, table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid #e2e8f0; font-size: 14px; }
table th { font-weight: 600; color: #475569; text-transform: uppercase; font-size: 12px; letter-spacing: 0.5px; }
table tbody tr:hover { background: #f8fafc; }
.action-btns { display: flex; gap: 6px; }

/* Status Badges */
.status-badge { padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; text-transform: capitalize; }
.status-new { background: #fef3c7; color: #92400e; }
.status-contacted { background: #dbeafe; color: #1e40af; }
.status-enrolled { background: #d1fae5; color: #065f46; }

/* Login Page */
.login-page { display: flex; justify-content: center; align-items: center; min-height: 100vh; background: linear-gradient(135deg, #1e293b 0%, #334155 100%); }
.login-box { background: #fff; padding: 40px; border-radius: 16px; box-shadow: 0 10px 40px rgba(0,0,0,0.2); width: 100%; max-width: 420px; }
.login-box h1 { text-align: center; margin-bottom: 8px; color: #1e293b; font-size: 24px; }
.login-box p.subtitle { text-align: center; color: #64748b; margin-bottom: 28px; font-size: 14px; }
.login-box .btn { width: 100%; padding: 13px; font-size: 16px; }

.empty-state { text-align: center; padding: 40px; color: #94a3b8; }
.empty-state p { font-size: 16px; margin-bottom: 16px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .programs-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
    .facilities-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .about-grid { grid-template-columns: 1fr; }
    .academic-block { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .topbar { display: none; }

    .mobile-toggle { display: block; }
    .pub-nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 16px; box-shadow: 0 8px 24px rgba(0,0,0,0.1); border-top: 1px solid #e2e8f0; }
    .pub-nav-links.open { display: flex; }
    .pub-nav-links a { padding: 12px 16px; width: 100%; }

    .hero-slider { height: 420px; }
    .slide-content h1 { font-size: 28px; }
    .slide-content p { font-size: 15px; }
    .slider-arrow { display: none; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-item .stat-num { font-size: 30px; }

    .programs-grid, .why-grid { grid-template-columns: 1fr; }
    .facilities-grid { grid-template-columns: repeat(2, 1fr); }

    .admission-grid, .contact-grid { grid-template-columns: 1fr; }
    .contact-info-cards { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }

    .footer-grid { grid-template-columns: 1fr; gap: 28px; }

    .sidebar { width: 200px; }
    .main-content { margin-left: 200px; width: calc(100% - 200px); padding: 20px; }

    .section { padding: 48px 0; }
    .section-header h2 { font-size: 26px; }
    .cta-section h2 { font-size: 26px; }
    .page-banner h1 { font-size: 30px; }
}

@media (max-width: 480px) {
    .hero-slider { height: 360px; }
    .slide-content h1 { font-size: 24px; }
    .btn-lg { padding: 12px 24px; font-size: 15px; }
    .about-features { grid-template-columns: 1fr; }
}
