@import 'variables.css';

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  color: var(--text);
  background-color: var(--bg-white);
  line-height: 1.6;
  overflow-x: hidden;
  /* Prevent horizontal scroll */
  width: 100%;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  font-size: 42px;
  /* Prominent size requested */
  color: var(--primary);
  margin-bottom: 20px;
  line-height: 1.2;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 32px;
  }
}

/* Typography & Utilities */
.section {
  padding: 100px 0;
}

.section-grey {
  background-color: var(--bg-light);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px;
  /* Increased gap for breathing room */
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.lead {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.text-center {
  text-align: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
  border: 1px solid var(--border-light);
  font-size: 15px;
}

.btn.primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.btn.primary:hover {
  background: #001a38;
}

.btn.whatsapp {
  background: #25D366;
  color: white;
  border-color: #25D366;
}

.btn-grand {
  background: var(--secondary);
  color: var(--primary);
  padding: 16px 32px;
  border-radius: var(--radius-md);
  font-size: 16px;
  /* Slightly reduced for better balance */
  box-shadow: 0 10px 20px rgba(255, 193, 7, 0.2);
  border: 2px solid var(--secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  /* Explicit height to ensure matching */
  transition: var(--transition);
}

.btn-outline-grand {
  background: transparent;
  color: var(--primary);
  padding: 16px 32px;
  border-radius: var(--radius-md);
  font-size: 16px;
  border: 2px solid var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  transition: var(--transition);
}

.btn-outline-grand:hover {
  background: var(--primary);
  color: white;
}

/* Pills */
.pills {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.pill {
  padding: 8px 18px;
  /* Slightly larger */
  background: rgba(0, 33, 71, 0.05);
  color: var(--primary);
  border-radius: 99px;
  font-size: 13px;
  /* Slightly larger */
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  /* Added gap to text below - increased to 20px as per screenshot gap request */
  display: inline-block;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .pills {
    justify-content: center;
  }
}

@media (max-width: 500px) {
  .pill {
    white-space: normal;
    text-align: center;
    line-height: 1.5;
    padding: 12px 20px;
    font-size: 11px;
  }

  .pill-sep {
    display: none !important;
  }
}

.urgency-text-pulse {
  animation: urgencyGlow 1.2s infinite ease-in-out;
  display: inline-block;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

@keyframes urgencyGlow {

  0%,
  100% {
    transform: scale(1);
    color: var(--accent);
  }

  50% {
    transform: scale(1.1);
    color: #ff0000;
    text-shadow: 0 0 8px rgba(227, 30, 36, 0.3);
  }
}

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--glass-white);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  height: 90px;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-logo {
  height: 75px;
  width: auto;
}

/* Brand info removed - redundant with logo */

.menu {
  display: flex;
  gap: 30px;
}

.menu a {
  font-weight: 600;
  font-size: 15px;
}

.menu a.active {
  color: var(--accent);
}

.menu a:hover {
  color: var(--accent);
}

/* Mobile Toggle - Hidden by default */
.mobile-toggle {
  display: none;
  font-size: 28px;
  color: var(--primary);
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
}

/* Dropdown Menu */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: white;
  min-width: 200px;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  padding: 10px 0;
  z-index: 1010;
  top: 100%;
  left: 0;
  border: 1px solid var(--border-light);
  /* Use padding instead of margin to prevent mouse-out gap */
  padding-top: 15px;
}

/* Invisible bridge to keep dropdown open when moving mouse between trigger and content */
/* Invisible bridge to keep dropdown open when moving mouse between trigger and content */
.dropdown-content::before {
  content: "";
  position: absolute;
  top: -15px;
  left: 0;
  width: 100%;
  height: 15px;
  background: transparent;
}

.dropdown-content a {
  padding: 10px 20px;
  display: block;
  font-size: 14px;
}

.dropdown-content a:hover {
  background-color: var(--bg-light);
}

.dropdown:hover .dropdown-content {
  display: block;
  animation: fadeInDown 0.3s ease forwards;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Card */
.card {
  background: white;
  padding: 30px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

/* Testimonial Premium */
.testimonial-card {
  background: white;
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
}

.testimonial-card i.quote-icon {
  font-size: 40px;
  color: var(--secondary);
  opacity: 0.3;
  margin-bottom: 20px;
}

.testimonial-card p {
  font-size: 15px;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.8;
  margin-bottom: 25px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.author-info h5 {
  margin: 0;
  color: var(--primary);
}

.author-info span {
  font-size: 12px;
  color: var(--accent);
  font-weight: 700;
}

/* Hero Modern */
.hero {
  padding: 100px 0;
  background: #f4f9ff;
  background-image:
    radial-gradient(circle at 2px 2px, rgba(42, 66, 145, 0.04) 1px, transparent 0),
    linear-gradient(135deg, #f4f9ff 0%, #e9f2ff 100%);
  background-size: 30px 30px, 100% 100%;
  overflow: hidden;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.1fr;
  /* Swapped and adjusted */
  gap: 60px;
  align-items: center;
}

.hero-image-wrap {
  position: relative;
  display: flex;
  justify-content: flex-end;
}

.hero-director-img-standalone {
  width: 100%;
  max-width: 550px;
  height: auto;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
  border-radius: 80px 20px 80px 20px;
  /* artistic asymmetric rounding */
  display: block;
}

.hero-floating-highlight {
  position: absolute;
  top: 60%;
  left: -40px;
  background: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Cg fill='%232a4291' fill-opacity='0.03'%3E%3Cpath d='M4 0l4 4-4 4L0 4z'/%3E%3C/g%3E%3C/svg%3E");
  padding: 20px 30px;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(42, 66, 145, 0.15);
  display: flex !important;
  align-items: center;
  gap: 20px;
  z-index: 10;
  border: 4px solid #ffffff;
  outline: 1px solid rgba(254, 195, 20, 0.3);
  animation: floatRibbon 4s infinite ease-in-out;
  min-width: 320px;
}

@keyframes floatRibbon {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }
}

.floating-icon {
  width: 65px;
  height: 65px;
  background: var(--secondary);
  color: var(--primary);
  border-radius: 18px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  flex-shrink: 0;
  box-shadow: 0 10px 20px rgba(254, 195, 20, 0.4);
  position: relative;
  border: 2px solid white;
}

/* Internal glow for icon */
.floating-icon::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.4) 0%, transparent 60%);
  pointer-events: none;
  border-radius: inherit;
}

.floating-text span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 4px;
}

.floating-text h5 {
  font-size: 16px;
  margin: 0;
  color: var(--primary);
  font-weight: 800;
  line-height: 1.2;
}

@media (max-width: 1200px) {
  .hero-floating-highlight {
    left: 20px;
    top: 75%;
  }
}

@media (max-width: 768px) {
  .hero-floating-highlight {
    position: relative;
    left: 0 !important;
    top: 0 !important;
    margin: 20px auto 0 !important;
    min-width: 100% !important;
    transform: none !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 15px 20px !important;
    justify-content: center;
  }

  .floating-icon {
    width: 45px !important;
    height: 45px !important;
    font-size: 24px !important;
  }

  .floating-text h5 {
    font-size: 14px !important;
  }
}

/* Hide highlight on very small mobile to keep main image visible */
@media (max-width: 500px) {
  .hero-floating-highlight {
    display: none !important;
  }
}

.urgency-text-pulse {
  animation: textPulse 1.5s infinite ease-in-out;
  display: inline-block;
}

@keyframes textPulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.7;
    transform: scale(0.95);
    color: #ff0000;
  }
}

