/* =========================================================
   ISHAQ ACADEMY V3 — Design Tokens & Core Styling
   Brand Colors: Red / Gold / Black / Paper
   ========================================================= */
:root {
  --red: #C00000;
  --red-deep: #8A0000;
  --red-bright: #E10600;
  --maroon-black: #2B0606;
  --black: #1A1414;
  --gold: #F8B800;
  --gold-light: #FFD24D;
  --paper: #FFFFFF;
  --paper-warm: #FFF7F2;
  --ink: #241A18;
  --ink-soft: #6E5F5B;
  --line: rgba(26,20,20,0.10);
  --line-light: rgba(255,255,255,0.16);

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Sora', sans-serif;
  --font-mono: 'Space Mono', monospace;

  --shadow-soft: 0 20px 50px -20px rgba(26,20,20,0.28);
  --shadow-card: 0 14px 34px -18px rgba(26,20,20,0.30);
  --ease: cubic-bezier(.22,1,.36,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); margin: 0; line-height: 1.14; letter-spacing: -.01em; }
p { margin: 0; }
button { font-family: inherit; border: none; background: none; cursor: pointer; }
.section-inner { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
section[id], header[id] { scroll-margin-top: 88px; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* =========================================================
   Shared Components & Utility Classes
   ========================================================= */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase;
  padding: 7px 16px; border-radius: 999px;
  color: var(--gold-light); border: 1px solid var(--line-light); background: rgba(255,255,255,.06);
}
.eyebrow-dark { color: var(--red-deep); border-color: rgba(26,20,20,.14); background: rgba(26,20,20,.05); }
.eyebrow-light { color: var(--gold-light); }

.section-title { font-size: clamp(28px,4vw,46px); font-weight: 600; color: var(--black); letter-spacing: -.02em; }
.section-title em { font-style: normal; color: var(--red); font-weight: 600; }
.section-title-light { color: #fff; }
.section-sub { font-size: 16.5px; color: var(--ink-soft); max-width: 620px; line-height: 1.65; margin-top: 14px; }
.section-sub-light { color: rgba(255,255,255,.68); }
.section-head { margin-bottom: 52px; display: flex; flex-direction: column; gap: 14px; }
.text-center { text-align: center; }
.section-head.text-center { align-items: center; }

.btn-primary, .btn-ghost, .btn-red {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: 10px; font-weight: 600; font-size: 15px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, border-color .3s;
}
.btn-primary { background: linear-gradient(135deg,var(--gold),var(--gold-light)); color: var(--black); box-shadow: 0 14px 30px -12px rgba(248,184,0,.5); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 36px -12px rgba(248,184,0,.6); color: var(--black); }
.btn-red { background: linear-gradient(135deg,var(--red),var(--red-deep)); color: #fff; box-shadow: 0 14px 30px -12px rgba(192,0,0,.5); }
.btn-red:hover { transform: translateY(-3px); box-shadow: 0 20px 36px -12px rgba(192,0,0,.6); color: #fff; }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.16); transform: translateY(-3px); color: #fff; }

.card-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--red-deep); margin-top: auto; }
.card-link i { transition: transform .3s var(--ease); }
.card-link:hover i { transform: translateX(4px); }

/* Reveal Animations */
.reveal-up, .reveal-left, .reveal-right { opacity: 0; transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal-up { transform: translateY(38px); }
.reveal-left { transform: translateX(-46px); }
.reveal-right { transform: translateX(46px); }
.reveal-up.in-view, .reveal-left.in-view, .reveal-right.in-view { opacity: 1; transform: translate(0,0); }

/* =========================================================
   PRELOADER
   ========================================================= */
#preloader { position: fixed; inset: 0; z-index: 9999; background: #ffffff; }
.preloader-inner {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  z-index: 2;
}
.preloader-glow {
  position: absolute; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle,rgba(248,184,0,.28),transparent 70%);
  animation: glowPulse 2.4s ease-in-out infinite;
}
@keyframes glowPulse { 0%,100%{transform:scale(1);opacity:.7;} 50%{transform:scale(1.18);opacity:1;} }
.preloader-mark {
  position: relative; width: 96px; height: auto; opacity: 0; transform: scale(.7);
  animation: markPop .8s var(--ease) forwards .15s;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,.4));
}
@keyframes markPop { to { opacity: 1; transform: scale(1); } }
.preloader-word { display: none;}
.preloader-word span { color: var(--gold-light); }
@keyframes fadeIn { to { opacity: .9; } }
.preloader-bar { position: relative; width: 160px; height: 2px; background: rgba(255,255,255,.15); border-radius: 2px; overflow: hidden; }
.preloader-bar span { display: block; height: 100%; width: 0%; background: linear-gradient(90deg,var(--gold),var(--red-bright)); animation: loadBar 1.2s var(--ease) forwards .1s; }
@keyframes loadBar { to { width: 100%; } }
.curtain { position: absolute; top: 0; bottom: 0; width: 50%; background: var(--black); z-index: 1; }
.curtain-left { left: 0; }
.curtain-right { right: 0; }
#preloader.is-done { pointer-events: none !important; }
#preloader.is-done .curtain-left { transform: translateX(-100%); transition: transform .8s var(--ease); }
#preloader.is-done .curtain-right { transform: translateX(100%); transition: transform .8s var(--ease); }
#preloader.is-done .preloader-inner { opacity: 0; transition: opacity .3s ease; background: #ffffff;}
#preloader.is-hidden { display: none !important; visibility: hidden !important; pointer-events: none !important; }

