/* ===================== Root Variables (New Palette) ===================== */
:root {
  --primary: #6D8196;        /* Steel Blue - main accent */
  --primary-dark: #56687a;   /* Darker steel blue for hovers */
  --dark: #4A4A4A;           /* Charcoal - headings */
  --dark-blue: #3a3a3a;      /* Deep charcoal - header/footer bg */
  --light-bg: #FFFFE3;       /* Soft ivory - section backgrounds */
  --gray-bg: #CBCBCB;        /* Cool gray - borders/secondary bg */
  --text-gray: #6b6b6b;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(74,74,74,0.10);
  --shadow-lg: 0 20px 50px rgba(74,74,74,0.16);
  font-family: 'Segoe UI', Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #2b2b2b;
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: color 0.25s ease; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

::selection { background: var(--primary); color: #fff; }

.btn {
  display: inline-block;
  padding: 13px 30px;
  background: var(--primary);
  color: #fff;
  border-radius: 30px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(109,129,150,0.35);
}
.btn:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(109,129,150,0.45); }
.btn:active { transform: translateY(0); }
.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  box-shadow: none;
}
.btn-outline:hover { background: var(--primary); color: #fff; }

.section { padding: 90px 0; }
.section-title { text-align: center; margin-bottom: 55px; }
.section-title h2 { font-size: 36px; font-weight: 800; color: var(--dark); margin-bottom: 12px; letter-spacing: -0.5px; }
.section-title p { color: var(--text-gray); font-size: 16px; }

/* ===================== Topbar ===================== */
.topbar {
  background: linear-gradient(90deg, #333333 0%, #4A4A4A 50%, #333333 100%);
  color: #CBCBCB;
  font-size: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(109,129,150,0.25);
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; }
.topbar ul { display: flex; gap: 20px; align-items: center; }
.topbar a { color: #CBCBCB; text-transform: uppercase; letter-spacing: 0.6px; font-weight: 600; font-size: 11.5px; transition: color 0.25s ease, text-shadow 0.25s ease; }
.topbar a:hover { color: var(--primary); text-shadow: 0 0 10px rgba(109,129,150,0.6); }
.topbar-links li { position: relative; padding-right: 20px; border-right: 1px solid rgba(255,255,255,0.15); }
.topbar-links li:last-child { border-right: none; padding-right: 0; }

/* ===================== Brand Strip ===================== */
.brand-strip {
  background: linear-gradient(180deg, #FFFFE3 0%, #f5f5d0 100%);
  border-bottom: 2px solid var(--primary);
  padding: 22px 0;
  position: relative;
  overflow: hidden;
}
.brand-strip::after {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.55) 50%, transparent 100%);
  transform: skewX(-20deg);
  animation: brand-shine 6s ease-in-out infinite;
}
@keyframes brand-shine {
  0% { left: -60%; }
  40% { left: 130%; }
  100% { left: 130%; }
}
.brand-strip-inner { display: flex; align-items: center; gap: 20px; justify-content: flex-start; position: relative; z-index: 2; }
.brand-logo-emblem {
  width: 72px; height: 72px;
  flex-shrink: 0;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 55%, var(--light-bg) 100%);
  border: 3px solid var(--primary);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(109,129,150,0.30);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.brand-logo-emblem:hover { transform: rotate(-6deg) scale(1.06); box-shadow: 0 6px 20px rgba(109,129,150,0.45); }
.emblem-inner { font-size: 32px; }
.emblem-img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.brand-title-full { font-size: 21px; font-weight: 800; color: var(--dark); letter-spacing: 0.6px; margin-bottom: 5px; text-shadow: 0 1px 0 rgba(255,255,255,0.6); }
.brand-desc { font-size: 13px; color: var(--text-gray); margin-top: 3px; line-height: 1.5; }
.brand-accredit { font-size: 13px; color: #3a6b47; font-weight: 700; margin-top: 8px; letter-spacing: 0.3px; }
.brand-badges { display: flex; align-items: center; gap: 22px; margin-left: auto; flex-shrink: 0; }
.badge-naac { display: flex; flex-direction: column; align-items: center; text-align: center; line-height: 1.1; }
.badge-naac .grade-label { font-size: 11px; font-weight: 800; color: var(--dark); letter-spacing: 3px; }
.badge-naac .grade-word { font-size: 18px; font-weight: 800; color: var(--dark); margin-top: 3px; letter-spacing: 1px; }
.badge-naac .grade-letter-big { font-size: 38px; font-weight: 900; color: var(--primary-dark); line-height: 1; margin-top: -2px; text-shadow: 0 2px 8px rgba(109,129,150,0.35); }
.badge-naac .grade-line { width: 40px; height: 2px; background: var(--primary-dark); margin: 5px 0 4px; }
.badge-naac .grade-sub { font-size: 10px; color: var(--text-gray); text-transform: uppercase; letter-spacing: 0.5px; }
.admissions-btn {
  display: flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, #4A4A4A 0%, #333333 100%);
  color: #FFFFE3;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: 30px;
  border: 2px solid var(--primary);
  white-space: nowrap;
  animation: pulse-scale 1.6s ease-in-out infinite;
  cursor: pointer;
  box-shadow: 0 0 0 rgba(109,129,150,0.5);
}
.admissions-btn:hover { background: var(--primary-dark); border-color: #fff; }
@keyframes pulse-scale {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(109,129,150,0.45); }
  50% { transform: scale(1.08); box-shadow: 0 0 0 8px rgba(109,129,150,0); }
}

/* ===================== Admissions Popup Modal ===================== */
.admissions-modal {
  display: none;
  position: fixed; inset: 0;
  background: rgba(74,74,74,0.65);
  z-index: 2000;
  align-items: center; justify-content: center;
  backdrop-filter: blur(3px);
}
.admissions-modal-box {
  background: #fff;
  border-radius: var(--radius);
  padding: 40px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: modal-pop 0.25s ease;
}
@keyframes modal-pop {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.admissions-modal-box h2 { color: var(--dark); margin-bottom: 15px; font-size: 24px; }
.admissions-modal-box p { color: var(--text-gray); margin-bottom: 8px; font-size: 14px; }
.admissions-modal-box .btn { margin-top: 20px; }
.admissions-modal-close {
  position: absolute; top: 14px; right: 18px;
  font-size: 24px; cursor: pointer; color: var(--text-gray);
  transition: color 0.2s;
}
.admissions-modal-close:hover { color: var(--primary); }

/* ===================== Header / Nav ===================== */
.main-header {
  background: linear-gradient(90deg, #2f2f2f 0%, #3a3a3a 50%, #2f2f2f 100%);
  position: sticky; top: 0; z-index: 999;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  overflow-x: auto;
  overflow-y: hidden;
  border-top: 1px solid rgba(109,129,150,0.35);
}
.main-header::-webkit-scrollbar { height: 4px; }
.main-header .container { padding: 0 10px; }
.nav-menu { display: flex; justify-content: center; align-items: center; width: 100%; flex-wrap: nowrap; gap: 2px; }
.nav-item { position: relative; padding: 0; flex-shrink: 0; }
.nav-item > a {
  font-weight: 700;
  color: #dcdcdc;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 20px 11px;
  display: inline-block;
  position: relative;
  transition: color 0.25s ease, background 0.25s ease;
  white-space: nowrap;
  border-radius: 6px;
}
.nav-item > a::before {
  content: "";
  position: absolute;
  left: 8px; right: 8px; top: 8px; bottom: 8px;
  background: rgba(109,129,150,0.16);
  border-radius: 6px;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: -1;
}
.nav-item > a:hover::before { opacity: 1; transform: scale(1); }
.nav-item > a::after {
  content: "";
  position: absolute; left: 11px; right: 11px; bottom: 10px;
  height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), #a9bccb);
  transform: scaleX(0); transform-origin: center;
  transition: transform 0.3s ease;
  box-shadow: 0 0 8px rgba(109,129,150,0.7);
}
.nav-item > a:hover::after, .nav-item > a.active::after { transform: scaleX(1); }
.nav-item > a:hover, .nav-item > a.active { color: #fff; text-shadow: 0 0 14px rgba(109,129,150,0.6); }
.nav-item > a.active { color: var(--primary); font-weight: 800; }
.nav-item .dropdown {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  background: #fff;
  min-width: 210px;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  padding: 10px 0;
  z-index: 100;
  animation: dropdown-fade 0.2s ease;
}
@keyframes dropdown-fade {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.nav-item:hover .dropdown { display: block; }
.nav-item .dropdown a {
  display: block;
  padding: 10px 18px;
  color: var(--dark);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}
.nav-item .dropdown a:hover { background: var(--light-bg); color: var(--primary-dark); padding-left: 22px; }

/* ===================== Hero Slider ===================== */
.hero-slider { position: relative; overflow: hidden; height: 620px; background: #1c1c1c; }
.slide {
  position: absolute; inset: 0;
  background-color: #1c1c1c;
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.1);
  filter: blur(6px);
  transition: opacity 0.6s ease, filter 0.5s ease, transform 8s ease-out;
  z-index: 1;
}
.slide.active {
  opacity: 1;
  z-index: 2;
  filter: blur(0);
  animation: kenburns 9s ease-out forwards, slide-focus-in 0.5s ease-out forwards;
}
@keyframes kenburns {
  0%   { transform: scale(1.12) translate(0, 0); }
  100% { transform: scale(1.0) translate(0, -1%); }
}
@keyframes slide-focus-in {
  0%   { filter: blur(6px); }
  100% { filter: blur(0); }
}
.slide::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0) 35%, rgba(15,15,15,0.55) 100%);
  z-index: 1;
}
.slider-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(27,27,27,0.45);
  border: 1.5px solid rgba(255,255,255,0.5);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  cursor: pointer;
  z-index: 6;
  backdrop-filter: blur(3px);
  transition: all 0.3s ease;
}
.slider-arrow:hover { background: var(--primary); border-color: var(--primary); transform: translateY(-50%) scale(1.1); }
.slider-arrow.prev { left: 24px; }
.slider-arrow.next { right: 24px; }
.slider-dots { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); display: flex; gap: 12px; z-index: 6; }
.dot {
  width: 34px; height: 5px; border-radius: 3px;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease;
}
.dot::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
}
.dot.active { background: rgba(255,255,255,0.35); }
.dot.active::after {
  transform: scaleX(1);
  transition: transform 9s linear;
}
.dot:hover { background: rgba(255,255,255,0.6); }

