/* ==========================================================================
   IPS SANTÉ - MODERN DESIGN SYSTEM & STYLESHEET (BLUE IDENTITY)
   Institut Privé des Sciences de la Santé - Maroc
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS & CSS VARIABLES (BLUE MEDICAL PALETTE)
   -------------------------------------------------------------------------- */
:root {
  /* Color Palette - Medical Blue Identity */
  --primary: #0F4C81;
  --primary-rgb: 15, 76, 129;
  --primary-hover: #0a375e;
  --secondary: #0077B6;
  --secondary-rgb: 0, 119, 182;
  --accent: #FFB703;
  --accent-hover: #e09f00;
  --bg: #F8FAFC;
  --bg-subtle: #F1F5F9;
  --card: #FFFFFF;
  --text: #1E293B;
  --text-muted: #64748B;
  --border: #E2E8F0;
  --shadow-sm: 0 4px 12px rgba(15, 76, 129, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 76, 129, 0.1);
  --shadow-lg: 0 16px 40px rgba(15, 76, 129, 0.15);

  /* Typography */
  --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing & Layout */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
  --container-max: 1320px;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --header-height: 84px;
}

/* Dark Mode Overrides - Blue Theme */
[data-theme="dark"] {
  --primary: #38BDF8;
  --primary-rgb: 56, 189, 248;
  --primary-hover: #7dd3fc;
  --secondary: #0284C7;
  --bg: #0F172A;
  --bg-subtle: #090E17;
  --card: #1E293B;
  --text: #F8FAFC;
  --text-muted: #94A3B8;
  --border: #334155;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);
}

/* --------------------------------------------------------------------------
   2. RESET & BASE STYLES
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

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

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

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

/* Accessibility Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--accent);
  color: #000;
  padding: 12px 20px;
  font-weight: 600;
  z-index: 10000;
  border-radius: var(--radius-sm);
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 20px;
}

/* Focus Outline Style */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   3. PRELOADER & SCROLL PROGRESS
   -------------------------------------------------------------------------- */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}
.spinner-wrapper {
  position: relative;
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.spinner {
  position: absolute;
  inset: 0;
  border: 4px solid rgba(15, 76, 129, 0.1);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s infinite linear;
}
.preloader-logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.scroll-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: transparent;
  z-index: 10001;
}
.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  transition: width 0.1s ease-out;
}

/* --------------------------------------------------------------------------
   4. HEADER & STICKY NAVIGATION (PERFECT 100% FIT & RESPONSIVE)
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
[data-theme="dark"] .site-header {
  background: rgba(15, 23, 42, 0.95);
}
.site-header.scrolled {
  height: 68px;
  box-shadow: var(--shadow-md);
}

.header-container {
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-sizing: border-box;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  text-decoration: none;
}
.brand-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px 8px;
  box-shadow: 0 4px 12px rgba(15, 76, 129, 0.08);
  transition: var(--transition);
}
.brand-logo:hover .brand-logo-wrap {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 76, 129, 0.16);
  border-color: var(--secondary);
}
.brand-logo img {
  height: 48px;
  width: auto;
  max-height: 48px;
  border-radius: 6px;
  object-fit: contain;
  display: block;
}
.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.brand-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.5px;
  line-height: 1.1;
  white-space: nowrap;
}
.brand-subtitle {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
  white-space: nowrap;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.6vw, 24px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-link {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
  border-radius: 2px;
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}
.nav-link:hover {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.mobile-nav-toggle {
  display: none;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--primary);
  width: 44px;
  height: 44px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 10005;
  transition: var(--transition);
  margin-left: 4px;
}
.mobile-nav-toggle:hover {
  background: var(--primary);
  color: #FFFFFF;
}

.theme-toggle-btn {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.theme-toggle-btn:hover {
  background: var(--border);
  transform: rotate(15deg);
}

.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text);
  cursor: pointer;
  padding: 8px;
}

/* --------------------------------------------------------------------------
   5. BUTTONS & BADGES
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 28px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 6px 20px rgba(15, 76, 129, 0.25);
}
.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(15, 76, 129, 0.35);
  color: #FFFFFF;
}

.btn-secondary {
  background: var(--secondary);
  color: #FFFFFF;
}
.btn-secondary:hover {
  background: #005f92;
  transform: translateY(-2px);
  color: #FFFFFF;
}

.btn-accent {
  background: var(--accent);
  color: #000000;
  box-shadow: 0 6px 20px rgba(255, 183, 3, 0.3);
}
.btn-accent:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  color: #000000;
}

.btn-outline {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #FFFFFF;
}

.btn-outline-white {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.6);
  color: #FFFFFF;
  backdrop-filter: blur(8px);
}
.btn-outline-white:hover {
  background: #FFFFFF;
  color: var(--primary);
  border-color: #FFFFFF;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-gold {
  background: rgba(255, 183, 3, 0.15);
  color: #b78103;
  border: 1px solid rgba(255, 183, 3, 0.4);
}
[data-theme="dark"] .badge-gold {
  color: #FFB703;
}
.badge-blue {
  background: rgba(15, 76, 129, 0.1);
  color: var(--primary);
  border: 1px solid rgba(15, 76, 129, 0.2);
}

/* --------------------------------------------------------------------------
   6. SECTION HEADINGS & LAYOUT UTILITIES
   -------------------------------------------------------------------------- */
