@import url('/css/global.css');

/* ============================================================
   DUBAI WAY BRAND ACCENT — blue, not teal
   ------------------------------------------------------------
   global.css is shared by all four trainee portals (Dubai Way,
   Tour Guide, Safari Driver, Nanny), so its :root --dw-teal*
   ladder cannot be repointed without recolouring the other
   three. Dubai Way re-declares the ladder on its own <body>
   instead: a custom property set on the element itself beats
   whatever it would otherwise inherit from :root, whichever
   order the stylesheets happen to load in.

   Night and Contrast re-override these under
   `html[data-ax-theme|data-ax-contrast] .dw-portal` in
   accessibility.css — anything added here needs adding there
   too, or it stays blue in Night and breaks Contrast.
   ============================================================ */
.dw-portal {
    --dw-teal: #0077C0;
    --dw-teal-b: #1A8AD0;
    --dw-teal-bold: #005E99;
    --dw-teal-light: rgba(179, 224, 248, 0.5);
    --dw-teal-l: #E6F2FB;
    --dw-teal-2: rgba(0, 119, 192, 0.1);
    --dw-teal-4: rgba(0, 119, 192, 0.4);
    --dw-teal-5: rgba(0, 119, 192, 0.05);
    --dw-teal-10: rgba(0, 119, 192, 0.1);
    --dw-teal-20: rgba(0, 119, 192, 0.2);
    --dw-teal-30: rgba(179, 224, 248, 0.3);
    --dw-teal-40: rgba(0, 94, 153, 0.8);
    --dw-teal-90: rgba(0, 119, 192, 0.9);
    --dw-teal-50: #8ECBEC;
    --dw-teal-100: #B3E0F8;
    --dw-teal-300: #1A6FA8;
    --dw-teal-400: #23689B;
    --dw-teal-500: #0086D6;
    --dw-teal-600: #00679F;
    /* Banner / hero gradients built on the teal pair. */
    --dw-stats-from: #00518A;
    --dw-stats-to: #0090E0;
    --dw-shadow: 0 8px 32px rgba(0, 80, 130, 0.08);
    --dw-shadow-lg: 0 16px 48px rgba(0, 80, 130, 0.12);
}

body {
    background-color: var(--dw-bg-body);
    /* Footer pinned to the bottom of the viewport on short pages (e.g. a learner-view quiz): without
       it the footer ended mid-screen with a band of page background below it. Same fix as
       nanny-landing.css / tourguide-landing.css. */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

    body > main[role="main"] {
        flex: 1 0 auto;
        width: 100%;
    }

/* ── HERO ────────────────────────────────── */
.dw-hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.dw-hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('/images/dubaiway/top-section.svg');
    background-size: cover;
    background-position: center 40%;
}

    /* Simulate skyline silhouette */
    .dw-hero-bg::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 50%;
        background: linear-gradient(to top, rgba(140,185,205,.45) 0%, rgba(160,200,218,.25) 50%, transparent 100%);
    }

.dw-hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    padding: 190px 24px;
}

/* Staggered entrance animation */
@keyframes dw-fadeUp {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .dw-hero-content > * {
        animation: dw-fadeUp .7s cubic-bezier(.22,1,.36,1) both;
    }

        .dw-hero-content > *:nth-child(1) {
            animation-delay: .1s;
        }

        .dw-hero-content > *:nth-child(2) {
            animation-delay: .22s;
        }

        .dw-hero-content > *:nth-child(3) {
            animation-delay: .34s;
        }
}

.dw-hero-h1 {
    font-size: 4rem;
    font-weight: 700;
    line-height: 4.4rem;
    letter-spacing: -1.28px;
    color: var(--dw-ink);
    margin-bottom: 20px;
    margin-top: 0;
}

.dw-accent-text {
    color: var(--dw-teal-b);
}

.dw-hero-sub {
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--dw-muted);
    line-height: 1.8rem;
    max-width: 39.875rem;
    margin: 0 auto 36px;
}

.dw-hero-btns {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── SHARED BUTTONS ────────────────────────────────── */
.dw-btn-sm {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s;
}

.dw-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 1.5rem;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s;
}

    .dw-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(0,0,0,.13);
    }

