/* =========================================================
    TASEESE — Arabic Educational Web Application
    Shared stylesheet (all pages)
   ========================================================= */

/* ---------- 1. Design Tokens ---------- */
:root {
    /* Brand */
    --brand: #2563eb;
    /* primary blue */
    --brand-600: #1d4ed8;
    --brand-700: #1e40af;
    --brand-soft: #dbeafe;
    --brand-tint: #eff6ff;

    /* Accents */
    --accent-blue: #4f8dff;
    --accent-purple: #6e5bff;
    --accent-green: #22c55e;
    --accent-yellow: #f5c518;
    --accent-blue-2: #282bcf1a;

    /* Semantic accents (Figma) */
    --accent-orange: #f97316;
    --accent-orange-tint: #fff1e6;
    --coral: #ef6c4d;
    --coral-tint: #fdece7;
    --green: #16a34a;
    --green-tint: #eafaf0;

    /* Surfaces */
    --bg: #fafafa;
    --bg-soft: #f7f8fb;
    --bg-card: #ffffff;
    --bg-lavender: #efeefb;
    --bg-cream: #fff7ee;
    --bg-gray: #f1f5f9;

    /* Text */
    --text: #1f2330;
    --text-muted: #6b7280;
    --text-soft: #8a8fa3;
    --text-gray: #94a3b8;
    --text-green: #1aa51a;

    /* Borders & shadows */
    --border: #eceef3;
    --border-soft: #f1f3f8;
    --shadow-sm: 0 1px 2px rgba(17, 22, 37, 0.04);
    --shadow-md: 0 8px 24px rgba(17, 22, 37, 0.06);
    --shadow-lg: 0 18px 40px rgba(17, 22, 37, 0.09);

    /* Radius */
    --r-sm: 10px;
    --r-md: 16px;
    --r-lg: 22px;
    --r-xl: 28px;
    --r-pill: 999px;

    /* Type */
    --font-ar:
        "Tajawal", "Cairo", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- 2. Base ---------- */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-ar);
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

a:hover {
    color: var(--brand);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.section {
    padding: 80px 0;
}

.section-tight {
    padding: 56px 0;
}

.text-brand {
    color: var(--brand) !important;
}

/* ---------- 3. Buttons ---------- */
.btn {
    font-family: var(--font-ar);
    font-weight: 700;
    border-radius: var(--r-pill);
    padding: 12px 28px;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        background-color 0.18s ease,
        color 0.18s ease;
    border: 1.5px solid transparent;
}

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

.btn-brand {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.28);
}

.btn-brand:hover {
    background: var(--brand-600);
    color: #fff;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.36);
    transform: translateY(-1px);
}

.btn-outline-brand {
    background: #fff;
    color: var(--brand);
    border-color: var(--brand);
}

.btn-outline-brand:hover {
    background: var(--brand-tint);
    color: var(--brand-700);
}

.btn-lg {
    padding: 14px 34px;
    font-size: 1.05rem;
}

.btn-student {
    color: #3b82f6;
    border-color: #3b82f6;
    background: transparent;
}

.btn-student:hover {
    color: #fff;
    background: #3b82f6;
    border-color: #3b82f6;
}

.btn-parent {
    color: var(--accent-orange);
    border-color: var(--accent-orange);
    background: transparent;
}

.btn-parent:hover {
    color: #fff;
    background: var(--accent-orange);
    border-color: var(--accent-orange);
}

/* ---------- 5. Hero (landing) ---------- */
.hero-landing {
    position: relative;
    padding: 40px 0 0;
    overflow: hidden;
}