/* =========================================================
   NAVBAR
   ========================================================= */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  padding: 20px 0; transition: padding .35s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav-inner { max-width: 1240px; margin: 0 auto; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 84px; height: auto; flex-shrink: 0; filter: drop-shadow(0 2px 6px rgba(0,0,0,.25)); }
.brand-text { display: none; }
.brand-text em { font-style: normal; font-size: 10px; letter-spacing: .22em; color: var(--gold-light); transition: color .3s; }

.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { font-size: 14px; font-weight: 600; color: rgba(255,255,255,.85); transition: color .25s; position: relative; }
.nav-links a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--gold-light); transition: width .3s var(--ease); }
.nav-links a:not(.nav-cta):hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-cta { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.3); padding: 9px 16px; border-radius: 999px; color: #fff !important; }
.nav-cta:hover { background: var(--gold); border-color: var(--gold); color: var(--black) !important; }

.site-nav.is-scrolled { background: rgba(255,255,255,.94); backdrop-filter: blur(12px); padding: 12px 0; box-shadow: 0 12px 30px -18px rgba(26,20,20,.18); border-bottom-color: var(--line); }
.site-nav.is-scrolled .nav-links a { color: var(--ink-soft); }
.site-nav.is-scrolled .nav-links a:hover,
.site-nav.is-scrolled .nav-links a.active { color: var(--red-deep); }
.site-nav.is-scrolled .brand-text { color: var(--black); }
.site-nav.is-scrolled .brand-text em { color: var(--red-deep); }
.site-nav.is-scrolled .nav-cta { background: var(--red); border-color: var(--red); color: #fff !important; }
.site-nav.is-scrolled .nav-cta:hover { background: var(--red-deep); border-color: var(--red-deep); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 34px; z-index: 920; }
.nav-toggle span { width: 100%; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease), opacity .3s, background .3s; }
.site-nav.is-scrolled .nav-toggle span { background: var(--black); }

/* =========================================================
   SUB-HEADER BANNER FOR INNER PAGES
   ========================================================= */
