
/* =========================================
   مشكلتي تساوي فلوس
   Main Stylesheet
   Luxury Digital Entrepreneurship Identity
   Royal Navy - Champagne Gold - Emerald - Bronze
========================================= */

/* =========================================
   1. الخطوط والمتغيرات العامة
========================================= */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&display=swap');

:root {
    --navy: #102B50;
    --navy-light: #193D68;
    --navy-dark: #09182B;

    --gold: #FFC629;
    --gold-dark: #D99A00;

    --background: #09182B;
    --surface: #10243D;
    --surface-light: #193451;
    --surface-card: #1B3651;

    --blue: #69A9E2;
    --blue-light: #345B7B;

    --green: #0F8B6D;
    --green-light: #19A982;
    --green-dark: #08664F;

    --bronze: #946B45;
    --bronze-light: #B58A5B;

    --text: #F4F7FC;
    --muted: #B8CBE0;

    --border: #34516D;

    --success: #64D69A;
    --danger: #FF8585;

    --shadow:
        0 12px 32px rgba(0, 0, 0, 0.25);

    --shadow-hover:
        0 18px 42px rgba(0, 0, 0, 0.38);

    --radius: 18px;
    --transition: 0.25s ease;
}


/* =========================================
   2. Reset
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 95px;
    overflow-x: clip;
}

body {
    font-family: "Cairo", Tahoma, Arial, sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.8;
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 100vh;
    padding-top: 82px;

    -webkit-user-select: none;
    user-select: none;
}

input,
textarea,
[contenteditable="true"] {
    -webkit-user-select: text;
    user-select: text;
}

body.modal-open {
    overflow: hidden;
}

button,
input,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

section {
    scroll-margin-top: 90px;
}

.container {
    width: min(1150px, 90%);
    margin-inline: auto;
}

::selection {
    background: var(--gold);
    color: var(--navy-dark);
}


/* =========================================
   3. Header
========================================= */

.header {
    position: fixed;
    top: 0;
    inset-inline: 0;
    z-index: 1000;
    width: 100%;

    background: rgba(9, 24, 43, 0.96);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    border-bottom: 1px solid rgba(255, 198, 41, 0.25);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
}

.nav-container {
    min-height: 82px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 25px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.brand-icon {
    width: 48px;
    height: 48px;

    display: grid;
    place-items: center;

    background: linear-gradient(
        145deg,
        #193D68,
        #102B50
    );

    color: var(--gold);

    font-size: 25px;
    font-weight: 900;

    border: 1px solid rgba(255, 198, 41, 0.45);
    border-radius: 14px;

    box-shadow:
        0 5px 0 #09182B,
        0 9px 18px rgba(0, 0, 0, 0.35);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-text strong {
    color: var(--gold);
    font-size: 17px;
    line-height: 1.5;
    font-weight: 900;
}

.brand-text small {
    color: #B8CBE0;
    font-size: 12px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 17px;
}

.nav a {
    position: relative;

    color: #F4F7FC;
    font-size: 14px;
    font-weight: 700;

    transition: var(--transition);
    white-space: nowrap;
}

.nav a:hover {
    color: var(--gold);
}

.nav a.active:not(.nav-button) {
    color: var(--gold);

    text-shadow:
        0 0 7px rgba(255, 198, 41, 0.45),
        0 0 16px rgba(255, 198, 41, 0.2);

    background: rgba(255, 198, 41, 0.08);

    border-radius: 7px;

    box-shadow:
        0 0 12px rgba(255, 198, 41, 0.08);
}

.nav a.active:not(.nav-button)::after {
    content: "";

    position: absolute;

    bottom: -7px;
    inset-inline: 0;

    height: 2px;

    border-radius: 5px;

    background: var(--gold);

    box-shadow:
        0 0 7px rgba(255, 198, 41, 0.7),
        0 0 14px rgba(255, 198, 41, 0.35);
}

.nav a.active:not(.nav-button):hover {
    color: #FFE89A;
    background: rgba(255, 198, 41, 0.13);
}

.nav .nav-button {
    padding: 10px 17px;
    border-radius: 10px;

    background: var(--gold);
    color: var(--navy-dark);

    box-shadow: 0 4px 12px rgba(255, 198, 41, 0.2);
}

.nav .nav-button.active {
    background: linear-gradient(
        135deg,
        #FFE17E,
        #FFC629
    );

    color: var(--navy-dark);

    box-shadow:
        0 0 0 2px rgba(255, 198, 41, 0.25),
        0 0 18px rgba(255, 198, 41, 0.35);
}

.nav .nav-button:hover {
    background: #FFE17E;
    color: var(--navy-dark);
    transform: translateY(-2px);
}

.language-toggle {
    padding: 8px 13px;

    border: 1px solid rgba(255, 198, 41, 0.5);
    border-radius: 9px;

    background: rgba(255, 198, 41, 0.08);
    color: var(--gold);

    font-size: 14px;
    font-weight: 800;

    transition: var(--transition);
}

.language-toggle:hover {
    background: var(--gold);
    color: var(--navy-dark);
}

.menu-toggle {
    display: none;

    width: 43px;
    height: 43px;

    border: 1px solid rgba(255, 198, 41, 0.35);
    border-radius: 10px;

    background: var(--navy);
    color: var(--gold);

    font-size: 23px;
}


/* =========================================
   4. Hero - Enhanced 3D Design
   محفوظ كما أرسله المستخدم دون تعديل
========================================= */

.hero {
    position: relative;

    min-height: 620px;

    display: flex;
    align-items: center;

    overflow: hidden;

    isolation: isolate;

    background-color: var(--navy-dark);

    background-image:
        linear-gradient(
            90deg,
            rgba(9, 24, 43, 0.82),
            rgba(9, 24, 43, 0.60)
        ),
        linear-gradient(
            0deg,
            rgba(9, 24, 43, 0.32),
            rgba(9, 24, 43, 0.12)
        ),
        url("images/hero.png");

    background-size:
        100% 100%,
        100% 100%,
        100% 100%;

    background-position:
        center,
        center,
        center;

    background-repeat:
        no-repeat,
        no-repeat,
        no-repeat;
}

.hero::before {
    content: "";

    position: absolute;

    width: 420px;
    height: 420px;

    top: -180px;
    right: -100px;

    border: 2px solid rgba(255, 198, 41, 0.16);
    border-radius: 50%;

    background: radial-gradient(
        circle,
        rgba(255, 198, 41, 0.08),
        rgba(15, 139, 109, 0.035) 45%,
        transparent 70%
    );

    box-shadow:
        0 0 25px rgba(255, 198, 41, 0.10),
        0 0 0 35px rgba(255, 198, 41, 0.035),
        0 0 0 75px rgba(255, 198, 41, 0.025),
        0 0 0 120px rgba(15, 139, 109, 0.025);

    pointer-events: none;

    animation: heroHalo 8s ease-in-out infinite;
}

.hero::after {
    content: "↑     ↗     ↑";

    position: absolute;

    top: 15%;
    right: 8%;

    z-index: 1;

    color: #FFE69A;

    font-size: clamp(30px, 4vw, 48px);
    font-weight: 900;

    letter-spacing: 8px;

    opacity: 0.75;

    text-shadow:
        0 0 8px rgba(255, 230, 154, 0.9),
        0 0 18px rgba(255, 198, 41, 0.75),
        0 0 35px rgba(255, 198, 41, 0.45),
        0 0 55px rgba(15, 139, 109, 0.25);

    pointer-events: none;

    animation: risingArrows 5s ease-in-out infinite;
}

.hero-content {
    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns: 1fr;

    align-items: center;

    padding-block: 90px;
}

.hero-text {
    position: relative;

    max-width: 760px;
    color: #F4F7FC;

    z-index: 2;
}

.hero-text::before {
    content: "";

    position: absolute;

    top: -45px;
    right: -35px;

    width: 85%;
    height: calc(100% + 90px);

    z-index: -1;

    background: radial-gradient(
        ellipse at center,
        rgba(16, 43, 80, 0.38),
        rgba(15, 139, 109, 0.07) 48%,
        transparent 75%
    );

    filter: blur(22px);

    pointer-events: none;
}

.hero-text h1 {
    position: relative;

    font-size: clamp(42px, 6vw, 76px);

    font-weight: 900;
    line-height: 1.35;

    margin-bottom: 18px;

    letter-spacing: -1px;

    color: #FFFFFF;

    text-shadow:
        0 2px 0 rgba(255, 255, 255, 0.12),
        0 5px 0 rgba(5, 16, 30, 0.55),
        0 10px 18px rgba(0, 0, 0, 0.55),
        0 0 28px rgba(105, 169, 226, 0.15);
}

.hero-text h1 span {
    display: block;

    width: fit-content;

    color: var(--gold);

    background: linear-gradient(
        180deg,
        #FFF9DF 0%,
        #FFE69A 20%,
        #FFC629 48%,
        #E9A900 75%,
        #B87900 100%
    );

    background-size: 100% 200%;

    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    filter:
        drop-shadow(0 2px 0 rgba(255, 255, 255, 0.15))
        drop-shadow(0 5px 2px rgba(151, 101, 0, 0.55))
        drop-shadow(0 9px 8px rgba(0, 0, 0, 0.45))
        drop-shadow(0 0 16px rgba(255, 198, 41, 0.22));

    animation: goldGlow 5s ease-in-out infinite;
}

.hero-text h2 {
    color: #D9E9F8;

    font-size: clamp(19px, 3vw, 28px);

    margin-bottom: 20px;
    font-weight: 800;

    text-shadow:
        0 2px 5px rgba(0, 0, 0, 0.55),
        0 0 15px rgba(105, 169, 226, 0.18);
}

.hero-text p {
    max-width: 690px;

    color: #E0EAF5;

    font-size: 16px;
    line-height: 2.1;

    margin-bottom: 17px;

    text-shadow:
        0 2px 5px rgba(0, 0, 0, 0.65);
}

.hero-text .hero-highlight {
    color: #FFE18A;

    font-weight: 800;

    padding-inline-start: 15px;

    border-inline-start: 4px solid var(--gold);

    background: linear-gradient(
        90deg,
        rgba(255, 198, 41, 0.13),
        rgba(15, 139, 109, 0.045),
        transparent
    );

    border-radius: 5px;

    text-shadow:
        0 0 10px rgba(255, 198, 41, 0.22),
        0 2px 4px rgba(0, 0, 0, 0.55);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;

    gap: 14px;
    margin-top: 30px;
}

.hero-decoration {
    position: absolute;

    width: 350px;
    height: 350px;

    border: 45px solid rgba(255, 198, 41, 0.08);
    border-radius: 50%;

    inset-inline-end: -100px;
    bottom: -170px;

    pointer-events: none;
}

.hero-label,
.hero-visual {
    display: none;
}

@keyframes risingArrows {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.55;
    }

    50% {
        transform: translateY(-22px);
        opacity: 1;
    }
}

@keyframes heroHalo {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.06);
        opacity: 1;
    }
}