.hero-landing .hero-title {
    font-weight: 900;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.hero-landing .hero-title .accent {
    color: var(--brand);
}

.hero-landing .hero-sub {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-top: 14px;
}

.hero-characters {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.character {
    width: 150px;
    flex-shrink: 0;
}

.character svg,
.character img {
    width: 100%;
    height: auto;
    display: block;
}

.speech-bubble {
    position: relative;
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 18px;
    padding: 12px 16px;
    font-size: 0.9rem;
    color: var(--text);
    box-shadow: var(--shadow-sm);
    max-width: 220px;
    margin-bottom: 8px;
}

.speech-bubble::after {
    content: "";
    position: absolute;
    bottom: -9px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-right: 1.5px solid var(--border);
    border-bottom: 1.5px solid var(--border);
    transform: rotate(45deg);
}

.speech-bubble.left::after {
    left: 24px;
}

.speech-bubble.right::after {
    right: 24px;
}

.boy-bubble {
    left: 60%;
}
@media (max-width: 768px) {
    .boy-bubble {
        left: 0;
    }
}
.girl-bubble {
    right: 55%;
}

.header__bg {
    background-image: url("../img/header/bg-colors.svg");
    z-index: 1;
    background-size: 100%;
    background-repeat: no-repeat;
}
.sub-nav-image {
    position: absolute;
    left: 0;
    top: 5%;
    z-index: 2;
    margin-left: 10px;
}

.left-image {
    position: absolute;
    left: 0;
    top: 5%;
    z-index: 2;
}

.right-image {
    position: absolute;
    right: 0;
    top: 60%;
    z-index: 1;
}

/* ---------- 7. Feature row (why) ---------- */
.section-title {
    font-weight: 900;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.section-sub {
    color: var(--text-muted);
    margin-top: 8px;
}

.feature-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    background: var(--bg-card);
    border-radius: var(--r-md);
    padding: 22px 24px;
    margin-bottom: 16px;
    transition:
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.feature-row:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.feature-row .ic {
    width: 44px;
    height: 44px;
    border-radius: var(--r-pill);
    background: var(--brand-tint);
    color: var(--brand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-row:nth-of-type(3n + 1) .ic {
    background: var(--accent-orange-tint);
    color: var(--accent-orange);
}

.feature-row:nth-of-type(3n + 2) .ic {
    background: var(--brand-tint);
    color: var(--brand);
}

.feature-row:nth-of-type(3n) .ic {
    background: var(--green-tint);
    color: var(--green);
}

.feature-row h5 {
    font-weight: 800;
    margin: 0 0 4px;
}

.feature-row p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.95rem;
}

/* App phone mockups holder */
.phone-mockups {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockups .phone {
    width: 200px;
    border-radius: 32px;
    background: #1a1a1a;
    padding: 10px;
    box-shadow: var(--shadow-lg);
}

.phone-mockups .phone img,
.phone-mockups .phone .screen {
    width: 100%;
    border-radius: 24px;
    display: block;
    background: #fff;
    aspect-ratio: 9/19;
    overflow: hidden;
    position: relative;
}

.phone-mockups .phone.tilt-right {
    transform: rotate(7deg) translateY(-10px);
    margin-inline-start: -50px;
}

/* ---------- 8. CTA banner ---------- */
.cta-banner {
    background: linear-gradient(135deg, #2563eb 0%, #60a5fa 100%);
    color: #fff;
    border-radius: 0;
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner h2 {
    font-weight: 900;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.cta-banner p {
    opacity: 0.95;
    margin-top: 6px;
}

.cta-banner .btn {
    background: #fff;
    color: var(--brand);
    margin-top: 20px;
}

.cta-banner .btn:hover {
    background: var(--brand-tint);
    color: var(--brand-700);
}

/* ---------- 11. Pages: Parent / Child / Challenges shared ---------- */
.page-hero {
    position: relative;
    padding: 40px 0 0;
}

/* Section heading with vertical brand bar */
.heading-bar {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    font-size: clamp(1.3rem, 2.4vw, 1.7rem);
}

.heading-bar::before {
    content: "";
    width: 4px;
    height: 24px;
    background: var(--brand);
    border-radius: 2px;
}

/* Tag pill */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-gray);
    color: var(--text-gray);
    border: 1px solid var(--border);
    border-radius: var(--r-pill);
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ---------- 12. Parent page specifics ---------- */
.intro-cards .icard {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 28px 22px;
    text-align: center;
    height: 100%;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.intro-cards .icard:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.intro-cards .icard .ic-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--brand-tint);
    color: var(--brand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.intro-cards .icard h5 {
    font-weight: 800;
    margin-bottom: 6px;
}

.intro-cards .icard p {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin: 0;
}

.testimonial-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 22px;
    height: 100%;
}

.testimonial-card .stars {
    color: var(--accent-yellow);
    margin-bottom: 8px;
    letter-spacing: 2px;
}

/* ---------- 13. Child page specifics ---------- */
.hero-night {
    background:
        radial-gradient(
            circle at 20% 30%,
            rgba(255, 255, 255, 0.08),
            transparent 40%
        ),
        radial-gradient(
            circle at 80% 70%,
            rgba(255, 255, 255, 0.06),
            transparent 40%
        ),
        linear-gradient(135deg, #1b2540 0%, #2a3360 50%, #3b2c5e 100%);
    border-radius: 0 0 30px 30px;
    padding: 32px 0 80px;
    position: relative;
    overflow: hidden;
    color: #fff;
}

/* Variant with full-bleed background image + subtle dark overlay */
.hero-night--bg {
    background: #0b1124;
    /* fallback while image loads */
    min-height: 720px;
    display: flex;
    flex-direction: column;
    padding: 0;
    border-radius: 0;
    /* Span the full available width without using 100vw (which includes scrollbar
     and causes a tiny horizontal scroll on some browsers) */
    width: 100%;
    position: relative;
    overflow: hidden;
}

.hero-night--bg .hero-bg {
    position: absolute;
    inset: 0;
    /* background-image: url("../assets/hero-child.png"); */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

@media (min-width: 992px) {
    /* On desktop the image fills the entire hero — characters on visual left,
     dark sky on visual right where the text overlay sits */
    .hero-night--bg .hero-bg {
        background-size: cover;
        background-position: left center;
    }
}

.hero-night--bg .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        270deg,
        rgba(8, 12, 30, 0.78) 0%,
        rgba(8, 12, 30, 0.55) 35%,
        rgba(8, 12, 30, 0.3) 60%,
        rgba(8, 12, 30, 0.2) 100%
    );
    z-index: 2;
}

.hero-night--bg .hero-content {
    margin-top: auto;
    margin-bottom: auto;
    padding: 60px 0 100px;
}

/* Thought bubble overlays (positioned over the image) */
.thought-bubble {
    position: absolute;
    z-index: 3;
    font-family: var(--font-ar);
    font-weight: 700;
    font-size: 0.82rem;
    color: #1f2330;
    pointer-events: none;
}

/* Left bubble (visual = boy on the left, with tail pointing right toward boy) */
.bubble-left {
    top: 2%;
    inset-inline-end: 53%;
}

/* Right bubble (visual = girl on the right rocket — but image is left-anchored so this still sits in image area) */
.bubble-right {
    top: 19%;
    inset-inline-end: 7%;
}

@media (max-width: 991px) {
    .thought-bubble {
        display: none;
    }
}

.hero-night-title {
    font-weight: 900;
    font-size: clamp(2.4rem, 5.5vw, 4rem);
    line-height: 1.15;
    color: #fff;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
}

.hero-night-sub {
    color: #e5e9f4;
    font-size: 1rem;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6);
    max-width: 380px;
}

.hero-night .btn-outline-light-alt {
    color: #fff;
    border: 2.5px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--r-pill);
    padding: 12px 28px;
    font-weight: 700;
}

.hero-night .btn-outline-light-alt:hover {
    background: #fff;
    color: var(--brand);
}

/* Hero stats row with avatar stack */
.hero-stats {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: var(--r-pill);
    padding: 8px 0 8px 8px;
    flex-wrap: wrap;
}

.hero-stats-text {
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .hero-night--bg {
        min-height: 720px;
    }

    .hero-night--bg .hero-content {
        padding: 40px 20px 80px;
    }
}

/* ---------- Vertical journey timeline (Figma-faithful) ---------- */

/* Horizontal scroll progress bar — sticky at the top of the journey section,
   fills from right to left (RTL) as the user scrolls through the journey */
.scroll-progress {
    position: sticky;
    top: 16px;
    z-index: 100;
    width: calc(100% - 48px);
    max-width: 1320px;
    height: 24px;
    background: #eceef3;
    border-radius: var(--r-pill);
    margin: 24px auto 30px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(17, 22, 37, 0.06);
}

.scroll-progress__fill {
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    height: 100%;
    width: var(--progress, 0%);
    background: linear-gradient(90deg, var(--brand) 0%, #60a5fa 100%);
    border-radius: var(--r-pill);
    transition: width 0.12s ease-out;
    box-shadow: 0 0 12px rgba(37, 99, 235, 0.5);
}

@media (max-width: 768px) {
    .scroll-progress {
        width: calc(100% - 24px);
        height: 10px;
        top: 8px;
        margin: 16px auto 24px;
    }
}

.journey {
    position: relative;
    padding: 40px 0;
}

/* Dashed center track */
.journey::before {
    content: "";
    position: absolute;
    top: 40px;
    bottom: 40px;
    left: 50%;
    width: 0;
    border-left: 3px dashed #e5e7eb;
    transform: translateX(-50%);
    z-index: 0;
}

@media (max-width: 768px) {
    .journey::before {
        left: 30px;
    }
}

/* ---------- Quran CTA section (Figma-accurate) ---------- */
.quran-section {
    padding: 30px 0 0;
    position: relative;
}

.quran-cta {
    /* Diagonal blue (left visual) → green (right visual) gradient as in Figma */
    background: linear-gradient(120deg, #2563eb 0%, #10b981 100%);
    border-radius: 28px;
    padding: 60px 56px 70px;
    position: relative;
    overflow: hidden;
    min-height: 480px;
    color: #fff;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
}

/* Decorative corner circles */
.quran-deco-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    pointer-events: none;
}

.quran-deco-tl {
    width: 220px;
    height: 220px;
    top: -80px;
    inset-inline-end: -60px;
}

.quran-deco-br {
    width: 180px;
    height: 180px;
    bottom: -60px;
    inset-inline-start: -40px;
}

/* ---------- Phones (visual LEFT in RTL = LTR `left` side of grid: but order-2 here) ---------- */
.quran-phones {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 420px;
    order: 2;
    /* in RTL grid this places phones to the visual LEFT */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---------- Content (right visual side in RTL) ---------- */
.quran-content {
    position: relative;
    z-index: 2;
    order: 1;
}

.quran-heading {
    font-weight: 900;
    font-size: clamp(1.8rem, 3.6vw, 2.8rem);
    line-height: 1.4;
    margin-bottom: 30px;
    color: #fff;
}

/* Translucent dark pill buttons */
.quran-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 36px;
    /* justify-content: flex-end; */
}

.qpill {
    background: rgba(0, 0, 0, 0.28);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--r-pill);
    padding: 12px 22px;
    font-weight: 600;
    font-size: 0.92rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: background 0.2s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.qpill:hover {
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
}

.qpill i {
    font-size: 1rem;
    flex-shrink: 0;
}

.qpill .qpill-text {
    white-space: nowrap;
}

/* نواف with speech bubble */
.quran-nawaf-wrap {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.nawaf-bubble {
    background: #fff;
    color: #1f2330;
    font-weight: 700;
    font-size: 0.92rem;
    padding: 12px 22px;
    border-radius: 28px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
    position: relative;
    margin-bottom: 24px;
}

.nawaf-bubble::after {
    content: "";
    position: absolute;
    bottom: 14px;
    inset-inline-start: -10px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 8px 12px 8px 0;
    border-color: transparent #fff transparent transparent;
    filter: drop-shadow(-2px 2px 2px rgba(0, 0, 0, 0.1));
    transform: rotate(180deg);
}

.quran-nawaf {
    width: 110px;
    height: auto;
    flex-shrink: 0;
}

/* Orange gradient band underneath the card */
@media (max-width: 991px) {
    .quran-cta {
        grid-template-columns: 1fr;
        padding: 40px 28px;
        gap: 30px;
    }

    .quran-content {
        text-align: center;
        order: 1;
    }

    .quran-pills {
        justify-content: center;
    }

    .quran-nawaf-wrap {
        justify-content: center;
    }

    .quran-phones {
        order: 2;
        min-height: 460px;
    }
}

@media (max-width: 575px) {
    .quran-heading {
        font-size: 1.5rem;
        line-height: 1.4;
    }

    .quran-phones {
        min-height: 380px;
    }

    .quran-nawaf {
        width: 80px;
    }

    .nawaf-bubble {
        font-size: 0.8rem;
        padding: 10px 16px;
    }
}

/* ---------- 14. Challenges page specifics ---------- */
.challenges-hero {
    padding: 60px 0 30px;
    text-align: center;
}

.challenges-hero h1 {
    font-weight: 900;
    font-size: clamp(2rem, 5vw, 3rem);
}

.challenges-hero h1 .accent {
    color: var(--brand);
}

.challenges-hero p {
    color: var(--text-muted);
    max-width: 540px;
    margin: 14px auto 24px;
}

.tab-toggle {
    display: inline-flex;
    background: #fff;
    border-radius: var(--r-pill);
    padding: 6px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    gap: 4px;
}

.tab-toggle .tt-btn {
    background: transparent;
    border: none;
    border-radius: var(--r-pill);
    padding: 10px 22px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.tab-toggle .tt-btn.active {
    background: var(--brand);
    color: #fff;
}

.tab-toggle .tt-btn:not(.active):hover {
    color: var(--brand);
}

/* Intro card with avatar */
.intro-card {
    background: var(--brand-tint);
    border-radius: var(--r-xl);
    padding: 28px 28px 22px;
    display: flex;
    align-items: center;
    gap: 24px;
    position: relative;
    margin-top: -10px;
}

.intro-card .ic-avatar {
    position: relative;
}

.intro-card .ic-avatar img {
    border: 3px solid var(--accent-orange);
    border-radius: var(--r-pill);
}

.intro-card .ic-avatar .ic-tag {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-25%);
    background: var(--accent-orange);
    color: #fff;
    border-radius: var(--r-pill);
    padding: 3px 10px;
    font-size: 0.7rem;
    font-weight: 700;
    white-space: nowrap;
}

.intro-card h3 {
    font-weight: 900;
    margin-bottom: 4px;
}

.intro-card .sub-orange {
    color: var(--brand);
    font-weight: 700;
    margin-bottom: 8px;
}

.intro-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
    max-width: 560px;
}

.intro-card .tags {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.intro-card .tag-chip {
    background: var(--brand-tint);
    border: 1px solid var(--brand-soft);
    border-radius: var(--r-pill);
    padding: 6px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--brand);
}

@media (max-width: 768px) {
    .intro-card {
        flex-direction: column;
        text-align: center;
    }
}

/* Challenge cards grid */
.challenge-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 22px;
    height: 100%;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.challenge-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.challenge-card .cc-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--coral-tint);
    color: var(--coral);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    float: inline-end;
    margin-bottom: 16px;
}

.challenge-card .cc-icon-blue {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--coral-tint);
    color: var(--coral);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    float: inline-end;
    margin-bottom: 16px;
}

.challenge-card .cc-label {
    color: var(--coral);
    font-weight: 800;
    font-size: 1rem;
    margin-bottom: 8px;
}

.challenge-card .cc-text {
    color: var(--text);
    font-size: 0.95rem;
    margin: 6px 0 16px;
}

.challenge-card .cc-solution {
    background: var(--green-tint);
    border-radius: var(--r-md);
    padding: 14px 16px;
}

.challenge-card:not(.variant-child) .cc-solution {
    border-right: 5px solid var(--green);
}

.challenge-card .cc-solution .cc-label {
    color: var(--green);
}

.challenge-card .cc-solution p {
    color: var(--text);
    font-size: 0.9rem;
    margin: 6px 0 0;
}

/* For child tab variant the solution is simpler (no purple bg) */
.challenge-card.variant-child .cc-solution {
    background: transparent;
    padding: 0;
    padding-top: 6px;
    border-top: 1px solid var(--border-soft);
    margin-top: 4px;
}

.challenge-card.variant-child .cc-solution .cc-label {
    color: var(--green);
}

/* ---------- 15. Download page ---------- */
.download-hero {
    padding: 40px 0 20px;
    position: relative;
    overflow: hidden;
}

.download-hero .future-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--brand-tint);
    color: var(--brand);
    font-weight: 700;
    border-radius: var(--r-pill);
    padding: 8px 16px;
    font-size: 0.9rem;
}

.download-hero h1 {
    font-weight: 900;
    font-size: clamp(2.4rem, 6vw, 4rem);
    line-height: 1.15;
    margin-top: 20px;
}

.download-hero h1 .accent {
    color: var(--brand);
}

.download-hero .lead {
    color: var(--text-muted);
    max-width: 480px;
}

.download-hero .rating-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.download-hero .rating-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--brand-tint);
    color: var(--brand);
    border-radius: var(--r-pill);
    padding: 4px 10px;
    font-weight: 800;
}

