/* ═══════════════════════════════════════════════════════════
   UST Master Landing Page — Premium Design System
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700;800&family=Cairo:wght@400;600;700;800;900&display=swap');

/* ─── CSS Variables ─── */
:root {
  --primary: #0774BA;
  --primary-dark: #055a91;
  --primary-light: #3a9ad9;
  --secondary: #35B7F3;
  --accent: #06D6A0;
  --gold: #F4A423;
  --surface: #FFFFFF;
  --background: #F8FBFF;
  --dark-bg: #0a1628;
  --dark-surface: #111d33;
  --dark-card: #162340;
  --text-main: #0F172A;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border-color: #D9EAF7;

  --font-primary: 'IBM Plex Sans Arabic', 'Cairo', sans-serif;
  --font-display: 'Cairo', 'IBM Plex Sans Arabic', sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(7, 116, 186, 0.06);
  --shadow-md: 0 8px 24px rgba(7, 116, 186, 0.10);
  --shadow-lg: 0 20px 50px rgba(7, 116, 186, 0.15);
  --shadow-glow: 0 0 40px rgba(53, 183, 243, 0.2);

  --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.2s ease;
}

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

html {
  direction: rtl;
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-primary);
  color: var(--text-main);
  background: var(--background);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

/* ─── Utility ─── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(7,116,186,0.08), rgba(53,183,243,0.08));
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(7,116,186,0.12);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 16px;
  line-height: 1.3;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

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

/* ─── Animations ─── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes pulse-ring {
  0% { transform: scale(0.8); opacity: 0.6; }
  80%, 100% { transform: scale(2.2); opacity: 0; }
}

@keyframes shimmer {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.visible.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.visible.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.visible.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.visible.delay-4 { transition-delay: 0.4s; }
.animate-on-scroll.visible.delay-5 { transition-delay: 0.5s; }

/* ═══════════════ NAVBAR ═══════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(7, 116, 186, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  padding: 10px 0;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-brand img {
  height: 42px;
  width: auto;
  transition: var(--transition);
}

.navbar.scrolled .navbar-brand img { height: 36px; }

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

.navbar-brand-text .title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: white;
  transition: var(--transition);
}

.navbar.scrolled .navbar-brand-text .title { color: var(--primary); }

.navbar-brand-text .sub {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
  transition: var(--transition);
}

.navbar.scrolled .navbar-brand-text .sub { color: var(--text-muted); }

.navbar-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.navbar-links a {
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  color: rgba(255,255,255,0.85);
  transition: var(--transition-fast);
}

.navbar.scrolled .navbar-links a { color: var(--text-muted); }

.navbar-links a:hover {
  background: rgba(255,255,255,0.12);
  color: white;
}

.navbar.scrolled .navbar-links a:hover {
  background: rgba(7,116,186,0.06);
  color: var(--primary);
}

.navbar-cta {
  background: rgba(255,255,255,0.15) !important;
  border: 1px solid rgba(255,255,255,0.25) !important;
  color: white !important;
  backdrop-filter: blur(10px);
}

.navbar.scrolled .navbar-cta {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: white !important;
}

.navbar-cta:hover {
  background: rgba(255,255,255,0.25) !important;
  transform: translateY(-1px);
}

.navbar.scrolled .navbar-cta:hover {
  background: var(--primary-dark) !important;
}

.navbar-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: white;
}

.navbar.scrolled .navbar-toggle { color: var(--primary); }

.navbar-toggle svg { width: 24px; height: 24px; }

/* ═══════════════ HERO ═══════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0a1628 0%, #0b2545 30%, #0774BA 70%, #35B7F3 100%);
  background-size: 300% 300%;
  animation: gradientShift 12s ease infinite;
  overflow: hidden;
  padding: 120px 24px 80px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(53,183,243,0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(6,214,160,0.08) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(7,116,186,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 850px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  margin-bottom: 28px;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  position: relative;
}

.hero-badge .dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  animation: pulse-ring 2s ease infinite;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 900;
  color: white;
  line-height: 1.25;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.75);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.9;
  animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.8s both;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--accent), #04c090);
  color: white;
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 700;
  padding: 16px 36px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 8px 30px rgba(6, 214, 160, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-hero-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: shimmer 3s ease infinite;
}

.btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(6, 214, 160, 0.4);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 600;
  padding: 16px 36px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.4);
  font-size: 0.75rem;
  animation: float 3s ease-in-out infinite;
}

.hero-scroll-indicator .mouse {
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 12px;
  position: relative;
}

.hero-scroll-indicator .mouse::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: rgba(255,255,255,0.5);
  border-radius: 2px;
  animation: fadeInUp 1.5s ease infinite;
}

/* ═══════════════ ABOUT ═══════════════ */
.about-section {
  padding: 100px 0;
  background: var(--surface);
  position: relative;
}

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