.section {
  padding: 96px 0;
  position: relative;
}
.section-sm {
  padding: 60px 0;
}
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section-header {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 60px auto;
}
.section-header.text-left {
  text-align: left;
  margin-left: 0;
}
.section-subtitle {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}
.section-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.section-description {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   7. HERO SLIDER SECTION
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 680px;
  overflow: hidden;
  margin-top: 0;
}
.hero-swiper {
  width: 100%;
  height: 100%;
}
.hero-slide {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1);
  transition: transform 7s ease-out;
}
.swiper-slide-active .hero-slide-bg {
  transform: scale(1.08);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 76, 129, 0.78) 0%,
    rgba(10, 37, 64, 0.92) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #FFFFFF;
  max-width: 860px;
  text-align: center;
  padding: 0 24px;
}
.hero-badge-wrap {
  margin-bottom: 20px;
}
.hero-badge {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--accent);
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  color: #FFFFFF;
  margin-bottom: 20px;
  letter-spacing: -1px;
}
.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 36px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400;
}
.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
  40% { transform: translate(-50%, -10px); }
  60% { transform: translate(-50%, -5px); }
}

/* --------------------------------------------------------------------------
   8. TRUST INDICATORS BAR
   -------------------------------------------------------------------------- */
.trust-bar {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
  box-shadow: var(--shadow-sm);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  align-items: center;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
}
.trust-icon-box {
  width: 52px;
  height: 52px;
  background: rgba(15, 76, 129, 0.08);
  color: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.trust-title {
  font-size: 0.95rem;
  font-weight: 700;
}
.trust-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   9. VISUAL STATISTICS CARDS
   -------------------------------------------------------------------------- */
.stats-section {
  background: var(--bg-subtle);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat-card {
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 36px 24px;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--secondary);
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.stat-emoji {
  font-size: 2.8rem;
  margin-bottom: 12px;
  display: block;
}
.stat-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   10. ABOUT & FACILITIES SECTION
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-image-stack {
  position: relative;
}
.about-main-img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  height: 460px;
}
.about-badge-card {
  position: absolute;
  bottom: -24px;
  right: -24px;
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 280px;
}
.about-badge-icon {
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.facilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.facility-card {
  background: var(--card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.facility-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.facility-img-wrap {
  width: 100%;
  height: 200px;
  overflow: hidden;
}
.facility-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.facility-card:hover .facility-img-wrap img {
  transform: scale(1.08);
}
.facility-body {
  padding: 20px;
}
.facility-title {
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.facility-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   11. FEATURED PROGRAMS (FILIÈRES)
   -------------------------------------------------------------------------- */
.programs-section {
  background: var(--bg);
}
.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.program-card {
  background: var(--card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}
.program-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--secondary);
}
.program-img-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
}
.program-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.program-card:hover .program-img-wrap img {
  transform: scale(1.08);
}
.duration-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--accent);
  color: #000000;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}

.program-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.program-title {
  font-size: 1.35rem;
  margin-bottom: 10px;
}
.program-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-grow: 1;
}
.program-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: auto;
  gap: 8px;
}

/* --------------------------------------------------------------------------
   12. VIRTUAL CAMPUS TOUR (VIDEO SECTION)
   -------------------------------------------------------------------------- */
