/* ============================================================
   GENIUS ISLAMIAN'S ACADEMY — Main Stylesheet
   ============================================================ */

/* ── Skeleton loading placeholders ── */
.skeleton-card {
  background: linear-gradient(90deg, #e8ecf4 25%, #f2f4fb 50%, #e8ecf4 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 12px;
  min-height: 200px;
}
.skeleton-card.tall { min-height: 340px; }
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* ── Empty state ── */
.empty-state { color: #94a3b8; font-size: .9rem; text-align: center; padding: 40px 20px; }
.text-center { text-align: center; }

:root {
  --navy:       #0d1b3e;
  --navy-deep:  #07112a;
  --navy-mid:   #162447;
  --gold:       #f5a623;
  --gold-dark:  #d4891a;
  --gold-light: #ffd780;
  --white:      #ffffff;
  --off-white:  #f8f9fc;
  --text:       #1e293b;
  --text-muted: #64748b;
  --border:     #e2e8f0;
  --shadow:     0 4px 24px rgba(13,27,62,0.10);
  --shadow-lg:  0 12px 48px rgba(13,27,62,0.18);
  --radius:     12px;
  --radius-lg:  20px;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select {
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  width: 100%;
  transition: var(--transition);
  background: var(--white);
}
input:focus, textarea:focus, select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245,166,35,0.15);
}
textarea { resize: vertical; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}
.section-header p { color: var(--text-muted); margin-top: 12px; }

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(245,166,35,0.10);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.section-label.light { color: var(--gold-light); background: rgba(255,255,255,0.15); }

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--navy);
  line-height: 1.2;
}
.section-title span { color: var(--gold); }
.section-title.light { color: var(--white); }
.section-title.light span { color: var(--gold-light); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--navy-deep);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 8px;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(245,166,35,0.35);
}
.btn-primary:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245,166,35,0.45);
}
.btn-primary.white { background: var(--white); color: var(--navy); }
.btn-primary.white:hover { background: var(--gold); }
.btn-primary.full { width: 100%; justify-content: center; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid rgba(255,255,255,0.7);
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 28px;
  border-radius: 8px;
  transition: var(--transition);
}
.btn-outline:hover { background: rgba(255,255,255,0.15); border-color: var(--white); }

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar {
  background: var(--navy-deep);
  padding: 10px 0;
  font-size: 0.85rem;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar-left { display: flex; gap: 24px; flex-wrap: wrap; }
.topbar-left a {
  color: rgba(255,255,255,0.75);
  display: flex;
  align-items: center;
  gap: 6px;
}
.topbar-left a:hover { color: var(--gold); }
.topbar-left i { color: var(--gold); }
.topbar-right { display: flex; align-items: center; gap: 12px; }

.btn-app {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--gold);
  color: var(--navy-deep);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: 6px;
}
.btn-app:hover { background: var(--gold-dark); }

.btn-login {
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 5px;
}
.btn-login:hover { color: var(--gold); }

