/* ==========================================================================
   KOTA RANKERS POINT (KRP) · PAGE-SPECIFIC LAYOUTS & STYLES
   ========================================================================== */

/* ==========================================================================
   1. HOMEPAGE SPECIFIC
   ========================================================================== */

/* Hero Section */
/* ==========================================================================
   1. HOMEPAGE HERO SLIDER
   ========================================================================== */

.hero-section {
  position: relative;
  background: var(--grad-hero);
  color: var(--white);
  min-height: calc(100vh - var(--topbar-height));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 0 6.5rem;
  overflow: hidden;
  overflow-x: clip;
  max-width: 100%;
}

/* Background Compass Rose Watermark with slow rotation */
.hero-compass-bg {
  position: absolute;
  top: 50%;
  right: -5%;
  transform: translateY(-50%);
  width: 650px;
  height: 650px;
  background-image: url('../svg/compass-rose.svg');
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.07;
  pointer-events: none;
  animation: slowSpin 140s linear infinite;
  z-index: 1;
}

@media (max-width: 768px) {
  .hero-compass-bg {
    display: none;
  }
}

@keyframes slowSpin {
  from { transform: translateY(-50%) rotate(0deg); }
  to { transform: translateY(-50%) rotate(360deg); }
}

.hero-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1400px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Top Course Navigation Pills */
.hero-course-nav {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.hero-course-nav::-webkit-scrollbar {
  display: none;
}

.hero-course-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--on-navy-muted);
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
}

.hero-course-pill svg {
  width: 15px;
  height: 15px;
  opacity: 0.85;
}

.hero-course-pill:hover {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  border-color: rgba(229, 169, 60, 0.5);
}

.hero-course-pill.is-active {
  background: var(--gold-500);
  color: var(--navy-950);
  border-color: var(--gold-400);
  box-shadow: 0 4px 16px rgba(229, 169, 60, 0.35);
}

.hero-course-pill.is-active svg {
  opacity: 1;
}

/* Slider Track & Slides */
.hero-slider-track {
  position: relative;
  width: 100%;
}

.hero-slide {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.hero-slide.is-active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center; /* Exactly vertically centered */
  justify-content: center;
  width: 100%;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.95fr;
    gap: 3.5rem;
    align-items: center;
  }
}

@media (min-width: 1280px) {
  .hero-grid {
    grid-template-columns: 1.2fr 1fr;
    gap: 4.5rem;
    align-items: center;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-content :is(h1, h2, h3) {
  color: var(--white) !important;
  margin-bottom: 1.25rem;
  text-wrap: balance;
  font-size: clamp(2.2rem, 3.8vw, 4rem);
  line-height: 1.1;
  font-weight: 900;
  text-shadow: 0 2px 20px rgba(6, 13, 43, 0.5);
}

.hero-content .lead {
  color: var(--on-navy-muted);
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.25rem;
}

.hero-trust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.5rem;
}

.hero-trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--white);
}

.hero-trust-chip svg {
  color: var(--gold-400);
}

/* Hero Right Poster Column - Perfectly Center Aligned with Text */
.hero-poster-col {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.hero-poster-col picture {
  display: block;
  width: 100%;
  max-width: 600px;
}

.hero-poster-img {
  width: 100%;
  height: auto;
  max-height: 540px;
  object-fit: contain;
  object-position: center;
  display: block;
  filter: drop-shadow(0 20px 45px rgba(0, 0, 0, 0.75));
  transition: transform 0.3s ease;
}

.hero-poster-img:hover {
  transform: translateY(-4px) scale(1.01);
}

@media (max-width: 991px) {
  .hero-poster-col {
    max-width: 480px;
    margin: 0 auto;
  }
}

/* Slider Controls: Arrows & Progress Dots */
.hero-slider-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.5rem;
}