/* ---------- 16. Utility ---------- */
.bg-soft {
    background: var(--bg-soft);
}

.border-brand {
    --bs-border-opacity: 1;
    border-color: var(--brand) !important;
}

/* ---------- 17. Responsive tweaks ---------- */
@media (max-width: 991px) {
    .section {
        padding: 60px 0;
    }

    .hero-landing .hero-title {
        font-size: 2.2rem;
    }

    .phone-mockups .phone {
        width: 160px;
    }

    .phone-mockups .phone.tilt-right {
        margin-inline-start: -30px;
    }
}

@media (max-width: 575px) {
    .section {
        padding: 48px 0;
    }

    .feature-row {
        padding: 18px;
    }

    .character {
        width: 110px;
    }

    .speech-bubble {
        max-width: 180px;
        font-size: 0.82rem;
    }
}

/* ---------- parent view ---------- */

.solutions .steps:nth-of-type(1) .number {
    color: #53adf4;
    font-family: Amman_Sans_Pro_bold, sans-serif;
}
.solutions .steps:nth-of-type(2) .number {
    color: #2563eb;
    font-family: Amman_Sans_Pro_bold, sans-serif;
}
.solutions .steps:nth-of-type(3) .number {
    color: #f6c649;
    font-family: Amman_Sans_Pro_bold, sans-serif;
}
.solutions .steps:nth-of-type(4) .number {
    color: #ff7a9b;
    font-family: Amman_Sans_Pro_bold, sans-serif;
}
.solutions .steps:nth-of-type(5) .number {
    color: #0aad0a;
    font-family: Amman_Sans_Pro_bold, sans-serif;
}