.dw-btn-teal {
    background: var(--dw-btn, #0077C0);
    color: var(--dw-white);
}

    .dw-btn-teal:hover {
        background: var(--dw-btn-bold, #005E99);
        color: var(--dw-white);
    }

.dw-btn-dark {
    background: var(--dw-ink);
    color: var(--dw-white);
}

    .dw-btn-dark:hover {
        background: #2a2a2a;
        color: var(--dw-white);
    }

.dw-btn-pill {
    border-radius: 100px;
    padding: 15px 32px;
}

.btn-uea {
    font-size: 1.0625rem;
    font-weight: 500;
}

/* Outline button — same pill shape as landing */
.dw-btn-outline {
    background: transparent;
    color: var(--dw-btn, #0077C0);
    border: 1.5px solid var(--dw-btn, #0077C0);
    transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s;
}

    .dw-btn-outline:hover {
        border-color: var(--dw-btn-bold, #005E99);
        color: var(--dw-btn-bold, #005E99);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0,119,192,.15);
    }

/* ── FEATURES STRIP ────────────────────────────────── */
.dw-features {
    padding: 60px 56px;
}

.dw-features-grid {
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(var(--items-count, 4), 1fr);
    max-width: calc(var(--items-count, 4) * 300px);
    gap: 48px;
    text-align: center;
}

.dw-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 18px 12px;
}

.dw-feat-ico {
    width: 36px;
    height: 36px;
    color: var(--dw-teal);
}

.dw-feat-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--dw-muted);
    line-height: 1.225rem;
}

/* ── SHARED SECTION ────────────────────────────────── */
.dw-section {
    padding: 72px 56px;
}

.dw-section-white {
    background: var(--dw-white);
}

.dw-section-surf {
    background: var(--dw-surf);
}

.dw-section-bg-b {
    background: rgba(214, 210, 196, 0.30);
}

/* ── EXPLORE DUBAI ────────────────────────────────── */
.dw-explore-wrap {
    max-width: 1275px;
    margin: 0 auto;
}

.dw-sec-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 28px;
}

.dw-sec-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--dw-ink);
    letter-spacing: -0.32px;
    line-height: 2.4rem
}

.dw-sec-link {
    font-size: 1rem;
    font-weight: 400;
    color: var(--dw-teal);
    text-decoration: none;
}

    .dw-sec-link:hover {
        text-decoration: underline;
    }

.dw-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.dw-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
}

.dw-card {
    position: relative;
    display: block;
    color: inherit;
    text-decoration: none;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    transition: transform .25s cubic-bezier(.22,1,.36,1);
}

    .dw-card:hover {
        transform: scale(1.016);
    }

        .dw-card:hover .dw-card-img {
            transform: scale(1.06);
        }

.dw-card-lg {
    height: 500px;
}

.dw-card-sm {
    height: 400px;
}

.dw-card-img {
    width: 100%;
    height: 100%;
    display: block;
    background-size: cover;
    background-position: center;
    transition: transform .4s cubic-bezier(.22,1,.36,1);
}

/* ─ Card image placeholders (replace with real images in production) ─ */
.dw-bg-attractions {
    background-image: linear-gradient(to top, rgba(0,0,0,0.60) 0%, rgba(0,0,0,0) 100%), url('/images/dubaiway/Attractions.png');
}

.dw-bg-heritage {
    background-image: linear-gradient(to top, rgba(0,0,0,0.60) 0%, rgba(0,0,0,0) 100%), url('/images/dubaiway/Culture.png');
}

.dw-bg-dining {
    background-image: linear-gradient(to top, rgba(0,0,0,0.60) 0%, rgba(0,0,0,0) 100%), url('/images/dubaiway/Dining.png');
}

.dw-bg-events {
    background-image: linear-gradient(to top, rgba(0,0,0,0.60) 0%, rgba(0,0,0,0) 100%), url('/images/dubaiway/Events.png');
}

.dw-bg-transport {
    background-image: linear-gradient(to top, rgba(0,0,0,0.60) 0%, rgba(0,0,0,0) 100%), url('/images/dubaiway/Transport.png');
}

.dw-card-ov {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 22px 20px 24px;
    background: linear-gradient( to top, rgba(0, 0, 0, 0.60) 0%, rgba(0, 0, 0, 0) 100% );
}

.dw-pill {
    display: inline-block;
    background: var(--dw-teal-4);
    color: var(--dw-white);
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 100px;
    margin-bottom: 8px;
    backdrop-filter: blur(6px); /* frosted glass effect */
    -webkit-backdrop-filter: blur(6px);
}

