/* ==========================================================================
   curriculum.css — page styles for /curriculum/ (EN, Elementor page 13) and
   its Arabic twin (post 764). Shared by curriculum.en.html + curriculum.ar.html.

   Structure (one block per Elementor container, top to bottom):
     1. .hero        full-width illustration pulled under the transparent header
                     (.hero__img, .hero__title = absolutely positioned calligraphy,
                     .hero__img--mobile = the mobile-only composite image)
     2. .overview    boxed 60vw column (.overview__inner):
                       .overview__intro / .overview__list   bullet list inside an h2
                       .feature (+ --text-first)             text|image rows
                         .feature__text  > .feature__title / .feature__desc
                         .feature__media > .feature__figure > .feature__img
                       .cloud-title (+ --flashcards)         heading on a cloud.svg
                       .overview__figure > .overview__books / __shelf / __table
                       .overview__spacer                      50px (2px on mobile)
     3. .cta         90vh school-background container (.cta__inner): .cta__title,
                     .cta__subtitle, .cta__divider > .cta__line, .cta__points,
                     .cta__action > .cta__btn (extends .btn from base.css)
     4. RTL          [dir="rtl"] overrides, kept at the end.
   Values are the Elementor source values (vw units on desktop, px overrides at
   ≤1024px / ≤767px) from post-13.css; every heading is an <h2> like the live DOM.
   Everything uses logical properties, so the AR page only needs the [dir="rtl"]
   block at the bottom for the places the live AR template really differs.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Hero (container deeea3f: margin-top -8vw, no padding, flex column)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-block-start: -8vw;
}
.hero__img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}
/* calligraphy (image widget cf6c6c6, absolute: left 30vw / top 14vh, img 45vw) */
.hero__title {
  position: absolute;
  z-index: 1;
  top: 14vh;
  inset-inline-start: 30vw;
  width: 45vw;
  max-width: 100%;
  height: auto;
}
/* Islamic page, mobile: the same illustration cropped to the Arabic page's mobile image shape (440:334, right-hand part
   of the scene) with the cloud title laid over it where that image has its own (left 20%, top 21%, 55% wide). */
.hero__mobile { position: relative; }
.hero__img--crop {
  aspect-ratio: 440 / 334;
  object-fit: cover;
  object-position: 100% 0;
}
.hero__title--mobile {
  inset: auto;                                   /* drop the desktop inset-inline-start (RTL would pin it to the right) */
  top: 21%;
  left: 20%;
  width: 55%;
}
@media (max-width: 1024px) {
  .hero { margin-block-start: -120px; }
}
@media (max-width: 767px) {
  .hero { margin-block-start: -95px; }
}

/* --------------------------------------------------------------------------
   2. Overview (boxed container 776b188: padding 2vw 5vw 5vw, content 60vw)
   -------------------------------------------------------------------------- */
.overview {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding-inline: 5vw;
}
.overview__inner {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: var(--widget-gap);
  width: 100%;
  max-width: min(100%, 60vw);
  margin-inline: auto;
  padding-block: 2vw 5vw;
}
@media (min-width: 768px) and (max-width: 1024px) {
  .overview { padding-inline: 2vw; }
  .overview__inner {
    max-width: min(100%, 95vw);
    padding-block: 6vw;
  }
}
@media (max-width: 767px) {
  .overview { padding-inline: 20px; }
  .overview__inner {
    flex-wrap: wrap;
    max-width: min(100%, 767px);
    padding-block: 50px;
  }
}

/* intro bullet list (heading widget 0fb7c20: h2 with the <li> inside it) */
.overview__intro {
  margin: 0;
  padding: 0;
  color: var(--color-primary);
  font-family: var(--font-tajawal);
  font-size: 1.2vw;
  font-weight: 500;
  line-height: 1.5vw;
}
.overview__list {
  margin: 0;
  padding: 0;
  list-style: disc outside;   /* markers hang in the container's inline padding, as on the live site */
}
.overview__list li {
  margin: 0;
  padding: 0;
}
@media (max-width: 1024px) {
  .overview__intro {
    font-size: 18px;
    line-height: 24px;
  }
}

/* text|image rows (containers 8ca2f82 / a9e66ab / 87bc05e / cbae0d1: flex row,
   padding-block 2vw; two child containers of width 100% shrinking to (100% - gap) / 2) */