.page-header {
  position: relative; padding: 140px 0 70px;
  background: linear-gradient(135deg, var(--black) 0%, var(--maroon-black) 60%, var(--red-deep) 120%);
  color: #fff; overflow: hidden;
}
.page-header::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(248,184,0,.15), transparent 50%),
              radial-gradient(circle at 20% 80%, rgba(225,6,0,.2), transparent 50%);
  pointer-events: none;
}
.page-header-content { position: relative; z-index: 2; text-align: center; }
.page-header-content h1 { font-size: clamp(32px, 5vw, 54px); font-weight: 700; letter-spacing: -.02em; }
.page-header-content h1 span { color: var(--gold-light); }
.breadcrumb-nav { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; font-family: var(--font-mono); font-size: 13px; color: rgba(255,255,255,.7); }
.breadcrumb-nav a { color: var(--gold-light); transition: color .2s; }
.breadcrumb-nav a:hover { color: #fff; }

/* =========================================================
   HERO (HOME PAGE)
   ========================================================= */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; background: var(--black); }
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.12); transition: opacity 1.4s var(--ease), transform 6s linear;
}
.hero-slide.is-active { opacity: 1; transform: scale(1); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(115deg, rgba(20,7,7,.94) 20%, rgba(43,6,6,.80) 55%, rgba(138,0,0,.50) 100%); }

.ascent-path { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; opacity: .55; }
#ascentLine { stroke-dashoffset: 900; stroke-dasharray: 900; animation: drawAscent 2.6s var(--ease) forwards .5s; }
@keyframes drawAscent { to { stroke-dashoffset: 0; } }
.ascent-node circle { fill: var(--gold-light); }
.ascent-node text { font-family: var(--font-mono); font-size: 13px; fill: rgba(255,255,255,.75); }

.hero-content { position: relative; z-index: 2; max-width: 1240px; margin: 0 auto; padding: 0 28px; width: 100%; }
.hero-title { position: relative; font-size: clamp(36px,6vw,68px); color: #fff; font-weight: 600; letter-spacing: -.02em; min-height: 2.3em; }
.hero-sub { position: relative; display: block; max-width: 560px; margin-top: 20px; color: rgba(255,255,255,.72); font-size: 17px; line-height: 1.7; min-height: 3.4em; }
.slide-text { position: absolute; top: 0; left: 0; opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.slide-text.is-active { position: relative; opacity: 1; transform: translateY(0); }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 38px; }
.hero-dots { display: flex; gap: 10px; margin-top: 52px; }
.hero-dot { width: 34px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.3); transition: background .3s; }
.hero-dot.is-active { background: linear-gradient(90deg,var(--gold),var(--red-bright)); }

.scroll-indicator {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 8px; color: rgba(255,255,255,.6);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  animation: bob 2.2s ease-in-out infinite;
}
@keyframes bob { 0%,100%{transform:translate(-50%,0);} 50%{transform:translate(-50%,8px);} }

/* =========================================================
   ABOUT SECTION
   ========================================================= */
.about { padding: 110px 0; background: var(--paper-warm); }
.about-grid { display: grid; grid-template-columns: .85fr 1fr; gap: 70px; align-items: center; }
.about-media { position: relative; }
.media-frame { border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-soft); aspect-ratio: 5/6; }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-accent { position: absolute; bottom: -36px; left: -36px; width: 44%; border-radius: 16px; overflow: hidden; border: 6px solid var(--paper-warm); box-shadow: var(--shadow-card); }
.media-badge {
  position: absolute; top: 26px; right: -26px; background: linear-gradient(135deg,var(--red),var(--red-deep)); color: #fff; padding: 20px 22px; border-radius: 16px;
  text-align: center; box-shadow: 0 20px 40px -16px rgba(192,0,0,.5); min-width: 110px;
}
.badge-num { font-family: var(--font-display); font-size: 32px; font-weight: 700; color: var(--gold-light); }
.badge-plus { font-family: var(--font-display); font-size: 20px; color: var(--gold-light); }
.media-badge small { display: block; font-size: 11px; letter-spacing: .03em; color: rgba(255,255,255,.8); margin-top: 4px; line-height: 1.4; }

