:root {
  --bg: #0b1220;
  --card: #101a2e;
  --muted: #8aa0c5;
  --text: #e9eefb;
  --brand: #ddb764;
  --accent: #4cc9f0;
  --shadow: rgba(0, 0, 0, 0.25);
  --radius-xl: 18px;
  --radius-2xl: 26px;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial,
    "Noto Naskh Arabic", sans-serif;
  color: var(--text);
  background: radial-gradient(
    1200px 600px at 80% -10%,
    #1a2750 0%,
    #0b1220 50%,
    #070c16 100%
  );
}
a {
  color: var(--accent);
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(150%) blur(8px);
  background: rgba(7, 12, 22, 0.65);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.nav a {
  text-decoration: none;
  color: inherit;
  padding-bottom: 2px;
  transition: border-bottom 0.3s ease;
}

.nav a.active-link {
  border-bottom: 2px solid var(--brand);
  padding-bottom: 2px;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
}
.logo {
  width: 200px;
  height: 50px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--brand), #f8e7b3);
  color: #241a00;
  display: grid;
  place-items: center;
  font-weight: 800;
  box-shadow: 0 8px 20px var(--shadow);
}
.logo img {
  border-radius: 10px;
}
.brand h1 {
  font-size: 18px;
  margin: 0;
  letter-spacing: 0.3px;
}
.nav ul {
  list-style: none;
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
}
.nav a {
  color: var(--text);
  opacity: 0.85;
  font-weight: 500;
}
.nav a:hover {
  opacity: 1;
}
.lang-toggle {
  display: flex;
  gap: 8px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
}
.btn {
  cursor: pointer;
  border: none;
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 600;
  color: #0b1220;
  background: var(--brand);
  box-shadow: 0 10px 24px rgba(221, 183, 100, 0.25);
}
#payNowBtn{
  width: 100%;
}
.btn.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: none;
}
.hero {
  padding: 64px 0 30px;
  position: relative;
}
.hero .grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
}
.kicker {
  color: var(--brand);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 12px;
}
h2.display {
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1.1;
  margin: 10px 0 14px;
}
.sub {
  color: var(--muted);
  font-size: 16px;
}
.cta-row {
  margin-top: 22px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 18px;
  border-radius: var(--radius-2xl);
  box-shadow: 0 10px 30px var(--shadow);
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}
.stat {
  background: rgba(255, 255, 255, 0.04);
  padding: 14px;
  border-radius: 14px;
  text-align: center;
}
.stat b {
  font-size: 20px;
  display: block;
}

.course-tile {
  display: inline-block;
  padding: 12px 16px;
  margin: 8px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fafafa;
  text-align: center;
  width: 200px;
}
.course-tile {
  display: inline-block;
  width: 220px;
  margin: 10px;
  padding: 18px 16px;
  text-align: center;

  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 20px var(--shadow);

  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.course-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px var(--shadow);
}

.course-tile h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 12px;
}

.course-tile .btn {
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--brand);
  color: #0b1220;
  box-shadow: 0 6px 14px rgba(221, 183, 100, 0.25);
  transition: background 0.2s ease, transform 0.2s ease;
}
.course-tile .btn:hover {
  background: #f0d890;
  transform: scale(1.05);
}

section {
  padding: 46px 0;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.section-title h3 {
  margin: 0;
  font-size: 22px;
}
.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.chip {
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
}
.chip.active {
  background: var(--brand);
  color: #0b1220;
  border-color: transparent;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 28px var(--shadow);
}
.card .img {
  height: 140px;
  background: linear-gradient(20deg, #1f2b4f, #12234a 50%, #0e1b38);
  display: grid;
  place-items: center;
  font-size: 42px;
  opacity: 0.9;
}
.card .body {
  padding: 16px;
  display: grid;
  gap: 8px;
}
.meta {
  color: var(--muted);
  font-size: 13px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.pill {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
}
.price {
  font-weight: 700;
  color: var(--brand);
}
.card .actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding: 16px;
}
.payment-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
}
.pane {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  padding: 18px;
  box-shadow: 0 12px 28px var(--shadow);
}
.form-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}
.form-grid .full {
  grid-column: 1 / -1;
}
label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}
input,
select,
textarea {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}
select option{
color: black;
}
.totals {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
}
.totals b {
  font-size: 18px;
  color: var(--brand);
}
.pay-rows {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.paylogo {
  height: 22px;
  opacity: 0.9;
}
.quotes {
  /* display: grid;
  grid-template-columns: repeat(3, 1fr); */
  gap: 16px;
}
.quote {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0.01)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px;
  font-size: 14px;
}
footer {
  padding: 30px 0 50px;
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 30px;
}
.footgrid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 18px;
}
.countdown {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  background: rgba(76, 201, 240, 0.1);
  border: 1px solid rgba(76, 201, 240, 0.35);
  color: #b8e8fb;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
}
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: rgba(33, 91, 109, 0.747);
  border: 1px solid rgba(76, 201, 240, 0.35);
  padding: 2rem;
  border-radius: 12px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 22px;
  cursor: pointer;
}

