/* ============================================
   STRONG CARDIOLOGY ACADEMY - Design System
   ============================================ */

:root {
  --primary: #0A1628;
  --primary-dark: #070F1A;
  --primary-light: #111D32;
  --secondary: #C9A227;
  --secondary-light: #E5C158;
  --accent: #DC2626;
  --accent-hover: #B91C1C;
  --text: #1E293B;
  --text-light: #64748B;
  --text-muted: #94A3B8;
  --bg: #FAFBFC;
  --bg-white: #FFFFFF;
  --border: #E2E8F0;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.15);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --font-arabic: 'Tajawal', sans-serif;
}

[dir="rtl"] { --font-body: 'Tajawal', 'Open Sans', sans-serif; }

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
[dir="rtl"] body { font-family: var(--font-arabic); }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--primary);
}
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-padding { padding: 100px 0; }
@media (max-width: 768px) {
  .section-padding { padding: 60px 0; }
  .container { padding: 0 16px; }
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}
@keyframes ecg-draw {
  0% { stroke-dashoffset: 1000; }
  100% { stroke-dashoffset: 0; }
}
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.45);
}
.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.3);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: white;
}
.btn-gold {
  background: var(--secondary);
  color: var(--primary);
}
.btn-gold:hover {
  background: var(--secondary-light);
  transform: translateY(-2px);
}
.btn-white {
  background: white;
  color: var(--accent);
}
.btn-white:hover { background: var(--bg); }
.btn-group { display: flex; gap: 16px; flex-wrap: wrap; }
[dir="rtl"] .btn-group { flex-direction: row-reverse; }

