/* TheFlowMinds — Shared Stylesheet */

:root {
  --bg-primary: #FFFFFF;
  --bg-secondary: #F7F6F3;
  --text-primary: #1A1A1A;
  --text-secondary: #6B6B6B;
  --accent: #1B4FD8;
  --accent-light: #EEF2FF;
  --border: #E5E5E5;
  --success: #0F7B5A;
  --success-bg: #F0FBF7;

  --font-arabic: 'Noto Naskh Arabic', serif;
  --font-english: 'DM Sans', sans-serif;

  --max-width: 860px;
  --section-pad: 64px;
  --section-pad-mobile: 40px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-english);
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.6;
  font-size: 16px;
}

/* Font application */
[dir="rtl"] {
  font-family: var(--font-arabic);
  font-size: 18px;
  line-height: 1.9;
}

/* Language toggle — strict one-language-at-a-time */
.lang-en { display: none; }
body.show-ar .lang-ar { display: block; }
body.show-ar .lang-en { display: none; }
body.show-en .lang-en { display: block; }
body.show-en .lang-ar { display: none; }

/* Inline lang spans */
span.lang-ar, span.lang-en { display: inline; }
body.show-ar span.lang-ar { display: inline; }
body.show-ar span.lang-en { display: none; }
body.show-en span.lang-en { display: inline; }
body.show-en span.lang-ar { display: none; }

/* FAQ questions and answers */
.faq-q-en, .faq-a-en { display: none; }
body.show-ar .faq-q-ar  { display: inline; }
body.show-ar .faq-q-en  { display: none; }
body.show-ar .faq-a-ar  { display: block; }
body.show-ar .faq-a-en  { display: none; }
body.show-en .faq-q-en  { display: inline; }
body.show-en .faq-q-ar  { display: none; }
body.show-en .faq-a-en  { display: block; }
body.show-en .faq-a-ar  { display: none; }

/* Module card titles and video titles (use -ar / -en suffix classes) */
.module-title-en, .video-title-en { display: none; }
body.show-ar .module-title-ar  { display: block; }
body.show-ar .module-title-en  { display: none; }
body.show-ar .video-title-ar   { display: block; }
body.show-ar .video-title-en   { display: none; }
body.show-en .module-title-en  { display: block; }
body.show-en .module-title-ar  { display: none; }
body.show-en .video-title-en   { display: block; }
body.show-en .video-title-ar   { display: none; }

/* Utility */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── NAV ──────────────────────────────────────────────── */

.site-nav {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  padding: 14px 0;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

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

.nav-logo img {
  width: 36px;
  height: 36px;
}

.nav-logo-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 500;
  font-family: var(--font-arabic);
  transition: color 0.15s;
}

.nav-links a:hover {
  color: var(--accent);
}

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

.lang-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.8rem;
  font-family: var(--font-english);
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.lang-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-nav-cta {
  background: var(--accent);
  color: #fff;
  padding: 9px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: var(--font-arabic);
  white-space: nowrap;
  transition: background 0.15s;
}

.btn-nav-cta:hover {
  background: #1640b0;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.2s;
}

/* ─── MOBILE NAV ────────────────────────────────────────── */

@media (max-width: 700px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-end;
    padding: 16px 24px;
    gap: 20px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 1.05rem;
  }

  .hamburger {
    display: flex;
  }

  .btn-nav-cta {
    display: none;
  }

  .nav-links.open .nav-cta-mobile {
    display: block;
  }
}

/* ─── SECTIONS ──────────────────────────────────────────── */

section {
  padding: var(--section-pad) 0;
}

@media (max-width: 700px) {
  section {
    padding: var(--section-pad-mobile) 0;
  }
}

/* Section heading pattern */
.section-heading {
  margin-bottom: 40px;
}

.section-heading .ar {
  font-family: var(--font-arabic);
  font-size: 30px;
  font-weight: 600;
  color: var(--text-primary);
  direction: rtl;
  text-align: right;
  line-height: 1.5;
}

