/* ==========================================================================
   BEZELEEL EDUCATION COMPLEX - ULTRA-MODERN SCHOOL WEBSITE STYLESHEET
   Location: Sunyani Baakonuaba on the Nwawasua Road
   ========================================================================== */

:root {
  /* Brand Color Palette */
  --primary-900: #071126;
  --primary-800: #0c1e3e;
  --primary-700: #132d5e;
  --primary-600: #1d4487;
  --primary-500: #2563eb;

  /* Gold & Amber Accents (Excellence & Heritage) */
  --gold-600: #d97706;
  --gold-500: #f59e0b;
  --gold-400: #fbbf24;
  --gold-300: #fde68a;
  --gold-100: #fef3c7;

  /* Crimson Accent (Energy, Sports & Bilingual Heritage) */
  --crimson-600: #dc2626;
  --crimson-500: #ef4444;

  /* Emerald Accent (Growth & Success) */
  --emerald-600: #059669;
  --emerald-500: #10b981;
  --emerald-100: #d1fae5;

  /* Neutrals */
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;

  /* Typography */
  --font-heading: 'Plus Jakarta Sans', 'Outfit', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Shadows & Effects */
  --shadow-sm: 0 2px 8px -2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 40px -12px rgba(15, 23, 42, 0.14);
  --shadow-xl: 0 25px 60px -15px rgba(7, 17, 38, 0.25);
  --shadow-gold: 0 10px 30px -5px rgba(245, 158, 11, 0.35);

  /* Border Radius */
  --radius-sm: 0.5rem;
  --radius-md: 0.875rem;
  --radius-lg: 1.25rem;
  --radius-xl: 1.75rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  font-family: var(--font-body);
  color: var(--slate-800);
  background-color: var(--slate-50);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--slate-900);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
}

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

ul {
  list-style: none;
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
}

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

/* Utility Classes */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(37, 99, 235, 0.12));
  color: var(--primary-700);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.badge-pill.dark {
  background: rgba(255, 255, 255, 0.12);
  color: var(--gold-400);
  border-color: rgba(251, 191, 36, 0.35);
  backdrop-filter: blur(8px);
}

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

.section-header h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin: 0.75rem 0 1rem;
  color: var(--primary-900);
}

.section-header p {
  font-size: 1.075rem;
  color: var(--slate-600);
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary-600), var(--gold-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gold {
  color: var(--gold-500);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: var(--primary-900);
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  box-shadow: 0 14px 34px -5px rgba(245, 158, 11, 0.5);
}

.btn-navy {
  background: linear-gradient(135deg, var(--primary-800), var(--primary-900));
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-navy:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--primary-700), var(--primary-800));
  box-shadow: var(--shadow-lg);
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(8px);
}

.btn-outline-light:hover {
  background: var(--white);
  color: var(--primary-900);
  transform: translateY(-2px);
}

.btn-outline-navy {
  border: 1.5px solid var(--primary-700);
  color: var(--primary-800);
  background: transparent;
}

.btn-outline-navy:hover {
  background: var(--primary-800);
  color: var(--white);
  transform: translateY(-2px);
}

/* ==========================================================================
   TOP BAR (Contact, Location, Bilingual Badge & Social Media)
   ========================================================================== */
.top-bar {
  background: var(--primary-900);
  color: var(--slate-300);
  font-size: 0.825rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 1001;
}

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

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.top-info-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--slate-200);
}

.top-info-item i {
  color: var(--gold-400);
  font-size: 0.9rem;
}

.top-info-item a:hover {
  color: var(--gold-400);
}

.phone-group {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.phone-divider {
  color: rgba(255, 255, 255, 0.25);
}

.bilingual-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.09);
  padding: 0.22rem 0.7rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(251, 191, 36, 0.3);
  color: var(--gold-300);
  font-weight: 600;
  font-size: 0.75rem;
}

.social-links-top {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.social-links-top span {
  font-size: 0.75rem;
  color: var(--slate-400);
  margin-right: 0.2rem;
}

.social-icon-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.78rem;
  transition: var(--transition-fast);
}