/* Header */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: var(--transition);
  padding: 20px 0;
}
.header.scrolled {
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  padding: 12px 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  color: white;
}
.logo-img {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-link {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-heading);
  position: relative;
  padding: 4px 0;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--secondary);
  transition: var(--transition);
}
[dir="rtl"] .nav-link::after { left: auto; right: 0; }
.nav-link:hover, .nav-link.active { color: white; }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 16px; }
.lang-switch {
  color: rgba(255,255,255,0.8);
  font-size: 13px; font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.2);
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
}
.lang-switch:hover {
  background: rgba(255,255,255,0.1);
  color: white;
}
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.mobile-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: white;
  transition: var(--transition);
}
@media (max-width: 992px) {
  .nav-menu {
    position: fixed;
    top: 0; right: -100%;
    width: 80%; max-width: 320px;
    height: 100vh;
    background: var(--primary);
    flex-direction: column;
    padding: 80px 32px 32px;
    gap: 24px;
    transition: var(--transition);
    box-shadow: -10px 0 40px rgba(0,0,0,0.3);
  }
  [dir="rtl"] .nav-menu {
    right: auto; left: -100%;
    box-shadow: 10px 0 40px rgba(0,0,0,0.3);
  }
  .nav-menu.open { right: 0; }
  [dir="rtl"] .nav-menu.open { right: auto; left: 0; }
  .mobile-toggle { display: flex; }
  .mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .mobile-toggle.active span:nth-child(2) { opacity: 0; }
  .mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  overflow: hidden;
  padding-top: 80px;
}
.hero-bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: radial-gradient(circle at 1px 1px, white 1px, transparent 0);
  background-size: 40px 40px;
}
.ecg-animation {
  position: absolute;
  bottom: 15%; left: 0; right: 0;
  height: 120px;
  opacity: 0.15;
  pointer-events: none;
}
.ecg-line { width: 100%; height: 100%; }
.ecg-line path {
  stroke: var(--secondary);
  stroke-width: 2;
  fill: none;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: ecg-draw 4s ease-in-out infinite;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero-content { max-width: 600px; }
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(201, 162, 39, 0.15);
  border: 1px solid rgba(201, 162, 39, 0.3);
  border-radius: 100px;
  color: var(--secondary);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.hero-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  color: white;
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero-title .highlight {
  color: var(--secondary);
  position: relative;
}
.hero-desc {
  font-size: 18px;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 500px;
}
.hero-social-proof {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.stars {
  display: flex;
  gap: 2px;
  color: var(--secondary);
  font-size: 16px;
}
.hero-social-proof span {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
}
.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.phone-mockup {
  width: 280px; height: 560px;
  background: var(--primary-light);
  border-radius: 40px;
  border: 8px solid rgba(255,255,255,0.1);
  box-shadow: 0 25px 80px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.05);
  position: relative;
  animation: float 6s ease-in-out infinite;
  overflow: hidden;
}
.phone-mockup::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 120px; height: 28px;
  background: rgba(0,0,0,0.3);
  border-radius: 0 0 16px 16px;
}
.phone-screen {
  width: 100%; height: 100%;
  padding: 40px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.phone-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.phone-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.phone-title {
  color: white;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
}
.phone-subtitle { color: rgba(255,255,255,0.5); font-size: 11px; }
.phone-course-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.08);
}
.phone-course-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(220, 38, 38, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 18px;
}
.phone-course-info h4 { color: white; font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.phone-course-info p { color: rgba(255,255,255,0.5); font-size: 11px; }
.phone-progress {
  margin-top: auto;
  padding: 16px;
  background: rgba(201, 162, 39, 0.1);
  border-radius: var(--radius);
  border: 1px solid rgba(201, 162, 39, 0.2);
}
.phone-progress-label {
  display: flex;
  justify-content: space-between;
  color: white;
  font-size: 12px;
  margin-bottom: 8px;
}
.phone-progress-bar {
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 100px;
  overflow: hidden;
}
.phone-progress-fill { height: 100%; width: 65%; background: var(--secondary); border-radius: 100px; }
@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero-content { max-width: 100%; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .btn-group { justify-content: center; }
  .hero-social-proof { justify-content: center; }
  .hero-image { order: -1; }
  .phone-mockup { width: 220px; height: 440px; }
  .ecg-animation { display: none; }
}

/* Stats */
.stats-section {
  background: var(--bg);
  padding: 60px 0;
  position: relative;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.stat-card {
  text-align: center;
  padding: 32px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.stat-number {
  font-size: 48px;
  font-weight: 700;
  color: var(--secondary);
  font-family: var(--font-heading);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label { font-size: 15px; color: var(--text-light); font-weight: 500; }
@media (max-width: 768px) {
  .stats-grid { grid-template-columns: 1fr; gap: 20px; }
  .stat-number { font-size: 36px; }
}

/* Section Headers */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}
.section-label {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(201, 162, 39, 0.1);
  color: var(--secondary);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-heading);
  border-radius: 100px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.section-title {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 16px;
}
.section-desc { color: var(--text-light); font-size: 17px; line-height: 1.7; }

/* Courses Grid */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.course-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.course-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(201, 162, 39, 0.3);
}
.course-image {
  height: 200px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.course-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.course-icon { font-size: 48px; z-index: 1; }
.course-badge {
  position: absolute;
  top: 16px; left: 16px;
  padding: 4px 12px;
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 700;
  border-radius: 100px;
  font-family: var(--font-heading);
  text-transform: uppercase;
}
[dir="rtl"] .course-badge { left: auto; right: 16px; }
.course-content {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.course-content h3 { font-size: 20px; margin-bottom: 12px; }
.course-content p {
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}
.course-features { margin-bottom: 20px; }
.course-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  color: var(--text);
  font-size: 14px;
}
.course-features li::before {
  content: '✓';
  color: var(--secondary);
  font-weight: 700;
  font-size: 12px;
}
.course-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.course-price {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  color: var(--primary);
}
.course-link {
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
  font-family: var(--font-heading);
  display: flex;
  align-items: center;
  gap: 4px;
}
.course-link:hover { gap: 8px; }
@media (max-width: 992px) { .courses-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) { .courses-grid { grid-template-columns: 1fr; } }

/* Instructor Section */
.instructor-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  position: relative;
  overflow: hidden;
}
.instructor-section::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.instructor-grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.instructor-image { position: relative; }
.instructor-image img {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}
.instructor-image::before {
  content: '';
  position: absolute;
  inset: -20px;
  border: 2px solid rgba(201, 162, 39, 0.3);
  border-radius: var(--radius-xl);
  z-index: -1;
}
.instructor-label {
  color: var(--secondary);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-family: var(--font-heading);
  margin-bottom: 12px;
}
.instructor-name { font-size: 36px; color: white; margin-bottom: 8px; }
.instructor-title { font-size: 18px; color: rgba(255,255,255,0.7); font-weight: 400; margin-bottom: 24px; }
.instructor-bio { color: rgba(255,255,255,0.75); line-height: 1.8; margin-bottom: 28px; }
.credentials-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}
.credentials-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.85);
  font-size: 15px;
}
.credentials-list li .icon {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(201, 162, 39, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  font-size: 12px;
  flex-shrink: 0;
}
.instructor-social { display: flex; gap: 12px; }
.instructor-social a {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  transition: var(--transition);
}
.instructor-social a:hover {
  background: var(--secondary);
  color: var(--primary);
  transform: translateY(-3px);
}
@media (max-width: 992px) {
  .instructor-grid { grid-template-columns: 1fr; gap: 40px; }
  .instructor-image { max-width: 400px; margin: 0 auto; }
}

/* App Section */
.app-section {
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.app-section::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.05) 0%, transparent 70%);
  border-radius: 50%;
}
.app-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.app-features { display: flex; flex-direction: column; gap: 20px; margin: 32px 0; }
.app-feature {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.app-feature:hover { border-color: rgba(201, 162, 39, 0.3); transform: translateX(5px); }
[dir="rtl"] .app-feature:hover { transform: translateX(-5px); }
.app-feature-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  background: rgba(201, 162, 39, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  font-size: 20px;
  flex-shrink: 0;
}
.app-feature-text h4 { font-size: 16px; margin-bottom: 4px; }
.app-feature-text p { font-size: 14px; color: var(--text-light); }
.app-store-badges { display: flex; gap: 16px; margin-top: 24px; flex-wrap: wrap; }
.app-store-badge {
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px;
  color: white;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,0.1);
}
.app-store-badge:hover { background: var(--primary-light); transform: translateY(-2px); box-shadow: var(--shadow); }
.app-qr {
  margin-top: 24px;
  padding: 20px;
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  gap: 16px;
}
.qr-code {
  width: 100px; height: 100px;
  background: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  text-align: center;
  padding: 8px;
}
.app-qr-text { font-size: 14px; color: var(--text-light); }
.app-qr-text strong { display: block; color: var(--primary); font-size: 16px; margin-bottom: 4px; }
.app-visual { display: flex; justify-content: center; align-items: center; position: relative; }
.app-float-card {
  position: absolute;
  padding: 16px 20px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: float 4s ease-in-out infinite;
}
.app-float-card.card-1 { top: 20%; left: -30px; animation-delay: 0.5s; }
.app-float-card.card-2 { bottom: 25%; right: -20px; animation-delay: 1s; }
.app-float-card .card-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 18px;
}
.app-float-card .card-text { font-size: 13px; font-weight: 600; color: var(--primary); font-family: var(--font-heading); }
.app-float-card .card-text span { display: block; font-size: 12px; color: var(--text-light); font-weight: 400; }
@media (max-width: 992px) {
  .app-grid { grid-template-columns: 1fr; gap: 40px; }
  .app-visual { order: -1; }
  .app-phone-wrapper .phone-mockup { width: 220px; height: 440px; }
  .app-float-card { display: none; }
}

