/* ============================================
   JGL — Jordan Gaming & Emerging Technologies Lab
   Institutional Redesign — Clean Government Style
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Brand */
  --navy: #0B1F3A;
  --navy-mid: #1A3557;
  --navy-light: #2A4A6E;
  --orange: #E8621A;
  --orange-light: #F5874A;
  --white: #FFFFFF;
  --off-white: #F4F7FA;
  --mid-gray: #7A8FA8;

  /* Light mode surfaces */
  --bg-primary: #F4F7FA;
  --bg-secondary: #FFFFFF;
  --bg-nav: rgba(255,255,255,0.95);
  --bg-footer: #0B1F3A;
  --text-primary: #1A2E45;
  --text-secondary: #5A7088;
  --text-heading: #0B1F3A;
  --card-bg: #FFFFFF;
  --card-border: #DDE3EA;
  --card-shadow: 0 1px 4px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
  --card-shadow-hover: 0 4px 12px rgba(0,0,0,0.10), 0 12px 32px rgba(0,0,0,0.08);

  /* Typography */
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-arabic: 'Cairo', sans-serif;

  /* Layout */
  --radius: 8px;
  --radius-sm: 4px;
  --radius-lg: 12px;
  --max-width: 1200px;
  --transition: all 0.25s ease;
}

/* ---------- Dark Mode ---------- */
body.dark-mode {
  --bg-primary: #071020;
  --bg-secondary: #0D1B2E;
  --bg-nav: rgba(7,16,32,0.97);
  --bg-footer: #040C18;
  --text-primary: #C8D8E8;
  --text-secondary: #7A8FA8;
  --text-heading: #E8EFF8;
  --card-bg: #0D1B2E;
  --card-border: rgba(255,255,255,0.08);
  --card-shadow: 0 2px 8px rgba(0,0,0,0.3), 0 8px 24px rgba(0,0,0,0.2);
  --card-shadow-hover: 0 4px 16px rgba(0,0,0,0.4), 0 16px 48px rgba(0,0,0,0.3);
}

body.dark-mode {
  background-color: #071020;
  background-image: none;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

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

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

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

ul {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
}

/* ---------- Arabic Mode ---------- */
body.arabic-mode {
  font-family: var(--font-arabic);
  direction: rtl;
}

body.arabic-mode h1,
body.arabic-mode h2,
body.arabic-mode h3,
body.arabic-mode h4 {
  font-family: var(--font-arabic);
}

body.arabic-mode .nav-links {
  flex-direction: row-reverse;
}

body.arabic-mode .two-col {
  flex-direction: row-reverse;
}

body.arabic-mode .hero-content {
  text-align: right;
}

body.arabic-mode .section-label {
  text-align: right;
}

body.arabic-mode .about-text {
  text-align: right;
}

body.arabic-mode .innovation-card,
body.arabic-mode .about-card {
  border-left: none;
  border-right: 3px solid var(--orange);
}

body.arabic-mode .quote-block {
  border-left: none;
  border-right: 4px solid var(--orange);
  padding-left: 0;
  padding-right: 28px;
  border-radius: var(--radius) 0 0 var(--radius);
}

/* ---------- Scroll Progress Bar ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #E8621A, #F5874A);
  width: 0%;
  z-index: 9999;
  transition: width 0.1s;
}

/* ---------- NAVBAR ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--bg-nav);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 4px solid var(--orange);
  border-bottom: 1px solid var(--card-border);
  height: 72px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: background 0.3s, box-shadow 0.3s;
}

.nav-container {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.nav-brand img {
  height: 44px;
  width: auto;
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.nav-brand-text .brand-line-1 {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-family: var(--font-heading);
}

.nav-brand-text .brand-line-2 {
  font-size: 10px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-family: var(--font-heading);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: 0.3px;
  padding: 4px 0;
  position: relative;
  white-space: nowrap;
  transition: color 0.2s;
}

body.dark-mode .nav-links a {
  color: #C8D8E8;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--orange);
}

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

.nav-links a.nav-highlight {
  color: var(--orange);
  font-weight: 600;
}

.nav-divider {
  width: 1px;
  height: 20px;
  background: var(--card-border);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 3px 4px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  padding: 3px 10px;
  border-radius: 14px;
  transition: var(--transition);
  font-family: var(--font-body);
}

.lang-btn.active {
  background: var(--orange);
  color: #fff;
}

/* Theme Pill */
.theme-pill {
  display: flex;
  align-items: center;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 3px;
  gap: 2px;
}

.theme-pill-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 26px;
  border-radius: 16px;
  border: none;
  cursor: pointer;
  background: transparent;
  color: var(--text-secondary);
  font-size: 14px;
  transition: all 0.2s;
}

