

:root {
    --ink: #173e50;
    --ink-soft: #405e6c;
    --teal: #258b8c;
    --teal-dark: #176d73;

    --cream: #fffaf2;
    --white: #ffffff;

    --yellow: #f5c653;
    --coral: #ef806f;
    --pink: #e9a0b7;
    --purple: #8872c5;
    --blue: #80bce0;
    --green: #8dbb87;

    --border: rgba(23, 62, 80, .10);
    --shadow-soft: 0 10px 28px rgba(34, 74, 88, .07);
    --shadow-card: 0 15px 35px rgba(34, 74, 88, .10);
    --shadow-hover: 0 20px 42px rgba(34, 74, 88, .14);

    --container: 1160px;
    --radius-large: 28px;
    --radius-medium: 20px;
    --radius-small: 13px;
}

/* ==========================================================
   2. RESET + ONE CONTINUOUS PAGE BACKGROUND
========================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}



html {
    min-height: 100%;
    margin: 0;
    padding: 0;
    background-color: #fff9f0;
}

body {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;

    direction: rtl;
    font-family: "Tajawal", "Cairo", Arial, sans-serif;
    color: var(--ink);

    background-color: #fff9f0;

    background-image:
        radial-gradient(
            ellipse at 8% 8%,
            rgba(255, 200, 143, 0.30) 0%,
            transparent 35%
        ),
        radial-gradient(
            ellipse at 94% 20%,
            rgba(112, 200, 188, 0.24) 0%,
            transparent 34%
        ),
        radial-gradient(
            ellipse at 5% 48%,
            rgba(187, 170, 231, 0.20) 0%,
            transparent 33%
        ),
        radial-gradient(
            ellipse at 96% 72%,
            rgba(255, 187, 167, 0.23) 0%,
            transparent 34%
        ),
        radial-gradient(
            ellipse at 45% 95%,
            rgba(148, 215, 190, 0.24) 0%,
            transparent 36%
        ),
        linear-gradient(
            135deg,
            #fff9f0 0%,
            #f4faf7 36%,
            #f6f4fc 68%,
            #fff7f2 100%
        );

    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-attachment: scroll;

    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}

html,
body {
    margin-bottom: 0;
}


/* ==========================================================
   PAGE BACKGROUND — WARM, ALIVE & CONTINUOUS
========================================================== */



img,
video,
iframe {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid rgba(37, 139, 140, .65);
    outline-offset: 4px;
}

::selection {
    color: var(--ink);
    background: rgba(245, 198, 83, .60);
}

.section-shell {
    position: relative;
    z-index: 1;
    width: min(var(--container), calc(100% - 64px));
    margin-inline: auto;
}

/* ==========================================================
   3. SECTION BACKGROUNDS — ALWAYS TRANSPARENT
========================================================== */

.hero,
.paths-section,
.courses-section,
.features-section {
    position: relative;
    isolation: isolate;
    background: transparent !important;
}

/* Shared section spacing */

.paths-section {
    padding: 78px 0 85px;
}

.courses-section {
    padding: 48px 0 95px;
}

.features-section {
    padding: 85px 0 90px;
}

/* Subtle decorative page accents */

.page-decoration {
    position: absolute;
    z-index: -1;
    pointer-events: none;
    border-radius: 50%;
}

.page-decoration-top {
    width: 300px;
    height: 300px;
    top: 400px;
    right: -220px;
    background: rgba(244, 151, 179, .13);
    filter: blur(12px);
}

.page-decoration-side {
    width: 280px;
    height: 280px;
    top: 1450px;
    left: -210px;
    background: rgba(119, 194, 224, .15);
    filter: blur(14px);
}

/* ==========================================================
   4. HERO — BLENDS INTO THE PAGE
========================================================== */

.hero {
    min-height: 560px;
    padding: 68px 0 75px;
    overflow: clip;
    border-bottom: 1px solid rgba(23, 62, 80, .045);
}

/* Remove the old dotted pattern and ring decorations */

.hero::before {
    content: none !important;
    display: none !important;
}

.hero .hero-pattern,
.hero .hero-orbit {
    display: none !important;
}

/* Small organic color accent, not a section background */

.hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;

    width: 320px;
    height: 320px;
    top: -205px;
    left: -105px;

    border-radius: 43% 57% 61% 39% / 40% 40% 60% 60%;

    background: linear-gradient(
        145deg,
        rgba(174, 145, 231, .20),
        rgba(255, 163, 177, .18)
    );

    transform: rotate(-18deg);
}

.hero-inner {
    position: relative;
    z-index: 2;

    width: min(var(--container), calc(100% - 64px));
    margin-inline: auto;

    display: grid;
    grid-template-columns: minmax(0, 1.03fr) minmax(0, .97fr);
    align-items: center;
    gap: 48px;
}

.hero-content {
    position: relative;
    z-index: 3;
    min-width: 0;
    max-width: 580px;
}

.hero-eyebrow {
    width: fit-content;
    max-width: 100%;

    display: flex;
    align-items: center;
    gap: 10px;

    padding: 10px 16px;
    margin-bottom: 24px;

    color: #176d73;
    font-size: 14px;
    font-weight: 800;

    border: 1px solid rgba(37, 139, 140, .17);
    border-radius: 999px;

    background: rgba(255, 255, 255, .77);
    box-shadow: 0 6px 18px rgba(23, 62, 80, .045);
}

.eyebrow-icon {
    color: var(--coral);
    font-size: 19px;
}

.hero-title {
    position: relative;

    display: flex;
    flex-direction: column;
    gap: 4px;

    margin: 0 0 21px;

    color: var(--ink);
    font-size: clamp(38px, 4.2vw, 59px);
    font-weight: 900;
    line-height: 1.4;
    letter-spacing: -1.2px;
}

.hero-title-highlight {
    position: relative;
    width: fit-content;
    max-width: 100%;
    color: #167d7d;
}

.hero-title-highlight::after {
    content: "";
    position: absolute;
    z-index: -1;

    right: 0;
    bottom: 2px;
    width: 100%;
    height: 9px;

    border-radius: 999px;

    background: linear-gradient(
        90deg,
        rgba(245, 198, 83, .70),
        rgba(239, 128, 111, .40)
    );

    transform: rotate(-1.5deg);
}

.hero-title-sparkle {
    position: absolute;
    top: 6px;
    left: 12%;

    color: #e76e62;
    font-size: 27px;

    animation: sparkle 4s ease-in-out infinite;
}

.hero-description {
    max-width: 510px;
    margin: 0;

    color: var(--ink-soft);
    font-size: 18px;
    font-weight: 500;
    line-height: 2;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 29px;
}

.hero-btn {
    min-height: 53px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    padding: 13px 23px;

    border: 1px solid transparent;
    border-radius: 14px;

    font-size: 15px;
    font-weight: 800;

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        background .25s ease;
}

.hero-btn:hover {
    transform: translateY(-3px);
}

.hero-btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #258b8c, #176d73);
    box-shadow: 0 10px 24px rgba(37, 139, 140, .22);
}

