:root {
  --primary: #0f172a;
  /* Deep Slate/Navy */
  --primary-light: #1e293b;
  --secondary: #f27200;
  /* Brand Orange */
  --secondary-hover: #d96600;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-dark: #020617;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #f8fafc;
  --border: #e2e8f0;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

  --container-width: 1280px;
  --section-padding: 6rem 2rem;
}

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

html {
  font-family: 'Inter', sans-serif;
  scroll-behavior: smooth;
  color: var(--text-main);
  background: var(--bg);
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

p {
  text-align: left;
  hyphens: none;
  word-break: normal;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
}

.section {
  padding: var(--section-padding);
}

.section-alt {
  background-color: var(--bg-alt);
}

.section-dark {
  background-color: var(--primary);
  color: var(--text-light);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin: 0 auto 3rem auto;
  color: var(--primary);
  position: relative;
  display: block;
  width: -moz-fit-content;
  width: fit-content;
  max-width: 100%;
}

@media (min-width: 923px) and (max-width: 1141px) {
  .insta-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

.section-dark .section-title {
  color: var(--text-light);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--secondary);
  border-radius: 2px;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Outfit', sans-serif;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: var(--secondary);
  color: var(--primary);
}

.btn-primary:hover {
  background: var(--secondary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--secondary);
  color: var(--secondary);
}

.btn-outline:hover {
  background: var(--secondary);
  color: var(--primary);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 2rem;
  z-index: 1000;
  transition: var(--transition);
  background: transparent;
  backdrop-filter: blur(0);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.75rem 2rem;
}

.navbar.nav-up {
  transform: translateY(-100%);
}

.nav-container {
  max-width: var(--container-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Institution Code Badge */
.inst-code-badge {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 1);
  /* Very subtle gold tint */
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  overflow: hidden;
  height: 38px;
}

.code-label {
  padding: 0 0.8rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.code-val {
  background: var(--secondary);
  color: var(--primary);
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  font-weight: 800;
  font-size: 0.9rem;
}

/* Footer specific badge adjustment */
footer .inst-code-badge {
  margin-top: 1.5rem;
  width: fit-content;
}

footer .inst-code-badge .code-label {
  display: block !important;
}

.logo span {
  color: var(--secondary);
}

.logo img {
  height: 48px;
  /* Adjusted size for the logo */
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  color: white;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  text-decoration: none;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Premium Admission Nav Button */
.nav-links a.btn-nav-admission {
  background: var(--secondary);
  color: white;
  /* or var(--primary) depending on contrast. Let's use var(--primary) for dark text on orange */
  color: var(--primary);
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  margin-left: 0.5rem;
}

.nav-links a.btn-nav-admission::after {
  display: none;
  /* No underline effect for the button */
}

.nav-links a.btn-nav-admission:hover {
  background: white;
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

/* iPad/Large Tablet Optimization - Precision Fix for 993px-1130px */
@media (min-width: 993px) and (max-width: 1130px) {
  .nav-links {
    gap: 0.8rem;
  }

  .logo-wrapper {
    gap: 0.5rem;
  }

  .nav-links a {
    font-size: 0.8rem;
  }

  .logo img {
    height: 40px;
  }

  .inst-code-badge {
    height: 30px;
  }

  .code-label {
    display: none;
    /* Hide label to save significant space in this range */
  }

  .code-val {
    padding: 0 0.6rem;
    font-size: 0.75rem;
  }

  .btn-nav-admission {
    padding: 0.4rem 0.8rem !important;
  }
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 2rem;
  overflow: hidden;
}

/* Hero Slider Styles */
.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background: var(--primary);
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  /* Dissolve style */
}

.slide.active {
  opacity: 0.6;
  /* Matches the original 0.6 opacity of the hero-bg img */
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.4));
  z-index: -1;
}

@media (max-width: 768px) {
  .hero-overlay {
    background: linear-gradient(to right, rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.3));
  }
}

.hero-content {
  max-width: 800px;
  text-align: left;
  color: white;
  z-index: 1;
  margin-right: auto;
  margin-left: 10%;
}

.hero-subtitle {
  color: var(--secondary);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: block;
  animation: fadeUp 1s ease-out;
}

.hero-title {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  animation: fadeUp 1s ease-out 0.2s both;
}

.hero-desc {
  font-size: 1.2rem;
  color: #e2e8f0;
  margin-bottom: 2.5rem;
  max-width: 600px;
  line-height: 1.6;
  animation: fadeUp 1s ease-out 0.4s both;
  text-align: left;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  animation: fadeUp 1s ease-out 0.6s both;
}

.about-accreditation {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
  margin-bottom: 2rem;
  align-items: center;
  animation: fadeUp 1s ease-out 0.8s both;
}

.accred-item {
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  width: auto;
  height: auto;
}

.accred-item img {
  height: 70px;
  /* Increased for better presence */
  width: auto;
  object-fit: contain;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.accred-item:hover img {
  transform: translateY(-5px) scale(1.08);
}

@media (max-width: 992px) {
  .about-accreditation {
    justify-content: center;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
  }

  .accred-item img {
    height: 52px;
  }
}

.accred-item:hover img {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .hero-accreditation {
    justify-content: center;
    margin-top: 2.5rem;
    gap: 1.5rem;
  }

  .accred-item {
    padding: 0;
  }

  .accred-item img {
    height: 95px;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Admissions Info Section (Step 1716 Reference) */
.admissions-banner-modern {
  background: #0f172a;
  padding: 8rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.admissions-banner-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(207, 103, 52, 0.05), transparent 70%);
  pointer-events: none;
}

.admissions-content {
  max-width: 1000px;
  margin: 0 auto;
}

.orange-text {
  color: #cf6734 !important;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: block;
}

.white-text {
  color: white !important;
  font-size: clamp(2.5rem, 5vw, 4rem) !important;
  font-weight: 900;
  margin-bottom: 2rem;
  line-height: 1.1;
}

.admissions-intro {
  color: #94a3b8;
  font-size: 1.15rem;
  line-height: 1.8;
  margin-bottom: 4rem;
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
}

.eligibility-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 5rem;
  text-align: left;
}

.eligibility-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2.5rem;
  border-radius: 16px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.eligibility-card:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-10px);
  border-color: rgba(207, 103, 52, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.e-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  display: block;
}

.eligibility-card h4 {
  color: white;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.eligibility-card p {
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.6;
}

.pill-btn {
  border-radius: 50px !important;
  padding: 1.2rem 3.5rem !important;
  font-size: 1.1rem !important;
  background: #cf6734 !important;
  border: none !important;
  font-weight: 700 !important;
  box-shadow: 0 10px 30px rgba(207, 103, 52, 0.4) !important;
  transition: all 0.3s ease !important;
}

.pill-btn:hover {
  background: #b55629 !important;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 40px rgba(207, 103, 52, 0.5) !important;
}

.pill-btn i {
  margin-left: 10px;
  transition: transform 0.3s ease;
}

.pill-btn:hover i {
  transform: translateX(5px);
}

@media (max-width: 991px) {
  .eligibility-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto 4rem;
  }

  .admissions-banner-modern {
    padding: 6rem 0;
  }
}

/* About Section */
/* Modern About Section Redesign */
.modern-about-wrapper {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 5rem;
  align-items: center;
}

/* 3-Image Collage Area */
.about-collage {
  position: relative;
  width: 100%;
  height: 580px;
}

.about-collage .img-anim {
  position: absolute;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow-xl);
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 2;
}

