/* ==========================================================================
   CONNECT AFRICA VOCATIONAL INSTITUTE (CAVI) - DESIGN SYSTEM & STYLESHEET
   Motto: "Never Give Up" | MoES TVET Reg: UVT505 | Mukono, Uganda
   ========================================================================== */

:root {
  /* Brand Palette */
  --cavi-navy: #0A192F;
  --cavi-navy-dark: #060D17;
  --cavi-navy-light: #162A45;
  --cavi-navy-surface: #1E3A5F;

  --cavi-red: #E5242A;
  --cavi-red-dark: #C5161C;
  --cavi-red-light: #FF4D53;
  --cavi-red-subtle: #FFF1F2;

  --cavi-cyan: #00AEEF;
  --cavi-cyan-dark: #0284C7;
  --cavi-cyan-light: #38BDF8;
  --cavi-cyan-subtle: #F0F9FF;

  --cavi-amber: #D97706;
  --cavi-amber-light: #FEF3C7;
  --cavi-green: #10B981;
  --cavi-green-subtle: #ECFDF5;

  /* Neutrals */
  --text-dark: #0F172A;
  --text-muted: #475569;
  --text-light: #94A3B8;
  --text-white: #FFFFFF;

  --bg-page: #F8FAFC;
  --bg-surface: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-alt: #F1F5F9;

  --border-subtle: #E2E8F0;
  --border-focus: #00AEEF;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 24px -4px rgba(10, 25, 47, 0.1), 0 4px 6px -2px rgba(10, 25, 47, 0.04);
  --shadow-xl: 0 24px 48px -12px rgba(10, 25, 47, 0.18);
  --shadow-glow-red: 0 10px 25px -5px rgba(229, 36, 42, 0.35);
  --shadow-glow-cyan: 0 10px 25px -5px rgba(0, 174, 239, 0.35);

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 26px;
  --radius-full: 9999px;

  /* Transitions */
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base Setup */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-page);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

button,
input,
select,
textarea {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   Top Utility Bar
   ========================================================================== */
.top-bar {
  background-color: var(--cavi-navy-dark);
  color: #CBD5E1;
  font-size: 0.82rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.accreditation-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(229, 36, 42, 0.15);
  border: 1px solid rgba(229, 36, 42, 0.3);
  color: #FECDD3;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.accreditation-pill .reg-badge {
  background: var(--cavi-red);
  color: #FFF;
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
}

.top-bar-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.top-bar-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #94A3B8;
  transition: var(--transition);
}

.top-bar-link:hover {
  color: #FFF;
}

/* ==========================================================================
   Main Header & Navigation Bar
   ========================================================================== */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 4px 20px -2px rgba(10, 25, 47, 0.05);
  transition: var(--transition);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-logo {
  height: 90px;
  width: auto;
  max-height: 96px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.brand-wrapper:hover .brand-logo {
  transform: scale(1.05) rotate(2deg);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--cavi-navy);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.brand-title span.accent-red {
  color: var(--cavi-red);
}

.brand-title span.accent-cyan {
  color: var(--cavi-cyan-dark);
}

.brand-subtitle {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-dark);
  position: relative;
  padding: 0.35rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2.5px;
  background: var(--cavi-red);
  border-radius: var(--radius-full);
  transition: width 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--cavi-red);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Navigation Dropdown Menus */
.nav-item {
  position: relative;
}

.nav-item-dropdown {
  position: relative;
}

.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}

.dropdown-toggle i {
  font-size: 0.72rem;
  transition: transform 0.25s ease;
  margin-left: 0.15rem;
}

.nav-item-dropdown:hover .nav-caret,
.nav-item-dropdown:focus-within .nav-caret {
  transform: rotate(180deg);
  color: var(--cavi-red);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  background: #FFFFFF;
  border-radius: var(--radius-md);
  box-shadow: 0 16px 36px -4px rgba(10, 25, 47, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.06);
  padding: 0.6rem 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1050;
}

.nav-item-dropdown:hover .nav-dropdown-menu,
.nav-item-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: block;
  padding: 0.65rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  transition: var(--transition);
  border-left: 3px solid transparent;
}

.dropdown-link:hover {
  background: var(--bg-alt);
  color: var(--cavi-red);
  border-left-color: var(--cavi-red);
  padding-left: 1.5rem;
}

.dropdown-link .dropdown-sub {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 0.15rem;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--cavi-navy);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.4rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.7rem 1.45rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cavi-red) 0%, #d11b22 100%);
  color: #FFF;
  box-shadow: 0 4px 14px -1px rgba(229, 36, 42, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #FF3B43 0%, var(--cavi-red) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -2px rgba(229, 36, 42, 0.5);
  color: #FFF;
}

.btn-secondary {
  background: var(--cavi-navy);
  color: #FFF;
  box-shadow: 0 4px 14px -1px rgba(10, 25, 47, 0.3);
}

