/* ===== ISBR Law College – Global Stylesheet ===== */
/* Brand: ISBR Corporate Identity Guidelines */

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

:root {
  /* ISBR Brand Colors */
  --red:     #ba2025;
  --red2:    #9e1a1e;
  --orange:  #f3703a;
  --orange2: #d95f2a;
  --yellow:  #faa634;
  --charcoal:#000000;
  --dark:    #1a0709;
  --light:   #fdf8f5;
  --white:   #ffffff;
  --text:    #000000;
  --muted:   #000000;
  --border:  #e8ddd7;

  /* Legacy aliases – keep inline var(--navy) / var(--gold) working */
  --navy:    #ba2025;
  --navy2:   #9e1a1e;
  --gold:    #f3703a;
  --gold2:   #d95f2a;

  --radius:  8px;
  --shadow:  0 4px 24px rgba(186,32,37,.10);
  --trans:   all .3s ease;
  --font:    'Raleway', sans-serif;
  --font-h:  'Cormorant Garamond', serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }

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

.section-pad { padding: 80px 0; }

/* ---------- Typography ---------- */
.tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
  display: block;
  margin-bottom: 12px;
  font-family: var(--font);
}

h1,h2,h3,h4,h5 {
  font-family: var(--font-h);
  font-weight: 700;
  line-height: 1.25;
  color: var(--charcoal);
}

h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.55rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }
h5 { font-size: 1.05rem; }

p { color: #000; margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--trans);
  border: 2px solid transparent;
  font-family: var(--font);
  letter-spacing: .3px;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}
.btn-primary:hover {
  background: var(--orange2);
  border-color: var(--orange2);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(243,112,58,.35);
}

.btn-navy {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn-navy:hover {
  background: var(--red2);
  border-color: var(--red2);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--red);
}

.btn-outline-navy {
  background: transparent;
  color: var(--red);
  border-color: var(--red);
}
.btn-outline-navy:hover {
  background: var(--red);
  color: var(--white);
}

/* ---------- Top Bar ---------- */
.topbar {
  background: var(--red);
  color: rgba(255,255,255,.85);
  font-size: 13px;
  padding: 8px 0;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar-left a,
.topbar-right a {
  color: rgba(255,255,255,.85);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--trans);
}

/* Phone numbers — use system sans-serif for clean digit rendering sitewide */
a[href^="tel"] {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.topbar-left a:hover,
.topbar-right a:hover { color: var(--yellow); }

.topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.topbar-right .apply-link {
  background: var(--orange);
  color: var(--white);
  padding: 4px 14px;
  border-radius: 4px;
  font-weight: 600;
}
.topbar-right .apply-link:hover { background: var(--orange2); color: var(--white); }

.social-icons { display: flex; gap: 12px; }
.social-icons a { font-size: 13px; }

/* ---------- Navigation ---------- */
.navbar {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(186,32,37,.08);
  transition: box-shadow .3s ease;
}
.navbar.scrolled {
  box-shadow: 0 4px 24px rgba(186,32,37,.13);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  padding-bottom: 10px;
  transition: padding .3s cubic-bezier(.4,0,.2,1);
  will-change: padding;
}
.navbar.scrolled .nav-inner {
  padding-top: 4px;
  padding-bottom: 4px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo .logo-text { display: none; }

.site-logo-img {
  height: 68px;
  width: auto;
  display: block;
  flex-shrink: 0;
  transform-origin: left center;
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.navbar.scrolled .site-logo-img {
  transform: scale(0.68);
}

.logo-text .college-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--charcoal);
  line-height: 1.1;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
}
.logo-text .college-name span { color: var(--red); font-size: 13px; font-weight: 600; }
.logo-text .tagline { font-size: 10px; color: var(--muted); letter-spacing: 1.2px; text-transform: uppercase; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-menu a {
  padding: 8px 13px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text);
  border-radius: 6px;
  transition: var(--trans);
  position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--red);
  background: rgba(186,32,37,.06);
}

.nav-menu a.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
}

.nav-menu .nav-apply {
  display: none;
  background: var(--orange);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  margin-left: 8px;
}
.nav-menu .nav-apply:hover { background: var(--orange2); color: var(--white); }
.nav-menu .nav-apply.active::after { display: none; }

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--trans);
  z-index: 100;
}
.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a {
  display: block;
  padding: 10px 16px;
  border-radius: 0;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
}
.dropdown a:last-child { border-bottom: none; }
.dropdown a:hover { background: var(--light); color: var(--red); }