.about-collage:hover .img-anim {
  transform: scale(1.02);
}

.img-large {
  right: 0;
  top: 0;
  width: 52%;
  height: 100%;
  z-index: 3 !important;
}

.img-medium {
  left: 0;
  top: 5%;
  width: 44%;
  height: 50%;
}

.img-small {
  left: 8%;
  bottom: 0%;
  width: 32%;
  height: 38%;
  z-index: 4 !important;
  border: 4px solid white;
}


/* Premium Text Link */
.text-link-premium {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary);
  text-decoration: none;
  padding: 0.5rem 0;
  position: relative;
  transition: var(--transition);
}

.text-link-premium i {
  font-size: 0.9rem;
  transition: transform 0.3s ease;
}

.text-link-premium::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 3px;
  background: var(--secondary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.text-link-premium:hover {
  color: var(--secondary);
}

.text-link-premium:hover i {
  transform: translateX(5px);
}

.text-link-premium:hover::after {
  width: 100%;
}

/* Modern About Text */
.about-modern-text .sub-title {
  display: inline-block;
  color: #3b82f6;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  position: relative;
  padding-left: 45px;
}

.about-modern-text .sub-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 35px;
  height: 2px;
  background: #3b82f6;
}

.about-modern-text .section-title {
  text-align: left;
  font-size: 2.8rem;
  line-height: 1.15;
  margin-bottom: 2rem;
  font-weight: 800;
  color: #111827;
}

.about-modern-text p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #4b5563;
  margin-bottom: 1.5rem;
  text-align: left;
}

.about-features {
  list-style: none;
  padding: 0;
  margin: 2.5rem 0;
}

.about-features li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  font-weight: 600;
  color: #1f2937;
}

.feature-icon {
  width: 24px;
  height: 24px;
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Iconic Stats Banner */
.stats-banner-modern {
  background: #f8fafc;
  padding: 4rem 0;
  margin-top: 5rem;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.stats-modern-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-modern-box {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 0 2rem;
  border-right: 1px solid #e2e8f0;
}

.stat-modern-box:last-child {
  border-right: none;
}

.stat-icon-wrap {
  width: 50px;
  height: 50px;
  color: #3b82f6;
  flex-shrink: 0;
}

.stat-info h3 {
  font-size: 2rem;
  font-weight: 800;
  color: #111827;
  font-family: 'Outfit';
  margin-bottom: 0.25rem;
  line-height: 1;
}

.stat-info p {
  font-size: 0.85rem;
  font-weight: 500;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .modern-about-wrapper {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .about-collage {
    height: 500px;
    max-width: 600px;
    margin: 0 auto;
  }

  .about-modern-text {
    text-align: center;
  }

  .about-modern-text .sub-title {
    padding-left: 0;
  }

  .about-modern-text .sub-title::before {
    display: none;
  }

  .about-modern-text .section-title {
    text-align: center;
  }

  .about-features {
    max-width: fit-content;
    margin-left: auto;
    margin-right: auto;
  }

  .about-features li {
    justify-content: flex-start;
  }

  .stats-modern-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem 0;
  }

  .stat-modern-box:nth-child(2) {
    border-right: none;
  }
}

@media (max-width: 640px) {
  .stats-modern-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem 0;
  }

  .stat-modern-box {
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 2rem;
  }

  .stat-modern-box:last-child {
    border-bottom: none;
  }
}

/* Accreditation Logos - Trust Bar */
.accreditation-section {
  padding: 3rem 2rem;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.trust-label {
  font-family: 'Outfit';
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 2rem;
  opacity: 0.8;
}

.logos-marquee {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5rem;
  flex-wrap: wrap;
}

.logo-item {
  opacity: 0.7;
  transition: var(--transition);
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-item img {
  height: 100%;
  width: auto;
  object-fit: contain;
  transition: var(--transition);
}

.logo-item:hover {
  opacity: 1;
  transform: translateY(-3px);
}

.logo-item:hover img {
  transform: scale(1.05);
}

/* Identity & Purpose - Premium Minimalist Redesign */
#vision-mission {
  background: #fbfbfc;
  /* Clean, professional off-white */
}

.identity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2.5rem;
}

.vm-card {
  background: white;
  padding: 3.5rem 2.8rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  /* Whisper-light shadow */
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.04);
  /* Ultra-thin border */
  display: flex;
  flex-direction: column;
  min-height: 440px;
}