.hero-btn-primary:hover {
    color: #fff;
    background: linear-gradient(135deg, #197d7e, #115d63);
    box-shadow: 0 14px 30px rgba(37, 139, 140, .27);
}

.btn-arrow {
    font-size: 20px;
    transition: transform .25s ease;
}

.hero-btn-primary:hover .btn-arrow {
    transform: translateX(-4px);
}

.hero-btn-secondary {
    color: var(--ink);
    background: rgba(255, 255, 255, .72);
    border-color: rgba(23, 62, 80, .12);
    box-shadow: 0 5px 16px rgba(23, 62, 80, .035);
}

.hero-btn-secondary:hover {
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 29px;
}

.trust-avatars {
    display: flex;
    direction: ltr;
    padding-left: 4px;
}

.trust-avatars span {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    margin-left: -7px;

    border: 3px solid #fffaf2;
    border-radius: 50%;
    background: #fff;

    font-size: 17px;
    box-shadow: 0 4px 10px rgba(23, 62, 80, .07);
}

.trust-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.trust-copy strong {
    color: var(--ink);
    font-size: 14px;
    font-weight: 900;
}

.trust-copy span {
    color: var(--ink-soft);
    font-size: 13px;
}

/* ==========================================================
   5. HERO VISUAL — IMAGE + FLOATING CARDS
========================================================== */

.hero-visual {
    position: relative;
    z-index: 2;
    isolation: isolate;

    display: grid;
    place-items: center;

    min-width: 0;
    min-height: 440px;
    overflow: visible;
}

.hero-visual .hero-visual-glow {
    position: absolute;
    z-index: 0;

    width: min(88%, 390px);
    aspect-ratio: 1;
    height: auto;

    border-radius: 43% 57% 61% 39% / 44% 40% 60% 56%;

    background: linear-gradient(
        145deg,
        rgba(255, 205, 100, .58),
        rgba(255, 151, 166, .45) 43%,
        rgba(108, 203, 183, .48)
    );

    pointer-events: none;
    animation: hero-glow-float 8s ease-in-out infinite;
}

.hero-visual .hero-image-frame {
    position: relative;
    z-index: 2;

    width: min(100%, 440px);
    height: 375px;
    min-width: 0;

    overflow: hidden;

    border: 8px solid rgba(255, 255, 255, .91);
    border-radius: 42% 42% 31% 31% / 34% 34% 25% 25%;

    background: #e8f3f6;

    box-shadow:
        0 25px 55px rgba(23, 62, 80, .12),
        0 7px 20px rgba(23, 62, 80, .045);
}

.hero-visual .hero-image-frame .hero-image {
    position: absolute;
    inset: 0;

    display: block;
    width: 100%;
    height: 100%;
    max-width: none;

    margin: 0;
    padding: 0;

    object-fit: cover;
    object-position: center 35%;
    border: 0;
    border-radius: inherit;
}

/* Floating image labels */

.hero-visual > .hero-image-top-label,
.hero-visual > .hero-image-bottom-label {
    position: absolute;
    z-index: 10;

    display: flex;
    align-items: center;
    gap: 9px;

    max-width: 76%;

    color: var(--ink);
    background: rgba(255, 255, 255, .96);

    border: 1px solid rgba(255, 255, 255, .96);
    border-radius: 14px;

    box-shadow: 0 10px 27px rgba(23, 62, 80, .11);
}

.hero-visual > .hero-image-top-label {
    top: 7%;
    right: 0;
    padding: 10px 13px;

    font-size: 12px;
    font-weight: 800;
}

.hero-visual .label-star {
    color: #d9a51d;
    font-size: 18px;
}

.hero-visual > .hero-image-bottom-label {
    bottom: 7%;
    left: 0;
    padding: 10px 12px;
}

.hero-visual .bottom-label-icon {
    width: 35px;
    height: 35px;
    flex: 0 0 35px;

    display: grid;
    place-items: center;

    border-radius: 10px;
    background: #fff0bd;
    font-size: 18px;
}

.hero-visual .hero-image-bottom-label > div,
.hero-visual .floating-card > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hero-visual .hero-image-bottom-label strong,
.hero-visual .floating-card strong {
    color: var(--ink);
    font-size: 12px;
    font-weight: 900;
    line-height: 1.5;
}

.hero-visual .hero-image-bottom-label > div > span,
.hero-visual .floating-card > div > span {
    color: #607783;
    font-size: 11px;
    line-height: 1.5;
}

/* Floating info cards */

.hero-visual > .floating-card {
    position: absolute;
    z-index: 12;

    display: flex;
    align-items: center;
    gap: 9px;

    width: max-content;
    max-width: 47%;
    padding: 11px 13px;

    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(255, 255, 255, .96);
    border-radius: 15px;

    box-shadow: 0 12px 30px rgba(23, 62, 80, .12);

    animation: float-card 5s ease-in-out infinite;
}

.hero-visual > .floating-card-top {
    top: 16%;
    left: 0;
}

.hero-visual > .floating-card-bottom {
    right: 0;
    bottom: 15%;
    animation-delay: -2.5s;
}

.hero-visual .floating-icon {
    width: 35px;
    height: 35px;
    flex: 0 0 35px;

    display: grid;
    place-items: center;

    border-radius: 11px;
    font-size: 17px;
}

.floating-icon-yellow {
    color: #9a7414;
    background: #fff0bd;
}

.floating-icon-purple {
    color: #7560b1;
    background: #eee8ff;
}

/* ==========================================================
   6. SHARED SECTION HEADINGS
========================================================== */

.section-heading {
    position: relative;
    max-width: 750px;
    margin: 0 auto 40px;
    text-align: center;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 13px;

    color: #176d73;
    font-size: 13px;
    font-weight: 900;
}

.section-kicker span:first-child {
    color: #e76e62;
    font-size: 18px;
}

.section-heading h2 {
    margin: 0;

    color: var(--ink);
    font-size: clamp(29px, 3vw, 40px);
    font-weight: 900;
    line-height: 1.5;
    letter-spacing: -.6px;
}

.heading-highlight {
    position: relative;
    display: inline-block;
    color: #167d7d;
}

.section-heading > p {
    max-width: 610px;
    margin: 13px auto 0;

    color: var(--ink-soft);
    font-size: 16px;
    line-height: 1.9;
}

/* ==========================================================
   7. LEARNING PATHS — COLORFUL CARDS, NO SECTION PANEL
========================================================== */

.paths-section {
    padding-top: 70px;
    padding-bottom: 82px;
    overflow: hidden;
}

/* Decorative shapes only; no background panel */

.paths-section::before,
.paths-section::after {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;

    border-radius: 50%;
    filter: blur(1px);
}

.paths-section::before {
    width: 210px;
    height: 210px;
    top: 100px;
    right: -155px;

    border: 25px solid rgba(245, 198, 83, .15);
}

.paths-section::after {
    width: 180px;
    height: 180px;
    left: -125px;
    bottom: 45px;

    border: 22px solid rgba(136, 114, 197, .12);
}

.paths-section .section-heading {
    max-width: 790px;
    margin-bottom: 38px;
}

.paths-section .section-kicker {
    padding: 7px 14px;

    border: 1px solid rgba(37, 139, 140, .15);
    border-radius: 999px;
    background: rgba(255, 255, 255, .55);
}

.paths-section .section-heading h2 {
    font-size: clamp(29px, 3vw, 40px);
}

.paths-section .section-heading p {
    max-width: 690px;
}

/* Six cards on wide screens */

.paths-section .paths-container {
    position: relative;
    z-index: 1;

    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-items: stretch;
    gap: 13px;

    width: min(1450px, calc(100% - 48px));
    margin: 0 auto;

    background: transparent !important;
}

/* Path card base */

.paths-section .path-card,
.paths-section .path-card-compact {
    --accent: #267e78;
    --surface: #d9eee6;
    --card-ink: #173f42;
    --icon-bg: rgba(255, 255, 255, .70);

    position: relative;
    isolation: isolate;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;

    min-width: 0;
    min-height: 260px;
    padding: 23px 12px 19px;

    overflow: hidden;

    color: var(--card-ink);
    text-align: center;
    text-decoration: none;

    background: var(--surface);

    border: 1px solid rgba(35, 61, 57, .08);
    border-radius: 23px 23px 23px 8px;

    box-shadow:
        0 4px 0 rgba(38, 62, 57, .035),
        0 8px 20px rgba(36, 61, 54, .055);

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}

/* Decorative shapes within each card */

.paths-section .path-card::before,
.paths-section .path-card-compact::before {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;

    width: 95px;
    height: 95px;
    top: -43px;
    right: -32px;

    border: 17px solid rgba(255, 255, 255, .35);
    border-radius: 43% 57% 52% 48%;

    transform: rotate(25deg);
    transition: transform .3s ease;
}

.paths-section .path-card::after,
.paths-section .path-card-compact::after {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;

    width: 42px;
    height: 42px;
    bottom: -16px;
    left: -12px;

    border: 8px solid rgba(255, 255, 255, .32);
    border-radius: 50%;
}

.paths-section .path-card > *,
.paths-section .path-card-compact > * {
    position: relative;
    z-index: 1;
}

.paths-section .path-card:hover,
.paths-section .path-card-compact:hover {
    transform: translateY(-6px) rotate(-.4deg);

    box-shadow:
        0 5px 0 rgba(38, 62, 57, .025),
        0 16px 28px rgba(36, 61, 54, .12);
}

.paths-section .path-card:hover::before,
.paths-section .path-card-compact:hover::before {
    transform: translate(-4px, 4px) rotate(40deg);
}

/* Gentle pastel colors — not overly bright */

.paths-section .path-yellow {
    --accent: #93620e;
    --surface: #f7e8b6;
    --card-ink: #594316;
    --icon-bg: #fff8e4;
}

.paths-section .path-teal {
    --accent: #176b65;
    --surface: #d3eee5;
    --card-ink: #174c47;
    --icon-bg: #f0fbf6;
}

.paths-section .path-blue {
    --accent: #285d86;
    --surface: #d8eafa;
    --card-ink: #234c68;
    --icon-bg: #f1f8ff;
}

.paths-section .path-purple {
    --accent: #5e477f;
    --surface: #e7def6;
    --card-ink: #48375f;
    --icon-bg: #f8f4ff;
}

.paths-section .path-pink {
    --accent: #8e3e5a;
    --surface: #f7dfe7;
    --card-ink: #71374b;
    --icon-bg: #fff4f7;
}

.paths-section .path-green {
    --accent: #41652e;
    --surface: #e1edce;
    --card-ink: #38512b;
    --icon-bg: #f6faed;
}

/* Path icon */

.paths-section .path-icon {
    width: 54px;
    height: 54px;
    min-width: 54px;
    flex: 0 0 54px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 17px;

    color: var(--accent);
    background: var(--icon-bg);

    border: 1px solid rgba(255, 255, 255, .75);
    border-radius: 17px 17px 17px 6px;

    box-shadow: 0 4px 11px rgba(37, 56, 47, .055);

    font-size: 26px;
    line-height: 1;

    transition:
        transform .25s ease,
        border-radius .25s ease;
}

.paths-section .path-card:hover .path-icon,
.paths-section .path-card-compact:hover .path-icon {
    transform: translateY(-3px) rotate(-5deg);
    border-radius: 50%;
}

/* Path title */

.paths-section .path-card h3,
.paths-section .path-card-compact h3 {
    width: 100%;
    max-width: 100%;

    margin: 0 auto 12px;

    color: var(--card-ink);

    font-family: "Cairo", "Tajawal", sans-serif;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.85;

    text-align: center;
    overflow-wrap: anywhere;
    text-wrap: balance;
}

/* Preserve descriptions if present */

.paths-section .path-card p,
.paths-section .path-card-compact p {
    width: 100%;
    margin: 0 auto 12px;

    color: var(--card-ink);
    opacity: .88;

    font-size: 12px;
    font-weight: 600;
    line-height: 1.8;
}

/* Course count */

.paths-section .path-course-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;

    width: fit-content;
    max-width: 100%;
    margin: auto auto 0;
    padding: 6px 9px;

    color: var(--card-ink);
    background: rgba(255, 255, 255, .65);

    border: 1px solid rgba(255, 255, 255, .75);
    border-radius: 999px;

    font-size: 11px;
    font-weight: 900;
    line-height: 1.5;
}

.paths-section .path-card-number {
    display: none !important;
}

/* Path links */

.paths-section .path-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    margin-top: 12px;

    color: var(--card-ink);
    font-size: 12px;
    font-weight: 900;

    transition: gap .2s ease;
}

.paths-section .path-card:hover .path-link,
.paths-section .path-card-compact:hover .path-link {
    gap: 10px;
}

/* ==========================================================
   8. LATEST COURSES — CREATIVE, COLORFUL & LIVELY
   Unified page background | Editorial cards | RTL
========================================================== */

.courses-section {
    position: relative;
    padding: 55px 0 95px;
    overflow: hidden;
    background: transparent !important;
}

/* Soft floating decorative accents */

.courses-section::before,
.courses-section::after {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
    border-radius: 50%;
}

.courses-section::before {
    width: 190px;
    height: 190px;
    top: 150px;
    right: -135px;
    border: 25px solid rgba(245, 198, 83, .18);
}

.courses-section::after {
    width: 150px;
    height: 150px;
    bottom: 80px;
    left: -105px;
    border: 20px solid rgba(136, 114, 197, .13);
}

/* Heading layout */

.courses-heading-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 38px;
}

.section-heading-right {
    position: relative;
    max-width: 720px;
    margin: 0;
    text-align: right;
}

.section-heading-right .section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 11px;
    padding: 7px 13px;
    color: #176d73;
    background: rgba(255, 255, 255, .68);
    border: 1px solid rgba(37, 139, 140, .15);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.section-heading-right h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(29px, 3vw, 39px);
    font-weight: 900;
    line-height: 1.5;
    letter-spacing: -.5px;
}

.section-heading-right h2 .heading-highlight {
    color: #167d7d;
}

.section-heading-right > p {
    max-width: 620px;
    margin: 10px 0 0;
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1.9;
}

/* View all courses link */

.view-all-link {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 11px 17px;
    color: #176d73;
    background: rgba(255, 255, 255, .76);
    border: 1px solid rgba(37, 139, 140, .20);
    border-radius: 14px;
    font-size: 13px;
    font-weight: 900;
    box-shadow: 0 5px 15px rgba(23, 62, 80, .035);
    transition:
        transform .25s ease,
        box-shadow .25s ease,
        background .25s ease;
}

.view-all-link:hover {
    color: #fff;
    background: #176d73;
    border-color: #176d73;
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(23, 109, 115, .18);
}

/* Courses grid */

.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 24px;
}

/* Individual course card */

.course-card {
    --course-accent: #258b8c;
    --course-soft: #e2f2ec;
    --course-ink: #174c47;

    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;

    background: rgba(255, 255, 255, .90);
    border: 1px solid rgba(23, 62, 80, .075);
    border-radius: 24px 24px 24px 10px;

    box-shadow:
        0 4px 0 rgba(23, 62, 80, .025),
        0 10px 24px rgba(23, 62, 80, .055);

    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}

/* A colorful top edge for each card */

.course-card::before {
    content: "";
    position: absolute;
    z-index: 3;
    top: 0;
    right: 0;
    left: 0;
    height: 5px;
    background: var(--course-accent);
    transform: scaleX(.35);
    transform-origin: right;
    transition: transform .3s ease;
}

.course-card:hover {
    transform: translateY(-7px);
    border-color: color-mix(in srgb, var(--course-accent) 35%, white);
    box-shadow: 0 17px 34px rgba(23, 62, 80, .12);
}

.course-card:hover::before {
    transform: scaleX(1);
}

/* Different soft color identities */

.course-card-yellow {
    --course-accent: #c18a19;
    --course-soft: #fff1c8;
    --course-ink: #725016;
}

.course-card-teal {
    --course-accent: #258b8c;
    --course-soft: #dff3e9;
    --course-ink: #185e59;
}

.course-card-purple {
    --course-accent: #8872c5;
    --course-soft: #eee7fb;
    --course-ink: #594681;
}

.course-card-pink {
    --course-accent: #c45e82;
    --course-soft: #fbe5ec;
    --course-ink: #813b55;
}

.course-card-blue {
    --course-accent: #4f91bd;
    --course-soft: #e1f0fb;
    --course-ink: #315d7c;
}

.course-card-green {
    --course-accent: #65945a;
    --course-soft: #e7f1dc;
    --course-ink: #426638;
}

/* Image area */

.course-image-wrap {
    position: relative;
    display: block;
    flex: 0 0 auto;
    height: 205px;
    margin: 10px 10px 0;
    overflow: hidden;
    isolation: isolate;

    background: var(--course-soft);
    border-radius: 18px 18px 18px 7px;
}

.course-image-wrap::after {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 35% 0 0;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(23, 45, 52, .17)
    );
}

.course-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .55s cubic-bezier(.2, .7, .2, 1);
}

.course-card:hover .course-image {
    transform: scale(1.07);
}

/* Soft image backgrounds if a course has no image */

.course-card-yellow .course-image-wrap {
    background: #fff0c2;
}

.course-card-teal .course-image-wrap {
    background: #d5f0e8;
}

.course-card-purple .course-image-wrap {
    background: #e8dfff;
}

.course-card-pink .course-image-wrap {
    background: #f8dfe8;
}

.course-card-blue .course-image-wrap {
    background: #dceefa;
}

.course-card-green .course-image-wrap {
    background: #e5efd7;
}

.course-image-placeholder {
    position: relative;
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    overflow: hidden;

    background-image: radial-gradient(
        rgba(23, 62, 80, .09) 1px,
        transparent 1px
    );
    background-size: 17px 17px;
}

.course-image-placeholder::before,
.course-image-placeholder::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 50%;
}

