@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #002B5B; /* Deep Academic Blue */
  --primary-light: #0A4C95; /* Light Blue */
  --primary-dark: #001a38;
  --secondary: #FFFFFF; /* White */
  --accent: #F7931E; /* Gold / Orange */
  --accent-light: #f9ab4d;
  --whatsapp: #25d366; 
  --text-main: #1a1a1a;
  --text-muted: #555555;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 40px rgba(0,0,0,0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; color: var(--text-main); background-color: var(--bg-light); line-height: 1.6; overflow-x: hidden; scroll-behavior: smooth; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4, h5, h6 { font-family: 'Outfit', sans-serif; font-weight: 700; color: var(--primary); line-height: 1.2; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-alt { background: var(--bg-white); }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 16px; position: relative; display: inline-block; color: var(--primary); }
.section-header h2::after { content: ''; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); width: 60px; height: 4px; background: var(--accent); border-radius: 2px; }
.section-header p { color: var(--text-muted); font-size: 1.1rem; max-width: 700px; margin: 20px auto 0; }

/* Page Header */
.page-header { background: var(--primary); color: white; padding: 80px 0 60px; text-align: center; position: relative; overflow: hidden; }
.page-header h1 { color: white; font-size: 3.5rem; margin-bottom: 16px; position: relative; z-index: 2; }
.page-header p { color: rgba(255,255,255,0.8); font-size: 1.2rem; max-width: 700px; margin: 0 auto; position: relative; z-index: 2; }
.page-header::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(10, 76, 149, 0.4) 0%, transparent 100%); z-index: 1; }

/* Buttons */
.btn { padding: 14px 28px; border-radius: 4px; font-weight: 600; font-size: 0.95rem; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; border: none; transition: var(--transition); justify-content: center; text-align: center; }
.btn-primary { background: var(--accent); color: var(--primary-dark); box-shadow: 0 4px 15px rgba(247, 147, 30, 0.3); }
.btn-primary:hover { background: var(--accent-light); color: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(247, 147, 30, 0.4); }
.btn-outline { background: transparent; border: 2px solid var(--accent); color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: var(--primary-dark); }
.btn-whatsapp { background: var(--whatsapp); color: white; box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3); }
.btn-whatsapp:hover { background: #1eb954; transform: translateY(-2px); }

/* Top Bar */
.top-bar { background: var(--primary-dark); color: white; padding: 8px 0; font-size: 0.85rem; text-align: right; }
.top-bar a { color: var(--accent); font-weight: 600; margin-left: 15px; }

/* Header & Navigation */
.header { background: white; padding: 20px 0; position: sticky; top: 0; z-index: 1000; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); }
.nav-container { display: flex; justify-content: space-between; align-items: center; max-width: 1450px !important; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-img { height: 60px; width: auto; }
.logo-text { font-family: 'Outfit', sans-serif; font-size: 1.4rem; font-weight: 800; color: var(--primary); display: flex; flex-direction: column; line-height: 1.1; }
.logo-text span { font-size: 0.7rem; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 1px; margin-top: 2px; }

/* Navigation Drawer Toggle */
.nav-toggle { display: none; background: none; border: none; color: var(--primary); font-size: 1.5rem; cursor: pointer; }

/* Navigation Links */
.nav-links { display: flex; gap: 20px; align-items: center; }
.nav-links a:not(.nav-cta) { font-weight: 600; color: var(--text-main); font-size: 0.95rem; position: relative; padding: 5px 0; transition: var(--transition); white-space: nowrap; }
.nav-links a:not(.nav-cta):hover, .nav-links a.active { color: var(--primary-light); }
.nav-links a:not(.nav-cta)::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--accent); transition: var(--transition); }
.nav-links a:not(.nav-cta):hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta { background: var(--primary); color: white !important; padding: 12px 24px; border-radius: 4px; font-weight: 600; white-space: nowrap; }
.nav-cta:hover { background: var(--primary-light); }