.video-section {
  background: linear-gradient(180deg, var(--bg-subtle) 0%, var(--bg) 100%);
}
.video-banner {
  position: relative;
  width: 100%;
  max-width: 1000px;
  height: 480px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
}
.video-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 76, 129, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  transition: var(--transition);
}
.video-banner:hover .video-overlay {
  background: rgba(15, 76, 129, 0.3);
}
.play-btn {
  width: 84px;
  height: 84px;
  background: var(--accent);
  color: #000000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  padding-left: 6px;
  box-shadow: 0 0 0 12px rgba(255, 183, 3, 0.3);
  transition: var(--transition);
  animation: pulse 2s infinite;
}
.video-banner:hover .play-btn {
  transform: scale(1.1);
  box-shadow: 0 0 0 20px rgba(255, 183, 3, 0.2);
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 183, 3, 0.5); }
  70% { box-shadow: 0 0 0 20px rgba(255, 183, 3, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 183, 3, 0); }
}

/* --------------------------------------------------------------------------
   13. DIRECTOR'S MESSAGE SECTION
   -------------------------------------------------------------------------- */
.director-section {
  background: var(--card);
}
.director-grid {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 60px;
  align-items: center;
}
.director-profile-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  text-align: center;
}
.director-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}
.director-name {
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 4px;
}
.director-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}
.director-bio {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.director-message-box {
  position: relative;
  padding-left: 20px;
}
.quote-icon {
  font-size: 3.5rem;
  color: var(--primary);
  opacity: 0.25;
  margin-bottom: -20px;
  display: block;
}
.director-quote {
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 28px;
}
.director-signature {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.signature-img {
  height: 50px;
  opacity: 0.85;
}

/* --------------------------------------------------------------------------
   14. EQUAL-GRID CAMPUS & STUDENT LIFE GALLERY
   -------------------------------------------------------------------------- */
.gallery-section {
  background: var(--bg-subtle);
}
.filter-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.filter-btn {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}
.filter-btn.active, .filter-btn:hover {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
}

.equal-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.gallery-item {
  position: relative;
  height: 280px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img {
  transform: scale(1.1);
}
.gallery-hover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(15, 76, 129, 0.85) 100%);
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  color: #FFFFFF;
  transition: var(--transition);
}
.gallery-item:hover .gallery-hover-overlay {
  opacity: 1;
}
.gallery-item-title {
  font-size: 1.1rem;
  font-weight: 700;
}
.gallery-item-cat {
  font-size: 0.85rem;
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   15. ADMISSION REQUIREMENTS SECTION
   -------------------------------------------------------------------------- */
.admissions-section {
  background: var(--card);
}
.admissions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.admissions-card {
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 32px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.admissions-card-title {
  font-size: 1.35rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--primary);
}
.docs-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.docs-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.98rem;
}
.docs-icon {
  color: var(--secondary);
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Process Steps Timeline */
.steps-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.step-item {
  display: flex;
  gap: 20px;
}
.step-number {
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.step-content h4 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}
.step-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   16. TESTIMONIALS SWIPER CAROUSEL
   -------------------------------------------------------------------------- */
.testimonials-section {
  background: var(--bg-subtle);
}
.testimonial-card {
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 36px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.testimonial-stars {
  color: var(--accent);
  font-size: 1.1rem;
  margin-bottom: 16px;
}
.testimonial-text {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 24px;
  flex-grow: 1;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
}
.author-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}
.author-name {
  font-size: 1rem;
  font-weight: 700;
}
.author-role {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   17. FAQ ACCORDION
   -------------------------------------------------------------------------- */
.faq-section {
  background: var(--card);
}
.faq-accordion {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg);
  transition: var(--transition);
}
.faq-item.active {
  border-color: var(--primary);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}
.faq-header {
  width: 100%;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}
.faq-icon {
  font-size: 1.2rem;
  color: var(--primary);
  transition: transform 0.3s ease;
}
.faq-item.active .faq-icon {
  transform: rotate(180deg);
}
.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.4s ease;
  padding: 0 28px;
}
.faq-item.active .faq-body {
  max-height: 300px;
  padding: 0 28px 22px 28px;
}
.faq-body p {
  font-size: 0.98rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   18. CLEAN SPLIT CONTACT FORM & MAP
   -------------------------------------------------------------------------- */
.contact-section {
  background: var(--bg-subtle);
}
.contact-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.contact-form-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.form-group {
  margin-bottom: 20px;
}
.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}
.form-control {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.95rem;
  transition: var(--transition);
}
.form-control:focus {
  border-color: var(--primary);
  background: var(--card);
  box-shadow: 0 0 0 4px rgba(15, 76, 129, 0.1);
  outline: none;
}

.map-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
}
.map-embed {
  width: 100%;
  height: 340px;
  border: none;
}
.contact-info-list {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.info-row {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.95rem;
}
.info-icon {
  width: 40px;
  height: 40px;
  background: rgba(15, 76, 129, 0.08);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   19. FOOTER & FLOATING ACTIONS (DEEP NAVY BLUE FOOTER)
   -------------------------------------------------------------------------- */
.site-footer {
  background: #0B192C;
  color: #E2E8F0;
  padding: 80px 0 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 60px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-logo {
    width: 180px;      /* Change this value */
    height: 90;      /* Keep aspect ratio */
    display: block;
    margin-bottom: 20px;
}
.footer-desc {
  font-size: 0.9rem;
  color: #94A3B8;
  max-width: 320px;
}
.footer-heading {
  font-size: 1.1rem;
  color: #FFFFFF;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}
.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--accent);
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links a {
  color: #94A3B8;
  font-size: 0.9rem;
}
.footer-links a:hover {
  color: var(--accent);
  padding-left: 6px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #94A3B8;
  flex-wrap: wrap;
  gap: 16px;
}

/* Floating Action Buttons */
.floating-actions {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}
.float-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #FFFFFF;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  cursor: pointer;
  border: none;
}
.float-whatsapp {
  background: #25D366;
}
.float-whatsapp:hover {
  transform: scale(1.1);
  background: #20ba5a;
}
.float-call {
  background: var(--primary);
}
.float-call:hover {
  transform: scale(1.1);
  background: var(--secondary);
}
.back-to-top {
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

/* Cookie Consent */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--card);
  border-top: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 16px 24px;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
.cookie-banner.show {
  transform: translateY(0);
}

/* Toast Notifications */
.toast-notification {
  position: fixed;
  top: 96px;
  right: 24px;
  background: var(--card);
  color: var(--text);
  border-left: 4px solid var(--secondary);
  border-radius: var(--radius-sm);
  padding: 16px 24px;
  box-shadow: var(--shadow-lg);
  z-index: 100000;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.3s ease;
}
.toast-notification.show {
  opacity: 1;
  transform: translateX(0);
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(8px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}
.modal-container {
  background: var(--card);
  border-radius: var(--radius-lg);
  max-width: 650px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: scale(0.9);
  transition: var(--transition);
}
.modal-overlay.open .modal-container {
  transform: scale(1);
}
.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--bg-subtle);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--text);
}