.vm-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  /* Thinner accent line */
  background: linear-gradient(90deg, var(--secondary), #f97316);
  /* Sophisticated gradient */
  opacity: 0;
  /* Hidden by default, appears on hover */
  transition: opacity 0.4s ease;
}

.vm-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border-color: rgba(207, 103, 52, 0.2);
}

.vm-card:hover::before {
  opacity: 1;
}

.vm-label {
  display: block;
  font-family: 'Outfit';
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  /* More tracked out for elegance */
  color: #94a3b8;
  /* Sophisticated muted slate */
  margin-bottom: 2rem;
  transition: color 0.3s ease;
}

.vm-card:hover .vm-label {
  color: var(--secondary);
}

.vm-content {
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.vm-intro {
  font-size: 1.25rem;
  /* Slightly larger for presence */
  line-height: 1.4;
  font-weight: 700;
  margin-bottom: 2.5rem;
  color: #1e293b;
  font-family: 'Outfit';
}

.vm-points {
  list-style: none;
  padding: 0;
  margin: 0;
  flex-grow: 1;
}

.vm-points li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: 1.2rem;
  font-size: 1rem;
  font-weight: 500;
  color: #475569;
  line-height: 1.5;
}

.vm-points li:last-child {
  margin-bottom: 0;
}

/* Elegant Thin-Stroke Checkmarks */
.vm-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.3rem;
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23CF6734' stroke-width='3'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M5 13l4 4L19 7' /%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
  opacity: 0.8;
  transition: transform 0.3s ease;
}

.vm-card:hover .vm-points li::before {
  transform: scale(1.1);
  opacity: 1;
}

/* Leadership */
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}

.leader-card {
  text-align: center;
  background: white;
  padding: 3rem 2rem;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.leader-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--secondary);
}

.leader-image {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  margin-bottom: 1.5rem;
  overflow: hidden;
  border: 3px solid var(--bg-alt);
  box-shadow: var(--shadow-sm);
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
}

.leader-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.leader-badge {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  background: var(--bg-alt);
  color: var(--secondary);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.leader-card h3 {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.leader-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.4;
}

.card-icon {
  width: 60px;
  height: 60px;
  background: var(--bg-alt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.card h3 {
  font-size: 1.75rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.card p,
.card li {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 1.05rem;
}

.card ul {
  margin-top: 1rem;
  list-style-type: none;
}

.card ul li {
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.5rem;
}

.card ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-weight: bold;
}

/* --- Recruiters --- */
.logos-grid {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
  margin-top: 3rem;
  align-items: center;
}

.recruiter-logo {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  padding: 0.5rem;
}

.recruiter-logo img {
  max-height: 100%;
  max-width: 160px;
  width: auto;
  height: auto;
  filter: none;
  opacity: 0.8;
  transition: var(--transition);
  object-fit: contain;
}

.recruiter-logo.logo-lg img {
  max-width: 220px;
  transform: scale(2.2);
}

.recruiter-logo.logo-lg:hover img {
  transform: scale(1.15);
}

.recruiter-logo:hover img {
  opacity: 1;
  transform: scale(1.05);
  filter: grayscale(0%);
}

/* --- Alumni Institutional Showcase (Premium Background Slider) --- */
.alumni-showcase-section {
  position: relative;
  padding: 8rem 2rem;
  background: #0f172a;
  /* Fallback */
  overflow: hidden;
  color: white;
}

/* Background Slider Logic */
.alumni-bg-slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.alumni-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: alumniFadeInOut 10s infinite;
}

.alumni-slide:nth-child(1) {
  animation-delay: 0s;
}

.alumni-slide:nth-child(2) {
  animation-delay: 5s;
}

@keyframes alumniFadeInOut {

  0%,
  10% {
    opacity: 0;
    transform: scale(1.05);
  }

  20%,
  50% {
    opacity: 1;
    transform: scale(1);
  }

  60%,
  100% {
    opacity: 0;
    transform: scale(1.05);
  }
}

.alumni-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.4));
  z-index: 1;
}

.alumni-showcase {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 10;
}

.alumni-brief {
  width: 100%;
}

.brief-text {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.8;
  margin-bottom: 0;
  text-align: center;
  font-weight: 300;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.brief-stats {
  display: flex;
  justify-content: center;
  gap: 5rem;
}

.brief-stat {
  display: flex;
  flex-direction: column;
}

.stat-val {
  font-family: 'Outfit';
  font-size: 3.8rem;
  font-weight: 800;
  color: white;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-unit {
  font-size: 1rem;
  font-weight: 700;
  color: #CF6734;
  /* Brand accent color */
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Mobile Responsiveness for Alumni Showcase */
@media (max-width: 768px) {
  .alumni-showcase-section {
    padding: 6rem 1.5rem;
  }

  .brief-text {
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 3rem;
  }

  .brief-stats {
    flex-direction: column;
    gap: 3rem;
  }

  .stat-val {
    font-size: 3.2rem;
  }
}


/* --- Strategic Placement Partners --- */
.recruiters-bar {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  text-align: center;
  overflow: hidden;
}

.marquee-container {
  width: 100%;
  overflow: hidden;
  padding: 2rem 0;
  position: relative;
}

.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 6rem;
  animation: marquee-scroll 40s linear infinite;
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-50% - 3rem));
  }

  /* Shift by exactly half (original set + half gap) */
}

.marquee-container:hover .marquee-track {
  animation-play-state: paused;
}

.bar-title {
  font-family: 'Outfit';
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  /* Reduced from 2.5rem */
  opacity: 0.8;
}

.recruiter-logo {
  flex-shrink: 0;
}

.recruiter-logo img {
  opacity: 1;
  max-width: 130px;
  max-height: 50px;
  width: auto;
  filter: none;
  object-fit: contain;
}