.course-image-placeholder::before {
    width: 125px;
    height: 125px;
    top: -45px;
    right: -25px;
}

.course-image-placeholder::after {
    width: 90px;
    height: 90px;
    bottom: -40px;
    left: -15px;
}

.course-image-placeholder span {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    color: var(--course-ink);
    background: rgba(255, 255, 255, .76);
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 25px 25px 25px 8px;
    font-size: 43px;
    box-shadow: 0 8px 20px rgba(23, 62, 80, .06);
    transition: transform .3s ease;
}

.course-card:hover .course-image-placeholder span {
    transform: rotate(-7deg) scale(1.05);
}

/* Image badge */

.course-image-badge {
    position: absolute;
    z-index: 2;
    right: 12px;
    bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: calc(100% - 24px);
    padding: 7px 11px;

    color: var(--course-ink);
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(255, 255, 255, .95);
    border-radius: 10px;

    font-size: 11px;
    font-weight: 900;
    line-height: 1.5;
    box-shadow: 0 4px 12px rgba(23, 62, 80, .08);
}

/* Content area */

.course-card-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    padding: 19px 19px 17px;
}

/* Actual learning path name */

.course-category-label {
    display: inline-flex;
    align-items: flex-start;
    gap: 7px;
    max-width: 100%;
    margin: 0 0 13px;
    padding: 7px 10px;

    color: var(--course-ink);
    background: var(--course-soft);
    border: 1px solid color-mix(in srgb, var(--course-accent) 14%, white);
    border-radius: 9px 9px 9px 3px;

    font-size: 11px;
    font-weight: 900;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.course-category-label::before {
    content: "✦";
    flex: 0 0 auto;
    color: var(--course-accent);
    font-size: 12px;
}

/* Course title */

.course-card h3 {
    width: 100%;
    margin: 0 0 10px;
    color: var(--ink);
    font-size: 19px;
    font-weight: 900;
    line-height: 1.7;
    overflow-wrap: anywhere;
    text-wrap: balance;
}

/* Course description */

.course-card p {
    width: 100%;
    flex: 1;
    margin: 0;
    color: var(--ink-soft);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.95;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
}

/* Details link */

.course-card-link {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    margin-top: 18px;
    padding: 13px 13px;

    color: var(--course-ink);
    background: var(--course-soft);
    border: 1px solid color-mix(in srgb, var(--course-accent) 12%, white);
    border-radius: 12px 12px 12px 5px;

    font-size: 13px;
    font-weight: 900;

    transition:
        color .25s ease,
        background .25s ease,
        transform .25s ease,
        box-shadow .25s ease;
}

.course-card-link span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform .25s ease;
}

.course-card-link:hover {
    color: #fff;
    background: var(--course-accent);
    border-color: var(--course-accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px color-mix(in srgb, var(--course-accent) 22%, transparent);
}

.course-card-link:hover span {
    transform: translateX(-4px);
}

/* Empty state */

.courses-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 44px 24px;
    text-align: center;

    background: rgba(255, 255, 255, .65);
    border: 1px dashed rgba(37, 139, 140, .28);
    border-radius: 24px;
}

.empty-icon {
    display: grid;
    place-items: center;
    width: 75px;
    height: 75px;
    margin-bottom: 16px;
    background: #fff1c8;
    border-radius: 24px;
    font-size: 39px;
}

.courses-empty h3 {
    margin: 0 0 10px;
    color: var(--ink);
    font-size: 23px;
    font-weight: 900;
}

.courses-empty p {
    margin: 0 0 22px;
    color: var(--ink-soft);
    line-height: 1.9;
}

/* ==========================================================
   9. FEATURES — MATCHING CARD FAMILY, NO SECTION BACKGROUND
========================================================== */

.features-section {
    padding: 75px 0 85px;
}

.features-inner {
    width: min(var(--container), calc(100% - 64px));
    margin-inline: auto;
}

.features-section .section-heading {
    margin-bottom: 40px;
}

.features-section .section-kicker {
    padding: 8px 14px;

    border: 1px solid rgba(37, 139, 140, .14);
    border-radius: 999px;

    background: rgba(255, 255, 255, .55);
}

.features-section .section-heading > p {
    max-width: 610px;
}

/* Four equal cards */

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: 18px;
}

.features-grid .feature-card {
    --card-accent: #258b8c;
    --card-tint: #e0f4ed;

    position: relative;
    isolation: isolate;

    min-width: 0;
    min-height: 260px;
    height: 100%;
    overflow: hidden;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 13px;

    padding: 27px 21px;

    text-align: center;

    border: 1px solid rgba(23, 62, 80, .065);
    border-top: 4px solid var(--card-accent);
    border-radius: 23px;

    background: rgba(255, 255, 255, .76);

    box-shadow: 0 7px 22px rgba(23, 62, 80, .045);

    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}

/* Small corner decoration */

.features-grid .feature-card::before {
    content: "";
    position: absolute;
    z-index: -1;

    width: 115px;
    height: 115px;
    top: -57px;
    left: -48px;

    border: 17px solid var(--card-tint);
    border-radius: 50%;

    opacity: .8;

    transition: transform .35s ease;
}

.features-grid .feature-card::after {
    content: "✦";
    position: absolute;
    top: 17px;
    left: 18px;

    color: var(--card-accent);
    font-size: 15px;
    opacity: .65;
}

.features-grid .feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card);
}

.features-grid .feature-card:hover::before {
    transform: scale(1.15) rotate(12deg);
}

/* Feature card colors */

.features-grid .feature-yellow {
    --card-accent: #a97a12;
    --card-tint: #f7e6a8;
    background: rgba(255, 249, 232, .79);
}

.features-grid .feature-teal {
    --card-accent: #208579;
    --card-tint: #c9e9dc;
    background: rgba(239, 249, 243, .80);
}

.features-grid .feature-purple {
    --card-accent: #7860b0;
    --card-tint: #ded3f5;
    background: rgba(246, 241, 255, .80);
}

.features-grid .feature-pink {
    --card-accent: #b64b72;
    --card-tint: #f5ccda;
    background: rgba(255, 242, 247, .80);
}

/* Smaller icons, stronger text */

.features-grid .feature-icon {
    position: relative;
    z-index: 1;

    width: 52px;
    height: 52px;
    flex: 0 0 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 4px auto 4px;

    color: var(--card-accent);
    background: rgba(255, 255, 255, .88);

    border: 1px solid rgba(255, 255, 255, .95);
    border-radius: 16px;

    box-shadow: 0 5px 14px rgba(23, 62, 80, .055);

    font-family: "Apple Color Emoji", "Segoe UI Emoji",
                 "Noto Color Emoji", sans-serif;

    font-size: 29px;
    line-height: 1;

    transition: transform .3s ease;
}

.features-grid .feature-card:hover .feature-icon {
    transform: translateY(-3px) rotate(-4deg);
}

.features-grid .feature-card h3 {
    position: relative;
    z-index: 1;

    width: 100%;
    margin: 0;

    color: var(--ink);
    font-size: 19px;
    font-weight: 900;
    line-height: 1.7;
}

.features-grid .feature-card p {
    position: relative;
    z-index: 1;

    width: 100%;
    margin: 0;

    color: var(--ink-soft);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.95;
}

.features-grid .feature-card .feature-extra {
    display: flex;
    align-items: center;
    gap: 7px;

    margin-top: auto;
    padding-top: 15px;

    color: var(--card-accent);
    font-size: 12px;
    font-weight: 800;
}

/* ==========================================================
   10. FINAL CTA — ONE FLOATING FEATURE CARD
========================================================== */

/*
   This is intentionally the one prominent call-to-action card.
   It does not paint the entire section or interrupt the page
   background.
*/

.final-cta {
    position: relative;
    isolation: isolate;

    display: grid;
    grid-template-columns: minmax(0, 1fr) 200px;
    align-items: center;
    gap: 30px;

    width: min(var(--container), calc(100% - 64px));
    min-height: 315px;

    margin: 25px auto 0px;
    padding: 46px 55px;

    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, .92);
    border-radius: 30px;

    background:
        radial-gradient(
            circle at 7% 100%,
            rgba(255, 200, 86, .25),
            transparent 240px
        ),
        radial-gradient(
            circle at 100% 0,
            rgba(246, 150, 190, .22),
            transparent 250px
        ),
        linear-gradient(
            120deg,
            rgba(226, 245, 235, .91),
            rgba(241, 235, 255, .91) 58%,
            rgba(255, 238, 243, .91)
        );

    box-shadow: 0 13px 35px rgba(23, 62, 80, .06);
}

.cta-content {
    position: relative;
    z-index: 2;
    min-width: 0;
}

.cta-kicker {
    display: inline-block;
    margin-bottom: 14px;

    color: #176d73;
    font-size: 13px;
    font-weight: 900;
}

.cta-content h2 {
    max-width: 650px;
    margin: 0 0 14px;

    color: var(--ink);
    font-size: clamp(29px, 3.2vw, 42px);
    font-weight: 900;
    line-height: 1.5;
}

.cta-content h2 span {
    color: #167d7d;
}

.cta-content p {
    max-width: 550px;
    margin: 0;

    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1.95;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;

    min-height: 51px;
    margin-top: 23px;
    padding: 13px 22px;

    border-radius: 13px;

    background: var(--ink);
    color: #fff;

    font-size: 14px;
    font-weight: 900;

    box-shadow: 0 8px 20px rgba(23, 62, 80, .14);

    transition: transform .25s ease, background .25s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    background: var(--teal-dark);
    color: #fff;
}

/* CTA illustration */

.cta-illustration {
    position: relative;

    min-width: 0;
    min-height: 190px;

    display: grid;
    place-items: center;
}

.cta-book {
    position: relative;
    z-index: 1;

    width: 130px;
    height: 130px;

    display: grid;
    place-items: center;

    border: 8px solid rgba(255, 255, 255, .78);
    border-radius: 31px;

    background: rgba(255, 255, 255, .78);
    box-shadow: 0 16px 32px rgba(23, 62, 80, .09);

    font-size: 64px;
    transform: rotate(-7deg);
}

.cta-star {
    position: absolute;
    color: #e76e62;
    font-size: 32px;
}

.cta-star-one {
    top: 8px;
    right: 2px;
}

.cta-star-two {
    bottom: 9px;
    left: 3px;
    color: var(--purple);
}

.cta-bulb {
    position: absolute;
    z-index: 2;

    top: 3px;
    left: 10px;

    width: 48px;
    height: 48px;

    display: grid;
    place-items: center;

    border: 3px solid rgba(255, 255, 255, .95);
    border-radius: 15px;

    background: #fff0bd;
    font-size: 25px;

    transform: rotate(8deg);
}

.cta-decoration {
    position: absolute;
    z-index: -1;
    pointer-events: none;
}

.cta-decoration-one {
    top: 15px;
    left: 35%;
    color: rgba(37, 139, 140, .27);
    font-size: 50px;
}

.cta-decoration-two {
    right: 30%;
    bottom: 14px;
    color: rgba(136, 114, 197, .27);
    font-size: 40px;
}

.cta-decoration-three {
    width: 140px;
    height: 140px;

    right: -65px;
    bottom: -75px;

    border: 18px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
}

/* ==========================================================
   11. ANIMATIONS
========================================================== */

@keyframes float-card {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-7px);
    }
}

@keyframes sparkle {
    0%, 100% {
        transform: rotate(0) scale(1);
        opacity: 1;
    }

    50% {
        transform: rotate(15deg) scale(1.12);
        opacity: .75;
    }
}

@keyframes hero-glow-float {
    0%, 100% {
        transform: rotate(-8deg) translateY(0);
    }

    50% {
        transform: rotate(-3deg) translateY(-8px);
    }
}

/* ==========================================================
   12. LARGE TABLETS + SMALL LAPTOPS
========================================================== */

@media (max-width: 1250px) {
    .paths-section .paths-container {
        display: flex;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 15px;

        width: calc(100% - 40px);
        max-width: 100%;
        margin-inline: auto;

        padding: 8px 3px 18px;

        overflow-x: auto;
        overflow-y: hidden;

        scroll-snap-type: x proximity;
        scroll-padding-inline: 3px;

        -webkit-overflow-scrolling: touch;
        overscroll-behavior-inline: contain;
    }

    .paths-section .path-card,
    .paths-section .path-card-compact {
        flex: 0 0 210px;
        width: 210px;
        min-width: 210px;
        min-height: 265px;

        scroll-snap-align: start;
    }

    .paths-section .path-card h3,
    .paths-section .path-card-compact h3 {
        font-size: 16px;
    }

    .paths-section .paths-container::-webkit-scrollbar {
        height: 5px;
    }

    .paths-section .paths-container::-webkit-scrollbar-track {
        background: rgba(60, 92, 78, .08);
        border-radius: 20px;
    }

    .paths-section .paths-container::-webkit-scrollbar-thumb {
        background: #9abdb0;
        border-radius: 20px;
    }
}

