/* ============================================================
   E-MAKTAB GLOBAL DESIGN SYSTEM — FULLY RESPONSIVE EDUVERA EDITION
   Mobile-First & Fluid Responsive Typography for Desktop, Tablet & Mobile
   - Font Family: 'Plus Jakarta Sans' ONLY (400, 500, 600, 700, 800)
   - Zero horizontal overflow across Desktop (>1024px), Tablet (768px–1023px), Mobile (<767px)
   ============================================================ */

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

:root {
  /* Brand Primary Emerald */
  --primary: #0D7A5F;
  --primary-hover: #0A634D;
  --primary-dark: #064E3B;
  --primary-light: #109D7B;
  --primary-subtle: #ECFDF5;
  --primary-border: #A7F3D0;
  --primary-gradient: linear-gradient(135deg, #0D7A5F 0%, #064E3B 100%);
  --primary-glow: rgba(13, 122, 95, 0.25);

  /* Deep Midnight Navy & Dark Slate */
  --slate-900: #0F172A;
  --slate-800: #1E293B;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748B;
  --slate-400: #94A3B8;
  --slate-200: #E2E8F0;
  --slate-100: #F1F5F9;
  --slate-50: #F8FAFC;

  /* Accent Warm Amber / Gold */
  --gold: #F59E0B;
  --gold-dark: #D97706;
  --gold-subtle: #FFFBEB;
  --gold-border: #FDE68A;
  --gold-gradient: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);

  /* Neutral Surfaces */
  --bg-page: #F8FAFC;
  --bg-cream: #FCFBF7;
  --bg-surface: #FFFFFF;
  --bg-surface-alt: #F1F5F9;
  --border-color: #E2E8F0;
  --border-subtle: #EDF2F7;

  /* Text Hierarchy */
  --text-heading: #0F172A;
  --text-body: #475569;
  --text-muted: #64748B;
  --text-light: #94A3B8;

  /* Legacy Variable Aliases */
  --brand-primary: var(--primary);
  --brand-primary-dark: var(--primary-dark);
  --brand-primary-light: var(--primary-light);
  --brand-primary-subtle: var(--primary-subtle);
  --brand-navy: var(--slate-900);
  --brand-navy-light: var(--slate-800);
  --brand-gold: var(--gold);
  --brand-gold-dark: var(--gold-dark);
  --brand-gold-subtle: var(--gold-subtle);
  --bg-main: var(--bg-page);
  --bg-body: var(--bg-page);
  --bg-card: var(--bg-surface);
  --text-main: var(--text-heading);

  /* Shadows */
  --shadow-xs: 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 20px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 16px 36px -4px rgba(15, 23, 42, 0.08), 0 6px 16px -2px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 24px 50px -10px rgba(15, 23, 42, 0.14);
  --shadow-primary: 0 8px 22px -4px rgba(13, 122, 95, 0.35);
  --shadow-gold: 0 8px 22px -4px rgba(245, 158, 11, 0.35);

  /* Radius */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 9999px;

  /* Transitions */
  --transition-fast: 0.16s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================================
   GLOBAL RESET & PLUS JAKARTA SANS ONLY
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

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

body {
  background-color: var(--bg-page);
  color: var(--text-body);
  line-height: 1.62;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
}

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

ul, ol {
  list-style: none;
}

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

/* Typography Scale (Desktop Base > 1024px) */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-heading);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 { font-size: 2.6rem; font-weight: 800; }
h2 { font-size: 2.1rem; font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 600; }
h5 { font-size: 0.95rem; font-weight: 600; }
h6 { font-size: 0.85rem; font-weight: 600; }

p {
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.65;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section-spacing {
  padding: 80px 0;
}

.section-spacing-sm {
  padding: 48px 0;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  background: var(--primary-subtle);
  padding: 5px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
  border: 1px solid var(--primary-border);
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 14px;
  letter-spacing: -0.025em;
}

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

/* ============================================================
   PAGE HERO COMPONENT (INNER PAGES HEADER)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 55%, #064E3B 100%);
  color: #FFFFFF !important;
  text-align: center;
  padding: 68px 0 64px 0;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.page-hero h1 {
  color: #FFFFFF !important;
  font-size: 2.5rem;
  font-weight: 800;
  margin: 10px 0 14px 0;
  letter-spacing: -0.025em;
}

.page-hero p {
  color: #E2E8F0 !important;
  max-width: 740px;
  margin: 0 auto;
  font-size: 1.02rem;
  line-height: 1.65;
}

.page-hero .eyebrow {
  background: rgba(245, 158, 11, 0.2);
  color: #FDE68A;
  border-color: rgba(245, 158, 11, 0.45);
}

/* ============================================================
   RESPONSIVE LAYOUT GRIDS
   ============================================================ */
.overview-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.partner-banner-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.partner-features-subgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.partner-stats-subgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.faculties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
}