.legacy-stamp-img {
  position: absolute;
  top: 40px;
  /* Adjusted to be near text */
  left: -20px;
  width: 140px;
  height: auto;
  z-index: 10;
  transform: rotate(-15deg);
  /* Tilted like a stamp */
  opacity: 0.9;
  filter: drop-shadow(var(--shadow-md));
  pointer-events: none;
  /* Don't block text */
}

.hero h2 {
  font-size: 56px;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

/* Standardized Secondary Hero Sections */
.hero.about,
.hero.courses,
.hero.faculty,
.hero.gallery,
.hero.contact,
.hero.results-hero,
.hero.hostel,
.hero-sub {
  padding: 100px 0 80px;
  text-align: center;
  background-color: var(--primary) !important;
  background-image:
    radial-gradient(circle at 2px 2px, rgba(255, 255, 255, 0.05) 1px, transparent 0);
  background-size: 32px 32px;
  color: white;
  position: relative;
  overflow: hidden;
}

.hero.about h2,
.hero.courses h2,
.hero.faculty h2,
.hero.gallery h2,
.hero.contact h2,
.hero.results-hero h2,
.hero.hostel h2 {
  font-size: 48px;
  color: white !important;
  margin-bottom: 15px;
}

/* Align pills in centered heroes */
.hero .pills {
  justify-content: center;
}

/* Optical alignment: reduce top padding when a pill is present */
.hero:has(.pill) {
  padding-top: 75px;
}

.hero:has(.pills) {
  padding-top: 75px;
}


/* Subtle accent glow for hero */
.hero.secondary::after,
.hero.about::after,
.hero.courses::after,
.hero.hostel::after,
.hero-sub::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 140%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(255, 193, 7, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

.hero.secondary h2,
.hero.about h2,
.hero.courses h2,
.hero.hostel h2,
.hero-sub h2 {
  color: white !important;
}

.hero-sub h2 {
  color: white !important;
}

/* Course & Program Details */
.course-detail {
  margin-bottom: 60px;
}

.course-detail h3 {
  margin-bottom: 20px;
  color: var(--primary);
}

.feature-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
}

.feature-list li::before {
  color: var(--accent);
}

/* Results */
.result-stat {
  text-align: center;
  padding: 30px;
}

.result-stat h2 {
  font-size: 48px;
  color: var(--secondary);
  margin-bottom: 10px;
}

/* Legacy Section */
.legacy-founder {
  padding: 100px 0;
  background: white;
}

.legacy-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  /* Better ratio */
  gap: 60px;
  align-items: start;
}

.legacy-img-wrap {
  position: relative;
}

.legacy-img {
  width: 100%;
  border-radius: 20px 150px 20px 150px;
  /* Modern artistic shape */
  object-fit: cover;
  display: block;
}

.legacy-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--secondary);
  color: var(--primary);
  padding: 12px 30px;
  border-radius: 100px;
  font-weight: 800;
  box-shadow: 0 10px 25px rgba(254, 195, 20, 0.3);
  border: 2px solid white;
  white-space: nowrap;
  z-index: 5;
}

@media (max-width: 768px) {
  .legacy-founder {
    overflow: hidden;
  }

  .legacy-badge {
    right: 10px;
    bottom: 10px;
    padding: 8px 20px;
    font-size: 11px;
    border-radius: 50px;
  }
}

.legacy-points {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 40px;
}

.point-item {
  display: flex;
  gap: 20px;
}

.point-num {
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
}

/* Pastel colors for numbers */
.point-item:nth-child(1) .point-num {
  color: #ffe8e8;
}

.point-item:nth-child(2) .point-num {
  color: #dbe9f7;
}

.point-item:nth-child(3) .point-num {
  color: #ddf0d3;
}

.point-item:nth-child(4) .point-num {
  color: #fef3db;
}

/* Guru Shishya */
.guru-shishya {
  background: var(--bg-light);
  padding: 80px;
  border-radius: var(--radius-lg);
  border-left: 12px solid var(--accent);
}

.guru-img {
  width: 100%;
  max-width: 450px;
  /* Reduced from 600px to look more balanced */
  height: auto;
  min-height: 400px;
  /* Reduced from 500px */
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Why Bansal - Modern Grid */
.usp-modern-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.usp-modern-card {
  background: white;
  padding: 40px;
  border-radius: var(--radius-md);
  border-bottom: 4px solid transparent;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.usp-modern-card:hover {
  transform: translateY(-10px);
  border-bottom-color: var(--accent);
  box-shadow: var(--shadow-lg);
}

.usp-modern-icon {
  width: 60px;
  height: 60px;
  background: rgba(0, 33, 71, 0.05);
  color: var(--accent);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin-bottom: 25px;
}

/* Educational Programs - Premium Cards */
.program-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.program-card-premium {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--border-light);
  position: relative;
}

.program-card-premium:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.program-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--primary) !important;
  color: white !important;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 11px;
  font-weight: 800;
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 1px;
  width: max-content;
  display: inline-block;
}