.btn-register {
  color: var(--navy-deep);
  background: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 6px;
}
.btn-register:hover { background: var(--gold); }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 16px rgba(13,27,62,0.10);
  transition: var(--transition);
}
.header.scrolled { box-shadow: 0 4px 32px rgba(13,27,62,0.18); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.logo img {
  height: 52px;
  width: 52px;
  object-fit: contain;
  border-radius: 50%;
  border: 2px solid var(--gold);
}
.logo-text { display: flex; flex-direction: column; }
.logo-main {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
}
.logo-sub {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav ul li a {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 6px;
  transition: var(--transition);
  position: relative;
}
.nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transform: scaleX(0);
  transition: var(--transition);
}
.nav ul li a:hover, .nav ul li a.active { color: var(--navy); }
.nav ul li a:hover::after, .nav ul li a.active::after { transform: scaleX(1); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============================================================
   HERO CAROUSEL
   ============================================================ */
.hero { position: relative; overflow: hidden; }

.carousel { position: relative; overflow: hidden; }

.carousel-track {
  display: flex;
  transition: transform 0.7s cubic-bezier(0.77,0,0.175,1);
}

.slide {
  min-width: 100%;
  height: 88vh;
  min-height: 520px;
  max-height: 780px;
  position: relative;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
}

.slide-1 { background: linear-gradient(135deg, #0d1b3e 0%, #1a3a6e 50%, #0d3b6e 100%); }
.slide-2 { background: linear-gradient(135deg, #1a2a0e 0%, #2d4a1e 50%, #1e3a0e 100%); }
.slide-3 { background: linear-gradient(135deg, #3e1a0d 0%, #6e2a1a 50%, #5a1a0a 100%); }
.slide-4 { background: linear-gradient(135deg, #0d2e3e 0%, #0d4a5e 50%, #064a5e 100%); }

/* Decorative pattern overlay */
.slide-1::before { content: ''; position: absolute; inset: 0; 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.03'%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"); }
.slide-2::before, .slide-3::before, .slide-4::before { content: ''; position: absolute; inset: 0; background: inherit; opacity: 0.3; }

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.25) 60%, transparent 100%);
}

.slide-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  padding: 0 80px;
  animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.slide-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--navy-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.slide-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.6rem);
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
}
.slide-content h1 .highlight { color: var(--gold); }

.slide-content p {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: rgba(255,255,255,0.85);
  margin-bottom: 36px;
  line-height: 1.7;
}

.slide-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Carousel Controls */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255,255,255,0.3);
  color: var(--white);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  line-height: 1;
}
.carousel-btn:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.carousel-btn.prev { left: 24px; }
.carousel-btn.next { right: 24px; }
.carousel-btn.small {
  width: 42px;
  height: 42px;
  font-size: 1.5rem;
  background: var(--white);
  border: 1.5px solid var(--border);
  color: var(--navy);
}
.carousel-btn.small:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }

.carousel-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: var(--transition);
}
.dot.active { background: var(--gold); width: 24px; border-radius: 4px; }

/* ============================================================
   STATS STRIP
   ============================================================ */
.stats-strip {
  background: var(--navy);
  padding: 48px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.stat-item {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--white);
}
.stat-item > i {
  font-size: 2.2rem;
  color: var(--gold);
  flex-shrink: 0;
}
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.stat-plus { font-size: 1.6rem; color: var(--gold); font-weight: 700; }
.stat-item p { font-size: 0.9rem; color: rgba(255,255,255,0.7); margin-top: 4px; }

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-section { background: var(--off-white); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}

.about-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: visible;
}
.about-img-placeholder {
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  border-radius: var(--radius-lg);
  height: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  box-shadow: var(--shadow-lg);
}
.about-img-placeholder i { font-size: 4rem; color: var(--gold); }
.about-img-placeholder span { color: rgba(255,255,255,0.7); font-size: 0.9rem; font-weight: 500; }

.about-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--gold);
  color: var(--navy-deep);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 16px 24px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow);
}
.about-badge i { font-size: 1.2rem; }

.about-content .section-label { margin-bottom: 12px; }
.about-content .section-title { margin-bottom: 20px; }
.about-content > p { color: var(--text-muted); margin-bottom: 16px; }
.about-lead { font-size: 1.05rem; color: var(--text) !important; font-weight: 500; }
.about-content h3 { font-size: 1.15rem; color: var(--navy); margin: 24px 0 8px; }

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 24px 0 32px;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
}
.feature-item i { color: var(--gold); font-size: 1rem; flex-shrink: 0; }

/* ============================================================
   COURSES SECTION
   ============================================================ */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.course-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  border: 1.5px solid var(--border);
  position: relative;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.course-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}
.course-card.featured {
  background: var(--navy);
  border-color: var(--gold);
}
.course-card.featured h3, .course-card.featured p { color: var(--white); }
.course-card.featured .course-topics li { color: rgba(255,255,255,0.7); }
.course-card.featured .course-icon { background: rgba(245,166,35,0.2); }
.course-card.featured .course-icon i { color: var(--gold); }

.course-icon {
  width: 64px;
  height: 64px;
  background: rgba(245,166,35,0.10);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.course-icon i { font-size: 1.6rem; color: var(--gold); }

.course-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  background: var(--gold);
  color: var(--navy-deep);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: 100px;
}

.course-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  color: var(--navy);
  margin-bottom: 12px;
}
.course-card > p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 20px; line-height: 1.6; }

.course-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  flex: 1;
}
.course-topics li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--off-white);
  padding: 4px 12px;
  border-radius: 100px;
}
.course-card.featured .course-topics li { background: rgba(255,255,255,0.08); }
.course-topics li i { font-size: 0.5rem; color: var(--gold); }

.btn-course {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--gold);
  padding: 10px 0;
  border-top: 1.5px solid var(--border);
  transition: var(--transition);
}
.course-card.featured .btn-course { border-color: rgba(255,255,255,0.15); }
.btn-course:hover { gap: 12px; }