.course-details-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
}

/* ============================================================
   PILL BUTTONS (EDTECH PRESET)
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 26px;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition-normal);
  border: 1.5px solid transparent;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--primary-gradient);
  color: #FFFFFF !important;
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #109D7B 0%, #0D7A5F 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -4px rgba(13, 122, 95, 0.45);
}

.btn-gold {
  background: var(--gold-gradient);
  color: #FFFFFF !important;
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
  background: linear-gradient(135deg, #FBBF24 0%, #D97706 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -4px rgba(245, 158, 11, 0.45);
}

.btn-secondary {
  background: #FFFFFF;
  color: var(--text-heading) !important;
  border-color: var(--border-color);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--bg-surface-alt);
  border-color: var(--primary);
  color: var(--primary) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-white {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  color: #FFFFFF !important;
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline-white:hover {
  background: #FFFFFF;
  color: var(--slate-900) !important;
  border-color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-meet {
  background: #1A73E8;
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(26, 115, 232, 0.35);
}

.btn-meet:hover {
  background: #1557B0;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(26, 115, 232, 0.45);
}

.btn-sm {
  padding: 7px 18px;
  font-size: 0.84rem;
}

.btn-lg {
  padding: 13px 32px;
  font-size: 0.98rem;
}

/* ============================================================
   GLOBAL TOPBAR & NAVBAR
   ============================================================ */
.global-topbar {
  background: #060E20;
  color: #94A3B8;
  font-size: 0.8rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.global-topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar-highlight {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #E2E8F0;
  font-weight: 500;
}

.topbar-contact {
  display: flex;
  align-items: center;
  gap: 24px;
}

.global-header {
  background: #FFFFFF;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #E2E8F0;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
}

.global-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

/* Brand Logo */
.brand-logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 48px;
  width: 48px;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: var(--shadow-sm);
}

.brand-title-group {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-main-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-sub-title {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--gold-dark);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Desktop Navigation Links */
.global-nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

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

.nav-link-anchor {
  font-size: 0.92rem;
  font-weight: 600;
  color: #334155;
  padding: 8px 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  transition: var(--transition-fast);
}

.nav-link-anchor:hover,
.nav-link-anchor.active {
  color: var(--primary);
}

.nav-link-anchor.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 4px;
  right: 4px;
  height: 3px;
  background: var(--primary);
  border-radius: 3px;
}

/* Desktop Courses Dropdown */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: -20px;
  background: #FFFFFF;
  min-width: 280px;
  border-radius: var(--radius-lg);
  border: 1px solid #E2E8F0;
  box-shadow: 0 20px 40px -8px rgba(15, 23, 42, 0.18);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease-in-out;
  z-index: 1100;
}

.nav-link-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  font-size: 0.86rem;
  font-weight: 500;
  color: #1E293B;
  text-decoration: none;
  transition: var(--transition-fast);
}

.dropdown-link:hover {
  background: var(--primary-subtle);
  color: var(--primary);
  padding-left: 22px;
}

/* Desktop Action Buttons */
.global-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.desktop-auth-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-header-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  color: var(--primary);
  background: #FFFFFF;
  border: 1.5px solid var(--border-color);
  text-decoration: none;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.btn-header-login:hover {
  border-color: var(--primary);
  background: var(--primary-subtle);
  color: var(--primary);
  transform: translateY(-1px);
}

.btn-header-register {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 22px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  color: #FFFFFF !important;
  background: var(--primary-gradient);
  text-decoration: none;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-primary);
}

.btn-header-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -3px rgba(13, 122, 95, 0.4);
}