/* Mobile nav */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 9px 10px;
  border-radius: 8px;
  background: rgba(186,32,37,.07);
  border: 1.5px solid rgba(186,32,37,.18);
  transition: var(--trans);
  align-items: flex-end;
}
.nav-toggle:hover {
  background: rgba(186,32,37,.13);
  border-color: rgba(186,32,37,.3);
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
  transition: var(--trans);
}
.nav-toggle span:nth-child(1) { width: 22px; }
.nav-toggle span:nth-child(2) { width: 28px; }
.nav-toggle span:nth-child(3) { width: 16px; }

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  background-image: linear-gradient(135deg, rgba(26,7,9,.74) 0%, rgba(186,32,37,.56) 100%),
    url('https://pub-5822781dab124ab7a02b41b7b0702e3a.r2.dev/UG%20Images/1--63.jpg');
  background-position: center, center center;
  background-size: auto, cover;
  background-repeat: no-repeat;
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}

.page-hero::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");
}

.page-hero .container { position: relative; }
.page-hero h1 { color: var(--white); margin-bottom: 12px; }
.page-hero p  { color: rgba(255,255,255,.75); font-size: 17px; max-width: 560px; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,.6);
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--yellow); }
.breadcrumb span { color: rgba(255,255,255,.4); }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  transition: var(--trans);
}
.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 22px;
  background: rgba(186,32,37,.08);
  color: var(--red);
}

/* ---------- Stats Bar ---------- */
.stats-bar {
  background: linear-gradient(135deg, var(--dark) 0%, var(--red) 100%);
  padding: 56px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  text-align: center;
}
.stat-item {
  padding: 12px 24px;
  border-right: 1px solid rgba(255,255,255,.15);
}
.stat-item:last-child { border-right: none; }
.stat-item .number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--yellow);
  line-height: 1;
  font-family: var(--font-h);
}
.stat-item .label {
  font-size: 13.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: rgba(255,255,255,.8);
  margin-top: 10px;
}

/* ---------- Section Header ---------- */
.section-header { margin-bottom: 48px; }
.section-header.center { text-align: center; }
.section-header h2 { margin-bottom: 12px; }
.section-header p { max-width: 560px; }
.section-header.center p { margin: 0 auto; }

.divider {
  width: 48px;
  height: 3px;
  background: var(--orange);
  border-radius: 2px;
  margin: 16px 0;
}
.section-header.center .divider { margin: 16px auto; }

/* ---------- Grid Utilities ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }

/* ---------- Feature Strip ---------- */
.features-strip {
  background: var(--white);
  box-shadow: 0 4px 32px rgba(186,32,37,.12);
  padding: 28px 0;
  margin-top: -40px;
  position: relative;
  z-index: 10;
  border-radius: 12px;
  margin-left: 24px;
  margin-right: 24px;
}

.features-strip .container { max-width: 1152px; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}

.feature-item {
  text-align: center;
  padding: 16px 20px;
  border-right: 1px solid var(--border);
}
.feature-item:last-child { border-right: none; }

.feature-icon {
  font-size: 24px;
  color: var(--orange);
  margin-bottom: 8px;
}

.feature-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 4px;
}

.feature-desc {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

.feature-big {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--charcoal);
  line-height: 1;
  font-family: var(--font-h);
}
.feature-big span { color: var(--orange); }

/* ---------- Programs ---------- */
.program-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px 28px;
  transition: var(--trans);
  position: relative;
  overflow: hidden;
}
.program-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--orange);
  transform: scaleX(0);
  transition: var(--trans);
}
.program-card:hover { box-shadow: var(--shadow); transform: translateY(-6px); }
.program-card:hover::before { transform: scaleX(1); }

.program-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
}

.program-duration {
  font-size: 12px;
  font-weight: 600;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.program-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
  margin-top: 20px;
  transition: var(--trans);
}
.program-link:hover { color: var(--orange); gap: 10px; }

/* ---------- Why ISBR ---------- */
.why-section {
  background: var(--light);
  padding: 80px 0;
}
.why-section .tag { color: var(--red); }
.why-section h2 { color: var(--charcoal); font-family: var(--font-h); }
.why-section .divider { background: var(--red); margin: 16px auto; }