.program-img-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
  width: 100%;
}

.program-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: var(--transition);
}

.program-card-premium:hover .program-img-wrap img {
  transform: scale(1.1);
}

.duration-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 33, 71, 0.85);
  color: white;
  padding: 8px;
  font-size: 12px;
  text-align: center;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

.program-info-wrap {
  padding: 25px;
}

.program-info-wrap h4 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--primary);
}

@media (max-width: 768px) {
  .program-badge {
    left: auto !important;
    right: 15px !important;
  }

  .program-img-wrap {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 3/2 !important;
    background: #E31E24;
  }

  .program-img-wrap img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  .program-info-wrap {
    padding: 15px;
  }

  .program-info-wrap h4 {
    font-size: 16px;
  }
}

/* Slider System */
.slider-container {
  position: relative;
  overflow: hidden;
  padding: 20px 0;
}

.slider-track {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  /* Hide scrollbar Firefox */
  padding-bottom: 20px;
  -ms-overflow-style: none;
  /* Hide scrollbar IE/Edge */
}

.slider-track::-webkit-scrollbar {
  display: none;
  /* Hide scrollbar Chrome/Safari */
}

.slider-track .program-card-premium,
.slider-track .testimonial-card {
  flex: 0 0 calc(33.333% - 20px);
  scroll-snap-align: start;
  min-width: 300px;
}

@media (max-width: 1024px) {

  .slider-track .program-card-premium,
  .slider-track .testimonial-card {
    flex: 0 0 calc(50% - 15px);
  }
}

@media (max-width: 768px) {

  .slider-track .program-card-premium,
  .slider-track .testimonial-card {
    flex: 0 0 88%;
    max-width: 330px;
  }
}

.slider-nav {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

.slider-arrow {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  color: var(--primary);
  font-size: 20px;
}

.slider-arrow:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.program-img-wrap {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.program-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.program-info-wrap {
  padding: 30px;
}

.program-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--accent);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  z-index: 5;
}

.duration-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 33, 71, 0.85);
  color: white;
  padding: 8px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  backdrop-filter: blur(4px);
}

/* Infrastructure */
.infra-section {
  background: white;
  padding: 100px 0;
}

.infra-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

.infra-card {
  height: 320px;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.infra-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.infra-card:hover img {
  transform: scale(1.1);
}

.infra-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 25px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  color: white;
}

.infra-overlay h4 {
  color: white;
  margin: 0;
  font-size: 18px;
}

/* Faculty */
.faculty-card {
  position: relative;
  overflow: hidden;
  padding: 0 !important;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(42, 66, 145, 0.08);
  /* Softer, luxury shadow */
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.faculty-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 30px 60px rgba(42, 66, 145, 0.15);
}

.faculty-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1.1;
  /* Shorter, more compact height */
  overflow: hidden;
  position: relative;
  background: #f8faff;
}

.faculty-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: block;
}

.faculty-card:hover .faculty-img {
  transform: scale(1.08);
}

.faculty-content {
  padding: 18px 15px 22px;
  /* Reduced vertical padding */
  text-align: center;
  background: white;
  z-index: 2;
}