.about-copy p { color: var(--ink-soft); font-size: 16px; line-height: 1.75; margin-top: 20px; }
.about-checklist { margin-top: 28px; display: flex; flex-direction: column; gap: 13px; }
.about-checklist li { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: var(--black); }
.about-checklist i { color: var(--red); font-size: 17px; }
.about-stats { display: flex; gap: 40px; margin-top: 44px; padding-top: 36px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.stat { display: inline; flex-direction: column; }
.stat-num, .stat-plus { font-family: var(--font-display); font-size: 32px; font-weight: 700; display: inline; }
.stat-num { color: var(--black); }
.stat-plus { color: var(--red-deep); }
.stat small { font-size: 12.5px; color: var(--ink-soft); margin-top: 4px; margin-left: 2px;}

/* =========================================================
   MANAGEMENT & FACULTY (ABOUT US PAGE)
   ========================================================= */
.team-section { padding: 110px 0; background: var(--paper); }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }
.faculty-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 40px; }

.member-card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  box-shadow: var(--shadow-card); transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  display: flex; flex-direction: column;
}
.member-card:hover { transform: translateY(-8px); box-shadow: 0 24px 44px -18px rgba(26,20,20,.24); }
.member-img-wrap { position: relative; width: 100%; aspect-ratio: 1/1; overflow: hidden; background: var(--paper-warm); }
.member-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.member-card:hover .member-img-wrap img { transform: scale(1.06); }
.member-role-badge {
  position: absolute; bottom: 12px; left: 12px; background: rgba(26,20,20,.85); backdrop-filter: blur(8px);
  color: var(--gold-light); font-family: var(--font-mono); font-size: 11px; padding: 5px 12px; border-radius: 999px;
}
.member-info { padding: 22px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.member-info h3 { font-size: 18px; color: var(--black); font-weight: 700; }
.member-info .title-text { font-size: 13.5px; color: var(--red-deep); font-weight: 600; }
.member-info .degree-text { font-size: 13px; color: var(--ink-soft); line-height: 1.4; margin-top: 4px; }
.member-info .exp-tag {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 4px 10px;
  background: rgba(192,0,0,.08); color: var(--red-deep); border-radius: 6px; font-size: 12px; font-weight: 600; width: fit-content;
}

/* =========================================================
   PROGRAMS / COURSES
   ========================================================= */
.programs { padding: 110px 0; background: var(--paper); }
.programs-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 26px; }
.program-card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 32px 26px;
  display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow-card);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.program-card:hover { transform: translateY(-8px); box-shadow: 0 26px 46px -20px rgba(26,20,20,.25); }
.program-icon {
  width: 52px; height: 52px; border-radius: 13px; background: linear-gradient(135deg,var(--gold),var(--gold-light));
  color: var(--black); display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.program-card h3 { font-size: 19px; color: var(--black); }
.program-card h3 small { font-family: var(--font-body); font-size: 12.5px; font-weight: 600; color: var(--ink-soft); display: block; margin-top: 3px; }
.program-card p { font-size: 14px; color: var(--ink-soft); line-height: 1.6; }

.courses-page-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.detail-course-card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 32px;
  box-shadow: var(--shadow-card); transition: transform .35s var(--ease), border-color .35s;
  display: flex; flex-direction: column; gap: 14px;
}
.detail-course-card:hover { transform: translateY(-6px); border-color: var(--red); }
.detail-course-card h3 { font-size: 20px; color: var(--black); border-bottom: 2px solid var(--paper-warm); padding-bottom: 12px; }
.detail-course-card ul { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.detail-course-card li { font-size: 14px; color: var(--ink-soft); display: flex; align-items: flex-start; gap: 8px; }
.detail-course-card li i { color: var(--red); font-size: 14px; margin-top: 3px; }

/* =========================================================
   DIGITAL COURSES
   ========================================================= */
.digital-courses { padding: 110px 0; background: linear-gradient(160deg,var(--black) 0%,var(--maroon-black) 65%,var(--red-deep) 140%); position: relative; overflow: hidden; }
.digital-courses::before {
  content: ""; position: absolute; top: -20%; right: -10%; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle,rgba(248,184,0,.18),transparent 70%);
}
.digital-courses::after {
  content: ""; position: absolute; bottom: -20%; left: -10%; width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle,rgba(225,6,0,.22),transparent 70%);
}
.courses-grid { position: relative; display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
.course-card {
  background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.1); border-radius: 18px; padding: 34px 28px;
  display: flex; flex-direction: column; gap: 14px; transition: transform .4s var(--ease), border-color .4s var(--ease), background .4s var(--ease);
}
.course-card:hover { transform: translateY(-8px); border-color: var(--gold); background: rgba(255,255,255,.07); }
.course-icon {
  width: 52px; height: 52px; border-radius: 13px; display: flex; align-items: center; justify-content: center; font-size: 22px;
  background: rgba(248,184,0,.14); color: var(--gold); border: 1px solid rgba(248,184,0,.35);
}
.course-card h3 { font-size: 19px; color: #fff; }
.course-card p { font-size: 14.5px; color: rgba(255,255,255,.62); line-height: 1.6; }
.course-card .card-link { color: var(--gold-light); }

/* =========================================================
   SUCCESS STORIES
   ========================================================= */
.success { padding: 110px 0; background: var(--paper-warm); }
.success-counters {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 26px; margin-bottom: 70px;
  padding: 46px 20px; background: #fff; border-radius: 20px; box-shadow: var(--shadow-card);
}
.counter-item { text-align: center; border-right: 1px solid var(--line); }
.counter-item:last-child { border-right: none; }
.counter-num, .counter-plus { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px,4vw,44px); }
.counter-num { color: var(--black); }
.counter-plus { color: var(--red-deep); }
.counter-item small { display: block; margin-top: 8px; font-size: 13px; color: var(--ink-soft); letter-spacing: .02em; }