.social-icon-btn:hover {
  background: var(--gold-500);
  color: var(--primary-900);
  transform: translateY(-2px);
}

/* ==========================================================================
   MAIN HEADER & NAVIGATION (With Admission Submenu)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 4px 20px -4px rgba(15, 23, 42, 0.05);
  transition: var(--transition-fast);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  gap: 1rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  cursor: pointer;
}

.crest-badge {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary-800), var(--primary-900));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 8px 20px -4px rgba(12, 30, 62, 0.35);
  border: 2px solid var(--gold-400);
  flex-shrink: 0;
}

.crest-badge svg {
  width: 32px;
  height: 32px;
}

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

.brand-title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.22rem;
  color: var(--primary-900);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.brand-subtitle {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-600);
  margin-top: 0.15rem;
}

.brand-levels {
  font-size: 0.7rem;
  color: var(--slate-500);
  font-weight: 600;
}

/* Primary Nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem 0.95rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--slate-700);
  transition: var(--transition-fast);
  cursor: pointer;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-800);
  background: rgba(37, 99, 235, 0.07);
}

.nav-link.active {
  color: var(--primary-700);
  box-shadow: inset 0 -2.5px 0 var(--gold-500);
}

.nav-link .chevron {
  font-size: 0.72rem;
  transition: transform 0.25s ease;
}

.nav-item.has-dropdown:hover .chevron,
.nav-item.has-dropdown.open .chevron {
  transform: rotate(180deg);
}

/* Dropdown Submenu */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 260px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--slate-200);
  padding: 0.6rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition-smooth);
  z-index: 1100;
}

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

.dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  cursor: pointer;
}

.dropdown-item:hover,
.dropdown-item.active {
  background: var(--slate-100);
}

.dropdown-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(37, 99, 235, 0.12));
  color: var(--primary-800);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.dropdown-item:hover .dropdown-icon {
  background: var(--gold-500);
  color: var(--primary-900);
}

.dropdown-text strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-900);
}

.dropdown-text span {
  display: block;
  font-size: 0.76rem;
  color: var(--slate-500);
  margin-top: 0.1rem;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--slate-100);
  color: var(--primary-900);
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

/* ==========================================================================
   PAGE VIEW ROUTING SYSTEM
   ========================================================================== */
.page-view {
  display: none;
  animation: fadePageIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.page-view.active {
  display: block;
}

@keyframes fadePageIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Subpage Hero Banner */
.page-hero {
  position: relative;
  background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-800) 60%, #17366e 100%);
  color: var(--white);
  padding: 5rem 0 4.25rem;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.22), transparent 45%),
              radial-gradient(circle at 15% 85%, rgba(37, 99, 235, 0.28), transparent 50%);
  pointer-events: none;
}

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

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--gold-300);
  margin-bottom: 1rem;
  font-weight: 600;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(2.25rem, 4.2vw, 3.35rem);
  margin-bottom: 1rem;
}

.page-hero p {
  font-size: 1.125rem;
  color: var(--slate-200);
  max-width: 680px;
}

/* ==========================================================================
   HERO IMAGE SLIDER (HOME PAGE)
   ========================================================================== */
.hero-slider-section {
  position: relative;
  height: clamp(580px, 82vh, 760px);
  background: var(--primary-900);
  overflow: hidden;
}

.slider-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease, visibility 0.9s ease;
  z-index: 1;
}

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

.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  transition: transform 6.5s ease-out;
}

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

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    95deg,
    rgba(7, 17, 38, 0.92) 0%,
    rgba(12, 30, 62, 0.80) 52%,
    rgba(7, 17, 38, 0.45) 100%
  );
}

.slide-content-wrap {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  align-items: center;
}

.slide-content {
  max-width: 740px;
  color: var(--white);
  padding: 2rem 0;
}

.slide-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-full);
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(251, 191, 36, 0.5);
  color: var(--gold-300);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(8px);
}

