/* ==========================================================================
   COMBRIDGE POLYTECHNIC - 100% RESPONSIVE, ZERO-OVERFLOW DESIGN SYSTEM
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@500;600;700;800&display=swap');

:root {
  /* Brand Palette */
  --primary-navy: #0b1f3a;
  --primary-blue: #1d4ed8;
  --primary-light-blue: #3b82f6;
  --accent-emerald: #059669;
  --accent-emerald-light: #10b981;
  --accent-gold: #d97706;
  --accent-amber: #f59e0b;
  
  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-alt: #f1f5f9;
  
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #94a3b8;
  --text-white: #ffffff;

  --border-color: #e2e8f0;
  --border-focus: #3b82f6;
  
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Strict Box Sizing to Prevent ANY Overflow */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  min-width: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
}

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

a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
}

a:hover, a:focus-visible {
  color: var(--primary-navy);
}

button, input, select, textarea {
  font: inherit;
  font-size: 1rem;
  max-width: 100%;
}

/* Skip link for Accessibility */
.skip-link {
  position: absolute;
  top: -50px;
  left: 10px;
  background: var(--primary-blue);
  color: white;
  padding: 8px 16px;
  z-index: 9999;
  border-radius: var(--radius-sm);
  transition: top 0.2s;
  font-weight: 600;
}

.skip-link:focus {
  top: 10px;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Top Announcement Bar */
.announcement-bar {
  background: linear-gradient(90deg, #064e3b, #047857);
  color: #ecfdf5;
  padding: 0.5rem 0;
  font-size: 0.825rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.1);
  width: 100%;
  overflow: hidden;
}

.announcement-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
  flex-wrap: wrap;
}

.announcement-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background-color: #f59e0b;
  color: #78350f;
  font-size: 0.72rem;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.announcement-badge svg {
  width: 12px;
  height: 12px;
}

/* Header & Navigation */
.header-wrapper {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 9000;
  box-shadow: var(--shadow-sm);
  width: 100%;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 0.75rem;
  position: relative;
  width: 100%;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  flex-shrink: 1;
  min-width: 0;
}

.logo-img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  background: #ffffff;
  padding: 2px;
  border: 1px solid var(--border-color);
  flex-shrink: 0;
}

.brand-text {
  min-width: 0;
  flex: 1;
}

.brand-text h1, .brand-text .site-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(0.95rem, 3.5vw, 1.35rem);
  font-weight: 800;
  color: var(--primary-navy);
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-transform: uppercase;
  margin: 0;
  word-break: break-word;
}

.brand-text .motto {
  font-size: clamp(0.62rem, 2vw, 0.75rem);
  font-weight: 700;
  color: var(--accent-emerald);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-top: 0.15rem;
  word-break: break-word;
}

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

/* Direct Header Call Button on Mobile/Tablet */
.header-call-btn {
  display: none;
  align-items: center;
  gap: 0.4rem;
  background: #ecfdf5;
  color: var(--accent-emerald) !important;
  border: 1px solid #a7f3d0;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 700;
  min-height: 40px;
  flex-shrink: 0;
}

.header-call-btn:hover {
  background: #059669;
  color: #ffffff !important;
}

.header-call-btn svg {
  width: 16px;
  height: 16px;
}

/* Desktop Navigation Menu */
.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
}

.nav-item {
  display: flex;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  min-height: 40px;
}

.nav-link:hover, .nav-link:focus-visible {
  color: var(--primary-navy);
  background-color: #f1f5f9;
}

.nav-link.active {
  color: var(--primary-blue);
  background-color: #eff6ff;
  font-weight: 800;
}

.nav-link.active svg {
  color: var(--primary-blue);
}

/* Mobile Hamburger Button */
.mobile-toggle {
  display: none;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--primary-navy);
  padding: 0.5rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.mobile-toggle:hover, .mobile-toggle:focus-visible {
  background: #eff6ff;
  border-color: var(--primary-light-blue);
  color: var(--primary-blue);
  outline: none;
}

.mobile-toggle svg {
  width: 24px;
  height: 24px;
  pointer-events: none;
}

.mobile-toggle.active .icon-menu {
  display: none !important;
}

.mobile-toggle.active .icon-close {
  display: block !important;
}

/* Main Content Wrapper */
.main-content {
  flex: 1;
  padding: 1.75rem 0 3.5rem;
  width: 100%;
  max-width: 100%;
}

/* ==========================================================================
   HERO SLIDER COMPONENT
   ========================================================================== */
.hero-slider-container {
  position: relative;
  width: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  background-color: #0b1f3a;
  margin-bottom: 2.5rem;
}

.hero-slider-track {
  position: relative;
  width: 100%;
  min-height: 460px;
  height: clamp(460px, 65vh, 520px);
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  display: flex;
  align-items: center;
  overflow: hidden;
}

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

.slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  transition: transform 5s ease;
}

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

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(11, 31, 58, 0.96) 0%,
    rgba(11, 31, 58, 0.85) 55%,
    rgba(11, 31, 58, 0.5) 100%
  );
  z-index: 1;
}

.slide-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 680px;
  padding: 2.5rem 2rem 2.5rem 3rem;
  color: #ffffff;
}

.slide-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(245, 158, 11, 0.22);
  color: #fef3c7;
  border: 1px solid rgba(245, 158, 11, 0.45);
  font-size: clamp(0.72rem, 2.2vw, 0.8rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
  backdrop-filter: blur(4px);
}

.slide-tag svg {
  width: 14px;
  height: 14px;
  color: var(--accent-amber);
  flex-shrink: 0;
}

.slide-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.55rem, 4.2vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 0.85rem;
  letter-spacing: -0.02em;
  word-wrap: break-word;
}

.slide-title span {
  color: var(--accent-amber);
}

.slide-desc {
  font-size: clamp(0.875rem, 2vw, 1.025rem);
  line-height: 1.65;
  color: #e2e8f0;
  margin-bottom: 1.75rem;
  max-width: 560px;
}

.slide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  width: 100%;
}

/* Slider Controls */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  backdrop-filter: blur(4px);
}

.slider-arrow:hover, .slider-arrow:focus-visible {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
  transform: translateY(-50%) scale(1.08);
}

.slider-prev {
  left: 1rem;
}

.slider-next {
  right: 1rem;
}

.slider-dots {
  position: absolute;
  bottom: 1.25rem;
  left: 3rem;
  z-index: 10;
  display: flex;
  gap: 0.5rem;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  padding: 0;
  min-height: 12px;
}

.slider-dot.active {
  width: 28px;
  background: var(--accent-amber);
}

/* Stats Counter Strip */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.75rem;
  width: 100%;
}

.stat-box {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast);
}

.stat-box:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
}

.stat-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: #eff6ff;
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon.emerald {
  background: #ecfdf5;
  color: var(--accent-emerald);
}

.stat-icon.amber {
  background: #fffbeb;
  color: var(--accent-amber);
}

.stat-number {
  font-family: 'Outfit', sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--primary-navy);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.825rem;
  color: var(--text-muted);
  font-weight: 600;
  line-height: 1.3;
  margin-top: 0.15rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.925rem;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-align: center;
  min-height: 46px;
  touch-action: manipulation;
  max-width: 100%;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-primary {
  background-color: var(--primary-blue);
  color: #ffffff !important;
  box-shadow: 0 4px 6px -1px rgba(29, 78, 216, 0.25);
}

.btn-primary:hover, .btn-primary:focus-visible {
  background-color: #1e40af;
  transform: translateY(-1px);
  box-shadow: 0 6px 12px -2px rgba(29, 78, 216, 0.35);
}

.btn-secondary {
  background-color: #ffffff;
  color: var(--primary-navy) !important;
  border-color: var(--border-color);
}

.btn-secondary:hover, .btn-secondary:focus-visible {
  background-color: #f8fafc;
  border-color: #cbd5e1;
  color: var(--primary-blue) !important;
}

.btn-emerald {
  background-color: var(--accent-emerald);
  color: #ffffff !important;
}

.btn-emerald:hover, .btn-emerald:focus-visible {
  background-color: #047857;
}

.btn-amber {
  background-color: var(--accent-amber);
  color: #78350f !important;
  font-weight: 800;
}

.btn-amber:hover, .btn-amber:focus-visible {
  background-color: #d97706;
  color: #ffffff !important;
}

/* Section Headings */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2.25rem;
  width: 100%;
}

.section-subtitle {
  color: var(--accent-emerald);
  font-size: 0.825rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  font-weight: 700;
  color: var(--primary-navy);
  line-height: 1.25;
  word-break: break-word;
}

/* Feature Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.75rem;
  width: 100%;
}

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.65rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: #eff6ff;
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.15rem;
}

.card-icon.emerald {
  background: #ecfdf5;
  color: var(--accent-emerald);
}

.card-icon.amber {
  background: #fffbeb;
  color: var(--accent-amber);
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 0.5rem;
}

.card-text {
  color: var(--text-muted);
  font-size: 0.925rem;
  line-height: 1.6;
}

/* Departments Grid Showcase */
.departments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.75rem;
  width: 100%;
}

.dept-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.dept-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary-light-blue);
  box-shadow: var(--shadow-md);
}

.dept-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: #eff6ff;
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dept-title {
  font-size: 1.075rem;
  font-weight: 700;
  color: var(--primary-navy);
}