.hero-slider-dots {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.hero-slider-dot {
  width: 28px;
  height: 6px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.hero-slider-dot.is-active {
  width: 48px;
  background: var(--gold-500);
  box-shadow: 0 0 12px rgba(229, 169, 60, 0.5);
}

.hero-slider-arrows {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-slider-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}

.hero-slider-btn:hover {
  background: var(--gold-500);
  color: var(--navy-950);
  border-color: var(--gold-400);
  transform: scale(1.05);
}

/* Stat Band (overlapping hero) */
.stat-band-wrapper {
  position: relative;
  margin-top: -3.5rem;
  z-index: 10;
}

.stat-band-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: 0 16px 40px -10px rgba(10, 26, 79, 0.18);
  border: 1px solid var(--line);
  padding: 2.5rem 2rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (min-width: 900px) {
  .stat-band-card {
    grid-template-columns: repeat(4, 1fr);
    padding: 3rem 2.5rem;
  }
}

@media (max-width: 480px) {
  .stat-band-card {
    padding: 1.75rem 1rem;
    gap: 1.5rem 0.75rem;
  }
}

.stat-item {
  text-align: center;
  position: relative;
}

@media (min-width: 900px) {
  .stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20%;
    bottom: 20%;
    right: 0;
    width: 1px;
    background-color: var(--line);
  }
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  font-weight: 900;
  line-height: 1;
  color: var(--navy-900);
  margin-bottom: 0.4rem;
}

.stat-number span.stat-plus {
  color: var(--gold-500);
}

.stat-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Exam Finder Component */
.exam-finder-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: clamp(1.75rem, 4vw, 3rem);
  box-shadow: var(--shadow-md);
}

.exam-pills-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.exam-pill-btn {
  background: var(--mist);
  border: 1.5px solid var(--line);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--navy-900);
  cursor: pointer;
  transition: all 0.2s;
}

.exam-pill-btn:hover {
  border-color: var(--gold-500);
  background: var(--white);
}

.exam-pill-btn.is-active {
  background: var(--navy-900);
  color: var(--gold-400);
  border-color: var(--navy-900);
  box-shadow: 0 4px 12px rgba(10, 26, 79, 0.2);
}

.exam-detail-card {
  background: var(--sky-50);
  border: 1px solid var(--sky-100);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 860px) {
  .exam-detail-card {
    grid-template-columns: 1.4fr 1fr;
  }
}

.exam-detail-content h3 {
  font-size: 1.65rem;
  margin-bottom: 0.75rem;
}

.exam-detail-content p {
  color: var(--ink-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.exam-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.exam-tag {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 4px 12px;
  border-radius: var(--radius-xs);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--navy-900);
}

/* Flagship Band: NDA / SSB / CDS Residential Feature */
.flagship-band {
  background: var(--navy-950);
  color: var(--white);
  position: relative;
  overflow: hidden;
  padding: clamp(4.5rem, 8vw, 7.5rem) 0;
  border-top: 1px solid rgba(255, 184, 0, 0.2);
  border-bottom: 1px solid rgba(255, 184, 0, 0.2);
}

.flagship-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  align-items: center;
}

@media (min-width: 992px) {
  .flagship-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.flagship-points {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 2rem 0;
}

.flagship-point {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.flagship-point-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-pill);
  background: rgba(255, 184, 0, 0.15);
  border: 1px solid var(--gold-500);
  color: var(--gold-400);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.flagship-point h5 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 2px;
}

.flagship-point p {
  font-size: 0.875rem;
  color: var(--on-navy-muted);
  line-height: 1.5;
  margin-bottom: 0;
}

.flagship-showcase {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 24px 50px -10px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 184, 0, 0.35);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.flagship-showcase:hover {
  transform: translateY(-5px);
  box-shadow: 0 32px 64px -12px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 184, 0, 0.55);
}

.flagship-showcase-img {
  width: 100%;
  height: auto;
  min-height: 380px;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

.flagship-showcase-badge {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  background: rgba(10, 25, 47, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 184, 0, 0.35);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--white);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.flagship-showcase-badge .badge-title {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--gold-400);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.flagship-showcase-badge .badge-subtitle {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.82);
  margin-top: 2px;
}

.flagship-showcase-tag {
  background: var(--grad-gold);
  color: var(--navy-950);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  flex-shrink: 0;
}

.flagship-image-mosaic {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.mosaic-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 2px solid var(--gold-500);
  box-shadow: var(--shadow-md);
}

.mosaic-img:first-child {
  transform: translateY(-15px);
}

.mosaic-img:last-child {
  transform: translateY(15px);
}

/* ==========================================================================
   2. RESIDENTIAL FACILITIES PAGE
   ========================================================================== */
.residence-wing-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 3.5rem;
}

.residence-wing-header {
  background: var(--grad-hero);
  color: var(--white);
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.residence-wing-body {
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 992px) {
  .residence-wing-body {
    grid-template-columns: 1fr 1fr;
  }
}

.amenity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.amenity-chip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--navy-900);
}

.amenity-chip svg {
  color: var(--gold-700);
  flex-shrink: 0;
}