.btn-secondary:hover {
  background: var(--cavi-navy-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -2px rgba(10, 25, 47, 0.4);
  color: #FFF;
}

.btn-outline {
  background: transparent;
  color: var(--cavi-navy);
  border: 1.5px solid var(--border-subtle);
}

.btn-outline:hover {
  background: var(--bg-alt);
  border-color: var(--cavi-navy);
  color: var(--cavi-navy);
}

.btn-outline-white {
  background: transparent;
  color: #FFF;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #FFF;
  color: #FFF;
}

.btn-sm {
  padding: 0.45rem 0.95rem;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 0.9rem 1.95rem;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

/* ==========================================================================
   Hero Section (Home Page 2-Column with 4-Image Slider Showcase)
   ========================================================================== */
.hero-section {
  position: relative;
  background-color: #060D17;
  background-image: 
    radial-gradient(rgba(255, 255, 255, 0.08) 1.5px, transparent 1.5px),
    radial-gradient(120% 85% at 85% 15%, #18345C 0%, #0B1E38 45%, #050B14 100%);
  background-size: 28px 28px, 100% 100%;
  color: #FFFFFF;
  padding: 5rem 0 6rem;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -15%;
  right: -8%;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(229, 36, 42, 0.12) 0%, rgba(24, 52, 92, 0.3) 50%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -15%;
  left: 5%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(24, 52, 92, 0.35) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3.5rem;
  position: relative;
  z-index: 2;
}

.hero-container-single {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
}

.hero-content-centered {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-content-centered .hero-motto-tag {
  align-self: center;
}

.hero-content-centered .hero-actions {
  justify-content: center;
  width: 100%;
}

.hero-content-centered .hero-lead {
  margin-left: auto;
  margin-right: auto;
}

.hero-content-centered .hero-stats-row {
  max-width: 820px;
  width: 100%;
  margin: 0 auto;
  text-align: left;
}

.hero-motto-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(229, 36, 42, 0.22);
  border: 1.5px solid rgba(229, 36, 42, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #FFFFFF;
  padding: 0.45rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(229, 36, 42, 0.25);
}

.hero-motto-tag i {
  color: #FF4D53;
  animation: flameFlicker 1.8s infinite alternate;
}

@keyframes flameFlicker {
  0% { transform: scale(0.95); opacity: 0.8; }
  100% { transform: scale(1.15); opacity: 1; filter: drop-shadow(0 0 6px rgba(255, 77, 83, 0.8)); }
}

.hero-heading {
  font-family: var(--font-heading);
  font-size: 3.35rem;
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: 1.35rem;
  color: #FFFFFF;
}

.hero-heading .gradient-text {
  background: linear-gradient(135deg, #FF6B6B 0%, var(--cavi-red) 60%, #C5161C 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 10px rgba(229, 36, 42, 0.35));
}

.hero-lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #CBD5E1;
  margin-bottom: 2.25rem;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.1rem;
  margin-bottom: 2.75rem;
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  backdrop-filter: blur(8px);
}

.stat-item .stat-value {
  font-family: var(--font-heading);
  font-size: 1.95rem;
  font-weight: 900;
  color: #FFFFFF;
  line-height: 1;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: baseline;
  gap: 0.15rem;
}

.stat-item .stat-value span.highlight {
  color: var(--cavi-red-light, #FF4D53);
}

.stat-item .stat-label {
  font-size: 0.8rem;
  color: #94A3B8;
  line-height: 1.35;
}

/* ==========================================================================
   Hero Section & 4-Landscape Background Image Slider (Home Page Only)
   ========================================================================== */
.hero-slider-section {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 5.5rem 0 6rem;
}

.hero-slider-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), visibility 1s ease;
}

.hero-bg-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.hero-bg-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1);
  transition: transform 7s ease-out;
}

.hero-bg-slide.active img {
  transform: scale(1.05);
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 13, 23, 0.72) 0%, rgba(6, 13, 23, 0.86) 60%, rgba(6, 13, 23, 0.95) 100%);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
}

/* Slider Navigation Arrows */
.hero-slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.75);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.hero-slider-nav:hover {
  background: var(--cavi-red);
  border-color: var(--cavi-red);
  transform: translateY(-50%) scale(1.12);
  box-shadow: 0 8px 25px rgba(229, 36, 42, 0.6);
}

.hero-slider-prev {
  left: 24px;
}

.hero-slider-next {
  right: 24px;
}

/* Slider Pagination Dots */
.hero-slider-dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(10, 25, 47, 0.65);
  padding: 6px 14px;
  border-radius: 20px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
}

.hero-slider-dot.active {
  width: 28px;
  background: var(--cavi-red);
  box-shadow: 0 0 10px rgba(229, 36, 42, 0.85);
}

/* ==========================================================================
   Page Hero (Clean Multi-Page Inner Banner)
   ========================================================================== */