.faculty-subject-tag {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.faculty-card h4 {
  font-size: 20px;
  color: var(--primary);
  margin-bottom: 5px;
  transition: color 0.3s;
}

.faculty-card:hover h4 {
  color: var(--accent);
}

.faculty-role {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Floating Glass Experience Badge */
.stability-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--primary);
  padding: 6px 14px;
  font-size: 10px;
  font-weight: 800;
  border-radius: 50px;
  z-index: 10;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.faculty-card:hover .stability-badge {
  background: var(--secondary);
  border-color: var(--secondary);
  color: var(--primary);
  transform: scale(1.05);
}

.stability-badge i {
  color: var(--accent);
  font-size: 12px;
}

/* Success Stories - Auto Scroll Slider */
.stories-slider-overflow {
  width: 100%;
  padding: 40px 0;
}

.stories-slider-track {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.video-card-premium {
  width: 100%;
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.6s ease-out;
  position: relative;
  z-index: 1;
}

@media (min-width: 769px) {
  .video-card-premium {
    opacity: 0.1;
    transform: translateY(50px);
  }

  .video-card-premium.reveal {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Pillar Cards Styling */
.pillar-card {
  text-align: center;
  padding: 40px 30px;
  background: rgba(42, 66, 145, 0.03);
  /* Extremely subtle blue tint */
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(42, 66, 145, 0.08);
  height: 100%;
}

.pillar-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.pillar-img {
  width: 100%;
  max-width: 250px;
  height: 250px;
  border-radius: 40px 10px 40px 10px;
  /* Matching the new leaf style */
  object-fit: cover;
  margin: 0 auto 25px;
  background: var(--bg-light);
  display: block;
}

.pillar-spec {
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pillar-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Success Story Animation Speed Internal Tweaks */
@keyframes scroll-slider {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-2000px);
  }

  /* Adjust based on item width * count */
}

/* For manual scroll if needed on mobile */
@media (max-width: 768px) {
  .stories-slider-overflow {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .stories-slider-track {
    animation: none;
  }
}

/* Story Card Mobile Fixes */
@media (max-width: 768px) {
  .stories-slider-track {
    display: flex;
    flex-direction: column;
    gap: 30px;
  }

  .video-card-premium {
    width: 100%;
  }
}

.iframe-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  background: #000;
}

.iframe-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-info {
  padding: 25px;
}

/* Program Cards */
.program-card {
  text-align: center;
  position: relative;
  padding-top: 50px;
}

.duration-tag {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--bg-light);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
}

.program-icon {
  font-size: 48px;
  color: var(--accent);
  margin-bottom: 20px;
}

/* USP Card */
.usp-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: white;
  padding: 20px;
  border-radius: var(--radius-md);
}

.usp-icon {
  font-size: 32px;
  color: var(--accent);
}

/* Footer */
.footer {
  background: #FFFFFF;
  /* High contrast white for differentiation */
  color: var(--text);
  padding: 100px 0 40px;
  border-top: 1px solid var(--border-light);
}

.footer-logo {
  height: 90px;
  margin-bottom: 25px;
  /* Added subtle contrast boost as it looked 'washed out' */
  filter: contrast(1.1) saturate(1.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 80px;
}

.footer a {
  display: block;
  margin-bottom: 15px;
  color: var(--text-muted);
  font-weight: 500;
  transition: var(--transition);
}

.footer a:hover {
  color: var(--accent);
}

.footer h4 {
  color: var(--primary);
  margin-bottom: 30px;
  font-size: 20px;
}

.footer a:hover {
  color: var(--accent);
  transform: translateX(5px);
}

.social-links {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}

.social-icon {
  font-size: 40px;
  /* Enlarge */
  color: var(--primary);
  transition: var(--transition);
}

.social-icon:hover {
  color: var(--accent);
  transform: scale(1.2);
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--text-muted);
}

.alphamobi-link {
  color: var(--secondary);
  font-weight: 700;
  text-decoration: underline;
}

/* Floatbar Island Redesign */
.floatbar {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  padding: 8px 10px;
  border-radius: 100px;
  box-shadow: 0 15px 35px rgba(42, 66, 145, 0.25);
  display: flex !important;
  gap: 8px;
  z-index: 2000;
  border: 1px solid rgba(255, 255, 255, 0.8);
  width: auto;
  max-width: 90vw;
  white-space: nowrap;
  animation: slideUpIsland 0.6s cubic-bezier(0.16, 1, 0.3, 1), floatIsland 3s ease-in-out infinite;
}

@keyframes floatIsland {

  0%,
  100% {
    transform: translate(-50%, 0);
  }

  50% {
    transform: translate(-50%, -5px);
  }
}

@keyframes slideUpIsland {
  from {
    transform: translate(-50%, 100px);
    opacity: 0;
  }

  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

.floatbar .btn {
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 50px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  justify-content: center;
}

.floatbar .btn i {
  font-size: 18px;
}

.floatbar .btn:hover {
  transform: translateY(-3px) scale(1.05);
}

.floatbar .btn.whatsapp {
  background: #25D366;
  color: white;
}

.floatbar .btn.primary {
  background: var(--primary);
  color: white;
}

/* Integrated Schooling Ribbon */
.schooling-banner-premium {
  background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
  border-radius: 24px;
  padding: 45px;
  display: flex;
  align-items: center;
  gap: 50px;
  margin-bottom: 60px;
  border: 1px solid rgba(42, 66, 145, 0.1);
  box-shadow: 0 25px 50px rgba(42, 66, 145, 0.08);
  position: relative;
  overflow: hidden;
  text-align: left;
}

.schooling-banner-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 8px;
  height: 100%;
  background: var(--secondary);
}

.schooling-icon-wrap {
  width: 110px;
  height: 110px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 50px;
  color: var(--secondary);
  box-shadow: 0 15px 35px rgba(254, 195, 20, 0.3);
  flex-shrink: 0;
  border: 5px solid #fff9e6;
  position: relative;
  z-index: 1;
}

.schooling-text-wrap {
  flex-grow: 1;
  position: relative;
  z-index: 1;
}

.schooling-text-wrap h4 {
  font-size: 28px;
  color: var(--primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.schooling-title-badge {
  background: var(--primary);
  color: white;
  font-size: 11px;
  padding: 5px 14px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 800;
}

.schooling-text-wrap p {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 850px;
}

.schooling-text-wrap p b {
  color: var(--primary);
  font-weight: 800;
}

.schooling-bg-accent {
  position: absolute;
  right: -50px;
  bottom: -50px;
  font-size: 250px;
  color: rgba(42, 66, 145, 0.03);
  transform: rotate(-15deg);
  z-index: 0;
  pointer-events: none;
}

@media (max-width: 992px) {
  .schooling-banner-premium {
    flex-direction: column;
    text-align: center;
    padding: 50px 30px;
    gap: 30px;
  }

  .schooling-text-wrap h4 {
    flex-direction: column;
    font-size: 24px;
  }

  .schooling-text-wrap p {
    font-size: 16px;
  }

  .schooling-bg-accent {
    display: none;
  }

  .schooling-features {
    justify-content: center;
  }
}

.schooling-features {
  display: flex;
  gap: 15px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.schooling-feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  background: white;
  padding: 7px 15px;
  border-radius: 10px;
  border: 1px solid rgba(42, 66, 145, 0.08);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.schooling-feature-item i {
  color: #25d366;
  font-size: 18px;
}

.hero-actions {
  display: flex !important;
  gap: 20px;
  margin-top: 40px;
  margin-bottom: 30px;
}

.hero-tracks-quick {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.track-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  opacity: 0.8;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.track-link:hover {
  opacity: 1;
  color: var(--accent);
  transform: translateX(5px);
}

.track-link::before {
  content: '\f22e';
  font-family: 'Phosphor';
  color: var(--secondary);
  font-size: 18px;
}

.track-sep {
  width: 1px;
  height: 15px;
  background: rgba(0, 33, 71, 0.2);
}

@media (max-width: 768px) {
  .hero-tracks-quick {
    justify-content: center;
    gap: 15px;
  }

  .track-sep {
    display: none;
  }
}

/* Hide header CTA on small desktops/tablets if space is tight */
@media (max-width: 1100px) {
  .nav .cta {
    display: none;
  }
}

/* Form */
.form-group {
  margin-bottom: 15px;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 14px;
}

/* Responsive */
@media (max-width: 1200px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-image-wrap {
    order: 2;
    max-width: 500px;
    margin: 0 auto;
  }

  .hero-content {
    order: 1;
  }

  .pills {
    justify-content: center;
  }

  .hero h2 {
    font-size: 48px;
  }
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .legacy-grid {
    grid-template-columns: 1fr;
  }

  .program-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav {
    height: 70px;
    background: rgba(255, 255, 255, 0.98);
  }

  .nav-wrap {
    flex-direction: row;
    padding: 0 15px;
    height: 100%;
    align-items: center;
  }

  .brand-logo {
    height: 45px;
  }

  .brand-info h1 {
    font-size: 16px;
  }

  .brand-info small {
    font-size: 11px;
  }

  .mobile-toggle {
    display: block;
    position: relative;
    z-index: 1010;
    cursor: pointer;
  }

  .menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    gap: 0;
    padding: 20px 0;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 998;
    border-top: 1px solid var(--border-light);
  }

  .menu.active {
    display: flex !important;
    animation: slideDownNav 0.3s ease forwards;
    z-index: 1005;
  }

  .menu a {
    padding: 15px 30px;
    width: 100%;
    border-bottom: 1px solid var(--bg-light);
  }

  /* Hide timing on mobile to save space */
  .top-bar-timing {
    display: none !important;
  }

  .top-bar-wrap {
    justify-content: space-between !important;
    text-align: left;
    flex-direction: row !important;
    gap: 15px !important;
    padding: 0 15px !important;
  }

  .top-bar-wrap>div:first-child {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 11px;
    max-width: 65%;
  }

  .top-bar-wrap>div:last-child {
    font-size: 11px;
    white-space: nowrap;
  }

  .hide-on-mobile {
    display: none !important;
  }

  .guru-shishya {
    padding: 30px 15px !important;
    border-radius: 15px !important;
  }

  .dropdown-content {
    position: static;
    box-shadow: none;
    background: var(--bg-light);
    border: none;
    margin-top: 0;
    display: block;
    padding-left: 20px;
  }

  .section {
    padding: 40px 0;
    overflow: hidden;
  }

  /* Prevent horizontal scroll */
  .section-title {
    font-size: 26px;
    text-align: center;
    margin-bottom: 25px;
  }

  .hero {
    padding: 40px 0;
    text-align: center;
  }

  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 30px;
  }

  .hero h2 {
    font-size: 28px;
    line-height: 1.3;
    margin: 15px 0;
  }

  .hero-image-wrap {
    justify-content: center !important;
    margin-top: 40px;
    flex-direction: column;
    align-items: center;
  }

  .hero-director-img-standalone {
    max-width: 100% !important;
    margin: 0 auto;
  }

  .hero-actions {
    display: flex !important;
    flex-direction: row !important;
    gap: 10px;
    margin-top: 30px;
    width: 100%;
    justify-content: center;
  }

  .hero-actions .btn {
    flex: 1;
    width: 50%;
    /* Equal width */
    font-size: 11px;
    padding: 12px 5px;
    justify-content: center;
    white-space: nowrap;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  /* Guru Shishya Fix */
  .guru-shishya .grid-2 {
    display: flex !important;
    flex-direction: column !important;
    text-align: center;
  }

  .guru-shishya p {
    font-size: 16px !important;
    padding-left: 15px !important;
  }

  .guru-img {
    max-width: 340px !important;
    /* Slightly increased from 280px */
    width: 100%;
    margin: 10px auto;
    min-height: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block;
  }

  .infra-grid,
  .usp-modern-grid,
  .stat-poster-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .gallery-item {
    height: 180px !important;
  }

  .infra-card h4 {
    font-size: 12px;
  }

  .poster-card {
    padding: 10px;
  }

  .poster-year {
    font-size: 11px;
    margin-bottom: 5px;
  }

  .poster-info h4 {
    font-size: 13px;
  }

  /* Success Stories - 2 columns as requested */
  .stories-slider-track {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px;
    overflow: visible !important;
    padding: 0 !important;
  }

  .video-card-premium {
    min-width: 0 !important;
    width: 100% !important;
  }

  .video-info {
    padding: 12px;
  }

  .video-info h4 {
    font-size: 11px;
    line-height: 1.4;
  }

  /* About Page - VK Bansal / Sameer Bansal Fix */
  .about-section .grid-2 {
    display: flex !important;
    flex-direction: column !important;
    text-align: center;
  }

  .about-section img {
    margin: 20px auto !important;
    max-width: 100% !important;
  }

  .about-section .grid-2>div {
    width: 100% !important;
  }

  /* Footer Mobile - Re-optimized for "Native" look */
  .footer {
    padding: 60px 0 100px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    text-align: left;
    gap: 30px;
  }

  .footer-grid>div:first-child {
    grid-column: span 2;
    text-align: center;
  }

  /* Center the logo in footer on mobile */
  .footer-grid>div:first-child img {
    margin: 0 auto 25px !important;
  }

  .footer-grid h4 {
    margin-top: 20px;
    font-size: 16px;
    margin-bottom: 20px;
  }

  .footer-grid a {
    font-size: 14px;
    margin-bottom: 10px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  /* Floatingbar Adjustment */
  .floatbar {
    width: 80%;
    /* Reduced from 95% */
    left: 50%;
    transform: translateX(-50%);
    bottom: 12px;
    padding: 5px;
    border-radius: 50px;
    /* More capsule-like */
  }

  .floatbar .btn {
    flex: 1;
    padding: 8px 12px;
    /* Reduced vertical padding */
    font-size: 11px;
    /* Smaller font */
    gap: 4px;
    border-radius: 40px;
    height: 36px;
    /* Fixed compact height */
    justify-content: center;
  }

  /* Course Page Mobile Fixes */
  .courses .hero h2 {
    font-size: 32px;
  }

  .courses section .card {
    padding: 30px 15px !important;
    margin-bottom: 30px !important;
  }

  .courses .grid-2 {
    display: flex !important;
    flex-direction: column-reverse !important;
    /* Image first? No, content first usually, user says side by side. Reversing for better eye flow. */
    gap: 30px !important;
  }

  .courses h2 {
    font-size: 24px !important;
  }

  .courses .lead {
    font-size: 16px !important;
  }

  /* New Faculty Highlight Card Mobile Fix */
  .faculty-highlight-card .grid-2 {
    display: flex !important;
    flex-direction: column !important;
  }

  .faculty-highlight-card .highlight-content {
    padding: 30px 20px !important;
    order: 2;
  }

  .faculty-highlight-card .highlight-image {
    min-height: 250px !important;
    order: 1;
  }

  /* Faculty Page Mobile - Improved Native Look */
  .faculty-card-msg {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px;
    padding: 20px !important;
  }

  .faculty-img {
    height: 480px !important;
    /* Extra height to avoid cutting heads */
    object-position: top !important;
  }

  .faculty-card h4 {
    font-size: 15px;
  }

  /* Legacy Section (Architect of Kota Success) Mobile Fix */
  .legacy-grid {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
    text-align: center;
  }

  .legacy-img {
    border-radius: 15px 80px 15px 80px !important;
  }

  .legacy-points {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    margin-top: 30px !important;
  }

  .point-item {
    text-align: left;
    background: var(--bg-light);
    padding: 15px;
    border-radius: var(--radius-sm);
  }

  @keyframes slideDownNav {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Contact Page Grid Fix */
  .contact-grid {
    display: flex !important;
    flex-direction: column !important;
  }
}

/* Slider System */
.slider-container {
  position: relative;
  overflow: hidden;
  padding: 20px 0;
}

.slider-track {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  /* Hide scrollbar Firefox */
  padding-bottom: 20px;
  -ms-overflow-style: none;
  /* Hide scrollbar IE/Edge */
}

.slider-track::-webkit-scrollbar {
  display: none;
  /* Hide scrollbar Chrome/Safari */
}

.slider-track .program-card-premium,
.slider-track .testimonial-card {
  flex: 0 0 calc(33.333% - 20px);
  scroll-snap-align: start;
  min-width: 300px;
}

@media (max-width: 1024px) {

  .slider-track .program-card-premium,
  .slider-track .testimonial-card {
    flex: 0 0 calc(50% - 15px);
  }
}

@media (max-width: 768px) {

  .slider-track .program-card-premium,
  .slider-track .testimonial-card {
    flex: 0 0 88%;
    max-width: 330px;
  }
}

.slider-nav {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

.slider-arrow {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  color: var(--primary);
  font-size: 20px;
}

.slider-arrow:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.footer-logo {
  height: 90px;
  margin-bottom: 25px;
  /* Force visibility on light background */
}

/* Go to Top Button */
.back-to-top {
  position: fixed;
  bottom: 100px;
  /* Above the floating island */
  right: 25px;
  width: 45px;
  height: 45px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(42, 66, 145, 0.3);
  z-index: 1000;
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
  bottom: 95px;
}

.back-to-top:hover {
  background: var(--accent);
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(227, 30, 36, 0.4);
}

/* Lightbox Styling */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  cursor: zoom-out;
  backdrop-filter: blur(10px);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lightbox.active img {
  transform: scale(1);
}

/* Close indicator for mobile */
.lightbox::after {
  content: "Click anywhere to close";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 15px;
  background: rgba(0, 0, 0, 0.4);
  color: #ffffff;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  text-align: center;
  backdrop-filter: blur(5px);
}


/* Main Hero Slider Styling */
.main-slider {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 1920 / 450;
  overflow: visible;
  /* Changed to visible for dots */
  background: #fff;
  margin: 0 auto 50px !important;
  /* Added margin for dots */
  padding: 0 !important;
}

@media (max-width: 1024px) {
  .main-slider {
    aspect-ratio: 16 / 5;
  }
}

@media (max-width: 768px) {
  .main-slider {
    aspect-ratio: 16 / 7;
    height: auto;
    margin-bottom: 50px !important;
  }
}

.slider-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.main-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s;
  z-index: 1;
}

.main-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.main-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  /* Ensures white space matches banner if ratio differs */
  object-position: center;
}

/* Slider Controls */
.slider-controls {
  display: none !important;
  /* Hidden on all devices as requested */
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 30px;
  z-index: 10;
  pointer-events: none;
}

.slider-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--primary);
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  pointer-events: auto;
}

.slider-btn:hover {
  background: var(--primary);
  color: white;
}

/* Dash Navigation */
.slider-dots {
  position: absolute;
  bottom: -35px;
  /* Repositioned below the slider */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.05);
  padding: 6px 16px;
  border-radius: 30px;
}

.dot {
  width: 15px;
  height: 3px;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.dot.active {
  width: 35px;
  background: var(--accent);
}

.dot:hover {
  background: rgba(255, 255, 255, 0.6);
}

@media (max-width: 1024px) {
  .main-slider {
    aspect-ratio: 16 / 5;
  }
}

@media (max-width: 768px) {
  .main-slider {
    aspect-ratio: 16 / 7;
  }

  .slider-btn {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .slider-controls {
    padding: 0 15px;
  }
}

/* New Legacy Showcase Premium */
.legacy-showcase-premium {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e1b4b 100%);
  padding: 80px 0;
  color: white;
  position: relative;
  overflow: hidden;
}

.legacy-showcase-premium::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(254, 195, 20, 0.15) 0%, transparent 70%);
  z-index: 1;
}

.legacy-stats-grid-v2 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  position: relative;
  z-index: 2;
}