/* Mobile Toggle Hamburger */
.hamburger-btn {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  color: #0F172A;
  font-size: 1.35rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.hamburger-btn:hover {
  background: var(--primary-subtle);
  border-color: var(--primary);
  color: var(--primary);
}

/* ============================================================
   MOBILE DRAWER NAVIGATION (SLIDE-IN MODAL)
   ============================================================ */
.mobile-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 99998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer-panel {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  max-width: 85vw;
  height: 100vh;
  background: #FFFFFF;
  z-index: 99999;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.mobile-drawer-panel.active {
  right: 0;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid #E2E8F0;
  background: #F8FAFC;
}

.mobile-drawer-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #CBD5E1;
  background: #FFFFFF;
  color: #0F172A;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-drawer-links {
  list-style: none;
  padding: 16px 20px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-drawer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1E293B;
  text-decoration: none;
  border-radius: 10px;
  transition: var(--transition-fast);
}

.mobile-drawer-link:hover,
.mobile-drawer-link.active {
  background: var(--primary-subtle);
  color: var(--primary);
}

.mobile-drawer-actions {
  margin-top: auto;
  padding: 20px;
  border-top: 1px solid #E2E8F0;
  background: #F8FAFC;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ============================================================
   HERO BANNER SLIDER (CLEAN IMAGE BANNER)
   ============================================================ */
.hero-slider-container {
  width: 100%;
  max-width: 2080px;
  height: 440px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  background: var(--slate-900);
}

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

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.75s ease-in-out;
}

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

.hero-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: var(--transition-fast);
  z-index: 10;
}

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

.slider-arrow.prev { left: 20px; }
.slider-arrow.next { right: 20px; }

.slider-indicators {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.indicator-dot {
  width: 10px;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: var(--transition-fast);
}

.indicator-dot.active {
  width: 28px;
  background: var(--gold);
}

/* ============================================================
   STATS COUNTER BAR
   ============================================================ */
.stats-counter-banner {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  padding: 32px 36px;
  margin-top: -36px;
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.counter-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.counter-item:not(:last-child) {
  border-right: 1px solid var(--border-color);
}

.counter-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-subtle);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.counter-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.counter-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================================
   COURSES GRID & CARDS
   ============================================================ */
.courses-grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

.course-level-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.course-level-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary-gradient);
  opacity: 0;
  transition: var(--transition-fast);
}

.course-level-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.course-level-card:hover::before {
  opacity: 1;
}

.card-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.level-category-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-subtle);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--primary-border);
}

.duration-pill {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-dark);
  background: var(--gold-subtle);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--gold-border);
}

.card-course-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.card-course-desc {
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 18px;
}

.card-subjects-box {
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 22px;
}

.subjects-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-heading);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.subjects-tag-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.subject-item-tag {
  font-size: 0.78rem;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  padding: 4px 8px;
  border-radius: 6px;
  color: var(--text-body);
  font-weight: 500;
}

.card-footer-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

/* ============================================================
   FEATURE BOXES / 4 PILLARS
   ============================================================ */
.features-grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.feature-box-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

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

.feature-squircle-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.icon-emerald { background: #ECFDF5; color: #059669; }
.icon-indigo { background: #EEF2FF; color: #4F46E5; }
.icon-amber { background: #FFFBEB; color: #D97706; }
.icon-rose { background: #FFF1F2; color: #E11D48; }

.feature-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 8px;
}

.feature-card-desc {
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.58;
}

/* ============================================================
   FORMS & INPUTS
   ============================================================ */
.field-group,
.doc-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
  width: 100%;
}

.field-label,
.doc-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-heading);
}

.field-input,
.field-select,
.field-textarea,
.doc-field input[type="text"],
.doc-field input[type="email"],
.doc-field input[type="tel"],
.doc-field input[type="date"],
.doc-field input[type="time"],
.doc-field input[type="password"],
.doc-field input[type="number"],
.doc-field input[type="url"],
.doc-field select,
.doc-field textarea {
  width: 100%;
  padding: 11px 14px;
  font-size: 0.9rem;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: #F8FAFC;
  color: var(--text-heading);
  transition: var(--transition-fast);
  outline: none;
}

.field-textarea,
.doc-field textarea {
  min-height: 85px;
  resize: vertical;
}

.field-input:focus,
.field-select:focus,
.field-textarea:focus,
.doc-field input:focus,
.doc-field select:focus,
.doc-field textarea:focus {
  background: #FFFFFF;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

.form-grid-2,
.doc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 18px;
}

