/* ===================================================================
   Robotica Academy - Official Web Portal Stylesheet
   Theme: Electric Emerald (#3dbf86) & Vivid Cyber Spectrum
   =================================================================== */

:root {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.9);
  
  /* Primary Brand Color: Emerald (#10b981 / #059669) */
  --accent-primary: #10b981;
  --accent-cyan: #059669; /* Backwards-compatible main accent */
  --accent-mint: #10b981;
  --accent-electric: #0284c7;
  
  /* Vivid Complementary Palette */
  --vivid-purple: #7c3aed;
  --vivid-violet: #8b5cf6;
  --vivid-pink: #ec4899;
  --vivid-magenta: #f43f5e;
  --vivid-gold: #d97706;
  --vivid-amber: #f59e0b;
  --vivid-coral: #ea580c;
  
  /* High-Impact Dynamic Gradients */
  --gradient-tech: linear-gradient(135deg, #10b981 0%, #059669 55%, #0284c7 100%);
  --gradient-emerald: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --gradient-vivid: linear-gradient(135deg, #10b981 0%, #7c3aed 50%, #ec4899 100%);
  --gradient-purple: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
  --gradient-gold: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #ea580c 100%);
  --gradient-cyber: linear-gradient(135deg, #0284c7 0%, #10b981 100%);
  --gradient-dark: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  --gradient-card: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  
  --text-main: #334155;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  --text-heading: #0f172a;
  
  --border-subtle: #e2e8f0;
  --border-glow: rgba(16, 185, 129, 0.35);
  --border-purple-glow: rgba(124, 58, 237, 0.35);
  --border-pink-glow: rgba(236, 72, 153, 0.35);
  --border-gold-glow: rgba(217, 119, 6, 0.35);
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-glow: 0 0 25px rgba(16, 185, 129, 0.2);
  --shadow-vivid: 0 0 30px rgba(124, 58, 237, 0.2);
  --shadow-gold: 0 0 25px rgba(217, 119, 6, 0.2);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

body.rtl {
  direction: rtl;
  font-family: 'Cairo', 'Inter', sans-serif;
  text-align: right;
}

/* Background Cyber Grid, Deep Aurora Mesh & Interactive Mesh Canvas */
.bg-glow-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.cyber-mesh-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.75;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(130px);
  will-change: transform, opacity;
}

.glow-orb-1 {
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.22) 0%, rgba(52, 245, 146, 0.1) 45%, transparent 75%);
  top: -180px;
  right: -100px;
  opacity: 0.85;
  animation: auroraFloat1 20s ease-in-out infinite alternate;
}

.glow-orb-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.14) 0%, rgba(236, 72, 153, 0.06) 50%, transparent 75%);
  bottom: 5%;
  left: -160px;
  opacity: 0.75;
  animation: auroraFloat2 24s ease-in-out infinite alternate-reverse;
}

.glow-orb-3 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, rgba(16, 185, 129, 0.08) 50%, transparent 75%);
  top: 35%;
  right: 15%;
  opacity: 0.8;
  animation: auroraFloat3 26s ease-in-out infinite alternate;
}

.glow-orb-4 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.14) 0%, rgba(239, 68, 68, 0.05) 55%, transparent 75%);
  bottom: 25%;
  right: 35%;
  opacity: 0.7;
  animation: auroraFloat4 30s ease-in-out infinite alternate;
}

.cyber-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-size: 55px 55px;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 40%, transparent 85%);
  animation: gridDrift 40s linear infinite;
}

@keyframes gridDrift {
  0% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0); }
}

@keyframes auroraFloat1 {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); }
  50% { transform: translate(60px, 45px) scale(1.12) rotate(10deg); }
  100% { transform: translate(-40px, 80px) scale(0.94) rotate(-5deg); }
}

@keyframes auroraFloat2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-50px, -40px) scale(1.15); }
  100% { transform: translate(60px, -70px) scale(0.9); }
}

@keyframes auroraFloat3 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-70px, 50px) scale(1.1); }
  100% { transform: translate(40px, -60px) scale(0.92); }
}

@keyframes auroraFloat4 {
  0% { transform: translate(0, 0) scale(0.9); }
  50% { transform: translate(80px, -50px) scale(1.12); }
  100% { transform: translate(-50px, 60px) scale(1.02); }
}