/* Testimonials */
.testimonials-section { background: white; }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.testimonial-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  transition: var(--transition);
  border: 1px solid transparent;
}
.testimonial-card:hover { border-color: var(--border); box-shadow: var(--shadow); }
.testimonial-flag {
  position: absolute;
  top: 20px; right: 20px;
  width: 32px; height: 32px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  border: 2px solid white;
}
[dir="rtl"] .testimonial-flag { right: auto; left: 20px; }
.testimonial-flag img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-stars { display: flex; gap: 4px; color: var(--secondary); margin-bottom: 16px; font-size: 16px; }
.testimonial-text { font-size: 15px; line-height: 1.8; color: var(--text); margin-bottom: 24px; font-style: italic; }
[dir="rtl"] .testimonial-text { font-style: normal; }
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.testimonial-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}
.testimonial-info h4 { font-size: 15px; margin-bottom: 2px; }
.testimonial-info p { font-size: 13px; color: var(--text-light); }
@media (max-width: 992px) { .testimonials-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) { .testimonials-grid { grid-template-columns: 1fr; } }

/* Why Choose Us */
.why-section { background: var(--bg); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.why-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
}
.why-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(201, 162, 39, 0.2);
}
.why-icon {
  width: 64px; height: 64px;
  border-radius: var(--radius);
  background: rgba(201, 162, 39, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--secondary);
  font-size: 28px;
}
.why-card h3 { font-size: 18px; margin-bottom: 12px; }
.why-card p { font-size: 14px; color: var(--text-light); line-height: 1.7; }
@media (max-width: 992px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) { .why-grid { grid-template-columns: 1fr; } }