.page-hero {
  background: radial-gradient(100% 70% at 80% 20%, #152E52 0%, var(--cavi-navy) 60%, var(--cavi-navy-dark) 100%);
  color: #FFF;
  padding: 3.5rem 0 3.8rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.page-hero::after {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(0, 174, 239, 0.18) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #94A3B8;
  margin-bottom: 0.9rem;
}

.breadcrumb-nav a {
  color: #BAE6FD;
  transition: color 0.2s ease;
}

.breadcrumb-nav a:hover {
  color: #FFF;
}

.breadcrumb-nav i {
  font-size: 0.65rem;
  color: #64748B;
}

.page-hero-title {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 0.75rem;
  color: #FFF;
}

.page-hero-desc {
  font-size: 1.05rem;
  color: #CBD5E1;
  line-height: 1.6;
}

.breadcrumb-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: #94A3B8;
  margin-bottom: 1.15rem;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.breadcrumb-nav a {
  color: #BAE6FD;
  transition: color 0.2s ease;
}

.breadcrumb-nav a:hover {
  color: #FFF;
}

.breadcrumb-nav i {
  font-size: 0.65rem;
  color: #64748B;
}

.page-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(229, 36, 42, 0.24);
  border: 1.5px solid rgba(229, 36, 42, 0.5);
  color: #FECDD3;
  padding: 0.35rem 1.05rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.page-hero-title {
  font-family: var(--font-heading);
  font-size: 3.35rem;
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -0.025em;
  margin-bottom: 1.15rem;
  color: #FFFFFF;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}

.page-hero-title .gradient-text {
  background: linear-gradient(135deg, #FF7B7F 0%, var(--cavi-red) 55%, #C5161C 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 12px rgba(229, 36, 42, 0.4));
}

.page-hero-desc {
  font-size: 1.16rem;
  color: #E2E8F0;
  line-height: 1.7;
  max-width: 760px;
  margin-bottom: 2.25rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.page-hero-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
}

.page-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.3rem;
  border-radius: var(--radius-full);
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #F8FAFC;
  font-size: 0.88rem;
  font-weight: 700;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.page-hero-pill:hover {
  background: var(--cavi-red);
  border-color: var(--cavi-red);
  color: #FFFFFF;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(229, 36, 42, 0.45);
}

.page-hero-pill.primary {
  background: var(--cavi-red);
  border-color: var(--cavi-red);
  color: #FFFFFF;
}

.page-hero-pill.primary:hover {
  background: var(--cavi-red-dark);
  border-color: var(--cavi-red-dark);
}

/* ==========================================================================
   Section Headers & Shared Components
   ========================================================================== */
.section {
  padding: 5.5rem 0;
}

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

.section-dark {
  background-color: var(--cavi-navy);
  color: #FFF;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cavi-red);
  background: var(--cavi-red-subtle);
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.9rem;
}


.section-title {
  font-family: var(--font-heading);
  font-size: 2.35rem;
  font-weight: 800;
  color: var(--cavi-navy);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0.9rem;
}

.section-dark .section-title {
  color: #FFF;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.section-dark .section-desc {
  color: #94A3B8;
}

/* ==========================================================================
   About Section & Institutional Highlights
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
}

.about-features-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
}

.about-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: #FFF;
  padding: 1.15rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.about-feature-item:hover {
  transform: translateX(4px);
  border-color: var(--cavi-cyan);
  box-shadow: var(--shadow-md);
}

.feature-icon-box {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  background: var(--cavi-cyan-subtle);
  color: var(--cavi-cyan-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.feature-icon-box.red {
  background: var(--cavi-red-subtle);
  color: var(--cavi-red);
}

.feature-info h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--cavi-navy);
  margin-bottom: 0.25rem;
}

.feature-info p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.about-image-stack {
  position: relative;
}

.about-main-img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}

.about-floating-badge {
  position: absolute;
  bottom: -25px;
  left: -20px;
  background: #FFF;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border-left: 5px solid var(--cavi-red);
  max-width: 280px;
}

.about-floating-badge h5 {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--cavi-navy);
  margin-bottom: 0.2rem;
}

.about-floating-badge p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Spirituality, Fellowship & Community (from website.docx)
   ========================================================================== */
.ethos-card-container {
  background: linear-gradient(135deg, var(--cavi-navy) 0%, #132D4B 100%);
  border-radius: var(--radius-xl);
  padding: 3.5rem 3rem;
  color: #FFF;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.ethos-card-container::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 174, 239, 0.2) 0%, transparent 70%);
  filter: blur(50px);
}

.ethos-content-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  position: relative;
  z-index: 2;
  align-items: center;
}

.ethos-quote-block {
  font-size: 1.08rem;
  line-height: 1.7;
  color: #E2E8F0;
  margin-bottom: 1.75rem;
}

.faiths-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.faith-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: #BAE6FD;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

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

.value-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.value-box:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--cavi-cyan);
  transform: translateY(-3px);
}

.value-icon {
  font-size: 1.35rem;
  color: var(--cavi-cyan);
  margin-bottom: 0.5rem;
}

.value-title {
  font-weight: 700;
  font-size: 0.98rem;
  margin-bottom: 0.25rem;
  color: #FFF;
}

.value-desc {
  font-size: 0.82rem;
  color: #94A3B8;
  line-height: 1.4;
}

/* ==========================================================================
   Programs & Departments Catalog
   ========================================================================== */
.programs-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 3rem;
}

.filter-btn {
  background: #FFF;
  border: 1.5px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--cavi-navy);
  color: #FFF;
  border-color: var(--cavi-navy);
  box-shadow: var(--shadow-md);
}

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

.program-card {
  background: #FFF;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.program-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(0, 174, 239, 0.4);
}

.program-card-header {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: var(--cavi-navy);
}

.program-card-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.program-card:hover .program-card-header img {
  transform: scale(1.08);
}

.program-level-pill {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(10, 25, 47, 0.85);
  backdrop-filter: blur(6px);
  color: #FFF;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.program-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.program-trade-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--cavi-navy);
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

.program-tagline {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 1rem;
}

.program-meta-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.2rem;
  font-size: 0.82rem;
}

.program-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.meta-label {
  color: var(--text-muted);
  font-weight: 600;
}

.meta-val {
  font-weight: 700;
  color: var(--cavi-navy);
}

.program-modules-preview {
  margin-bottom: 1.25rem;
}

.modules-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.modules-list li {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.modules-list li i {
  color: var(--cavi-cyan-dark);
  font-size: 0.75rem;
}

.program-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.75rem;
}

/* ==========================================================================
   Fees Structure & Admissions Guidelines
   ========================================================================== */
.fees-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: flex-start;
}

.fee-breakdown-card {
  background: #FFF;
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-subtle);
}

.fee-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
}

.fee-table th,
.fee-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.9rem;
}

.fee-table th {
  background-color: var(--bg-alt);
  font-weight: 700;
  color: var(--cavi-navy);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.fee-table td.amount {
  text-align: right;
  font-weight: 700;
  color: var(--cavi-navy);
  font-family: var(--font-heading);
}

.fee-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-sm);
}

.fee-badge.one-time {
  background: var(--cavi-amber-light);
  color: var(--cavi-amber);
}

.fee-badge.termly {
  background: var(--cavi-cyan-subtle);
  color: var(--cavi-cyan-dark);
}

.copy-btn {
  background: var(--cavi-cyan);
  color: #FFF;
  border: none;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition);
}

.copy-btn:hover {
  background: var(--cavi-cyan-dark);
  transform: scale(1.02);
}