/* Bento Spotlight Card Hover Effect */
.program-card,
.yt-playlist-card,
.stat-card,
.leader-card,
.campus-card,
.page-cta-box,
.finder-card {
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.program-card::after,
.yt-playlist-card::after,
.stat-card::after,
.leader-card::after,
.campus-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    380px circle at var(--mouse-x, -999px) var(--mouse-y, -999px),
    rgba(16, 185, 129, 0.08),
    transparent 50%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.program-card:hover::after,
.yt-playlist-card:hover::after,
.stat-card:hover::after,
.leader-card:hover::after,
.campus-card:hover::after {
  opacity: 1;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-heading, #0f172a);
  font-weight: 700;
  line-height: 1.25;
}

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

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

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

.gradient-text {
  background: var(--gradient-tech);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.gradient-vivid-text {
  background: var(--gradient-vivid);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.gradient-gold-text {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Section Header Styles */
.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3.5rem;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-full);
  background: rgba(61, 191, 134, 0.12);
  border: 1px solid rgba(61, 191, 134, 0.38);
  color: var(--accent-primary);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  box-shadow: 0 2px 10px rgba(61, 191, 134, 0.18);
}

.badge-tag.gold {
  background: rgba(255, 183, 3, 0.14);
  border-color: rgba(255, 183, 3, 0.4);
  color: var(--vivid-gold);
  box-shadow: 0 2px 10px rgba(255, 183, 3, 0.18);
}

.badge-tag.vivid {
  background: rgba(157, 78, 221, 0.15);
  border-color: rgba(157, 78, 221, 0.45);
  color: #c77dff;
  box-shadow: 0 2px 10px rgba(157, 78, 221, 0.2);
}

.badge-tag.pink {
  background: rgba(255, 0, 127, 0.14);
  border-color: rgba(255, 0, 127, 0.4);
  color: #ff529a;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Inner Page Hero Header */
.page-hero {
  padding: 4.5rem 0 3rem;
  text-align: center;
  position: relative;
  background: radial-gradient(circle at 50% 20%, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 3.5rem;
}

.page-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.25rem;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--accent-primary);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 1.25rem;
}

.page-hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 900;
  color: #0f172a;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.page-hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.7;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 1.25rem;
}

.breadcrumbs a {
  color: var(--accent-primary);
  font-weight: 600;
}

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

.breadcrumbs span.current {
  color: #0f172a;
  font-weight: 600;
}

/* Page Call-to-Action Section */
.page-cta-section {
  padding: 5rem 0;
  background: linear-gradient(180deg, transparent, rgba(16, 185, 129, 0.04), transparent);
  border-top: 1px solid #e2e8f0;
  margin-top: 4rem;
}

.page-cta-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-xl);
  padding: 3.5rem 2.5rem;
  text-align: center;
  box-shadow: 0 15px 40px rgba(15, 23, 42, 0.08), 0 0 25px rgba(16, 185, 129, 0.08);
  position: relative;
  overflow: hidden;
}

.page-cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

/* Top Notification Banner */
.top-banner {
  background: #0f172a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.65rem 1rem;
  font-size: 0.85rem;
  color: #cbd5e1;
  position: relative;
  z-index: 101;
}

.top-banner .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.top-banner-highlight {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #ffffff;
  font-weight: 500;
}

.top-banner-contacts {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.top-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #cbd5e1;
  font-size: 0.82rem;
}

.top-contact-link:hover {
  color: #10b981;
}

/* Header & Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid #e2e8f0;
  transition: var(--transition-normal);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border-bottom-color: rgba(16, 185, 129, 0.35);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-logo img {
  height: 52px;
  width: auto;
  object-fit: contain;
  transition: var(--transition-fast);
}

.brand-logo:hover img {
  transform: scale(1.04);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.85rem;
  list-style: none;
}

.nav-link {
  color: #475569;
  font-size: 0.96rem;
  font-weight: 500;
  position: relative;
  padding: 0.45rem 0.15rem;
  transition: color 0.2s ease;
  letter-spacing: -0.01em;
}

.nav-link:hover {
  color: #0f172a;
}

.nav-link.active {
  color: #0f172a;
  font-weight: 700;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: #10b981;
  border-radius: var(--radius-full);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
  transition: width 0.25s ease;
}

body.rtl .nav-link::after {
  left: auto;
  right: 0;
}

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

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

.btn-lang {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.28);
  color: var(--text-heading, #0f172a);
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition-fast);
}

.btn-lang:hover {
  background: rgba(16, 185, 129, 0.16);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.25);
}

.btn-primary {
  background: var(--gradient-emerald);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.65rem 1.45rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.35);
  transition: var(--transition-normal);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(16, 185, 129, 0.5);
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

.btn-secondary {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: var(--transition-normal);
}

.btn-secondary:hover {
  background: #f8fafc;
  border-color: #10b981;
  transform: translateY(-2px);
  color: #10b981;
}

.btn-vivid {
  background: var(--gradient-purple);
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.65rem 1.45rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 18px rgba(124, 58, 237, 0.35);
}

.btn-vivid:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(124, 58, 237, 0.5);
}

.btn-gold {
  background: var(--gradient-gold);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(217, 119, 6, 0.3);
}

.btn-gold:hover {
  box-shadow: 0 8px 28px rgba(217, 119, 6, 0.45);
  transform: translateY(-2px);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #0f172a;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 6rem 0 5rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-social-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1.1rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-full);
  color: #059669;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  transition: var(--transition-fast);
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.1);
}

.hero-social-pill:hover {
  background: rgba(16, 185, 129, 0.15);
  color: #047857;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}

.hero-social-pill i {
  font-size: 1rem;
  color: #1877f2;
}

.hero-title {
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 1.25rem;
  line-height: 1.18;
  color: #0f172a;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2.25rem;
  max-width: 620px;
}

.hero-buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-visual {
  position: relative;
}

.hero-card-stack {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 10px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.4) 0%, rgba(124, 58, 237, 0.3) 50%, rgba(14, 165, 233, 0.3) 100%);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12), var(--shadow-glow);
}

.hero-image-wrapper {
  position: relative;
  border-radius: calc(var(--radius-xl) - 6px);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hero-card-stack:hover .hero-image-wrapper img {
  transform: scale(1.04);
}

.hero-floating-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: #ffffff;
  backdrop-filter: blur(14px);
  border: 1px solid rgba(217, 119, 6, 0.3);
  border-radius: var(--radius-lg);
  padding: 1rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  animation: floatBadge 4s ease-in-out infinite alternate;
}

body.rtl .hero-floating-badge {
  left: auto;
  right: -20px;
}

@keyframes floatBadge {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

.badge-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--gradient-gold);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.badge-text-title {
  font-weight: 700;
  font-size: 1rem;
  color: #0f172a;
}

.badge-text-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Stats Counter Section */
.stats-section {
  padding: 2.5rem 0 5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}