.why-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-align: center;
  padding: 36px 24px;
  box-shadow: 0 2px 16px rgba(0,0,0,.05);
  transition: var(--trans);
}
.why-card:hover {
  border-color: var(--red);
  box-shadow: 0 8px 32px rgba(186,32,37,.12);
  transform: translateY(-4px);
}
.why-icon { font-size: 32px; color: var(--red); margin-bottom: 18px; }
.why-card h4 { color: var(--charcoal); margin-bottom: 10px; font-family: var(--font-h); font-size: 1.1rem; }
.why-card p  { color: #000; font-size: 15px; margin: 0; line-height: 1.65; }

/* ---------- Campus Gallery ---------- */
.campus-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}

.campus-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 200px 200px;
  gap: 12px;
}

.campus-img {
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}
.campus-img:first-child {
  grid-row: span 2;
}
.campus-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.campus-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 12px;
  background: linear-gradient(transparent, rgba(0,0,0,.65));
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ---------- Testimonials ---------- */
.testimonials-section { background: var(--light); }

.testimonial-card {
  background: var(--white);
  border-radius: 16px;
  padding: 40px;
  border: 1px solid var(--border);
  position: relative;
  box-shadow: 0 2px 20px rgba(0,0,0,.05);
  transition: var(--trans);
  display: flex;
  flex-direction: column;
}
.testimonial-card:hover {
  box-shadow: 0 8px 36px rgba(186,32,37,.10);
  border-color: rgba(186,32,37,.25);
}
.quote-icon {
  font-size: 56px;
  color: var(--red);
  opacity: .18;
  line-height: 1;
  margin-bottom: 8px;
  font-family: Georgia, serif;
}
.testimonial-text {
  font-size: 17px;
  color: #000;
  font-style: italic;
  margin-bottom: 28px;
  line-height: 1.8;
  flex: 1;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.author-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}
.author-name { font-weight: 700; color: var(--charcoal); font-size: 15px; }
.author-prog { font-size: 12px; color: var(--orange); font-weight: 600; }

/* ---------- Slider Dots ---------- */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: var(--trans);
}
.dot.active {
  background: var(--orange);
  width: 24px;
  border-radius: 4px;
}

/* ---------- Testimonial Carousel ---------- */
.testi-outer { overflow: hidden; width: 100%; }
.testi-track {
  display: flex;
  gap: 28px;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
  will-change: transform;
  position: relative;
}
/* Card sizing is handled dynamically by JS (sizeTestiCards / sizeCards) */
.testi-track .testimonial-card,
.testi-track .speak-card,
.speak-track .speak-card {
  min-width: 0;
  flex-shrink: 0;
}
@media (max-width: 900px) {
  .testi-track,
  .speak-track { gap: 0 !important; }
}

/* speak-track (program pages carousel) */
.speak-track {
  display: flex;
  gap: 28px;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
  will-change: transform;
  position: relative;
  margin-top: 32px;
}
.testi-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 36px;
}
.testi-controls .slider-dots { margin-top: 0; }
.testi-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  font-size: 14px;
  transition: var(--trans);
  flex-shrink: 0;
}
.testi-btn:hover { background: var(--red); color: var(--white); border-color: var(--red); }