/* Admissions Guidelines & Checklist Sidebar */
.calc-widget {
  background: #FFF;
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--cavi-cyan);
  position: sticky;
  top: 90px;
}

.calc-widget-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--cavi-navy);
  margin-bottom: 0.5rem;
}

.calc-form-group {
  margin-bottom: 1.2rem;
}

.calc-form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.45rem;
}

.calc-select,
.calc-input {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  color: var(--text-dark);
  outline: none;
  transition: var(--transition);
}

.calc-select:focus,
.calc-input:focus {
  border-color: var(--cavi-cyan);
  box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.15);
}

.calc-total-box {
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin: 1.5rem 0;
  border: 1px solid var(--border-subtle);
}

.calc-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}

.calc-total-row.grand {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--cavi-navy);
  border-top: 1.5px dashed var(--border-subtle);
  padding-top: 0.75rem;
  margin-top: 0.5rem;
  margin-bottom: 0;
}

.calc-total-row.grand .total-figure {
  color: var(--cavi-red);
  font-size: 1.45rem;
  font-family: var(--font-heading);
}

/* ==========================================================================
   Campus Gallery & Lightbox
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 240px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  background: var(--cavi-navy);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.gallery-hover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 25, 47, 0.9) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.gallery-caption {
  color: #FFF;
  font-weight: 700;
  font-size: 0.9rem;
}

.gallery-tag {
  color: var(--cavi-cyan-light);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* Fullscreen Lightbox */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(6, 13, 23, 0.95);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 950px;
  width: 100%;
  text-align: center;
}

.lightbox-content img {
  max-height: 75vh;
  max-width: 100%;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.lightbox-caption-text {
  color: #FFF;
  margin-top: 1rem;
  font-weight: 600;
  font-size: 1.05rem;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFF;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  transition: var(--transition);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--cavi-red);
  border-color: var(--cavi-red);
  transform: scale(1.1);
}

.lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
}

.lightbox-prev {
  position: absolute;
  left: -60px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
}

/* ==========================================================================
   Admission Application Modal
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(10, 25, 47, 0.85);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow-y: auto;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: #FFF;
  width: 100%;
  max-width: 680px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  position: relative;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.modal-header {
  background: linear-gradient(135deg, var(--cavi-navy) 0%, var(--cavi-navy-dark) 100%);
  color: #FFF;
  padding: 1.5rem 2rem;
  position: relative;
}

.modal-header h3 {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.modal-header p {
  font-size: 0.85rem;
  color: #94A3B8;
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #FFF;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: var(--cavi-red);
}

.modal-body {
  padding: 2rem;
  overflow-y: auto;
}

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

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.35rem;
}

.form-control {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  color: var(--text-dark);
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--cavi-cyan);
  box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.15);
}

.form-disclaimer {
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  border-left: 3px solid var(--cavi-amber);
}

/* ==========================================================================
   Contact, Location & FAQ
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: flex-start;
}

.contact-card-info {
  background: #FFF;
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.contact-channel-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.channel-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: var(--cavi-red-subtle);
  color: var(--cavi-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.channel-icon.cyan {
  background: var(--cavi-cyan-subtle);
  color: var(--cavi-cyan-dark);
}

.channel-icon.green {
  background: var(--cavi-green-subtle);
  color: var(--cavi-green);
}

.channel-details h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--cavi-navy);
  margin-bottom: 0.2rem;
}

.channel-details p,
.channel-details a {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.phone-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.phone-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--bg-alt);
  border: 1px solid var(--border-subtle);
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--cavi-navy);
  transition: var(--transition);
}

.phone-chip:hover {
  background: var(--cavi-navy);
  color: #FFF;
  border-color: var(--cavi-navy);
}

/* Map Container */
.map-container {
  width: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--border-subtle);
  position: relative;
  background: #E2E8F0;
}

.map-container iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: none;
}

.form-success-alert {
  display: none;
  background: var(--cavi-green-subtle);
  border: 1.5px solid var(--cavi-green);
  color: #065F46;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.form-success-alert.show {
  display: block;
  animation: fadeIn 0.4s ease;
}

/* Vision, Mission & Core Values Component */
.vmv-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.vm-card {
  background: #FFF;
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.vm-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--cavi-red);
}

.vm-card.mission::before {
  background: var(--cavi-cyan);
}

.vm-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.vm-icon-badge {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: var(--cavi-red-subtle);
  color: var(--cavi-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  margin-bottom: 1.25rem;
}

.vm-card.mission .vm-icon-badge {
  background: var(--cavi-cyan-subtle);
  color: var(--cavi-cyan-dark);
}

.vm-card h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--cavi-navy);
  margin-bottom: 0.6rem;
}

.vm-card p {
  font-size: 1.08rem;
  color: var(--text-dark);
  line-height: 1.6;
  font-weight: 600;
}

.core-values-section-box {
  background: linear-gradient(135deg, var(--cavi-navy) 0%, #102542 100%);
  border-radius: var(--radius-xl);
  padding: 3rem 2.5rem;
  color: #FFF;
  box-shadow: var(--shadow-xl);
}

.core-values-cards-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.c-val-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 1.5rem 1rem;
  text-align: center;
  transition: var(--transition);
}

.c-val-card:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--cavi-cyan);
  transform: translateY(-4px);
}

.c-val-icon {
  width: 46px;
  height: 46px;
  margin: 0 auto 0.85rem;
  background: rgba(0, 174, 239, 0.18);
  color: var(--cavi-cyan-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.c-val-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: #FFF;
  margin-bottom: 0.35rem;
}

.c-val-desc {
  font-size: 0.78rem;
  color: #CBD5E1;
  line-height: 1.45;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background-color: var(--cavi-navy-dark);
  color: #94A3B8;
  padding: 4.5rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand h4 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #FFF;
  margin-bottom: 0.75rem;
}

.footer-col h5 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: #FFF;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 25px;
  height: 2px;
  background: var(--cavi-red);
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.88rem;
}