.dept-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Motto Callout Banner */
.motto-banner {
  background: linear-gradient(135deg, #0b1f3a, #1d4ed8);
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.5rem;
  color: #ffffff;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  margin-bottom: 2.5rem;
  width: 100%;
}

.motto-banner h2, .motto-banner h3 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.25rem, 3.5vw, 1.65rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
  color: #ffffff;
}

.motto-banner p {
  color: #cbd5e1;
  font-size: 0.95rem;
  max-width: 620px;
  margin: 0 auto 1.5rem;
}

/* Content Box (About Page) */
.content-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2.5rem;
  width: 100%;
}

.prose-text {
  color: var(--text-muted);
  font-size: 1.025rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
  word-break: break-word;
}

/* Leadership Grid */
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
  width: 100%;
}

.leader-card {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: all var(--transition-normal);
}

.leader-card:hover {
  background: #ffffff;
  border-color: var(--primary-light-blue);
  box-shadow: var(--shadow-md);
}

.leader-badge {
  align-self: flex-start;
  background: #e0e7ff;
  color: #3730a3;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.leader-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-navy);
}

.leader-role {
  font-weight: 600;
  color: var(--accent-emerald);
  font-size: 0.95rem;
}

.leader-contact {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  background: #ffffff;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  min-height: 44px;
}

.leader-contact a {
  font-weight: 600;
  color: var(--primary-blue);
  padding: 0.2rem 0;
}

/* Showroom Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  width: 100%;
}

.gallery-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}

.gallery-thumb-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e2e8f0;
}

.gallery-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-card:hover .gallery-thumb {
  transform: scale(1.05);
}

.gallery-zoom-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-normal);
  color: #ffffff;
}

.gallery-card:hover .gallery-zoom-overlay,
.gallery-card:focus-visible .gallery-zoom-overlay {
  opacity: 1;
}

.gallery-body {
  padding: 1.25rem;
}

.gallery-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 0.35rem;
}

.gallery-caption {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(6px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

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

.lightbox-content {
  max-width: 850px;
  width: 100%;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  position: relative;
  animation: modalFadeIn 0.25s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.lightbox-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background var(--transition-fast);
}

.lightbox-close:hover {
  background: rgba(0, 0, 0, 0.95);
}

.lightbox-img {
  width: 100%;
  max-height: 65vh;
  object-fit: contain;
  background: #0f172a;
}

.lightbox-caption {
  padding: 1rem 1.25rem;
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--primary-navy);
}

/* ==========================================================================
   CONTACT & ADMISSIONS FORM (Strict Zero-Overflow)
   ========================================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 2rem;
  width: 100%;
  max-width: 100%;
}

.contact-info-panel {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  max-width: 100%;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.info-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: #ecfdf5;
  color: var(--accent-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-text {
  flex: 1;
  min-width: 0;
  word-break: break-word;
}

.info-text h3, .info-text h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 0.2rem;
}

.info-text p, .info-text a {
  font-size: 0.925rem;
  color: var(--text-muted);
  word-break: break-word;
}

.form-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.form-header {
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}

.form-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.25rem, 3.5vw, 1.5rem);
  font-weight: 700;
  color: var(--primary-navy);
  word-break: break-word;
}

.form-desc {
  color: var(--text-muted);
  font-size: 0.925rem;
  margin-top: 0.25rem;
  word-break: break-word;
}

.form-group {
  margin-bottom: 1.35rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.45rem;
  word-break: break-word;
}

.form-input,
.form-select,
.form-textarea {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-main);
  background-color: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  outline: none;
  transition: all var(--transition-fast);
  min-height: 44px;
  box-sizing: border-box;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  background-color: #ffffff;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-select {
  cursor: pointer;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.form-select optgroup {
  font-weight: 700;
  color: var(--primary-navy);
  background-color: #f1f5f9;
}

.form-select option {
  font-weight: 400;
  color: var(--text-main);
  background-color: #ffffff;
}

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.35rem;
  width: 100%;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.65rem;
  width: 100%;
  max-width: 100%;
}

.custom-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.55rem 0.75rem;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
  min-height: 44px;
  word-break: break-word;
  max-width: 100%;
}

.custom-option:hover {
  background: #f1f5f9;
}

.custom-option input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary-blue);
  cursor: pointer;
  flex-shrink: 0;
}

.file-input-wrapper {
  position: relative;
  background: #f8fafc;
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition-fast);
  min-height: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
}

.file-input-wrapper:hover {
  border-color: var(--primary-blue);
  background: #eff6ff;
}

.file-input-wrapper input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
  word-break: break-word;
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color);
  width: 100%;
}

.form-actions .btn {
  flex: 1;
}

/* Floating Action Button for WhatsApp */
.mobile-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999 !important;
  display: flex !important;
  pointer-events: auto;
}

.fab-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #ffffff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  border: 2px solid #ffffff;
}