.stat-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.25rem;
  text-align: center;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-tech);
  opacity: 0;
  transition: var(--transition-fast);
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-number {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0.4rem;
  background: var(--gradient-tech);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-card.gold .stat-number {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-card.purple .stat-number {
  background: var(--gradient-purple);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

/* Facebook Official Banner Card */
.fb-highlight-banner {
  margin: 1rem 0 5rem;
}

.fb-card {
  background: linear-gradient(135deg, #f0fdf4 0%, #eff6ff 50%, #ffffff 100%);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-xl);
  padding: 2.25rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04), var(--shadow-glow);
}

.fb-card-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.fb-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1877f2 0%, #3dbf86 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  box-shadow: 0 4px 18px rgba(61, 191, 134, 0.4);
}

.fb-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.fb-verified {
  color: var(--accent-primary);
  font-size: 1.1rem;
}

.fb-handle {
  color: #059669;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
}

.fb-bio {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 580px;
}

.fb-btn {
  background: linear-gradient(135deg, #1877f2 0%, #166fe5 100%);
  color: #fff;
  font-weight: 600;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 4px 15px rgba(24, 119, 242, 0.45);
  transition: var(--transition-fast);
}

.fb-btn:hover {
  background: #166fe5;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(24, 119, 242, 0.6);
}

/* About Us Section */
.about-section {
  padding: 5rem 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-img-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.about-img-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-subtle);
}

.about-img-item:first-child {
  grid-row: span 2;
}

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

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

.quote-box {
  margin: 1.75rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--accent-primary);
  background: rgba(61, 191, 134, 0.08);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: #cbd5e1;
}

body.rtl .quote-box {
  border-left: none;
  border-right: 4px solid var(--accent-primary);
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.quote-author {
  display: block;
  font-style: normal;
  font-size: 0.85rem;
  color: var(--accent-primary);
  margin-top: 0.5rem;
  font-weight: 600;
}

.leadership-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.leader-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  transition: var(--transition-fast);
}

.leader-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.leader-role {
  font-size: 0.8rem;
  color: var(--accent-primary);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.leader-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-heading, #0f172a);
  margin-bottom: 0.3rem;
}

.leader-contact {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* International Hall of Fame / Competitions */
.achievements-section {
  padding: 6rem 0;
  background: linear-gradient(180deg, transparent 0%, rgba(16, 185, 129, 0.03) 50%, transparent 100%);
}

.tournaments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.tourney-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.tourney-card:hover {
  transform: translateY(-7px);
  border-color: var(--border-glow);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08), var(--shadow-glow);
}

.tourney-card.featured {
  border-color: rgba(16, 185, 129, 0.35);
  background: linear-gradient(180deg, #ecfdf5 0%, #ffffff 100%);
}

.tourney-card.featured:hover {
  box-shadow: 0 15px 35px rgba(16, 185, 129, 0.12), var(--shadow-glow);
}

.tourney-card.vivid-purple-card {
  border-color: rgba(147, 51, 234, 0.3);
  background: linear-gradient(180deg, #f5f3ff 0%, #ffffff 100%);
}

.tourney-card.vivid-purple-card:hover {
  box-shadow: 0 15px 35px rgba(147, 51, 234, 0.12), var(--shadow-vivid);
}

.tourney-header {
  position: relative;
  padding: 1.75rem 1.75rem 1.25rem;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, transparent 100%);
  border-bottom: 1px solid var(--border-subtle);
}

.tourney-flag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.tourney-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.tourney-title-link {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  transition: color var(--transition-fast);
}

.tourney-title-link:hover {
  color: var(--accent-primary);
}

.tourney-ext-icon {
  font-size: 0.85rem;
  color: var(--accent-primary);
  opacity: 0.6;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
  display: inline-block;
  vertical-align: middle;
}

.tourney-title-link:hover .tourney-ext-icon {
  opacity: 1;
  transform: translate(2px, -2px);
}

body.rtl .tourney-title-link:hover .tourney-ext-icon {
  transform: translate(-2px, -2px);
}

.tourney-location {
  color: var(--text-muted);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.tourney-body {
  padding: 1.5rem 1.75rem;
  flex-grow: 1;
}

.tourney-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.cat-pill {
  padding: 0.28rem 0.7rem;
  border-radius: var(--radius-sm);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #047857;
  font-size: 0.78rem;
  font-weight: 600;
  transition: var(--transition-fast);
}

.cat-pill:hover {
  background: #10b981;
  border-color: #10b981;
  color: #ffffff;
}

.cat-pill.vivid-purple {
  background: rgba(147, 51, 234, 0.1);
  border-color: rgba(147, 51, 234, 0.25);
  color: #7e22ce;
}

.cat-pill.vivid-pink {
  background: rgba(225, 29, 72, 0.1);
  border-color: rgba(225, 29, 72, 0.25);
  color: #be123c;
}

.cat-pill.vivid-gold {
  background: rgba(217, 119, 6, 0.12);
  border-color: rgba(217, 119, 6, 0.3);
  color: #b45309;
}

.cat-pill.vivid-cyan {
  background: rgba(14, 165, 233, 0.1);
  border-color: rgba(14, 165, 233, 0.25);
  color: #0284c7;
}

.teams-list-box {
  background: #f8fafc;
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
  border: 1px dashed rgba(16, 185, 129, 0.35);
}

.teams-list-title {
  font-size: 0.8rem;
  color: #059669;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.teams-names {
  font-size: 0.85rem;
  color: #334155;
}

/* Programs & Curricula */
.programs-section {
  padding: 6rem 0;
}

.programs-filter {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--gradient-emerald);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.35);
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.program-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.program-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-emerald);
}