.slide-title {
  color: var(--white);
  font-size: clamp(2.35rem, 4.8vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.slide-title span {
  color: var(--gold-400);
}

.slide-desc {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: var(--slate-200);
  margin-bottom: 2rem;
  max-width: 630px;
}

.slide-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.slide-highlights {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  flex-wrap: wrap;
}

.slide-highlight-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.88rem;
  color: var(--slate-200);
  font-weight: 600;
}

.slide-highlight-item i {
  color: var(--gold-400);
}

/* Slider Controls */
.slider-controls {
  position: absolute;
  bottom: 2.25rem;
  left: 0;
  right: 0;
  z-index: 10;
}

.slider-controls-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.slider-dots {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.slider-dot {
  width: 38px;
  height: 6px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.28);
  transition: var(--transition-smooth);
  cursor: pointer;
  overflow: hidden;
  position: relative;
}

.slider-dot.active {
  width: 64px;
  background: var(--gold-400);
}

.slider-arrows {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.slider-arrow {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  transition: var(--transition-fast);
}

.slider-arrow:hover {
  background: var(--gold-500);
  color: var(--primary-900);
  border-color: var(--gold-500);
}

/* ==========================================================================
   FLOATING QUICK STATS & INFO BAR
   ========================================================================== */
.quick-stats-strip {
  position: relative;
  z-index: 15;
  margin-top: -3.25rem;
  margin-bottom: 4rem;
}

.quick-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--slate-200);
  overflow: hidden;
}

.stat-box {
  padding: 1.85rem 1.65rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  border-right: 1px solid var(--slate-200);
  transition: var(--transition-fast);
}

.stat-box:last-child {
  border-right: none;
}

.stat-box:hover {
  background: var(--slate-50);
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary-800), var(--primary-600));
  color: var(--gold-400);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.stat-info h3 {
  font-size: 1.45rem;
  color: var(--primary-900);
  margin-bottom: 0.15rem;
}

.stat-info p {
  font-size: 0.84rem;
  color: var(--slate-600);
  font-weight: 500;
}

/* ==========================================================================
   STRATEGIC PARTNERS SHOWCASE (GERMAN EMBASSY, GOETHE-INSTITUT, GISA)
   ========================================================================== */
.partners-section {
  padding: 3rem 0 5rem;
}

.partners-banner {
  background: linear-gradient(135deg, var(--primary-900) 0%, #10254c 100%);
  border-radius: var(--radius-xl);
  padding: 3.25rem;
  color: var(--white);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.partners-banner::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.18), transparent 70%);
  pointer-events: none;
}

.partners-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.partners-header h2 {
  color: var(--white);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  margin-top: 0.65rem;
}

.partners-header p {
  color: var(--slate-300);
  margin-top: 0.5rem;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  position: relative;
  z-index: 2;
}

.partner-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  backdrop-filter: blur(12px);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.partner-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--gold-400);
}

.partner-emblem {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.partner-flag-badge {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}

.german-stripes {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #000000 33.3%, #dd0000 33.3%, #dd0000 66.6%, #ffce00 66.6%);
}

.partner-card h3 {
  color: var(--white);
  font-size: 1.2rem;
}

.partner-card .partner-role {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold-400);
  font-weight: 700;
}

.partner-card p {
  font-size: 0.92rem;
  color: var(--slate-300);
  margin-bottom: 1.25rem;
}

.partner-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.partner-tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  background: rgba(245, 158, 11, 0.16);
  color: var(--gold-300);
  font-weight: 600;
}

/* ==========================================================================
   ACADEMIC DEPARTMENTS (CRÈCHE, NURSERY, PRIMARY, JHS)
   ========================================================================== */
.departments-section {
  padding: 4rem 0 5.5rem;
}

.departments-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.dept-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--slate-200);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.dept-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--gold-400);
}

.dept-img-wrap {
  position: relative;
  height: 210px;
  overflow: hidden;
}

.dept-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.dept-age-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(7, 17, 38, 0.85);
  color: var(--gold-400);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 700;
  backdrop-filter: blur(6px);
}