.form-grid-full,
.doc-grid-full {
  grid-column: span 2;
}

.field-options-group,
.doc-options-group {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 4px 0;
}

.field-option-label,
.doc-option-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-body);
  cursor: pointer;
  font-weight: 500;
}

.field-option-label input,
.doc-option-label input {
  accent-color: var(--primary);
  width: 17px;
  height: 17px;
  cursor: pointer;
}

/* ============================================================
   MODALS SYSTEM (GLOBAL SLEEK DIALOGS)
   ============================================================ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
  padding: 16px;
}

.modal-overlay.active {
  opacity: 1 !important;
  visibility: visible !important;
}

.modal-box {
  background: #FFFFFF !important;
  border-radius: var(--radius-lg);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  transform: translateY(20px) scale(0.98);
  transition: var(--transition-normal);
  border: 1px solid var(--border-color);
  color: var(--text-heading);
}

.modal-overlay.active .modal-box {
  transform: translateY(0) scale(1);
}

.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #0D7A5F 0%, #064E3B 100%);
  color: #FFFFFF;
}

.modal-header h3 {
  font-size: 1.2rem;
  color: #FFFFFF !important;
  font-weight: 700;
  margin: 0;
}

.close-modal-btn {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  font-size: 1.1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #FFFFFF;
  transition: var(--transition-fast);
}

.close-modal-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.modal-body {
  padding: 28px;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background: #F8FAFC;
}

/* ============================================================
   GLOBAL FOOTER & HIGH-CONTRAST DARK BACKGROUND RULE
   ============================================================ */
.global-topbar,
.page-hero,
.global-footer,
.doc-section-title,
.modal-header,
.dashboard-sidebar,
.live-class-card,
[style*="background: #0F172A"],
[style*="background:#0F172A"],
[style*="background: var(--slate-900)"],
[style*="background:var(--slate-900)"],
[style*="background: var(--brand-navy)"],
[style*="background:var(--brand-navy)"] {
  color: #FFFFFF !important;
}

.global-topbar a,
.global-topbar span,
.global-topbar div,
.page-hero h1,
.page-hero p,
.global-footer h4,
.global-footer p,
.global-footer a,
.global-footer li,
.global-footer span,
.doc-section-title,
.modal-header h3,
.modal-header span,
.modal-header button,
.dashboard-sidebar a,
.dashboard-sidebar button,
.dashboard-sidebar span,
.dashboard-sidebar div,
.live-class-card h3,
.live-class-card p,
.live-class-card div,
.live-class-card span {
  color: #FFFFFF !important;
}

.global-footer a:hover {
  color: var(--gold) !important;
}

.page-hero .eyebrow {
  color: #FDE68A !important;
}

.global-footer {
  background: var(--slate-900);
  color: #FFFFFF !important;
  padding: 68px 0 28px 0;
  border-top: 4px solid var(--gold);
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 44px;
}

.footer-brand-col .footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-logo-img {
  height: 50px;
  width: auto;
  background: #FFFFFF;
  border-radius: 8px;
  padding: 4px;
}

.footer-brand-title {
  color: #FFFFFF;
  font-size: 1.25rem;
  font-weight: 800;
}

.footer-brand-sub {
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.footer-brand-col p {
  color: #94A3B8;
  font-size: 0.88rem;
  line-height: 1.65;
}

.footer-col-title {
  color: #FFFFFF;
  font-size: 1.0rem;
  font-weight: 700;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 6px;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--gold);
}

.footer-link-list li {
  margin-bottom: 10px;
}

.footer-link-list a {
  color: #94A3B8;
  font-size: 0.88rem;
  transition: var(--transition-fast);
}

.footer-link-list a:hover {
  color: #FFFFFF;
  padding-left: 5px;
}

.footer-contact-item {
  display: flex;
  gap: 10px;
  font-size: 0.88rem;
  color: #CBD5E1;
  margin-bottom: 12px;
  line-height: 1.5;
}

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

/* ============================================================
   TABLET BREAKPOINT (768px – 1023px)
   ============================================================ */