.legacy-stat-card-v2 {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  padding: 30px 20px;
  border-radius: 20px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.legacy-stat-card-v2:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--secondary);
}

.legacy-stat-card-v2 i {
  font-size: 32px;
  color: var(--secondary);
  margin-bottom: 15px;
  display: block;
}

.legacy-stat-card-v2 h3 {
  font-size: 28px;
  color: #fff;
  margin-bottom: 5px;
}

.legacy-stat-card-v2 p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.legacy-trust-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-top: 50px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
}

.trust-item i {
  color: var(--secondary);
  font-size: 24px;
}

@media (max-width: 1024px) {
  .legacy-stats-grid-v2 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .legacy-stats-grid-v2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .legacy-trust-bar {
    gap: 20px;
  }

  .trust-item {
    font-size: 14px;
  }
}

/* Premium USP Section Styling */
.usp-premium-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.usp-premium-card {
  background: white;
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.usp-premium-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.usp-premium-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 50px -12px rgba(42, 66, 145, 0.15);
  border-color: rgba(42, 66, 145, 0.1);
}

.usp-premium-card:hover::after {
  transform: scaleX(1);
}

.usp-premium-icon {
  width: 60px;
  height: 60px;
  background: var(--bg-light);
  color: var(--primary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 25px;
  transition: all 0.5s ease;
}

.usp-premium-card:hover .usp-premium-icon {
  background: var(--primary);
  color: white;
  transform: rotateY(360deg);
}

.usp-premium-card h4 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--primary);
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
}