.solutions .steps .number {
    font-family: Tajawal, sans-serif;
    font-size: 90px;
}

.solutions .circle-orange {
    width: 56px;
    height: 56px;
    background: var(--brand-soft);
    color: var(--brand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.solutions .circle-blue {
    width: 56px;
    height: 56px;
    background: #282bcf1a;
    color: blue;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.solutions .circle-green {
    width: 56px;
    height: 56px;
    background: #22c55e1a;
    color: green;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.feature-card {
    border-radius: 28px;
    padding: 32px 24px 24px;
    min-height: 620px;
    overflow: hidden;
}

.feature-card-blue {
    background: #dff0fb;
}

.feature-card-purple {
    background: #eeebfb;
}

.feature-card-peach {
    background: #f8eee8;
}

.feature-card-green {
    background: #e9f7ec;
}

.feature-icon {
    width: 64px;
    height: 64px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 18px;
    background: rgba(255, 255, 255, 0.7);

    font-size: 1.8rem;
}

.feature-card-blue .feature-icon {
    color: #42a5f5;
}

.feature-card-purple .feature-icon {
    color: #8b5cf6;
}

.feature-card-peach .feature-icon {
    color: #2563eb;
}

.feature-card-green .feature-icon {
    color: #22c55e;
}

.feature-card h4 {
    color: #1f2937;
    font-size: 1.9rem;
}

.feature-card p {
    line-height: 1.9;
    font-size: 1rem;
}

.feature-phone {
    width: 210px;
    max-width: 100%;

    object-fit: contain;

    margin-left: auto;
    margin-right: auto;
}

.create-test {
    background: #fff;
}
.orange {
    width: 56px;
    height: 56px;
    background: var(--brand-soft);
    color: var(--brand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.blue {
    width: 56px;
    height: 56px;
    background: #282bcf1a;
    color: blue;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.green {
    width: 56px;
    height: 56px;
    background: #22c55e1a;
    color: green;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.bg-characters {
    background: #f8f6f6;
}

.orange-icon-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--brand-tint);
    color: var(--brand);
    font-weight: 700;
    border-radius: var(--r-pill);
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* ===========================
    ARTICLES SECTION
=========================== */

.article-card {
    height: 100%;
    border-radius: 24px;
    padding: 1rem;
}

.article-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 24px;
    display: block;
}

.article-content {
    padding-top: 1.25rem;
}

.article-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.article-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 2;
    margin-bottom: 1rem;

    /* Truncate */
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;

    color: var(--text);
    font-weight: 700;
    text-decoration: none;

    transition: 0.2s ease;
}

.article-link:hover {
    color: var(--brand);
}

.article-link i {
    transition: 0.2s ease;
}

.article-link:hover i {
    transform: translateX(-4px);
}

/* ========= new learning steps style ============ */

.learning-section {
    background: #ffffff;
    max-width: 900px;
    margin: 20px auto;
    padding: 70px 20px 60px;
    position: relative;
    border-radius: 12px;
}

.main-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 50px;
    position: relative;
}

.main-title span.green {
    color: #2ecc71;
}

.main-title span.red {
    color: #e74c3c;
}

.main-title span.blue {
    color: #3498db;
}

/* Timeline container */
.timeline-container {
    position: relative;
    padding: 20px 0;
}

.step-badge {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.step-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 16px;
    margin-top: 16px;
}

/* Badge colors */
.badge-orange {
    background: var(--brand);
}
.badge-green {
    background: var(--green);
}
.badge-purple {
    background: var(--brand);
}
.badge-blue {
    background: var(--brand);
}
.badge-darkyellow {
    background: #f5c518;
}

/* Number circle colors */
.num-orange {
    background: var(--brand);
}
.num-green {
    background: var(--green);
}
.num-purple {
    background: var(--brand);
}
.num-blue {
    background: var(--brand);
}
.num-darkyellow {
    background: #f5c518;
}

/* icon colors */
.icon-orange {
    color: var(--brand);
}
.icon-blue {
    color: var(--brand);
}
.icon-purple {
    color: var(--brand);
}
/* Character images */
.character-img {
    max-height: 200px;
    width: auto;
}

.phone-img {
    max-height: 220px;
    width: auto;
}

.visual-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .visual-group {
        justify-content: center;
    }

    .main-title {
        font-size: 1.4rem;
    }

    .step-title {
        font-size: 1.2rem;
    }

    .character-img {
        max-height: 140px;
    }
}

.step-row-inner {
    display: flex;
    gap: 25px;
    position: relative;
    margin-bottom: 30px;
    align-items: center;
}

.step-text-block {
    flex: 1;
    min-width: 200px;
}

.step-visual-block {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-around;
    min-width: 200px;
}

@media (max-width: 991px) {
    .step-row-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 35px;
    }

    .step-visual-block {
        justify-content: space-between;
    }

    .step-number-badge {
        order: -1;
    }
}

.step-item {
    position: relative;
    z-index: 2;
    margin-bottom: 65px;
}

.step-item:last-child {
    margin-bottom: 0;
}

.info-rectangle {
    background: #ffffff;
    border-radius: 12px;
    padding: 16px;
    margin-top: 14px;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.08);
    border-top: 4px solid;
}

.info-rectangle-green {
    border-top-color: var(--green);
}

.info-rect-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
}