/* ---------- CTA Banner ---------- */
.cta-section {
  background: linear-gradient(135deg, var(--orange) 0%, var(--red) 100%);
  padding: 72px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04' fill-rule='evenodd'%3E%3Ccircle cx='40' cy='40' r='10'/%3E%3C/g%3E%3C/svg%3E");
}
.cta-section .container { position: relative; }
.cta-section h2 { color: var(--white); margin-bottom: 16px; font-family: var(--font-h); }
.cta-section p  { color: rgba(255,255,255,.85); max-width: 500px; margin: 0 auto 32px; }
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer {
  background: var(--white);
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.footer-brand .site-logo-img { margin-bottom: 16px; height: 68px; }
.footer-brand p { color: var(--muted); font-size: 14.5px; margin-top: 12px; }

.footer-col h5 {
  color: var(--charcoal);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 14.5px;
  color: var(--muted);
  transition: var(--trans);
}
.footer-links a:hover { color: var(--red); padding-left: 4px; }

.contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 15px;
  color: var(--charcoal);
  font-weight: 600;
  align-items: flex-start;
}
.contact-item a {
  color: var(--charcoal);
  font-weight: 600;
}
.contact-item a:hover { color: var(--red); }
.contact-item i { color: var(--red); margin-top: 3px; flex-shrink: 0; font-size: 15px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-size: 14px;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom a { color: var(--muted); transition: var(--trans); }
.footer-bottom a:hover { color: var(--red); }

.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(186,32,37,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  font-size: 13px;
  transition: var(--trans);
}
.footer-social a:hover { background: var(--red); color: var(--white); }

/* ---------- Form Styles ---------- */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
  background: var(--white);
  transition: var(--trans);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(243,112,58,.10);
}
.form-group textarea { min-height: 120px; resize: vertical; }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; border-radius: 10px; border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; }
th {
  background: var(--red);
  color: var(--white);
  padding: 14px 20px;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
}
td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}
tr:last-child td { border-bottom: none; }
tr:nth-child(even) td { background: var(--light); }
tr:hover td { background: rgba(243,112,58,.05); }

/* ---------- Accordion ---------- */
.accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  cursor: pointer;
  background: var(--white);
  transition: var(--trans);
  font-weight: 600;
  color: var(--charcoal);
}
.accordion-header:hover { background: var(--light); }
.accordion-header.open { background: var(--red); color: var(--white); }
.accordion-icon { transition: var(--trans); font-size: 18px; }
.accordion-header.open .accordion-icon { transform: rotate(45deg); color: var(--yellow); }
.accordion-body {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding .4s ease;
}
.accordion-body.open {
  max-height: 500px;
  padding: 20px 24px;
}

/* ---------- Tabs ---------- */
.tabs-wrapper {
  width: 100%;
  min-width: 0;
}
.tab-nav {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  border-bottom: 2px solid var(--border);
  margin-bottom: 28px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}
.tab-nav::-webkit-scrollbar { display: none; }
.tab-btn {
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: var(--trans);
  font-family: var(--font);
  white-space: nowrap;
  flex-shrink: 0;
}
.tab-btn:hover { color: var(--red); }
.tab-btn.active { color: var(--red); border-bottom-color: var(--orange); }

.tab-content {
  display: none;
  width: 100%;
  min-width: 0;
}
.tab-content.active { display: block; }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 32px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 8px; top: 0; bottom: 0;
  width: 2px;
  background: var(--border);
}
.timeline-item { position: relative; margin-bottom: 28px; }
.timeline-dot {
  position: absolute;
  left: -28px;
  top: 6px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--orange);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--orange);
}
.timeline-date {
  font-size: 12px;
  font-weight: 600;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.timeline-title { font-size: 18px; font-weight: 700; color: var(--charcoal); margin-bottom: 6px; font-family: var(--font-h); }
.timeline-text { font-size: 15px; color: var(--muted); }

/* ---------- Programme Pills (sidebar) ---------- */
.prog-pills-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.prog-pill-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--charcoal);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--trans);
  line-height: 1.3;
}
.prog-pill-link:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}
.prog-pill-link:hover i { color: var(--white); }
.prog-pill-link i {
  color: var(--red);
  font-size: 11px;
  flex-shrink: 0;
  transition: var(--trans);
}

/* ---------- Badge ---------- */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.badge-gold { background: rgba(250,166,52,.15); color: var(--yellow); }
.badge-navy { background: rgba(186,32,37,.1); color: var(--red); }
.badge-green { background: rgba(16,185,129,.12); color: #059669; }

/* ---------- Map Placeholder ---------- */
.map-placeholder {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--muted);
  flex-direction: column;
  gap: 12px;
}
.map-placeholder i { font-size: 40px; color: var(--red); }

/* Hide mobile-only nav elements on desktop */
.nav-close-btn  { display: none; }
.nav-menu-footer { display: none; }

/* ---------- Scroll-to-top ---------- */
.scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--red);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(186,32,37,.3);
  transition: var(--trans);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
}
.scroll-top.show { opacity: 1; visibility: visible; }
.scroll-top:hover { background: var(--orange); transform: translateY(-4px); }