.about-text .section-title { text-align: right; }

.about-text p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 2;
  margin-bottom: 28px;
}

.accreditation-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.accreditation-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(7,116,186,0.06), rgba(53,183,243,0.06));
  border: 1px solid rgba(7,116,186,0.1);
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  transition: var(--transition);
}

.accreditation-tag:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.about-visual {
  position: relative;
}

.about-card-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.about-card {
  background: linear-gradient(145deg, var(--background), var(--surface));
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  transition: var(--transition);
}

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

.about-card .icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
  display: block;
}

.about-card .number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary);
  display: block;
}

.about-card .label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 4px;
}

/* ═══════════════ STATS SECTION ═══════════════ */
.stats-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--dark-bg), var(--dark-surface));
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 90%, rgba(53,183,243,0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 10%, rgba(6,214,160,0.06) 0%, transparent 40%);
  pointer-events: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  z-index: 2;
}

.stat-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  text-align: center;
  transition: var(--transition);
}

.stat-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-4px);
  border-color: rgba(53, 183, 243, 0.3);
  box-shadow: var(--shadow-glow);
}

.stat-icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
  display: block;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 900;
  color: white;
  display: block;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
}

/* ═══════════════ COHORTS ═══════════════ */
.cohorts-section {
  padding: 100px 0;
  background: var(--background);
}

.cohorts-section .section-title,
.cohorts-section .section-subtitle { text-align: center; }

.cohorts-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
}

.cohort-tab {
  background: var(--surface);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 12px 32px;
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.cohort-tab:hover { border-color: var(--primary-light); color: var(--primary); }

.cohort-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 8px 25px rgba(7, 116, 186, 0.25);
}

.cohort-panel { display: none; }
.cohort-panel.active { display: block; animation: fadeInUp 0.5s ease; }

.cohort-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.cohort-card {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.cohort-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: var(--transition);
}

.cohort-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

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

.cohort-card .spec-icon {
  font-size: 2.4rem;
  margin-bottom: 14px;
  display: block;
}

.cohort-card .spec-count {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--primary);
  display: block;
  margin-bottom: 4px;
}

.cohort-card .spec-label {
  font-size: 0.72rem;
  color: var(--text-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.cohort-card .spec-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.5;
}

.cohort-total {
  text-align: center;
  margin-top: 28px;
  padding: 18px;
  background: linear-gradient(135deg, rgba(7,116,186,0.06), rgba(53,183,243,0.06));
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(7,116,186,0.15);
}

.cohort-total strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--primary);
}

/* ═══════════════ SPECIALIZATIONS ═══════════════ */
.specs-section {
  padding: 100px 0;
  background: var(--surface);
}

.specs-section .section-title,
.specs-section .section-subtitle { text-align: center; }

.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.spec-card {
  background: var(--background);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.spec-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 0;
  background: linear-gradient(180deg, transparent, rgba(7,116,186,0.03));
  transition: var(--transition);
}

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

.spec-card:hover::after { height: 100%; }

.spec-card-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, rgba(7,116,186,0.08), rgba(53,183,243,0.08));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 16px;
  transition: var(--transition);
}