/* FAQ */
.faq-section { background: white; }
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}
.faq-item:hover { border-color: rgba(201, 162, 39, 0.3); }
.faq-item.active { border-color: rgba(201, 162, 39, 0.3); box-shadow: var(--shadow); }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  background: white;
  transition: var(--transition);
}
.faq-question:hover { background: rgba(201, 162, 39, 0.05); }
.faq-question h3 { font-size: 16px; font-weight: 600; color: var(--primary); }
.faq-toggle {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  font-size: 14px;
  transition: var(--transition);
  flex-shrink: 0;
  margin-left: 16px;
}
[dir="rtl"] .faq-toggle { margin-left: 0; margin-right: 16px; }
.faq-item.active .faq-toggle { background: var(--secondary); color: white; transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease; }
.faq-item.active .faq-answer { max-height: 300px; }
.faq-answer-inner { padding: 0 24px 20px; color: var(--text-light); line-height: 1.7; font-size: 15px; }

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--accent) 0%, #B91C1C 100%);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  border-radius: 50%;
}
.cta-section::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -100px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.cta-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.cta-content h2 { color: white; font-size: clamp(28px, 4vw, 40px); margin-bottom: 16px; }
.cta-content p { color: rgba(255,255,255,0.85); font-size: 18px; margin-bottom: 32px; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Footer */
.footer {
  background: var(--primary-dark);
  color: white;
  padding: 80px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 60px;
  margin-bottom: 60px;
}
.footer-brand .logo { margin-bottom: 20px; }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 15px; line-height: 1.7; margin-bottom: 24px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--secondary); color: var(--primary); transform: translateY(-3px); }
.footer-column h4 { color: white; font-size: 16px; margin-bottom: 24px; font-family: var(--font-heading); }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-links a:hover { color: var(--secondary); padding-left: 4px; }
[dir="rtl"] .footer-links a:hover { padding-left: 0; padding-right: 4px; }
.footer-newsletter p { color: rgba(255,255,255,0.6); font-size: 14px; margin-bottom: 16px; line-height: 1.6; }
.newsletter-form { display: flex; gap: 8px; }
.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05);
  color: white;
  font-size: 14px;
  outline: none;
  transition: var(--transition);
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-form input:focus { border-color: var(--secondary); background: rgba(255,255,255,0.08); }
.newsletter-form button {
  padding: 12px 20px;
  background: var(--secondary);
  color: var(--primary);
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-family: var(--font-heading);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.newsletter-form button:hover { background: var(--secondary-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { color: rgba(255,255,255,0.4); font-size: 13px; }
@media (max-width: 992px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
}
@media (max-width: 576px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 999;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 28px;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
  cursor: pointer;
}
[dir="rtl"] .whatsapp-float { right: auto; left: 24px; }
.whatsapp-float:hover { transform: scale(1.1) translateY(-3px); box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5); }
.whatsapp-tooltip {
  position: absolute;
  right: 68px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary);
  color: white;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}
[dir="rtl"] .whatsapp-tooltip { right: auto; left: 68px; }
.whatsapp-float:hover .whatsapp-tooltip { opacity: 1; }

/* Page Hero (shared) */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 160px 0 80px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero h1 { color: white; font-size: clamp(32px, 5vw, 48px); position: relative; z-index: 1; }
.page-hero p { color: rgba(255,255,255,0.7); font-size: 18px; margin-top: 12px; position: relative; z-index: 1; }

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}
.breadcrumb a { color: rgba(255,255,255,0.8); }
.breadcrumb a:hover { color: var(--secondary); }
.breadcrumb-separator { opacity: 0.5; }

