/* =============================================
   SMART INSTITUTE — style.css
   RTL Academic Premium Design
   ============================================= */

/* ---- CSS VARIABLES ---- */
:root {
  --navy:       #0a1628;
  --navy-mid:   #112244;
  --navy-light: #1a3a6b;
  --gold:       #d4a017;
  --gold-light: #f0c040;
  --gold-pale:  #fdf3dc;
  --white:      #ffffff;
  --gray-50:    #f8f9fc;
  --gray-100:   #f0f2f8;
  --gray-200:   #e2e6f0;
  --gray-400:   #9aa5c0;
  --gray-600:   #5a6580;
  --gray-800:   #2d3a55;
  --success:    #2ecc71;
  --danger:     #e74c3c;

  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-xl:  40px;

  --shadow-sm:  0 2px 12px rgba(10,22,40,0.08);
  --shadow-md:  0 8px 32px rgba(10,22,40,0.12);
  --shadow-lg:  0 20px 60px rgba(10,22,40,0.18);

  --transition: 0.35s cubic-bezier(0.4,0,0.2,1);
  --font-body:  'Noto Naskh Arabic', 'Segoe UI', system-ui, sans-serif;
}

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

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

body {
  font-family: var(--font-body);
  direction: rtl;
  text-align: right;
  background: var(--white);
  color: var(--gray-800);
  line-height: 1.8;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ---- LOADER ---- */
#loader {
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#loader.hidden { opacity: 0; visibility: hidden; }

.loader-inner {
  text-align: center;
  color: var(--white);
}
.loader-logo-img {
  width: 120px; height: 120px;
  margin: 0 auto 1.5rem;
  animation: pulse 1.2s ease infinite;
}
.loader-logo-img img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
@keyframes pulse {
  0%,100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(212,160,23,0)); }
  50% { transform: scale(1.08); filter: drop-shadow(0 0 20px rgba(212,160,23,0.4)); }
}
.loader-bar {
  width: 200px;
  height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 99px;
  margin: 1rem auto;
  overflow: hidden;
}
.loader-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 99px;
  animation: load 1.8s ease forwards;
}
@keyframes load { to { width: 100%; } }
.loader-inner p { font-size: 1.1rem; font-weight: 700; color: var(--gold-light); margin-top: 0.5rem; }

/* ---- BACK TO TOP ---- */
#backToTop {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 48px; height: 48px;
  background: var(--gold);
  color: var(--navy);
  border-radius: 50%;
  font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 800;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
}
#backToTop.visible { opacity: 1; transform: translateY(0); }
#backToTop:hover { background: var(--gold-light); transform: translateY(-4px); }

/* ---- CONTAINER ---- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-xl);
  font-size: 1rem;
  font-weight: 700;
  transition: var(--transition);
  cursor: pointer;
  font-family: var(--font-body);
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy);
  box-shadow: 0 4px 20px rgba(212,160,23,0.35);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(212,160,23,0.5);
}
.btn-outline {
  border: 2px solid rgba(255,255,255,0.5);
  color: var(--white);
  background: transparent;
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}
.btn-small { padding: 0.5rem 1.2rem; font-size: 0.9rem; }
.btn-large { padding: 1rem 2.5rem; font-size: 1.1rem; width: 100%; justify-content: center; }

/* ---- SECTION BASE ---- */
.section { padding: 6rem 0; }
.section-gray { background: var(--gray-50); }
.section-dark { background: var(--navy); }

.section-label {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  position: relative;
  padding-right: 2rem;
}
.section-label::before {
  content: '';
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  width: 1.2rem; height: 2px;
  background: var(--gold);
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 1rem;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--gray-600);
  max-width: 640px;
  margin-bottom: 3rem;
}

/* ---- REVEAL ANIMATION ---- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }

/* ========================
   NAVBAR
   ======================== */