.section-heading .en {
  font-family: var(--font-english);
  font-size: 18px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ─── HERO ──────────────────────────────────────────────── */

.hero {
  background: var(--bg-secondary);
  padding: 80px 0 72px;
  text-align: center;
}

@media (max-width: 700px) {
  .hero {
    padding: 48px 0 44px;
  }
}

.hero-arabic {
  direction: rtl;
  font-family: var(--font-arabic);
  margin-bottom: 28px;
}

.hero-arabic h1 {
  font-size: 42px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.hero-arabic .hero-sub {
  font-size: 22px;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.hero-arabic .hero-desc {
  font-size: 18px;
  line-height: 1.9;
  color: var(--text-primary);
  max-width: 700px;
  margin: 0 auto;
}

.hero-english {
  direction: ltr;
  font-family: var(--font-english);
  margin-bottom: 36px;
  color: var(--text-secondary);
}

.hero-english h2 {
  font-size: 22px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.hero-english .hero-en-sub {
  font-size: 15px;
  margin-bottom: 10px;
}

.hero-english .hero-en-desc {
  font-size: 15px;
  line-height: 1.7;
  max-width: 620px;
  margin: 0 auto;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.btn-primary {
  background: var(--text-primary);
  color: #fff;
  padding: 14px 28px;
  border-radius: 7px;
  text-decoration: none;
  font-family: var(--font-arabic);
  font-size: 17px;
  font-weight: 600;
  transition: background 0.15s;
}

.btn-primary:hover {
  background: #333;
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  padding: 14px 28px;
  border-radius: 7px;
  border: 1.5px solid var(--border);
  text-decoration: none;
  font-family: var(--font-english);
  font-size: 15px;
  font-weight: 500;
  transition: border-color 0.15s;
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-tagline {
  font-family: var(--font-arabic);
  direction: rtl;
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.hero-tagline .en-tag {
  direction: ltr;
  font-family: var(--font-english);
  font-size: 13px;
  display: block;
  margin-top: 4px;
}

/* ─── FOR YOU IF ────────────────────────────────────────── */

.for-you {
  background: var(--bg-primary);
}

.for-you .container {
  max-width: var(--max-width);
}

.bullet-list {
  list-style: none;
  padding: 0;
}

.bullet-list-ar {
  direction: rtl;
  text-align: right;
  font-family: var(--font-arabic);
}

.bullet-list-ar li {
  position: relative;
  padding-right: 24px;
  margin-bottom: 14px;
  font-size: 18px;
  line-height: 1.9;
  color: var(--text-primary);
}

.bullet-list-ar li::before {
  content: '—';
  position: absolute;
  right: 0;
  color: var(--accent);
  font-weight: 600;
}

.bullet-list-en {
  direction: ltr;
  font-family: var(--font-english);
}

.bullet-list-en li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.bullet-list-en li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ─── BEFORE / AFTER ────────────────────────────────────── */

.transformation {
  background: var(--bg-secondary);
}

.ba-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}

@media (max-width: 700px) {
  .ba-grid {
    grid-template-columns: 1fr;
  }
}

.ba-card {
  background: var(--bg-primary);
  border-radius: 10px;
  padding: 28px 24px;
  border-left: 3px solid var(--border);
}

.ba-card.after {
  border-left-color: var(--success);
  background: var(--success-bg);
}

.ba-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.ba-label-ar {
  font-family: var(--font-arabic);
  font-size: 18px;
  font-weight: 600;
  direction: rtl;
}

.ba-label-en {
  font-family: var(--font-english);
  font-size: 13px;
  color: var(--text-secondary);
}

.ba-card.after .ba-label-ar {
  color: var(--success);
}

/* ─── MODULES ───────────────────────────────────────────── */

.modules {
  background: var(--bg-primary);
}

.modules-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}

@media (max-width: 700px) {
  .modules-grid {
    grid-template-columns: 1fr;
  }
}

.module-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  background: var(--bg-primary);
  transition: box-shadow 0.15s;
}

.module-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.module-number {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  font-family: var(--font-english);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.module-title-ar {
  font-family: var(--font-arabic);
  font-size: 18px;
  font-weight: 600;
  direction: rtl;
  text-align: right;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1.5;
}

.module-title-en {
  font-family: var(--font-english);
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.module-videos {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.module-video-item {
  margin-bottom: 12px;
}

.video-title-ar {
  font-family: var(--font-arabic);
  font-size: 15px;
  direction: rtl;
  text-align: right;
  color: var(--text-primary);
  display: block;
  line-height: 1.6;
}

.video-title-en {
  font-family: var(--font-english);
  font-size: 12px;
  color: var(--text-secondary);
  display: block;
  margin-top: 2px;
}

.module-tag {
  display: inline-block;
  margin-top: 14px;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 11px;
  font-family: var(--font-arabic);
  direction: rtl;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 600;
}

.modules-note {
  text-align: center;
  margin-top: 32px;
  font-family: var(--font-english);
  font-size: 14px;
  color: var(--text-secondary);
  font-style: italic;
}

/* ─── INSTRUCTOR ────────────────────────────────────────── */

.instructor {
  background: var(--bg-secondary);
}

.instructor-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

@media (max-width: 700px) {
  .instructor-layout {
    flex-direction: column;
    align-items: center;
  }
}

.instructor-photo {
  flex-shrink: 0;
}

.instructor-photo img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}

.instructor-text {
  flex: 1;
}

.instructor-label {
  font-family: var(--font-arabic);
  font-size: 14px;
  color: var(--text-secondary);
  direction: rtl;
  text-align: right;
  margin-bottom: 6px;
}

.instructor-name-ar {
  font-family: var(--font-arabic);
  font-size: 24px;
  font-weight: 600;
  direction: rtl;
  text-align: right;
  margin-bottom: 4px;
}

.instructor-name-en {
  font-family: var(--font-english);
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.instructor-bio-ar {
  font-family: var(--font-arabic);
  font-size: 17px;
  line-height: 1.9;
  direction: rtl;
  text-align: right;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.instructor-bio-en {
  font-family: var(--font-english);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.credential-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.credential-tag {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 13px;
  font-family: var(--font-english);
  color: var(--text-secondary);
}

/* ─── FINAL CTA ─────────────────────────────────────────── */

.final-cta {
  background: var(--accent);
  padding: var(--section-pad) 0;
  color: #fff;
  text-align: center;
}

.final-cta .cta-heading-ar {
  font-family: var(--font-arabic);
  font-size: 30px;
  font-weight: 600;
  direction: rtl;
  line-height: 1.4;
  margin-bottom: 10px;
}

.final-cta .cta-sub-ar {
  font-family: var(--font-arabic);
  font-size: 18px;
  direction: rtl;
  line-height: 1.9;
  opacity: 0.9;
  margin-bottom: 6px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.final-cta .cta-heading-en {
  font-family: var(--font-english);
  font-size: 18px;
  font-weight: 500;
  opacity: 0.85;
  margin-bottom: 6px;
}

.final-cta .cta-sub-en {
  font-family: var(--font-english);
  font-size: 15px;
  opacity: 0.75;
  margin-bottom: 32px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.cta-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 32px;
  max-width: 560px;
  margin: 0 auto 36px;
  text-align: left;
}

@media (max-width: 600px) {
  .cta-features {
    grid-template-columns: 1fr;
  }
}

.cta-feature-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cta-feature-ar {
  font-family: var(--font-arabic);
  font-size: 16px;
  direction: rtl;
  text-align: right;
  opacity: 0.95;
}

.cta-feature-en {
  font-family: var(--font-english);
  font-size: 13px;
  opacity: 0.7;
  text-align: right;
}

.price-block {
  margin-bottom: 28px;
}

.price-current {
  font-family: var(--font-english);
  font-size: 40px;
  font-weight: 700;
  color: #fff;
}

.price-original {
  font-family: var(--font-english);
  font-size: 20px;
  text-decoration: line-through;
  opacity: 0.55;
  margin-left: 10px;
}

.price-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  color: #fff;
  font-size: 12px;
  font-family: var(--font-english);
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  margin-left: 10px;
  vertical-align: middle;
}

.btn-cta-white {
  display: inline-block;
  background: #fff;
  color: var(--accent);
  padding: 15px 36px;
  border-radius: 7px;
  text-decoration: none;
  font-family: var(--font-arabic);
  font-size: 18px;
  font-weight: 600;
  transition: opacity 0.15s;
  margin-bottom: 16px;
}

.btn-cta-white:hover {
  opacity: 0.92;
}

.cta-footnote-ar {
  font-family: var(--font-arabic);
  font-size: 14px;
  direction: rtl;
  opacity: 0.7;
}

.cta-footnote-en {
  font-family: var(--font-english);
  font-size: 13px;
  opacity: 0.6;
  margin-top: 4px;
}

/* ─── FOOTER ────────────────────────────────────────────── */

.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-left {
  font-family: var(--font-english);
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.footer-right {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}

.footer-nav-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-nav-row a {
  font-family: var(--font-arabic);
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-nav-row a:hover {
  color: var(--accent);
}

.footer-nav-row.en a {
  font-family: var(--font-english);
}

/* ─── ABOUT PAGE ────────────────────────────────────────── */

.page-hero {
  background: var(--bg-secondary);
  padding: 48px 0 40px;
}

.page-hero h1.ar {
  font-family: var(--font-arabic);
  font-size: 34px;
  font-weight: 600;
  direction: rtl;
  text-align: right;
  margin-bottom: 6px;
}

.page-hero h1.en {
  font-family: var(--font-english);
  font-size: 20px;
  font-weight: 500;
  color: var(--text-secondary);
}

.breadcrumb {
  font-family: var(--font-english);
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.breadcrumb a {
  color: var(--accent);
  text-decoration: none;
}

.about-photo img {
  width: 100%;
  max-width: 400px;
  border-radius: 12px;
  object-fit: cover;
}

/* ─── COURSE PAGE ───────────────────────────────────────── */

.course-overview {
  background: var(--bg-primary);
}

.overview-text-ar {
  font-family: var(--font-arabic);
  font-size: 18px;
  line-height: 1.95;
  direction: rtl;
  text-align: right;
  margin-bottom: 20px;
}

.overview-text-en {
  font-family: var(--font-english);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-secondary);
}

/* FAQ Accordion */
.faq-section {
  background: var(--bg-secondary);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: right;
  cursor: pointer;
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-q-text {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.faq-q-ar {
  font-family: var(--font-arabic);
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  direction: rtl;
}

.faq-q-en {
  font-family: var(--font-english);
  font-size: 13px;
  color: var(--text-secondary);
}

.faq-icon {
  font-size: 20px;
  color: var(--text-secondary);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 0 20px;
}

.faq-item.open .faq-answer {
  display: block;
}

.faq-a-ar {
  font-family: var(--font-arabic);
  font-size: 17px;
  line-height: 1.9;
  direction: rtl;
  text-align: right;
  margin-bottom: 10px;
}

.faq-a-en {
  font-family: var(--font-english);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* Guarantee */
.guarantee-section {
  background: var(--bg-primary);
}

.guarantee-box {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 36px 32px;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.guarantee-box .ar {
  font-family: var(--font-arabic);
  font-size: 17px;
  line-height: 1.9;
  direction: rtl;
  margin-bottom: 14px;
}

.guarantee-box .en {
  font-family: var(--font-english);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ─── FADE IN ANIMATION ─────────────────────────────────── */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in {
  opacity: 0;
  animation: fadeInUp 0.5s ease forwards;
}

.fade-in.visible {
  animation-play-state: running;
}

/* ─── RESPONSIVE TWEAKS ─────────────────────────────────── */

@media (max-width: 700px) {
  .hero-arabic h1 { font-size: 30px; }
  .hero-arabic .hero-sub { font-size: 17px; }
  .final-cta .cta-heading-ar { font-size: 24px; }
  .instructor-layout { text-align: center; }
  .instructor-label, .instructor-name-ar, .instructor-bio-ar { text-align: center; direction: rtl; }
  .credential-tags { justify-content: center; }
  .footer-right { align-items: flex-start; }
  .footer-nav-row { justify-content: flex-start; }
}