@media (max-width: 1050px) {
    .hero {
        min-height: auto;
        padding: 55px 0 65px;
    }

    .hero-inner {
        width: min(calc(100% - 44px), 900px);
        gap: 28px;
    }

    .hero-title {
        font-size: clamp(35px, 4.5vw, 50px);
    }

    .hero-visual {
        min-height: 390px;
    }

    .hero-visual .hero-image-frame {
        width: min(100%, 365px);
        height: 325px;
    }

    .hero-visual .hero-visual-glow {
        width: 82%;
    }

    .hero-visual > .floating-card {
        max-width: 49%;
    }

    .courses-grid {
        gap: 16px;
    }

    .course-image-wrap {
        height: 145px;
    }

    .course-card-content {
        padding: 14px;
    }

    .course-card h3 {
        font-size: 16px;
    }

    .features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 17px;
    }

    .features-grid .feature-card {
        min-height: 235px;
        padding: 24px;
    }

    .final-cta {
        padding: 40px;
    }
}

/* ==========================================================
   13. MOBILE
========================================================== */

@media (max-width: 760px) {
    .section-shell,
    .hero-inner,
    .features-inner {
        width: calc(100% - 36px);
    }

    .hero {
        padding: 42px 0 48px;
    }

    .hero-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
    }

    .hero-eyebrow {
        justify-content: center;
        margin: 0 auto 20px;
        font-size: 12px;
    }

    .hero-title {
        align-items: center;
        font-size: clamp(33px, 8vw, 46px);
        line-height: 1.45;
        letter-spacing: -.7px;
    }

    .hero-title-sparkle {
        top: 0;
        left: 3%;
        font-size: 22px;
    }

    .hero-description {
        max-width: 540px;
        margin-inline: auto;
        font-size: 15px;
        line-height: 1.95;
    }

    .hero-actions {
        justify-content: center;
        gap: 10px;
        margin-top: 24px;
    }

    .hero-btn {
        min-height: 48px;
        padding: 11px 16px;
        font-size: 13px;
    }

    .hero-trust {
        justify-content: center;
        margin-top: 22px;
    }

    /* Hero image */

    .hero-visual {
        width: 100%;
        min-height: 345px;
        margin-top: 4px;
        padding: 15px 0;
    }

    .hero-visual .hero-image-frame {
        width: min(78%, 340px);
        height: 290px;
        border-width: 7px;
    }

    .hero-visual .hero-visual-glow {
        width: 75%;
    }

    .hero-visual > .hero-image-top-label {
        top: 7%;
        right: 0;
        gap: 6px;
        padding: 8px 9px;
        font-size: 10px;
    }

    .hero-visual > .hero-image-bottom-label {
        bottom: 6%;
        left: 0;
        gap: 7px;
        padding: 8px 9px;
    }

    .hero-visual .bottom-label-icon {
        width: 29px;
        height: 29px;
        flex-basis: 29px;
        font-size: 15px;
    }

    .hero-visual .hero-image-bottom-label strong,
    .hero-visual .floating-card strong {
        font-size: 10px;
    }

    .hero-visual .hero-image-bottom-label > div > span,
    .hero-visual .floating-card > div > span {
        font-size: 9px;
    }

    .hero-visual > .floating-card {
        max-width: 44%;
        gap: 6px;
        padding: 8px;
        border-radius: 12px;
    }

    .hero-visual > .floating-card-top {
        top: 12%;
        left: 0;
    }

    .hero-visual > .floating-card-bottom {
        right: 0;
        bottom: 12%;
    }

    .hero-visual .floating-icon {
        width: 27px;
        height: 27px;
        flex-basis: 27px;
        font-size: 13px;
    }

    /* Shared headings */

    .section-heading {
        margin-bottom: 29px;
    }

    .section-heading h2 {
        font-size: clamp(26px, 6vw, 34px);
        line-height: 1.55;
    }

    .section-heading > p {
        font-size: 14px;
        line-height: 1.9;
    }

    /* Learning paths */

    .paths-section {
        padding: 48px 0 58px;
    }

    .paths-section .section-heading {
        margin-bottom: 26px;
        padding-inline: 18px;
    }

    .paths-section .section-heading h2 {
        font-size: 27px;
    }

    .paths-section .section-heading p {
        font-size: 14px;
    }

    .paths-section .paths-container {
        width: calc(100% - 22px);
        gap: 13px;
    }

    .paths-section .path-card,
    .paths-section .path-card-compact {
        flex-basis: 205px;
        width: 205px;
        min-width: 205px;
        min-height: 265px;
        padding: 22px 14px 19px;
    }

    .paths-section .path-icon {
        width: 54px;
        height: 54px;
        min-width: 54px;
        flex-basis: 54px;
        margin-bottom: 16px;
        font-size: 25px;
    }

    .paths-section .path-card h3,
    .paths-section .path-card-compact h3 {
        font-size: 16px;
        line-height: 1.85;
    }

    /* Courses */

    .courses-section {
        padding: 32px 0 65px;
    }

    .courses-heading-row {
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 24px;
    }

    .section-heading-right h2 {
        font-size: 25px;
    }

    .section-heading-right > p {
        font-size: 13px;
    }

    .view-all-link {
        margin-top: 30px;
        padding: 9px 10px;
        font-size: 11px;
        white-space: nowrap;
    }

    .courses-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 13px;
    }

    .course-card {
        border-radius: 15px;
    }

    .course-image-wrap {
        height: 125px;
    }

    .course-card-content {
        padding: 12px;
    }

    .course-category-label {
        margin-bottom: 8px;
        padding: 5px 7px;
        font-size: 10px;
    }

    .course-card h3 {
        margin-bottom: 7px;
        font-size: 14px;
        line-height: 1.65;
    }

    .course-card p {
        font-size: 12px;
        line-height: 1.8;
    }

    .course-card-link {
        margin-top: 11px;
        padding-top: 10px;
        font-size: 11px;
    }

    .course-image-placeholder span {
        font-size: 37px;
    }

    /* Features */

    .features-section {
        padding: 48px 0 55px;
    }

    .features-section .section-heading {
        margin-bottom: 27px;
    }

    .features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 13px;
    }

    .features-grid .feature-card {
        min-height: 0;
        padding: 21px 14px 23px;
        gap: 11px;
        border-radius: 19px;
    }

    .features-grid .feature-icon {
        width: 45px;
        height: 45px;
        flex-basis: 45px;
        margin: 3px auto;
        border-radius: 13px;
        font-size: 25px;
    }

    .features-grid .feature-card h3 {
        font-size: 16px;
        line-height: 1.65;
    }

    .features-grid .feature-card p {
        font-size: 13px;
        line-height: 1.85;
    }

    /* Final CTA */

    .final-cta {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;

        width: calc(100% - 36px);
        min-height: 0;

        margin: 18px auto 0px;
        padding: 30px 23px 22px;

        border-radius: 23px;
        text-align: center;
    }

    .cta-content h2 {
        font-size: clamp(27px, 7vw, 35px);
    }

    .cta-content p {
        font-size: 14px;
    }

    .cta-button {
        min-height: 48px;
        font-size: 13px;
    }

    .cta-illustration {
        min-height: 140px;
    }

    .cta-book {
        width: 105px;
        height: 105px;
        border-radius: 25px;
        font-size: 52px;
    }

    .cta-bulb {
        top: 0;
        left: calc(50% - 90px);
        width: 42px;
        height: 42px;
        font-size: 22px;
    }

    .cta-star-one {
        right: calc(50% - 90px);
    }

    .cta-star-two {
        left: calc(50% - 90px);
    }
}

/* ==========================================================
   14. SMALL MOBILE
========================================================== */

@media (max-width: 390px) {
    .section-shell,
    .hero-inner,
    .features-inner {
        width: calc(100% - 28px);
    }

    .hero {
        padding-top: 35px;
    }

    .hero-title {
        font-size: 31px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-btn {
        width: 100%;
    }

    .hero-visual {
        min-height: 310px;
    }

    .hero-visual .hero-image-frame {
        width: 76%;
        height: 255px;
    }

    .hero-visual > .floating-card {
        max-width: 43%;
        gap: 5px;
        padding: 7px;
    }

    .hero-visual > .hero-image-top-label,
    .hero-visual > .hero-image-bottom-label {
        max-width: 72%;
        padding: 7px;
    }

    .paths-section .paths-container {
        width: calc(100% - 18px);
    }

    .paths-section .path-card,
    .paths-section .path-card-compact {
        flex-basis: 195px;
        width: 195px;
        min-width: 195px;
        min-height: 250px;
        padding-inline: 13px;
    }

    .paths-section .path-icon {
        width: 49px;
        height: 49px;
        min-width: 49px;
        flex-basis: 49px;
        font-size: 23px;
    }

    .paths-section .path-card h3,
    .paths-section .path-card-compact h3 {
        font-size: 15px;
    }

    .courses-heading-row {
        flex-direction: column;
        gap: 10px;
    }

    .view-all-link {
        margin-top: 0;
    }

    .courses-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 15px;
    }

    .course-image-wrap {
        height: 175px;
    }

    .course-card-content {
        padding: 15px;
    }

    .course-card h3 {
        font-size: 16px;
    }

    .course-card p {
        font-size: 13px;
    }

    .features-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 13px;
    }

    .features-grid .feature-card {
        padding: 22px 20px;
    }

    .features-grid .feature-icon {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
        font-size: 26px;
    }

    .features-grid .feature-card h3 {
        font-size: 18px;
    }

    .features-grid .feature-card p {
        font-size: 14px;
    }

    .final-cta {
        width: calc(100% - 28px);
        padding: 27px 18px 20px;
    }
}

/* ==========================================================
   15. ACCESSIBILITY — REDUCED MOTION
========================================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .course-card:hover,
    .course-card:hover .course-image,
    .features-grid .feature-card:hover,
    .hero-visual > .floating-card {
        animation: none !important;
        transform: none;
    }
}

/* ==========================================================
   KALIMA WA QALAM
   ONE CONTINUOUS COLORFUL HOMEPAGE BACKGROUND
   Soft gradients • Seamless sections • RTL • Responsive
========================================================== */



/* 2. REMOVE THE BOXED-IN LOOK OF THE SECTIONS */

.hero,
.paths-section,
.courses-section,
.features-section,
.cta-section,
.final-cta,
.promo-section {
    position: relative;
    isolation: isolate;

    background-color: transparent !important;
    background-image: none;
    border-top: none;
    border-bottom: none;
    box-shadow: none;
}

/* Keep section content above decorative backgrounds */

.hero > *,
.paths-section > *,
.courses-section > *,
.features-section > *,
.cta-section > *,
.final-cta > *,
.promo-section > * {
    position: relative;
    z-index: 1;
}

/* 3. KEEP THE HERO COLORFUL WITHOUT A HARD EDGE */

.hero {
    overflow: hidden;
    background-color: transparent !important;
    border: none;
    box-shadow: none;
}

/* Remove decorative section-wide overlays that create horizontal lines */

.paths-section::before,
.paths-section::after,
.courses-section::before,
.courses-section::after,
.features-section::before,
.features-section::after,
.cta-section::before,
.cta-section::after,
.final-cta::before,
.final-cta::after,
.promo-section::before,
.promo-section::after {
    border: none;
    box-shadow: none;
}

/* 4. LET THE SHARED BACKGROUND FLOW BETWEEN SECTIONS */

.paths-section,
.courses-section,
.features-section,
.cta-section,
.final-cta,
.promo-section {
    margin-top: 0;
    margin-bottom: 0;
}

/* Avoid horizontal separators on section headings and wrappers */

.paths-section,
.courses-section,
.features-section {
    outline: none;
}

/* 5. CARDS KEEP THEIR OWN COLORS AND DEPTH */

.path-card,
.path-item,
.big-path-card,
.course-card,
.feature-card,
.feature-item {
    position: relative;
    z-index: 1;
}