#navbar {
  position: fixed;
  top: 0; inset-inline: 0;
  z-index: 900;
  padding: 0;
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}
#navbar.scrolled {
  background: rgba(10,22,40,0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0,0,0,0.25);
  padding: 0;
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.2rem 1.5rem;
  gap: 1rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 800;
}
.logo-img {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: contain;
  border: 2px solid var(--gold);
}
.logo-text { color: var(--white); letter-spacing: -0.5px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}
.nav-link {
  color: rgba(255,255,255,0.8);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--gold);
  background: rgba(212,160,23,0.1);
}
.nav-cta {
  background: linear-gradient(135deg, var(--gold), var(--gold-light)) !important;
  color: var(--navy) !important;
  font-weight: 700 !important;
  padding: 0.5rem 1.25rem !important;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(212,160,23,0.4); }

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

/* ========================
   HERO
   ======================== */
#hero {
  min-height: 100vh;
  background: url('hero_bg.png') center/cover no-repeat fixed;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(10,22,40,0.9), rgba(10,22,40,0.4)), 
              radial-gradient(circle at center, transparent, rgba(10,22,40,0.6));
  z-index: 0;
}
.hero-content { position: relative; z-index: 1; padding: 4rem 1.5rem; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(212,160,23,0.15);
  border: 1px solid rgba(212,160,23,0.35);
  color: var(--gold-light);
  padding: 0.45rem 1.2rem;
  border-radius: 99px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.hero-title {
  font-size: clamp(2rem, 6vw, 3.8rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 1.5rem;
}
.gold-text {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.75);
  max-width: 640px;
  margin-bottom: 2.5rem;
  line-height: 2;
}
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.stat-badge {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 110px;
}
.stat-num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--gold-light);
  line-height: 1;
}
.stat-pct { font-size: 1.4rem; font-weight: 900; color: var(--gold-light); }
.stat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  margin-top: 0.25rem;
  text-align: center;
}
.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%; transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.4);
  font-size: 0.75rem;
  animation: bounce 2s ease infinite;
}
.hero-scroll-hint span {
  display: block;
  width: 2px; height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
}
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ========================
   ABOUT
   ======================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  position: relative;
}
.about-img-main { grid-column: span 2; }
.about-img-side { position: relative; }
.abt-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.abt-img-s {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}
.placeholder-icon { font-size: 2.5rem; }
.about-exp-badge {
  position: absolute;
  bottom: -1rem; left: -1rem;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.about-exp-badge strong { display: block; font-size: 1.8rem; font-weight: 900; line-height: 1; }
.about-exp-badge span { font-size: 0.8rem; font-weight: 600; }

.about-lead {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 1rem;
  line-height: 1.9;
}
.about-text p { color: var(--gray-600); margin-bottom: 1.5rem; }
.about-features { display: flex; flex-direction: column; gap: 1rem; margin: 1.5rem 0; }
.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.feature-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 0.2rem; }
.about-feature strong { display: block; color: var(--navy); font-size: 0.95rem; margin-bottom: 0.15rem; }
.about-feature p { font-size: 0.85rem; color: var(--gray-600); margin: 0; }

/* ========================
   PROGRAMS
   ======================== */
.programs-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  background: var(--gray-100);
  padding: 0.4rem;
  border-radius: var(--radius-md);
  width: fit-content;
}
.tab-btn {
  padding: 0.65rem 1.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-600);
  transition: var(--transition);
  background: transparent;
  font-family: var(--font-body);
}
.tab-btn.active {
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}
.program-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.program-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transform-origin: right;
  transition: var(--transition);
}
.program-card:hover::before { transform: scaleX(1); }
.program-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(212,160,23,0.2);
}
.program-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  background: var(--gold-pale);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem;
  margin-bottom: 1rem;
}
.program-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 0.5rem; }
.program-card p { font-size: 0.88rem; color: var(--gray-600); margin-bottom: 1rem; line-height: 1.7; }
.program-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.program-tag {
  display: inline-block;
  background: var(--gray-100);
  color: var(--gray-600);
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 600;
}
.program-tag.gold { background: var(--gold-pale); color: var(--gold); }

/* ========================
   READING HALLS
   ======================== */