/* ============================================================
   WHY CHOOSE US
   ============================================================ */
.why-section { background: var(--off-white); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.why-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  border: 1.5px solid var(--border);
  transition: var(--transition);
  text-align: center;
}
.why-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: var(--shadow-lg);
}
.why-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.why-icon i { font-size: 1.5rem; color: var(--gold); }
.why-card h4 { font-size: 1.05rem; color: var(--navy); margin-bottom: 10px; font-weight: 700; }
.why-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

/* ============================================================
   APPLY FOR EXAMS
   ============================================================ */
.exams-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  position: relative;
  overflow: hidden;
}
.exams-section::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(245,166,35,0.06);
}
.exams-section::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(245,166,35,0.04);
}

.exams-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.exams-content p { color: rgba(255,255,255,0.75); margin: 16px 0 32px; }

.exam-steps { display: flex; flex-direction: column; gap: 16px; margin-bottom: 36px; }
.step {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--white);
  font-weight: 500;
}
.step-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold);
  width: 48px;
  flex-shrink: 0;
}

.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}
.form-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 24px;
}
.form-group { margin-bottom: 16px; }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 240px);
  gap: 16px;
}
.g-tall { grid-row: span 2; }
.g-wide { grid-column: span 2; }

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.gallery-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: var(--transition);
}
.gallery-placeholder i { font-size: 2.5rem; color: var(--gold); opacity: 0.7; }
.gallery-placeholder span { color: rgba(255,255,255,0.5); font-size: 0.85rem; }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13,27,62,0.85);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: var(--transition);
}
.gallery-overlay span { color: var(--white); font-weight: 600; font-size: 0.95rem; }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-item:hover .gallery-placeholder { transform: scale(1.05); }

/* ============================================================
   ACHIEVEMENTS
   ============================================================ */
.achievements-section { background: var(--off-white); }

.achievements-carousel {
  position: relative;
  overflow: hidden;
  padding: 0 60px;
}
.achieve-track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}
.achieve-card {
  min-width: 220px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1.5px solid var(--border);
  transition: var(--transition);
  flex-shrink: 0;
}
.achieve-card:hover { transform: translateY(-4px); border-color: var(--gold); }
.achieve-rank {
  display: inline-block;
  background: var(--gold);
  color: var(--navy-deep);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.achieve-avatar {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.achieve-avatar i { font-size: 1.6rem; color: var(--gold); }
.achieve-card h4 { font-size: 1rem; color: var(--navy); font-weight: 700; margin-bottom: 6px; }
.achieve-card p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }
.achieve-college { color: var(--gold) !important; font-weight: 600 !important; margin-top: 6px; }
.achieve-stars { margin-top: 12px; color: var(--gold); font-size: 0.8rem; }

/* ============================================================
   TEACHERS
   ============================================================ */
.teachers-carousel-wrap {
  position: relative;
  overflow: hidden;
  padding: 0 60px;
}
.teachers-carousel { overflow: hidden; }
.teachers-track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}
.teacher-card {
  min-width: 260px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1.5px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: var(--transition);
  flex-shrink: 0;
}
.teacher-card:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: var(--shadow-lg); }
.teacher-avatar {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border: 3px solid var(--gold);
}
.teacher-avatar i { font-size: 2rem; color: var(--gold); }
.teacher-card h4 { font-size: 1.05rem; color: var(--navy); font-weight: 700; margin-bottom: 4px; }
.teacher-subject {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold);
  background: rgba(245,166,35,0.10);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 12px;
}
.teacher-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

/* ============================================================
   NEWS SECTION
   ============================================================ */
.news-section { background: var(--off-white); }

.news-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 28px;
  align-items: start;
}

.news-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1.5px solid var(--border);
  transition: var(--transition);
}
.news-card:hover { box-shadow: var(--shadow-lg); border-color: var(--gold); }

.news-img-placeholder {
  height: 220px;
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.news-img-placeholder.sm { height: 80px; width: 80px; border-radius: 10px; flex-shrink: 0; }
.news-img-placeholder i { font-size: 2.5rem; color: var(--gold); opacity: 0.7; }
.news-img-placeholder.sm i { font-size: 1.5rem; }

.news-body { padding: 24px; }

.news-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}
.news-date i { color: var(--gold); }
.news-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--navy-deep);
  background: var(--gold);
  padding: 3px 10px;
  border-radius: 100px;
  margin-left: 8px;
}

