/* ========================================
   DS247 ACADEMY - Professional Academic Design
   Elegant, Clean & Sophisticated
   ======================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.7;
  color: #2c3e50;
  background: #ffffff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== TOP BAR ===== */
.top-bar {
  background: #1a2332;
  color: #e8e8e8;
  padding: 12px 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-left span {
  margin-right: 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.top-bar-right a {
  color: #e8e8e8;
  text-decoration: none;
  margin-left: 18px;
  transition: all 0.3s;
  padding: 6px 14px;
  border-radius: 4px;
}

.top-bar-right a:hover {
  color: #3498db;
  background: rgba(52,152,219,0.1);
}

/* ===== HEADER ===== */
.header {
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #f0f0f0;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-size: 26px;
  font-weight: 700;
  color: #1a2332;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.5px;
  transition: opacity 0.3s;
}

.logo:hover {
  opacity: 0.8;
}

.nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav a {
  text-decoration: none;
  color: #555;
  font-weight: 600;
  font-size: 15px;
  transition: color 0.3s;
  padding: 8px 0;
  position: relative;
  letter-spacing: 0.2px;
}

.nav a:hover,
.nav a.active {
  color: #1a2332;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #3498db;
  transition: width 0.3s ease;
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

/* ===== BUTTONS ===== */
.btn {
  padding: 12px 28px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  display: inline-block;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.btn-primary {
  background: #1a2332;
  color: #fff;
}

.btn-primary:hover {
  background: #2c3e50;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(26,35,50,0.2);
}

.btn-secondary {
  background: transparent;
  color: #1a2332;
  border: 2px solid #1a2332;
  box-shadow: none;
}

.btn-secondary:hover {
  background: #1a2332;
  color: #fff;
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 16px;
}

.btn-block {
  width: 100%;
  text-align: center;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #1a2332 0%, #2c3e50 100%);
  padding: 100px 20px 110px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('https://images.unsplash.com/photo-1609599006353-e629aaabfeae?w=1920&q=80') center/cover;
  opacity: 0.08;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.arabic-text {
  font-size: 48px;
  margin-bottom: 24px;
  color: #f39c12;
  font-weight: 400;
  letter-spacing: 2px;
}

.hero h1 {
  font-size: 52px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.15;
  letter-spacing: -1px;
}

.hero p {
  font-size: 20px;
  margin-bottom: 48px;
  line-height: 1.8;
  opacity: 0.9;
  font-weight: 400;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 48px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.stat-item {
  text-align: center;
  padding: 28px 20px;
  background: rgba(255,255,255,0.06);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.3s;
}

.stat-item:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.2);
}

.stat-number {
  font-size: 44px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #f39c12;
  letter-spacing: -1px;
}

.stat-label {
  font-size: 14px;
  opacity: 0.85;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== SECTIONS ===== */
.section {
  padding: 88px 20px;
}

.bg-gray {
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
  border-bottom: 1px solid #e9ecef;
}

.section-title {
  text-align: center;
  font-size: 38px;
  font-weight: 700;
  color: #1a2332;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.section-subtitle {
  text-align: center;
  font-size: 18px;
  color: #6c757d;
  margin-bottom: 56px;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* ===== FEATURE CARDS ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.feature-card {
  background: #fff;
  padding: 40px 32px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  border-color: #3498db;
}

.feature-icon {
  font-size: 56px;
  margin-bottom: 20px;
  display: inline-block;
}

.feature-card h3 {
  font-size: 22px;
  color: #1a2332;
  margin-bottom: 12px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.feature-card p {
  color: #6c757d;
  line-height: 1.7;
  margin-bottom: 16px;
  font-size: 15px;
}

.feature-link {
  color: #3498db;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.3s;
}

.feature-link:hover {
  gap: 10px;
}

/* ===== COURSE CARDS ===== */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}

.course-card {
  background: #fff;
  padding: 36px;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
  position: relative;
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.course-card.featured {
  border: 2px solid #f39c12;
  box-shadow: 0 4px 20px rgba(243,156,18,0.15);
}

.course-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background: #f39c12;
  color: #fff;
  padding: 6px 18px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(243,156,18,0.3);
}

.course-icon {
  font-size: 64px;
  margin-bottom: 20px;
  display: inline-block;
}

.course-card h3 {
  color: #1a2332;
  font-size: 24px;
  margin-bottom: 12px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.course-card p {
  color: #6c757d;
  line-height: 1.7;
  margin-bottom: 20px;
  font-size: 15px;
}

.course-features {
  margin-bottom: 24px;
  padding-top: 20px;
  border-top: 1px solid #e9ecef;
}

.course-features span {
  display: block;
  padding: 8px 0;
  color: #495057;
  font-size: 14px;
  font-weight: 500;
}

.course-price {
  font-size: 40px;
  font-weight: 700;
  color: #1a2332;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.course-price span {
  font-size: 16px;
  color: #6c757d;
  font-weight: 500;
}

/* ===== STEPS ===== */
.steps-horizontal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.step-horizontal {
  flex: 1;
  text-align: center;
}

.step-number-circle {
  width: 72px;
  height: 72px;
  background: #1a2332;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  margin: 0 auto 20px;
  box-shadow: 0 4px 12px rgba(26,35,50,0.2);
}

.step-horizontal h3 {
  font-size: 20px;
  color: #1a2332;
  margin-bottom: 10px;
  font-weight: 700;
}

.step-horizontal p {
  color: #6c757d;
  line-height: 1.6;
  font-size: 15px;
}

.step-arrow {
  font-size: 32px;
  color: #adb5bd;
  font-weight: 300;
}

.text-center {
  text-align: center;
}

.mt-3 {
  margin-top: 40px;
}

/* ===== TESTIMONIALS ===== */
.testimonials-section {
  background: #1a2332;
  color: #fff;
  padding: 88px 20px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 28px;
}

.testimonial-card {
  background: rgba(255,255,255,0.05);
  padding: 36px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.3s;
}

.testimonial-card:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.2);
}

.testimonial-text {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 24px;
  font-style: italic;
  opacity: 0.95;
}

.testimonial-author {
  margin-bottom: 8px;
}

.testimonial-author strong {
  display: block;
  color: #f39c12;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.testimonial-author span {
  opacity: 0.7;
  font-size: 14px;
}

.testimonial-rating {
  font-size: 18px;
  margin-top: 12px;
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
  padding: 88px 20px;
  text-align: center;
  color: #1a2332;
}

.cta-section h2 {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.cta-section p {
  font-size: 20px;
  margin-bottom: 36px;
  opacity: 0.95;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== FOOTER ===== */
.footer {
  background: #0f1419;
  color: #e8e8e8;
  padding: 64px 20px 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  margin-bottom: 48px;
}

.footer h3 {
  color: #fff;
  margin-bottom: 20px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.footer p {
  color: #adb5bd;
  line-height: 1.7;
  font-size: 14px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #adb5bd;
  text-decoration: none;
  transition: all 0.3s;
  font-size: 14px;
  display: inline-block;
}

.footer-links a:hover {
  color: #3498db;
  padding-left: 6px;
}

.social-links {
  margin-top: 20px;
  display: flex;
  gap: 12px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.08);
  color: #e8e8e8;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s;
  font-weight: 600;
}

.social-links a:hover {
  background: #3498db;
  color: #fff;
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: #6c757d;
  font-size: 14px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero { padding: 72px 20px 80px; }
  .hero h1 { font-size: 36px; }
  .arabic-text { font-size: 32px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .stat-number { font-size: 32px; }
  .section-title { font-size: 28px; }
  .section { padding: 64px 20px; }
  .cta-section h2 { font-size: 28px; }
  .steps-horizontal { flex-direction: column; }
  .step-arrow { display: none; }
  .nav { display: none; }
}