@keyframes goldGlow {
    0%, 100% {
        filter:
            drop-shadow(0 2px 0 rgba(255, 255, 255, 0.15))
            drop-shadow(0 5px 2px rgba(151, 101, 0, 0.55))
            drop-shadow(0 9px 8px rgba(0, 0, 0, 0.45))
            drop-shadow(0 0 12px rgba(255, 198, 41, 0.18));
    }

    50% {
        filter:
            drop-shadow(0 2px 0 rgba(255, 255, 255, 0.22))
            drop-shadow(0 5px 2px rgba(151, 101, 0, 0.65))
            drop-shadow(0 9px 8px rgba(0, 0, 0, 0.45))
            drop-shadow(0 0 24px rgba(255, 198, 41, 0.42));
    }
}


/* =========================================
   5. Buttons
========================================= */

.btn {
    min-height: 46px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 11px 23px;

    border: 1px solid transparent;
    border-radius: 11px;

    font-size: 14px;
    font-weight: 800;

    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(
        135deg,
        #FFE17E,
        #FFC629
    );

    color: var(--navy-dark);

    box-shadow:
        0 5px 0 #B88900,
        0 9px 20px rgba(255, 198, 41, 0.2);
}

.btn-primary:hover {
    background: #FFE89A;

    transform: translateY(-3px);

    box-shadow:
        0 7px 0 #B88900,
        0 13px 25px rgba(255, 198, 41, 0.3);
}

.btn-outline {
    color: #F4F7FC;

    border-color: rgba(244, 247, 252, 0.55);

    background: rgba(255, 255, 255, 0.04);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-3px);
}

.btn-gold {
    background: var(--gold);
    color: var(--navy-dark);

    box-shadow: 0 5px 0 #B88900;
}

.btn-gold:hover {
    background: #FFE17E;
    transform: translateY(-3px);
}


/* =========================================
   6. General Sections
========================================= */

.section {
    padding: 85px 0;
}

.section-heading {
    max-width: 750px;

    margin: 0 auto 45px;

    text-align: center;
}

.section-label {
    display: inline-block;

    padding: 6px 17px;
    margin-bottom: 13px;

    border-radius: 30px;

    background: rgba(15, 139, 109, 0.15);
    border: 1px solid rgba(25, 169, 130, 0.28);

    color: #5DD6B2;

    font-size: 14px;
    font-weight: 900;
}

.section-heading h2 {
    color: var(--gold);

    font-size: clamp(27px, 4vw, 38px);
    font-weight: 900;

    margin-bottom: 13px;

    text-shadow:
        0 3px 0 rgba(0, 0, 0, 0.15);
}

.section-heading p {
    color: var(--muted);

    font-size: 15px;
    line-height: 2;
}


/* =========================================
   7. About
========================================= */