.theme-pill-btn.active {
  background: var(--orange);
  color: #fff;
}

.theme-pill-btn:hover:not(.active) {
  color: var(--orange);
}

/* Mobile Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
  border-radius: 2px;
}

body.dark-mode .hamburger span {
  background: #C8D8E8;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  width: 100%;
  height: calc(100vh - 72px);
  background: var(--navy);
  z-index: 999;
  padding: 40px 24px;
  overflow-y: auto;
}

body.dark-mode .mobile-menu {
  background: #040C18;
}

.mobile-menu.open {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu a {
  color: #C8D8E8;
  font-size: 18px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-family: var(--font-heading);
}

.mobile-menu a:hover {
  color: var(--orange);
}

.mobile-menu .mobile-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin: 12px 0;
}

/* ---------- HERO SECTION (Carousel) ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 72px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
  z-index: 0;
}

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

.hero-slide .slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  transition: transform 7s ease;
}

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

.hero-slide .slide-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(7,16,32,0.85) 0%, rgba(7,16,32,0.50) 55%, rgba(7,16,32,0.20) 100%),
    linear-gradient(to bottom, transparent 40%, rgba(7,16,32,0.7) 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.hero-text {
  max-width: 680px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(232,98,26,0.15);
  border: 1px solid rgba(232,98,26,0.35);
  border-radius: 4px;
  padding: 6px 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #F5874A;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 72px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.05;
  margin-bottom: 24px;
  font-family: var(--font-heading);
}

.hero h1 .highlight {
  color: #E8621A;
}

.hero-subtitle {
  font-size: 18px;
  color: rgba(255,255,255,0.75);
  max-width: 560px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Carousel Progress */
.hero-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: rgba(255,255,255,0.15);
  width: 100%;
  z-index: 10;
}

.hero-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--orange);
}

/* Carousel Arrows */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  font-size: 20px;
  transition: background 0.2s;
}

.hero-arrow:hover {
  background: var(--orange);
  border-color: var(--orange);
}

.hero-arrow-prev { left: 24px; }
.hero-arrow-next { right: 24px; }

/* Carousel Dots */
.hero-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 8px;
  align-items: center;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  transition: all 0.3s;
}

.hero-dot.active {
  width: 24px;
  border-radius: 4px;
  background: var(--orange);
}

.hero-dots-divider {
  width: 1px;
  height: 16px;
  background: rgba(255,255,255,0.25);
  margin: 0 4px;
  flex-shrink: 0;
}

.hero-pause {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  padding: 0;
}

.hero-pause svg {
  width: 10px;
  height: 10px;
  display: block;
}

.hero-pause:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  animation: bounce 2s infinite;
  color: rgba(255,255,255,0.4);
  font-size: 20px;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

/* ---------- BUTTONS ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 32px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
}

.btn-primary:hover {
  background: var(--orange-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232,98,26,0.3);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #FFFFFF;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 32px;
  border-radius: var(--radius);
  border: 2px solid rgba(255,255,255,0.4);
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
}

.btn-secondary:hover {
  border-color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

/* On light backgrounds outside hero */
body:not(.dark-mode) .btn-secondary:not(.hero .btn-secondary) {
  color: var(--text-primary);
  border-color: var(--card-border);
  background: transparent;
}

body:not(.dark-mode) .btn-secondary:not(.hero .btn-secondary):hover {
  border-color: var(--orange);
  color: var(--orange);
}

/* ---------- CREDIBILITY BAR ---------- */
.credibility-bar {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--card-border);
  padding: 20px 0;
}

.credibility-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.cred-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.cred-item svg {
  width: 20px;
  height: 20px;
  fill: var(--orange);
  flex-shrink: 0;
}

.cred-divider {
  width: 1px;
  height: 28px;
  background: var(--card-border);
}

/* ---------- STATS BAR ---------- */
.stats-bar {
  background: var(--navy);
  padding: 56px 0;
  border: none;
}

body.dark-mode .stats-bar {
  background: #040C18;
}