.spec-card:hover .spec-card-icon {
  background: var(--primary);
  transform: scale(1.1);
}

.spec-card-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 6px;
}

.spec-card-en {
  font-size: 0.78rem;
  color: var(--text-light);
  font-weight: 500;
  direction: ltr;
  text-align: right;
}

.spec-card-hours {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  background: rgba(7,116,186,0.06);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
}

/* ═══════════════ JOURNEY / TIMELINE ═══════════════ */
.journey-section {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--background), var(--surface));
}

.journey-section .section-title,
.journey-section .section-subtitle { text-align: center; }

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  right: 50%;
  transform: translateX(50%);
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary), var(--secondary), var(--accent));
  border-radius: 3px;
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 48px;
  position: relative;
}

.timeline-item:nth-child(odd) { flex-direction: row-reverse; }

.timeline-dot {
  position: absolute;
  right: 50%;
  transform: translateX(50%);
  width: 18px;
  height: 18px;
  background: var(--primary);
  border: 4px solid var(--surface);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(7,116,186,0.2);
  z-index: 2;
  transition: var(--transition);
}

.timeline-item:hover .timeline-dot {
  transform: translateX(50%) scale(1.4);
  box-shadow: 0 0 0 8px rgba(7,116,186,0.15);
}

.timeline-content {
  width: 42%;
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
}

.timeline-item:nth-child(odd) .timeline-content { margin-left: auto; margin-right: 8%; }
.timeline-item:nth-child(even) .timeline-content { margin-right: auto; margin-left: 8%; }

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

.timeline-year {
  display: inline-block;
  background: var(--primary);
  color: white;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 4px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.timeline-title {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-main);
  margin-bottom: 8px;
}

.timeline-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.timeline-hours {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  background: rgba(7,116,186,0.06);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
}

/* ═══════════════ NEWS / EVENTS ═══════════════ */
.news-section {
  padding: 100px 0;
  background: var(--surface);
}

.news-section .section-title,
.news-section .section-subtitle { text-align: center; }

.news-carousel {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 20px 0;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.news-carousel::-webkit-scrollbar { display: none; }

.news-card {
  flex: 0 0 420px;
  scroll-snap-align: start;
  background: var(--background);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: var(--transition);
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.news-card-label {
  padding: 16px 20px 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.news-card-embed {
  padding: 0 12px 12px;
}

.news-card-embed iframe {
  border-radius: var(--radius-md);
  width: 100% !important;
}

.news-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.news-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-muted);
  font-size: 1.2rem;
}

.news-nav-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* ═══════════════ CTA ═══════════════ */
.cta-section {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--dark-bg), var(--dark-surface));
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 50%, rgba(7,116,186,0.15) 0%, transparent 50%),
    radial-gradient(circle at 70% 50%, rgba(6,214,160,0.08) 0%, transparent 50%);
  pointer-events: none;
}

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

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  color: white;
  margin-bottom: 16px;
}

.cta-desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.6);
  max-width: 550px;
  margin: 0 auto 36px;
  line-height: 1.8;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--accent), #04c090);
  color: white;
  font-family: var(--font-primary);
  font-size: 1.1rem;
  font-weight: 700;
  padding: 18px 48px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 8px 30px rgba(6, 214, 160, 0.3);
}

.btn-cta:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 50px rgba(6, 214, 160, 0.4);
}

/* ═══════════════ FOOTER ═══════════════ */
.site-footer {
  padding: 40px 0 24px;
  background: #060e1a;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-brand img { height: 36px; opacity: 0.7; }

.footer-brand span {
  color: rgba(255,255,255,0.6);
  font-weight: 700;
  font-size: 0.95rem;
}

.footer-copy {
  color: rgba(255,255,255,0.3);
  font-size: 0.8rem;
}

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline::before { right: 24px; transform: none; }
  .timeline-dot { right: 24px; transform: translateX(50%); }
  .timeline-content { width: 85%; margin-right: 60px !important; margin-left: 0 !important; }
  .timeline-item:nth-child(odd) { flex-direction: row; }
  .timeline-item:nth-child(odd) .timeline-content { margin-right: 60px !important; margin-left: 0 !important; }
}