.about-section {
    background: var(--background);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.about-card {
    position: relative;

    padding: 30px 25px;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    background: linear-gradient(
        145deg,
        #1B3651,
        #10243D
    );

    box-shadow: var(--shadow);

    transition: var(--transition);
}

.about-card:hover {
    transform: translateY(-7px);

    box-shadow: var(--shadow-hover);

    border-color: var(--gold);
}

.card-icon {
    width: 58px;
    height: 58px;

    display: grid;
    place-items: center;

    margin-bottom: 20px;

    border-radius: 15px;

    background: rgba(15, 139, 109, 0.17);
    border: 1px solid rgba(25, 169, 130, 0.25);

    font-size: 27px;
}

.about-card h3 {
    color: var(--gold);

    font-size: 19px;
    margin-bottom: 10px;
}

.about-card p {
    color: var(--muted);

    font-size: 15px;
    line-height: 2;
}


/* =========================================
   8. Learning
========================================= */

.learn-section {
    background: #0C2038;
}

.learning-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.learning-card {
    position: relative;

    padding: 30px;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    background: linear-gradient(
        145deg,
        #1B3651,
        #10243D
    );

    box-shadow: var(--shadow);

    transition: var(--transition);
}

.learning-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(255, 198, 41, 0.5);
}

.lesson-number {
    position: absolute;

    top: 20px;
    inset-inline-end: 23px;

    color: rgba(255, 198, 41, 0.2);

    font-size: 35px;
    font-weight: 900;
}

.learning-card .card-icon {
    margin-bottom: 15px;
}

.learning-card h3 {
    color: var(--gold);

    font-size: 19px;
    margin-bottom: 10px;
}

.learning-card p {
    color: var(--muted);

    font-size: 15px;
    line-height: 2;

    margin-bottom: 20px;
}

.lesson-open {
    padding: 10px 18px;

    border: 1px solid rgba(255, 198, 41, 0.3);
    border-radius: 9px;

    background: var(--navy);
    color: var(--gold);

    font-size: 14px;
    font-weight: 800;

    transition: var(--transition);
}

.lesson-open:hover {
    background: var(--gold);
    color: var(--navy-dark);

    transform: translateY(-3px);
}


/* =========================================
   9. Lesson Modal
========================================= */

.lesson-modal[hidden] {
    display: none !important;
}

.lesson-modal {
    position: fixed;
    inset: 0;

    z-index: 2000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;
}

.lesson-modal.active {
    display: flex;
}

.lesson-overlay {
    position: absolute;
    inset: 0;

    background: rgba(4, 12, 23, 0.90);

    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}

.lesson-dialog {
    position: relative;
    z-index: 2;

    width: min(900px, 100%);
    max-height: 90vh;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: 20px;

    background: var(--background);

    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.5);

    animation: modalAppear 0.25s ease;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lesson-header {
    flex-shrink: 0;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 15px;

    padding: 20px 28px;

    background: var(--navy);
    color: var(--text);

    border-bottom: 2px solid rgba(255, 198, 41, 0.35);
}

.lesson-header-label {
    display: inline-block;

    color: var(--gold);

    font-size: 13px;
    font-weight: 800;

    margin-bottom: 5px;
}

.lesson-header h2 {
    color: #F4F7FC;
    font-size: 22px;
}

.lesson-close {
    flex-shrink: 0;

    width: 40px;
    height: 40px;

    border: 1px solid rgba(255, 198, 41, 0.3);
    border-radius: 10px;

    background: rgba(255, 255, 255, 0.05);
    color: var(--gold);

    font-size: 20px;

    transition: var(--transition);
}

.lesson-close:hover {
    background: var(--gold);
    color: var(--navy-dark);
}

.lesson-progress-area {
    flex-shrink: 0;

    padding: 13px 28px;

    background: var(--surface);

    border-bottom: 1px solid var(--border);
}

.lesson-progress-info {
    display: flex;
    align-items: center;
    justify-content: space-between;

    color: var(--muted);

    font-size: 13px;
    font-weight: 700;

    margin-bottom: 8px;
}

.lesson-progress-track {
    height: 8px;

    overflow: hidden;

    border-radius: 20px;

    background: #193D68;
}

.lesson-progress-bar {
    width: 25%;
    height: 100%;

    border-radius: inherit;

    background: linear-gradient(
        90deg,
        #0F8B6D,
        #FFC629
    );

    transition: width 0.3s ease;
}

.lesson-content {
    flex: 1;
    min-height: 0;

    overflow-y: auto;
    overscroll-behavior: contain;

    padding: 28px;

    background: var(--background);

    scrollbar-width: thin;
    scrollbar-color: var(--blue) var(--surface);
}

.lesson-content::-webkit-scrollbar {
    width: 8px;
}

.lesson-content::-webkit-scrollbar-track {
    background: var(--surface);
}

.lesson-content::-webkit-scrollbar-thumb {
    background: var(--blue);
    border-radius: 10px;
}

.lesson-content h3 {
    color: var(--gold);

    font-size: 19px;

    margin: 25px 0 10px;
}

.lesson-content p {
    color: #DCE6F0;

    font-size: 15px;
    line-height: 2.1;

    margin-bottom: 13px;
}

.lesson-content ul,
.lesson-content ol {
    padding-inline-start: 25px;
    margin-bottom: 18px;
}

.lesson-content li {
    color: #DCE6F0;

    font-size: 15px;
    line-height: 2;

    margin-bottom: 7px;
}

.lesson-introduction,
.lesson-intro {
    padding: 18px;

    border-inline-start: 4px solid var(--gold);
    border-radius: 10px;

    background: var(--surface);

    margin-bottom: 22px;
}

.lesson-section,
.lesson-block {
    margin-bottom: 22px;

    padding: 18px;

    border: 1px solid var(--border);
    border-radius: 13px;

    background: var(--surface-card);
}

.lesson-example {
    padding: 18px;
    margin: 18px 0;

    border-radius: 12px;

    background: rgba(105, 169, 226, 0.13);

    border-inline-start: 4px solid var(--blue);
}

.lesson-takeaway {
    padding: 18px;

    border-radius: 12px;

    background: rgba(255, 198, 41, 0.1);

    border-inline-start: 4px solid var(--gold);

    margin: 18px 0;
}

.lesson-activity {
    padding: 20px;

    border-radius: 13px;

    background: var(--surface);

    border: 1px solid var(--border);

    margin: 20px 0;
}

.lesson-activity h3 {
    margin-top: 0;
}

.lesson-quiz {
    flex-shrink: 0;

    max-height: 210px;
    overflow-y: auto;

    padding: 13px 28px;

    border-top: 1px solid var(--border);

    background: #10243D;
}

.lesson-quiz h3 {
    color: var(--gold);

    font-size: 15px;
    margin-bottom: 5px;
}

.lesson-quiz p {
    color: #DCE6F0;

    font-size: 14px;
    margin-bottom: 9px;
}

.lesson-quiz-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.lesson-quiz-options button {
    width: 100%;

    padding: 9px 12px;

    border: 1px solid var(--border);
    border-radius: 9px;

    background: var(--surface-card);
    color: var(--text);

    text-align: start;
    font-size: 13px;

    transition: var(--transition);
}