.info-rect-item:last-child {
    border-bottom: none;
}

.info-rect-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--green-tint);
    color: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.info-rect-content {
    flex: 1;
}

.info-rect-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 3px 0;
}

.info-rect-sub {
    font-size: 0.75rem;
    color: #888;
    margin: 0;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 20px;
    padding: 10px 14px;
    margin-top: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.info-card-text {
    font-size: 0.85rem;
    color: #444;
    margin: 0;
    font-weight: 500;
}

.skill-progress {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 20px;
    padding: 14px 16px;
    margin-top: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.test-types-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.test-types-grid .info-card {
    flex: 1 1 calc(50% - 5px);
    min-width: 180px;
    margin-top: 0;
    align-items: flex-start;
}

.skill-progress__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.skill-progress__label {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1a1a2e;
}

.skill-progress__value {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--brand);
}

.skill-progress__track {
    height: 8px;
    border-radius: var(--r-pill);
    background: var(--brand-tint);
    overflow: hidden;
}

.skill-progress__fill {
    display: block;
    height: 100%;
    border-radius: var(--r-pill);
    background: var(--brand);
}

.character-with-bubble {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.message-bubble {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 18px;
    padding: 6px 14px;
    font-size: 0.8rem;
    color: #333;
    font-weight: bold;
    white-space: nowrap;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.08);
    z-index: 10;
}

/* Speech bubble arrow */
.message-bubble::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #ffffff;
}