.text-logo {
  font-family: 'Outfit';
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  opacity: 0.7;
  white-space: nowrap;
  letter-spacing: -0.02em;
}

.recruiter-logo.logo-techm svg {
  height: 45px;
  width: auto;
  display: block;
}

.recruiter-logo.logo-sutherland img {
  max-width: 170px;
  max-height: 65px;
}

.recruiter-logo.logo-new img {
  max-width: 170px;
  max-height: 85px;
}

.recruiter-logo:hover {
  transform: scale(1.1);
}

.recruiter-logo.logo-lg:hover {
  transform: scale(2);
}

/* responsive */
@media (max-width: 992px) {

  .about-grid,
  .vm-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-title {
    font-size: 3rem;
  }

  .nav-links {
    display: none;
    /* Add JS later to toggle */
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero-content {
    margin: 0 auto !important;
    text-align: center;
    max-width: 100%;
  }

  .hero-btns {
    justify-content: center;
  }

  .alumni-showcase {
    margin-bottom: 4rem;
  }

  /* Mobile About Section Optimization */
  .about-collage .img-medium,
  .about-collage .img-large {
    display: none;
  }

  .about-collage .img-small {
    position: relative;
    width: 100%;
    height: 400px;
    left: 0;
    bottom: 0;
    border: none;
    box-shadow: var(--shadow-lg);
    object-fit: cover;
    z-index: 1 !important;
  }

  .about-collage {
    height: auto;
    margin-bottom: 2.5rem;
  }

  .inst-code-badge {
    height: 32px;
    gap: 0;
  }

  .code-label {
    display: none;
    /* Hide "Institution Code" label on mobile to save space */
  }

  .code-val {
    padding: 0 0.8rem;
    font-size: 0.8rem;
  }
}

/* Scholarship Button Desktop Optimization */
.scholarships-cta-banner .btn.pill-btn {
  padding: 0.8rem 2.2rem !important;
  font-size: 1rem !important;
  width: auto;
}

/* Mobile Admission Enhancements */
.mobile-admission-extra {
  display: none;
}

@media (max-width: 768px) {
  .mobile-admission-extra {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin: 1.5rem 0 2rem;
  }

  .mobile-admission-img {
    width: 100%;
    max-width: 350px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: fadeIn 1s ease-out;
  }

  .mobile-cta-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .mobile-only-btn {
    width: auto;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    box-shadow: 0 10px 20px rgba(var(--primary-rgb), 0.3);
  }

  /* Hide the original bottom CTA on mobile to avoid redundancy */
  .admissions-banner-modern .admissions-cta {
    display: none;
  }

  /* Scholarship Button Mobile Optimization */
  .scholarships-cta-banner .btn.pill-btn {
    padding: 0.6rem 1.8rem !important;
    font-size: 0.9rem !important;
    width: auto;
    margin: 0 auto;
  }
}

/* Custom fade animation if not defined */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Specific Mobile Fix for 338px-480px Overlap */
@media (max-width: 480px) {

  .navbar,
  .navbar.scrolled {
    padding: 0.8rem 1.25rem;
  }

  .logo img {
    height: 48px;
  }

  .inst-code-badge {
    height: 28px;
  }

  .code-val {
    padding: 0 0.5rem;
    font-size: 0.75rem;
  }

  .hero {
    padding-top: 80px !important;
  }

  .hero-title {
    font-size: 2.1rem;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
  }

  .hero-content {
    margin-left: 0;
    margin-top: 0;
  }
}

@media (max-width: 480px) and (max-height: 700px) {
  .hero {
    padding-top: 60px !important;
    padding-bottom: 2rem;
  }

  .logo img {
    height: 42px;
  }

  .hero-subtitle {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
  }

  .hero-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }

  .hero-desc {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.4;
  }

  .hero-accreditation {
    margin-bottom: 1.5rem;
    gap: 1rem;
  }

  .accred-item img {
    height: 80px !important;
  }

  .btn {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }

  .hero-btns {
    gap: 0.75rem;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 4rem 1.5rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .logos-marquee {
    gap: 2rem;
  }

  .about-text {
    text-align: center;
  }

  .about-text h2.section-title {
    margin: 0 auto 2rem auto !important;
    text-align: center !important;
  }

  .card {
    padding: 2rem;
  }

  .courses-grid {
    grid-template-columns: 1fr;
  }

  /* Improved Marquee Responsiveness */
  .marquee-track {
    gap: 3rem;
    /* Tighter gap on tablet */
  }

  .recruiter-logo {
    height: 45px;
  }
}

@media (max-width: 480px) {
  .marquee-track {
    gap: 2rem;
    /* Even tighter gap on mobile */
    animation-duration: 20s;
    /* Faster scroll for smaller distance */
  }

  .recruiter-logo {
    height: 35px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-btns {
    flex-direction: column;
    width: 100%;
  }

  .hero-btns .btn {
    width: 100%;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .logos-marquee {
    flex-direction: column;
    gap: 1.5rem;
  }

  .stat-item {
    padding: 1rem;
  }
}

/* --- Activities Square Grid --- */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 500px);
  max-width: 1000px;
  margin: 4rem auto 0;
  gap: 0;
  overflow: hidden;
}

.activity-column {
  display: contents;
  /* Ensures tiles are direct children of the 2x2 grid */
}

.text-tile {
  background: white;
  padding: 3rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
  position: relative;
}

.image-tile {
  height: 100%;
  width: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
}

/* Colors matching site theme */
.nss-text {
  background: #1e293b;
  color: white;
}

.women-text {
  background: #CF6734;
  color: white;
}

.text-tile h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.text-tile .line-sep {
  width: 50px;
  height: 3px;
  background: white;
  margin: 0 auto 2rem;
}

.text-tile p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 0;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  text-align: justify;
}