/* --------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
  .features-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  /* Cap logo on mobile — keep navbar compact */
  .nav-inner { padding-top: 8px; padding-bottom: 8px; }
  .navbar.scrolled .nav-inner { padding-top: 4px; padding-bottom: 4px; }
  .site-logo-img { height: 52px; }
  .navbar.scrolled .site-logo-img { transform: scale(0.81); }

  /* ---- Mobile nav: full-screen overlay ---- */
  .nav-toggle { display: flex; position: relative; z-index: 2001; }

  /* When open: all lines equal width, then animate to X */
  .nav-toggle.open span:nth-child(1),
  .nav-toggle.open span:nth-child(2),
  .nav-toggle.open span:nth-child(3) { width: 24px; background: var(--white); }
  .nav-toggle.open { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.2); }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: linear-gradient(160deg, #1a0709 0%, #ba2025 65%, #f3703a 100%);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 90px 28px 56px;
    z-index: 2000;
    overflow-y: auto;
    gap: 0;
  }

  @keyframes menuIn {
    from { opacity: 0; transform: translateY(-16px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .nav-menu.open {
    display: flex;
    animation: menuIn .32s ease forwards;
  }

  .nav-menu li {
    width: 100%;
    max-width: 480px;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .nav-menu li:last-child { border-bottom: none; margin-top: 8px; }

  .nav-menu a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 20px;
    font-size: 18px;
    font-weight: 600;
    color: rgba(255,255,255,.82);
    border-radius: 0;
    background: none;
    width: 100%;
  }
  .nav-menu a:hover,
  .nav-menu a.active { color: var(--yellow); background: rgba(255,255,255,.06); }
  .nav-menu a.active::after { display: none; }

  .nav-menu .nav-apply {
    display: block;
    background: var(--orange);
    color: var(--white) !important;
    border-radius: 10px;
    justify-content: center;
    font-size: 17px;
    margin-top: 4px;
  }
  .nav-menu .nav-apply:hover { background: var(--orange2); color: var(--white) !important; }

  /* Mobile dropdown - click-based */
  .has-dropdown:hover .dropdown { opacity: 0; visibility: hidden; transform: translateY(-8px); }
  .has-dropdown .dropdown {
    position: static;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    box-shadow: none;
    background: rgba(0,0,0,.28);
    border: none;
    border-radius: 10px;
    margin: 0 0 8px;
    display: none;
    min-width: unset;
    width: 100%;
  }
  .has-dropdown.mob-open > a { color: var(--yellow); }
  .has-dropdown.mob-open .dropdown { display: block; }
  .dropdown a {
    color: rgba(255,255,255,.72);
    font-size: 15px;
    padding: 11px 20px;
    border-bottom: 1px solid rgba(255,255,255,.06);
    border-radius: 0;
    text-align: center;
  }
  .dropdown a:last-child { border-bottom: none; }
  .dropdown a:hover { color: var(--yellow); background: rgba(255,255,255,.06); }

  /* Close button (injected by JS) */
  .nav-close-btn {
    position: fixed;
    top: 18px; right: 18px;
    width: 46px; height: 46px;
    border-radius: 50%;
    background: rgba(255,255,255,.14);
    border: 1.5px solid rgba(255,255,255,.22);
    color: var(--white);
    font-size: 18px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    z-index: 2002;
    transition: var(--trans);
  }
  .nav-close-btn:hover { background: rgba(255,255,255,.28); }

  /* Brand tagline inside mobile menu (injected by JS) */
  .nav-menu-footer {
    margin-top: auto;
    padding-top: 28px;
    text-align: center;
    color: rgba(255,255,255,.32);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    width: 100%;
  }
}

/* ---- Layout breakpoints ---- */
@media (max-width: 768px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-6 { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .campus-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .features-strip { margin: -20px 12px 0; }
  /* Single-row topbar on mobile: phone left, social icons right, drop Apply Now */
  .topbar .container { flex-direction: row; gap: 0; align-items: center; }
  .topbar-right { flex-wrap: nowrap; gap: 14px; }
  .topbar-right .apply-link { display: none; }
  .topbar-left a { font-size: 12px; }
  .social-icons { gap: 10px; }
  .social-icons a { font-size: 12px; }
}

@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .grid-6 { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .cta-btns { flex-direction: column; align-items: center; }
  .stats-grid { grid-template-columns: 1fr; }
  .section-pad { padding: 56px 0; }
}