/* Always over a photo under a dark gradient, so a literal white: Night and High Contrast redefine
   --dw-white as a dark surface colour, which turned this text dark-on-dark. */
.dw-card-label {
    display: block;
    color: #FFFFFF;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0px;
}

    /* Curriculum subtitles are admin rich text: keep its paragraphs and lists tight inside the card. */
    .dw-card-label p {
        margin: 0;
    }

    .dw-card-label p + p,
    .dw-card-label p + ul, .dw-card-label p + ol,
    .dw-card-label ul + p, .dw-card-label ol + p {
        margin-top: 0.5rem;
    }

    .dw-card-label ul, .dw-card-label ol {
        margin: 0;
        padding-inline-start: 1.25rem;
    }

/* ── AI SECTION ────────────────────────────────── */
.dw-ai-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.dw-ai-h2 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 2.75rem;
    letter-spacing: -0.8px;
    color: var(--dw-ink);
    margin-bottom: 14px;
}

.dw-ai-desc {
    font-size: 1.125rem;
    color: var(--dw-muted);
    line-height: 1.8rem;
    margin-bottom: 50px;
}

.dw-checklist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

    .dw-checklist li {
        display: flex;
        align-items: center;
        gap: 12px;
        font-size: 1rem;
        font-weight: 400;
        color: var(--dw-ink);
    }

.dw-chk-ico {
    width: 20px;
    height: 20px;
    color: var(--dw-teal);
    flex-shrink: 0;
}

/* Personal Intelligence Card */
.dw-pi-card {
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid var(--dw-white-40);
    background: var(--dw-white-40);
    backdrop-filter: blur(10px);
}

.dw-pi-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.dw-pi-title {
    font-size: 1rem;
    font-weight: 400;
    color: var(--dw-ink);
}

.dw-pi-dot {
    width: 8px;
    height: 8px;
    background: var(--dw-teal);
    border-radius: 50%;
}

.dw-pi-item {
    border-radius: 12px;
    background: var(--dw-white-50);
    padding: 16px;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

    .dw-pi-item:last-child {
        margin-bottom: 0;
    }

.dw-pi-item-ai {
    border: 1px solid rgba(0, 119, 192, 0.20);
    background: var(--dw-teal-5);
}

.dw-pi-ico {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: var(--dw-teal-500);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dw-pi-ico-lt {
    background: var(--dw-teal-100);
}

.dw-pi-tag {
    font-size: 1rem;
    font-weight: 400;
    text-transform: uppercase;
    color: var(--dw-teal);
}

.dw-pi-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dw-ink);
}

.dw-pi-quote {
    font-size: 1rem;
    color: var(--dw-ink);
    font-style: italic;
    line-height: 1.5rem;
    margin: 8px 0 0;
}

/* ── STATS ────────────────────────────────── */
.brd-sec {
    border-top: 1px solid rgba(188, 201, 202, 0.10);
    border-bottom: 1px solid rgba(188, 201, 202, 0.10);
}

.dw-stats-inner {
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    text-align: center;
}

.dw-stat-num {
    font-size: 1rem;
    font-weight: 400;
    color: var(--dw-teal);
    letter-spacing: -.03em;
    margin-bottom: 6px;
}

.dw-stat-lbl {
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--dw-body);
}