.program-card.beta::before {
  background: var(--gradient-purple);
}

.program-card.gamma::before {
  background: var(--gradient-gold);
}

.program-card.ioi::before {
  background: linear-gradient(135deg, #00e5ff 0%, #3dbf86 100%);
}

.program-card-thumb {
  width: calc(100% + 4.5rem);
  margin: -2.25rem -2.25rem 1.25rem -2.25rem;
  height: 175px;
  overflow: hidden;
  background: #f1f5f9;
  border-bottom: 1px solid var(--border-subtle);
}

.program-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

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

.program-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}

.program-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-primary);
  margin-bottom: 0.75rem;
}

.program-card.beta .program-badge {
  color: #c084fc;
}

.program-card.gamma .program-badge {
  color: var(--vivid-gold);
}

.program-card.ioi .program-badge {
  color: #00e5ff;
}

.program-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.program-age {
  color: #059669;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.program-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.program-modules {
  list-style: none;
  margin-bottom: 2rem;
}

.program-modules li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
  color: #334155;
}

body.rtl .program-modules li {
  padding-left: 0;
  padding-right: 1.5rem;
}

.program-modules li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-primary);
  font-weight: 800;
}

body.rtl .program-modules li::before {
  left: auto;
  right: 0;
}

/* YouTube Knowledge Vault & Technical Hub */
.youtube-hub-card {
  margin-top: 4rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-xl);
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.youtube-hub-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ff0000, #ff4d4d, #10b981, #0284c7);
}

.youtube-hub-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3rem;
}

.youtube-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(255, 0, 0, 0.08);
  border: 1px solid rgba(255, 0, 0, 0.25);
  color: #dc2626;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 1rem;
}

.youtube-hub-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: #0f172a;
  margin-bottom: 1rem;
  font-weight: 800;
}

.youtube-hub-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.youtube-hub-desc strong {
  color: #0f172a;
}

.youtube-playlists-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.75rem;
  margin-bottom: 2.5rem;
}

.yt-playlist-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.yt-playlist-card:hover {
  transform: translateY(-6px);
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.yt-playlist-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
  border: 1px solid transparent;
}

.yt-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.yt-title {
  font-size: 1.28rem;
  color: #0f172a;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.yt-desc {
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.yt-topics {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

.yt-topics span {
  font-size: 0.85rem;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.yt-topics span i {
  color: #10b981;
  font-size: 0.8rem;
}

.yt-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-full);
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  font-weight: 600;
  font-size: 0.92rem;
  transition: all 0.25s ease;
  text-decoration: none;
}

.yt-link-btn:hover {
  background: rgba(255, 0, 0, 0.08);
  border-color: #ef4444;
  color: #dc2626;
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.2);
}