.halls-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1.5rem;
  align-items: start;
}
.hall-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  position: relative;
}
.hall-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.hall-featured {
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 4px rgba(212,160,23,0.08), var(--shadow-md);
}
.hall-badge {
  position: absolute;
  top: -0.85rem; right: 1.5rem;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy);
  padding: 0.3rem 1rem;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 700;
}
.hall-icon { font-size: 2rem; margin-bottom: 1rem; }
.hall-img-box {
  width: 100%;
  height: 180px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1.25rem;
}
.hall-img-box img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.hall-card:hover .hall-img-box img { transform: scale(1.1); }
.hall-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: 0.5rem; }
.hall-card p { font-size: 0.88rem; color: var(--gray-600); margin-bottom: 1rem; line-height: 1.7; }
.hall-features { display: flex; flex-direction: column; gap: 0.4rem; }
.hall-features li { font-size: 0.85rem; color: var(--gray-600); }

/* ========================
   TEACHERS
   ======================== */
.teachers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px,1fr));
  gap: 1.5rem;
}
.teacher-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  text-align: center;
  transition: var(--transition);
}
.teacher-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.teacher-avatar {
  position: relative;
  width: 90px; height: 90px;
  margin: 0 auto 1.25rem;
}
.avatar-placeholder {
  width: 90px; height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-mid), var(--navy-light));
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
}
.teacher-badge {
  position: absolute;
  bottom: -4px; left: -4px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy);
  padding: 0.2rem 0.5rem;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 700;
  border: 2px solid var(--white);
}
.teacher-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: 0.4rem; }
.teacher-subject {
  display: inline-block;
  background: var(--gold-pale);
  color: var(--gold);
  padding: 0.2rem 0.9rem;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.teacher-card p { font-size: 0.85rem; color: var(--gray-600); line-height: 1.7; margin-bottom: 1rem; }
.teacher-stats {
  display: flex;
  justify-content: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--gray-600);
  border-top: 1px solid var(--gray-200);
  padding-top: 1rem;
}

/* ========================
   EXAM PREP FEATURES
   ======================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1.5rem;
}
.feature-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  transition: var(--transition);
}
.feature-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(212,160,23,0.3);
  transform: translateY(-4px);
}
.feature-icon-box {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: inline-block;
}
.feature-card h3 { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.88rem; color: rgba(255,255,255,0.6); line-height: 1.8; }

/* ========================
   SCHEDULE
   ======================== */
.schedule-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.stab {
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--gray-600);
  background: var(--gray-100);
  border: 2px solid transparent;
  transition: var(--transition);
  font-family: var(--font-body);
}
.stab.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.schedule-table {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  border: 1px solid var(--gray-200);
}
.schedule-row {
  display: grid;
  grid-template-columns: 1fr 2fr 1.5fr 1fr;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--gray-100);
  transition: background 0.2s;
}
.schedule-row:last-child { border-bottom: none; }
.schedule-row:hover { background: var(--gray-50); }
.schedule-head {
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  border-radius: 0;
}
.schedule-head:hover { background: var(--navy); }
.schedule-time { font-weight: 700; color: var(--gold); }
.schedule-subject { font-weight: 600; color: var(--navy); }
.schedule-teacher { color: var(--gray-600); font-size: 0.9rem; }
.schedule-room {
  display: inline-block;
  background: var(--gray-100);
  color: var(--gray-800);
  padding: 0.2rem 0.7rem;
  border-radius: 99px;
  font-size: 0.82rem;
}

/* ========================
   RESULTS & COUNTERS
   ======================== */
.counters-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.counter-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  text-align: center;
  transition: var(--transition);
}
.counter-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.counter-num {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 0.5rem;
  direction: ltr;
}
.counter-label { font-size: 0.9rem; color: var(--gray-600); font-weight: 500; }

.toppers-section h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.5rem;
}
.toppers-grid { display: flex; flex-direction: column; gap: 0.75rem; }
.topper-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}
.topper-rank {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1rem;
  flex-shrink: 0;
}
.topper-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-mid), var(--navy-light));
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.9rem;
  flex-shrink: 0;
}
.topper-info strong { display: block; font-size: 0.95rem; color: var(--navy); }
.topper-info span { font-size: 0.82rem; color: var(--gray-600); }

/* ========================
   TESTIMONIALS
   ======================== */