/* Comparison Table */
.comparison-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.comparison-table th,
.comparison-table td {
  padding: 1.15rem 1.5rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
}

.comparison-table th {
  background: var(--navy-950);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8125rem;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table tr:hover td {
  background-color: var(--sky-50);
}

/* ==========================================================================
/* Faculty Page Hero Content */
.faculty-inner-hero h1,
.faculty-inner-hero .lead {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   3D Pop-out Transparent Faculty Avatars & 3x3 Grid Layout
   (Matched to Reference: Blue circle rim, transparent pop-out head, 3x3 layout)
   ========================================================================== */
.faculty-grid-3x3,
.faculty-roster,
.home-faculty-spotlight {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3.5rem 2.5rem;
  max-width: 1240px;
  margin: 2.5rem auto 4rem;
  justify-content: center;
}

.faculty-3d-card,
.faculty-profile,
.home-faculty-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  padding: 1.5rem 1.25rem 2.25rem;
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 10px 30px -10px rgba(6, 13, 43, 0.08), 0 2px 8px -2px rgba(6, 13, 43, 0.04);
}

.faculty-3d-card:hover,
.faculty-profile:hover,
.home-faculty-item:hover {
  transform: translateY(-8px);
  border-color: rgba(29, 78, 216, 0.35);
  box-shadow: 0 24px 48px -12px rgba(6, 13, 43, 0.16), 0 0 0 2px rgba(29, 78, 216, 0.2);
}

/* 3D Popout Avatar Container - More Bigger & Prominent */
.faculty-popout-wrap {
  position: relative;
  width: 240px;
  max-width: 100%;
  aspect-ratio: 520 / 690;
  margin: -0.5rem auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 14px 24px rgba(6, 13, 43, 0.14));
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.35s ease;
}

.faculty-3d-card:hover .faculty-popout-wrap,
.faculty-profile:hover .faculty-popout-wrap,
.home-faculty-item:hover .faculty-popout-wrap {
  transform: scale(1.05);
  filter: drop-shadow(0 20px 32px rgba(29, 78, 216, 0.25));
}

.faculty-popout-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  user-select: none;
  pointer-events: none;
}

/* Faculty Info directly below avatar */
.faculty-3d-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 340px;
}

.faculty-3d-name {
  font-family: var(--font-heading);
  font-size: 1.38rem;
  font-weight: 800;
  color: var(--navy-900);
  line-height: 1.3;
  margin: 0 0 0.35rem 0;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}

.faculty-3d-card:hover .faculty-3d-name,
.faculty-profile:hover .faculty-3d-name,
.home-faculty-item:hover .faculty-3d-name {
  color: #1d4ed8;
}

.faculty-3d-subject {
  font-family: var(--font-sans);
  font-size: 1.02rem;
  font-style: italic;
  font-weight: 600;
  color: #1d4ed8; /* Blue italic matching reference */
  line-height: 1.35;
  margin-bottom: 0.55rem;
}

.faculty-3d-qual {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy-800);
  line-height: 1.4;
  margin-bottom: 0.4rem;
}

.faculty-3d-pedigree {
  font-size: 0.86rem;
  color: var(--ink-muted);
  line-height: 1.5;
}

/* 3-Column Desktop Grid Centering for 7th Item */
@media (min-width: 992px) {
  .faculty-grid-3x3 > .faculty-3d-card:last-child:nth-child(3n + 1),
  .faculty-roster > .faculty-3d-card:last-child:nth-child(3n + 1),
  .home-faculty-spotlight > .faculty-3d-card:last-child:nth-child(3n + 1) {
    grid-column: 2 / 3;
  }
}

.academic-feature {
  padding: 1.65rem 1.35rem;
  background: rgba(240, 249, 255, 0.65);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(14, 116, 144, 0.09);
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), background-color 0.25s ease, border-color 0.25s ease;
}

.academic-feature:hover {
  transform: translateY(-3px);
  background: rgba(224, 242, 254, 0.75);
  border-color: rgba(14, 116, 144, 0.2);
}

.academic-feature h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-top: 0.75rem;
  margin-bottom: 0.4rem;
  color: var(--navy-900);
}