/* Do not force card backgrounds to transparent:
   existing card colors, borders, and shadows are preserved. */

/* 6. PREVENT SIDEWAYS PAGE SHIFTING */

*,
*::before,
*::after {
    box-sizing: border-box;
}

img,
video,
iframe {
    max-width: 100%;
}

body,
main {
    max-width: 100%;
}

/* 7. RESPONSIVE BACKGROUND */

@media (max-width: 768px) {
    body {
        background-image:
            radial-gradient(
                ellipse at 0% 8%,
                rgba(255, 218, 172, 0.30) 0%,
                transparent 42%
            ),
            radial-gradient(
                ellipse at 100% 35%,
                rgba(125, 208, 198, 0.24) 0%,
                transparent 42%
            ),
            radial-gradient(
                ellipse at 0% 70%,
                rgba(203, 190, 239, 0.20) 0%,
                transparent 40%
            ),
            linear-gradient(
                145deg,
                #fffaf2 0%,
                #f5fbf8 48%,
                #faf7fc 100%
            );

        background-repeat: no-repeat;
        background-size: 100% 100%;
    }
}

/* 8. ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* ==========================================================
   LATEST COURSES — CENTERED & BEAUTIFULLY STYLED HEADING
========================================================== */

.courses-section .section-header,
.courses-section .section-heading,
.courses-section .courses-header {
    width: 100%;
    max-width: 100%;
    margin: 0 auto 42px;
    padding: 0 20px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
}

/* Title badge */

.courses-section h2,
.courses-section .section-title,
.courses-section .courses-title {
    display: table;
    width: fit-content;
    max-width: 100%;

    margin: 0 auto 18px;
    padding: 13px 28px;

    color: #185e61;
    background: #dff2ed;

    border: 1px solid #c5e5dc;
    border-radius: 18px;

    box-shadow: 0 8px 22px rgba(35, 100, 105, 0.09);

    font-size: clamp(25px, 3vw, 34px);
    font-weight: 800;
    line-height: 1.5;
    text-align: center;
}


/* Subtitle */

.courses-section .section-subtitle,
.courses-section .section-description,
.courses-section .courses-subtitle,
.courses-section .section-header p,
.courses-section .section-heading p,
.courses-section .courses-header p {
    max-width: 650px;
    margin: 0 auto;

    color: #536b73;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.9;
    text-align: center;
}

/* Mobile */

@media (max-width: 600px) {
    .courses-section .section-header,
    .courses-section .section-heading,
    .courses-section .courses-header {
        margin-bottom: 30px;
        padding-inline: 16px;
    }

    .courses-section h2,
    .courses-section .section-title,
    .courses-section .courses-title {
        padding: 10px 20px;
        margin-bottom: 14px;
        border-radius: 15px;
        font-size: 25px;
    }

    .courses-section .section-subtitle,
    .courses-section .section-description,
    .courses-section .courses-subtitle,
    .courses-section .section-header p,
    .courses-section .section-heading p,
    .courses-section .courses-header p {
        font-size: 15px;
    }
}

/* CENTER THE LATEST COURSES HEADING ON THE PAGE */

.courses-section .section-header,
.courses-section .section-heading,
.courses-section .courses-header {
    width: 100% !important;
    max-width: none !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;

    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;

    text-align: center !important;
    transform: none !important;
    float: none !important;
    box-sizing: border-box !important;
}

/* Center the title badge itself */

.courses-section h2,
.courses-section .section-title,
.courses-section .courses-title {
    display: block !important;
    width: fit-content !important;
    max-width: 100% !important;

    margin: 0 auto 18px !important;

    text-align: center !important;
    float: none !important;
    transform: none !important;
}

/* Center the subtitle */

.courses-section .section-header p,
.courses-section .section-heading p,
.courses-section .courses-header p,
.courses-section .section-subtitle,
.courses-section .section-description,
.courses-section .courses-subtitle {
    width: 100% !important;
    max-width: 650px !important;

    margin-left: auto !important;
    margin-right: auto !important;

    text-align: center !important;
}

/* Mobile alignment */

@media (max-width: 600px) {
    .courses-section .section-header,
    .courses-section .section-heading,
    .courses-section .courses-header {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

/* ==========================================================
   LATEST COURSES — TRUE CENTERED HEADING
========================================================== */

#courses .courses-heading-row {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Center the heading across the entire page,
   independently of the "View all courses" link */

#courses .courses-heading-row .section-heading {
    position: relative;
    left: auto;
    right: auto;

    width: 100%;
    max-width: 100%;
    margin: 0 auto;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
}

/* Center the title badge around the complete Arabic title */

#courses .section-heading h2 {
    display: table;
    width: fit-content;
    max-width: 100%;

    margin: 0 auto 18px;
    padding: 13px 28px;

    background: #dff2ed;
    color: #185e61;

    border: 1px solid #c5e5dc;
    border-radius: 18px;

    box-shadow: 0 8px 22px rgba(35, 100, 105, 0.09);

    text-align: center;
    direction: rtl;
    unicode-bidi: isolate;
}

/* Subtitle centered underneath */

#courses .section-heading > p {
    width: 100%;
    margin: 0 auto;

    text-align: center;
    direction: rtl;
}

/* Keep the link at the side without affecting the title's center */

#courses .view-all-link {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

/* Responsive layout */

@media (max-width: 768px) {
    #courses .courses-heading-row {
        display: flex;
        flex-direction: column;
        gap: 18px;
    }

    #courses .courses-heading-row .section-heading {
        width: 100%;
    }

    #courses .view-all-link {
        position: static;
        transform: none;
        align-self: center;
    }
}

/* Move "جميع الدورات" to the left side */

#courses .view-all-link {
    position: absolute;
    left: 0;
    right: auto;
    top: 50%;
    transform: translateY(-50%);
}

/* Mobile: keep it centered below the heading */

@media (max-width: 768px) {
    #courses .view-all-link {
        position: static;
        transform: none;
        align-self: center;
    }
}



/* Remove gaps and white backgrounds around the footer */

main,
main > section:last-child,
footer,
.site-footer {
    margin-bottom: 0 !important;
}

/* Let the page's gradient remain visible up to the footer */

footer,
.site-footer {
    background-color: transparent;
    border-top: none;
}

/* Remove accidental spacing between the last section and footer */

#courses,
.cta-section,
.final-cta,
.promo-section {
    margin-bottom: 0;
}

/* Prevent a white strip caused by the footer wrapper */

footer::before,
footer::after,
.site-footer::before,
.site-footer::after {
    background-color: transparent;
}
/* ==========================================================
   KALIMA WA QALAM
   FLOATING LEARNING UNIVERSE
   Organic shapes • Playful composition • Soft pastel palette
========================================================== */

/* SECTION — no separate background block */

.features-section {
    position: relative;
    padding: 68px 0 88px;
    overflow: hidden;
    background: transparent !important;
}

.features-inner {
    position: relative;
    z-index: 1;
    width: min(1100px, calc(100% - 48px));
    margin-inline: auto;
}

/* HEADING */

.features-section .section-heading {
    margin: 0 auto 35px;
    text-align: center;
}

.features-section .section-heading h2 {
    margin: 0 auto 12px;
    color: #315d60;
    font-size: clamp(27px, 3vw, 36px);
    font-weight: 800;
    line-height: 1.6;
}

.features-section .section-heading > p {
    max-width: 580px;
    margin: 0 auto;
    color: #63777a;
    font-size: 16px;
    line-height: 1.9;
}

/* FLOATING COMPOSITION */

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
    gap: 22px;
    padding: 22px 0 30px;
}

/* RESET THE OLD RECTANGULAR CARD DESIGN */

.features-grid .feature-card {
    --shape-color: #e7f1df;
    --shape-ink: #42634b;
    --icon-bg: #d4e6ca;

    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 11px;

    min-width: 0;
    min-height: 245px;
    padding: 74px 22px 25px;

    background: transparent !important;
    border: none !important;
    border-radius: 0;
    box-shadow: none !important;
    text-align: right;

    transform: rotate(-2deg);
    animation: floating-learning 5s ease-in-out infinite;
    animation-delay: var(--float-delay, 0s);

    transition: transform .3s ease;
}

/* Different soft colors */

.features-grid .feature-card:nth-child(1) {
    --shape-color: #e5f0dc;
    --shape-ink: #42634b;
    --icon-bg: #cfe2c3;
    --float-delay: -.8s;

    transform: rotate(-3deg);
}

.features-grid .feature-card:nth-child(2) {
    --shape-color: #f9ecd5;
    --shape-ink: #795d35;
    --icon-bg: #f0ddb5;
    --float-delay: -2.1s;

    transform: rotate(2.5deg);
}

.features-grid .feature-card:nth-child(3) {
    --shape-color: #ebe7f8;
    --shape-ink: #5e5584;
    --icon-bg: #d9d0f0;
    --float-delay: -1.4s;

    transform: rotate(-1.5deg);
}

.features-grid .feature-card:nth-child(4) {
    --shape-color: #f8e5e7;
    --shape-ink: #89565e;
    --icon-bg: #f0cfd3;
    --float-delay: -3s;

    transform: rotate(3deg);
}

/* ORGANIC SHAPES — each card has a different silhouette */

.features-grid .feature-card::before {
    content: "";
    position: absolute;
    z-index: -2;
    inset: 30px 0 0;

    background: var(--shape-color);
    opacity: .88;

    border-radius: 47% 53% 38% 62% / 38% 42% 58% 62%;
    transform: rotate(-5deg) scale(.98);

    transition:
        transform .4s ease,
        border-radius .4s ease;
}

/* Card 1 — soft organic blob */

.features-grid .feature-card:nth-child(1)::before {
    inset: 27px 3px 5px;
    border-radius: 54% 46% 62% 38% / 43% 40% 60% 57%;
    transform: rotate(-7deg);
}

/* Card 2 — floating paper / tilted note */

.features-grid .feature-card:nth-child(2)::before {
    inset: 38px 3px 2px;
    border-radius: 16px 34px 15px 34px;
    transform: rotate(4deg);
}

/* Card 3 — rounded cloud / bubble */

.features-grid .feature-card:nth-child(3)::before {
    inset: 32px -2px 8px;
    border-radius: 42% 58% 49% 51% / 49% 40% 60% 51%;
    transform: rotate(6deg);
}

/* Card 4 — playful scalloped flower-like silhouette */

.features-grid .feature-card:nth-child(4)::before {
    inset: 30px 0 4px;
    border-radius: 35% 65% 34% 66% / 54% 35% 65% 46%;
    transform: rotate(-4deg);
}

/* Decorative floating mini shapes */

.features-grid .feature-card::after {
    content: "✦";
    position: absolute;
    z-index: -1;
    top: 10px;
    left: 15px;

    color: var(--shape-ink);
    font-size: 25px;
    opacity: .7;

    animation: sparkle-drift 4s ease-in-out infinite;
}

.features-grid .feature-card:nth-child(2)::after {
    content: "✳";
    top: 13px;
    left: 8px;
    font-size: 22px;
    animation-delay: -1s;
}

.features-grid .feature-card:nth-child(3)::after {
    content: "✧";
    top: 3px;
    left: 17px;
    font-size: 32px;
    animation-delay: -2s;
}

.features-grid .feature-card:nth-child(4)::after {
    content: "♥";
    top: 13px;
    left: 12px;
    font-size: 19px;
    animation-delay: -1.5s;
}

/* FLOATING ICON STICKERS */

.features-grid .feature-icon {
    position: absolute;
    z-index: 2;
    top: -2px;
    right: 21px;

    display: grid;
    place-items: center;

    width: 65px;
    height: 65px;
    margin: 0;

    color: var(--shape-ink);
    background: var(--icon-bg);
    border: 3px solid rgba(255, 255, 255, .8);
    border-radius: 44% 56% 54% 46% / 52% 40% 60% 48%;

    font-size: 31px;
    line-height: 1;

    box-shadow: 0 9px 20px rgba(53, 73, 66, .08);
    transform: rotate(-9deg);
    transition: transform .35s ease;
}

.features-grid .feature-card:nth-child(2) .feature-icon {
    right: auto;
    left: 18px;
    border-radius: 50%;
    transform: rotate(8deg);
}

.features-grid .feature-card:nth-child(3) .feature-icon {
    right: 17px;
    border-radius: 35% 65% 45% 55%;
    transform: rotate(7deg);
}