.feature {
  position: relative;
  display: flex;
  flex-direction: row;
  gap: var(--widget-gap);
  width: 100%;
  padding-block: 2vw;
}
.feature__text,
.feature__media {
  position: relative;
  display: flex;
  flex: 0 1 100%;
  flex-direction: column;
  gap: var(--widget-gap);
  min-width: 0;
}
.feature__title,
.feature__desc {
  margin: 0;
  padding: 0;
  max-width: 100%;
  color: var(--color-primary);
  font-family: var(--font-tajawal);
  font-weight: 500;
}
.feature__title {
  font-size: 2vw;
  line-height: 2.5vw;
}
.feature__desc {
  font-size: 1.2vw;
  line-height: 1.4vw;
}
.feature__figure {
  margin: 0;
  max-width: 100%;
  text-align: center;
}
.feature__img {
  display: block;
  width: 20vw;
  max-width: 100%;
  height: auto;
  margin-inline: auto;
}
@media (max-width: 1024px) {
  .feature__title {
    font-size: 36px;
    line-height: 40px;
  }
  .feature__desc {
    font-size: 18px;
    line-height: 24px;
  }
  .feature__img { width: 100vw; }   /* capped by max-width: 100% → fills the column */
}
@media (max-width: 767px) {
  .feature { flex-wrap: wrap; }                       /* Elementor: --flex-wrap-mobile */
  .feature--text-first { flex-direction: column-reverse; }
  .feature__text,
  .feature__media { flex-wrap: wrap; }
  .feature__title,
  .feature__desc { text-align: center; }
  .feature__title {
    font-size: 22px;
    font-weight: bold;   /* per-heading custom CSS on the live page */
    line-height: 1.2em;
  }
  .feature__img {
    width: 70%;
    height: 200px;
    object-fit: contain;
    object-position: center center;
  }
}

/* cloud headings "Books" / "Flashcards" (heading widgets 2eabb39 / f0707fd:
   the widget container carries the cloud background, 5vw padding and a 20px
   bottom margin; the h2 itself is 4vw/700, line-height 1) */
.cloud-title {
  margin: 0 0 20px 0;
  padding: 5vw;
  max-width: 100%;
  background: url("../../img/cloud.svg") center center / contain no-repeat;
  color: var(--color-primary);
  font-family: var(--font-tajawal);
  font-size: 4vw;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}
.cloud-title--flashcards { padding-block-start: 7vw; }
@media (max-width: 767px) {
  .cloud-title,
  .cloud-title--flashcards {
    padding: 50px 50px 40px 50px;
    background-image: url("../../img/cloud-2.svg");
    font-size: 42px;
  }
}

/* bookshelf / books / flashcards table (image widgets 28a6232 / 92c9cc3 / f10caa6) */
.overview__figure {
  margin: 0;
  max-width: 100%;
  text-align: center;
}
.overview__shelf,
.overview__table,
.overview__books {
  display: block;
  max-width: 100%;
  height: auto;
  margin-inline: auto;
}
.overview__shelf { width: 60vw; }
.overview__table { width: 55vw; }
@media (max-width: 767px) {
  .overview__table { width: 100vw; }
}

/* spacer widget 61afb54 */
.overview__spacer {
  flex-shrink: 0;
  width: 100%;
  height: 50px;
}
@media (max-width: 767px) {
  .overview__spacer { height: 2px; }
}

/* --------------------------------------------------------------------------
   3. CTA "Join the Growing Network of Schools" (boxed container ad94547:
      min-height 90vh, content 55vw, justify center, gap 1vw, Frame-52.png cover)
   -------------------------------------------------------------------------- */
.cta {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 90vh;
  padding-inline: var(--con-pad);
  background: url("../../img/Frame-52.png") top right / cover no-repeat;
}
.cta__inner {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: center;
  gap: 1vw;
  width: 100%;
  max-width: min(100%, 55vw);
  margin-inline: auto;
  padding-block: var(--con-pad);
}
.cta__title,
.cta__subtitle,
.cta__points {
  margin: 0;
  padding: 0;
  max-width: 100%;
  color: #FFFFFF;
  font-family: var(--font-tajawal);
}
.cta__title {
  font-size: 3.2vw;
  font-weight: 700;
  line-height: 4vw;
}
.cta__subtitle {
  font-size: 2.2vw;
  font-weight: 400;
  line-height: 2.5vw;
}
.cta__points {
  font-size: 1.5vw;
  font-weight: 400;
  line-height: 2vw;
}
/* divider widget 942e155: 2px white line, 88% wide, 4px padding above/below */
.cta__divider {
  display: flex;
  max-width: 100%;
  padding-block: 4px;
}
.cta__line {
  display: flex;
  width: 88%;
  margin: 0;
  border-block-start: 2px solid #FFFFFF;
  direction: ltr;
}
/* button widget a54b552 (centred) */
.cta__action {
  max-width: 100%;
  text-align: center;
}
.cta__btn {
  padding: 25px 75px 25px 75px;
  border-radius: 12px;
  color: var(--color-primary);
  fill: var(--color-primary);
  font-size: 1.8vw;
  font-weight: 500;
  line-height: 2vw;
}
.cta__btn:hover,
.cta__btn:focus,
.cta__btn:visited {
  color: var(--color-primary);
}
@media (min-width: 768px) and (max-width: 1024px) {
  .cta { min-height: 440px; }
  .cta__inner { max-width: min(100%, 620px); }
}
@media (max-width: 1024px) {
  .cta__title {
    font-size: 28px;
    line-height: 1.4em;
  }
  .cta__subtitle {
    font-size: 23px;
    line-height: 1.4em;
  }
  .cta__points {
    font-size: 20px;
    line-height: 1.5em;
  }
  .cta__btn {
    padding: 20px 50px 20px 50px;
    font-size: 24px;
  }
}
@media (max-width: 767px) {
  .cta {
    min-height: 800px;
    padding-inline: 20px;
    background-image: url("../../img/Frame-52-1.png");
  }
  .cta__inner {
    flex-wrap: wrap;
    gap: 5vw;
    max-width: min(100%, 767px);
    padding-block: 20px;
  }
  .cta__line { width: 100%; }
  .cta__btn {
    padding: 20px 50px 10px 50px;
    line-height: 24px;
  }
}