/* Mission Section */
.mission-section { background: white; }
.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.mission-quote {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  font-family: var(--font-heading);
  line-height: 1.4;
  position: relative;
  padding-left: 24px;
  border-left: 4px solid var(--secondary);
}
[dir="rtl"] .mission-quote { padding-left: 0; padding-right: 24px; border-left: none; border-right: 4px solid var(--secondary); }
.mission-quote::before {
  content: '"';
  position: absolute;
  top: -20px; left: -10px;
  font-size: 80px;
  color: var(--secondary);
  opacity: 0.3;
  font-family: Georgia, serif;
}
[dir="rtl"] .mission-quote::before { left: auto; right: -10px; }

/* Timeline */
.timeline-section { background: var(--bg); }
.timeline { position: relative; max-width: 800px; margin: 0 auto; }
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px; height: 100%;
  background: var(--border);
}
[dir="rtl"] .timeline::before { left: auto; right: 50%; transform: translateX(50%); }
.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding-right: 50%;
  position: relative;
  margin-bottom: 40px;
}
.timeline-item:nth-child(even) { justify-content: flex-start; padding-right: 0; padding-left: 50%; }
[dir="rtl"] .timeline-item { padding-right: 0; padding-left: 50%; justify-content: flex-start; }
[dir="rtl"] .timeline-item:nth-child(even) { padding-left: 0; padding-right: 50%; justify-content: flex-end; }
.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--secondary);
  border: 4px solid white;
  box-shadow: 0 0 0 2px var(--secondary);
  z-index: 1;
}
.timeline-content {
  background: white;
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 320px;
  margin: 0 24px;
}
.timeline-year { color: var(--secondary); font-weight: 700; font-family: var(--font-heading); font-size: 14px; margin-bottom: 8px; }
.timeline-content h3 { font-size: 18px; margin-bottom: 8px; }
.timeline-content p { font-size: 14px; color: var(--text-light); }
@media (max-width: 768px) {
  .mission-grid { grid-template-columns: 1fr; }
  .timeline::before { left: 20px; }
  [dir="rtl"] .timeline::before { right: 20px; left: auto; }
  .timeline-item, .timeline-item:nth-child(even) { padding-left: 50px; padding-right: 0; justify-content: flex-start; }
  [dir="rtl"] .timeline-item, [dir="rtl"] .timeline-item:nth-child(even) { padding-right: 50px; padding-left: 0; justify-content: flex-end; }
  .timeline-dot { left: 20px; }
  [dir="rtl"] .timeline-dot { right: 20px; left: auto; transform: translateX(50%); }
}