.youtube-hub-footer {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.yt-footer-text {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.yt-footer-text strong {
  color: #0f172a;
  font-size: 1.05rem;
  display: block;
  margin-bottom: 0.2rem;
}

.yt-footer-text p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.btn-yt-subscribe {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: #ff0000;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4);
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-yt-subscribe:hover {
  background: #e60000;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(255, 0, 0, 0.65);
}

@media (max-width: 768px) {
  .youtube-hub-card {
    padding: 2rem 1.25rem;
  }
  .youtube-hub-footer {
    flex-direction: column;
    text-align: center;
  }
  .yt-footer-text {
    flex-direction: column;
    text-align: center;
  }
}

/* Interactive Program Finder Tool */
.finder-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-xl);
  padding: 3rem;
  margin-top: 4rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.finder-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.finder-controls {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 1.5rem;
  align-items: center;
}

.finder-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.finder-select {
  width: 100%;
  padding: 0.8rem 1rem;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  color: #0f172a;
  font-size: 1rem;
  outline: none;
  transition: var(--transition-fast);
}

.finder-select:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.25);
  background: #ffffff;
}

.finder-result {
  margin-top: 2rem;
  padding: 1.5rem;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: var(--radius-lg);
  color: #065f46;
  display: none;
  animation: fadeIn 0.4s ease;
}

.finder-result.show {
  display: block;
}

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

/* Gallery Section */
.gallery-section {
  padding: 6rem 0;
}

.gallery-filter-bar {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.gallery-filter-btn {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  padding: 0.6rem 1.35rem;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
}

.gallery-filter-btn:hover {
  color: #ffffff;
  border-color: rgba(52, 245, 146, 0.5);
  background: rgba(52, 245, 146, 0.08);
}

.gallery-filter-btn.active {
  background: rgba(52, 245, 146, 0.15);
  border-color: #34f592;
  color: #34f592;
  box-shadow: 0 0 16px rgba(52, 245, 146, 0.3);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.gallery-item:hover {
  border-color: rgba(16, 185, 129, 0.6);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12), 0 0 20px rgba(16, 185, 129, 0.2);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 12, 20, 0.1) 0%, rgba(7, 12, 20, 0.85) 75%, rgba(7, 12, 20, 0.98) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  background: rgba(52, 245, 146, 0.2);
  border: 1px solid rgba(52, 245, 146, 0.4);
  color: #34f592;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  transform: translateY(10px);
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item:hover .gallery-tag,
.gallery-item:hover .gallery-caption {
  transform: translateY(0);
}

.gallery-caption {
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  transform: translateY(10px);
  transition: var(--transition-fast);
}

.gallery-item:hover .gallery-caption {
  transform: translateY(0);
}

/* Partners & Schools Section */
.partners-section {
  padding: 4rem 0 6rem;
  border-top: 1px solid var(--border-subtle);
}

.partners-carousel-track {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.partner-logo-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  font-weight: 700;
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: var(--transition-fast);
}

.partner-logo-box:hover {
  background: rgba(61, 191, 134, 0.08);
  border-color: var(--accent-primary);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 4px 18px rgba(61, 191, 134, 0.2);
}

/* Campuses & Branches Section */
.branches-section {
  padding: 6rem 0;
  background: linear-gradient(180deg, rgba(12, 20, 36, 0.5) 0%, transparent 100%);
}

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

.branch-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.branch-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}

.branch-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(61, 191, 134, 0.12);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
}

.branch-card:nth-child(2) .branch-icon {
  background: rgba(157, 78, 221, 0.14);
  color: #c084fc;
}

.branch-card:nth-child(3) .branch-icon {
  background: rgba(255, 183, 3, 0.14);
  color: var(--vivid-gold);
}

.branch-city {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.branch-details {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.branch-meta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.branch-meta-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-main, #334155);
}

.branch-meta-item i {
  color: var(--accent-primary);
}

/* Campus Interactive Google Map Embed & Actions */
.campus-map-embed {
  position: relative;
  width: 100%;
  height: 240px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 1.25rem 0;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  background: #f1f5f9;
}

.campus-map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.btn-map-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-full);
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  width: 100%;
  margin-bottom: 0.75rem;
}

.btn-map-link:hover {
  background: #10b981;
  border-color: #059669;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.28);
}

/* Contact & Registration Section */
.contact-section {
  padding: 6rem 0;
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 4rem;
  align-items: flex-start;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-method-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: var(--transition-fast);
}

.contact-method-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.method-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: rgba(61, 191, 134, 0.12);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.method-icon.whatsapp {
  background: rgba(37, 211, 102, 0.16);
  color: #25d366;
}

.method-icon.fb {
  background: rgba(24, 119, 242, 0.16);
  color: #1877f2;
}

.method-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.method-detail {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Registration Form Card */
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.75rem;
  box-shadow: var(--shadow-md);
  position: relative;
}

.form-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.form-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 0.8rem 1rem;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  color: #0f172a;
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-fast);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  background: #ffffff;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.75rem;
  flex-wrap: wrap;
}

/* Footer */
.site-footer {
  background: #0f172a;
  border-top: 1px solid #1e293b;
  padding: 5rem 0 2rem;
  position: relative;
  color: #94a3b8;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 1.25rem 0 1.5rem;
  max-width: 320px;
}