.usp-premium-card p {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 15px;
  flex-grow: 1;
}

@media (max-width: 992px) {
  .usp-premium-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .usp-premium-grid {
    grid-template-columns: 1fr;
  }

  .usp-premium-card {
    padding: 30px;
  }
}

/* Design 3: Impact Bento Layout */
.usp-impact-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 24px;
  margin-top: 60px;
}

.usp-impact-card {
  background: white;
  padding: 40px;
  border-radius: 24px;
  border: 1px solid rgba(42, 66, 145, 0.08);
  box-shadow: 0 10px 30px rgba(42, 66, 145, 0.03);
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.usp-impact-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 30px 60px rgba(42, 66, 145, 0.12);
  border-color: var(--primary);
}

/* Bento Sizing */
.usp-impact-card.large {
  grid-column: span 7;
  background: linear-gradient(135deg, var(--primary), #1a2c63);
  color: white;
}

.usp-impact-card.medium {
  grid-column: span 5;
}

.usp-impact-card.small-4 {
  grid-column: span 4;
}

.usp-impact-card.large h4,
.usp-impact-card.large p {
  color: white;
}

.usp-impact-card.large .usp-impact-icon {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.usp-impact-icon {
  width: 50px;
  height: 50px;
  background: var(--bg-light);
  color: var(--accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.usp-impact-card h4 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.3;
}

.usp-impact-card p {
  font-size: 15px;
  line-height: 1.6;
  opacity: 0.9;
}

.impact-badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--secondary);
  color: var(--primary);
  border-radius: 6px;
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  margin-bottom: 15px;
}

@media (max-width: 1024px) {
  .usp-impact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .usp-impact-card.large,
  .usp-impact-card.medium,
  .usp-impact-card.small-4 {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  .usp-impact-grid {
    grid-template-columns: 1fr;
  }

  .usp-impact-card {
    padding: 30px;
  }
}

/* Design 4: The Advantage Mosaic (High-Impact Staggered) */
.usp-stunning-section {
  padding: 100px 0;
  background: white;
}

.usp-stunning-wrap {
  display: flex;
  flex-direction: column;
  gap: 120px;
}

.stunning-row {
  display: flex;
  align-items: center;
  gap: 60px;
}

.stunning-row.reverse {
  flex-direction: row-reverse;
}

.stunning-content {
  flex: 1;
  position: relative;
}

.stunning-number {
  position: absolute;
  top: -60px;
  left: -20px;
  font-size: 150px;
  font-weight: 900;
  color: rgba(42, 66, 145, 0.10);
  z-index: 0;
  line-height: 1;
}

.stunning-content h4 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  line-height: 1.2;
}

.stunning-content p {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 500px;
}

.stunning-visual {
  flex: 1;
  position: relative;
}

.visual-box {
  border-radius: 40px;
  padding: 80px 60px;
  /* Increased padding for more height */
  position: relative;
  transition: all 0.5s ease;
  overflow: hidden;
  border: 1px solid var(--border-light);
  background-size: cover;
  background-position: center;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 480px;
  /* Forced height for consistent look */
  /* Default overlay color */
  --visual-overlay: rgba(255, 255, 255, 0.92);
}

.visual-branding-box {
  background: white;
  color: var(--primary);
  padding: 20px 30px;
  border-radius: 20px;
  display: inline-block;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  max-width: 90%;
  animation: slideUp 0.6s ease-out;
}

.visual-branding-box span {
  font-weight: 800;
  font-size: 1.25rem;
  display: block;
}

.visual-branding-box p {
  color: var(--text-muted) !important;
  font-size: 14px !important;
  margin-top: 8px !important;
  line-height: 1.4 !important;
  opacity: 1 !important;
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.visual-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--visual-overlay);
  z-index: -1;
  transition: background 0.5s ease;
}