.read-more {
  text-transform: uppercase;
  font-size: 0.9rem;
  text-decoration: none;
  color: white;
  border-bottom: 2px solid white;
  padding-bottom: 4px;
  letter-spacing: 2px;
  font-weight: 700;
  transition: all 0.3s ease;
}

.read-more:hover {
  letter-spacing: 4px;
  opacity: 1;
}

/* Triangle Pointers */
.pointer-down::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-top: 20px solid currentColor;
  z-index: 2;
}

.pointer-up::after {
  content: '';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-bottom: 20px solid currentColor;
  z-index: 2;
}

.nss-text.pointer-down::after {
  border-top-color: #1e293b;
}

.women-text.pointer-up::after {
  border-bottom-color: #CF6734;
}

@media (max-width: 768px) {
  .activities-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .text-tile,
  .image-tile {
    height: 450px;
  }

  .text-tile {
    padding: 5rem 2rem;
  }

  .text-tile h3 {
    font-size: 1.5rem;
  }
}

/* --- Campus Life Fest Blocks --- */
.fest-block {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 6rem;
}

.fest-block.reverse {
  grid-template-columns: 1.2fr 1fr;
}

.fest-block.reverse .fest-content {
  order: 2;
}

.fest-block.reverse .fest-media {
  order: 1;
}

.fest-category {
  display: inline-block;
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.fest-media {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  position: relative;
  height: 400px;
  background: #f8fafc;
}

.fest-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Thandava Carousel Styles */
.carousel-container {
  position: relative;
}

.carousel-track {
  height: 100%;
  width: 100%;
  position: relative;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  z-index: 1;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 2;
}

iframe.carousel-slide,
video.carousel-slide {
  border: none;
}

.carousel-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 1rem;
  transform: translateY(-50%);
  z-index: 10;
}

.prev-btn,
.next-btn {
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(5px);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.prev-btn:hover,
.next-btn:hover {
  background: white;
  color: var(--primary);
}

.carousel-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.8rem;
  z-index: 10;
}

.carousel-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dots .dot.active {
  background: white;
  transform: scale(1.3);
}

@media (max-width: 991px) {
  .fest-block {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
  }

  .fest-block.reverse {
    grid-template-columns: 1fr;
  }

  .fest-block.reverse .fest-content,
  .fest-block.reverse .fest-media {
    order: unset;
  }

  .fest-media {
    height: 350px;
  }
}

.fest-content h3 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.fest-content p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
}

#vision-mission,
#leadership,
#academics,
#facilities,
#campus,
#instagram,
#placement {
  padding-top: 2rem !important;
  padding-bottom: 2rem !important;
}

/* Consolidated Component Styles */
/* --- Instagram Grid --- */
/* --- Instagram Native Profile Grid --- */
.insta-profile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  max-width: 935px;
  margin: 2rem auto 3rem auto;
}

.insta-grid-item {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-alt);
  cursor: pointer;
}

.insta-click-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  background: transparent;
}

.insta-grid-item iframe {
  position: absolute !important;
  left: 50% !important;
  margin: 0 !important;
  border: 0 !important;
  transform-origin: top center !important;
  box-shadow: none !important;
  opacity: 1 !important;
  top: -20px !important;
  transform: translateX(-50%) scale(0.65) !important;
  width: 500px !important;
  height: 800px !important;
  pointer-events: none;
}

@media (min-width: 992px) {
  .insta-grid-item iframe {
    top: -54px !important;
    width: 326px !important;
    height: 600px !important;
    transform: translateX(-50%) scale(0.96) !important;
  }
}

@media (max-width: 991px) and (min-width: 769px) {
  .insta-profile-grid {
    max-width: 600px;
    gap: 3px;
    padding: 0 1rem;
  }

  .insta-grid-item iframe {
    top: -42px !important;
    width: 326px !important;
    height: 600px !important;
    transform: translateX(-50%) scale(0.58) !important;
  }
}

@media (max-width: 768px) {
  .insta-profile-grid {
    gap: 2px;
    padding: 0;
    max-width: 100%;
  }

  .insta-grid-item iframe {
    top: -20px !important;
    width: 326px !important;
    height: 700px !important;
    transform: translateX(-50%) scale(0.37) !important;
  }
}

/* Specific Fix for 483px-722px: Maintain 3x3 and hide basics */
@media (min-width: 483px) and (max-width: 722px) {
  .insta-profile-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    padding: 0 0.5rem;
  }

  .insta-grid-item iframe {
    top: -38px !important;
    width: 326px !important;
    height: 800px !important;
    transform: translateX(-50%) scale(0.55) !important;
  }
}

/* Specific Fix for 723px-768px: More aggressive cropping to hide "View more" */
@media (min-width: 723px) and (max-width: 768px) {
  .insta-profile-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 0 0.8rem;
  }

  .insta-grid-item iframe {
    top: -50px !important;
    width: 326px !important;
    height: 800px !important;
    transform: translateX(-50%) scale(0.78) !important;
  }
}
/* --- Clean Instagram Popup Modal --- */
.insta-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  justify-content: center; /* flex activated via main.js */
  align-items: center;
}

.insta-modal-content {
  position: relative;
  width: 90%;
  max-width: 450px;
  background: #fff;
  border-radius: 12px;
  padding: 0;
  box-shadow: 0 15px 40px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
}

#instaModalBody {
  width: 100%;
  height: 480px; /* Reduced height to strictly hide the "View more" and engagement links */
  overflow: hidden; /* Clips the header and footer natively and stops scrolling */
  border-radius: 12px;
  background: #000;
}

#instaModalBody iframe {
  width: 100% !important;
  height: 800px !important; /* Fixed tall height ensures footer stays masked below */
  border: none !important;
  display: block;
  margin-top: -55px !important; /* Precisely hides the profile header */
}

.insta-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: #fff;
  font-size: 32px;
  line-height: 32px;
  cursor: pointer;
  z-index: 10001;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.insta-modal-close:hover {
  color: var(--primary-color);
}