/* Hero Section */
.hero { position: relative; padding: 160px 0 100px; color: white; min-height: 90vh; display: flex; align-items: center; }
.hero-video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: center center; z-index: -2; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(rgba(0,0,0,0.20), rgba(0,0,0,0.20)); z-index: -1; }
.hero-content { position: relative; z-index: 1; width: 100%; }
.hero-text-wrapper { max-width: 700px; text-align: left; }
.main-heading { color: white; font-size: 4rem; font-weight: 800; margin-bottom: 20px; line-height: 1.1; letter-spacing: -1px; }
.hero-subtext { font-size: 1.2rem; color: rgba(255,255,255,0.9); margin-bottom: 40px; line-height: 1.6; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

/* Dashboard Cards (Hero Stats) */
.hero-stats { display: flex; gap: 20px; margin-top: 60px; }
.stat-card { background: transparent; padding: 24px; border-radius: var(--radius-md); border: 1px solid rgba(255,255,255,0.2); flex: 1; text-align: center; }
.stat-card .value { font-size: 2.5rem; font-family: 'Outfit'; font-weight: 800; color: var(--accent); line-height: 1; margin-bottom: 8px; }
.stat-card .label { font-size: 0.9rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: white; }

/* Grid Layouts */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* Programme Cards */
.programme-card { background: white; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--transition); border: 1px solid rgba(0,0,0,0.05); display: flex; flex-direction: column; }
.programme-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); }
.prog-img { height: 160px; background: var(--primary-light); color: white; display: flex; align-items: center; justify-content: center; }
.prog-content { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.prog-school { color: var(--primary-light); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; margin-bottom: 8px; }
.prog-content h3 { font-size: 1.3rem; margin-bottom: 12px; color: var(--text-main); }
.prog-meta { display: flex; gap: 15px; margin-bottom: 20px; font-size: 0.9rem; color: var(--text-muted); flex-wrap: wrap; }
.prog-meta span { display: flex; align-items: center; gap: 6px; }
.prog-actions { margin-top: auto; display: flex; gap: 10px; }
.prog-actions .btn { flex: 1; padding: 10px 15px; font-size: 0.85rem; }

/* Interactive Widgets */
.widget-card { background: white; border-radius: var(--radius-md); padding: 32px; box-shadow: var(--shadow-md); border: 1px solid rgba(0,0,0,0.05); }
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-weight: 600; margin-bottom: 8px; color: var(--text-main); font-size: 0.95rem; }
.form-control { width: 100%; padding: 12px 16px; border: 1px solid #ddd; border-radius: 4px; font-size: 1rem; font-family: inherit; transition: var(--transition); }
.form-control:focus { outline: none; border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(10, 76, 149, 0.1); }

/* Forms & Application Workflow */
.apply-form-container { background: white; padding: 40px; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); border-top: 4px solid var(--primary); }
.success-msg { display: none; text-align: center; padding: 40px; }
.success-msg h3 { color: var(--primary); font-size: 2rem; margin-bottom: 15px; }

/* Process Timeline */
.process-timeline { display: flex; flex-direction: column; gap: 30px; position: relative; padding-left: 40px; margin-top: 40px; }
.process-timeline::before { content: ''; position: absolute; top: 0; left: 15px; width: 2px; height: 100%; background: var(--primary-light); opacity: 0.3; }
.process-step { position: relative; }
.process-step::before { content: ''; position: absolute; top: 0; left: -31px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); border: 3px solid white; box-shadow: 0 0 0 2px var(--accent); }
.process-step h3 { margin-bottom: 8px; }

/* Admin Dashboard Table */
.admin-table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.admin-table th, .admin-table td { padding: 12px 15px; text-align: left; border-bottom: 1px solid #eee; }
.admin-table th { background: var(--bg-light); color: var(--primary); font-weight: 600; }

/* FAQ Accordion */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { background: white; border-radius: var(--radius-sm); margin-bottom: 16px; box-shadow: var(--shadow-sm); border: 1px solid rgba(0,0,0,0.05); }
.faq-question { padding: 20px 24px; font-weight: 600; font-size: 1.05rem; color: var(--primary); display: flex; justify-content: space-between; align-items: center; cursor: pointer; transition: var(--transition); }
.faq-question:hover { background: rgba(0, 43, 91, 0.02); }
.faq-answer { padding: 0 24px 20px; display: none; color: var(--text-muted); }

/* Footer */
.footer { background: var(--primary-dark); color: white; padding: 80px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 60px; margin-bottom: 60px; }
.footer h4 { color: white; margin-bottom: 24px; font-size: 1.1rem; position: relative; }
.footer h4::after { content: ''; position: absolute; bottom: -8px; left: 0; width: 30px; height: 2px; background: var(--accent); }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: rgba(255,255,255,0.7); font-size: 0.95rem; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px; text-align: center; color: rgba(255,255,255,0.5); font-size: 0.9rem; }