.achievers-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
.achiever-card { background: #fff; border-radius: 18px; padding: 26px; text-align: center; box-shadow: var(--shadow-card); transition: transform .35s var(--ease); }
.achiever-card:hover { transform: translateY(-6px); }
.achiever-card img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; margin: 0 auto 16px; border: 3px solid var(--gold); }
.achiever-card h4 { font-size: 16.5px; color: var(--black); }
.achiever-card p { font-size: 13.5px; color: var(--red-deep); font-weight: 600; margin-top: 6px; }

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.testimonials { padding: 110px 0; background: var(--paper); }
.testimonial-slider { max-width: 760px; margin: 0 auto; position: relative; }
.testimonial-track { position: relative; min-height: 280px; }
.testimonial-card {
  position: absolute; inset: 0; opacity: 0; pointer-events: none; transform: translateX(24px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
  background: #fff; border-radius: 20px; padding: 44px 46px; box-shadow: var(--shadow-card); border: 1px solid var(--line);
}
.testimonial-card.is-active { opacity: 1; pointer-events: auto; transform: translateX(0); position: relative; }
.stars { color: var(--gold); font-size: 14px; display: flex; gap: 3px; margin-bottom: 18px; }
.testimonial-card p { font-family: var(--font-display); font-size: 19px; line-height: 1.6; color: var(--black); }
.t-author { display: flex; align-items: center; gap: 14px; margin-top: 26px; }
.t-author img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.t-author strong { display: block; font-size: 15px; color: var(--black); }
.t-author small { font-size: 13px; color: var(--ink-soft); }
.testimonial-controls { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 34px; }
.testimonial-controls button {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center;
  color: var(--black); transition: background .3s, color .3s, transform .3s;
}
.testimonial-controls button:hover { background: var(--red); color: #fff; border-color: var(--red); transform: scale(1.06); }
.testimonial-dots { display: flex; gap: 8px; }
.t-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: background .3s, transform .3s; }
.t-dot.is-active { background: var(--red); transform: scale(1.3); }

/* =========================================================
   WHY CHOOSE US
   ========================================================= */
.why-us { padding: 110px 0; background: var(--paper-warm); }
.why-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
.why-card {
  padding: 38px 30px; border-radius: 18px; background: #fff; box-shadow: var(--shadow-card);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.why-card:hover { transform: translateY(-8px); }
.why-card i { font-size: 30px; color: var(--red-deep); margin-bottom: 16px; display: block; }
.why-card h3 { font-size: 18.5px; color: var(--black); margin-bottom: 10px; }
.why-card p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.6; }

/* =========================================================
   GALLERY PAGE & LIGHTBOX
   ========================================================= */
.gallery-section { padding: 90px 0; background: var(--paper); }
.gallery-filters { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.filter-btn {
  padding: 10px 22px; border-radius: 999px; font-size: 14px; font-weight: 600;
  border: 1px solid var(--line); color: var(--ink-soft); background: #fff;
  transition: all .3s var(--ease);
}
.filter-btn:hover, .filter-btn.is-active { background: var(--red); color: #fff; border-color: var(--red); }

.gallery-grid-masonry { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.gallery-item {
  position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 4/3;
  box-shadow: var(--shadow-card); cursor: pointer; background: var(--paper-warm);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.gallery-item-overlay {
  position: absolute; inset: 0; background: linear-gradient(to top, rgba(26,20,20,.8), transparent 70%);
  display: flex; align-items: flex-end; padding: 16px; opacity: 0; transition: opacity .3s var(--ease);
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-title { color: #fff; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 6px; }

/* Lightbox Modal */
.lightbox-modal {
  position: fixed; inset: 0; z-index: 9000; background: rgba(10,5,5,.92); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .35s ease;
}
.lightbox-modal.is-open { opacity: 1; pointer-events: auto; }
.lightbox-content { position: relative; max-width: 90vw; max-height: 85vh; display: flex; flex-direction: column; align-items: center; }
.lightbox-content img { max-width: 100%; max-height: 80vh; border-radius: 12px; box-shadow: 0 30px 60px rgba(0,0,0,.6); }
.lightbox-caption { color: #fff; margin-top: 14px; font-family: var(--font-mono); font-size: 14px; text-align: center; }
.lightbox-close { position: absolute; top: -45px; right: 0; color: #fff; font-size: 28px; transition: color .2s; }
.lightbox-close:hover { color: var(--gold); }
.lightbox-nav { position: absolute; top: 50%; width: 100%; display: flex; justify-content: space-between; transform: translateY(-50%); pointer-events: none; padding: 0 20px; }
.lightbox-nav button { pointer-events: auto; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; font-size: 20px; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.lightbox-nav button:hover { background: var(--red); }

/* =========================================================
   ADMISSIONS POPUP MODAL
   ========================================================= */
.promo-modal {
  position: fixed; inset: 0; z-index: 8000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .4s var(--ease);
}
.promo-modal.is-open { opacity: 1; pointer-events: auto; }
.promo-backdrop { position: absolute; inset: 0; background: rgba(20,7,7,.72); backdrop-filter: blur(4px); }
.promo-box {
  position: relative; width: min(560px, 90vw); background: #fff; border-radius: 20px; overflow: hidden;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.5);
  transform: scale(.9) translateY(20px); opacity: 0; transition: transform .45s var(--ease), opacity .45s var(--ease);
  z-index: 2;
}
.promo-modal.is-open .promo-box { transform: scale(1) translateY(0); opacity: 1; }
.promo-box img { width: 100%; height: auto; display: block; }
.promo-close {
  position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%;
  background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 15px;
  box-shadow: 0 8px 18px -6px rgba(0,0,0,.4); transition: background .3s, transform .3s; z-index: 5;
}
.promo-close:hover { background: var(--red-deep); transform: scale(1.08); }
.promo-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; flex-wrap: wrap; background: #fff; }
.promo-footer p { font-size: 14px; font-weight: 600; color: var(--black); display: flex; align-items: center; gap: 8px; }
.promo-footer p i { color: var(--red); }
.promo-footer .btn-primary { padding: 11px 20px; font-size: 13.5px; }

/* =========================================================
   BLOG PAGE
   ========================================================= */
.blog-section { padding: 90px 0; background: var(--paper-warm); }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.blog-card {
  background: #fff; border-radius: 18px; border: 1px solid var(--line); overflow: hidden;
  box-shadow: var(--shadow-card); transition: transform .35s var(--ease), box-shadow .35s;
  display: flex; flex-direction: column;
}
.blog-card:hover { transform: translateY(-8px); box-shadow: 0 24px 44px -18px rgba(26,20,20,.24); }
.blog-img-wrap { width: 100%; aspect-ratio: 16/10; overflow: hidden; }
.blog-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.blog-card:hover .blog-img-wrap img { transform: scale(1.06); }
.blog-body { padding: 28px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.blog-body h3 { font-size: 19px; color: var(--black); line-height: 1.35; }
.blog-body p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.6; }
.blog-full-text { display: none; margin-top: 10px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 14px; color: var(--ink); line-height: 1.65; }
.blog-full-text.is-open { display: block; animation: fadeIn .4s ease; }
.read-more-btn { margin-top: auto; padding: 10px 18px; border-radius: 8px; background: rgba(192,0,0,.08); color: var(--red-deep); font-weight: 700; font-size: 13.5px; transition: all .25s; width: fit-content; }
.read-more-btn:hover { background: var(--red); color: #fff; }

/* =========================================================
   CAREERS PAGE
   ========================================================= */
.careers-section { padding: 90px 0; background: var(--paper); }
.jobs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 70px; }
.job-card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 30px;
  box-shadow: var(--shadow-card); transition: transform .35s var(--ease), border-color .35s;
  display: flex; flex-direction: column; gap: 12px;
}
.job-card:hover { transform: translateY(-6px); border-color: var(--red); }
.job-icon { width: 46px; height: 46px; border-radius: 12px; background: rgba(248,184,0,.15); color: var(--red-deep); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.job-card h3 { font-size: 18.5px; color: var(--black); }
.job-card p { font-size: 14px; color: var(--ink-soft); line-height: 1.5; }
.job-tag { display: inline-block; padding: 4px 10px; background: rgba(192,0,0,.08); color: var(--red-deep); font-size: 12px; font-weight: 600; border-radius: 999px; width: fit-content; }

/* Careers Form */
.careers-form-wrap { max-width: 800px; margin: 0 auto; background: #fff; border-radius: 22px; border: 1px solid var(--line); padding: 44px; box-shadow: var(--shadow-soft); }
.form-steps { display: flex; justify-content: space-between; align-items: center; margin-bottom: 36px; position: relative; }
.form-steps::before { content: ""; position: absolute; top: 18px; left: 40px; right: 40px; height: 2px; background: var(--line); z-index: 0; }
.step-item { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.step-num { width: 36px; height: 36px; border-radius: 50%; background: var(--paper-warm); border: 2px solid var(--line); color: var(--ink-soft); font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; transition: all .3s; }
.step-item.is-active .step-num { background: var(--red); border-color: var(--red); color: #fff; }
.step-label { font-size: 12.5px; font-weight: 600; color: var(--ink-soft); }
.step-item.is-active .step-label { color: var(--red-deep); }

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group.full-width { grid-column: span 2; }
.form-group label { font-size: 13.5px; font-weight: 600; color: var(--black); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 13px 16px; border-radius: 10px; border: 1px solid var(--line);
  font-size: 14.5px; font-family: inherit; color: var(--ink); background: #fff;
  transition: border-color .25s, box-shadow .25s; outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(192,0,0,.12); }
.file-dropzone {
  border: 2px dashed var(--line); border-radius: 12px; padding: 24px; text-align: center;
  background: var(--paper-warm); cursor: pointer; transition: border-color .25s, background .25s;
}
.file-dropzone:hover { border-color: var(--red); background: rgba(192,0,0,.03); }
.file-dropzone i { font-size: 28px; color: var(--red); margin-bottom: 8px; display: block; }
.file-dropzone p { font-size: 13.5px; color: var(--ink-soft); }

/* =========================================================
   CONTACT PAGE & MAP
   ========================================================= */
.contact-section { padding: 90px 0; background: var(--paper-warm); }
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; }

.campus-cards-wrap { display: flex; flex-direction: column; gap: 20px; }
.campus-card {
  background: #fff; border-radius: 18px; padding: 28px; border: 1px solid var(--line);
  box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: 12px;
}
.campus-card h3 { font-size: 19px; color: var(--black); display: flex; align-items: center; gap: 10px; }
.campus-card h3 i { color: var(--red); }
.campus-card p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.6; display: flex; align-items: flex-start; gap: 10px; }
.campus-card p i { color: var(--gold-light); margin-top: 4px; flex-shrink: 0; }

.map-wrapper { margin-top: 60px; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-soft); border: 4px solid #fff; }
.map-wrapper iframe { width: 100%; height: 420px; border: 0; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: linear-gradient(160deg,var(--black) 0%,var(--maroon-black) 100%); color: rgba(255,255,255,.75); padding: 90px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 50px; padding-bottom: 60px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand p { margin-top: 18px; font-size: 14.5px; line-height: 1.7; color: rgba(255,255,255,.55); max-width: 280px; }
.footer-social { display: flex; gap: 12px; margin-top: 24px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center; transition: background .3s, transform .3s, border-color .3s; color: #fff;
}
.footer-social a:hover { background: var(--gold); border-color: var(--gold); color: var(--black); transform: translateY(-3px); }
.footer-col h4 { font-family: var(--font-mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: 22px; }
.footer-col a { display: block; font-size: 14.5px; color: rgba(255,255,255,.6); margin-bottom: 13px; transition: color .25s; }
.footer-col a:hover { color: var(--gold-light); }
.footer-contact p { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.6; color: rgba(255,255,255,.6); margin-bottom: 16px; }
.footer-contact i { color: var(--gold); margin-top: 3px; }
.footer-contact a { display: inline; margin: 0; color: rgba(255,255,255,.75); }
.footer-contact a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1); /* Top line agar chahiye ho */
  padding: 20px 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}

/* Container inside footer-bottom */
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px; /* Aapki website ki main container width ke hisab se Adjust karein */
  margin: 0 auto;
  padding: 0 20px; /* Edges se gap ke liye */
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 600;
}

.footer-bottom a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Mobile responsive */
@media (max-width: 600px) {
  .footer-bottom .container {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

/* =========================================================
   FLOATING BUTTONS
   ========================================================= */
.float-whatsapp {
  position: fixed; bottom: 28px; left: 28px; z-index: 500; width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 26px;
  box-shadow: 0 14px 30px -10px rgba(37,211,102,.6); animation: pulseWA 2.6s ease-in-out infinite;
}
@keyframes pulseWA { 0%,100%{transform:scale(1);} 50%{transform:scale(1.08);} }
.back-to-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 500; width: 48px; height: 48px; border-radius: 50%;
  background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px;
  opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .3s, transform .3s, background .3s;
}
.back-to-top:hover { background: var(--red-deep); }
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* =========================================================
   RESPONSIVE RULES
   ========================================================= */
@media (max-width: 1024px) {
  .programs-grid, .faculty-grid, .gallery-grid-masonry { grid-template-columns: repeat(3, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 80px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; top: 0; right: 0; height: 100vh; width: min(320px, 82%);
    background: var(--black); flex-direction: column; align-items: flex-start; justify-content: center; gap: 26px;
    padding: 40px; transform: translateX(100%); transition: transform .4s var(--ease);
  }
  .nav-links.is-open { transform: translateX(0); }
  .nav-links a { font-size: 17px; color: rgba(255,255,255,.85) !important; }
  .nav-links a.active, .nav-links a:hover { color: #fff !important; }
  .nav-cta { margin-top: 10px; }
  .site-nav.is-scrolled .nav-toggle span { background: var(--black); }

  .team-grid, .courses-page-grid, .courses-grid, .blog-grid, .jobs-grid, .achievers-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .programs-grid, .faculty-grid, .team-grid, .courses-page-grid, .courses-grid, .blog-grid, .jobs-grid, .achievers-grid, .why-grid, .gallery-grid-masonry { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full-width { grid-column: span 1; }
  .hero-cta { flex-direction: column; align-items: flex-start; }
  .promo-footer { flex-direction: column; align-items: flex-start; }
}
