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

/* ========== Variables ========== */
:root {
  --primary: #0F2D6B;
  --primary-dark: #091D47;
  --secondary: #1E5BFF;
  --accent: #F4B400;
  --accent-dark: #D49B00;
  --bg: #F8FAFC;
  --white: #FFFFFF;
  --text: #1E293B;
  --text-light: #64748B;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.12);
  --radius: 18px;
  --radius-lg: 24px;
}

* { margin:0; padding:0; box-sizing:border-box; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--text);
  padding-top: 75px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4,h5,h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  color: var(--primary-dark);
}

/* ========== Navbar (Premium Glassmorphism) ========== */
.navbar {
  background: rgba(15,45,107,0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 0.4rem 0;
  min-height: 75px;
  transition: all 0.4s ease;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.navbar.scrolled {
  background: var(--primary);
  box-shadow: var(--shadow-md);
}
.logo-img {
  height: 50px; width: 50px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  object-fit: cover;
}
.school-name {
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
  margin-left: 10px;
}
.nav-link {
  color: rgba(255,255,255,0.92) !important;
  font-weight: 500;
  margin: 0 1px;
  padding: 8px 14px !important;
  border-radius: 30px;
  transition: all 0.3s ease;
}
.nav-link:hover, .nav-link.active {
  background: var(--accent);
  color: var(--primary) !important;
}

/* Mobile offcanvas */
.offcanvas {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(16px);
}
.offcanvas .nav-link {
  color: var(--primary) !important;
  font-weight: 600;
  padding: 12px 18px !important;
  border-radius: 12px;
  margin: 3px 0;
}
.offcanvas .nav-link:hover, .offcanvas .nav-link.active {
  background: var(--primary);
  color: white !important;
}

/* ========== Hero Carousel ========== */
.carousel-item {
  height: 85vh; min-height: 500px;
  background-size: cover; background-position: center;
  position: relative;
}
.carousel-item::after {
  content: '';
  position: absolute; top:0; left:0; width:100%; height:100%;
  background: linear-gradient(180deg, rgba(15,45,107,0.25) 0%, rgba(9,29,71,0.7) 100%);
  z-index: 1;
}
.carousel-caption {
  position: absolute; z-index:2;
  bottom: 18%; left: 8%; right: 8%;
  max-width: 600px; text-align: left;
}
.carousel-caption h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 3rem; font-weight: 900;
  color: white; line-height: 1.2;
  text-shadow: 2px 2px 12px rgba(0,0,0,0.4);
}
.carousel-caption p {
  font-size: 1.15rem; color: rgba(255,255,255,0.9);
  margin-bottom: 1.5rem;
}

/* Elegant arrows */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  width: 48px; height: 48px;
}

/* ========== Buttons ========== */
.btn-gold {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--primary-dark);
  font-weight: 700; padding: 12px 32px;
  border-radius: 50px; border: none;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
  text-transform: uppercase; letter-spacing: 0.5px;
  box-shadow: 0 6px 20px rgba(244,180,0,0.3);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(244,180,0,0.4);
  color: white;
}

/* ========== Section Headings ========== */
.section-heading {
  font-family: 'Poppins', sans-serif;
  font-size: 2.4rem; font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 1.8rem; position: relative;
  display: inline-block;
}
.section-heading::after {
  content: ''; position: absolute;
  bottom: -10px; left: 0;
  width: 70px; height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  border-radius: 2px;
}

/* ========== Cards (Why Choose Us) ========== */
.card-custom {
  background: white; border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.25,0.8,0.25,1.2);
  overflow: hidden; height: 100%;
}
.card-custom:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}
.card-icon {
  width: 60px; height: 60px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white; font-size: 1.6rem; margin-bottom: 1rem;
}

/* ========== Statistics Section ========== */
.stats-section {
  background: linear-gradient(135deg, #0F2D6B, #1E5BFF);
  padding: 70px 0; position: relative; overflow: hidden;
}
.stats-section::before {
  content: ''; position: absolute; top:0; left:0; width:100%; height:100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.counter-box {
  text-align: center; color: white; padding: 20px;
}
.counter-box .icon {
  font-size: 2.5rem; color: var(--accent); margin-bottom: 10px;
}
.counter {
  font-family: 'Poppins', sans-serif;
  font-size: 2.8rem; font-weight: 800;
  color: var(--accent);
}

/* ========== Latest News Cards ========== */
.news-card {
  background: white; border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: all 0.4s ease;
}
.news-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.news-card img {
  width: 100%; height: 200px; object-fit: cover;
}
.news-card .date-badge {
  position: absolute; top: 15px; right: 15px;
  background: var(--accent); color: var(--primary-dark);
  font-weight: 700; font-size: 0.8rem;
  padding: 5px 12px; border-radius: 20px;
}

/* ========== Footer Premium ========== */
.premium-footer {
  background: var(--primary-dark);
  color: #ccc; padding: 60px 0 20px;
}
.premium-footer h5 {
  color: var(--accent); font-weight: 700; margin-bottom: 1.2rem;
}
.premium-footer a {
  color: #ccc; text-decoration: none; transition: 0.3s;
}
.premium-footer a:hover { color: var(--accent); }
.social-icons a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; background: rgba(255,255,255,0.1);
  border-radius: 50%; color: var(--accent); margin-right: 10px;
  transition: 0.3s;
}
.social-icons a:hover { background: var(--accent); color: var(--primary-dark); }

/* ========== Back to Top ========== */
#backToTop {
  position: fixed; bottom: 30px; right: 30px; z-index: 999;
  width: 48px; height: 48px; background: var(--accent);
  color: var(--primary-dark); border: none; border-radius: 50%;
  font-size: 1.2rem; cursor: pointer; display: none;
  box-shadow: var(--shadow-md); transition: 0.3s;
}
#backToTop:hover { background: var(--accent-dark); color: white; }

/* ========== Responsive ========== */
@media (max-width: 992px) {
  body { padding-top: 68px; }
  .navbar { min-height: 68px; }
}
@media (max-width: 768px) {
  body { padding-top: 64px; }
  .navbar { min-height: 64px; }
  .logo-img { height: 40px; width: 40px; }
  .school-name { font-size: 1rem; }
  .carousel-item { height: 65vh; }
  .carousel-caption h2 { font-size: 1.8rem; }
  .section-heading { font-size: 1.9rem; }
  .counter { font-size: 2rem; }
}