.footer-social-links {
  display: flex;
  gap: 0.75rem;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.social-btn:hover {
  background: var(--gradient-emerald);
  color: #031d10;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(61, 191, 134, 0.4);
}

.footer-heading {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: #fff;
}

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

.footer-link {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.footer-link:hover {
  color: var(--accent-primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-dim);
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Modal Lightbox */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

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

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius-md);
  box-shadow: 0 0 40px rgba(0,0,0,0.8);
}

.lightbox-caption {
  color: #fff;
  text-align: center;
  margin-top: 1rem;
  font-size: 1.1rem;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .about-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: rgba(7, 12, 20, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 3rem 2rem;
    gap: 1.5rem;
    transition: var(--transition-normal);
  }
  
  body.rtl .nav-menu {
    left: auto;
    right: -100%;
  }
  
  .nav-menu.open {
    left: 0;
  }
  
  body.rtl .nav-menu.open {
    right: 0;
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .form-group.full-width {
    grid-column: span 1;
  }
  
  .finder-controls {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .top-banner .container {
    justify-content: center;
    text-align: center;
  }
}

/* Campus Switcher Tabs */
.campus-tabs-wrapper {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.campus-tab-btn {
  flex: 1;
  min-width: 200px;
  padding: 1rem 1.25rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  color: #64748b;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: var(--transition-normal);
}

.campus-tab-btn:hover {
  background: #f8fafc;
  border-color: #10b981;
  color: #10b981;
  transform: translateY(-2px);
}

.campus-tab-btn.active {
  background: #10b981;
  border-color: #10b981;
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.35);
}

.campus-tab-btn.cairo-tab.active {
  background: #7c3aed;
  border-color: #7c3aed;
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(124, 58, 237, 0.35);
}

.campus-meta-notice {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
  color: #065f46;
}

.campus-meta-notice.cairo-theme {
  background: #f5f3ff;
  border-color: #ddd6fe;
  color: #5b21b6;
}

.campus-meta-notice a.sheet-ext-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-full);
  color: #0f172a;
  font-weight: 600;
  font-size: 0.82rem;
  transition: var(--transition-fast);
}

.campus-meta-notice a.sheet-ext-link:hover {
  background: var(--accent-primary);
  color: #031d10;
}

/* Success Modal */
.form-success-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.form-success-overlay.show {
  display: flex;
}

.form-success-card {
  background: #ffffff;
  border: 2px solid var(--accent-primary);
  border-radius: var(--radius-xl);
  padding: 2.75rem;
  max-width: 540px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), var(--shadow-glow);
  animation: modalPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalPop {
  0% { transform: scale(0.85); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.success-icon-wrap {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(61, 191, 134, 0.15);
  border: 2px solid var(--accent-primary);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 1.5rem;
}

/* Owner Speech Section (A Word from the Owner) */
.owner-speech-section {
  padding: 5rem 0;
  position: relative;
  background: radial-gradient(circle at 25% 45%, rgba(16, 185, 129, 0.06) 0%, transparent 60%);
}

.owner-speech-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-xl);
  padding: 3.25rem 2.75rem;
  box-shadow: 0 15px 40px rgba(15, 23, 42, 0.08), 0 0 25px rgba(16, 185, 129, 0.06);
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.owner-speech-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-tech);
}

.owner-photo-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid rgba(16, 185, 129, 0.35);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
}

.owner-photo-frame img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  object-position: center 20%;
  transition: transform var(--transition-normal);
  display: block;
}

.owner-photo-frame:hover img {
  transform: scale(1.03);
}

.owner-photo-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.7) 75%, transparent 100%);
  padding: 1.75rem 1.25rem 1.25rem;
  text-align: center;
}

.owner-quote-icon {
  font-size: 2.75rem;
  color: rgba(16, 185, 129, 0.3);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.owner-speech-p {
  color: #334155;
  font-size: 1.08rem;
  line-height: 1.85;
  margin-bottom: 1.2rem;
}

.owner-signature-block {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
}

@media (max-width: 991px) {
  .owner-speech-card {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 2rem 1.5rem;
  }
  .owner-photo-frame img {
    height: 400px;
  }
}

/* Leadership Page Showcase Styles */
.leadership-showcase-grid {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.leader-showcase-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-xl);
  padding: 3rem 2.5rem;
  box-shadow: 0 15px 40px rgba(15, 23, 42, 0.08);
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-normal), border-color var(--transition-normal);
}

.leader-showcase-card:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12), 0 0 25px rgba(16, 185, 129, 0.1);
}

.leader-showcase-card.reverse {
  grid-template-columns: 1fr 340px;
}

.leader-showcase-card.cairo-accent {
  border-color: rgba(124, 58, 237, 0.35);
}

.leader-showcase-card.cairo-accent:hover {
  border-color: rgba(124, 58, 237, 0.6);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12), 0 0 25px rgba(124, 58, 237, 0.12);
}