/* ── CTA ────────────────────────────────── */
.dw-cta-inner {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.dw-cta-h2 {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.32px;
    color: var(--dw-ink);
    margin-bottom: 12px;
}

.dw-cta-sub {
    font-size: 1.125rem;
    color: var(--dw-muted);
    margin-bottom: 34px;
    line-height: 1.8rem;
}

.dw-cta-acts {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.dw-link-arr {
    font-size: 1rem;
    font-weight: 400;
    color: var(--dw-muted);
    text-decoration: none;
    transition: color .2s;
}

    .dw-link-arr:hover {
        color: var(--dw-teal);
    }

/* ─────────────────────────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────────────────────────── */
.dw-footer {
    background: var(--dw-surf-b);
    border-top: 1px solid var(--dw-bdr-200);
}

/* ── Main 3-column content ── */
.dw-footer__main {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 48px;
    padding: 48px 64px;
}

/* Brand column */
.dw-footer__brand-logo {
    display: block;
    margin-bottom: 16px;
}

.dw-footer__brand-desc {
    font-size: 1rem;
    line-height: 1.5rem;
    color: var(--dw-muted);
    margin-bottom: 20px;
    max-width: 21.875rem;
}

.dw-footer__social {
    display: flex;
    gap: 8px;
}

.dw-footer__icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--dw-bdr-b);
    border-radius: 9999px;
    background: none;
    color: var(--dw-ink);
    cursor: pointer;
    transition: border-color .2s, color .2s;
}

    .dw-footer__icon-btn:hover {
        border-color: var(--dw-btn, #0077C0);
        color: var(--dw-btn, #0077C0);
    }

/* Nav columns */
.dw-footer__col-heading {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dw-ink);
    margin-bottom: 16px;
    margin-top: 0;
}

.dw-footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .dw-footer__links a {
        font-size: 1rem;
        color: var(--dw-muted);
        font-weight: 400;
        text-decoration-line: underline;
        text-decoration-style: solid;
        text-decoration-skip-ink: none;
        text-decoration-thickness: auto;
        text-underline-offset: auto;
        text-underline-position: from-font;
        transition: opacity .18s;
    }

        .dw-footer__links a:hover {
            opacity: .72;
        }

/* ── Footer responsive ── */
@media (max-width: 900px) {
    .dw-footer__main {
        padding: 20px;
        gap: 32px;
    }
}

@media (max-width: 640px) {
    .dw-footer__main {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 20px;
    }
}

/* ── Brand-only footer ──
   The Explore / Support link columns are commented out in _DubaiWayLayout until they have real targets.
   With only the brand column left, the 3-column grid and its 48px padding leave a tall empty band, so
   the brand block lays out as one compact row (logo · description · social icons) instead. Keyed on the
   columns being absent, so restoring them brings back the normal 3-column layout. */
.dw-footer__main:not(:has(.dw-footer__col)) {
    display: block;
    padding: 28px 64px 20px;
}

    .dw-footer__main:not(:has(.dw-footer__col)) .dw-footer__brand {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 16px 32px;
    }

    .dw-footer__main:not(:has(.dw-footer__col)) .dw-footer__brand-logo,
    .dw-footer__main:not(:has(.dw-footer__col)) .dw-footer__brand-desc {
        margin-bottom: 0;
    }

    .dw-footer__main:not(:has(.dw-footer__col)) .dw-footer__brand-desc {
        flex: 1 1 20rem;
        max-width: 36rem;
    }

    .dw-footer__main:not(:has(.dw-footer__col)) .dw-footer__social {
        margin-inline-start: auto;
    }

.dw-footer__main:not(:has(.dw-footer__col)) + .dw-footer__legal_cont .dw-footer__legal {
    padding-top: 20px;
}

@media (max-width: 900px) {
    .dw-footer__main:not(:has(.dw-footer__col)) {
        padding: 20px;
    }
}

@media (max-width: 640px) {
    /* Stacked again on phones; the icons sit under the text, not pushed to the far edge. */
    .dw-footer__main:not(:has(.dw-footer__col)) .dw-footer__social {
        margin-inline-start: 0;
    }
}

/* ── Legal / copyright bar ── */
.dw-footer__legal_cont {
    background: var(--dw-surf-b);
    padding: 0px 64px 24px;
}

.dw-footer__legal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 32px;
}

.brd-top {
    border-top: 1px solid rgba(109, 121, 122, 0.20);
}

.dw-footer__copy {
    font-size: 1rem;
    color: var(--dw-muted);
}

.dw-footer__legal-links {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 20px;
}

    .dw-footer__legal-links a {
        font-size: 1rem;
        color: var(--dw-muted);
        text-decoration: none;
        transition: color .18s;
    }

        .dw-footer__legal-links a:hover {
            color: var(--dw-teal);
        }

/* Responsive */
@media (max-width: 900px) {
    .dw-footer__legal {
        padding: 14px 28px;
    }

    .dw-footer__legal_cont {
        padding: 20px;
    }
}

@media (max-width: 640px) {
    .dw-footer__legal {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 14px 20px;
    }

    .dw-footer__legal-links {
        flex-wrap: wrap;
        gap: 12px;
    }
}