/* --------------------------------------------------------------------------
   4. RTL (Arabic page, Elementor post 764) — only where post-764.css really
      differs from post-13.css (normalised diff, confirmed against the
      ref/styles/curriculum-ar--* computed dumps). Everything above uses logical
      properties, so under [dir="rtl"] the calligraphy's inset-inline-start
      becomes right:30vw (= Elementor's body.rtl rule) and all paddings/margins
      mirror on their own. The remaining post-764 extras (`margin:0` on five
      heading widget containers, `--flex-grow:0;--flex-shrink:1` on f0707fd)
      are the defaults and need no rule.
      The AR page may swap image FILES (hero / bookshelf / table artwork) in
      its HTML — that is markup, not CSS.
   -------------------------------------------------------------------------- */
/* intro list widget container (0fb7c20): padding 0 0 61px 0 on the AR page */
[dir="rtl"] .overview__intro { padding-block-end: 61px; }

/* Flashcards cloud (f0707fd): other artwork; the Books cloud is unchanged */
[dir="rtl"] .cloud-title--flashcards {
  background-image: url("../../img/cloud_black-copys-1.svg");
}
@media (max-width: 767px) {
  [dir="rtl"] .cloud-title--flashcards {
    padding: 78px 50px 50px 50px;
    background-image: url("../../img/cloud_black-copys-1-3.svg");
  }
}

/* --------------------------------------------------------------------------
   5. Rawdat Al-Iman — Islamic Education series page (/curriculum/islamic/).
      Title: the .hero above (same illustration as the Arabic page, the
      "روضة الإيمان" calligraphy in the same cloud — Rawdat.svg). Then a
      subtitle line, the alternating .feature rows
      (--portrait: the illustrations are 2:3 portraits) and a Books cloud with
      the Arabic page's bookshelf holding the two books (Level 2 left, Level 1
      right; the shelf images use the Arabic page's .overview__shelf/__books).
   -------------------------------------------------------------------------- */
.rawdat__subtitle {
  margin: 0;
  padding: 0 0 1vw 0;
  max-width: 100%;
  color: var(--color-primary);
  font-family: var(--font-tajawal);
  font-size: 1.6vw;
  font-weight: 500;
  line-height: 2vw;
  text-align: center;
}
.rawdat__name { white-space: nowrap; }             /* never break "Rawdat Al-Iman" at the hyphen */
.rawdat__sep { padding-inline: .3em; }
.feature--portrait { align-items: center; }      /* text sits beside the middle of the tall image */
.feature--portrait .feature__img {
  width: 17vw;                                     /* 17vw × 25.5vw on desktop */
  border-radius: 1vw;
}
@media (max-width: 1024px) {
  .rawdat__subtitle { font-size: 24px; line-height: 30px; padding-block-end: 10px; }
  .feature--portrait .feature__img { width: 60%; border-radius: 12px; }
}
@media (max-width: 767px) {
  .rawdat__subtitle { font-size: 20px; line-height: 26px; padding-block-end: 0; }
  .rawdat__sep { display: none; }                /* two lines instead of a wrapped "|" */
  .rawdat__name { display: block; }
  /* image-first on mobile on every row, exactly like the original rows (the DOM-text-first rows are
     already reversed by the .feature--text-first rule above) */
  .feature--portrait .feature__img { width: auto; height: 280px; border-radius: 12px; }
}