.visual-box:hover {
  transform: scale(1.02) rotate(-1deg);
  box-shadow: 0 40px 80px rgba(42, 66, 145, 0.1);
}

.visual-icon-large {
  font-size: 80px;
  color: var(--accent);
  margin-bottom: 30px;
}

.stunning-feature-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 80px;
}

.stunning-mini-card {
  padding: 30px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

.stunning-mini-card:hover {
  border-color: var(--accent);
  box-shadow: 0 20px 40px rgba(227, 30, 36, 0.1);
}

.stunning-mini-card i {
  font-size: 32px;
  color: var(--primary);
  margin-bottom: 15px;
}

@media (max-width: 992px) {

  .stunning-row,
  .stunning-row.reverse {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .stunning-content p {
    margin: 0 auto;
  }

  .stunning-number {
    left: 50%;
    transform: translateX(-50%);
  }

  .stunning-feature-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .stunning-feature-list {
    grid-template-columns: 1fr;
  }

  .stunning-content h4 {
    font-size: 2rem;
  }
}

/* Premium Course Cards */
.course-grid-premium {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.course-card-premium {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.course-card-premium:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px -12px rgba(42, 66, 145, 0.15);
  border-color: var(--accent);
}

.course-img-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.course-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.course-card-premium:hover .course-img-wrap img {
  transform: scale(1.1);
}

.course-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--primary) !important;
  color: white !important;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(42, 66, 145, 0.3);
  width: max-content;
  display: inline-block;
}

.course-duration {
  position: absolute;
  bottom: 15px;
  left: 15px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  color: var(--primary);
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 2;
}

.course-info-wrap {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.course-info-wrap h4 {
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 12px;
  font-weight: 800;
}

.course-info-wrap p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 25px;
  flex-grow: 1;
}

.course-features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 25px;
  padding-top: 15px;
  border-top: 1px solid var(--border-light);
}

.feature-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  background: var(--bg-light);
  padding: 4px 10px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.course-action {
  margin-top: auto;
}

.course-action .btn {
  width: 100%;
  justify-content: center;
  padding: 14px;
  font-size: 15px;
}