.stats-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
}

.stat-item {
  padding: 0 32px;
  border-right: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}

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

.stat-number {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
}

.stat-label {
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 8px;
}

/* ---------- SECTION STYLES ---------- */
.section {
  padding: 100px 0;
}

.section-light {
  background: var(--bg-primary);
}

.section-alt {
  background: var(--bg-secondary);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}

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

.section-darker {
  background: #040C18;
  color: #fff;
}

body.dark-mode .section-light { background: var(--bg-primary); }
body.dark-mode .section-alt { background: var(--bg-secondary); }
body.dark-mode .section-dark { background: #040C18; }
body.dark-mode .section-darker { background: #020A14; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- SECTION HEADINGS ---------- */
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: 12px;
}

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

.section-header h2 {
  font-size: 44px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 16px;
}

.section-dark .section-header h2,
.section-darker .section-header h2 {
  color: #fff;
}

.section-header .subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
}

.section-dark .section-header .subtitle,
.section-darker .section-header .subtitle {
  color: rgba(255,255,255,0.65);
}

.divider {
  width: 48px;
  height: 3px;
  background: var(--orange);
  margin: 16px 0 28px;
  border-radius: 2px;
}

/* ---------- IMAGE PLACEHOLDER ---------- */
.img-placeholder {
  background: linear-gradient(135deg, #0D2137 0%, #1A3A5C 100%);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
  min-height: 200px;
}

.img-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px dashed rgba(232,98,26,0.2);
  border-radius: var(--radius);
  pointer-events: none;
}

.img-placeholder .ph-icon {
  font-size: 36px;
  margin-bottom: 8px;
  opacity: 0.4;
}

.img-placeholder .ph-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.section-light .img-placeholder,
.section-alt .img-placeholder {
  background: linear-gradient(135deg, #E2E8F0 0%, #CBD5E1 100%);
  color: #94A3B8;
}

.section-light .img-placeholder::before,
.section-alt .img-placeholder::before {
  border-color: rgba(11,31,58,0.15);
}

/* ---------- TWO COLUMN LAYOUT ---------- */
.two-col {
  display: flex;
  gap: 60px;
  align-items: center;
}

.two-col .col-text {
  flex: 1.1;
}

.two-col .col-media {
  flex: 0.9;
}

/* ---------- CARDS — INSTITUTIONAL (NO GLASS) ---------- */
.about-card, .sla-card, .innovation-card, .program-card,
.team-card, .home-card, .news-card, .kafd-card,
.roadmap-phase, .platform-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  transition: box-shadow 0.25s, transform 0.25s;
}

.about-card:hover, .sla-card:hover, .innovation-card:hover,
.program-card:hover, .team-card:hover, .home-card:hover,
.news-card:hover, .kafd-card:hover, .roadmap-phase:hover,
.platform-card:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-3px);
}

/* ---------- ABOUT CARDS ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.about-card {
  padding: 28px;
  border-left: 3px solid var(--orange);
}

.about-card .card-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.about-card h4 {
  color: var(--text-heading);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.about-card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

/* ---------- QUOTE BLOCK ---------- */
.quote-block {
  border-left: 4px solid var(--orange);
  padding: 24px 28px;
  border-radius: 0 var(--radius) var(--radius) 0;
  background: rgba(232,98,26,0.04);
}