.fab-btn:hover, .fab-btn:focus-visible {
  transform: scale(1.1);
  background: #1eb956;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.6);
}

.fab-btn svg {
  width: 28px;
  height: 28px;
  fill: #ffffff;
}

/* Footer */
.site-footer {
  background-color: var(--primary-navy);
  color: #cbd5e1;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
}

.footer-top {
  padding: 3.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr;
  gap: 2.5rem;
  width: 100%;
}

.footer-brand h3 {
  font-family: 'Outfit', sans-serif;
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.footer-brand p {
  font-size: 0.925rem;
  line-height: 1.65;
  color: #94a3b8;
  max-width: 400px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background-color: var(--accent-amber);
}

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

.footer-links a {
  color: #94a3b8;
  font-size: 0.925rem;
  transition: all var(--transition-fast);
  padding: 0.25rem 0;
}

.footer-links a:hover, .footer-links a:focus-visible {
  color: #ffffff;
  padding-left: 4px;
}

.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  font-size: 0.9rem;
  color: #94a3b8;
  margin: 0;
  padding: 0;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  line-height: 1.5;
}

.footer-contact-list li svg {
  color: var(--accent-amber);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.footer-bottom {
  background-color: #05101f;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
  color: #64748b;
  width: 100%;
}

.footer-bottom-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.developer-credit {
  color: #94a3b8;
}

.developer-credit strong {
  color: #cbd5e1;
}

/* ==========================================================================
   MEDIA QUERIES (100% Mobile Fluid, Zero Horizontal Overflow)
   ========================================================================== */

@media (max-width: 992px) {
  .hero-slider-track {
    height: 480px;
  }

  .slide-content {
    padding: 2.25rem 2rem;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 820px) {
  .mobile-toggle {
    display: inline-flex;
  }

  .header-call-btn {
    display: inline-flex;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #ffffff;
    flex-direction: column;
    width: 100%;
    padding: 0.85rem 1.25rem 1.35rem;
    box-shadow: 0 20px 35px -5px rgba(0, 0, 0, 0.25);
    border-bottom: 3px solid var(--primary-blue);
    gap: 0.5rem;
    z-index: 9999;
    max-height: 80vh;
    overflow-y: auto;
  }

  .nav-menu.active {
    display: flex !important;
  }

  .nav-link {
    width: 100%;
    padding: 0.85rem 1.15rem;
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    background-color: #f8fafc;
    border: 1px solid var(--border-color);
  }

  .nav-link:hover, .nav-link:focus-visible {
    background-color: #f1f5f9;
    color: var(--primary-blue);
  }

  .nav-link.active {
    background-color: var(--primary-blue);
    color: #ffffff !important;
    border-color: var(--primary-blue);
  }

  .nav-link.active svg {
    color: #ffffff;
  }

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

  .footer-top {
    padding: 2.5rem 0 1.5rem;
  }
}

@media (max-width: 640px) {
  .hero-slider-track {
    min-height: 480px;
    height: 480px;
  }

  .slide-content {
    padding: 2rem 1.25rem 3.5rem;
    max-width: 100%;
  }

  .slider-arrow {
    display: none;
  }

  .slider-dots {
    left: 1.25rem;
    bottom: 1.25rem;
  }

  .slide-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.65rem;
  }

  .slide-actions .btn {
    width: 100%;
  }

  .stats-strip {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .stat-box {
    padding: 0.9rem 0.75rem;
    gap: 0.5rem;
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .stat-number {
    font-size: 1.3rem;
  }

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

  .form-actions {
    flex-direction: column;
  }

  .checkbox-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.85rem;
  }

  .header-inner {
    padding: 0.65rem 0;
  }

  .brand-text h1, .brand-text .site-title {
    font-size: 0.95rem;
  }

  .brand-text .motto {
    font-size: 0.6rem;
  }

  .logo-img {
    width: 38px;
    height: 38px;
  }

  .header-call-btn span {
    display: none;
  }

  .header-call-btn {
    padding: 0.5rem;
    width: 38px;
    height: 38px;
    justify-content: center;
  }

  .mobile-toggle {
    width: 38px;
    height: 38px;
  }

  .stats-strip {
    grid-template-columns: 1fr;
  }

  .stat-box {
    flex-direction: row;
    text-align: left;
    padding: 1rem;
  }

  .form-card, .contact-info-panel, .content-box {
    padding: 1.25rem 0.85rem;
    border-radius: var(--radius-lg);
  }

  .custom-option {
    width: 100%;
  }

  .announcement-bar {
    font-size: 0.74rem;
    padding: 0.4rem 0;
  }

  .mobile-fab {
    bottom: 16px;
    right: 16px;
  }

  .fab-btn {
    width: 50px;
    height: 50px;
  }

  .fab-btn svg {
    width: 24px;
    height: 24px;
    fill: #ffffff;
  }
}