@media (max-width: 768px) {
  .course-grid-premium {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .course-card-premium {
    max-width: 350px;
    width: 100%;
  }

  .course-img-wrap {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 3/2 !important;
  }

  .course-img-wrap img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
}

/* End of section */
/* Artistic Images */
.artistic-img {
  border-radius: 120px 20px 120px 20px;
  object-fit: cover;
  display: block;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.artistic-img:hover {
  transform: scale(1.02);
}

.artistic-img-reverse {
  border-radius: 20px 120px 20px 120px;
}

/* Map Float Animation - Smooth & Professional */
.map-pulse {
  animation: map-float 2.5s infinite ease-in-out;
  display: inline-block;
  color: var(--secondary) !important;
  transform-origin: bottom center;
}

@keyframes map-float {
  0% {
    transform: translateY(0);
    text-shadow: 0 0 0px rgba(255, 179, 0, 0);
  }

  50% {
    transform: translateY(-4px);
    text-shadow: 0 5px 10px rgba(255, 179, 0, 0.4);
  }

  100% {
    transform: translateY(0);
    text-shadow: 0 0 0px rgba(255, 179, 0, 0);
  }
}

.urgency-pulse {
  animation: urgency-pulse 1.5s infinite;
  display: inline-block;
  font-weight: 800;
  box-shadow: 0 0 0 0 rgba(227, 30, 36, 0.7);
}

@keyframes urgency-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(227, 30, 36, 0.7);
  }

  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 15px rgba(227, 30, 36, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(227, 30, 36, 0);
  }
}

/* --- Lead Generation Popup --- */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(18, 33, 85, 0.85);
  /* Deep Brand Blue Overlay */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex !important;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  align-items: center;
  justify-content: center;
}

.popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.popup-content {
  background: white;
  width: 90%;
  max-width: 500px;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
  transform: translateY(40px) scale(0.95);
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  background: #ffffff;
}

.popup-overlay.active .popup-content {
  transform: translateY(0) scale(1);
}

.popup-header {
  background: linear-gradient(135deg, var(--primary), #1a253d);
  color: white;
  padding: 40px 30px;
  text-align: center;
  position: relative;
}

.popup-header h3 {
  color: white;
  font-size: 28px;
  margin-bottom: 8px;
}

.popup-header p {
  opacity: 0.9;
  font-size: 15px;
}

.popup-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex !important;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
  z-index: 10;
}

.popup-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.popup-body {
  padding: 30px;
}

.popup-form .form-group {
  margin-bottom: 15px;
}

.popup-form input,
.popup-form select {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #edf1f7;
  border-radius: 14px;
  font-size: 15px;
  font-family: inherit;
}

.popup-form input:focus,
.popup-form select:focus {
  border-color: var(--primary);
  outline: none;
  background: #fdfdfd;
}

.popup-or {
  text-align: center;
  margin: 25px 0;
  position: relative;
}

.popup-or::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: #eee;
  z-index: 1;
}

.popup-or span {
  background: white;
  padding: 0 20px;
  font-size: 14px;
  color: #999;
  position: relative;
  z-index: 2;
  font-weight: 600;
  letter-spacing: 1px;
}

.btn-popup-submit {
  background: var(--accent);
  color: white;
  border: none;
  width: 100%;
  padding: 16px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  margin-top: 10px;
  transition: all 0.3s;
}

.btn-popup-submit:hover {
  background: #c21a1f;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(227, 30, 36, 0.2);
}

.btn-popup-wa {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #25d366;
  color: white !important;
  text-decoration: none;
  padding: 16px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 16px;
  transition: all 0.3s;
}

.btn-popup-wa:hover {
  transform: translateY(-2px);
  background: #20bc59;
  box-shadow: 0 10px 20px rgba(37, 211, 102, 0.2);
}

/* --- Categorized Courses Styling --- */
.course-category-header {
  text-align: center;
  margin-bottom: 60px;
}

.course-category-header h3 {
  font-size: 28px;
  color: var(--primary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.course-category-header h3 i {
  color: var(--accent);
  font-size: 32px;
}

.course-category-header p {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 600px;
  margin: 0 auto;
}

.section-repeater {
  padding: 80px 0;
  background: linear-gradient(to bottom, #f8faff 0%, #ffffff 100%);
  border-top: 1px solid rgba(42, 66, 145, 0.05);
  border-bottom: 1px solid rgba(42, 66, 145, 0.05);
}

.course-anchor {
  display: block;
  position: relative;
  top: -100px;
  visibility: hidden;
}

.course-nav {
  background: white;
  padding: 15px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 70px;
  z-index: 100;
  display: flex;
  justify-content: center;
  gap: 30px;
  border-bottom: 1px solid var(--border-light);
}

.course-nav a {
  text-decoration: none;
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s;
  padding: 8px 16px;
  border-radius: 50px;
}

.course-nav a:hover {
  background: var(--primary);
  color: white;
}

@media (max-width: 768px) {
  .course-nav {
    display: none;
  }
}

/* --- Homepage Course Tracks --- */
.btn-tab {
  background: white;
  color: var(--primary);
  border: 1px solid var(--border-light);
  padding: 10px 25px;
  font-weight: 700;
  font-size: 14px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-tab.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 15px rgba(42, 66, 145, 0.2);
}

.course-track-content {
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 500px) {
  .popup-header {
    padding: 35px 20px;
  }

  .popup-header h3 {
    font-size: 22px;
  }

  .popup-body {
    padding: 25px 20px;
  }
}

/* --- Scroll Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.scale-in.active {
  opacity: 1;
  transform: scale(1);
}

.stagger-1 {
  transition-delay: 0.1s;
}

.stagger-2 {
  transition-delay: 0.2s;
}

.stagger-3 {
  transition-delay: 0.3s;
}

.stagger-4 {
  transition-delay: 0.4s;
}

.stagger-5 {
  transition-delay: 0.5s;
}

/* Results Page Grid & Cards */
.stat-poster-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 50px;
  margin-top: 60px;
}

.poster-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  border: 1px solid var(--border-light);
}

.poster-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.poster-img {
  width: 100%;
  border-radius: var(--radius-md);
  display: block;
  cursor: zoom-in;
}

.poster-info {
  padding: 25px 10px 10px;
  text-align: center;
}

.poster-year {
  font-size: 14px;
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.year-section {
  padding: 80px 0;
}

.year-section:nth-child(even) {
  background-color: var(--bg-light);
}

.section-tag {
  display: inline-block;
  padding: 8px 20px;
  background: var(--secondary);
  color: var(--primary);
  font-weight: 800;
  border-radius: 50px;
  margin-bottom: 20px;
  font-size: 14px;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  right: 30px;
  bottom: 100px;
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: none;
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
  bottom: 90px;
}

.back-to-top:hover {
  background: var(--accent);
  transform: translateY(-5px);
}