.lesson-quiz-options button:hover:not(:disabled) {
    border-color: var(--blue);
    background: var(--blue-light);
}

.lesson-quiz-options button.correct {
    border-color: var(--success);
    background: #1E5740;
    color: #C6F8DA;
}

.lesson-quiz-options button.incorrect,
.lesson-quiz-options button.wrong {
    border-color: var(--danger);
    background: #653B43;
    color: #FFE0E0;
}

.lesson-quiz-options button:disabled {
    cursor: default;
    opacity: 0.9;
}

.lesson-feedback {
    min-height: 22px;

    margin-top: 6px;

    font-size: 13px;
    font-weight: 800;
}

.lesson-feedback.success,
.lesson-feedback.correct-feedback {
    color: var(--success);
}

.lesson-feedback.error,
.lesson-feedback.wrong-feedback {
    color: var(--danger);
}

.lesson-footer {
    flex-shrink: 0;

    display: flex;
    justify-content: space-between;

    gap: 12px;

    padding: 13px 28px;

    border-top: 1px solid var(--border);

    background: var(--navy);

    position: relative;
    z-index: 3;
}

.lesson-footer .btn {
    min-width: 130px;
}

.lesson-prev {
    border-color: var(--border);

    background: var(--surface);
    color: var(--text);
}

.lesson-prev:hover:not(:disabled) {
    background: var(--blue-light);
}

.lesson-prev:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}


/* =========================================
   10. Development Journey
========================================= */

.develop-section {
    background: var(--background);
}

.journey-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 17px;
}

.journey-card {
    padding: 25px 20px;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    background: var(--surface-card);

    text-align: center;

    box-shadow: var(--shadow);

    transition: var(--transition);
}

.journey-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: var(--shadow-hover);
}

.journey-icon {
    width: 65px;
    height: 65px;

    display: grid;
    place-items: center;

    margin: 0 auto 15px;

    border-radius: 50%;

    background: rgba(15, 139, 109, 0.16);
    border: 1px solid rgba(25, 169, 130, 0.25);

    font-size: 29px;
}

.journey-card h3 {
    color: var(--gold);

    font-size: 19px;
    margin-bottom: 9px;
}

.journey-card p {
    color: var(--muted);

    font-size: 14px;
    line-height: 2;
}


/* =========================================
   11. Main Quiz
========================================= */

.quiz-section {
    background: #0C2038;
}

.quiz-box {
    max-width: 750px;

    margin: 0 auto;
    padding: 30px;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    background: var(--surface-card);

    box-shadow: var(--shadow);
}

.quiz-box h3 {
    color: var(--gold);

    font-size: 19px;
    margin-bottom: 22px;
}

.quiz-options {
    display: grid;
    gap: 12px;
}

.quiz-option {
    width: 100%;

    padding: 15px 18px;

    border: 1px solid var(--border);
    border-radius: 11px;

    background: var(--surface);
    color: var(--text);

    text-align: start;
    font-size: 14px;

    transition: var(--transition);
}

.quiz-option:hover {
    border-color: var(--blue);
    background: var(--blue-light);
}

.quiz-option.correct {
    border-color: var(--success);
    background: #1E5740;
    color: #C6F8DA;
}

.quiz-option.incorrect {
    border-color: var(--danger);
    background: #653B43;
    color: #FFE0E0;
}

.quiz-option:disabled {
    cursor: default;
}

.quiz-result {
    min-height: 30px;

    margin-top: 18px;

    font-size: 14px;
    font-weight: 800;
}

.quiz-result.success {
    color: var(--success);
}

.quiz-result.error {
    color: var(--danger);
}


/* =========================================
   12. Ideas & Stories
========================================= */

.stories-section {
    background: var(--background);
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.story-card {
    padding: 28px;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    background: var(--surface-card);

    box-shadow: var(--shadow);

    transition: var(--transition);
}

.story-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(255, 198, 41, 0.5);
}

.story-icon {
    width: 60px;
    height: 60px;

    display: grid;
    place-items: center;

    border-radius: 15px;

    background: rgba(15, 139, 109, 0.16);

    font-size: 29px;

    margin-bottom: 17px;
}

.story-category {
    color: var(--green-light);

    font-size: 13px;
    font-weight: 900;
}

.story-card h3 {
    color: var(--gold);

    font-size: 19px;

    margin: 8px 0 12px;
}

.story-card p {
    color: var(--muted);

    font-size: 15px;
    line-height: 2;
}


/* =========================================
   13. Projects
========================================= */

.projects-section {
    background: #0C2038;
}

.projects-list {
    display: grid;
    gap: 18px;
}

.projects-empty {
    max-width: 650px;

    margin: 0 auto;
    padding: 40px 25px;

    border: 1px dashed var(--bronze-light);
    border-radius: var(--radius);

    background: var(--surface-card);

    text-align: center;
}

.projects-empty .card-icon {
    margin: 0 auto 15px;
}

.projects-empty h3 {
    color: var(--gold);

    font-size: 20px;
    margin-bottom: 10px;
}

.projects-empty p {
    color: var(--muted);

    font-size: 14px;
    line-height: 2;

    margin-bottom: 20px;
}

.projects-note {
    margin-top: 25px;

    padding: 18px 22px;

    border-inline-start: 4px solid var(--gold);
    border-radius: 10px;

    background: var(--surface-card);
}

.projects-note strong {
    display: block;

    color: var(--gold);

    margin-bottom: 5px;
}

.projects-note p {
    color: var(--muted);

    font-size: 14px;
    line-height: 2;
}


/* =========================================
   14. Challenges That Create Opportunities
========================================= */

.challenges-section {
    position: relative;
    overflow: hidden;

    background:
        radial-gradient(
            circle at 85% 15%,
            rgba(15, 139, 109, 0.12),
            transparent 30%
        ),
        linear-gradient(
            145deg,
            #0C2038,
            #09182B
        );
}

.challenges-section::before {
    content: "";

    position: absolute;

    width: 350px;
    height: 350px;

    top: 100px;
    inset-inline-start: -220px;

    border: 1px solid rgba(255, 198, 41, 0.10);
    border-radius: 50%;

    box-shadow:
        0 0 0 35px rgba(255, 198, 41, 0.025),
        0 0 0 75px rgba(255, 198, 41, 0.015);

    pointer-events: none;
}

.challenges-section .container {
    position: relative;
    z-index: 1;
}

.challenges-section .section-label {
    background: rgba(15, 139, 109, 0.12);
    border-color: rgba(25, 169, 130, 0.30);
    color: #5DD6B2;
}

.challenges-section .section-heading h2 {
    text-shadow:
        0 4px 15px rgba(255, 198, 41, 0.12);
}

.challenges-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 23px;
}