/* Tablet Responsive (2 Columns) */
@media (max-width: 991px) and (min-width: 641px) {
  .faculty-grid-3x3,
  .faculty-roster,
  .home-faculty-spotlight {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem 2rem;
    max-width: 780px;
  }
  .faculty-grid-3x3 > .faculty-3d-card:last-child:nth-child(2n + 1),
  .faculty-roster > .faculty-3d-card:last-child:nth-child(2n + 1),
  .home-faculty-spotlight > .faculty-3d-card:last-child:nth-child(2n + 1) {
    grid-column: 1 / -1;
    max-width: 360px;
    margin: 0 auto;
  }
  .faculty-popout-wrap {
    width: 220px;
  }
}

/* Mobile Responsive Adaptations (1 Column) */
@media (max-width: 640px) {
  .faculty-grid-3x3,
  .faculty-roster,
  .home-faculty-spotlight {
    grid-template-columns: 1fr;
    gap: 2.75rem;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
  }
  .faculty-3d-card,
  .faculty-profile,
  .home-faculty-item {
    padding: 1.25rem 1rem 1.75rem;
  }
  .faculty-popout-wrap {
    width: 210px;
  }
  .faculty-3d-name {
    font-size: 1.25rem;
  }
  .faculty-3d-subject {
    font-size: 0.94rem;
  }
}

/* ==========================================================================
   4. RESULTS & ACHIEVERS PAGE (3D Popout Profiles)
   ========================================================================== */
.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3.5rem 2.25rem;
  max-width: 1240px;
  margin: 1.5rem auto 3.5rem;
}

.result-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 24px;
  padding: 2.25rem 1.25rem 2rem;
  box-shadow: 0 10px 30px -10px rgba(6, 13, 43, 0.08), 0 2px 8px -2px rgba(6, 13, 43, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: visible;
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.result-card:hover {
  transform: translateY(-8px);
  border-color: rgba(29, 78, 216, 0.35);
  box-shadow: 0 24px 48px -12px rgba(6, 13, 43, 0.16), 0 0 0 2px rgba(29, 78, 216, 0.2);
}

.result-badge-top {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(29, 78, 216, 0.08);
  color: #1d4ed8;
  border: 1px solid rgba(29, 78, 216, 0.22);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.02em;
}

.result-avatar-wrap {
  position: relative;
  width: 210px;
  max-width: 100%;
  aspect-ratio: 520 / 690;
  margin: 0.25rem auto 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 14px 24px rgba(6, 13, 43, 0.13));
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.35s ease;
}

.result-card:hover .result-avatar-wrap {
  transform: scale(1.05);
  filter: drop-shadow(0 20px 32px rgba(29, 78, 216, 0.25));
}

.result-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  user-select: none;
  pointer-events: none;
}

.result-student-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy-900);
  line-height: 1.3;
  margin-bottom: 0.35rem;
}

.result-rank-num {
  font-family: var(--font-heading);
  font-size: clamp(1.45rem, 2vw, 2.15rem);
  font-weight: 900;
  line-height: 1.15;
  color: #1d4ed8;
  margin-bottom: 0.35rem;
  min-height: 2.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.result-exam-name {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-style: italic;
  font-weight: 700;
  color: var(--gold-600);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.45rem;
}

.result-details {
  font-size: 0.86rem;
  color: var(--ink-muted);
  line-height: 1.45;
  margin-bottom: 0.5rem;
}

.result-verified-tick {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: #16a34a;
  font-weight: 700;
  margin-top: 0.5rem;
}

@media (max-width: 991px) {
  .results-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem 1.75rem;
    max-width: 780px;
  }
  .result-avatar-wrap {
    width: 195px;
  }
}

@media (max-width: 640px) {
  .results-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
  }
  .result-card {
    padding: 2rem 1.25rem 1.75rem;
  }
  .result-avatar-wrap {
    width: 200px;
  }
}

/* ==========================================================================
   5. MEDIA GALLERY PAGE
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  background: var(--navy-900);
  aspect-ratio: 4 / 3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(6, 13, 43, 0.85) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  color: var(--white);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-caption h5 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 2px;
}

.gallery-caption span {
  font-size: 0.75rem;
  color: var(--gold-400);
  text-transform: uppercase;
}

/* ==========================================================================
   6. COURSE DETAIL PAGES
   ========================================================================== */
.course-layout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .course-layout-grid {
    grid-template-columns: 1fr 340px;
  }
}

.sticky-quickfacts {
  position: sticky;
  top: 100px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
}

.quickfact-item {
  display: flex;
  justify-content: space-between;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.875rem;
}

.quickfact-item:last-of-type {
  border-bottom: none;
  margin-bottom: 1.25rem;
}