/* Contact Page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
}
.contact-info-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 20px;
  transition: var(--transition);
}
.contact-info-card:hover { border-color: rgba(201, 162, 39, 0.3); transform: translateY(-3px); }
.contact-info-card .icon {
  width: 52px; height: 52px;
  border-radius: var(--radius);
  background: rgba(201, 162, 39, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  font-size: 22px;
  margin-bottom: 16px;
}
.contact-info-card h3 { font-size: 18px; margin-bottom: 8px; }
.contact-info-card p { color: var(--text-light); font-size: 15px; line-height: 1.6; }
.contact-info-card a { color: var(--accent); font-weight: 600; }
.contact-form-wrapper {
  background: white;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
  font-family: var(--font-heading);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  transition: var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--secondary);
  background: white;
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.1);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 992px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 576px) {
  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrapper { padding: 24px; }
}

/* Download Page */
.download-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 160px 0 100px;
  text-align: center;
  color: white;
}
.download-hero h1 { color: white; font-size: clamp(32px, 5vw, 48px); margin-bottom: 16px; }
.download-hero p { color: rgba(255,255,255,0.7); font-size: 18px; max-width: 600px; margin: 0 auto 40px; }
.download-steps { display: flex; justify-content: center; gap: 40px; margin-bottom: 40px; flex-wrap: wrap; }
.download-step { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.step-number {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 2px solid var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
}
.step-label { font-size: 14px; color: rgba(255,255,255,0.8); }
.download-badges-large { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.download-badge-large {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  color: white;
  transition: var(--transition);
}
.download-badge-large:hover { background: rgba(255,255,255,0.2); transform: translateY(-3px); }
.download-badge-large svg { width: 32px; height: 32px; }
.download-badge-large div { text-align: left; }
[dir="rtl"] .download-badge-large div { text-align: right; }
.download-badge-large .small { font-size: 12px; opacity: 0.8; }
.download-badge-large .big { font-size: 16px; font-weight: 700; font-family: var(--font-heading); }
.screenshots-section { background: var(--bg); }
.screenshots-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.screenshot-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.screenshot-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.screenshot-frame {
  aspect-ratio: 9/16;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  text-align: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.screenshot-frame::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 40%; height: 20px;
  background: rgba(0,0,0,0.3);
  border-radius: 0 0 12px 12px;
}
.screenshot-label {
  text-align: center;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  font-family: var(--font-heading);
}
@media (max-width: 992px) { .screenshots-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) {
  .screenshots-grid { grid-template-columns: 1fr; }
  .download-steps { flex-direction: column; gap: 24px; }
}

/* Courses Page */
.courses-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 160px 0 80px;
  text-align: center;
  color: white;
}
.courses-hero h1 { color: white; font-size: clamp(32px, 5vw, 48px); }
.courses-hero p { color: rgba(255,255,255,0.7); margin-top: 12px; font-size: 18px; }
.course-filter { display: flex; justify-content: center; gap: 12px; margin-bottom: 40px; flex-wrap: wrap; }
.filter-btn {
  padding: 10px 24px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: white;
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active { background: var(--primary); color: white; border-color: var(--primary); }
.course-detail-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 60px; align-items: start; }
.course-detail-sidebar { position: sticky; top: 100px; }
.course-detail-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}
.course-detail-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 32px;
  color: white;
  text-align: center;
}
.course-detail-header .course-icon-large { font-size: 48px; margin-bottom: 16px; }
.course-detail-header h2 { color: white; font-size: 24px; margin-bottom: 8px; }
.course-detail-header p { color: rgba(255,255,255,0.7); font-size: 14px; }
.course-detail-body { padding: 24px; }
.course-meta-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.course-meta-item { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--text); }
.course-meta-item .meta-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  font-size: 14px;
  flex-shrink: 0;
}
.course-detail-cta { display: flex; flex-direction: column; gap: 12px; }
.course-detail-cta .btn { width: 100%; }
.course-modules { display: flex; flex-direction: column; gap: 12px; }
.module-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}
.module-item:hover { border-color: rgba(201, 162, 39, 0.3); }
.module-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  cursor: pointer;
  background: var(--bg);
  transition: var(--transition);
}
.module-header:hover { background: rgba(201, 162, 39, 0.05); }
.module-header h4 { font-size: 15px; display: flex; align-items: center; gap: 10px; }
.module-number {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--secondary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.module-toggle { color: var(--text-light); transition: var(--transition); }
.module-item.active .module-toggle { transform: rotate(180deg); }
.module-content { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.module-item.active .module-content { max-height: 500px; }
.module-lessons { padding: 0 20px 16px; display: flex; flex-direction: column; gap: 8px; }
.module-lessons li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: white;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text);
  border: 1px solid var(--border);
}
.lesson-icon { color: var(--secondary); font-size: 12px; }
.lesson-duration { margin-left: auto; font-size: 12px; color: var(--text-muted); }
[dir="rtl"] .lesson-duration { margin-left: 0; margin-right: auto; }
@media (max-width: 992px) {
  .course-detail-grid { grid-template-columns: 1fr; }
  .course-detail-sidebar { position: static; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: 100px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-light); }