.leader-showcase-card.supervision-accent {
  border-color: rgba(14, 165, 233, 0.35);
}

.leader-showcase-card.supervision-accent:hover {
  border-color: rgba(14, 165, 233, 0.6);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12), 0 0 25px rgba(14, 165, 233, 0.12);
}

.leader-photo-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid rgba(16, 185, 129, 0.35);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.cairo-accent .leader-photo-wrap {
  border-color: rgba(124, 58, 237, 0.35);
}

.supervision-accent .leader-photo-wrap {
  border-color: rgba(14, 165, 233, 0.35);
}

.leader-photo-wrap img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform var(--transition-normal);
}

.leader-showcase-card:hover .leader-photo-wrap img {
  transform: scale(1.03);
}

.leader-meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.leader-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
}

.leader-quote-speech {
  background: #f8fafc;
  border-left: 3px solid var(--accent-primary);
  padding: 1.5rem 1.75rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 1.5rem 0;
}

body.rtl .leader-quote-speech {
  border-left: none;
  border-right: 3px solid var(--accent-primary);
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.cairo-accent .leader-quote-speech {
  border-color: #c77dff;
}

.supervision-accent .leader-quote-speech {
  border-color: var(--accent-cyan);
}

@media (max-width: 991px) {
  .leader-showcase-card, .leader-showcase-card.reverse {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 1.5rem;
  }
  .leader-photo-wrap img {
    height: 360px;
  }
}

/* World Map Interactive Tournaments Showcase */
.world-map-section {
  padding: 5rem 0;
  position: relative;
  background: radial-gradient(circle at 50% 30%, rgba(16, 185, 129, 0.05) 0%, transparent 70%);
  border-top: 1px solid var(--border-subtle);
}

.map-wrapper-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05), 0 0 35px rgba(16, 185, 129, 0.06);
  position: relative;
  overflow: hidden;
}

.map-pills-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.map-country-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
}

.map-country-btn:hover {
  background: rgba(16, 185, 129, 0.1);
  border-color: #10b981;
  color: #047857;
  transform: translateY(-2px);
}

.map-country-btn.active {
  background: #10b981;
  border-color: #059669;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.map-canvas-container {
  width: 100%;
  height: 500px;
  position: relative;
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  margin-bottom: 2rem;
}

/* Glowing Visited Countries on Map in Robotica Green */
.jvm-region[data-code="US"],
.jvm-region[data-code="GR"],
.jvm-region[data-code="KR"],
.jvm-region[data-code="EE"],
.jvm-region[data-code="SA"],
.jvm-region[data-code="CN"],
.jvm-region[data-code="HR"],
.jvm-region[data-code="EG"] {
  fill: #10b981 !important;
  stroke: #059669 !important;
  stroke-width: 1.2px !important;
  filter: drop-shadow(0 2px 6px rgba(16, 185, 129, 0.4)) !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
}

.jvm-region[data-code="US"]:hover,
.jvm-region[data-code="GR"]:hover,
.jvm-region[data-code="KR"]:hover,
.jvm-region[data-code="EE"]:hover,
.jvm-region[data-code="SA"]:hover,
.jvm-region[data-code="CN"]:hover,
.jvm-region[data-code="HR"]:hover,
.jvm-region[data-code="EG"]:hover {
  fill: #059669 !important;
  stroke: #047857 !important;
  stroke-width: 1.6px !important;
  filter: drop-shadow(0 4px 12px rgba(16, 185, 129, 0.6)) !important;
}

.jvm-container {
  width: 100%;
  height: 100%;
}

.jvm-zoom-btn {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
  border-radius: 6px !important;
  width: 34px !important;
  height: 34px !important;
  font-size: 1.1rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.06) !important;
}

.jvm-zoom-btn:hover {
  background: #10b981 !important;
  color: #ffffff !important;
  border-color: #10b981 !important;
}

.jvm-tooltip {
  background: #0f172a !important;
  border: 1px solid #10b981 !important;
  border-radius: 8px !important;
  color: #fff !important;
  padding: 8px 14px !important;
  font-family: inherit !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2) !important;
}

.map-detail-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all var(--transition-normal);
  animation: fadeIn 0.3s ease;
}

.map-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e2e8f0;
}

.map-tourneys-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.map-tourney-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--accent-primary);
}

body.rtl .map-tourney-item {
  border-left: none;
  border-right: 3px solid var(--accent-primary);
}