.quickfact-label {
  color: var(--ink-muted);
  font-weight: 600;
}

.quickfact-val {
  color: var(--navy-900);
  font-weight: 800;
  text-align: right;
}

/* ==========================================================================
   7. CONTACT PAGE
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
}

@media (min-width: 992px) {
  .contact-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: clamp(1.75rem, 4vw, 3rem);
  box-shadow: var(--shadow-md);
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.contact-info-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
}

.contact-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--sky-50);
  border: 1px solid var(--line);
  color: var(--royal-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-card h4 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.contact-info-card p {
  color: var(--ink-muted);
  font-size: 0.9375rem;
  line-height: 1.5;
  margin-bottom: 0;
}

.map-embed-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  height: 320px;
}

.map-embed-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==========================================================================
   8. 404 & LEGAL PAGES
   ========================================================================== */
.error-page-wrapper {
  text-align: center;
  padding: 7rem 1.5rem;
  max-width: 600px;
  margin: 0 auto;
}

.error-code {
  font-family: var(--font-heading);
  font-size: clamp(5rem, 12vw, 8.5rem);
  font-weight: 900;
  line-height: 1;
  color: var(--navy-900);
  margin-bottom: 1rem;
}

.legal-content {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 5vw, 4rem);
  box-shadow: var(--shadow-sm);
}

.legal-content h2 {
  font-size: 1.75rem;
  margin-top: 2.25rem;
  margin-bottom: 1rem;
  color: var(--navy-900);
}

.legal-content p,
.legal-content ul {
  color: var(--ink-muted);
  font-size: 1rem;
  line-height: 1.75;
}

.legal-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   9. HOMEPAGE REVISED SECTIONS: FOUNDER, INTEGRATED PROGRAM & COURSES
   ========================================================================== */
.founder-card {
  background: var(--white);
  border: 2px solid var(--gold-400);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 5vw, 3.5rem);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.founder-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: var(--grad-gold);
}

.founder-card h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  line-height: 1.18;
  word-wrap: break-word;
}

.founder-grid {
  display: grid;
  grid-template-columns: clamp(250px, 28vw, 290px) 1fr;
  gap: clamp(2.25rem, 3.5vw, 3.5rem);
  align-items: center;
}

@media (max-width: 768px) {
  .founder-card {
    padding: 1.75rem 1.25rem;
  }
  .founder-card h2 {
    font-size: clamp(1.35rem, 5.5vw, 1.75rem);
  }
  .founder-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.75rem;
  }
  .founder-avatar-wrap {
    width: min(220px, 64vw);
    height: min(220px, 64vw);
    margin: 0 auto;
  }
  .founder-logo-badge {
    width: 54px;
    height: 54px;
    bottom: 4px;
    right: 4px;
  }
}

.founder-avatar-wrap {
  width: clamp(250px, 28vw, 290px);
  height: clamp(250px, 28vw, 290px);
  border-radius: 50%;
  position: relative;
  border: 4px solid var(--gold-400);
  box-shadow: 0 16px 36px -8px rgba(11, 27, 61, 0.3), 0 0 0 6px rgba(255, 184, 0, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.founder-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 12%;
  display: block;
}

.founder-logo-badge {
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3.5px solid var(--gold-400);
  background: var(--white);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  overflow: hidden;
  padding: 3px;
}

.founder-logo-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  display: block;
}

.founder-quote {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.7;
  color: var(--navy-900);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.founder-meta h3 {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--navy-900);
  margin-bottom: 0.25rem;
}

.founder-meta p {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--royal-600);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
}

/* Integrated Classroom Highlights Grid */
.integrated-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.integrated-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.integrated-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--royal-500);
}

.integrated-card-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--sky-100);
  color: var(--royal-700);
  font-weight: 900;
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.integrated-card h4 {
  font-size: 1.1rem;
  color: var(--navy-900);
  margin: 0;
}

.integrated-card p {
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.55;
  margin: 0;
}

/* 9-Course Grid */
.course-grid-9 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 1.75rem;
}

@media (max-width: 640px) {
  .course-grid-9 {
    grid-template-columns: 1fr;
  }
}

.course-card-prio {
  border-color: var(--gold-400);
  box-shadow: 0 4px 20px -2px rgba(255, 184, 0, 0.2);
  position: relative;
}

.course-card-prio::before {
  content: 'HIGH PRIORITY';
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--grad-gold);
  color: var(--navy-950);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
}