.challenge-card {
    position: relative;

    display: flex;
    flex-direction: column;

    min-width: 0;
    padding: 28px;

    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: 20px;

    background:
        linear-gradient(
            145deg,
            #1B3651,
            #10243D
        );

    box-shadow: var(--shadow);

    transition:
        transform var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

.challenge-card::before {
    content: "";

    position: absolute;

    top: 0;
    inset-inline: 0;

    height: 4px;

    background: linear-gradient(
        90deg,
        var(--gold),
        var(--green-light)
    );

    opacity: 0.8;
}

.challenge-card::after {
    content: "";

    position: absolute;

    width: 130px;
    height: 130px;

    top: -65px;
    inset-inline-end: -65px;

    border: 1px solid rgba(255, 198, 41, 0.10);
    border-radius: 50%;

    pointer-events: none;
}

.challenge-card:hover {
    transform: translateY(-7px);

    border-color: rgba(255, 198, 41, 0.65);

    box-shadow: var(--shadow-hover);
}

.challenge-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 43px;
    height: 43px;

    margin-bottom: 18px;

    border-radius: 12px;

    background: rgba(255, 198, 41, 0.12);
    border: 1px solid rgba(255, 198, 41, 0.35);

    color: var(--gold);

    font-size: 17px;
    font-weight: 900;
}

.challenge-category {
    display: inline-block;

    width: fit-content;

    padding: 5px 13px;
    margin-bottom: 12px;

    border-radius: 30px;

    background: rgba(15, 139, 109, 0.13);
    border: 1px solid rgba(25, 169, 130, 0.25);

    color: #5DD6B2;

    font-size: 13px;
    font-weight: 800;
}

.challenge-card h3 {
    color: var(--gold);

    font-size: 21px;
    font-weight: 900;

    line-height: 1.6;

    margin-bottom: 12px;
}

.challenge-card > p {
    color: #D5E2F0;

    font-size: 15px;
    line-height: 2.1;

    margin-bottom: 20px;
}

.challenge-question {
    position: relative;

    margin-top: auto;
    margin-bottom: 20px;

    padding: 17px 18px;

    border: 1px solid rgba(15, 139, 109, 0.30);
    border-inline-start: 4px solid var(--green-light);

    border-radius: 12px;

    background: rgba(9, 24, 43, 0.65);
}

.challenge-question strong {
    display: block;

    color: var(--green-light);

    font-size: 14px;
    font-weight: 900;

    margin-bottom: 7px;
}

.challenge-question p {
    color: #E3ECF6;

    font-size: 15px;
    line-height: 2;
}

.challenge-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 47px;

    padding: 11px 18px;

    border: 1px solid rgba(255, 198, 41, 0.4);
    border-radius: 11px;

    background: linear-gradient(
        135deg,
        #FFE17E,
        #FFC629
    );

    color: var(--navy-dark);

    font-size: 15px;
    font-weight: 900;

    text-align: center;

    box-shadow:
        0 4px 0 #B88900,
        0 8px 18px rgba(255, 198, 41, 0.15);

    transition: var(--transition);
}

.challenge-button:hover {
    background: #FFE89A;

    transform: translateY(-3px);

    box-shadow:
        0 6px 0 #B88900,
        0 12px 22px rgba(255, 198, 41, 0.25);
}

.challenge-button:active {
    transform: translateY(1px);

    box-shadow:
        0 2px 0 #B88900;
}

.challenges-footer {
    position: relative;

    margin-top: 35px;
    padding: 28px;

    border: 1px solid rgba(255, 198, 41, 0.25);
    border-radius: 18px;

    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(15, 139, 109, 0.15),
            transparent 45%
        ),
        linear-gradient(
            135deg,
            #193D68,
            #102B50
        );

    text-align: center;

    box-shadow: var(--shadow);
}

.challenges-footer h3 {
    color: var(--gold);

    font-size: 22px;
    font-weight: 900;

    margin-bottom: 9px;
}

.challenges-footer p {
    max-width: 650px;

    margin: 0 auto 20px;

    color: #D5E2F0;

    font-size: 15px;
    line-height: 2;
}

.challenges-footer .btn {
    min-width: 190px;
}


/* =========================================
   15. Submit Idea - Enhanced Design
========================================= */

.submit-section {
    position: relative;
    isolation: isolate;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 10% 15%,
            rgba(15, 139, 109, 0.12),
            transparent 30%
        ),
        radial-gradient(
            circle at 90% 85%,
            rgba(255, 198, 41, 0.07),
            transparent 28%
        ),
        var(--background);
}

.submit-section::before {
    content: "";

    position: absolute;

    width: 300px;
    height: 300px;

    top: 100px;
    inset-inline-end: -180px;

    border: 1px solid rgba(255, 198, 41, 0.10);
    border-radius: 50%;

    box-shadow:
        0 0 0 35px rgba(255, 198, 41, 0.025),
        0 0 0 70px rgba(255, 198, 41, 0.015);

    pointer-events: none;
    z-index: -1;
}

.submit-section .section-heading {
    margin-bottom: 38px;
}

.submit-section .section-label {
    background: rgba(15, 139, 109, 0.12);
    border-color: rgba(25, 169, 130, 0.30);
    color: #5DD6B2;
}

.submit-section .section-heading h2 {
    font-size: clamp(30px, 4vw, 42px);

    text-shadow:
        0 4px 15px rgba(255, 198, 41, 0.12);
}

.submit-section .section-heading p {
    max-width: 620px;
    margin-inline: auto;
}

.submit-layout {
    display: grid;

    grid-template-columns: 0.78fr 1.22fr;

    gap: 25px;
    align-items: stretch;
}

.submit-info {
    position: relative;

    padding: 30px;

    border: 1px solid rgba(255, 198, 41, 0.28);
    border-radius: 22px;

    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(15, 139, 109, 0.18),
            transparent 45%
        ),
        linear-gradient(
            145deg,
            #193D68,
            #102B50 75%
        );

    color: var(--text);

    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.30),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);

    overflow: hidden;
}

.submit-info::before {
    content: "✦";

    position: absolute;

    top: 12px;
    inset-inline-end: 20px;

    color: rgba(255, 198, 41, 0.18);

    font-size: 50px;

    pointer-events: none;
}

.submit-info h3 {
    position: relative;

    color: var(--gold);

    font-size: 23px;
    font-weight: 900;

    margin-bottom: 15px;

    padding-bottom: 15px;

    border-bottom: 1px solid rgba(255, 198, 41, 0.22);
}

.submit-info > p {
    color: #D5E2F0;

    font-size: 15px;
    line-height: 2.2;

    margin-bottom: 24px;
}

.privacy-note {
    position: relative;

    padding: 19px;
    margin-top: 17px;

    border: 1px solid rgba(255, 198, 41, 0.20);
    border-radius: 15px;

    background: rgba(255, 255, 255, 0.055);

    transition:
        transform var(--transition),
        border-color var(--transition),
        background var(--transition);
}

.privacy-note:hover {
    transform: translateY(-3px);

    border-color: rgba(255, 198, 41, 0.45);

    background: rgba(255, 255, 255, 0.075);
}

.privacy-note strong {
    display: block;

    color: var(--gold);

    font-size: 15px;
    font-weight: 900;

    margin-bottom: 9px;
}

.privacy-note p {
    color: #D5E2F0;

    font-size: 14px;
    line-height: 2.1;
}