.testimonials-slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}
.testimonials-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}
.testimonial-card {
  min-width: 100%;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
}
.testimonial-quote {
  font-size: 1.1rem;
  color: var(--gray-800);
  line-height: 2;
  margin-bottom: 1.5rem;
  position: relative;
  padding-right: 2rem;
}
.testimonial-quote::before {
  content: '"';
  position: absolute;
  right: 0; top: -0.5rem;
  font-size: 3rem;
  color: var(--gold);
  font-family: serif;
  line-height: 1;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.author-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-mid), var(--navy-light));
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}
.author-info strong { display: block; color: var(--navy); font-size: 0.95rem; }
.author-info span { font-size: 0.82rem; color: var(--gray-600); }
.testimonial-stars { color: var(--gold); font-size: 1.1rem; margin-bottom: 0.25rem; }

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}
.slider-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.slider-btn:hover { background: var(--gold); color: var(--navy); }
.slider-dots { display: flex; gap: 0.5rem; }
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gray-200);
  cursor: pointer;
  transition: var(--transition);
}
.dot.active { background: var(--gold); width: 24px; border-radius: 4px; }

/* ========================
   BRANCHES
   ======================== */
.branches-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1.5rem;
}
.branch-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}
.branch-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.branch-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.branch-card h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 0.5rem; }
.branch-card > p { font-size: 0.88rem; color: var(--gray-600); margin-bottom: 1rem; }
.branch-info {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 1rem;
}
.branch-info span { font-size: 0.85rem; color: var(--gray-600); }
.map-placeholder {
  background: var(--gray-100);
  border-radius: var(--radius-md);
  min-height: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-size: 0.85rem;
  gap: 0.5rem;
}
.map-placeholder .placeholder-icon { font-size: 2rem; }

/* ========================
   REGISTER
   ======================== */
.register-wrapper { max-width: 800px; margin: 0 auto; }
.register-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form-group.full-width { grid-column: span 2; }
.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.07);
  color: var(--white);
  font-size: 0.95rem;
  transition: border-color 0.25s;
  direction: rtl;
  text-align: right;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.35); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.form-group select option { background: var(--navy-mid); color: var(--white); }
.field-error { font-size: 0.8rem; color: #ff7070; min-height: 1rem; }
.form-group.has-error input,
.form-group.has-error select { border-color: var(--danger); }

.register-success {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--white);
}
.success-icon {
  width: 80px; height: 80px;
  background: var(--success);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
  color: var(--white);
  margin: 0 auto 1.5rem;
  animation: popIn 0.5s cubic-bezier(0.4,0,0.2,1);
}
@keyframes popIn {
  0% { transform: scale(0); }
  80% { transform: scale(1.1); }
  100% { transform: scale(1); }
}
.register-success h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.register-success p { color: rgba(255,255,255,0.7); margin-bottom: 1.5rem; }

/* ========================
   FAQ
   ======================== */
.faq-container { max-width: 780px; }
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  overflow: hidden;
}
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.97rem;
  gap: 1rem;
  user-select: none;
}
.faq-q::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--gold);
  flex-shrink: 0;
  transition: transform 0.3s;
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s;
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.9;
}
.faq-item.open .faq-a { max-height: 400px; padding: 0 1.5rem 1.25rem; }

/* ========================
   CONTACT
   ======================== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 1.5rem;
}
.contact-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  text-align: center;
  transition: var(--transition);
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.contact-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.contact-card h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 0.5rem; }
.contact-card p { font-size: 0.88rem; color: var(--gray-600); line-height: 1.8; }
.social-links { display: flex; flex-direction: column; gap: 0.4rem; margin-top: 0.5rem; }
.social-link {
  display: block;
  font-size: 0.85rem;
  color: var(--gray-600);
  padding: 0.25rem;
  border-radius: var(--radius-sm);
  transition: color 0.2s;
}
.social-link:hover { color: var(--gold); }

/* ========================
   FOOTER
   ======================== */
#footer { background: var(--navy); color: var(--white); }
.footer-top { padding: 4rem 0 2rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
}
.footer-logo-img {
  width: 50px; height: 50px;
  border-radius: 50%;
  object-fit: contain;
  border: 1px solid var(--gold);
}
.footer-brand p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.9;
  margin-bottom: 1.25rem;
}
.footer-social {
  display: flex;
  gap: 0.75rem;
}
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--gold); color: var(--navy); }
.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col ul li a {
  font-size: 0.87rem;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--gold); }
.footer-contact-list li {
  font-size: 0.87rem;
  color: rgba(255,255,255,0.55);
  display: flex;
  gap: 0.5rem;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.5rem 0;
}
.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.4); }