/* Residential Amenities 6-Card Grid */
.amenities-grid-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2.5rem 0;
}

@media (max-width: 991px) {
  .amenities-grid-6 {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (max-width: 580px) {
  .amenities-grid-6 {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.amenity-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.125rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  min-height: 160px;
}

.amenity-card:hover {
  transform: translateY(-4px);
  border-color: var(--royal-600);
  box-shadow: var(--shadow-md);
}

.amenity-card-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: var(--sky-100);
  color: var(--royal-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin: 0 auto;
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.amenity-card:hover .amenity-card-icon {
  background: var(--royal-600);
  color: var(--white);
  transform: scale(1.06);
}

.amenity-card-icon svg {
  width: 24px;
  height: 24px;
  display: block;
}

.amenity-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-900);
  line-height: 1.45;
  text-align: center;
  max-width: 280px;
  margin: 0 auto;
}

/* ==========================================================================
   FLAGSHIP NDA & SSB TWO-YEAR INTEGRATED PROGRAMME STYLES
   ========================================================================== */

/* 9 Key Programme Features Grid */
.nda-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.nda-feature-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.nda-feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold-500);
  box-shadow: var(--shadow-md);
}

.nda-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--sky-100);
  color: var(--royal-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 800;
  font-size: 1.2rem;
}

.nda-feature-text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy-900);
  line-height: 1.55;
  margin: 0;
}

/* Two-Year Curriculum Comparison (Class 11th & 12th) */
.nda-years-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 2rem;
  margin: 2.5rem 0;
}

.nda-year-card {
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
}

.nda-year-card.highlight-year {
  border-color: var(--gold-500);
}

.nda-year-header {
  background: var(--navy-950);
  color: var(--white);
  padding: 1.75rem 2rem;
  border-bottom: 3px solid var(--gold-500);
}

.nda-year-header h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.nda-year-header p {
  color: var(--gold-400);
  font-weight: 700;
  font-size: 0.875rem;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nda-year-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  flex-grow: 1;
}

.nda-subpillar {
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
}

.nda-subpillar h4 {
  font-size: 1.05rem;
  color: var(--navy-900);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nda-bullet-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.nda-bullet-list li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 0.9375rem;
  color: var(--ink);
  line-height: 1.5;
}

.nda-bullet-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--royal-600);
  font-weight: 800;
}

/* Callout / Advisory Notice Box */
.nda-advisory-box {
  background: rgba(16, 38, 112, 0.04);
  border: 1px solid rgba(16, 38, 112, 0.16);
  border-left: 4px solid var(--royal-600);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--navy-900);
}

.nda-advisory-box.gold-accent {
  background: rgba(255, 184, 0, 0.08);
  border-color: rgba(255, 184, 0, 0.35);
  border-left-color: var(--gold-500);
}

/* Written Syllabus Dual Pillars */
.nda-syllabus-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.nda-syllabus-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.nda-syllabus-card:hover {
  transform: translateY(-2px);
  border-color: var(--royal-600);
}

.nda-topic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0;
}

.nda-topic-tag {
  background: var(--sky-50);
  border: 1px solid var(--sky-100);
  color: var(--navy-900);
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
}

/* SSB 6-Module Grid */
.ssb-modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1.5rem;
  margin: 2.5rem 0;
}

.ssb-module-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.ssb-module-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold-500);
}

.ssb-module-card h4 {
  font-size: 1.15rem;
  color: var(--navy-900);
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.ssb-module-card p {
  font-size: 0.9375rem;
  color: var(--ink-muted);
  line-height: 1.6;
  margin: 0;
}

/* Structured Daily Routine Timeline (6 Steps) */
.routine-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1.25rem;
  margin: 2.5rem 0;
}

.routine-step-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  border-top: 4px solid var(--royal-600);
}

.routine-step-card:nth-child(2) { border-top-color: var(--gold-500); }
.routine-step-card:nth-child(3) { border-top-color: var(--navy-900); }
.routine-step-card:nth-child(4) { border-top-color: var(--royal-700); }
.routine-step-card:nth-child(5) { border-top-color: var(--gold-600); }
.routine-step-card:nth-child(6) { border-top-color: var(--navy-950); }

.routine-step-number {
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: var(--royal-600);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.routine-step-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy-900);
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.routine-step-desc {
  font-size: 0.875rem;
  color: var(--ink-muted);
  line-height: 1.55;
  margin: 0;
}