/* ===================== Hero Caption (animated text overlay) ===================== */
.hero-slider::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(10,10,15,0.82) 0%, rgba(10,10,15,0.45) 42%, rgba(10,10,15,0.05) 68%, rgba(10,10,15,0) 100%);
  z-index: 3;
  pointer-events: none;
}
.hero-caption {
  position: absolute;
  left: 0; right: 0; bottom: 100px;
  z-index: 5;
  padding: 0 70px;
  max-width: 820px;
}
.cap-eyebrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(109,129,150,0.22);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 9px 20px 9px 16px;
  border-radius: 30px;
  margin-bottom: 22px;
  opacity: 0;
  transform: translateY(24px);
}
.cap-eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(109,129,150,0.35);
  flex-shrink: 0;
}
.cap-title {
  margin: 0 0 18px;
  font-size: 50px;
  font-weight: 800;
  color: #fff;
  line-height: 1.22;
  letter-spacing: -0.5px;
  text-shadow: 0 6px 24px rgba(0,0,0,0.55);
}
.cap-title .cap-line {
  display: block;
  overflow: hidden;
  padding-bottom: 4px;
}
.cap-title .cap-line span {
  display: block;
  opacity: 0;
  transform: translateY(100%);
  background: linear-gradient(90deg, #ffffff 0%, #e7ecf1 60%, #cdd8e2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cap-divider {
  width: 70px;
  height: 4px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--primary), #ffffff00);
  margin-bottom: 22px;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
}
.cap-sub {
  color: #f1f3f8;
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 32px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
  opacity: 0;
  transform: translateY(24px);
}
.cap-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  opacity: 0;
  transform: translateY(24px);
}
.cap-btn {
  font-size: 15px;
  padding: 15px 30px;
  box-shadow: 0 10px 28px rgba(109,129,150,0.5);
}
.cap-btn-outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.75);
  color: #fff;
  box-shadow: none;
  backdrop-filter: blur(4px);
}
.cap-btn-outline:hover { background: #fff; color: var(--dark); border-color: #fff; transform: translateY(-2px); }

/* Divider animates alongside the eyebrow tag */
.hero-caption.animate .cap-divider {
  animation: capDividerGrow 0.6s ease forwards;
  animation-delay: 0.18s;
}
@keyframes capDividerGrow {
  from { opacity: 0; transform: scaleX(0); }
  to   { opacity: 1; transform: scaleX(1); }
}

/* Staggered reveal - runs whenever .hero-caption has .animate */
.hero-caption.animate .cap-eyebrow,
.hero-caption.animate .cap-sub,
.hero-caption.animate .cap-actions {
  animation: heroFadeUp 0.7s ease forwards;
}
.hero-caption.animate .cap-eyebrow { animation-delay: 0.1s; }
.hero-caption.animate .cap-title .cap-line:nth-child(1) span { animation: heroLineUp 0.7s cubic-bezier(.22,.68,0,1.71) forwards; animation-delay: 0.28s; }
.hero-caption.animate .cap-title .cap-line:nth-child(2) span { animation: heroLineUp 0.7s cubic-bezier(.22,.68,0,1.71) forwards; animation-delay: 0.44s; }
.hero-caption.animate .cap-sub { animation-delay: 0.62s; }
.hero-caption.animate .cap-actions { animation-delay: 0.78s; }

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroLineUp {
  from { opacity: 0; transform: translateY(100%); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .hero-caption { padding: 0 24px; bottom: 60px; }
  .cap-title { font-size: 28px; }
  .cap-actions { flex-wrap: wrap; }
}

@media (min-width: 1400px) {
  .hero-slider { height: 700px; }
}

/* ===================== President / Welcome ===================== */
.president {
  display: flex; align-items: center; gap: 55px;
}
.president.reverse { flex-direction: row-reverse; }
.president img { border-radius: var(--radius); flex: 0 0 320px; box-shadow: var(--shadow-lg); }
.president.reverse img { flex: 0 0 45%; }
.president blockquote { font-size: 21px; font-style: italic; color: var(--dark); line-height: 1.6; }
.president cite { display: block; margin-top: 16px; font-weight: 700; color: var(--primary-dark); font-style: normal; }
.tag { color: var(--primary-dark); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: 13px; margin-bottom: 10px; display: block; }

/* ===================== CTA Strip ===================== */
.cta-strip { background: var(--dark-blue); color: #FFFFE3; text-align: center; padding: 25px 0; font-weight: 600; }

/* ===================== Trusted By ===================== */
.trusted-by { background: linear-gradient(120deg, var(--primary) 0%, #56687a 100%); color: #fff; text-align: center; padding: 75px 0; }
.trusted-by h2 { font-size: 34px; font-weight: 800; margin-bottom: 12px; }
.trusted-by p { margin-bottom: 28px; opacity: 0.92; font-size: 16px; }
.trusted-by .btn { background: var(--dark-blue); box-shadow: 0 8px 20px rgba(0,0,0,0.25); }
.trusted-by .btn:hover { background: #222; }

/* ===================== Campus Life ===================== */
.campus-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.campus-card { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #fff; transition: all 0.35s ease; }
.campus-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.campus-card img { height: 220px; object-fit: cover; width: 100%; transition: transform 0.4s ease; }
.campus-card:hover img { transform: scale(1.06); }
.campus-body { padding: 24px; }
.campus-body h4 { margin-bottom: 10px; font-size: 18px; font-weight: 700; color: var(--dark); }
.campus-body p { color: var(--text-gray); font-size: 14px; margin-bottom: 14px; }
.campus-body a { color: var(--primary-dark); font-weight: 600; font-size: 14px; }

/* ===================== Events ===================== */
.events-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.event-card {
  background: var(--light-bg);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  gap: 20px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border: 1px solid transparent;
}
.event-card:hover { border-color: var(--primary); transform: translateY(-4px); }
.event-date { background: var(--primary); color: #fff; text-align: center; border-radius: 8px; padding: 10px 14px; min-width: 60px; box-shadow: 0 6px 14px rgba(109,129,150,0.35); }
.event-date .day { font-size: 22px; font-weight: 800; display: block; }
.event-card h4 { margin-bottom: 8px; font-size: 17px; font-weight: 700; color: var(--dark); }
.event-card p { color: var(--text-gray); font-size: 14px; }

/* ===================== Courses ===================== */
.courses-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.course-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
  transition: all 0.35s ease;
  border: 1px solid var(--gray-bg);
}
.course-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.course-card img { height: 190px; object-fit: cover; width: 100%; background: var(--gray-bg); transition: transform 0.4s ease; }
.course-card:hover img { transform: scale(1.05); }
.course-body { padding: 22px; }
.course-instructor { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-gray); margin-bottom: 12px; }
.course-instructor img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.course-body h3 { font-size: 17px; font-weight: 700; margin-bottom: 14px; color: var(--dark); }
.course-meta { display: flex; justify-content: space-between; align-items: center; font-size: 14px; border-top: 1px solid var(--gray-bg); padding-top: 14px; }
.course-price { color: var(--primary-dark); font-weight: 800; }

/* ===================== Stats ===================== */
.stats { background: var(--dark-blue); color: #fff; position: relative; overflow: hidden; }
.stats::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(109,129,150,0.20) 0, transparent 45%);
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; gap: 20px; position: relative; z-index: 2; }
.stats-grid h3 { font-size: 42px; font-weight: 800; color: var(--primary); }
.stats-grid p { color: #CBCBCB; margin-top: 8px; font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px; }

/* ===================== Why Choose Us ===================== */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.why-card { text-align: center; padding: 34px 26px; border-radius: var(--radius); background: var(--light-bg); transition: all 0.3s ease; }
.why-card:hover { background: #fff; box-shadow: var(--shadow-lg); transform: translateY(-6px); }
.why-card .num { font-size: 42px; font-weight: 800; color: var(--primary-dark); margin-bottom: 16px; }

/* ===================== Alumni ===================== */
.alumni-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.alumni-card { text-align: center; padding: 20px; border-radius: var(--radius); transition: all 0.3s ease; }
.alumni-card:hover { background: var(--light-bg); }
.alumni-card img { width: 130px; height: 130px; border-radius: 50%; object-fit: cover; margin: 0 auto 16px; box-shadow: var(--shadow); border: 4px solid #fff; }
.alumni-card h4 { font-size: 17px; font-weight: 700; color: var(--dark); }
.alumni-card .degree { color: var(--primary-dark); font-size: 13px; margin-bottom: 10px; font-weight: 600; }
.alumni-card p.quote { color: var(--text-gray); font-size: 14px; font-style: italic; }

/* ===================== Rankings ===================== */
.rankings-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; text-align: center; }
.rank-card { padding: 28px; border: 1px solid var(--gray-bg); border-radius: var(--radius); transition: all 0.3s ease; }
.rank-card:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-4px); }
.rank-card .rank { font-size: 34px; font-weight: 800; color: var(--dark); }
.rank-card p { color: var(--text-gray); font-size: 14px; margin-top: 10px; }

/* ===================== News ===================== */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.news-card { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: all 0.35s ease; }
.news-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.news-card img { height: 180px; object-fit: cover; width: 100%; background: var(--gray-bg); transition: transform 0.4s ease; }
.news-card:hover img { transform: scale(1.05); }
.news-body { padding: 22px; }
.news-meta { font-size: 13px; color: var(--text-gray); margin-bottom: 8px; }
.news-body h4 { font-size: 16px; font-weight: 700; color: var(--dark); }

/* ===================== Newsletter ===================== */
.newsletter { background: linear-gradient(120deg, var(--primary) 0%, #56687a 100%); color: #fff; text-align: center; }
.newsletter h2 { font-size: 32px; font-weight: 800; }
.newsletter > .container > p { opacity: 0.92; margin-top: 10px; }
.newsletter form { display: flex; justify-content: center; gap: 10px; margin-top: 28px; }
.newsletter input[type=email] { padding: 13px 20px; border-radius: 30px; border: none; width: 320px; font-size: 14px; }
.newsletter button { border-radius: 30px; padding: 13px 28px; background: var(--dark-blue); color: #fff; border: none; font-weight: 700; cursor: pointer; transition: all 0.25s; }
.newsletter button:hover { background: #222; transform: translateY(-2px); }

/* ===================== Footer ===================== */
.site-footer { background: var(--dark-blue); color: #CBCBCB; padding: 65px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 40px; margin-bottom: 45px; }
.footer-grid h4 { color: #fff; margin-bottom: 20px; font-size: 15px; }
.footer-grid li { margin-bottom: 11px; font-size: 14px; }
.footer-grid a:hover { color: var(--primary); }
.footer-bottom { text-align: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 22px; font-size: 13px; }

/* ===================== Forms (login/register/contact) ===================== */
.form-wrapper {
  max-width: 460px;
  margin: 70px auto;
  background: #fff;
  padding: 42px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.form-wrapper h2 { margin-bottom: 26px; text-align: center; color: var(--dark); font-weight: 800; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 7px; font-weight: 600; font-size: 14px; color: var(--dark); }
.form-group input, .form-group textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--gray-bg); border-radius: 8px; font-size: 14px; transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-wrapper .btn { width: 100%; text-align: center; }
.form-footer { text-align: center; margin-top: 20px; font-size: 14px; }
.alert { padding: 13px 16px; border-radius: 8px; margin-bottom: 20px; font-size: 14px; }
.alert-success { background: #e3f4e6; color: #2e6b3e; }
.alert-error { background: #f7e3e3; color: #a13a3a; }

/* ===================== Course Detail ===================== */
.course-detail-hero { background: var(--dark-blue); color: #fff; padding: 65px 0; }
.course-detail-body { display: grid; grid-template-columns: 2fr 1fr; gap: 45px; padding: 65px 0; }
.course-sidebar { background: var(--light-bg); padding: 26px; border-radius: var(--radius); height: fit-content; box-shadow: var(--shadow); }
.course-sidebar img { border-radius: var(--radius); margin-bottom: 20px; }
.course-sidebar .price { font-size: 30px; color: var(--primary-dark); font-weight: 800; margin-bottom: 20px; }
.course-info-list li { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--gray-bg); font-size: 14px; }

/* ===================== Responsive ===================== */
@media (max-width: 900px) {
  .nav-menu { display: none; }
  .topbar-links { display: none; }
  .hero-slider { height: 420px; }
  .slide h1 { font-size: 36px; }
  .events-grid, .courses-grid, .why-grid, .alumni-grid, .rankings-grid, .news-grid, .campus-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .president, .president.reverse { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .course-detail-body { grid-template-columns: 1fr; }
  .newsletter form { flex-direction: column; align-items: center; }
  .newsletter input[type=email] { width: 100%; max-width: 320px; }
  .brand-strip-inner { flex-direction: column; text-align: center; }
  .brand-badges { margin-left: 0; }
}