/* ========================
   RESPONSIVE
   ======================== */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .features-grid { grid-template-columns: repeat(2,1fr); }
  .counters-grid { grid-template-columns: repeat(2,1fr); }
  .contact-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .section { padding: 4rem 0; }
  .nav-links {
    position: fixed;
    top: 0; inset-inline: 0;
    height: 100vh;
    background: var(--navy);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
    z-index: 850;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-link { font-size: 1.2rem; padding: 0.75rem 2rem; }
  .hamburger { display: flex; z-index: 900; }
  .halls-grid { grid-template-columns: 1fr; }
  .teachers-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .programs-grid { grid-template-columns: 1fr; }
  .branches-grid { grid-template-columns: 1fr; }
  .counters-grid { grid-template-columns: repeat(2,1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .form-group.full-width { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .schedule-row { grid-template-columns: 1fr 1fr; gap: 0.25rem; }
  .schedule-room, .schedule-teacher { font-size: 0.78rem; }
  .hero-stats { gap: 0.75rem; }
  .stat-badge { min-width: 90px; padding: 0.75rem 1rem; }
  .stat-num { font-size: 1.5rem; }
  .register-form { padding: 1.5rem; }
  .footer-bottom .container { flex-direction: column; text-align: center; }
  .about-visual { grid-template-columns: 1fr; }
  .about-img-main { grid-column: span 1; }
  .single-branch { display: flex; justify-content: center; }
  .single-branch .branch-card { max-width: 450px; width: 100%; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.8rem; }
  .hero-buttons { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .counters-grid { grid-template-columns: 1fr 1fr; }
  .programs-tabs { flex-direction: column; width: 100%; }
  .section-title { font-size: 1.6rem; }
}

/* ====== SMART AI CHAT ====== */
#smartAIFab {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: 50px;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 32px rgba(212, 175, 55, 0.4);
  cursor: pointer;
  z-index: 1001;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
}

#smartAIFab:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 12px 40px rgba(212, 175, 55, 0.6);
}

.fab-icon {
  font-size: 1.4rem;
  animation: robotPulse 2s infinite alternate;
}

.fab-text {
  font-weight: 700;
  letter-spacing: 0.5px;
}

@keyframes robotPulse {
  from { transform: scale(1); }
  to { transform: scale(1.2) rotate(10deg); }
}

#smartAIChat {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 380px;
  height: 500px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  transform: translateY(20px) scale(0.9);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

#smartAIChat.active {
  transform: translateY(0) scale(1);
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.chat-container {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.chat-header {
  background: var(--navy);
  color: #fff;
  padding: 20px;
  border-radius: 20px 20px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-avatar {
  background: var(--gold);
  color: var(--navy);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.chat-titles h4 {
  margin: 0;
  font-size: 1rem;
}

.chat-titles span {
  font-size: 0.75rem;
  opacity: 0.8;
}

#closeChat {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 1.2rem;
  opacity: 0.7;
  transition: opacity 0.3s;
}

#closeChat:hover {
  opacity: 1;
}

.chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.message {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 15px;
  font-size: 0.9rem;
  line-height: 1.5;
  position: relative;
}

.bot-message {
  align-self: flex-start;
  background: rgba(0, 48, 96, 0.05);
  color: var(--navy);
  border-bottom-left-radius: 2px;
}

.message p {
  margin: 0;
}

.message-time {
  font-size: 0.7rem;
  opacity: 0.5;
  margin-top: 5px;
  display: block;
  text-align: left;
}

.chat-input-area {
  padding: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  gap: 10px;
}

#chatInput {
  flex: 1;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 25px;
  padding: 10px 20px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.3s;
}

#chatInput:focus {
  border-color: var(--gold);
}

#sendChat {
  background: var(--navy);
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.3s, background 0.3s;
}

#sendChat:hover {
  background: var(--gold);
  color: var(--navy);
  transform: rotate(-45deg) scale(1.1);
}

/* Responsive adjustments for chat */
@media (max-width: 480px) {
  #smartAIChat {
    width: calc(100% - 40px);
    right: 20px;
    left: 20px;
    bottom: 90px;
    height: 450px;
  }
}