.dept-body {
  padding: 1.65rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.dept-icon-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.dept-body h3 {
  font-size: 1.35rem;
  margin-bottom: 0.65rem;
  color: var(--primary-900);
}

.dept-body p {
  font-size: 0.92rem;
  color: var(--slate-600);
  margin-bottom: 1.25rem;
}

.dept-features {
  margin-top: auto;
  border-top: 1px solid var(--slate-100);
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.dept-features li {
  font-size: 0.84rem;
  color: var(--slate-700);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.dept-features li i {
  color: var(--emerald-600);
  font-size: 0.8rem;
}

/* ==========================================================================
   BILINGUAL FOCUS: ENGLISH & GERMAN LANGUAGE EXCELLENCE
   ========================================================================== */
.bilingual-section {
  padding: 5.5rem 0;
  background: linear-gradient(180deg, var(--white) 0%, var(--slate-100) 100%);
  border-top: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
}

.bilingual-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}

.subject-cards-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 1.75rem 0;
}

.subject-spotlight-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--primary-600);
}

.subject-spotlight-card.german {
  border-left-color: var(--gold-500);
}

.subject-spotlight-card h4 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.subject-spotlight-card p {
  font-size: 0.88rem;
  color: var(--slate-600);
}

/* Interactive Language Sampler Widget */
.language-sampler-box {
  background: var(--primary-900);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

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

.sampler-header h3 {
  color: var(--white);
  font-size: 1.35rem;
}

.phrase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.phrase-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.phrase-card:hover, .phrase-card.active {
  background: rgba(245, 158, 11, 0.18);
  border-color: var(--gold-400);
  transform: translateY(-2px);
}

.phrase-en {
  font-size: 0.8rem;
  color: var(--slate-300);
  display: block;
}

.phrase-de {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--gold-400);
  display: block;
  margin-top: 0.2rem;
}

.phrase-pronounce {
  font-size: 0.74rem;
  color: var(--slate-400);
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* ==========================================================================
   SPORTS & CO-CURRICULAR ARENA (BASKETBALL, VOLLEYBALL, FOOTBALL, TABLE TENNIS, HANDBALL)
   ========================================================================== */
.sports-section {
  padding: 5.5rem 0;
}

.sports-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.sport-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--slate-200);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.sport-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.sport-visual {
  height: 195px;
  position: relative;
  overflow: hidden;
}

.sport-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.sport-card:hover .sport-visual img {
  transform: scale(1.07);
}

.sport-badge {
  position: absolute;
  bottom: 0.85rem;
  left: 0.85rem;
  background: rgba(7, 17, 38, 0.88);
  color: var(--white);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  backdrop-filter: blur(6px);
}

.sport-badge i {
  color: var(--gold-400);
}

.sport-content {
  padding: 1.5rem;
  flex: 1;
}

.sport-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.sport-content p {
  font-size: 0.9rem;
  color: var(--slate-600);
  margin-bottom: 1rem;
}

.sport-meta {
  font-size: 0.8rem;
  color: var(--primary-700);
  font-weight: 700;
  background: var(--slate-100);
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  display: inline-block;
}

/* ==========================================================================
   ADMISSION PAGES (FORMS, REQUIREMENTS, ACADEMIC CALENDAR)
   ========================================================================== */
.content-section {
  padding: 4.5rem 0;
}

.admission-tabs-bar {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.form-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--slate-200);
  padding: 2.75rem;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--slate-800);
}

.form-group label span.req {
  color: var(--crimson-500);
}

.form-control {
  padding: 0.82rem 1rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--slate-300);
  background: var(--slate-50);
  color: var(--slate-900);
  transition: var(--transition-fast);
}

.form-control:focus {
  border-color: var(--primary-600);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.form-section-title {
  grid-column: 1 / -1;
  font-size: 1.15rem;
  color: var(--primary-800);
  padding-bottom: 0.6rem;
  margin-top: 1rem;
  border-bottom: 2px solid var(--slate-200);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.form-section-title i {
  color: var(--gold-600);
}

/* Requirements Cards */
.req-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.req-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--slate-200);
}

.req-card h3 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.req-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.req-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.94rem;
  color: var(--slate-700);
}

.req-list li i {
  color: var(--gold-600);
  margin-top: 0.28rem;
}

/* Academic Calendar Table & Timeline */
.calendar-controls {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 2.25rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.88rem;
  background: var(--white);
  color: var(--slate-700);
  border: 1px solid var(--slate-300);
  transition: var(--transition-fast);
}