/* Video Modal */
.video-modal-container {
  max-width: 900px;
  padding: 0;
  background: #000;
  overflow: hidden;
}
.video-iframe-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}
.video-iframe-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}


/* --------------------------------------------------------------------------
   20. RESPONSIVE BREAKPOINTS (ZERO HORIZONTAL OVERFLOW)
   -------------------------------------------------------------------------- */
@media (max-width: 1240px) {
  .brand-subtitle { display: none; }
}

@media (max-width: 1080px) {
  .mobile-nav-toggle { display: flex !important; }
  .nav-menu {
    position: fixed;
    top: var(--header-height, 80px);
    right: -100%;
    width: 300px;
    height: calc(100vh - var(--header-height, 80px));
    background: var(--card);
    flex-direction: column;
    align-items: flex-start;
    padding: 36px 28px;
    gap: 24px;
    box-shadow: var(--shadow-lg);
    transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10000;
  }
  .nav-menu.open { right: 0; }
  .nav-link { font-size: 1.05rem; }
}

@media (max-width: 992px) {
  .hero-title { font-size: 2.75rem; }
  .about-grid, .director-grid, .admissions-grid, .contact-split-grid {
    grid-template-columns: 1fr;
  }
  .equal-gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .programs-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --header-height: 72px; }
  .header-container { padding: 0 16px; }
  .programs-grid, .equal-gallery-grid, .stats-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 2.1rem; }
  .hero-subtitle { font-size: 1rem; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .brand-title { font-size: 1.05rem; }
  .brand-logo img { height: 38px; }
  .btn { padding: 10px 20px; font-size: 0.85rem; }
  .header-actions { gap: 8px; }
}

/* Prefers Reduced Motion Accessibility */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