/* 2027's Milestones Section */
.milestones-section {
  padding: 5.5rem 0;
  position: relative;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.milestones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.milestone-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  position: relative;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.milestone-card:hover {
  transform: translateY(-7px);
  border-color: var(--accent-primary);
  box-shadow: 0 15px 35px rgba(16, 185, 129, 0.12);
}

.milestone-card.milestone-featured {
  border-color: rgba(16, 185, 129, 0.4);
  background: linear-gradient(180deg, #ecfdf5 0%, #ffffff 100%);
}

.milestone-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  align-self: flex-start;
}

.milestone-card.milestone-featured .milestone-date-badge {
  background: #10b981;
  color: #ffffff;
  border-color: #059669;
}

.milestone-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.milestone-logo-box {
  width: 78px;
  height: 78px;
  min-width: 78px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all var(--transition-fast);
}

.milestone-card:hover .milestone-logo-box {
  transform: scale(1.08);
  border-color: var(--accent-primary);
  box-shadow: 0 8px 22px rgba(16, 185, 129, 0.18);
}

.milestone-logo-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.milestone-flag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #059669;
  background: rgba(16, 185, 129, 0.1);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  margin-bottom: 0.35rem;
}

.milestone-flag {
  font-size: 2.4rem;
  line-height: 1;
}

.milestone-country {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.2rem;
}

.milestone-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}

.milestone-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.milestone-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.m-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
}

/* Milestones Participation CTA Box with Right-Side Slideshow */
.milestones-cta-box {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: var(--radius-xl);
  padding: 2.75rem 3rem;
  color: #ffffff;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 2.5rem;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.25);
  border: 1px solid rgba(16, 185, 129, 0.3);
  position: relative;
  overflow: hidden;
}

.m-cta-left {
  display: flex;
  flex-direction: column;
}

.m-cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.85rem;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid #10b981;
  color: #34d399;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
  align-self: flex-start;
}

.m-cta-title {
  color: #ffffff;
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
  line-height: 1.25;
}

.m-cta-desc {
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.m-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 380px;
}

/* Right-side Slideshow Container */
.m-cta-slideshow-wrap {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.m-slideshow-container {
  position: relative;
  width: 100%;
  height: 290px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(16, 185, 129, 0.25);
  border: 2px solid rgba(16, 185, 129, 0.35);
  background: #020617;
}

.m-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease-in-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transform: scale(1.04);
  pointer-events: none;
}

.m-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

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

.m-slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 1rem 0.75rem;
  background: linear-gradient(180deg, transparent 0%, rgba(2, 6, 23, 0.85) 50%, rgba(2, 6, 23, 0.98) 100%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
}

.m-slide-flag {
  font-size: 1.25rem;
  line-height: 1;
}

.m-slideshow-dots {
  display: flex;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.m-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: all 0.25s ease;
}

.m-dot.active {
  background: var(--accent-primary);
  width: 24px;
  border-radius: var(--radius-full);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
}

.btn-whatsapp-cta {
  background: #25d366;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.9rem 1.6rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  text-decoration: none;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp-cta:hover {
  background: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
}

.btn-call-cta {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.btn-call-cta:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #ffffff;
  transform: translateY(-2px);
}

@media (max-width: 992px) {
  .milestones-cta-box {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2.25rem 1.75rem;
  }
  .m-cta-actions {
    max-width: 100%;
  }
  .m-slideshow-container {
    height: 250px;
  }
}

@media (max-width: 768px) {
  .milestones-cta-box {
    padding: 2rem 1.5rem;
  }
  .m-cta-title {
    font-size: 1.4rem;
  }
  .m-cta-actions {
    width: 100%;
    min-width: unset;
  }
}

@media (max-width: 768px) {
  .map-canvas-container {
    height: 380px;
  }
  .map-wrapper-card {
    padding: 1.5rem 1rem;
  }
}

/* Specialized Track Logo Cards & Campus Badges */
.tracks-logo-section {
  padding: 5rem 0 3.5rem;
  background: var(--bg-primary);
  position: relative;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.tracks-logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.track-logo-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.track-logo-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-primary);
  box-shadow: 0 16px 35px rgba(16, 185, 129, 0.15);
}

.track-logo-img-wrap {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #0f172a;
  position: relative;
  border-bottom: 1px solid var(--border-subtle);
}

.track-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.track-logo-card:hover .track-logo-img {
  transform: scale(1.06);
}

.track-logo-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.track-logo-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.25);
  margin-bottom: 0.75rem;
  align-self: flex-start;
}

.track-logo-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-heading, #0f172a);
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.track-logo-age {
  color: #059669;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.track-logo-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.track-logo-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
}

.track-feat-pill {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
}

.track-logo-actions {
  display: flex;
  gap: 0.75rem;
}

.track-logo-actions .btn-primary {
  flex: 1;
  justify-content: center;
  font-size: 0.9rem;
  padding: 0.65rem 1rem;
}

.track-logo-actions .btn-secondary {
  flex: 1;
  justify-content: center;
  font-size: 0.9rem;
  padding: 0.65rem 1rem;
}

/* Campuses Badges Bar */
.campuses-badges-bar {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  margin-top: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.campuses-badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.campus-badge-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.campus-badge-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-primary);
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.12);
}

.campus-badge-thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 2px solid #e2e8f0;
  background: #ffffff;
  flex-shrink: 0;
}

.campus-badge-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-heading, #0f172a);
  margin-bottom: 0.25rem;
}

.campus-badge-loc {
  font-size: 0.85rem;
  color: var(--text-muted);
}