.message-bubble::before {
    content: "";
    position: absolute;
    bottom: -11px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-top: 9px solid #e0e0e0;
}

.step-number-badge {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #ffffff;
    padding: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    position: relative;
    z-index: 5;
}

.badge-inner {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: #fff;
}

.step-number-centered {
    align-self: center;
}

/* ---------- Journey level colours (per Figma) ---------- */
:root {
    --lvl-navy: #1e3a8a;
    --lvl-green: #10b981;
    --lvl-orange: #f97316;
}

.step-item[data-step="1"] .step-badge,
.step-item[data-step="1"] .badge-inner,
.step-item[data-step="4"] .step-badge,
.step-item[data-step="4"] .badge-inner,
.step-item[data-step="6"] .step-badge,
.step-item[data-step="6"] .badge-inner {
    background: var(--lvl-navy);
}

.step-item[data-step="2"] .step-badge,
.step-item[data-step="2"] .badge-inner,
.step-item[data-step="8"] .step-badge,
.step-item[data-step="8"] .badge-inner {
    background: var(--lvl-green);
}

.step-item[data-step="3"] .step-badge,
.step-item[data-step="3"] .badge-inner,
.step-item[data-step="5"] .step-badge,
.step-item[data-step="5"] .badge-inner,
.step-item[data-step="7"] .step-badge,
.step-item[data-step="7"] .badge-inner {
    background: var(--lvl-orange);
}