.modal-actions {
  margin-top: 1.5rem;
  display: flex;
  justify-content: space-between;
}

.wa {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 56px;
  height: 56px;
  border-radius: 99px;
  background: #25d366;
  display: grid;
  place-items: center;
  color: #072b12;
  font-size: 28px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
  z-index: 60;
}
@media (max-width: 980px) {
  .hero .grid {
    grid-template-columns: 1fr;
  }
  .cards {
    grid-template-columns: 1fr 1fr;
  }
  .payment-grid {
    grid-template-columns: 1fr;
  }
  .quotes {
    grid-template-columns: 1fr;
  }
  .footgrid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .cards {
    grid-template-columns: 1fr;
  }
}
/* RTL helpers */
.rtl body,
body.rtl {
  direction: rtl;
}
body.rtl .nav ul {
  flex-direction: row-reverse;
}
body.rtl .cta-row {
  justify-content: flex-start;
}
/* Mobile header layout */
@media (max-width: 600px) {
  header .wrap {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }

  .brand {
    margin-bottom: 5px;
  }

  /* Keep nav links inline */
  .nav ul {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 10px;
    padding: 0;
    margin-top: 10px;
    list-style: none;
  }

  .nav ul li a {
    
    display: inline-block;
    padding: 6px 10px;
    font-size: 13px;
  }

  /* Language toggle below menu */
  .lang-toggle {
    margin-top: 8px;
    display: flex;
    justify-content: center;
    gap: 10px;
  }
}

/* -----------------------
   Mobile: make hero tiles & course tiles full-width
   Paste this AFTER your existing CSS
   ----------------------- */

/* General mobile breakpoint (<= 600px) */
@media (max-width: 600px) {

  /* HERO TILES (the three stat boxes .stats > .stat) */
  .stats {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    width: 100%;
  }
  .stats .stat {
    width: 100% !important;
    max-width: 100% !important;
    padding: 14px !important;
    justify-self: stretch !important;
    box-sizing: border-box;
  }

  /* If you use a different wrapper for hero tiles (e.g. .hero-tiles), ensure it also stacks */
  .hero-tiles {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
  }
  .hero-tiles .tile {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* HOMEPAGE COURSE TILES (the .course-tile card list you render on home) */
  .course-tile {
    width: 100% !important;
    max-width: 100% !important;
    margin: 10px 0 !important;
    display: block !important;
    box-sizing: border-box;
  }
  .course-tile h4 {
    font-size: 16px !important;
    margin-bottom: 10px !important;
    text-align: left;
  }
  .course-tile .btn {
    width: 100% !important;
    display: block !important;
    padding: 10px 12px !important;
    text-align: center;
  }

  /* Make course listing grid collapse to single column */
  .cards {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  /* Register / CTA row adjustments */
  .cta-row {
    flex-direction: column !important;
    gap: 10px !important;
    align-items: stretch !important;
  }
  .cta-row .btn {
    width: 100% !important;
  }
}

/* Extra small fine-tuning for very narrow phones (350px - 460px) */
@media (max-width: 460px) {
  .course-tile h4 {
    font-size: 15px !important;
  }
  .hero-card ol {
    padding-left: 18px !important;
    font-size: 14px !important;
  }
  .nav {
    padding: 10px 12px !important;
  }
  header .logo { width: auto !important; height: auto !important; }
}
/* Default tiles grid (desktop/tablet) */
.home-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

/* Individual tile */
.course-tile {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 20px var(--shadow);
  padding: 18px 16px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.course-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px var(--shadow);
}

.course-tile h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 12px;
}

.course-tile .btn {
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--brand);
  color: #0b1220;
  box-shadow: 0 6px 14px rgba(221, 183, 100, 0.25);
  transition: background 0.2s ease, transform 0.2s ease;
}

.course-tile .btn:hover {
  background: #f0d890;
  transform: scale(1.05);
}

/* 📱 Mobile full-width tiles */
@media (max-width: 600px) {
  .home-tiles {
    grid-template-columns: 1fr !important;
  }
  .course-tile {
    width: 100% !important;
    max-width: 100% !important;
    text-align: left;
  }
  .course-tile h4 {
    margin-bottom: 10px;
  }
  .course-tile .btn {
    width: 100%;
    text-align: center;
  }
}