.footer-links-list a:hover {
  color: #FFF;
  transform: translateX(3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
}

/* Toast Notifications */
.toast-notification {
  position: fixed;
  bottom: 100px;
  right: 30px;
  background: var(--cavi-navy);
  color: #FFF;
  padding: 0.85rem 1.45rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  border-left: 4px solid var(--cavi-cyan);
  display: none;
  align-items: center;
  gap: 0.75rem;
  z-index: 10000;
  font-size: 0.9rem;
  font-weight: 600;
}

.toast-notification.active {
  display: flex;
}

/* Floating WhatsApp Quick Chat */
.floating-whatsapp-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 58px;
  height: 58px;
  background-color: #25D366;
  color: #FFF;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  box-shadow: 0 10px 25px -4px rgba(37, 211, 102, 0.5);
  z-index: 999;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.floating-whatsapp-btn:hover {
  transform: scale(1.1) translateY(-4px);
  box-shadow: 0 16px 30px -4px rgba(37, 211, 102, 0.6);
  color: #FFF;
}


/* ==========================================================================
   YCI-INSPIRED INSTITUTIONAL HOME PAGE COMPONENTS & ELEVATED STYLING
   ========================================================================== */

/* 1. Intakes Utility Badge */
.intakes-banner-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--cavi-red) 0%, #b81419 100%);
  color: #FFF;
  font-weight: 800;
  font-size: 0.76rem;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(229, 36, 42, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.intakes-banner-pill i {
  color: #FED7AA;
  font-size: 0.82rem;
  animation: pulse 2s infinite;
}

/* 2. Institutional Statistics Bar (YCI 4-Metric Floating Strip) */
.yci-counter-strip {
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 50px -12px rgba(10, 25, 47, 0.12), 0 0 0 1px rgba(10, 25, 47, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.8);
  padding: 2.25rem 2.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: -3.75rem;
  position: relative;
  z-index: 10;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.yci-counter-strip:hover {
  transform: translateY(-4px);
  box-shadow: 0 32px 64px -12px rgba(10, 25, 47, 0.18), 0 0 0 1px rgba(0, 174, 239, 0.25);
}

.counter-item {
  text-align: center;
  padding: 0.5rem 1.25rem;
  border-right: 1px solid var(--border-subtle);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: transform 0.25s ease;
}

.counter-item:last-child {
  border-right: none;
}

.counter-item:hover {
  transform: translateY(-3px);
}

.counter-number {
  font-family: var(--font-heading);
  font-size: 2.85rem;
  font-weight: 900;
  color: var(--cavi-navy);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 0.55rem;
  display: flex;
  align-items: baseline;
  justify-content: center;
}

.counter-number .counter-plus {
  color: var(--cavi-red);
  font-size: 1.8rem;
  margin-left: 0.2rem;
}

.counter-label {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.4;
}

/* 3. "Explore CAVI" 4 Action Cards Grid */
.explore-action-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
  margin-top: 1rem;
}

.explore-action-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.25rem 2rem 2rem;
  box-shadow: 0 4px 20px -2px rgba(10, 25, 47, 0.05);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.explore-action-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--border-subtle);
  transition: all 0.3s ease;
}

.explore-action-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -10px rgba(10, 25, 47, 0.12), 0 0 0 1px rgba(229, 36, 42, 0.2);
}

.explore-action-card:hover::before {
  background: var(--cavi-red);
  height: 5px;
}

.explore-icon-circle {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
  margin-bottom: 1.5rem;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  background: var(--cavi-red-subtle);
  color: var(--cavi-red);
}

.explore-action-card:hover .explore-icon-circle {
  transform: scale(1.1) rotate(-4deg);
  background: var(--cavi-red);
  color: #FFFFFF;
  box-shadow: 0 8px 20px rgba(229, 36, 42, 0.35);
}

.explore-card-title {
  font-family: var(--font-heading);
  font-size: 1.32rem;
  font-weight: 800;
  color: var(--cavi-navy);
  margin-bottom: 0.6rem;
  line-height: 1.25;
}

.explore-card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.75rem;
  flex-grow: 1;
}

.explore-card-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--cavi-red);
  transition: all 0.25s ease;
}

.explore-action-card:hover .explore-card-arrow {
  gap: 0.85rem;
  color: var(--cavi-red-dark);
}

.explore-action-card:hover .explore-card-arrow i {
  transform: translateX(4px);
}

/* 4. Academic Qualification Tiers Grid */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
  align-items: stretch;
}

.tier-card {
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.tier-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px -12px rgba(10, 25, 47, 0.16);
  border-color: rgba(0, 174, 239, 0.35);
}

.tier-header {
  padding: 2.25rem 2rem 2rem;
  background: linear-gradient(135deg, #B91C1C 0%, var(--cavi-red) 60%, #E63946 100%);
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}

.tier-header::after {
  content: '';
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.tier-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 900;
  color: #FFFFFF;
  line-height: 1.25;
  margin-bottom: 0.6rem;
}

.tier-duration {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.88);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
}