.google-form-container {
    position: relative;

    width: 100%;
    min-width: 0;

    padding: 12px;

    overflow: hidden;

    border: 1px solid rgba(255, 198, 41, 0.35);
    border-radius: 22px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.98),
            #F3F0EA
        );

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.30),
        0 0 0 5px rgba(255, 198, 41, 0.045);

    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.google-form-container:hover {
    box-shadow:
        0 24px 55px rgba(0, 0, 0, 0.35),
        0 0 0 6px rgba(255, 198, 41, 0.08);
}

.google-form-container iframe {
    display: block;

    width: 100%;
    height: 1850px;

    border: 0;
    border-radius: 13px;

    background: #ffffff;
}

.form-disclaimer {
    display: block;

    margin-top: 22px;
    padding: 16px 20px;

    color: #B8CBE0;

    font-size: 14px;
    line-height: 2.1;

    background: rgba(15, 139, 109, 0.075);

    border: 1px solid rgba(15, 139, 109, 0.18);
    border-inline-start: 4px solid var(--green);

    border-radius: 12px;
}


/* =========================================
   16. Next Steps
========================================= */

.next-section {
    background: #0C2038;
}

.next-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 17px;
}

.next-step {
    padding: 24px 19px;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    background: var(--surface-card);

    text-align: center;

    box-shadow: var(--shadow);

    transition: var(--transition);
}

.next-step:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
}

.next-step > span {
    width: 43px;
    height: 43px;

    display: grid;
    place-items: center;

    margin: 0 auto 14px;

    border-radius: 50%;

    background: var(--green-dark);
    color: var(--gold);

    border: 1px solid rgba(255, 198, 41, 0.3);

    font-size: 18px;
    font-weight: 900;
}

.next-step h3 {
    color: var(--gold);

    font-size: 16px;
    margin-bottom: 8px;
}

.next-step p {
    color: var(--muted);

    font-size: 14px;
    line-height: 2;
}


/* =========================================
   17. Final CTA
========================================= */

.final-cta {
    padding: 75px 0;

    background:
        radial-gradient(
            circle at center,
            rgba(15, 139, 109, 0.15),
            transparent 65%
        ),
        linear-gradient(
            120deg,
            #09182B,
            #193D68
        );

    text-align: center;

    border-top: 1px solid rgba(255, 198, 41, 0.15);
    border-bottom: 1px solid rgba(255, 198, 41, 0.15);
}

.final-cta h2 {
    color: var(--gold);

    font-size: clamp(25px, 4vw, 38px);

    margin-bottom: 13px;
}

.final-cta p {
    color: #D5E2F0;

    font-size: 15px;
    margin-bottom: 25px;
}


/* =========================================
   18. Footer
========================================= */

.footer {
    background: #061221;
    color: var(--text);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 25px;

    padding: 35px 0;
}

.footer-content h3 {
    color: var(--gold);

    font-size: 20px;
    margin-bottom: 8px;
}

.footer-content p {
    color: #B8CBE0;
    font-size: 14px;
}

.footer-school {
    display: flex;
    flex-direction: column;

    gap: 5px;

    text-align: end;
}

.footer-school strong {
    color: #F4F7FC;
    font-size: 14px;
}

.footer-school span {
    color: #9DB0C4;
    font-size: 13px;
}

.footer-bottom {
    padding: 15px;

    border-top: 1px solid rgba(255, 255, 255, 0.08);

    text-align: center;
}

.footer-bottom p {
    color: #9DB0C4;
    font-size: 13px;
}


/* =========================================
   19. Accessibility
========================================= */

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}

.lesson-content:focus {
    outline: none;
}

button:disabled {
    cursor: not-allowed;
}

[dir="ltr"] .lesson-quiz-options button,
[dir="ltr"] .quiz-option {
    text-align: left;
}

[dir="ltr"] .footer-school {
    text-align: left;
}


/* =========================================
   20. Responsive - Tablet
========================================= */

@media (max-width: 1100px) {

    .nav {
        gap: 11px;
    }

    .nav a {
        font-size: 13px;
    }

    .brand-text strong {
        font-size: 15px;
    }

    .journey-grid,
    .next-steps {
        grid-template-columns: repeat(2, 1fr);
    }

}


/* =========================================
   21. Responsive - Mobile Navigation
========================================= */

@media (max-width: 950px) {

    .menu-toggle {
        display: grid;
        place-items: center;
    }

    .nav {
        position: absolute;

        top: calc(100% + 1px);
        inset-inline: 0;

        display: none;
        flex-direction: column;
        align-items: stretch;

        gap: 0;

        padding: 12px 5% 20px;

        border-bottom: 1px solid var(--border);

        background: #10243D;

        box-shadow: var(--shadow);

        max-height: calc(100vh - 75px);
        overflow-y: auto;
    }

    .nav.active {
        display: flex;
    }

    .nav a {
        padding: 12px 10px;

        border-bottom: 1px solid rgba(255, 255, 255, 0.08);

        font-size: 14px;
    }

    .nav a.active:not(.nav-button) {
        color: var(--gold);

        background: rgba(255, 198, 41, 0.1);

        border-radius: 8px;

        text-shadow:
            0 0 8px rgba(255, 198, 41, 0.4);

        box-shadow:
            inset 3px 0 0 var(--gold),
            0 0 12px rgba(255, 198, 41, 0.08);
    }

    .nav a.active:not(.nav-button)::after {
        display: none;
    }

    .nav .nav-button {
        margin-top: 10px;
        text-align: center;
    }

    .language-toggle {
        margin-top: 12px;
        width: 100%;
    }

}


/* =========================================
   22. Responsive - Small Tablet
========================================= */

@media (max-width: 850px) {

    .about-grid,
    .stories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .submit-layout {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 520px;
    }

    .hero-content {
        padding-block: 70px;
    }

    .hero::after {
        right: 4%;

        font-size: 35px;
        letter-spacing: 5px;

        opacity: 0.45;
    }

    .submit-info {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 15px;
    }

    .submit-info h3 {
        grid-column: 1 / -1;
    }

    .submit-info > p {
        grid-column: 1 / -1;
        margin-bottom: 5px;
    }

    .privacy-note {
        margin-top: 0;
    }

}


/* =========================================
   23. Responsive - Mobile
========================================= */