/* --- Responsive Instagram Interaction --- */
@media (min-width: 769px) {
  /* Desktop: Allow playing natively without the popup */
  .insta-click-overlay {
    display: none !important;
  }
  .insta-grid-item iframe {
    pointer-events: auto !important;
  }
}

@media (max-width: 768px) {
  /* Mobile: Grid interaction opens the modal */
  .insta-click-overlay {
    display: block !important;
    pointer-events: auto !important;
  }
}

/* Obsolete insta-post styles removed */

/* Logic for 1277px-1331px: 4 images in first row, 2 in second (centered) */
@media (min-width: 1277px) and (max-width: 1331px) {
  .insta-post {
    flex: 0 0 calc(25% - 1.5rem);
  }
}

@media (max-width: 1100px) {
  .insta-post {
    flex: 0 0 calc(33.333% - 1.5rem);
  }
}

@media (max-width: 768px) {
  .insta-post {
    flex: 0 0 calc(50% - 1.5rem);
  }
}

@media (max-width: 480px) {
  .insta-post {
    flex: 0 0 100%;
  }
}

.insta-post::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  opacity: 0.1;
  z-index: 1;
}

.insta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 1.5rem;
  opacity: 0;
  transition: var(--transition);
}

.insta-post:hover .insta-overlay {
  opacity: 1;
}

.insta-post img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.insta-post:hover img {
  transform: scale(1.1);
}

.facilities-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.facility-card {
  flex: 0 1 350px;
  /* Fixed base size for desktop centering */
  position: relative;
  height: 350px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mobile Range: 411px to 667px - Fill space logically */
@media (max-width: 768px) {
  .facility-card {
    flex: 1 1 100%;
    /* Stretch to fill width */
    max-width: 500px;
    /* Prevent it from becoming too wide on large mobile */
  }
}

@media (max-width: 480px) {
  .facility-card {
    flex: 1 1 100%;
    height: 300px;
    /* Slightly shorter cards for small mobile */
  }
}

/* Targeted Fix: 765px to 794px - Show 2 per row to avoid stretching */
@media (min-width: 765px) and (max-width: 794px) {
  .facility-card {
    flex: 0 1 calc(50% - 1rem);
    max-width: 380px;
  }
}

.facility-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.facility-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.facility-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.facility-card:hover .facility-image img {
  transform: scale(1.1);
}

.facility-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.8) 30%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  color: white;
}

.facility-overlay h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: white;
}

.facility-overlay p {
  font-size: 0.95rem;
  color: #e2e8f0;
  line-height: 1.5;
}

/* --- Engineering Programs Grid --- */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  width: 100%;
}

.programs-grid .course-card {
  flex: auto;
  width: 100%;
}

@media (max-width: 1100px) {
  .programs-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .programs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .programs-grid {
    grid-template-columns: 1fr;
  }
}

.course-card {
  flex: 0 0 300px;
  height: 380px;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  background: transparent;
  display: block;
  text-decoration: none;
  color: white;
  scroll-snap-align: start;
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.course-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.course-card-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.85) 25%, rgba(0, 0, 0, 0.5) 55%, transparent 100%);
  z-index: 1;
}

.course-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  z-index: 2;
}

.course-card h4 {
  font-size: 1.15rem;
  color: white;
  font-family: 'Outfit', sans-serif;
  margin-bottom: 0.4rem;
  font-weight: 700;
}

.course-card p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
  margin: 0 0 1rem 0;
  text-align: left;
}

.course-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
}

.course-card:hover .course-card-link {
  gap: 0.8rem;
  color: white;
}

/* --- Facilities Marquee (Continuous Motion) --- */
.facilities-marquee-container {
  width: 100%;
  overflow: hidden;
  padding: 1.5rem 0;
  position: relative;
}

.facilities-marquee-content {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: facilities-scroll 35s linear infinite;
}

.facilities-marquee-content:hover {
  animation-play-state: paused;
}

@keyframes facilities-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-50% - 0.75rem));
  }
}

.facility-card {
  flex: 0 0 300px;
  height: 380px;
}

/* --- Programs Dots --- */
.programs-dots {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: var(--accent);
  transform: scale(1.5);
  box-shadow: 0 0 10px var(--accent);
}

.dot:hover {
  background: rgba(255, 255, 255, 0.7);
}