@media (max-width: 1023px) {
  html {
    font-size: 15px;
  }

  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.2rem; }
  h4 { font-size: 1.0rem; }
  p { font-size: 0.9rem; }

  .section-spacing {
    padding: 60px 0;
  }

  .section-spacing-sm {
    padding: 38px 0;
  }

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

  .page-hero {
    padding: 52px 0 48px 0;
  }

  .page-hero h1 {
    font-size: 2.05rem;
  }

  .page-hero p {
    font-size: 0.95rem;
  }

  .overview-grid,
  .partner-banner-grid,
  .contact-grid,
  .course-details-layout {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  .global-topbar {
    display: none !important;
  }

  .desktop-auth-actions {
    display: none !important;
  }

  .global-nav-links {
    display: none !important;
  }

  .hamburger-btn {
    display: flex !important;
  }

  .brand-logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }

  .brand-logo-img {
    height: 42px;
    width: 42px;
    flex-shrink: 0;
  }

  .brand-title-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
  }

  .brand-main-title {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.1;
    white-space: nowrap;
  }

  .brand-sub-title {
    font-size: 0.66rem;
    font-weight: 700;
    white-space: nowrap;
    letter-spacing: 0.05em;
  }

  .hero-slider-container {
    height: 320px;
  }

  .courses-grid-layout {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

/* ============================================================
   MOBILE BREAKPOINT (< 767px)
   Strict Single Column Stacking & Zero Cutoff
   ============================================================ */
@media (max-width: 767px) {
  html {
    font-size: 14px;
  }

  .container {
    padding-left: 14px !important;
    padding-right: 14px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  h1 { font-size: 1.65rem !important; }
  h2 { font-size: 1.4rem !important; }
  h3 { font-size: 1.12rem !important; }
  h4 { font-size: 0.95rem !important; }
  p { font-size: 0.85rem !important; line-height: 1.6 !important; }

  .section-spacing {
    padding: 44px 0 !important;
  }

  .section-spacing-sm {
    padding: 28px 0 !important;
  }

  .section-header {
    margin-bottom: 32px;
  }

  .eyebrow {
    font-size: 0.72rem;
    padding: 4px 12px;
    margin-bottom: 10px;
  }

  .section-title {
    font-size: 1.5rem !important;
    margin-bottom: 10px;
  }

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

  .page-hero {
    padding: 40px 0 36px 0 !important;
  }

  .page-hero h1 {
    font-size: 1.65rem !important;
  }

  .page-hero p {
    font-size: 0.88rem !important;
  }

  /* Force 100% Single Column on All Grid Layouts */
  .overview-grid,
  .partner-banner-grid,
  .contact-grid,
  .course-details-layout,
  .partner-features-subgrid,
  .partner-stats-subgrid,
  .faculties-grid,
  .testimonials-grid,
  .steps-grid,
  .courses-grid-layout,
  .features-grid-4 {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    width: 100% !important;
  }

  .overview-grid > div,
  .partner-banner-grid > div,
  .contact-grid > div,
  .course-details-layout > div {
    width: 100% !important;
  }

  .global-topbar {
    display: none !important;
  }

  .global-navbar {
    height: 66px;
  }

  .brand-logo-link {
    gap: 8px;
  }

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

  .brand-main-title {
    font-size: 1.08rem;
    letter-spacing: -0.02em;
    white-space: nowrap;
  }

  .brand-sub-title {
    font-size: 0.60rem;
    letter-spacing: 0.04em;
    white-space: nowrap;
  }

  .user-account-dropdown {
    width: calc(100vw - 32px);
    max-width: 280px;
    right: 0;
  }

  .hero-slider-container {
    height: 220px !important;
  }

  .slider-arrow {
    width: 32px;
    height: 32px;
    font-size: 1.0rem;
  }

  .slider-arrow.prev { left: 10px; }
  .slider-arrow.next { right: 10px; }

  .footer-top-grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
  .course-level-card {
    padding: 22px 18px !important;
  }

  .card-course-title {
    font-size: 1.2rem !important;
  }

  .feature-box-card {
    padding: 22px 18px !important;
  }

  .form-grid-2,
  .doc-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .form-grid-full,
  .doc-grid-full {
    grid-column: span 1 !important;
  }

  .field-input,
  .field-select,
  .field-textarea,
  .doc-field input,
  .doc-field select,
  .doc-field textarea {
    padding: 10px 12px;
    font-size: 0.88rem;
  }

  .footer-top-grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }

  .footer-bottom-bar {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}
