/*
Theme Name: Miskacademy Quran Academy
Theme URI: https://example.com/
Author: Miskacademy
Description: Bilingual Arabic/English WordPress theme based on the supplied Miskacademy HTML design.
Version: 1.0.0
Text Domain: miskacademy
*/

:root {
  --green: #0d6b4d;
  --green-dark: #084b37;
  --gold: #d7ad55;
  --cream: #f8f6ef;
  --text: #17352a;
  --white: #fff;
  --muted: #63736d;
}

* {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Tahoma, Arial, sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.8;
  direction: rtl;
}

body.english-mode {
  direction: ltr;
  text-align: left;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: min(1120px, 92%);
  margin: auto;
}

/* ========== Header / Nav ========== */
.site-header {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.15);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}

.brand img {
  height: 52px;
  width: auto;
  display: block;
  object-fit: contain;
}

.brand .brand-text {
  font-weight: 900;
  font-size: 1.25rem;
  color: #fff;
  line-height: 1.2;
}

.brand .brand-text span {
  color: var(--gold);
}

@media (max-width: 600px) {
  .brand img {
    height: 42px;
  }
  .brand .brand-text {
    font-size: 1.05rem;
  }
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
  color: #fff;
  padding: 4px 8px;
  line-height: 1;
}

#mainNav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  justify-content: center;
}

#mainNav a {
  color: #fff;
  font-weight: 700;
  opacity: 0.95;
  transition: color 0.2s;
  white-space: nowrap;
}

#mainNav a:hover {
  color: var(--gold);
}

.lang-btn {
  cursor: pointer;
  border: 0;
  border-radius: 999px;
  padding: 9px 16px;
  font-weight: 800;
  background: #fff;
  color: #14532d;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  font-size: 14px;
  flex-shrink: 0;
  white-space: nowrap;
}

/* ========== Hero ========== */
.hero {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: #fff;
  padding: 70px 0 90px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(215, 173, 85, 0.25);
  border-radius: 50%;
  left: -160px;
  top: -120px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.badge {
  display: inline-block;
  border: 1px solid rgba(215, 173, 85, 0.6);
  color: #f7dfaa;
  padding: 7px 15px;
  border-radius: 50px;
  margin-bottom: 18px;
  font-weight: 700;
  font-size: 14px;
}

.hero h1 {
  font-size: clamp(32px, 5.5vw, 58px);
  line-height: 1.25;
  margin: 0 0 18px;
  font-weight: 900;
}

.hero p {
  font-size: 18px;
  color: #e7f2ed;
  max-width: 620px;
  margin: 0 0 28px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

body.english-mode .hero-actions {
  direction: ltr;
}

/* ========== Buttons ========== */
.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 10px;
  font-weight: 900;
  font-size: 16px;
  border: 0;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  background: var(--gold);
  color: #18382c;
}

.btn.secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.btn.full {
  width: 100%;
  text-align: center;
}

/* ========== Sections ========== */
.section {
  padding: 75px 0;
}

.section.alt {
  background: #f0f7f3;
}

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 42px;
}

.eyebrow {
  display: inline-block;
  font-weight: 800;
  color: var(--green);
  letter-spacing: 0.02em;
  margin-bottom: 6px;
  font-size: 14px;
}