.filter-btn.active, .filter-btn:hover {
  background: var(--primary-800);
  color: var(--white);
  border-color: var(--primary-800);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.term-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--slate-200);
  overflow: hidden;
}

.term-header {
  background: linear-gradient(135deg, var(--primary-800), var(--primary-900));
  color: var(--white);
  padding: 1.35rem 1.5rem;
  border-bottom: 3px solid var(--gold-500);
}

.term-header h3 {
  color: var(--white);
  font-size: 1.2rem;
}

.term-header span {
  font-size: 0.8rem;
  color: var(--gold-300);
}

.term-events {
  padding: 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cal-event {
  display: flex;
  gap: 0.9rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px dashed var(--slate-200);
}

.cal-event:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.cal-date {
  min-width: 68px;
  background: var(--gold-100);
  color: var(--primary-900);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.5rem;
  text-align: center;
  font-weight: 800;
  font-size: 0.78rem;
  line-height: 1.25;
  height: fit-content;
}

.cal-details h4 {
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.cal-details p {
  font-size: 0.82rem;
  color: var(--slate-500);
}

/* ==========================================================================
   RESOURCES, NEWS & MEDIA GALLERY
   ========================================================================== */
.resource-grid, .news-grid, .media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.65rem;
}

.resource-card, .news-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.85rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--slate-200);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.resource-card:hover, .news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.news-card {
  padding: 0;
  overflow: hidden;
}

.news-img {
  height: 205px;
  position: relative;
  overflow: hidden;
}

.news-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-cat {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--gold-500);
  color: var(--primary-900);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.28rem 0.75rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.news-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-date {
  font-size: 0.8rem;
  color: var(--slate-500);
  margin-bottom: 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.news-body h3 {
  font-size: 1.2rem;
  margin-bottom: 0.65rem;
}

.news-body p {
  font-size: 0.9rem;
  color: var(--slate-600);
  margin-bottom: 1.25rem;
}

/* Media Gallery */
.media-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 270px;
  cursor: pointer;
  box-shadow: var(--shadow-md);
}

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

.media-item:hover img {
  transform: scale(1.09);
}

.media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 17, 38, 0.9) 0%, rgba(7, 17, 38, 0.2) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  color: var(--white);
}

.media-overlay span {
  font-size: 0.75rem;
  color: var(--gold-400);
  font-weight: 700;
  text-transform: uppercase;
}

.media-overlay h4 {
  color: var(--white);
  font-size: 1.12rem;
  margin-top: 0.2rem;
}

/* ==========================================================================
   CONTACT US & SOCIAL HUB
   ========================================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 2.5rem;
}

.contact-info-panel {
  background: linear-gradient(135deg, var(--primary-900), var(--primary-800));
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-xl);
}

.contact-info-panel h3 {
  color: var(--white);
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}

.contact-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 2rem 0;
}

.contact-detail-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.07);
  padding: 1.15rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--gold-500);
  color: var(--primary-900);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-detail-row h4 {
  color: var(--gold-300);
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}

.contact-detail-row p, .contact-detail-row a {
  color: var(--white);
  font-size: 0.96rem;
  font-weight: 600;
}

/* ==========================================================================
   LIGHTBOX & MODALS
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-backdrop.open {
  display: flex;
}

.modal-box {
  background: var(--white);
  border-radius: var(--radius-xl);
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.25rem;
  position: relative;
  box-shadow: var(--shadow-xl);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--slate-100);
  color: var(--slate-800);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.modal-close:hover {
  background: var(--crimson-500);
  color: var(--white);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--primary-900);
  color: var(--slate-300);
  padding: 5rem 0 2rem;
  border-top: 4px solid var(--gold-500);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

.footer-col h4 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.6rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 38px;
  height: 3px;
  background: var(--gold-500);
  border-radius: 2px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  color: var(--slate-300);
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
}

.footer-links a:hover {
  color: var(--gold-400);
  transform: translateX(4px);
}

.footer-social-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.86rem;
  color: var(--slate-400);
}

/* Floating WhatsApp / Call Quick Button */
.floating-contact-pill {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 990;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: linear-gradient(135deg, #059669, #10b981);
  color: var(--white);
  padding: 0.8rem 1.25rem;
  border-radius: var(--radius-full);
  box-shadow: 0 12px 28px -6px rgba(5, 150, 105, 0.55);
  font-weight: 700;
  font-size: 0.9rem;
}

.floating-contact-pill:hover {
  transform: translateY(-3px);
}

/* ==========================================================================
   BEZELEEL AI ASSISTANT CHATBOT WIDGET
   ========================================================================== */
.ai-chatbot-wrapper {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1500;
  font-family: var(--font-body);
}

.ai-chat-launcher {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-700) 100%);
  color: var(--white);
  padding: 0.65rem 1.35rem 0.65rem 0.75rem;
  border-radius: var(--radius-full);
  border: 2px solid var(--gold-400);
  box-shadow: 0 16px 36px -6px rgba(7, 17, 38, 0.45), 0 0 0 4px rgba(245, 158, 11, 0.18);
  cursor: pointer;
  position: relative;
  transition: var(--transition-smooth);
}