/* Responsive */
@media (max-width: 768px) {
  .course-card {
    flex: 0 0 260px;
    height: 340px;
  }

  .slider-arrow {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  .programs-slider-wrapper {
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .course-card {
    flex: 0 0 240px;
    height: 320px;
  }
}

/* --- Footer --- */
footer {
  background: var(--bg-dark);
  color: var(--text-muted);
  padding: 5rem 2rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 4rem;
  max-width: var(--container-width);
  margin: 0 auto;
  margin-bottom: 3rem;
}

footer .logo {
  justify-content: flex-start;
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

.footer-desc {
  line-height: 1.6;
  max-width: 400px;
}

.footer-title {
  color: white;
  font-family: 'Outfit';
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a:hover {
  color: var(--secondary);
  padding-left: 5px;
}

.social-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.social-links a:hover {
  color: var(--secondary);
  transform: translateY(-3px);
  padding-left: 0 !important;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  max-width: var(--container-width);
  margin: 0 auto;
}

.footer-bottom p {
  text-align: center;
  margin: 0 auto;
}

@media (max-width: 992px) {

  .fest-section,
  .activities-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem 1.5rem;
  }

  .footer-grid>div:nth-child(1),
  .footer-grid>div:nth-child(4) {
    grid-column: 1 / -1;
  }

  /* Reduce margin for logo section on mobile to keep 2-column links closer */
  .footer-grid>div:first-child {
    margin-bottom: 0.5rem;
  }

  .fest-section {
    gap: 2rem;
  }
}

/* --- Admissions Info Section --- */
.admissions-banner-modern {
  background: #0f172a;
  position: relative;
  overflow: hidden;
  padding: 3rem 0;
  /* Reduced from 4rem */
}

.admissions-banner-modern .section-title {
  margin-bottom: 1.5rem !important;
  /* Tighten gap below title */
}

.admissions-banner-modern::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 1000px;
  height: 1000px;
  background: radial-gradient(circle, rgba(207, 103, 52, 0.08) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}

.admissions-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.admissions-intro {
  max-width: 800px;
  margin: 0 auto 2rem;
  /* Tightened margins */
  font-size: 1.05rem;
  line-height: 1.6;
  color: #94a3b8;
  text-align: left;
}

.eligibility-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  /* Reduced gap */
  margin-bottom: 2rem;
}

.eligibility-card {
  background: rgba(255, 255, 255, 0.03);
  padding: 1.5rem 1.25rem;
  /* Tightened internal padding */
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  text-align: center;
  position: relative;
}

.eligibility-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: #cf6734;
  opacity: 0.6;
}

.eligibility-card h4 {
  color: white;
  margin-bottom: 1.25rem;
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  letter-spacing: 0.5px;
}

.eligibility-card p {
  color: #94a3b8;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  text-align: left;
}

.eligibility-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(207, 103, 52, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.eligibility-card:hover h4 {
  color: #cf6734;
}

.admissions-cta {
  margin-top: 2rem;
}

.pill-btn {
  padding: 1.2rem 3rem !important;
  border-radius: 50px !important;
  font-weight: 700 !important;
  font-size: 1.1rem !important;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  background: #cf6734 !important;
  color: white !important;
  box-shadow: 0 10px 30px rgba(207, 103, 52, 0.2);
}

.pill-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 35px rgba(207, 103, 52, 0.3);
  background: #b55629 !important;
}

.orange-text {
  color: #cf6734 !important;
  letter-spacing: 4px;
  font-weight: 800;
  display: block;
  margin-bottom: 1rem;
}

@media (max-width: 992px) {
  .eligibility-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* --- Scholarship CTA Banner (Home Page) --- */
.scholarships-cta-banner {
  background: linear-gradient(135deg, #fff7ed 0%, #fef3c7 100%);
  padding: 2.5rem 0;
  position: relative;
  overflow: hidden;
}

.scholarships-cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(242, 114, 0, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.cta-banner-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  position: relative;
  z-index: 2;
}

.cta-text h2 {
  font-size: 1.6rem;
  margin-bottom: 0.3rem;
  letter-spacing: -0.01em;
  font-weight: 800;
  color: var(--primary);
}

.cta-text p {
  font-size: 0.85rem;
  max-width: 400px;
  color: var(--text-muted);
  line-height: 1.5;
  font-weight: 400;
  text-align: left;
}

/* --- Scholarship Exam Info (Integrated) --- */
.exam-info-inline {
  margin-top: 1.25rem;
  padding: 0.8rem 1.2rem;
  background: rgba(207, 103, 52, 0.05);
  border-left: 3px solid #cf6734;
  border-radius: 4px 12px 12px 4px;
  display: inline-block;
  max-width: 100%;
}

.exam-badge {
  background: #cf6734;
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-right: 0.6rem;
  letter-spacing: 0.05em;
  display: inline-block;
  vertical-align: middle;
}

.exam-info-inline span:not(.exam-badge) {
  font-size: 0.9rem;
  color: #1e293b;
  font-weight: 600;
  vertical-align: middle;
}

.exam-link {
  display: block;
  margin-top: 0.5rem;
  color: #cf6734 !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.exam-link:hover {
  color: #b55629 !important;
  text-decoration: underline;
}

.opacity-80 {
  opacity: 0.8;
}

@media (max-width: 768px) {
  .admissions-banner-modern {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .scholarships-cta-banner {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-top: 3.5rem;
  }

  .cta-banner-content {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .cta-text p {
    text-align: center;
    margin: 0 auto;
  }

  .exam-info-inline {
    margin-top: 1.5rem;
    padding: 1rem;
    text-align: center;
    border-left: none;
    border-top: 3px solid #cf6734;
    border-radius: 12px;
  }

  .exam-badge {
    margin-bottom: 0.5rem;
    display: table;
    margin-left: auto;
    margin-right: auto;
  }
}

/* --- Scholarship Detail Page Styles --- */
.scholarships-banner {
  background: var(--bg-alt);
  padding: 5rem 0;
}

.scholarships-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
  color: var(--text-muted);
}

.scholarship-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 0.8rem 1.8rem;
  border: 1px solid var(--border);
  background: white;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 700;
  color: var(--primary);
  transition: all 0.3s ease;
  font-family: 'Outfit', sans-serif;
}

.tab-btn.active {
  background: var(--secondary);
  color: white;
  border-color: var(--secondary);
  box-shadow: 0 4px 15px rgba(242, 114, 0, 0.2);
}

.scholarship-panel {
  display: none;
  animation: fadeIn 0.5s ease;
}

.scholarship-panel.active {
  display: block;
}

.table-legend {
  text-align: center;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.table-responsive {
  overflow-x: auto;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  background: white;
  margin-bottom: 2rem;
}

.scholarship-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 800px;
}

.scholarship-table th {
  background: var(--primary);
  color: white;
  padding: 1.25rem 1rem;
  font-weight: 700;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.scholarship-table th small {
  display: block;
  opacity: 0.7;
  font-weight: 400;
  margin-top: 4px;
}

.scholarship-table td {
  padding: 1.25rem 1rem;
  border: 1px solid var(--border);
  text-align: center;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
}

.scholarship-table tr:nth-child(even) {
  background: var(--bg-alt);
}

.nil-value {
  color: #94a3b8 !important;
  font-weight: 400 !important;
}

.exam-info {
  text-align: center;
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--secondary);
  margin-top: 2rem;
}

.exam-info p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

/* Other Packages Styling */
.other-packages-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.package-card {
  background: white;
  padding: 2.5rem;
  border-radius: 15px;
  border: 1px solid var(--border);
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease;
}

.package-card:hover {
  transform: translateY(-5px);
  border-color: var(--secondary);
}

.package-card h3 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.package-card .price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.package-card .price span {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
}

.continuation-section {
  background: var(--primary);
  color: white;
  padding: 3rem;
  border-radius: 20px;
}

.continuation-section h3 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.criteria-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.criteria-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: rgba(255, 255, 255, 0.9);
}

.criteria-list li i {
  color: var(--secondary);
  margin-top: 4px;
}

.nb-text {
  font-style: italic;
  font-size: 0.9rem;
  opacity: 0.8;
}

@media (max-width: 768px) {

  .criteria-list,
  .other-packages-grid {
    grid-template-columns: 1fr;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Admission 2026 Navigation Button */
.btn-nav-admission {
  background: #cf6734;
  color: white !important;
  padding: 0.6rem 1.5rem !important;
  border-radius: 4px;
  font-weight: 700 !important;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(207, 103, 52, 0.3);
  margin-left: 1rem;
}

.btn-nav-admission:hover {
  background: #b55629;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(207, 103, 52, 0.4);
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(5px);
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
  animation: modalFadeIn 0.3s ease;
}

/* Modal Content */
.admission-modal-content {
  background: #f1f5f9;
  width: 100%;
  max-width: 1100px;
  max-height: 90vh;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 2rem;
  background: none;
  border: none;
  color: white;
  /* White for visibility on dark header */
  cursor: pointer;
  z-index: 100;
  line-height: 1;
  transition: all 0.3s ease;
}

.modal-close:hover {
  color: var(--secondary);
  /* Accent color on hover */
  transform: scale(1.1);
}

.admission-grid {
  display: block;
  flex: 1;
  overflow-y: auto;
}

/* Registration Panel (Left) */
.registration-panel {
  padding: 0;
  background: #f8fafc;
  max-width: 850px;
  margin: 0 auto;
}

.registration-panel .panel-header {
  background: #0f172a;
  color: white;
  padding: 1.5rem 2.5rem;
  position: sticky;
  top: 0;
  z-index: 10;
  text-align: center;
}

.registration-panel .panel-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.admission-form {
  padding: 2.5rem;
  padding-bottom: 4rem;
  /* Extra space at bottom for better scrolling */
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1e293b;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: all 0.2s;
  background-color: white;
}

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.2em;
  padding-right: 3rem;
  cursor: pointer;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #cf6734;
  background: white;
  box-shadow: 0 0 0 3px rgba(207, 103, 52, 0.1);
}

.form-terms {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 2rem 0;
  font-size: 0.9rem;
  color: #475569;
}

.form-terms input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #cf6734;
}

.form-terms a {
  color: #cf6734;
  text-decoration: none;
  font-weight: 600;
}

.register-submit-btn {
  background: #cf6734;
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 6px;
  font-size: 1.1rem;
  font-weight: 700;
  width: 100%;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.register-submit-btn:hover {
  background: #b55629;
  transform: translateY(-1px);
}

/* Login Panel (Right) */
.login-panel {
  background: white;
  border-left: 1px solid #e2e8f0;
}

.crimson-header {
  background: #cf6734 !important;
}

.login-content {
  padding: 2.5rem;
}

.login-content .form-group {
  margin-bottom: 1.5rem;
}

.login-submit-btn {
  background: #0f172a;
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 700;
  width: 100%;
  margin-top: 1rem;
  cursor: pointer;
  transition: opacity 0.3s, transform 0.2s;
}

.login-submit-btn:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

/* Responsive Modal */
@media (max-width: 991px) {
  .btn-nav-admission {
    margin-left: 0;
    margin-top: 1rem;
    display: inline-block;
  }

  .admission-grid {
    grid-template-columns: 1fr;
  }

  .admission-modal-content {
    max-height: 95vh;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .admission-form {
    padding: 1.5rem;
    padding-bottom: 3rem;
  }
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Video Slide Integration */
.video-slide {
  background: black;
  overflow: hidden;
}

.video-slide iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;
  /* 16:9 ratio */
  min-height: 100vh;
  min-width: 177.77px;
  /* 1.77 * 100vh approx */
  transform: translate(-50%, -50%);
  pointer-events: none;
  /* Keep slider interactive, prevent iframe clicks */
}

/* Adjust for different aspect ratios to ensure cover effect */
@media (min-aspect-ratio: 16/9) {
  .video-slide iframe {
    height: 56.25vw;
  }
}

@media (max-aspect-ratio: 16/9) {
  .video-slide iframe {
    width: 177.77vh;
  }
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: #25d366;
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-float i {
  font-size: 1.5rem;
}

.whatsapp-float span {
  font-size: 0.95rem;
  white-space: nowrap;
}

.whatsapp-float:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  color: white;
}
/* Intermediate Responsive Improvements */
@media (max-width: 1140px) {
  .scholarships-cta-banner .container {
    padding: 0 1.5rem !important;
  }
}

@media (min-width: 1141px) and (max-width: 1302px) {
  .scholarships-cta-banner .container {
    padding: 0 4rem !important;
  }
}

/* Mobile Adjustments for WhatsApp Float */
@media (max-width: 768px) {

  .whatsapp-float {
    bottom: 1.5rem;
    right: 1.5rem;
    padding: 0.7rem 1.2rem;
  }

  .whatsapp-float span {
    display: none;
    /* Icon only on small mobile to save space */
  }

  .whatsapp-float {
    width: 50px;
    height: 50px;
    justify-content: center;
    padding: 0;
    border-radius: 50%;
  }
}

/* Social link hover effects */
.social-links a {
  transition: transform 0.3s ease, color 0.3s ease;
  color: var(--text-muted);
}

.social-links a:hover {
  transform: translateY(-3px);
  color: var(--secondary) !important;
}