.features-grid .feature-card:nth-child(4) .feature-icon {
    right: auto;
    left: 19px;
    border-radius: 42% 58% 42% 58%;
    transform: rotate(-8deg);
}

/* TEXT — dark enough to remain readable */

.features-grid .feature-card h3 {
    position: relative;
    z-index: 1;
    margin: 0;

    color: var(--shape-ink);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.7;
}

.features-grid .feature-card p {
    position: relative;
    z-index: 1;
    margin: 0;

    color: #586b6e;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.95;
}

/* A little hand-drawn underline under each title */

.features-grid .feature-card h3::after {
    content: "";
    display: block;

    width: 42px;
    height: 4px;
    margin-top: 7px;

    background: var(--icon-bg);
    border-radius: 50%;
    transform: rotate(-3deg);
}

.features-grid .feature-card:nth-child(2) h3::after {
    width: 54px;
    transform: rotate(3deg);
}

.features-grid .feature-card:nth-child(3) h3::after {
    width: 35px;
    transform: rotate(-6deg);
}

.features-grid .feature-card:nth-child(4) h3::after {
    width: 47px;
    transform: rotate(4deg);
}

/* HOVER — lift the shape, not a rectangular box */

@media (hover: hover) {
    .features-grid .feature-card:hover {
        animation-play-state: paused;
        transform: translateY(-9px) rotate(0deg) !important;
    }

    .features-grid .feature-card:hover::before {
        border-radius: 35% 65% 55% 45% / 42% 53% 47% 58%;
        transform: rotate(0deg) scale(1.04);
    }

    .features-grid .feature-card:hover .feature-icon {
        transform: rotate(0deg) scale(1.1);
    }
}

/* FLOAT ANIMATIONS */

@keyframes floating-learning {
    0%, 100% {
        translate: 0 0;
    }

    50% {
        translate: 0 -7px;
    }
}

@keyframes sparkle-drift {
    0%, 100% {
        translate: 0 0;
        rotate: 0deg;
        opacity: .55;
    }

    50% {
        translate: 3px -5px;
        rotate: 12deg;
        opacity: .9;
    }
}

/* TABLET */

@media (max-width: 1000px) {
    .features-section {
        padding: 55px 0 70px;
    }

    .features-inner {
        width: calc(100% - 40px);
    }

    .features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 25px 22px;
    }

    .features-grid .feature-card {
        min-height: 230px;
        padding: 72px 23px 25px;
    }
}

/* MOBILE */

@media (max-width: 600px) {
    .features-section {
        padding: 42px 0 52px;
    }

    .features-inner {
        width: calc(100% - 32px);
    }

    .features-section .section-heading {
        margin-bottom: 23px;
    }

    .features-section .section-heading h2 {
        font-size: 26px;
    }

    .features-section .section-heading > p {
        font-size: 14px;
    }

    .features-grid {
        gap: 22px 12px;
        padding-top: 20px;
    }

    .features-grid .feature-card {
        min-height: 230px;
        padding: 68px 15px 22px;
        gap: 9px;
    }

    .features-grid .feature-card::before {
        inset-inline: 0;
    }

    .features-grid .feature-icon {
        top: 0;
        right: 13px;
        width: 54px;
        height: 54px;
        font-size: 26px;
    }

    .features-grid .feature-card:nth-child(2) .feature-icon,
    .features-grid .feature-card:nth-child(4) .feature-icon {
        left: 12px;
    }

    .features-grid .feature-card h3 {
        font-size: 15px;
        line-height: 1.7;
    }

    .features-grid .feature-card p {
        font-size: 12px;
        line-height: 1.85;
    }

    .features-grid .feature-card::after {
        font-size: 20px;
    }
}

/* VERY SMALL MOBILE */

@media (max-width: 360px) {
    .features-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 17px;
    }

    .features-grid .feature-card {
        min-height: 195px;
        padding: 70px 23px 25px;
    }

    .features-grid .feature-card h3 {
        font-size: 17px;
    }

    .features-grid .feature-card p {
        font-size: 13px;
    }
}

/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
    .features-grid .feature-card,
    .features-grid .feature-card::before,
    .features-grid .feature-card::after,
    .features-grid .feature-icon {
        animation: none !important;
        transition: none !important;
    }
}
/* ==========================================================
   FLOATING FEATURES — CLEARER OUTLINES + LEFT-SIDE ICONS
========================================================== */

/* Make each organic shape visibly separate */

.features-grid .feature-card::before {
    border: 2px solid var(--shape-ink) !important;
    opacity: 0.95 !important;

    box-shadow:
        0 8px 0 rgba(48, 73, 65, 0.035),
        0 13px 25px rgba(48, 73, 65, 0.07);

    background: var(--shape-color) !important;
}

/* Give each shape its own subtle outline color */

.features-grid .feature-card:nth-child(1)::before {
    border-color: #a8c5a0 !important;
}

.features-grid .feature-card:nth-child(2)::before {
    border-color: #dec28d !important;
}

.features-grid .feature-card:nth-child(3)::before {
    border-color: #b9addd !important;
}

.features-grid .feature-card:nth-child(4)::before {
    border-color: #dfadb5 !important;
}

/* Move EVERY icon to the left side */

.features-grid .feature-card .feature-icon,
.features-grid .feature-card:nth-child(1) .feature-icon,
.features-grid .feature-card:nth-child(2) .feature-icon,
.features-grid .feature-card:nth-child(3) .feature-icon,
.features-grid .feature-card:nth-child(4) .feature-icon {
    position: absolute !important;
    top: 3px !important;
    left: 14px !important;
    right: auto !important;

    z-index: 3;
}

/* Keep the left-side icon stickers distinct */

.features-grid .feature-card:nth-child(1) .feature-icon {
    background: #d4e6ca;
    border-color: #f7fbf3;
    transform: rotate(-9deg);
}

.features-grid .feature-card:nth-child(2) .feature-icon {
    background: #f0ddb5;
    border-color: #fffaf0;
    transform: rotate(8deg);
}

.features-grid .feature-card:nth-child(3) .feature-icon {
    background: #d9d0f0;
    border-color: #fbfaff;
    transform: rotate(7deg);
}

.features-grid .feature-card:nth-child(4) .feature-icon {
    background: #f0cfd3;
    border-color: #fff8f8;
    transform: rotate(-8deg);
}

/* Preserve space for the icons at the top */

.features-grid .feature-card {
    padding-top: 78px;
}

/* Mobile positioning */

@media (max-width: 600px) {
    .features-grid .feature-card {
        padding-top: 70px;
    }

    .features-grid .feature-card .feature-icon,
    .features-grid .feature-card:nth-child(n) .feature-icon {
        top: 3px !important;
        left: 11px !important;
        right: auto !important;
    }
}

/* Gentle outline emphasis on hover */

@media (hover: hover) {
    .features-grid .feature-card:hover::before {
        border-width: 2.5px !important;
        box-shadow:
            0 10px 0 rgba(48, 73, 65, 0.04),
            0 17px 30px rgba(48, 73, 65, 0.11);
    }
}
/* ==========================================================
   FINAL FIX — MAKE EACH FLOATING CARD CLEARLY DISTINCT
========================================================== */

/* Give each card its own independent visual boundary */

.features-grid .feature-card {
    position: relative;
    isolation: isolate;
    overflow: visible !important;

    /* Increase the space separating neighboring shapes */
    margin: 8px 5px 14px;
    padding: 82px 20px 27px;

    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Stronger outlines and a clear outer rim */

.features-grid .feature-card::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 25px -3px 0;

    background: var(--shape-color) !important;

    /* The white rim separates pastel shapes from each other */
    border: 3px solid #fffdf8 !important;
    outline: 2px solid var(--shape-ink);

    box-shadow:
        0 5px 0 rgba(255, 255, 255, 0.85),
        0 10px 0 rgba(57, 77, 68, 0.055),
        0 17px 26px rgba(57, 77, 68, 0.10);

    opacity: 1 !important;
    transition:
        transform .3s ease,
        box-shadow .3s ease,
        outline-color .3s ease;
}

/* Four different silhouettes and outline colors */

.features-grid .feature-card:nth-child(1)::before {
    inset: 25px 2px 3px;
    border-radius: 47% 53% 38% 62% / 38% 42% 58% 62%;
    outline-color: #9cbd92;
    transform: rotate(-3deg);
}

.features-grid .feature-card:nth-child(2)::before {
    inset: 31px 3px 2px;
    border-radius: 22px 38px 19px 35px;
    outline-color: #d7b779;
    transform: rotate(2deg);
}

.features-grid .feature-card:nth-child(3)::before {
    inset: 27px 1px 4px;
    border-radius: 43% 57% 48% 52% / 49% 39% 61% 51%;
    outline-color: #b0a2d7;
    transform: rotate(-2deg);
}

.features-grid .feature-card:nth-child(4)::before {
    inset: 27px 2px 3px;
    border-radius: 35% 65% 34% 66% / 54% 35% 65% 46%;
    outline-color: #d9a1aa;
    transform: rotate(2deg);
}

/* Keep decorative stars inside each shape's visual area */

.features-grid .feature-card::after {
    z-index: 1;
    top: 37px;
    left: 18px;
}

/* All icons stay on the LEFT, with a visible sticker edge */

.features-grid .feature-card .feature-icon,
.features-grid .feature-card:nth-child(n) .feature-icon {
    top: 0 !important;
    left: 9px !important;
    right: auto !important;

    width: 62px;
    height: 62px;

    border: 3px solid #fffdf8 !important;
    box-shadow:
        0 0 0 2px var(--shape-ink),
        0 7px 15px rgba(44, 63, 57, 0.12);

    z-index: 4;
}

/* Keep card text clearly within each shape */

.features-grid .feature-card h3,
.features-grid .feature-card p {
    position: relative;
    z-index: 2;
}

/* More space between cards on larger screens */

.features-grid {
    column-gap: 28px;
    row-gap: 30px;
}

/* Hover — lift the entire shape */

@media (hover: hover) {
    .features-grid .feature-card:hover {
        transform: translateY(-8px) rotate(0deg) !important;
        animation-play-state: paused;
    }

    .features-grid .feature-card:hover::before {
        box-shadow:
            0 5px 0 rgba(255, 255, 255, 0.9),
            0 12px 0 rgba(57, 77, 68, 0.06),
            0 22px 32px rgba(57, 77, 68, 0.14);
    }
}

/* Tablet spacing */

@media (max-width: 1000px) {
    .features-grid {
        column-gap: 24px;
        row-gap: 25px;
    }

    .features-grid .feature-card {
        margin-inline: 5px;
        padding: 78px 19px 25px;
    }
}

/* Mobile — preserve visible separation */

@media (max-width: 600px) {
    .features-grid {
        column-gap: 17px;
        row-gap: 24px;
    }

    .features-grid .feature-card {
        margin: 5px 3px 10px;
        padding: 72px 14px 23px;
    }

    .features-grid .feature-card::before {
        inset-inline: 0;
    }

    .features-grid .feature-card .feature-icon,
    .features-grid .feature-card:nth-child(n) .feature-icon {
        top: 2px !important;
        left: 7px !important;
        right: auto !important;
        width: 52px;
        height: 52px;
    }
}

/* ==========================================================
   FEATURES — FOUR CLEARLY SEPARATED FLOATING CARDS
   Keep the existing colors, shapes, icons, and animations
========================================================== */

/* Give every card its own independent space */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
    align-items: stretch;
}

/* Each card gets its own visible outline */
.features-grid .feature-card {
    position: relative;
    isolation: isolate;
    min-width: 0;
    margin: 8px 4px 14px;
    padding: 82px 20px 28px;

    /* Separate each card from the others */
    border: 2px solid var(--shape-ink, #a8b9a7) !important;
    border-radius: 26px !important;

    /* Preserve the existing individual shape behind the content */
    background: transparent !important;

    box-shadow: 0 8px 20px rgba(40, 65, 57, 0.07);
}

/* Keep each card's unique colorful shape */
.features-grid .feature-card::before {
    z-index: -1;
    opacity: 1 !important;
}

/* Give each card its own border color */
.features-grid .feature-card:nth-child(1) {
    --shape-ink: #9cbd92;
}

.features-grid .feature-card:nth-child(2) {
    --shape-ink: #d7b779;
}

.features-grid .feature-card:nth-child(3) {
    --shape-ink: #b0a2d7;
}

.features-grid .feature-card:nth-child(4) {
    --shape-ink: #d9a1aa;
}

/* Keep titles and descriptions inside their own cards */
.features-grid .feature-card h3,
.features-grid .feature-card p {
    position: relative;
    z-index: 2;
}

/* Keep all icons on the left */
.features-grid .feature-card .feature-icon {
    left: 9px !important;
    right: auto !important;
}

/* Responsive layout */
@media (max-width: 1000px) {
    .features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 25px;
    }
}