.quote-block p {
  font-size: 17px;
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.quote-block .attribution {
  font-size: 13px;
  font-weight: 600;
  color: var(--orange);
}

.section-dark .quote-block {
  background: rgba(255,255,255,0.04);
}

.section-dark .quote-block p {
  color: rgba(255,255,255,0.8);
}

/* ---------- PROGRAM CARDS ---------- */
.programs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.program-card {
  overflow: hidden;
}

.program-card-image {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.program-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.program-card:hover .program-card-image img {
  transform: scale(1.04);
}

.program-card-image .img-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 0;
  min-height: auto;
}

.program-card-body {
  padding: 24px 28px 28px;
}

.program-card .accent-bar {
  height: 3px;
  background: var(--orange);
}

.program-card:nth-child(2) .accent-bar { background: var(--orange-light); }
.program-card:nth-child(3) .accent-bar { background: #8B5CF6; }
.program-card:nth-child(4) .accent-bar { background: #EC4899; }
.program-card:nth-child(5) .accent-bar { background: #10B981; }

.program-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 8px;
}

.program-meta {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.program-badge {
  display: inline-block;
  background: rgba(232,98,26,0.1);
  color: var(--orange);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.program-card:nth-child(2) .program-badge {
  background: rgba(245,135,74,0.1);
  color: var(--orange-light);
}

.program-card:nth-child(3) .program-badge {
  background: rgba(139,92,246,0.12);
  color: #8B5CF6;
}

.program-card:nth-child(4) .program-badge {
  background: rgba(236,72,153,0.12);
  color: #EC4899;
}

.program-card:nth-child(5) .program-badge {
  background: rgba(16,185,129,0.12);
  color: #10B981;
}

.program-card ul li {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 5px 0;
  padding-left: 18px;
  position: relative;
  line-height: 1.6;
}

.program-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}

.programs-banner {
  margin-top: 40px;
  background: var(--navy);
  border-radius: var(--radius);
  padding: 20px 32px;
  text-align: center;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* ---------- PLATFORM CARDS ---------- */
.platform-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.platform-card {
  padding: 36px;
  position: relative;
  overflow: hidden;
}

.platform-card .accent-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.platform-card:first-child .accent-top { background: var(--orange); }
.platform-card:last-child .accent-top { background: #10B981; }

.platform-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}

.platform-card-header .icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.platform-card:first-child .icon {
  background: rgba(232,98,26,0.12);
  color: var(--orange);
}

.platform-card:last-child .icon {
  background: rgba(16,185,129,0.12);
  color: #10B981;
}

.platform-card h3 {
  color: var(--text-heading);
  font-size: 20px;
  font-weight: 600;
}

.section-dark .platform-card h3,
.section-darker .platform-card h3 { color: #fff; }

.platform-card .platform-sub {
  color: var(--text-secondary);
  font-size: 13px;
  margin-bottom: 20px;
}

.platform-card .feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--card-border);
}

.platform-card .feature-list li:last-child { border-bottom: none; }

.feature-check {
  color: var(--orange);
  font-weight: 600;
  flex-shrink: 0;
  margin-top: 2px;
}

.platform-card:last-child .feature-check { color: #10B981; }

.platform-status {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.platform-status span { color: #10B981; }

.tech-banner {
  margin-top: 40px;
  text-align: center;
  padding: 20px;
  border: 1px dashed rgba(232,98,26,0.3);
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-size: 14px;
}

.tech-banner a {
  color: var(--orange);
  font-weight: 600;
}

/* ---------- INNOVATION CARDS ---------- */
.innovation-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.innovation-card {
  padding: 28px;
  border-left: 3px solid var(--orange);
  position: relative;
}

.innovation-card:hover {
  border-left-color: var(--orange-light);
}

.innovation-card .card-icon {
  font-size: 28px;
  margin-bottom: 14px;
}

.innovation-card h4 {
  color: var(--text-heading);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.4;
}

.innovation-card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

.innovation-card .card-image {
  width: 100%;
  height: 160px;
  margin-bottom: 16px;
  border-radius: 6px;
  overflow: hidden;
}

.innovation-card .card-image .img-placeholder {
  min-height: auto;
  height: 100%;
}

/* ---------- ROADMAP ---------- */
.roadmap-timeline {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
  padding: 0 10%;
}

.timeline-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.timeline-node .node-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  font-family: var(--font-heading);
  border: 2px solid;
  transition: var(--transition);
}

.timeline-node.y1 .node-circle {
  background: rgba(232,98,26,0.15);
  border-color: var(--orange);
  color: var(--orange);
}

.timeline-node.y2 .node-circle {
  background: rgba(245,135,74,0.15);
  border-color: var(--orange-light);
  color: var(--orange-light);
}

.timeline-node.y3 .node-circle {
  background: rgba(139,92,246,0.15);
  border-color: #A78BFA;
  color: #A78BFA;
}

.timeline-node .node-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.timeline-node.y1 .node-label { color: var(--orange); }
.timeline-node.y2 .node-label { color: var(--orange-light); }
.timeline-node.y3 .node-label { color: #A78BFA; }

.timeline-track {
  flex: 1;
  height: 2px;
  margin-bottom: 26px;
}

.timeline-track.t1 { background: linear-gradient(90deg, var(--orange), var(--orange-light)); }
.timeline-track.t2 { background: linear-gradient(90deg, var(--orange-light), #A78BFA); }

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

.roadmap-phase {
  padding: 32px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.phase-badge {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.phase-badge.y1 {
  background: rgba(232,98,26,0.12);
  color: var(--orange);
}

.phase-badge.y2 {
  background: rgba(245,135,74,0.12);
  color: var(--orange-light);
}

.phase-badge.y3 {
  background: rgba(139,92,246,0.12);
  color: #A78BFA;
}

.roadmap-phase h3 {
  color: var(--orange);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 4px;
}

.roadmap-phase:nth-child(2) h3 { color: var(--orange-light); }
.roadmap-phase:nth-child(3) h3 { color: #A78BFA; }

.roadmap-phase .year {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 20px;
}

.roadmap-phase ul { text-align: left; }

.roadmap-phase ul li {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 6px 0;
  padding-left: 16px;
  position: relative;
  line-height: 1.6;
}

.roadmap-phase ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 13px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}

.roadmap-phase:nth-child(2) ul li::before { background: var(--orange-light); }
.roadmap-phase:nth-child(3) ul li::before { background: #A78BFA; }

.roadmap-banner {
  margin-top: 48px;
  background: var(--navy);
  border-radius: var(--radius);
  padding: 28px 36px;
  text-align: center;
}

.roadmap-banner p {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
  font-family: var(--font-heading);
}

.roadmap-banner .ar-text {
  font-family: var(--font-arabic);
  direction: rtl;
  font-size: 16px;
  color: rgba(255,255,255,0.8);
  font-weight: 400;
}

/* ---------- KAFD SECTION ---------- */
.kafd-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.kafd-card {
  padding: 32px;
  text-align: center;
}

.kafd-card .card-icon {
  font-size: 36px;
  margin-bottom: 14px;
}

.kafd-card .metric {
  font-size: 42px;
  font-weight: 700;
  color: var(--orange);
  font-family: var(--font-heading);
  margin-bottom: 6px;
}

.kafd-card:nth-child(2) .metric { color: var(--orange-light); }
.kafd-card:nth-child(3) .metric { color: #8B5CF6; }
.kafd-card:nth-child(4) .metric { color: #10B981; }

.kafd-card h4 {
  color: var(--text-heading);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.kafd-card p {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.6;
}

/* ---------- SLA CARDS ---------- */
.sla-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.sla-card {
  padding: 32px 28px;
  text-align: center;
}

.sla-card .card-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.sla-number {
  font-size: 36px;
  font-weight: 800;
  color: var(--orange);
  font-family: var(--font-heading);
  line-height: 1;
  margin-bottom: 8px;
}

.sla-card h4 {
  color: var(--text-heading);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.sla-card p {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.6;
}

/* ---------- TEAM CARDS ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.team-card {
  padding: 36px;
  text-align: center;
}

.team-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  font-family: var(--font-heading);
  color: #fff;
}

.team-card:nth-child(1) .team-avatar { background: linear-gradient(135deg, var(--orange), #D05010); }
.team-card:nth-child(2) .team-avatar { background: linear-gradient(135deg, var(--orange-light), var(--orange)); }
.team-card:nth-child(3) .team-avatar { background: linear-gradient(135deg, #8B5CF6, #6D28D9); }
.team-card:nth-child(4) .team-avatar { background: linear-gradient(135deg, #10B981, #059669); }
.team-card:nth-child(5) .team-avatar { background: linear-gradient(135deg, var(--orange), #D05010); }
.team-card:nth-child(6) .team-avatar { background: linear-gradient(135deg, var(--orange-light), var(--orange)); }

.team-card h4 {
  color: var(--text-heading);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}

.team-card .role {
  color: var(--orange);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.team-card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

/* ---------- HOME CARDS ---------- */
.home-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.home-card {
  overflow: hidden;
}

.home-card-image {
  height: 200px;
  overflow: hidden;
}

.home-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.home-card:hover .home-card-image img {
  transform: scale(1.04);
}

.home-card-image .img-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 0;
  min-height: auto;
}

.home-card-body {
  padding: 24px;
}

.home-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 8px;
}

.home-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

/* ---------- CARD LINK ---------- */
.card-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.card-link:hover {
  color: var(--orange-light);
  gap: 8px;
}

/* ---------- HIGHLIGHTS STRIP ---------- */
.highlights-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.highlight-item {
  text-align: center;
  padding: 32px 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
}

.highlight-item .icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.highlight-item h4 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.highlight-item p {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
}

/* ---------- CTA SECTION ---------- */
.cta-section {
  background: var(--navy);
  padding: 80px 0;
  text-align: center;
  color: #fff;
}

.cta-section h2 {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #fff;
}

.cta-section p {
  font-size: 17px;
  color: rgba(255,255,255,0.7);
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

body.dark-mode .cta-section { background: #040C18; }

/* ---------- FEATURE SECTION (platform pages) ---------- */
.feature-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 80px;
}

.feature-section.reverse .feature-text { order: 2; }
.feature-section.reverse .feature-media { order: 1; }

.feature-text h3 {
  font-size: 26px;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 16px;
}

.feature-text p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.feature-text ul li {
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
  font-size: 14px;
  color: var(--text-secondary);
}

.feature-text ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 700;
}

/* ---------- COMPARISON TABLE ---------- */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 32px;
  border-radius: var(--radius);
  overflow: hidden;
}

.comparison-table th {
  background: var(--navy);
  color: #fff;
  padding: 14px 20px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

body.dark-mode .comparison-table th {
  background: #040C18;
}

.comparison-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--card-border);
  font-size: 14px;
  color: var(--text-primary);
}

body.dark-mode .comparison-table td {
  border-bottom-color: rgba(255,255,255,0.06);
}

.comparison-table tr:nth-child(even) td {
  background: var(--bg-primary);
}

body.dark-mode .comparison-table tr:nth-child(even) td {
  background: rgba(255,255,255,0.02);
}

.comparison-table .check {
  color: var(--orange);
  font-weight: 700;
  font-size: 18px;
}

/* ---------- PAGE HERO (inner pages) ---------- */
.page-hero {
  background: var(--navy);
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
  border-bottom: 4px solid var(--orange);
}

body.dark-mode .page-hero {
  background: #040C18;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  color: #fff;
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 12px;
}

.page-hero h1 .highlight {
  color: var(--orange);
}

.page-hero .page-subtitle {
  color: rgba(255,255,255,0.7);
  font-size: 18px;
  max-width: 600px;
  line-height: 1.7;
}

.page-hero .breadcrumb {
  margin-bottom: 20px;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
}

.page-hero .breadcrumb a {
  color: var(--orange);
}

.page-hero .breadcrumb span {
  margin: 0 8px;
}

/* ---------- STUDENT SHOWCASE GALLERY ---------- */
.showcase-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
  margin-top: 40px;
}

.showcase-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  aspect-ratio: 4/3;
}

.showcase-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.showcase-item:hover img {
  transform: scale(1.05);
}

.showcase-item--wide {
  grid-column: span 2;
  aspect-ratio: 16/9;
}

.showcase-overlay {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  background: var(--bg-secondary);
}

.showcase-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 14px;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s, transform 0.3s;
}

.showcase-item:hover .showcase-caption {
  opacity: 1;
  transform: translateY(0);
}

.showcase-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.showcase-caption p {
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  margin: 0;
}

/* ---------- APPLY CTA STRIP ---------- */
.apply-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(232,98,26,0.06);
  border: 1px solid rgba(232,98,26,0.2);
  border-radius: var(--radius);
  padding: 32px 40px;
  flex-wrap: wrap;
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--bg-footer);
  color: rgba(255,255,255,0.75);
}

.footer-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px 24px 48px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-brand img {
  height: 48px;
  width: auto;
  margin-bottom: 16px;
}

.footer-brand .footer-subtitle {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  line-height: 1.6;
  margin-bottom: 16px;
}

.footer-brand .footer-subtitle .grey-text {
  color: rgba(255,255,255,0.4);
}

.footer-brand .footer-subtitle .cyan-text {
  color: var(--orange);
}

.footer-brand p {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  margin-bottom: 8px;
}

.footer-brand .kafd-text {
  font-family: var(--font-arabic);
  direction: rtl;
  margin-top: 4px;
  color: rgba(255,255,255,0.35);
  font-size: 13px;
}

.footer-col h5 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
  font-family: var(--font-heading);
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: var(--orange);
}

.footer-col ul li a.gold-link {
  color: var(--orange-light);
  font-weight: 500;
}

.footer-col ul li a.gold-link:hover {
  color: var(--orange);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 24px;
}

.footer-bottom-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

.footer-disclaimer {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  text-align: center;
  padding: 0 24px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
  line-height: 1.6;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.45);
  transition: color 0.2s;
}

.footer-social a svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.footer-social a:hover {
  color: var(--orange);
}

/* ---------- REVEAL ANIMATIONS ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ---------- TEXT UTILITIES ---------- */
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.subtitle { color: var(--text-secondary); max-width: 600px; line-height: 1.7; }
.grey-text { color: var(--text-secondary); }
.cyan-text { color: var(--orange); }
.text-cyan { color: var(--orange); }
.text-navy { color: var(--navy); }

/* Accessible focus */
:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

/* ---------- RESPONSIVE (Tablet 1024px) ---------- */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .hero h1 { font-size: 42px; }

  .section-header h2 { font-size: 30px; }
  .page-hero h1 { font-size: 36px; }

  .two-col { flex-direction: column; gap: 40px; }

  .programs-grid { grid-template-columns: 1fr; }
  .platform-grid { grid-template-columns: 1fr; }
  .innovation-grid { grid-template-columns: 1fr 1fr; }
  .roadmap-grid { grid-template-columns: 1fr; }
  .kafd-features { grid-template-columns: 1fr 1fr; }
  .sla-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .home-cards { grid-template-columns: 1fr 1fr; }
  .highlights-strip { grid-template-columns: 1fr 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .feature-section { grid-template-columns: 1fr; }
  .feature-section.reverse .feature-text { order: 1; }
  .feature-section.reverse .feature-media { order: 2; }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .stat-item {
    border-right: none;
    padding: 16px;
  }
}

/* ---------- RESPONSIVE (Mobile 768px) ---------- */
@media (max-width: 768px) {
  .hero h1 { font-size: 40px; }
  .hero-arrow { display: none; }
  .section { padding: 60px 0; }
  .home-cards { grid-template-columns: 1fr; }
  .highlights-strip { grid-template-columns: repeat(2, 1fr); }
  .credibility-inner { gap: 24px; }
  .cred-divider { display: none; }
  .two-col { flex-direction: column; gap: 32px; }

  .showcase-gallery { grid-template-columns: repeat(2, 1fr); }
  .showcase-item--wide { grid-column: span 2; }

  .apply-cta-inner {
    flex-direction: column;
    text-align: center;
    padding: 24px 20px;
  }
}

/* ---------- RESPONSIVE (Small Mobile 640px) ---------- */
@media (max-width: 640px) {
  .section { padding: 60px 0; }
  .hero h1 { font-size: 32px; }
  .page-hero { padding: 120px 0 60px; }
  .page-hero h1 { font-size: 28px; }
  .section-header h2 { font-size: 26px; }
  .about-grid { grid-template-columns: 1fr; }
  .innovation-grid { grid-template-columns: 1fr; }
  .kafd-features { grid-template-columns: 1fr; }
  .sla-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .home-cards { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .stat-item { border-right: none; padding: 16px; }
  .hero-buttons { flex-direction: column; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .stat-number { font-size: 36px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 32px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr; }

  .showcase-gallery { grid-template-columns: 1fr; }
  .showcase-item--wide { grid-column: span 1; }
}

/* ---------- PRINT STYLES ---------- */
@page { margin: 2cm; }

@media print {
  .navbar, .scroll-progress, .hero-arrow, .hero-dots, .hero-progress,
  .hamburger, .mobile-menu, .scroll-indicator,
  .lang-switcher, .theme-pill, .footer-social { display: none !important; }

  body { background: #fff !important; color: #000 !important; font-size: 12pt; }

  .hero { min-height: auto; padding: 40px 0; }
  .hero h1 { color: #000 !important; font-size: 28pt; }
  .hero h1 .highlight { color: #0B1F3A !important; }
  .hero-subtitle { color: #333 !important; }

  .section { padding: 30px 0; page-break-inside: avoid; }
  .section-dark, .section-darker {
    background: #f5f5f5 !important;
    color: #000 !important;
  }
  .section-dark h2, .section-dark h3,
  .section-darker h2, .section-darker h3 { color: #000 !important; }
  .stats-bar { background: #f5f5f5 !important; }
  .stat-number { color: #0B1F3A !important; }
  a { color: #0B1F3A !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .img-placeholder { border: 1px solid #ccc; }
}