@media (max-width: 768px) {
  .navbar-links { 
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 16px;
    box-shadow: var(--shadow-lg);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }
  .navbar-links.open { display: flex; }
  .navbar-links a { color: var(--text-main) !important; }
  .navbar-toggle { display: block; }
  
  .hero { padding: 100px 20px 60px; min-height: 90vh; }
  .hero-title { font-size: 1.8rem; }
  .hero-actions { flex-direction: column; }
  .btn-hero-primary, .btn-hero-secondary { width: 100%; justify-content: center; }
  
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat-card { padding: 24px 16px; }
  .stat-number { font-size: 2rem; }
  
  .cohort-grid { grid-template-columns: repeat(2, 1fr); }
  .specs-grid { grid-template-columns: 1fr 1fr; }
  
  .news-card { flex: 0 0 320px; }
  
  .section-title { font-size: 1.6rem; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .cohort-grid { grid-template-columns: 1fr; }
  .specs-grid { grid-template-columns: 1fr; }
  .about-card-stack { grid-template-columns: 1fr; }
  .news-card { flex: 0 0 280px; }
}

/* ═══════════════ AI CHATBOT WIDGET ═══════════════ */
.chat-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(7, 116, 186, 0.4);
  cursor: pointer;
  z-index: 1000;
  transition: var(--transition);
}

.chat-fab:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 15px 35px rgba(7, 116, 186, 0.5);
}

.chat-fab.active {
  transform: scale(0.9);
  opacity: 0;
  pointer-events: none;
}

.chat-widget {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 360px;
  max-height: 550px;
  height: calc(100vh - 120px);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  z-index: 1001;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  overflow: hidden;
}

.chat-widget.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.chat-header {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-avatar {
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.chat-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 1.2;
}

.chat-subtitle {
  font-size: 0.75rem;
  opacity: 0.8;
}

.chat-close {
  background: rgba(255,255,255,0.2);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.chat-close:hover {
  background: rgba(255,255,255,0.3);
  transform: rotate(90deg);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--background);
}

.chat-msg {
  display: flex;
  flex-direction: column;
  max-width: 85%;
  animation: fadeInUp 0.3s ease;
}

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

.chat-msg-user {
  align-self: flex-end;
}

.chat-bubble {
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  font-size: 0.9rem;
  line-height: 1.6;
}

.chat-msg-bot .chat-bubble {
  background: white;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-bottom-right-radius: 4px;
}

.chat-msg-user .chat-bubble {
  background: var(--primary);
  color: white;
  border-bottom-left-radius: 4px;
}

.chat-bubble ul {
  padding-right: 20px;
  margin: 8px 0;
}

.chat-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 20px 12px;
  background: var(--background);
}

.chat-quick-btn {
  background: white;
  border: 1px solid var(--primary-light);
  color: var(--primary);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.chat-quick-btn:hover {
  background: var(--primary);
  color: white;
}

.chat-input-area {
  padding: 16px;
  background: white;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.chat-input {
  flex: 1;
  background: var(--background);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-family: inherit;
  font-size: 0.9rem;
  resize: none;
  outline: none;
  max-height: 100px;
  transition: var(--transition-fast);
}

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

.chat-send {
  background: var(--primary);
  color: white;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.chat-send:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.typing-bubble {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 16px !important;
}

.typing-dot {
  width: 6px;
  height: 6px;
  background: var(--primary-light);
  border-radius: 50%;
  animation: typing 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

@media (max-width: 480px) {
  .chat-widget {
    width: calc(100% - 32px);
    right: 16px;
    bottom: 84px;
  }
}

.spec-icon img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
}
.spec-card-icon {
  overflow: hidden;
  padding: 0;
}
.spec-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
