/* Color Palette & CSS Tokens */
:root {
  --blue: #003FA3;
  --teal: #008080;
  --deep: #155F7A;
  --ink: #0f172a;
  --muted: #64748b;
  --gold: #FFC20D;
  --panel: #ffffff;
  --soft-bg: #f8fafc;
  --border-line: #e2e8f0;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 25px rgba(0, 63, 163, 0.08);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.16);
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--ink);
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  text-decoration: none;
}

/* Base Spacing Standard across all sections */
.section {
  padding: 75px 0;
}

@media (max-width: 768px) {
  .section {
    padding: 50px 0;
  }
}

/* 1) Header / Topbar */
.topbar {
  background: #ffffff;
  border-bottom: 1px solid var(--border-line);
}

.logo {
  height: 68px;
  transition: transform 0.25s ease;
}

.logo:hover {
  transform: scale(1.02);
}

.logo-pair {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  white-space: nowrap;
}

.top-item i {
  font-size: 1.05rem;
  color: var(--blue);
  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-radius: 50%;
  height: 44px;
  width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.top-item:hover i {
  background: var(--blue);
  color: #ffffff;
  transform: translateY(-2px);
}

.topbar-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.6px;
}

.topbar-value a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--blue);
  transition: color 0.2s;
}

.topbar-value a:hover {
  color: #002766;
}

/* Topbar Mobile Alignment */
@media (max-width: 767.98px) {
  .logo {
    height: 52px;
  }
  .top-item {
    flex-direction: column;
    gap: 0.25rem;
    text-align: center;
    white-space: normal;
  }
  .top-item i {
    height: 36px;
    width: 36px;
    font-size: 0.9rem;
    margin: 0 auto;
  }
  .topbar-label {
    font-size: 0.65rem;
    line-height: 1.1;
  }
  .topbar-value a {
    font-size: 0.55rem!important;
    line-height: 1.15;
    display: block;
    word-break: normal;
  }
}

/* 2) Hero Section */
.hero {
  position: relative;
  background: #0b2230 url('../images/latest-banner.webp') top center / cover no-repeat;
  min-height: 620px;
  display: flex;
  align-items: center;
}

.hero-content-wrap {
  z-index: 2;
}

.hero-caption-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  padding: 34px;
  box-shadow: var(--shadow-lg);
}

.live-pill {
  background: var(--gold);
  color: #111;
  font-weight: 800;
  font-size: 0.84rem;
  letter-spacing: 1.2px;
  padding: 6px 18px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(255, 194, 13, 0.45);
}