.tier-body {
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.tier-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.tier-features-list {
  list-style: none;
  margin-bottom: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tier-features-list li {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  line-height: 1.4;
}

.tier-features-list li i {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--cavi-green-subtle);
  color: var(--cavi-green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  flex-shrink: 0;
  margin-top: 1px;
}

/* 5. Discover the CAVI Difference (6 Pillars) */
.difference-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

.difference-card {
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  padding: 2.25rem 2rem;
  box-shadow: 0 4px 18px -2px rgba(10, 25, 47, 0.05);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.difference-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 4px;
  background: var(--cavi-red);
  transition: width 0.35s ease;
}

.difference-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 20px 40px -10px rgba(10, 25, 47, 0.12), 0 0 0 1px rgba(229, 36, 42, 0.15);
}

.difference-card:hover::before {
  width: 100%;
}

.difference-icon-wrap {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: var(--cavi-red-subtle);
  color: var(--cavi-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  margin-bottom: 1.35rem;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.difference-card:hover .difference-icon-wrap {
  transform: scale(1.1) rotate(5deg);
  background: var(--cavi-red);
  color: #FFF;
  box-shadow: 0 10px 22px rgba(229, 36, 42, 0.35);
}

.difference-title {
  font-family: var(--font-heading);
  font-size: 1.28rem;
  font-weight: 800;
  color: var(--cavi-navy);
  margin-bottom: 0.6rem;
  line-height: 1.25;
}

.difference-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* 6. Campus News & Practical Highlights */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

.news-card {
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  box-shadow: 0 4px 18px -2px rgba(10, 25, 47, 0.06);
  display: flex;
  flex-direction: column;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px -10px rgba(10, 25, 47, 0.14), 0 0 0 1px rgba(229, 36, 42, 0.25);
}

.news-card-img-wrap {
  height: 230px;
  overflow: hidden;
  position: relative;
  background: var(--cavi-navy-dark);
}

.news-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.news-card:hover .news-card-img-wrap img {
  transform: scale(1.08);
}

.news-date-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(10, 25, 47, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #FFF;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.25);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
  z-index: 2;
}

.news-card-body {
  padding: 1.85rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-card-title {
  font-family: var(--font-heading);
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--cavi-navy);
  line-height: 1.35;
  margin-bottom: 0.75rem;
  transition: color 0.25s ease;
}

.news-card:hover .news-card-title {
  color: var(--cavi-red);
}

.news-card-desc {
  font-size: 0.89rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.news-card-footer {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--cavi-red);
  transition: all 0.25s ease;
}

.link-arrow:hover,
.news-card:hover .link-arrow {
  gap: 0.85rem;
  color: var(--cavi-red-dark);
}

/* 7. Start Your Journey Pre-Footer CTA */
.journey-banner {
  background: radial-gradient(100% 120% at 90% 10%, #1A3E6D 0%, var(--cavi-navy) 50%, var(--cavi-navy-dark) 100%);
  color: #FFFFFF;
  border-radius: 28px;
  padding: 4.75rem 3.5rem;
  box-shadow: 0 28px 60px -15px rgba(10, 25, 47, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.journey-banner::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(24, 52, 92, 0.45) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.journey-banner::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(229, 36, 42, 0.18) 0%, transparent 70%);
  filter: blur(70px);
  pointer-events: none;
}

.journey-title {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 900;
  color: #FFFFFF;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 1.15rem;
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.journey-desc {
  font-size: 1.12rem;
  color: #CBD5E1;
  max-width: 700px;
  margin: 0 auto 2.25rem;
  line-height: 1.7;
  position: relative;
  z-index: 2;
}

.journey-hotlines {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.65rem 1.6rem;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 2.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  position: relative;
  z-index: 2;
}

.journey-hotlines i {
  color: #FF4D53;
  animation: pulse 2s infinite;
}

.journey-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

/* Institutional Cross-Trade Callout */
.cross-trade-banner {
  background: linear-gradient(135deg, var(--cavi-navy) 0%, #152E52 100%);
  border-radius: var(--radius-xl);
  padding: 3rem;
  color: #FFF;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cross-trade-title {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 800;
  color: #FFF;
  margin: 0.75rem 0;
  line-height: 1.25;
}

.cross-trade-desc {
  color: #CBD5E1;
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.cross-trade-img {
  border-radius: var(--radius-lg);
  width: 100%;
  height: 320px;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
  display: block;
}

/* 8. YCI Comprehensive Multi-Column Footer */
.footer-grid-6 {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-col h6 {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 800;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h6::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 26px;
  height: 2.5px;
  background: var(--cavi-red);
  border-radius: 2px;
}

.important-notice-box {
  background: rgba(229, 36, 42, 0.08);
  border: 1px solid rgba(229, 36, 42, 0.35);
  border-left: 5px solid var(--cavi-red);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.65rem;
  margin-bottom: 3rem;
  backdrop-filter: blur(8px);
}

.important-notice-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #FECDD3;
  font-weight: 800;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.important-notice-title i {
  color: #FF4D53;
}

.important-notice-text {
  font-size: 0.85rem;
  color: #CBD5E1;
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   Responsive Breakpoints & Layout Adaptations
   ========================================================================== */

/* Animation for Mobile Drawer */
@keyframes fadeInMenu {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 1. Large Tablets & Small Laptops (1025px - 1200px) */
@media (max-width: 1200px) {
  .nav-menu {
    gap: 1.15rem;
  }
  .nav-link {
    font-size: 0.88rem;
  }
  .hero-heading {
    font-size: 2.75rem;
  }
  .yci-counter-strip {
    padding: 2rem 1.75rem;
    gap: 1.25rem;
  }
  .explore-action-grid {
    gap: 1.25rem;
  }
}

/* 2. Tablets Landscape (769px - 1024px) */
@media (max-width: 1024px) {
  .top-bar-inner {
    justify-content: center;
    gap: 0.6rem;
    text-align: center;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .hero-content {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-lead {
    margin-left: auto;
    margin-right: auto;
  }

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

  .hero-stats-row {
    max-width: 620px;
    width: 100%;
  }

  .hero-visual {
    max-width: 580px;
    width: 100%;
    margin: 0 auto;
  }

  .yci-counter-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: -2.5rem;
    padding: 2rem 1.75rem;
  }
  
  .counter-item:nth-child(2) {
    border-right: none;
  }

  .counter-item:nth-child(1),
  .counter-item:nth-child(2) {
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 1.25rem;
  }

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

  .tier-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

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

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

  .core-values-cards-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.75rem;
  }

  .about-image-stack {
    max-width: 560px;
    margin: 0 auto;
  }

  .ethos-content-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .fees-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .vmv-container {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

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

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

/* 3. Tablets Portrait & Mobile Navigation Transition (max-width: 991px) */
@media (max-width: 991px) {
  .top-bar {
    display: none;
  }

  .navbar {
    padding: 0.65rem 0;
  }

  .brand-logo {
    height: 78px;
    max-height: 84px;
  }

  .main-header {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transform: none !important;
    filter: none !important;
  }

  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    background: #FFF;
    color: var(--cavi-navy);
    cursor: pointer;
    transition: var(--transition);
  }

  .mobile-toggle:hover {
    background: var(--cavi-navy);
    color: #FFF;
    border-color: var(--cavi-navy);
  }

  .nav-cta .btn-primary {
    display: none;
  }

  .nav-menu {
    position: fixed !important;
    top: 90px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: calc(100dvh - 90px) !important;
    max-height: calc(100dvh - 90px) !important;
    background: #FFFFFF !important;
    flex-direction: column !important;
    padding: 1.25rem 1.25rem 4rem !important;
    gap: 0.25rem !important;
    align-items: stretch !important;
    display: none !important;
    box-shadow: 0 25px 50px rgba(10, 25, 47, 0.3) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    z-index: 999999 !important;
    border-top: 1px solid var(--border-subtle) !important;
  }

  .nav-menu.open {
    display: flex !important;
    animation: fadeInMenu 0.2s ease forwards !important;
  }

  .nav-menu > li {
    width: 100% !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06) !important;
    padding: 0.35rem 0 !important;
    display: block !important;
  }

  .nav-link {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: var(--cavi-navy) !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    padding: 0.8rem 0.25rem !important;
    cursor: pointer !important;
    -webkit-tap-highlight-color: rgba(229, 36, 42, 0.08) !important;
    user-select: none !important;
  }

  .nav-caret {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 34px !important;
    height: 34px !important;
    border-radius: var(--radius-full) !important;
    background: rgba(10, 25, 47, 0.06) !important;
    font-size: 0.85rem !important;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s ease, color 0.25s ease !important;
    color: var(--cavi-navy) !important;
    flex-shrink: 0 !important;
    margin-left: 0.5rem !important;
  }

  .nav-item-dropdown {
    width: 100% !important;
    display: block !important;
    transition: background 0.2s ease !important;
  }

  .nav-item-dropdown.open {
    background: #F8FAFC !important;
    border-radius: var(--radius-md) !important;
    padding: 0.2rem 0.5rem 0.6rem !important;
    margin-bottom: 0.35rem !important;
  }

  .nav-item-dropdown.open > .nav-link {
    color: var(--cavi-red) !important;
  }

  .nav-item-dropdown.open .nav-caret {
    transform: rotate(180deg) !important;
    background: var(--cavi-red) !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 10px rgba(229, 36, 42, 0.35) !important;
  }

  .nav-dropdown-menu {
    position: static !important;
    display: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    box-shadow: 0 4px 14px rgba(10, 25, 47, 0.08) !important;
    min-width: 100% !important;
    width: 100% !important;
    padding: 0.25rem 0 !important;
    background: #FFFFFF !important;
    border: 1.5px solid #E2E8F0 !important;
    border-left: 4px solid var(--cavi-red) !important;
    border-radius: var(--radius-md) !important;
    margin: 0.4rem 0 0.5rem !important;
    list-style: none !important;
    overflow: visible !important;
    transition: none !important;
  }

  .nav-item-dropdown.open > .nav-dropdown-menu {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    animation: dropdownSlideDown 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
  }

  @keyframes dropdownSlideDown {
    from {
      opacity: 0;
      transform: translateY(-6px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .nav-dropdown-menu > li {
    display: block !important;
    width: 100% !important;
    border-bottom: 1px solid #F1F5F9 !important;
    padding: 0 !important;
  }

  .nav-dropdown-menu > li:last-child {
    border-bottom: none !important;
  }

  .dropdown-link {
    padding: 0.85rem 1.15rem !important;
    font-size: 0.94rem !important;
    font-weight: 600 !important;
    color: #1E293B !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    min-height: 48px !important;
    border-left: 3px solid transparent !important;
    transition: all 0.2s ease !important;
    background: #FFFFFF !important;
  }

  .dropdown-link:hover,
  .dropdown-link:active {
    background: #FFF1F2 !important;
    color: var(--cavi-red) !important;
    border-left-color: var(--cavi-red) !important;
    padding-left: 1.4rem !important;
  }
}

/* 4. Handheld Mobile Devices (max-width: 768px) */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    width: 100%;
  }

  .section {
    padding: 3.5rem 0;
  }

  .section-title {
    font-size: 1.85rem;
    line-height: 1.25;
  }

  .section-desc {
    font-size: 0.92rem;
  }

  .page-hero,
  .page-hero-fullscreen {
    min-height: 400px;
    display: flex;
    align-items: center;
    padding: 3.5rem 0;
  }

  .page-hero-title {
    font-size: 2.2rem;
    line-height: 1.18;
  }

  .page-hero-desc {
    font-size: 1rem;
    line-height: 1.6;
  }

  /* Hero Section Mobile Polish */
  .hero-section,
  .hero-slider-section {
    min-height: 82vh;
    min-height: 560px;
    display: flex;
    align-items: center;
    padding: 3.5rem 0 4rem;
  }

  .hero-heading {
    font-size: 2.2rem;
    line-height: 1.2;
  }

  .hero-lead {
    font-size: 0.98rem;
    line-height: 1.6;
    margin-bottom: 1.75rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 0.85rem 1.25rem;
    font-size: 0.95rem;
  }

  .hero-stats-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    width: 100%;
  }

  .stat-item {
    text-align: center;
    padding: 0.9rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .stat-value {
    font-size: 1.6rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  .hero-image-card img {
    height: 270px;
    object-fit: cover;
  }

  /* Accolade Badges: Clean, fluid, contained flow (Zero viewport blowout) */
  .floating-card-top,
  .floating-card-bottom {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    margin: 0.85rem 0;
    width: 100%;
    box-sizing: border-box;
    animation: none;
    box-shadow: var(--shadow-sm);
  }

  .floating-card-top {
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
  }

  .floating-card-bottom {
    background: var(--cavi-navy-dark);
    border: 1px solid rgba(255, 255, 255, 0.12);
  }

  /* Counter Strip Mobile */
  .yci-counter-strip {
    grid-template-columns: 1fr;
    margin-top: 1.5rem;
    padding: 1.5rem 1.25rem;
    gap: 1.25rem;
    box-shadow: var(--shadow-md);
  }

  .counter-item {
    border-right: none !important;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 1rem;
  }

  .counter-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .counter-number {
    font-size: 2.25rem;
  }

  /* Explore Action Grid */
  .explore-action-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .explore-action-card {
    padding: 1.5rem;
  }

  /* Difference & Core Values */
  .difference-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .core-values-cards-row {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  /* Programs Catalog */
  .programs-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Campus News & Highlights */
  .news-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .news-card-img-wrap {
    height: 220px;
  }

  .news-card-body {
    padding: 1.5rem 1.25rem;
  }

  .news-card-title {
    font-size: 1.18rem;
  }

  .programs-filter-bar {
    gap: 0.5rem;
    margin-bottom: 1.75rem;
  }

  .filter-btn {
    font-size: 0.82rem;
    padding: 0.45rem 0.85rem;
  }

  .program-card-img-wrap {
    height: 190px;
  }

  /* Gallery Grid */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .gallery-card-img-wrap {
    height: 220px;
  }

  /* Admissions & Fee Tables */
  .fees-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .fee-card {
    padding: 1.25rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .fee-table {
    min-width: 440px;
  }

  .calc-widget {
    padding: 1.5rem 1.25rem;
  }

  /* Contact Details */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-card-info {
    padding: 1.5rem 1.25rem;
  }

  .phone-chips-row {
    flex-direction: column;
    width: 100%;
  }

  .phone-chip {
    width: 100%;
    justify-content: center;
  }

  /* Ethos Quote */
  .ethos-quote-block {
    padding: 1.25rem;
    font-size: 0.95rem;
    border-left-width: 4px;
  }

  /* Journey Banner */
  .journey-banner {
    padding: 2.5rem 1.25rem;
    border-radius: 18px;
    text-align: center;
  }

  .journey-title {
    font-size: 1.85rem;
  }

  .journey-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

  .journey-actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Cross-Trade Banner */
  .cross-trade-banner {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2.25rem 1.5rem;
  }

  .cross-trade-title {
    font-size: 1.65rem;
  }

  .cross-trade-img {
    height: 240px;
  }

  /* Forms & Modals */
  .form-grid-2 {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .modal-box {
    max-height: 92vh;
    border-radius: var(--radius-lg);
    margin: 0.5rem;
  }

  .modal-header {
    padding: 1.25rem 1.5rem;
  }

  .modal-body {
    padding: 1.5rem 1.25rem;
  }

  /* Footers */
  .footer-top-grid,
  .footer-grid-6 {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  /* WhatsApp Float Button */
  .floating-whatsapp-btn {
    bottom: 20px;
    right: 20px;
    width: 54px;
    height: 54px;
    font-size: 1.7rem;
  }
}

/* 5. Small Phones (max-width: 480px) */
@media (max-width: 480px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .section {
    padding: 2.75rem 0;
  }

  .brand-logo {
    height: 70px;
    max-height: 74px;
  }

  .mobile-toggle {
    width: 42px;
    height: 42px;
    font-size: 1.3rem;
  }

  .nav-menu {
    top: 82px !important;
    height: calc(100dvh - 82px) !important;
    max-height: calc(100dvh - 82px) !important;
    padding: 1rem 1rem 3.5rem !important;
  }

  .hero-section,
  .hero-slider-section,
  .page-hero,
  .page-hero-fullscreen {
    min-height: calc(100vh - 82px);
    min-height: calc(100dvh - 82px);
    padding: 2.75rem 0 3.5rem;
  }

  .hero-heading {
    font-size: 1.85rem;
    line-height: 1.2;
  }

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

  .hero-lead,
  .page-hero-desc {
    font-size: 0.92rem;
    line-height: 1.55;
  }

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

  /* Campus News & Highlights (Small Phones) */
  .news-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .news-card-img-wrap {
    height: 195px;
  }

  .news-card-body {
    padding: 1.25rem 1rem;
  }

  .news-card-title {
    font-size: 1.1rem;
    line-height: 1.35;
  }

  .news-card-desc {
    font-size: 0.86rem;
    margin-bottom: 1.25rem;
  }

  .journey-title {
    font-size: 1.6rem;
  }

  .cross-trade-banner {
    padding: 1.75rem 1.15rem;
    border-radius: var(--radius-lg);
    gap: 1.5rem;
  }

  .cross-trade-title {
    font-size: 1.45rem;
  }

  .cross-trade-img {
    height: 200px;
  }

  .important-notice-box {
    padding: 1rem 1.15rem;
    margin-bottom: 2rem;
  }

  .important-notice-title {
    font-size: 0.84rem;
  }

  .important-notice-text {
    font-size: 0.8rem;
  }

  .floating-whatsapp-btn {
    bottom: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
  }
}