/* ── JOURNEY PATH ──────────────────────────────── */
.dw-path {
    padding: 48px 64px 80px;
    text-align: center;
}

.dw-path h2,
.dw-path .ab-journey-h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--dw-ink);
    margin-bottom: 48px;
}

.dw-path-steps {
    display: flex;
    margin: 0 auto;
    justify-content: center;
    gap: 0;
}

.dw-step {
    flex: 1 1 0;
    max-width: 280px;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.dw-step-num {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--dw-teal);
    color: var(--dw-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.dw-step-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dw-ink);
    margin: 0 0 8px;
}

.dw-step-desc {
    font-size: 0.9375rem;
    color: var(--dw-muted);
    line-height: 1.5;
    margin: 0;
}

.ab-journey-path {
    padding: 0;
}


/* ── RESPONSIVE ────────────────────────────────── */
@media (max-width: 992px) {
    .dw-navbar {
        padding: 0 24px;
    }

    .dw-section {
        padding: 56px 24px;
    }

    .dw-features {
        padding: 36px 24px;
    }

    .dw-features-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .dw-ai-inner {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}

@media (max-width: 768px) {
    .dw-navbar {
        padding: 0 20px;
    }

    .dw-nav-links,
    .dw-nav-cta {
        display: none;
    }
    /* hide desktop nav  */
    .dw-nav-toggle {
        display: flex;
    }
    /* show hamburger    */

    /* Add mobile menu as needed */
    .dw-hero-h1 {
        font-size: 2.5rem;
    }

    .dw-grid-2, .dw-grid-3 {
        grid-template-columns: 1fr;
    }

    .dw-card-lg, .dw-card-sm {
        height: 240px;
    }

    .dw-stats-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .dw-path-steps {
        flex-wrap: wrap;
        justify-content: center;
        gap: 24px 0;
        max-width: 100%;
    }
}

@media (max-width: 480px) {

    .dw-hero-content {
        padding: 110px 24px;
    }

    .dw-path {
        padding: 48px 20px;
    }

    .dw-path-steps {
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
    }
}

/* ── RESPONSIVE FIXES ──────────────────────────── */

@media (max-width: 992px) {
    .dw-hero-content {
        padding: 100px 24px 60px;
    }

    .dw-hero-h1 {
        font-size: 2.75rem;
        line-height: 1.2;
    }

    .dw-stats-inner {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .dw-hero-content {
        padding: 80px 20px 40px;
    }

    .dw-hero-h1 {
        font-size: 2.25rem;
        line-height: 1.25;
    }

    .dw-hero-sub {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 24px;
    }

    .dw-grid-2, .dw-grid-3 {
        grid-template-columns: 1fr;
    }

    .dw-card-lg, .dw-card-sm {
        height: 260px;
    }

    /* جعل الأرقام الإحصائية تظهر بشكل عمودي مناسب للموبايل */
    .dw-stats-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* ضبط خطوات Journey Path */
    .dw-path-steps {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .dw-step {
        max-width: 100%;
        padding: 0;
    }
}

@media (max-width: 480px) {
    .dw-hero-h1 {
        font-size: 1.75rem;
    }

    .dw-btn {
        width: 100%;
        justify-content: center;
        font-size: 1.125rem;
        padding: 12px 20px;
    }

    .dw-hero-btns {
        flex-direction: column;
        width: 100%;
    }

    .dw-sec-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}


/* منع السكرول الأفقي لكل الصفحة */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

/* إصلاح الـ Hero قسم الواجهة */
.dw-hero-content {
    max-width: 100% !important;
    padding: 120px 16px 40px !important; /* تقليل الـ 190px لتناسب الموبايل */
    box-sizing: border-box;
}

.dw-hero-h1 {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* إصلاح الهيدر واللوجو ليناسب عرض الموبايل */
.tg-navbar, .dw-navbar {
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}

.tg-header__logo img,
.tg-scroll-image {
    max-width: 100%;
    height: auto;
}

/* تحسين الأزرار على الموبايل */
@media (max-width: 640px) {
    .dw-hero-btns {
        flex-direction: column;
        width: 100%;
    }

        .dw-hero-btns .dw-btn {
            width: 100%;
            justify-content: center;
            box-sizing: border-box;
        }

    .dw-hero-h1 {
        font-size: 2.2rem !important;
        line-height: 2.6rem !important;
    }
}