.news-body h3 { font-size: 1.15rem; color: var(--navy); margin: 8px 0 12px; line-height: 1.4; }
.news-body h4 { font-size: 0.92rem; color: var(--navy); margin: 8px 0 12px; line-height: 1.4; }
.news-body p { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 16px; }

.btn-news {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
  transition: var(--transition);
}
.btn-news:hover { gap: 10px; }
.btn-news.sm { font-size: 0.8rem; }

.news-side { display: flex; flex-direction: column; gap: 16px; }
.small-news { display: flex; flex-direction: row; align-items: stretch; }
.small-news .news-body { padding: 16px; }

/* ============================================================
   BOOKS SECTION
   ============================================================ */
.books-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.book-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  box-shadow: var(--shadow);
  border: 1.5px solid var(--border);
  transition: var(--transition);
}
.book-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--gold); }

.book-cover {
  position: relative;
  width: 120px;
  height: 160px;
  margin-bottom: 20px;
  perspective: 500px;
}
.book-spine {
  position: absolute;
  left: 0; top: 0;
  width: 24px;
  height: 100%;
  background: linear-gradient(180deg, #1a1a2e, #0d0d1a);
  border-radius: 4px 0 0 4px;
}
.book-front {
  position: absolute;
  left: 24px; top: 0;
  right: 0; bottom: 0;
  border-radius: 0 6px 6px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px;
  text-align: center;
  box-shadow: 4px 4px 16px rgba(0,0,0,0.3);
}
.book-front.chem, .book-subject.chem { background: linear-gradient(135deg, #1a3a6e, #0d2b55); }
.book-subject.phy { background: linear-gradient(135deg, #2d1a6e, #1a0d55); }
.book-front { background: linear-gradient(135deg, #1a3a6e, #0d2b55); }
.book-card:nth-child(4) .book-front { background: linear-gradient(135deg, #2d1a6e, #1a0d55); }
.book-card:nth-child(4) .book-spine { background: linear-gradient(180deg, #1a1036, #0d0826); }

.book-subject {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(245,166,35,0.15);
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}
.book-type { font-size: 0.85rem; color: var(--white); font-weight: 700; margin-bottom: 4px; }
.book-edition { font-size: 0.7rem; color: rgba(255,255,255,0.6); }
.book-year { font-size: 0.7rem; color: var(--gold); font-weight: 600; margin-top: 4px; }

.book-info { text-align: center; }
.book-info h4 { font-size: 0.9rem; color: var(--navy); font-weight: 700; margin-bottom: 4px; line-height: 1.4; }
.book-info p { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 12px; }
.book-price {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 14px;
}

.btn-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 8px;
  transition: var(--transition);
  width: 100%;
}
.btn-cart:hover { background: var(--gold); color: var(--navy-deep); }

/* ============================================================
   EVENTS
   ============================================================ */
.events-section { background: var(--off-white); }

.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.event-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 20px;
  transition: var(--transition);
}
.event-card:hover { border-color: var(--gold); box-shadow: var(--shadow-lg); transform: translateY(-3px); }

.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  border-radius: 10px;
  padding: 12px 16px;
  min-width: 64px;
  text-align: center;
  flex-shrink: 0;
}
.event-day { font-family: 'Playfair Display', serif; font-size: 1.8rem; color: var(--gold); font-weight: 700; line-height: 1; }
.event-month { font-size: 0.75rem; color: rgba(255,255,255,0.7); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px; }

.event-info { flex: 1; }
.event-info h4 { font-size: 0.98rem; color: var(--navy); font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.event-info p { font-size: 0.82rem; color: var(--text-muted); display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.event-info p i { color: var(--gold); width: 12px; }

.btn-event {
  display: inline-block;
  margin-top: 12px;
  background: var(--gold);
  color: var(--navy-deep);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 6px;
  transition: var(--transition);
}
.btn-event:hover { background: var(--gold-dark); }

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}
.contact-icon {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-icon i { font-size: 1rem; color: var(--gold); }
.contact-item h4 { font-size: 0.85rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.contact-item p, .contact-item a { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }
.contact-item a:hover { color: var(--gold); }

.social-links { display: flex; gap: 12px; margin-top: 8px; }
.social-links a {
  width: 40px;
  height: 40px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: var(--transition);
}
.social-links a:hover { background: var(--gold); color: var(--navy-deep); transform: translateY(-2px); }

.contact-form {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1.5px solid var(--border);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--navy-deep); }

.footer-top { padding: 80px 0 56px; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr 1.4fr;
  gap: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.footer-logo img {
  height: 44px;
  width: 44px;
  object-fit: contain;
  border-radius: 50%;
  border: 2px solid var(--gold);
}
.brand-col p { font-size: 0.85rem; color: rgba(255,255,255,0.55); line-height: 1.7; margin-bottom: 20px; }
.brand-col .logo-main { color: var(--white); }
.brand-col .logo-sub { color: var(--gold); }

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(245,166,35,0.3);
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 0.88rem; color: rgba(255,255,255,0.55); transition: var(--transition); }
.footer-col ul li a:hover { color: var(--gold); padding-left: 4px; }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}
.footer-contact-item i { color: var(--gold); font-size: 0.9rem; margin-top: 3px; flex-shrink: 0; }
.footer-contact-item p, .footer-contact-item a { font-size: 0.85rem; color: rgba(255,255,255,0.55); line-height: 1.6; }
.footer-contact-item a:hover { color: var(--gold); }

.newsletter-col p { font-size: 0.88rem; color: rgba(255,255,255,0.55); margin-bottom: 16px; }

.newsletter-form {
  display: flex;
  border-radius: 8px;
  overflow: hidden;
  border: 1.5px solid rgba(255,255,255,0.15);
  margin-bottom: 24px;
}
.newsletter-form input {
  background: rgba(255,255,255,0.06);
  border: none;
  color: var(--white);
  border-radius: 0;
  flex: 1;
  font-size: 0.85rem;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.35); }
.newsletter-form input:focus { box-shadow: none; }
.newsletter-form button {
  background: var(--gold);
  color: var(--navy-deep);
  padding: 0 18px;
  font-size: 1rem;
  flex-shrink: 0;
  transition: var(--transition);
}
.newsletter-form button:hover { background: var(--gold-dark); }

.app-download p { font-size: 0.82rem; color: rgba(255,255,255,0.45); margin-bottom: 8px; }
.btn-app-store {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.15);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 8px;
  transition: var(--transition);
}
.btn-app-store:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); }
.btn-app-store i { color: var(--gold); }
.btn-app-store:hover i { color: var(--navy-deep); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.4); }

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--gold);
  color: var(--navy-deep);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 4px 20px rgba(245,166,35,0.4);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: var(--transition);
}
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { background: var(--gold-dark); transform: translateY(-3px); }

/* ============================================================
   TOAST NOTIFICATION
   ============================================================ */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--navy);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  opacity: 0;
  transition: all 0.4s ease;
  border-left: 4px solid var(--gold);
  white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .books-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-image { order: -1; }
  .about-img-placeholder { height: 300px; }
  .courses-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .exams-inner { grid-template-columns: 1fr; gap: 40px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
  .g-tall { grid-row: span 1; }
  .g-wide { grid-column: span 1; }
  .gallery-item { height: 200px; }
  .news-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .events-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .topbar-inner { flex-direction: column; gap: 8px; }
  .topbar-left, .topbar-right { width: 100%; justify-content: center; }

  .hamburger { display: flex; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    box-shadow: 0 8px 32px rgba(13,27,62,0.15);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }
  .nav.open { max-height: 500px; }
  .nav ul { flex-direction: column; padding: 16px 24px; gap: 2px; }
  .nav ul li a { display: block; padding: 12px 8px; border-bottom: 1px solid var(--border); }
  .nav ul li:last-child a { border-bottom: none; }

  .slide-content { padding: 0 56px; }
  .slide-content h1 { font-size: 1.8rem; }

  .section { padding: 64px 0; }

  .why-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .books-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .achievements-carousel, .teachers-carousel-wrap { padding: 0 50px; }
}

@media (max-width: 520px) {
  .slide { min-height: 480px; height: 75vh; }
  .slide-content { padding: 0 48px; }
  .slide-actions { flex-direction: column; gap: 12px; }
  .btn-primary, .btn-outline { justify-content: center; text-align: center; }
  .books-grid { grid-template-columns: 1fr; max-width: 280px; margin: 0 auto; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .stat-num { font-size: 1.8rem; }
  .about-features { grid-template-columns: 1fr; }
  .footer-bottom .container { flex-direction: column; text-align: center; }
  .carousel-btn.prev { left: 8px; }
  .carousel-btn.next { right: 8px; }
  .header-inner { padding-top: 10px; padding-bottom: 10px; }
  .logo img { height: 40px; width: 40px; }
}