.section-head h2 {
  font-size: clamp(26px, 4vw, 36px);
  margin: 0 0 10px;
  color: var(--green-dark);
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

/* ========== Cards ========== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  background: #fff;
  padding: 28px;
  border-radius: 18px;
  box-shadow: 0 8px 30px rgba(15, 54, 42, 0.07);
  border: 1px solid #e7ece9;
}

.card .icon {
  font-size: 34px;
  margin-bottom: 8px;
}

.card h3 {
  color: var(--green);
  margin: 8px 0 10px;
  font-size: 18px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.card.program {
  border-top: 4px solid var(--gold);
}

/* ========== Steps ========== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.step {
  background: #fff;
  padding: 28px;
  border-radius: 18px;
  box-shadow: 0 8px 30px rgba(15, 54, 42, 0.07);
  border: 1px solid #e7ece9;
  text-align: center;
}

.step span {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 900;
  margin-bottom: 12px;
}

.step h3 {
  color: var(--green-dark);
  margin: 0 0 8px;
  font-size: 18px;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.duration {
  text-align: center;
  margin: 32px auto 0;
  font-weight: 800;
  color: var(--green-dark);
  background: #fff;
  display: inline-block;
  padding: 12px 28px;
  border-radius: 50px;
  box-shadow: 0 6px 20px rgba(15, 54, 42, 0.08);
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

/* ========== Pricing ========== */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.price-card {
  background: #fff;
  padding: 36px 28px 28px;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(15, 54, 42, 0.07);
  border: 1px solid #e7ece9;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.price-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(15, 54, 42, 0.12);
}

.price-card.featured {
  border: 2px solid var(--gold);
  background: linear-gradient(180deg, #fffef8 0%, #fff 40%);
  box-shadow: 0 12px 36px rgba(215, 173, 85, 0.25);
}

.popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  font-weight: 800;
  background: var(--gold);
  color: #18382c;
  padding: 5px 16px;
  border-radius: 20px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(215, 173, 85, 0.35);
}

.price-card .plan-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.price-card h3 {
  font-size: 52px;
  margin: 0 0 4px;
  color: var(--green-dark);
  line-height: 1;
  font-weight: 900;
}

.price-card .lessons-label {
  font-size: 15px;
  color: var(--muted);
  margin: 0 0 16px;
  font-weight: 600;
}

.price {
  font-size: 16px;
  margin-bottom: 6px;
  color: var(--text);
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
}

.price strong {
  font-size: 40px;
  color: var(--green);
  font-weight: 900;
  line-height: 1;
}

.price .currency {
  font-size: 16px;
  font-weight: 700;
  color: var(--muted);
}

.price-card .per-month {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 20px;
}

.price-card .btn {
  margin-top: auto;
  width: 100%;
  max-width: 200px;
}

/* ========== Register ========== */
.register-box {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 45px;
  align-items: start;
}

.register-box > div h2 {
  color: var(--green-dark);
  margin: 6px 0 12px;
}

.register-box > div p {
  color: var(--muted);
}

form {
  display: grid;
  gap: 16px;
  background: #fff;
  padding: 28px;
  border-radius: 18px;
  box-shadow: 0 8px 30px rgba(15, 54, 42, 0.07);
  border: 1px solid #e7ece9;
}

label {
  display: grid;
  gap: 7px;
  font-weight: 800;
  font-size: 14px;
}

input,
select {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid #d9e2dc;
  border-radius: 12px;
  font: inherit;
  background: #fff;
  outline: none;
  direction: inherit;
}

input:focus,
select:focus {
  border-color: var(--green);
}

form small {
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  display: block;
}

/* ========== Contact ========== */
.section.contact {
  background: var(--green-dark);
  color: #fff;
  text-align: center;
}

.section.contact .eyebrow {
  color: var(--gold);
}

.section.contact h2 {
  color: #fff;
  margin: 6px 0 12px;
}

.section.contact p {
  color: #dcebe5;
  max-width: 560px;
  margin: 0 auto 24px;
}

/* ========== Footer ========== */
.site-footer {
  background: #063c2c;
  color: #d9e9e3;
  text-align: center;
  padding: 32px 0;
}

.site-footer .footer-logo {
  height: 64px;
  width: auto;
  margin: 0 auto 12px;
  display: block;
  object-fit: contain;
}

.site-footer strong {
  color: #fff;
  font-size: 18px;
}

.site-footer p {
  margin: 8px 0;
  color: #b8d4c8;
}

.site-footer small {
  color: #8fb5a5;
}

/* ========== Floating WhatsApp ========== */
.floating-wa {
  position: fixed;
  z-index: 999;
  bottom: 22px;
  inset-inline-start: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-decoration: none;
  font-size: 28px;
  background: #25D366;
  color: #fff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.22);
  transition: transform 0.15s;
}

.floating-wa:hover {
  transform: scale(1.08);
}

/* ========== Responsive ========== */
@media (max-width: 900px) {
  .cards,
  .steps,
  .pricing {
    grid-template-columns: 1fr;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
  }

  .price-card.featured {
    transform: none;
  }

  .register-box {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 900px) {
  #mainNav {
    display: none;
    position: absolute;
    top: 100%;
    left: 4%;
    right: 4%;
    margin-top: 8px;
    padding: 14px;
    border-radius: 14px;
    background: #073f2e;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    z-index: 50;
  }

  #mainNav.open {
    display: flex;
  }

  #mainNav a {
    padding: 12px 14px;
    border-radius: 8px;
  }

  #mainNav a:hover {
    background: rgba(255, 255, 255, 0.08);
  }

  .menu-toggle {
    display: block;
  }

  .section {
    padding: 55px 0;
  }

  .hero {
    padding: 50px 0 70px;
  }
}

@media (max-width: 600px) {
  .lang-btn {
    padding: 8px 12px;
    font-size: 13px;
  }
}