@media (max-width: 600px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .features-grid .feature-card {
        margin: 6px 4px 12px;
        padding: 76px 17px 24px;
    }

    .features-grid .feature-card .feature-icon {
        left: 7px !important;
    }
}

/* ==========================================================
   FEATURES — SOFT PASTEL BACKGROUNDS FOR EACH CARD
   Preserve the existing creative design and shapes
========================================================== */

/* Card 1 — Soft sage green */
.features-grid .feature-card:nth-child(1)::before {
    background: #edf5e9 !important;
}

.features-grid .feature-card:nth-child(1) {
    background: #edf5e9 !important;
    --shape-ink: #9cbd92;
}

/* Card 2 — Soft buttery yellow */
.features-grid .feature-card:nth-child(2)::before {
    background: #fff6df !important;
}

.features-grid .feature-card:nth-child(2) {
    background: #fff6df !important;
    --shape-ink: #d7b779;
}

/* Card 3 — Soft lavender */
.features-grid .feature-card:nth-child(3)::before {
    background: #f1edfa !important;
}

.features-grid .feature-card:nth-child(3) {
    background: #f1edfa !important;
    --shape-ink: #b0a2d7;
}

/* Card 4 — Soft blush pink */
.features-grid .feature-card:nth-child(4)::before {
    background: #fbecef !important;
}

.features-grid .feature-card:nth-child(4) {
    background: #fbecef !important;
    --shape-ink: #d9a1aa;
}

/* Keep the individual cards clearly defined */
.features-grid .feature-card {
    border: 2px solid var(--shape-ink) !important;
    box-shadow: 0 8px 20px rgba(40, 65, 57, 0.07);
}

/* ==========================================================
   FEATURES — EXTRA LIGHT BACKGROUNDS + SHARPER TITLES
========================================================== */

/* Card 1 — Almost-white sage */
.features-grid .feature-card:nth-child(1),
.features-grid .feature-card:nth-child(1)::before {
    background: #f7faf4 !important;
}

.features-grid .feature-card:nth-child(1) {
    --shape-ink: #a4bf9a;
}

/* Card 2 — Almost-white cream */
.features-grid .feature-card:nth-child(2),
.features-grid .feature-card:nth-child(2)::before {
    background: #fffdf5 !important;
}

.features-grid .feature-card:nth-child(2) {
    --shape-ink: #d8c18e;
}

/* Card 3 — Almost-white lavender */
.features-grid .feature-card:nth-child(3),
.features-grid .feature-card:nth-child(3)::before {
    background: #faf8fe !important;
}

.features-grid .feature-card:nth-child(3) {
    --shape-ink: #b8abd8;
}

/* Card 4 — Almost-white blush */
.features-grid .feature-card:nth-child(4),
.features-grid .feature-card:nth-child(4)::before {
    background: #fff8f9 !important;
}

.features-grid .feature-card:nth-child(4) {
    --shape-ink: #d9a7b0;
}

/* Sharper, darker titles */
.features-grid .feature-card h3 {
    color: #173e50 !important;
    font-weight: 800 !important;
    letter-spacing: -0.35px;
    line-height: 1.5;
    text-shadow: none !important;
}

/* Clear, readable descriptions */
.features-grid .feature-card p {
    color: #405967 !important;
    font-weight: 500;
    line-height: 1.9;
    text-shadow: none !important;
}

/* Keep the card borders visible but soft */
.features-grid .feature-card {
    border: 2px solid var(--shape-ink) !important;
    box-shadow: 0 7px 18px rgba(35, 59, 69, 0.055);
}

/* ==========================================================
   FEATURES — BIGGER TEXT, SAME CARD SIZE
========================================================== */

/* Keep the existing card dimensions and spacing */
.features-grid {
    align-items: stretch;
}

.features-grid .feature-card {
    box-sizing: border-box;
    padding: 76px 17px 22px !important;
}

/* Larger titles without excessive spacing */
.features-grid .feature-card h3 {
    font-size: 20px !important;
    font-weight: 800 !important;
    line-height: 1.45 !important;
    margin-bottom: 10px !important;
    color: #173e50 !important;
    letter-spacing: -0.2px;
}

/* Readable descriptions that fit comfortably */
.features-grid .feature-card p {
    font-size: 15.5px !important;
    font-weight: 500 !important;
    line-height: 1.8 !important;
    margin-bottom: 0 !important;
    color: #405967 !important;
}

/* Tablets */
@media (max-width: 1000px) {
    .features-grid .feature-card {
        padding: 74px 16px 21px !important;
    }

    .features-grid .feature-card h3 {
        font-size: 19px !important;
    }

    .features-grid .feature-card p {
        font-size: 15px !important;
        line-height: 1.75 !important;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .features-grid .feature-card {
        padding: 70px 16px 20px !important;
    }

    .features-grid .feature-card h3 {
        font-size: 20px !important;
    }

    .features-grid .feature-card p {
        font-size: 15.5px !important;
        line-height: 1.8 !important;
    }
}

/*
   IMPORTANT:
   The decorations belong to the homepage, not the viewport.
   They scroll naturally with the page.
*/

/* Decorative layer */
.floating-learning-decorations {
    position: absolute !important;
    inset: 0 0 auto 0;
    width: 100%;
    height: 100%;
    min-height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
    isolation: isolate;
}

/* Floating educational icons */
.floating-learning-decorations .learning-float {
    position: absolute;
    display: block;
    opacity: 0.85;
    line-height: 1;
    user-select: none;
    pointer-events: none;
    will-change: transform;

    /* Small movement around each icon's original position */
    animation: learning-drift 7s ease-in-out infinite;
}

/* Individual positions and sizes */
.decor-book {
    top: 13%;
    left: 5%;
    font-size: 34px;
    animation-duration: 7s;
}

.decor-pencil {
    top: 31%;
    right: 5%;
    font-size: 29px;
    animation-duration: 8s;
    animation-delay: -2s;
}

.decor-star {
    top: 20%;
    left: 27%;
    color: #d9ad48;
    font-size: 30px;
    animation: learning-twinkle 4.5s ease-in-out infinite;
}

.decor-paper {
    top: 49%;
    left: 4%;
    font-size: 27px;
    animation-duration: 9s;
    animation-delay: -3s;
}

.decor-plane {
    top: 65%;
    right: 8%;
    color: #6a9cb0;
    font-size: 32px;
    animation: learning-glide 9s ease-in-out infinite;
}

.decor-sparkle {
    top: 78%;
    left: 22%;
    color: #bc91c8;
    font-size: 34px;
    animation: learning-twinkle 5s ease-in-out infinite;
}

.decor-book-two {
    top: 43%;
    right: 7%;
    font-size: 32px;
    animation-duration: 8s;
    animation-delay: -4s;
}

.decor-pencil-two {
    top: 83%;
    right: 28%;
    color: #bf8e78;
    font-size: 34px;
    animation-duration: 7.5s;
    animation-delay: -2s;
}

.decor-star-two {
    top: 9%;
    right: 29%;
    color: #83aaa0;
    font-size: 27px;
    animation: learning-twinkle 5s ease-in-out infinite;
}

.decor-lightbulb {
    top: 57%;
    left: 44%;
    font-size: 27px;
    opacity: 0.65;
    animation-duration: 9s;
    animation-delay: -5s;
}

.decor-sparkle-two {
    top: 88%;
    left: 6%;
    color: #d9ad48;
    font-size: 25px;
    animation: learning-twinkle 5.5s ease-in-out infinite;
}

.decor-note {
    top: 34%;
    left: 48%;
    color: #a28cbd;
    font-size: 29px;
    animation-duration: 8s;
    animation-delay: -3s;
}

/* ==========================================================
   ORGANIC BACKGROUND SHAPES
========================================================== */

.floating-learning-decorations .learning-blob {
    position: absolute;
    display: block;
    opacity: 0.22;
    filter: blur(1px);
    pointer-events: none;
    will-change: transform;
    animation: learning-blob-float 11s ease-in-out infinite;
}

.blob-one {
    top: 8%;
    right: 15%;
    width: 65px;
    height: 65px;
    background: #dcebd5;
    border-radius: 42% 58% 65% 35% / 45% 40% 60% 55%;
}

.blob-two {
    top: 42%;
    left: 17%;
    width: 45px;
    height: 45px;
    background: #f3e4b9;
    border-radius: 62% 38% 43% 57% / 40% 55% 45% 60%;
    animation-delay: -4s;
}

.blob-three {
    top: 72%;
    right: 17%;
    width: 75px;
    height: 75px;
    background: #e8def4;
    border-radius: 50% 50% 35% 65% / 45% 60% 40% 55%;
    animation-delay: -6s;
}

.blob-four {
    top: 91%;
    right: 48%;
    width: 38px;
    height: 38px;
    background: #f4dce1;
    border-radius: 45% 55% 60% 40%;
    animation-delay: -3s;
}

/* ==========================================================
   SUBTLE FLOATING — STAY NEAR ORIGINAL POSITIONS
========================================================== */

/* Icons drift a few pixels instead of traveling across the page */
@keyframes learning-drift {
    0%, 100% {
        transform: translate3d(0, 0, 0) rotate(-3deg);
    }

    50% {
        transform: translate3d(5px, -9px, 0) rotate(3deg);
    }
}

/* Gentle twinkle without making icons disappear */
@keyframes learning-twinkle {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(0.96) rotate(-3deg);
        opacity: 0.7;
    }

    50% {
        transform: translate3d(2px, -5px, 0) scale(1.05) rotate(5deg);
        opacity: 1;
    }
}

/* The paper plane moves slightly in place */
@keyframes learning-glide {
    0%, 100% {
        transform: translate3d(0, 0, 0) rotate(-8deg);
    }

    50% {
        transform: translate3d(-7px, -8px, 0) rotate(2deg);
    }
}

/* Organic shapes gently change position and shape */
@keyframes learning-blob-float {
    0%, 100% {
        transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
    }

    50% {
        transform: translate3d(6px, -9px, 0) rotate(8deg) scale(1.04);
    }
}

/* ==========================================================
   MOBILE — KEEP DECORATIONS SUBTLE
========================================================== */

@media (max-width: 768px) {
    .floating-learning-decorations .learning-float {
        opacity: 0.7;
    }

    .floating-learning-decorations .learning-blob {
        opacity: 0.16;
    }

    .decor-lightbulb,
    .decor-note {
        display: none;
    }
}

/* ==========================================================
   ACCESSIBILITY — RESPECT REDUCED MOTION
========================================================== */

@media (prefers-reduced-motion: reduce) {
    .floating-learning-decorations .learning-float,
    .floating-learning-decorations .learning-blob {
        animation: none !important;
    }
}

/* ==========================================================
   KALIMA WA QALAM — EXTRA FLOATING DECORATIONS
   More variety • Soft pastel colors • Gentle movement
   Scrolls naturally with the homepage
========================================================== */

/* Additional educational icons */
.decor-book-three {
    top: 16%;
    right: 13%;
    font-size: 27px;
    animation: learning-drift 8s ease-in-out infinite;
    animation-delay: -3s;
}

.decor-pencil-three {
    top: 37%;
    left: 13%;
    font-size: 25px;
    animation: learning-drift 7s ease-in-out infinite;
    animation-delay: -2s;
}

.decor-star-three {
    top: 29%;
    right: 23%;
    color: #e4bd62;
    font-size: 24px;
    animation: learning-twinkle 5s ease-in-out infinite;
    animation-delay: -1s;
}

.decor-paper-two {
    top: 56%;
    right: 19%;
    font-size: 25px;
    animation: learning-drift 9s ease-in-out infinite;
    animation-delay: -4s;
}

.decor-sparkle-three {
    top: 61%;
    left: 29%;
    color: #c6a5d7;
    font-size: 28px;
    animation: learning-twinkle 4.5s ease-in-out infinite;
    animation-delay: -2s;
}

.decor-lightbulb-two {
    top: 73%;
    left: 43%;
    font-size: 27px;
    animation: learning-drift 8s ease-in-out infinite;
    animation-delay: -3s;
}