/* info-card icons follow the level colour */
.step-item[data-step="1"] .info-card > span,
.step-item[data-step="4"] .info-card > span,
.step-item[data-step="6"] .info-card > span {
    color: var(--lvl-navy);
}
.step-item[data-step="3"] .info-card > span,
.step-item[data-step="5"] .info-card > span,
.step-item[data-step="7"] .info-card > span {
    color: var(--lvl-orange);
}
.step-item[data-step="2"] .info-card > span,
.step-item[data-step="8"] .info-card > span {
    color: var(--lvl-green);
}

/* step 2 — green rectangle + check icons */
.step-item[data-step="2"] .info-rectangle {
    border-top-color: var(--lvl-green);
}
.step-item[data-step="2"] .info-rect-icon {
    background: #e6f7f1;
    color: var(--lvl-green);
}

/* step 3 — skill progress bar (orange) */
.step-item[data-step="3"] .skill-progress__fill {
    background: var(--lvl-orange);
}
.step-item[data-step="3"] .skill-progress__value {
    color: var(--lvl-orange);
}
.step-item[data-step="3"] .skill-progress__track {
    background: #fff1e6;
}

/* Badge colors (applied to inner circle) */
.num-orange .badge-inner {
    background: var(--brand);
}

.num-green .badge-inner {
    background: var(--green);
}