.ai-chat-launcher:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 20px 42px -6px rgba(7, 17, 38, 0.55), 0 0 0 6px rgba(245, 158, 11, 0.28);
}

.ai-launcher-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: var(--primary-900);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.ai-launcher-label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
}

.ai-badge-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3);
  animation: aiPulseDot 2s infinite;
}

@keyframes aiPulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.75; }
}

/* Chat Window Container */
.ai-chat-window {
  position: absolute;
  bottom: calc(100% + 14px);
  right: 0;
  width: 400px;
  max-width: calc(100vw - 2rem);
  height: 565px;
  max-height: calc(100vh - 120px);
  background: var(--white);
  border-radius: 1.35rem;
  box-shadow: 0 25px 65px -12px rgba(7, 17, 38, 0.38);
  border: 1px solid var(--slate-200);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px) scale(0.96);
  transform-origin: bottom right;
  transition: var(--transition-smooth);
}

.ai-chat-window.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Chat Header */
.ai-chat-header {
  background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-800) 100%);
  color: var(--white);
  padding: 1rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 3px solid var(--gold-500);
}

.ai-chat-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ai-avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: var(--primary-900);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  position: relative;
  flex-shrink: 0;
}

.ai-online-dot {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #10b981;
  border: 2px solid var(--primary-900);
}

.ai-chat-brand h4 {
  color: var(--white);
  font-size: 0.98rem;
  margin-bottom: 0.1rem;
}

.ai-chat-brand p {
  font-size: 0.74rem;
  color: var(--slate-300);
  font-weight: 500;
}

.ai-header-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.ai-header-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--slate-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: var(--transition-fast);
}

.ai-header-btn:hover, .ai-header-btn.active {
  background: var(--gold-500);
  color: var(--primary-900);
}

/* Messages Feed */
.ai-chat-messages {
  flex: 1;
  padding: 1.1rem;
  overflow-y: auto;
  background: var(--slate-50);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.ai-msg {
  display: flex;
  gap: 0.6rem;
  max-width: 90%;
  animation: fadePageIn 0.25s ease forwards;
}

.ai-msg.bot {
  align-self: flex-start;
}

.ai-msg.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.ai-msg-avatar {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--primary-800);
  color: var(--gold-400);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.ai-msg.user .ai-msg-avatar {
  background: var(--gold-500);
  color: var(--primary-900);
}

.ai-msg-bubble {
  padding: 0.8rem 1rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  line-height: 1.55;
  box-shadow: var(--shadow-sm);
}

.ai-msg.bot .ai-msg-bubble {
  background: var(--white);
  color: var(--slate-800);
  border: 1px solid var(--slate-200);
  border-top-left-radius: 0.25rem;
}

.ai-msg.user .ai-msg-bubble {
  background: linear-gradient(135deg, var(--primary-800), var(--primary-900));
  color: var(--white);
  border-top-right-radius: 0.25rem;
}

.ai-msg-bubble strong {
  color: var(--primary-900);
}

.ai-msg.user .ai-msg-bubble strong {
  color: var(--gold-300);
}

.ai-msg-bubble ul {
  margin: 0.45rem 0;
  padding-left: 1.1rem;
  list-style: disc;
}

.ai-msg-bubble li {
  margin-bottom: 0.25rem;
}

.ai-msg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.65rem;
}