@media (max-width: 600px) {

    .container {
        width: 92%;
    }

    .nav-container {
        min-height: 72px;
    }

    body {
        padding-top: 72px;
    }

    .brand-icon {
        width: 42px;
        height: 42px;
        font-size: 22px;
    }

    .brand-text strong {
        font-size: 13px;
    }

    .brand-text small {
        font-size: 11px;
    }

    .hero {
        min-height: 540px;

        background-size:
            100% 100%,
            100% 100%,
            100% 100%;

        background-position:
            center,
            center,
            center;
    }

    .hero-content {
        padding-block: 65px;
    }

    .hero::after {
        top: 7%;
        right: 3%;

        font-size: 25px;
        letter-spacing: 2px;

        opacity: 0.35;
    }

    .hero-text::before {
        right: -12px;

        width: 100%;
    }

    .hero-text h1 {
        font-size: 42px;
    }

    .hero-text h2 {
        font-size: 19px;
    }

    .hero-text p {
        font-size: 15px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .section {
        padding: 60px 0;
    }

    .section-heading {
        margin-bottom: 30px;
    }

    .section-heading h2 {
        font-size: 27px;
    }

    .section-heading p {
        font-size: 14px;
    }

    .about-grid,
    .learning-grid,
    .stories-grid,
    .journey-grid,
    .next-steps {
        grid-template-columns: 1fr;
    }

    .about-card,
    .learning-card,
    .story-card {
        padding: 23px;
    }

    .quiz-box {
        padding: 21px;
    }

    .quiz-box h3 {
        font-size: 16px;
    }

    .quiz-option {
        font-size: 14px;
        padding: 13px;
    }

    .challenges-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .challenge-card {
        padding: 23px;
        border-radius: 16px;
    }

    .challenge-card h3 {
        font-size: 19px;
    }

    .challenge-card > p {
        font-size: 14px;
    }

    .challenge-question {
        padding: 15px;
    }

    .challenge-question p {
        font-size: 14px;
    }

    .challenge-button {
        font-size: 14px;
    }

    .challenges-footer {
        padding: 23px 18px;
        margin-top: 25px;
    }

    .challenges-footer h3 {
        font-size: 19px;
    }

    .challenges-footer p {
        font-size: 14px;
    }

    .submit-section .section-heading h2 {
        font-size: 27px;
    }

    .submit-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .submit-info {
        display: block;

        padding: 23px;

        border-radius: 17px;
    }

    .submit-info h3 {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .submit-info > p {
        font-size: 14px;
        margin-bottom: 18px;
    }

    .privacy-note {
        padding: 15px;
        margin-top: 13px;
    }

    .privacy-note p {
        font-size: 14px;
    }

    .google-form-container {
        padding: 6px;

        border-radius: 15px;
    }

    .google-form-container iframe {
        height: 2050px;
        border-radius: 10px;
    }

    .form-disclaimer {
        padding: 13px 15px;
        font-size: 13px;
    }

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-school {
        text-align: start;
    }

    .lesson-modal {
        padding: 8px;
    }

    .lesson-dialog {
        max-height: 96dvh;
        max-height: 96vh;

        border-radius: 14px;
    }

    .lesson-header {
        padding: 13px 15px;
    }

    .lesson-header h2 {
        font-size: 16px;
    }

    .lesson-progress-area {
        padding: 9px 15px;
    }

    .lesson-content {
        padding: 15px;
    }

    .lesson-quiz {
        max-height: 180px;
        padding: 10px 15px;
    }

    .lesson-quiz h3 {
        font-size: 14px;
    }

    .lesson-quiz-options {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .lesson-quiz-options button {
        padding: 8px 10px;
        font-size: 12px;
    }

    .lesson-footer {
        padding: 10px;
        gap: 8px;
    }

    .lesson-footer .btn {
        min-width: 0;
        flex: 1;

        padding: 9px 6px;

        font-size: 12px;
    }

}


/* =========================================
   24. Responsive - Very Small Screens
========================================= */

@media (max-width: 380px) {

    .hero-text h1 {
        font-size: 35px;
    }

    .brand-text strong {
        font-size: 11px;
    }

    .lesson-header h2 {
        font-size: 14px;
    }

    .lesson-footer .btn {
        font-size: 11px;
    }

    .google-form-container iframe {
        height: 2200px;
    }

    .challenge-card {
        padding: 19px;
    }

    .challenge-card h3 {
        font-size: 18px;
    }

}


/* =========================================
   25. Reduced Motion
========================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

}


/* =========================================
   26. Realistic Floating Light Particles
   خلفية جسيمات ضوئية واقعية
   بدون صور خارجية أو JavaScript
   لا تشمل Hero
========================================= */

/*
   الأقسام التي ستظهر فيها الجسيمات.
   لا نغيّر الخلفيات الأصلية للأقسام.
*/

.about-section,
.learn-section,
.develop-section,
.quiz-section,
.stories-section,
.projects-section,
.next-section,
.final-cta,
.challenges-section,
.submit-section {
    position: relative;
    isolation: isolate;
}

/*
   وضع المحتوى فوق طبقة الجسيمات.
   لا نغيّر أبعاد أو مقاسات المحتوى.
*/

.about-section > .container,
.learn-section > .container,
.develop-section > .container,
.quiz-section > .container,
.stories-section > .container,
.projects-section > .container,
.next-section > .container,
.final-cta > .container,
.challenges-section > .container,
.submit-section > .container {
    position: relative;
    z-index: 2;
}

/*
   طبقة الجسيمات:
   نقاط صغيرة بأحجام وألوان وشفافيات مختلفة.
   كل نقطة عبارة عن إضاءة ناعمة وليست رمزًا أو شكلًا.
*/

.about-section::after,
.learn-section::after,
.develop-section::after,
.quiz-section::after,
.stories-section::after,
.projects-section::after,
.next-section::after,
.final-cta::after,
.challenges-section::after,
.submit-section::after {

    content: "";

    position: absolute;
    inset: 0;

    z-index: 0;

    pointer-events: none;

    background-image:

        /* جسيمات ذهبية */
        radial-gradient(circle at 4% 12%, rgba(255, 220, 130, 0.85) 0, rgba(255, 198, 41, 0.28) 1px, transparent 3px),
        radial-gradient(circle at 12% 68%, rgba(255, 198, 41, 0.75) 0, rgba(255, 198, 41, 0.20) 1px, transparent 3px),
        radial-gradient(circle at 22% 32%, rgba(255, 230, 160, 0.85) 0, rgba(255, 198, 41, 0.20) 1px, transparent 4px),
        radial-gradient(circle at 31% 88%, rgba(255, 198, 41, 0.75) 0, rgba(255, 198, 41, 0.18) 1px, transparent 3px),
        radial-gradient(circle at 43% 18%, rgba(255, 230, 160, 0.70) 0, rgba(255, 198, 41, 0.16) 1px, transparent 4px),
        radial-gradient(circle at 54% 73%, rgba(255, 198, 41, 0.85) 0, rgba(255, 198, 41, 0.20) 1px, transparent 3px),
        radial-gradient(circle at 66% 42%, rgba(255, 230, 160, 0.80) 0, rgba(255, 198, 41, 0.20) 1px, transparent 4px),
        radial-gradient(circle at 78% 15%, rgba(255, 198, 41, 0.80) 0, rgba(255, 198, 41, 0.18) 1px, transparent 3px),
        radial-gradient(circle at 89% 62%, rgba(255, 230, 160, 0.85) 0, rgba(255, 198, 41, 0.22) 1px, transparent 4px),
        radial-gradient(circle at 96% 90%, rgba(255, 198, 41, 0.75) 0, rgba(255, 198, 41, 0.18) 1px, transparent 3px),

        /* جسيمات زرقاء */
        radial-gradient(circle at 8% 43%, rgba(160, 210, 255, 0.85) 0, rgba(105, 169, 226, 0.24) 1px, transparent 4px),
        radial-gradient(circle at 19% 91%, rgba(105, 169, 226, 0.80) 0, rgba(105, 169, 226, 0.20) 1px, transparent 3px),
        radial-gradient(circle at 35% 56%, rgba(180, 220, 255, 0.85) 0, rgba(105, 169, 226, 0.20) 1px, transparent 4px),
        radial-gradient(circle at 48% 8%, rgba(105, 169, 226, 0.80) 0, rgba(105, 169, 226, 0.18) 1px, transparent 3px),
        radial-gradient(circle at 61% 91%, rgba(180, 220, 255, 0.80) 0, rgba(105, 169, 226, 0.20) 1px, transparent 4px),
        radial-gradient(circle at 73% 52%, rgba(105, 169, 226, 0.85) 0, rgba(105, 169, 226, 0.20) 1px, transparent 3px),
        radial-gradient(circle at 84% 84%, rgba(180, 220, 255, 0.80) 0, rgba(105, 169, 226, 0.18) 1px, transparent 4px),
        radial-gradient(circle at 94% 28%, rgba(105, 169, 226, 0.80) 0, rgba(105, 169, 226, 0.18) 1px, transparent 3px),

        /* جسيمات خضراء */
        radial-gradient(circle at 2% 82%, rgba(120, 240, 200, 0.80) 0, rgba(25, 169, 130, 0.22) 1px, transparent 4px),
        radial-gradient(circle at 16% 23%, rgba(100, 230, 190, 0.80) 0, rgba(25, 169, 130, 0.20) 1px, transparent 3px),
        radial-gradient(circle at 28% 75%, rgba(120, 240, 200, 0.85) 0, rgba(25, 169, 130, 0.20) 1px, transparent 4px),
        radial-gradient(circle at 40% 39%, rgba(100, 230, 190, 0.75) 0, rgba(25, 169, 130, 0.18) 1px, transparent 3px),
        radial-gradient(circle at 57% 27%, rgba(120, 240, 200, 0.80) 0, rgba(25, 169, 130, 0.20) 1px, transparent 4px),
        radial-gradient(circle at 69% 80%, rgba(100, 230, 190, 0.80) 0, rgba(25, 169, 130, 0.20) 1px, transparent 3px),
        radial-gradient(circle at 82% 35%, rgba(120, 240, 200, 0.80) 0, rgba(25, 169, 130, 0.18) 1px, transparent 4px),
        radial-gradient(circle at 98% 48%, rgba(100, 230, 190, 0.80) 0, rgba(25, 169, 130, 0.18) 1px, transparent 3px),

        /* جسيمات بيضاء وفضية */
        radial-gradient(circle at 6% 55%, rgba(255, 255, 255, 0.80) 0, rgba(220, 235, 255, 0.20) 1px, transparent 3px),
        radial-gradient(circle at 25% 10%, rgba(255, 255, 255, 0.75) 0, rgba(220, 235, 255, 0.18) 1px, transparent 3px),
        radial-gradient(circle at 38% 95%, rgba(255, 255, 255, 0.80) 0, rgba(220, 235, 255, 0.20) 1px, transparent 4px),
        radial-gradient(circle at 51% 48%, rgba(255, 255, 255, 0.75) 0, rgba(220, 235, 255, 0.18) 1px, transparent 3px),
        radial-gradient(circle at 64% 12%, rgba(255, 255, 255, 0.80) 0, rgba(220, 235, 255, 0.20) 1px, transparent 4px),
        radial-gradient(circle at 76% 94%, rgba(255, 255, 255, 0.75) 0, rgba(220, 235, 255, 0.18) 1px, transparent 3px),
        radial-gradient(circle at 91% 18%, rgba(255, 255, 255, 0.80) 0, rgba(220, 235, 255, 0.20) 1px, transparent 4px);

    background-size: 135% 135%;
    background-position: 0% 0%;

    background-repeat: no-repeat;

    opacity: 0.72;

    filter: brightness(1);

    animation:
        particlesDrift 32s ease-in-out infinite alternate,
        particlesGlow 7s ease-in-out infinite alternate;
}

/*
   حركة بطيئة للجسيمات.
   اختلاف اتجاه الحركة يعطي إحساسًا بالعمق.
*/

@keyframes particlesDrift {
    0% {
        background-position: 0% 0%;
        transform: translate3d(0, 0, 0);
    }

    25% {
        background-position: 18% 12%;
        transform: translate3d(0.25%, -0.2%, 0);
    }

    50% {
        background-position: 35% 25%;
        transform: translate3d(-0.2%, 0.25%, 0);
    }

    75% {
        background-position: 18% 35%;
        transform: translate3d(0.2%, 0.15%, 0);
    }

    100% {
        background-position: 0% 18%;
        transform: translate3d(-0.25%, -0.15%, 0);
    }
}

/*
   اللمعان والخفوت.
   لا توجد ومضات سريعة أو مزعجة.
*/

@keyframes particlesGlow {
    0% {
        opacity: 0.48;
        filter: brightness(0.82);
    }

    45% {
        opacity: 0.78;
        filter: brightness(1.12);
    }

    100% {
        opacity: 0.58;
        filter: brightness(0.95);
    }
}

/*
   اختلاف توقيت الحركة بين الأقسام
   حتى لا تبدو الجسيمات متزامنة.
*/

.about-section::after {
    animation-delay: -2s, -1s;
}

.learn-section::after {
    animation-delay: -8s, -3s;
}

.develop-section::after {
    animation-delay: -14s, -2s;
}

.quiz-section::after {
    animation-delay: -5s, -5s;
}

.stories-section::after {
    animation-delay: -11s, -1.5s;
}

.projects-section::after {
    animation-delay: -18s, -4s;
}

.next-section::after {
    animation-delay: -7s, -2.5s;
}

.final-cta::after {
    animation-delay: -13s, -3.5s;
}

.challenges-section::after {
    animation-delay: -9s, -1.8s;
}

.submit-section::after {
    animation-delay: -16s, -4.5s;
}


/* =========================================
   Mobile - تحسين ظهور الجسيمات
========================================= */

@media (max-width: 600px) {

    .about-section::after,
    .learn-section::after,
    .develop-section::after,
    .quiz-section::after,
    .stories-section::after,
    .projects-section::after,
    .next-section::after,
    .final-cta::after,
    .challenges-section::after,
    .submit-section::after {
        opacity: 0.48;
        background-size: 150% 150%;
    }

}


/* =========================================
   Reduced Motion - احترام إعدادات الحركة
========================================= */

@media (prefers-reduced-motion: reduce) {

    .about-section::after,
    .learn-section::after,
    .develop-section::after,
    .quiz-section::after,
    .stories-section::after,
    .projects-section::after,
    .next-section::after,
    .final-cta::after,
    .challenges-section::after,
    .submit-section::after {
        animation: none !important;
        opacity: 0.55;
    }

}