/* Floating & Sticky */
.sticky-bar { display: none; }
.floating-whatsapp { position: fixed; bottom: 30px; right: 30px; background: var(--whatsapp); color: white; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); z-index: 1000; transition: var(--transition); }
.floating-whatsapp:hover { transform: scale(1.1); }

/* Recent Admissions Feed */
.recent-feed { position: fixed; bottom: 30px; left: 30px; z-index: 1000; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.feed-item { background: white; border-left: 4px solid var(--primary); padding: 14px 20px; border-radius: 4px; box-shadow: var(--shadow-lg); font-size: 0.9rem; display: flex; align-items: center; gap: 12px; animation: slideInUp 0.5s forwards, fadeOut 0.5s 5s forwards; opacity: 0; pointer-events: auto; }

/* Mobile Navigation Drawer */
.nav-drawer { position: fixed; top: 0; left: -100%; width: 280px; height: 100%; background: white; z-index: 1001; box-shadow: 2px 0 20px rgba(0,0,0,0.1); transition: 0.4s ease; padding: 30px 20px; display: flex; flex-direction: column; gap: 20px; }
.nav-drawer.open { left: 0; }
.nav-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1000; display: none; }
.nav-overlay.open { display: block; }
.nav-drawer a { font-weight: 600; font-size: 1.1rem; padding: 10px 0; border-bottom: 1px solid #f0f0f0; color: var(--primary); }

@media (max-width: 992px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .hero { min-height: 100vh; padding: 120px 0 40px; justify-content: center; display: flex; flex-direction: column; }
  .hero-text-wrapper { text-align: center; margin: 0 auto; }
  .main-heading { font-size: 3.2rem; margin-bottom: 15px; }
  .hero-subtext { font-size: 1.1rem; margin-bottom: 25px; }
  .hero-btns { justify-content: center; }
  .hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 30px; width: 100%; }
  .stat-card { padding: 15px 10px; }
  .stat-card .value { font-size: 1.8rem; margin-bottom: 5px; }
  .stat-card .label { font-size: 0.75rem; letter-spacing: 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hero { min-height: 100vh; padding: 100px 0 60px; justify-content: center; display: flex; flex-direction: column; }
  .main-heading { font-size: 2.5rem; font-weight: 900; text-shadow: 0 2px 8px rgba(0,0,0,0.4); line-height: 1.2; margin-bottom: 20px; }
  .hero-subtext { font-size: 1.1rem; text-shadow: 0 1px 4px rgba(0,0,0,0.5); margin-bottom: 30px; font-weight: 500; }
  .hero-btns { flex-direction: column; width: 100%; gap: 15px; }
  .hero-btns .btn { width: 100%; padding: 18px; border-radius: 8px; font-weight: 700; box-shadow: 0 4px 10px rgba(0,0,0,0.15); }
  .hero-btns .btn-outline { background-color: #e0f2fe; color: #0369a1; border: none; }
  .hero-btns .btn-primary { background-color: var(--accent); color: var(--primary-dark); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 30px; }
  .stat-card { padding: 15px 10px; }
  .stat-card .value { font-size: 1.6rem; margin-bottom: 5px; }
  .stat-card .label { font-size: 0.75rem; letter-spacing: 0; }
  .sticky-bar { display: flex; position: fixed; bottom: 0; left: 0; width: 100%; background: white; box-shadow: 0 -4px 10px rgba(0,0,0,0.1); z-index: 999; }
  .sticky-bar .btn { flex: 1; border-radius: 0; padding: 16px 0; font-size: 0.9rem; }
  .floating-whatsapp { display: none; }
  body { padding-bottom: 60px; }
}

@keyframes slideInUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes fadeOut { to { opacity: 0; transform: translateY(-10px); visibility: hidden; } }