.pulsing-dot {
  width: 8px;
  height: 8px;
  background: #dc3545;
  border-radius: 50%;
  display: inline-block;
  animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 7px rgba(220, 53, 69, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}

.hero-year-tag {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.8px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-tag {
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1.18;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #ffffff;
}

.bold-txt {
  font-size: 2rem;
  font-weight: 800 !important;
}

.hero-tag span {
  font-weight: 300;
  color: #ffbf00;
}

.hero-sub {
  color: #e2eaf0;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Floating Admission Form Card */
.apply-card {
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  box-shadow: 0 22px 48px rgba(10, 31, 41, 0.28);
}

.apply-title {
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--blue);
}

.apply-subtitle {
  font-size: 0.82rem;
  color: var(--muted);
}

.form-control, .form-select {
  height: 44px;
  border: 1px solid #dce4eb;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.form-control:focus, .form-select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 63, 163, 0.12);
}

.btn-apply {
  background: var(--gold);
  color: #1a1a1a;
  font-weight: 800;
  height: 44px;
  border-radius: 8px;
  border: none;
  transition: all 0.25s ease;
}

.btn-apply:hover {
  background: #ffb400;
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(255, 194, 13, 0.4);
}

.fine {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}

/* Mobile-only form section below banner */
.mobile-apply-section {
  background-color: #ffffff;
}

.mobile-apply-card {
  box-shadow: none;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.mobile-apply-card .apply-title {
  color: #111827;
  font-size: 1.25rem;
}

/* 3) Foundation of Excellence Section */
.unique-wrap {
  background: #ffffff;
}

.excellence-main-title {
  color: #174291;
  font-size: 2rem;
  font-weight: 800;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.84rem;
  font-weight: 600;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.pill-blue { border: 1px solid #c7d8f9; color: #1e3a8a; }
.pill-green { border: 1px solid #bbf7d0; color: #065f46; }
.pill-orange { border: 1px solid #fed7aa; color: #9a3412; }
.pill-purple { border: 1px solid #e9d5ff; color: #581c87; }

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.dot-blue { background: #3b82f6; }
.dot-green { background: #10b981; }
.dot-orange { background: #f97316; }
.dot-purple { background: #8b5cf6; }

/* Large Navy Blue Container Shell */
.excellence-navy-board {
  background: #193687;
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(10, 31, 74, 0.22);
}

.bullet-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.bullet-white { background: #ffffff; }
.bullet-green { background: #10b981; }
.bullet-orange { background: #f97316; }
.bullet-purple { background: #a855f7; }

/* Foundation Cards */
.foundation-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 20px;
  height: 100%;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.foundation-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.2);
}

.foundation-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.card-accent-blue::before { background: #2563eb; }
.card-accent-green::before { background: #10b981; }
.card-accent-orange::before { background: #f97316; }
.card-accent-purple::before { background: #8b5cf6; }

.stat-number {
  font-size: 1.65rem;
  font-weight: 800;
  color: #174291;
  line-height: 1.15;
}

.stat-category-label {
  font-size: 0.82rem;
  font-weight: 700;
  margin-top: 4px;
  margin-bottom: 6px;
  line-height: 1.25;
}

.text-blue { color: #1d4ed8; }
.text-green { color: #059669; }
.text-orange { color: #d97706; }
.text-purple { color: #7c3aed; }

.stat-description {
  font-size: 0.78rem;
  color: #1e293b;
  line-height: 1.4;
  font-weight: 500;
}

.stat-icon-wrapper {
  flex-shrink: 0;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 4) Program & Admissions Deep Section */
.deep {
  background-color: #155F7A;
  color: #f8fafc;
}

.program-lead-text {
  font-size: 1.05rem;
  color: #ffffff;
  line-height: 1.7;
}

.prog-img-wrap img {
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.inner-sub-section {
  padding-top: 30px;
}

.info-divider {
  width: 54px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin: 12px auto 0;
}

/* White Card Shell */
.tile-creative-white {
  background: #ffffff;
  border-radius: 20px;
  padding: 28px 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid #edf2f7;
  position: relative;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(7, 33, 44, 0.25);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.32s ease;
}

.tile-creative-white::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
}

.tile-creative-white.border-top-blue::before { background: linear-gradient(90deg, #0284c7, #2563eb); }
.tile-creative-white.border-top-amber::before { background: linear-gradient(90deg, #fbbf24, #f97316); }
.tile-creative-white.border-top-cyan::before { background: linear-gradient(90deg, #2dd4bf, #0891b2); }
.tile-creative-white.border-top-purple::before { background: linear-gradient(90deg, #c084fc, #9333ea); }
.tile-creative-white.border-top-gold::before { background: linear-gradient(90deg, #FFC20D, #f59e0b); }
.tile-creative-white.border-top-emerald::before { background: linear-gradient(90deg, #34d399, #059669); }

.tile-creative-white:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 42px rgba(4, 22, 31, 0.4);
}

.tile-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.tile-icon-box {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  transition: transform 0.25s ease;
}

.tile-creative-white:hover .tile-icon-box {
  transform: scale(1.08);
}

.bg-blue-subtle { background: #eff6ff; }
.bg-amber-subtle { background: #fffbeb; }
.bg-cyan-subtle { background: #ecfeff; }
.bg-purple-subtle { background: #faf5ff; }
.bg-gold-subtle { background: #fefce8; }
.bg-emerald-subtle { background: #f0fdf4; }
.text-purple { color: #8b5cf6 !important; }

/* Badges & Tags */
.tile-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  padding: 5px 12px;
  border-radius: 50px;
}

.badge-blue { background: #eff6ff; color: #0284c7; border: 1px solid #bfdbfe; }
.badge-amber { background: #fffbeb; color: #d97706; border: 1px solid #fde68a; }
.badge-cyan { background: #ecfeff; color: #0891b2; border: 1px solid #a5f3fc; }
.badge-purple { background: #faf5ff; color: #7c3aed; border: 1px solid #ddd6fe; }
.badge-emerald { background: #f0fdf4; color: #059669; border: 1px solid #a7f3d0; }

.tile-title-dark {
  color: #0f172a;
  font-weight: 800;
  font-size: 1.18rem;
  margin-bottom: 8px;
  letter-spacing: 0.2px;
}

.tile-desc-dark {
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 0;
}

.tile-val-dark {
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 6px;
}

.fee-amount-dark {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 6px;
}

.tile-subtext-dark {
  color: #64748b;
  font-size: 0.84rem;
  line-height: 1.5;
}

.highlight-gold-card {
  border: 2px solid #FFC20D;
}

/* Process & Dash Wrappers */
.process-card-wrap, .dash-wrap {
  background: #ffffff;
  border-radius: 20px;
  padding: 20px 0px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25);
}

.process-card-wrap-trans {
  background: none !important;
  box-shadow: none !important;
}

.fee-struct {
  background: #ffffff;
  border-radius: 22px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25);
}

.fee-sub-card {
  background: #f8fafc;
  border: 1px solid var(--border-line);
  border-radius: 14px;
  padding: 12px;
  transition: transform 0.25s ease;
}

.fee-sub-card:hover {
  transform: translateY(-3px);
}

/* 5) Awards & Rankings Carousel */
.awards-section {
  background: #ffffff;
}

.carousel-wrapper {
  overflow: hidden;
  position: relative;
  padding-bottom: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.recognitions-carousel {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: scrollLoop 25s linear infinite;
}

.recognition-card {
  background: #ffffff;
  border-radius: 18px;
  flex: 0 0 280px;
  text-align: center;
  padding: 42px 20px 32px 20px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  transition: transform 0.25s ease;
}

.recognition-card:hover {
  transform: translateY(-4px);
}

.badge {
  margin-bottom: 18px;
  margin-top: -30px;
}

.crown {
  width: 56px;
  display: block;
  margin: 0 auto 5px;
}

.subtitle {
  color: #ae9549;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.description {
  color: #232323;
  font-size: 0.98rem;
  margin-bottom: 20px;
  min-height: 52px;
}

.org-logo {
  height: 38px;
  margin-bottom: 4px;
  margin-top: auto;
}

.org-name {
  color: #222;
  font-size: 0.96rem;
  font-weight: 700;
}

@keyframes scrollLoop {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* 6) Alumni Testimonials */
.testimonials-slider-container {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  padding: 0 54px;
}

.testimonials-slider-viewport {
  overflow: hidden;
  width: 100%;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.testimonials-slider-viewport.dragging {
  cursor: grabbing;
}

.testimonials-slider-track {
  display: flex;
  will-change: transform;
}

.testimonials-slider-card {
  flex: 0 0 33.333333%;
  max-width: 33.333333%;
  padding: 10px 12px;
  box-sizing: border-box;
}

.testi-card {
  background: #ffffff;
  border: 1px solid var(--border-line);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  transition: all 0.28s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.testi-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: #bfdbfe;
}

.testi-avatar-box {
  width: 76px;
  height: 76px;
  margin: 0 auto;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--gold), var(--blue));
  box-shadow: 0 6px 14px rgba(0, 63, 163, 0.15);
  flex-shrink: 0;
}

.testi-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #ffffff;
}

.testi-name {
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--blue);
  margin-bottom: 2px;
}

.testi-meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 14px;
  font-weight: 500;
}

.testi-quote {
  font-size: 0.88rem;
  color: #334155;
  line-height: 1.65;
  font-style: italic;
}

.testi-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 12px rgba(0, 63, 163, 0.25);
  transition: all 0.25s ease;
  z-index: 5;
  cursor: pointer;
}

.testi-nav-btn:hover:not(:disabled) {
  background: #002d7a;
  transform: translateY(-50%) scale(1.06);
}

.testi-nav-btn:disabled {
  background: #cbd5e1;
  color: #94a3b8;
  cursor: not-allowed;
  box-shadow: none;
}

.testi-nav-btn.btn-prev {
  left: 0;
}

.testi-nav-btn.btn-next {
  right: 0;
}

/* 7) Footer */
.site-footer {
  background: #ffffff;
}

.copyright-text {
  color: var(--blue);
  font-size: 0.88rem;
}

/* Responsive Breakpoints & Mobile Banner Optimization */
@media (max-width: 991.98px) {
  .bold-txt {
    font-size: 1.7rem;
  }

  .hero {
    min-height: 460px;
    padding: 20px;
    align-items: end;
    background: linear-gradient(180deg, rgba(8, 28, 48, 0.84) 0%, rgba(8, 28, 48, 0.62) 50%, rgba(8, 28, 48, 0.90) 100%),
                url('../images/latest-banner.webp') 18% / cover no-repeat;
  }

  .hero-caption-card {
    margin-bottom: 0;
    padding: 10px 0;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .hero-tag {
    font-size: 1.75rem;
    line-height: 1.25;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  }

  .hero-year-tag {
    font-size: 0.85rem;
  }

  .hero-sub {
    font-size: 0.88rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
  }

  .testimonials-slider-container {
    padding: 0 35px;
  }

  .testimonials-slider-card {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .excellence-navy-board {
    padding: 24px 16px;
  }
}

@media (max-width: 768px) {
  .recognitions-carousel {
    gap: 1rem;
    animation: scrollLoopMobile 30s linear infinite;
  }

  .recognition-card {
    flex-basis: 72vw;
    padding: 32px 14px 24px;
  }

  @keyframes scrollLoopMobile {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
  }

  .process-card-wrap, .dash-wrap, .fee-struct {
    padding: 14px;
  }

  .testimonials-slider-container {
    padding: 0 10px;
  }

  .testi-nav-btn {
    display: none;
  }
}