.num-purple .badge-inner {
    background: var(--brand);
}

.num-blue .badge-inner {
    background: var(--brand);
}

.num-darkyellow .badge-inner {
    background: #f5c518;
}

.tilt-right {
    transform: rotate(20deg) translateY(10px);
    margin-inline-start: -200px;
    /* height: 300px; */
    position: absolute;
}

/* new educational challenges */
.intro-card-main-sec {
    background-color: #fff;
    border-radius: 28px;
    padding: 24px 24px 16px;
    margin-bottom: 16px;
}

.screen-mockups {
    position: relative;
    width: 100%;
    max-width: 450px;
    height: 550px;
    margin: 0 auto;
}

.screen-mockups .single-mockup {
    position: absolute;
    width: 270px;
}

.screen-mockups .single-mockup img {
    width: 100%;
    height: auto;
    display: block;
}

.screen-mockups .single-mockup.is-front {
    z-index: 10;
    left: 10%;
    top: 0;
    filter: drop-shadow(0 25px 25px rgba(0, 0, 0, 0.15));
}

.screen-mockups .single-mockup.is-back {
    z-index: 5;
    right: 5%;
    top: 15px;
    transform: scale(0.85) rotate(12deg);
}

.screen-mockups .single-mockup-solo {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.screen-mockups .single-mockup-solo img {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 25px 25px rgba(0, 0, 0, 0.12));
}
.text-green {
    color: var(--accent-green);
}