.decor-book-four {
    top: 91%;
    left: 34%;
    font-size: 29px;
    animation: learning-drift 9s ease-in-out infinite;
    animation-delay: -5s;
}

.decor-star-four {
    top: 46%;
    left: 39%;
    color: #e2bd68;
    font-size: 22px;
    animation: learning-twinkle 5s ease-in-out infinite;
    animation-delay: -2s;
}

.decor-note-two {
    top: 12%;
    left: 42%;
    color: #a99acb;
    font-size: 25px;
    animation: learning-drift 8s ease-in-out infinite;
    animation-delay: -4s;
}

.decor-pencil-four {
    top: 68%;
    right: 35%;
    color: #bf8e78;
    font-size: 27px;
    animation: learning-drift 7.5s ease-in-out infinite;
    animation-delay: -1s;
}

.decor-sparkle-four {
    top: 86%;
    right: 12%;
    color: #d3a4b5;
    font-size: 25px;
    animation: learning-twinkle 5.5s ease-in-out infinite;
    animation-delay: -3s;
}

.decor-plane-two {
    top: 24%;
    left: 9%;
    color: #83aebe;
    font-size: 26px;
    animation: learning-glide 10s ease-in-out infinite;
    animation-delay: -4s;
}

/* ==========================================================
   EXTRA SOFT PASTEL BLOBS
========================================================== */

.blob-five {
    top: 25%;
    left: 42%;
    width: 34px;
    height: 34px;
    background: #e4d8f2;
    border-radius: 58% 42% 38% 62% / 43% 57% 43% 57%;
    animation-delay: -4s;
}

.blob-six {
    top: 58%;
    right: 5%;
    width: 48px;
    height: 48px;
    background: #f5e4bd;
    border-radius: 44% 56% 63% 37% / 55% 43% 57% 45%;
    animation-delay: -6s;
}

.blob-seven {
    top: 82%;
    left: 48%;
    width: 42px;
    height: 42px;
    background: #d9ebe2;
    border-radius: 60% 40% 50% 50% / 45% 55% 45% 55%;
    animation-delay: -2s;
}

.blob-eight {
    top: 36%;
    right: 39%;
    width: 27px;
    height: 27px;
    background: #f2dce4;
    border-radius: 50% 40% 60% 45%;
    animation-delay: -5s;
}

/* Keep all additional decorations behind page content */
.floating-learning-decorations {
    pointer-events: none;
}

/* Smaller screens: reduce visual clutter */
@media (max-width: 768px) {
    .decor-book-three,
    .decor-star-three,
    .decor-sparkle-three,
    .decor-note-two,
    .decor-plane-two,
    .blob-five,
    .blob-eight {
        display: none;
    }
}
/* ==========================================================
   KALIMA WA QALAM — EXTRA EXTRA DECORATIONS
   More playful details throughout the homepage
========================================================== */

/* Additional books */
.decor-book-three {
    top: 17%;
    right: 17%;
    font-size: 27px;
    animation-delay: -3s;
}

.decor-book-four {
    top: 76%;
    left: 12%;
    font-size: 26px;
    animation-delay: -5s;
}

/* Additional pencils and paper */
.decor-pencil-three {
    top: 38%;
    left: 15%;
    font-size: 25px;
    animation-delay: -2s;
}

.decor-pencil-four {
    top: 69%;
    right: 33%;
    color: #bf8e78;
    font-size: 29px;
    animation-delay: -4s;
}

.decor-paper-two {
    top: 54%;
    right: 20%;
    font-size: 25px;
    animation-delay: -3s;
}

.decor-plane-two {
    top: 25%;
    left: 10%;
    color: #83aebe;
    font-size: 26px;
    animation: learning-glide 10s ease-in-out infinite;
}

/* More lightbulbs and music */
.decor-lightbulb-two {
    top: 72%;
    left: 44%;
    font-size: 27px;
    animation-delay: -6s;
}

.decor-note-two {
    top: 12%;
    left: 43%;
    color: #a99acb;
    font-size: 25px;
    animation-delay: -4s;
}

.decor-music {
    top: 93%;
    right: 36%;
    color: #b39bc9;
    font-size: 25px;
    animation-delay: -2s;
}

/* Stars and sparkles */
.decor-star-three {
    top: 29%;
    right: 24%;
    color: #d9ad48;
    font-size: 25px;
    animation: learning-twinkle 5s ease-in-out infinite;
}

.decor-star-four {
    top: 47%;
    left: 38%;
    color: #91b5a1;
    font-size: 23px;
    animation: learning-twinkle 4.5s ease-in-out infinite;
}

.decor-star-five {
    top: 84%;
    right: 17%;
    color: #d8b66a;
    font-size: 24px;
    animation: learning-twinkle 5.5s ease-in-out infinite;
}

.decor-sparkle-three {
    top: 61%;
    left: 29%;
    color: #c6a5d7;
    font-size: 29px;
    animation: learning-twinkle 5s ease-in-out infinite;
}

.decor-sparkle-four {
    top: 87%;
    right: 11%;
    color: #d3a4b5;
    font-size: 25px;
    animation: learning-twinkle 4.8s ease-in-out infinite;
}

.decor-sparkle-five {
    top: 35%;
    right: 43%;
    color: #d9bd79;
    font-size: 24px;
    animation: learning-twinkle 5.5s ease-in-out infinite;
}

/* Hearts and flowers */
.decor-heart {
    top: 23%;
    right: 36%;
    color: #d5a1b0;
    font-size: 27px;
    animation: learning-drift 8s ease-in-out infinite;
}

.decor-heart-two {
    top: 64%;
    left: 8%;
    color: #d9a5b1;
    font-size: 24px;
    animation: learning-drift 7s ease-in-out infinite;
}

.decor-flower {
    top: 44%;
    right: 28%;
    color: #b9a6cf;
    font-size: 26px;
    animation: learning-drift 9s ease-in-out infinite;
}

.decor-flower-two {
    top: 81%;
    left: 37%;
    color: #d8bd79;
    font-size: 24px;
    animation: learning-drift 8s ease-in-out infinite;
}

/* Small geometric details */
.decor-circle {
    top: 33%;
    left: 34%;
    color: #9dbda1;
    font-size: 13px;
    animation: learning-drift 8s ease-in-out infinite;
}

.decor-circle-two {
    top: 59%;
    right: 37%;
    color: #d6b8c5;
    font-size: 23px;
    animation: learning-drift 9s ease-in-out infinite;
}

.decor-diamond {
    top: 74%;
    right: 24%;
    color: #d6b56c;
    font-size: 25px;
    animation: learning-twinkle 5s ease-in-out infinite;
}

.decor-cross {
    top: 15%;
    left: 36%;
    color: #8fb9b1;
    font-size: 27px;
    font-weight: 700;
    animation: learning-twinkle 5s ease-in-out infinite;
}

.decor-wave {
    top: 91%;
    left: 17%;
    color: #a9b8d0;
    font-size: 30px;
    animation: learning-drift 9s ease-in-out infinite;
}

/* ==========================================================
   SIX MORE SOFT ORGANIC SHAPES
========================================================== */

.blob-nine {
    top: 18%;
    left: 17%;
    width: 28px;
    height: 28px;
    background: #dcebd5;
    border-radius: 42% 58% 60% 40%;
    animation-delay: -2s;
}

.blob-ten {
    top: 32%;
    right: 11%;
    width: 38px;
    height: 38px;
    background: #f3e4b9;
    border-radius: 60% 40% 45% 55%;
    animation-delay: -5s;
}

.blob-eleven {
    top: 51%;
    left: 46%;
    width: 25px;
    height: 25px;
    background: #e8def4;
    border-radius: 50% 40% 60% 45%;
    animation-delay: -3s;
}

.blob-twelve {
    top: 85%;
    right: 42%;
    width: 34px;
    height: 34px;
    background: #f4dce1;
    border-radius: 45% 55% 60% 40%;
    animation-delay: -6s;
}

/* Keep the extra shapes soft and behind the content */
.floating-learning-decorations .learning-float {
    pointer-events: none;
    will-change: transform;
}

.floating-learning-decorations .learning-blob {
    pointer-events: none;
    opacity: 0.2;
}

/* Mobile: avoid crowding small screens */
@media (max-width: 768px) {
    .decor-book-three,
    .decor-pencil-three,
    .decor-star-three,
    .decor-sparkle-three,
    .decor-flower,
    .decor-note-two,
    .decor-plane-two,
    .decor-heart {
        display: none;
    }

    .floating-learning-decorations .learning-blob {
        opacity: 0.14;
    }
}

/* Blue floating book — centered above the learning paths heading */
.floating-learning-decorations .decor-book-three {
    display: block !important;
    position: absolute !important;

    top: 700px !important;
    left: 50% !important;
    right: auto !important;

    font-size: 30px !important;
    z-index: 1;

    animation: learning-drift 7s ease-in-out infinite !important;
    animation-delay: -3s;
}


.floating-learning-decorations .decor-book-three {
    left: 30% !important;
}



/* =========================================================
   HERO BRAND — KALIMA ONLINE
   Funky • Playful • Bold • Modern
========================================================= */

.hero-brand-name {
    position: relative;
    isolation: isolate;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;

    width: fit-content;
    max-width: 100%;

    margin: 0 0 28px;
    padding: 14px 26px;

    font-family: 'Cairo', sans-serif;
    font-size: clamp(24px, 3vw, 37px);
    font-weight: 900;
    line-height: 1.6;
    letter-spacing: 0;

    color: #ffffff;

    background: linear-gradient(
        120deg,
        #164b61 0%,
        #247e8c 48%,
        #329e9b 100%
    );

    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 22px 22px 22px 8px;

    box-shadow:
        0 9px 0 #d9b84e,
        0 15px 28px rgba(22, 75, 97, 0.18);

    transform: rotate(-1.5deg);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

/* Soft decorative glow */

.hero-brand-name::before {
    content: "";
    position: absolute;
    inset: -7px;

    z-index: -1;

    border: 2px dashed rgba(39, 140, 155, 0.4);
    border-radius: 27px 27px 27px 12px;

    transform: rotate(2.5deg);
    pointer-events: none;
}

/* Yellow decorative accent */

.hero-brand-name::after {
    content: "";
    position: absolute;

    top: -9px;
    right: 18px;

    width: 34px;
    height: 9px;

    background: #f1c84b;
    border-radius: 20px;

    transform: rotate(-8deg);
}

/* Sparkles */

.hero-brand-name .brand-sparkle {
    flex-shrink: 0;

    color: #ffdb69;
    font-size: 0.85em;
    line-height: 1;

    text-shadow: 0 2px 8px rgba(255, 219, 105, 0.3);

    animation: brandSparkle 2.4s ease-in-out infinite;
}

.hero-brand-name .brand-sparkle:last-child {
    animation-delay: 1.2s;
}

/* Playful hover */

.hero-brand-name:hover {
    transform: rotate(0deg) translateY(-3px);

    box-shadow:
        0 6px 0 #d9b84e,
        0 19px 32px rgba(22, 75, 97, 0.22);
}

/* Sparkle animation */

@keyframes brandSparkle {
    0%, 100% {
        opacity: 0.7;
        transform: scale(0.85) rotate(0deg);
    }

    50% {
        opacity: 1;
        transform: scale(1.2) rotate(15deg);
    }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 500px) {
    .hero-brand-name {
        gap: 9px;

        padding: 10px 16px;
        margin-bottom: 24px;

        font-size: clamp(19px, 5.3vw, 27px);
        border-radius: 17px 17px 17px 7px;

        box-shadow:
            0 6px 0 #d9b84e,
            0 11px 20px rgba(22, 75, 97, 0.15);
    }

    .hero-brand-name::before {
        inset: -5px;
        border-radius: 21px 21px 21px 10px;
    }

    .hero-brand-name::after {
        width: 27px;
        height: 7px;
        top: -7px;
        right: 12px;
    }
}

/* Respect reduced-motion preferences */

@media (prefers-reduced-motion: reduce) {
    .hero-brand-name,
    .hero-brand-name .brand-sparkle {
        animation: none;
        transition: none;
    }
}


/* Smaller hero heading to emphasize the platform name */
.hero-title {
    font-size: clamp(27px, 3.2vw, 40px);
    line-height: 1.5;
}

.hero-title-highlight {
    font-size: inherit;
}

/* Mobile */
@media (max-width: 500px) {
    .hero-title {
        font-size: clamp(24px, 6vw, 30px);
        line-height: 1.5;
    }
}