.ai-action-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  background: var(--gold-100);
  color: var(--primary-900);
  font-weight: 700;
  font-size: 0.76rem;
  border: 1px solid var(--gold-400);
  cursor: pointer;
  transition: var(--transition-fast);
}

.ai-action-link:hover {
  background: var(--gold-500);
  color: var(--primary-900);
}

/* Typing Indicator */
.ai-typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.2rem 0;
}

.ai-typing-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-500);
  animation: aiBounce 1.2s infinite ease-in-out;
}

.ai-typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.ai-typing-dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes aiBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40% { transform: translateY(-5px); opacity: 1; }
}

/* Quick Chips Bar */
.ai-quick-chips {
  display: flex;
  gap: 0.45rem;
  padding: 0.6rem 0.9rem;
  background: var(--white);
  border-top: 1px solid var(--slate-200);
  overflow-x: auto;
  scrollbar-width: thin;
}

.ai-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.75rem;
  border-radius: var(--radius-full);
  background: var(--slate-100);
  color: var(--primary-800);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid var(--slate-200);
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.ai-chip:hover {
  background: var(--primary-800);
  color: var(--white);
  border-color: var(--primary-800);
}

.ai-chip i {
  color: var(--gold-600);
}

.ai-chip:hover i {
  color: var(--gold-400);
}

/* Chat Input Area */
.ai-chat-input-area {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.75rem 0.9rem;
  background: var(--white);
  border-top: 1px solid var(--slate-200);
}

.ai-chat-input {
  flex: 1;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-full);
  background: var(--slate-100);
  border: 1.5px solid transparent;
  font-size: 0.86rem;
  color: var(--slate-900);
  transition: var(--transition-fast);
}

.ai-chat-input:focus {
  background: var(--white);
  border-color: var(--primary-600);
}

.ai-mic-btn, .ai-send-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.ai-mic-btn {
  background: var(--slate-100);
  color: var(--slate-600);
}

.ai-mic-btn:hover, .ai-mic-btn.listening {
  background: var(--crimson-500);
  color: var(--white);
}

.ai-send-btn {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: var(--primary-900);
}

.ai-send-btn:hover {
  transform: scale(1.06);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1120px) {
  .quick-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .departments-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .partners-grid, .sports-grid, .calendar-grid, .resource-grid, .news-grid, .media-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bilingual-layout, .contact-layout {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 920px) {
  .mobile-menu-toggle {
    display: inline-flex;
  }
  .main-nav {
    position: fixed;
    top: 125px;
    left: 1rem;
    right: 1rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--slate-200);
    padding: 1.25rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition-smooth);
    max-height: 78vh;
    overflow-y: auto;
  }
  .main-nav.mobile-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: var(--slate-50);
    margin-top: 0.25rem;
    display: none;
  }
  .nav-item.has-dropdown.open .dropdown-menu {
    display: block;
  }
  .header-cta .btn {
    display: none;
  }
}

@media (max-width: 640px) {
  .quick-stats-grid,
  .departments-grid,
  .partners-grid,
  .sports-grid,
  .calendar-grid,
  .resource-grid,
  .news-grid,
  .media-grid,
  .req-grid,
  .form-grid,
  .subject-cards-duo,
  .phrase-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .partners-banner, .form-card, .contact-info-panel {
    padding: 1.5rem;
  }
  .top-bar-inner {
    justify-content: center;
    text-align: center;
  }
  .floating-contact-pill span {
    display: none;
  }
  .floating-contact-pill {
    padding: 0.85rem;
  }
}

@media print {
  .top-bar, .site-header, .site-footer, .floating-contact-pill, .ai-chatbot-wrapper, .page-hero, .admission-tabs-bar {
    display: none !important;
  }
  .page-view {
    display: none !important;
  }
  #view-admission-forms {
    display: block !important;
  }
  .form-card {
    box-shadow: none;
    border: 1px solid #000;
  }
}
