@import url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.css');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');
    :root {
      --navy: #0f172a;
      --navy-2: #1e293b;
      --blue: #2563eb;
      --blue-2: #38bdf8;
      --gold: #f5b82e;
      --muted: #64748b;
      --light: #f8fafc;
      --border: rgba(15, 23, 42, .10);
      --shadow: 0 24px 70px rgba(15, 23, 42, .14);
    }

    * { box-sizing: border-box; }

    body {
      font-family: "Inter", sans-serif;
      color: var(--navy);
      background: #fff;
      overflow-x: hidden;
      width: 100%;
    }

    a { text-decoration: none; }

    .navbar {
      padding: 18px 0;
      background: rgba(255,255,255,.86);
      backdrop-filter: blur(18px);
      border-bottom: 1px solid rgba(15,23,42,.06);
      transition: .25s ease;
    }

    .navbar.scrolled {
      padding: 10px 0;
      box-shadow: 0 12px 35px rgba(15,23,42,.08);
    }

    .brand-logo {
      width: 76px;
      height: 76px;
      object-fit: contain;
      margin-right: 14px;
    }

    .brand-name {
      font-weight: 900;
      font-size: 1.55rem;
      letter-spacing: -.04em;
      color: var(--navy);
    }

    .navbar .nav-link {
      font-weight: 600;
      color: #475569;
      margin: 0 8px;
      position: relative;
    }

    .navbar .nav-link:hover,
    .navbar .nav-link.active {
      color: var(--blue);
    }

    .login-btn {
      background: var(--navy);
      color: #fff !important;
      border-radius: 999px;
      padding: 10px 20px !important;
      box-shadow: 0 12px 30px rgba(15,23,42,.18);
    }

    .hero {
      position: relative;
      padding: 190px 0 110px;
      min-height: 820px;
      background:
        radial-gradient(circle at 15% 20%, rgba(56,189,248,.22), transparent 28%),
        radial-gradient(circle at 82% 16%, rgba(245,184,46,.20), transparent 22%),
        linear-gradient(135deg, #0f172a 0%, #1e293b 48%, #0b1120 100%);
      color: #fff;
      overflow: hidden;
    }

    .hero::before {
      content: "";
      position: absolute;
      inset: 0;
      background-image:
        linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
      background-size: 60px 60px;
      mask-image: linear-gradient(to bottom, rgba(0,0,0,.8), transparent 78%);
    }

    .hero-wave {
      position: absolute;
      left: 0;
      right: 0;
      bottom: -1px;
      height: 95px;
      background: #fff;
      clip-path: polygon(0 42%, 12% 55%, 28% 38%, 45% 58%, 63% 40%, 78% 55%, 100% 35%, 100% 100%, 0 100%);
    }

    .hero-content { position: relative; z-index: 2; }

    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      padding: 9px 16px;
      border-radius: 999px;
      background: rgba(255,255,255,.12);
      border: 1px solid rgba(255,255,255,.18);
      color: #e0f2fe;
      font-weight: 800;
      font-size: .86rem;
      margin-bottom: 24px;
    }

    .hero h1 {
      font-size: clamp(3rem, 6vw, 5.7rem);
      line-height: .95;
      font-weight: 900;
      letter-spacing: -.075em;
      max-width: 780px;
      margin-bottom: 26px;
    }

    .hero h1 span {
      background: linear-gradient(90deg, #fff, #93c5fd, #facc15);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
    }

    .hero p {
      max-width: 690px;
      font-size: 1.18rem;
      line-height: 1.8;
      color: #cbd5e1;
      margin-bottom: 34px;
    }

    .btn-main {
      border: 0;
      color: #fff;
      font-weight: 800;
      border-radius: 18px;
      padding: 16px 24px;
      background: linear-gradient(135deg, var(--blue), #0ea5e9);
      box-shadow: 0 22px 40px rgba(37,99,235,.35);
      transition: .25s ease;
    }

    .btn-main:hover {
      transform: translateY(-3px);
      color: #fff;
      box-shadow: 0 28px 55px rgba(37,99,235,.42);
    }

    .btn-soft {
      color: #fff;
      font-weight: 800;
      border-radius: 18px;
      padding: 15px 22px;
      border: 1px solid rgba(255,255,255,.18);
      background: rgba(255,255,255,.09);
      backdrop-filter: blur(10px);
    }

    .hero-visual {
      position: relative;
      min-height: 520px;
      z-index: 2;
    }

    .main-panel {
      position: absolute;
      right: 0;
      top: 20px;
      width: min(540px, 100%);
      border-radius: 34px;
      padding: 24px;
      background: rgba(255,255,255,.12);
      border: 1px solid rgba(255,255,255,.18);
      backdrop-filter: blur(24px);
      box-shadow: 0 35px 100px rgba(0,0,0,.35);
    }

    .dashboard-card {
      background: #fff;
      color: var(--navy);
      border-radius: 28px;
      padding: 22px;
      box-shadow: var(--shadow);
    }

    .course-row {
      display: flex;
      align-items: center;
      gap: 14px;
      padding: 14px;
      border-radius: 20px;
      background: #f8fafc;
      margin-top: 12px;
    }

    .course-icon {
      width: 48px;
      height: 48px;
      display: grid;
      place-items: center;
      border-radius: 16px;
      background: linear-gradient(135deg, #dbeafe, #e0f2fe);
      color: var(--blue);
      font-size: 1.35rem;
    }

    .floating-card {
        position: absolute;
        background: #fff;
        color: var(--navy);
        border-radius: 24px;
        padding: 18px;
        box-shadow: 0 30px 70px rgba(0,0,0,.22);
    }

    .floating-card.one { left: -15px; top: 95px; width: 210px; }
    .floating-card.two { right: 25px; bottom: 42px; width: 230px; animation-delay: 1s; }
    .floating-card.three { left: 45px; bottom: 120px; width: 190px; animation-delay: 1.8s; }

    @keyframes float {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-16px); }
    }

    .section-padding { padding: 100px 0; }

    .section-title {
      font-weight: 900;
      letter-spacing: -.055em;
      font-size: clamp(2.2rem, 4vw, 3.4rem);
      margin-bottom: 16px;
    }

    .section-subtitle {
      color: var(--muted);
      font-size: 1.08rem;
      line-height: 1.8;
      max-width: 720px;
    }

    .stats-wrap {
      margin-top: -65px;
      position: relative;
      z-index: 5;
    }

    .stats-card {
      background: #fff;
      border: 1px solid var(--border);
      border-radius: 32px;
      box-shadow: var(--shadow);
      padding: 34px;
    }

    .stat-item h3 {
      font-weight: 900;
      letter-spacing: -.05em;
      font-size: 2.4rem;
      margin-bottom: 4px;
    }

    .stat-item p {
      color: var(--muted);
      font-weight: 700;
      margin: 0;
    }

    .feature-card,
    .program-card,
    .testimonial-card {
      height: 100%;
      border: 1px solid var(--border);
      border-radius: 30px;
      padding: 30px;
      background: #fff;
      box-shadow: 0 16px 45px rgba(15,23,42,.07);
      transition: .28s ease;
    }

    .feature-card:hover,
    .program-card:hover,
    .testimonial-card:hover {
      transform: translateY(-8px);
      box-shadow: 0 28px 75px rgba(15,23,42,.13);
      border-color: rgba(37,99,235,.25);
    }

    .icon-bubble {
      width: 62px;
      height: 62px;
      display: grid;
      place-items: center;
      border-radius: 20px;
      color: var(--blue);
      background: linear-gradient(135deg, #dbeafe, #f0f9ff);
      font-size: 1.65rem;
      margin-bottom: 22px;
    }

    .program-card {
      overflow: hidden;
      padding: 0;
    }

    .program-top {
      min-height: 185px;
      padding: 28px;
      color: #fff;
      background:
        radial-gradient(circle at 85% 10%, rgba(255,255,255,.22), transparent 24%),
        linear-gradient(135deg, #1d4ed8, #0f172a);
    }

    .program-body { padding: 28px; }

    .badge-soft {
      background: rgba(255,255,255,.18);
      border: 1px solid rgba(255,255,255,.18);
      color: #fff;
      font-weight: 800;
      border-radius: 999px;
      padding: 8px 12px;
    }

    .why-section {
      background: var(--light);
      position: relative;
      overflow: hidden;
    }

    .image-panel {
    border-radius: 36px;
    min-height: 520px;
    background:
        linear-gradient(rgba(15,23,42,.25), rgba(15,23,42,.55)),
        url('https://images.unsplash.com/photo-1498050108023-c5249f4df085?auto=format&fit=crop&w=1200&q=80') center/cover;
      box-shadow: var(--shadow);
      position: relative;
      overflow: hidden;
    }

    .image-panel-card {
      position: absolute;
      left: 28px;
      right: 28px;
      bottom: 28px;
      border-radius: 26px;
      padding: 22px;
      background: rgba(255,255,255,.92);
      backdrop-filter: blur(12px);
    }

    .check-item {
      display: flex;
      gap: 14px;
      margin-bottom: 20px;
      align-items: flex-start;
    }

    .check-icon {
      width: 34px;
      height: 34px;
      flex: 0 0 34px;
      display: grid;
      place-items: center;
      border-radius: 50%;
      background: #dcfce7;
      color: #16a34a;
    }

    .cta {
      border-radius: 40px;
      padding: 70px;
      color: #fff;
      background:
        radial-gradient(circle at 15% 20%, rgba(56,189,248,.28), transparent 26%),
        radial-gradient(circle at 85% 15%, rgba(245,184,46,.25), transparent 24%),
        linear-gradient(135deg, #0f172a, #1d4ed8);
      box-shadow: var(--shadow);
      overflow: hidden;
      position: relative;
    }

    footer {
      padding: 70px 0 30px;
      background: #0b1120;
      color: #cbd5e1;
    }

    footer h5, footer h6 { color: #fff; font-weight: 900; }
    footer a { display: block; color: #94a3b8; margin-bottom: 10px; }
    footer a:hover { color: #fff; }

    .reveal {
      opacity: 0;
      transform: translateY(22px);
      transition: .7s ease;
    }

    .reveal.visible {
      opacity: 1;
      transform: translateY(0);
    }

    @media (max-width: 991px) {
      .hero { padding: 155px 0 85px; }
      .hero-visual { margin-top: 40px; min-height: 640px; }
      .main-panel { left: 0; right: auto; }
      .floating-card.one { left: 0; top: 380px; }
      .floating-card.two { right: 0; bottom: 20px; }
      .floating-card.three { display: none; }
      .cta { padding: 42px 28px; }
    }

    @media (max-width: 575px) {
      .brand-logo { width: 58px; height: 58px; }
      .brand-name { font-size: 1.25rem; }
      .hero { min-height: auto; padding-top: 135px; }
      .hero-visual { min-height: 590px; }
      .floating-card { position: relative; inset: auto !important; width: 100% !important; margin-top: 16px; animation: none; }
      .main-panel { position: relative; width: 100%; }
      .stats-card { padding: 24px; }
      .section-padding { padding: 70px 0; }
    }

    html[dir="rtl"] body {
    font-family: 'Cairo', sans-serif;
    }

    /* Arabic typography tuning */
    html[dir="rtl"] h1,
    html[dir="rtl"] h2,
    html[dir="rtl"] h3,
    html[dir="rtl"] h4,
    html[dir="rtl"] h5,
    html[dir="rtl"] h6 {
    font-weight: 700;
    line-height: 1.4;
    }

    html[dir="rtl"] p,
    html[dir="rtl"] span,
    html[dir="rtl"] a,
    html[dir="rtl"] li {
    font-weight: 400;
    line-height: 1.9;
    }

    .brand-text {
    font-weight: 800;
    letter-spacing: -0.5px;
    }

    html[dir="rtl"] .brand-text {
    font-family: 'Cairo', sans-serif;
    font-weight: 800;
    text-shadow: 0 0 0.01px currentColor;
    }

    html[dir="rtl"] .brand-logo {
    margin-right: 0;
    margin-left: 18px;
    }

    html[dir="rtl"] .brand-name,
    html[dir="rtl"] .brand-name-footer {
    font-family: "Inter", sans-serif;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    }

    html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

@media (max-width: 575px) {
  .navbar .container {
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }

  .navbar-brand {
    min-width: 0;
    max-width: calc(100% - 70px);
    overflow: hidden;
  }

  .brand-logo {
    width: 48px;
    height: 48px;
    margin-right: 8px;
  }

  .brand-name {
    font-size: 1.05rem;
    white-space: nowrap;
  }

  .hero .row {
    margin-left: 0;
    margin-right: 0;
  }

  .hero h1 {
    font-size: 2.65rem;
  }

  .hero-visual {
    min-height: auto;
  }
}

.lang-toggle {
  font-weight: 600;
  color: #475569;
  margin: 0 8px;
  text-decoration: none;
}

.lang-toggle:hover {
  color: var(--blue);
}