/*
Theme Name : Kiddies
File       : kiddies.css — the mobile-first layer
Author     : AB Designs (abdesigns.site)

main.css is the inherited component sheet. Everything in *this* file is
authored mobile-first: the base rules describe a 320px phone and every
media query is `min-width`, adding capability as the viewport grows. It also
owns the pieces main.css never had — the language switcher, the wordmark,
the hero stat strip — and the handful of RTL corrections that CSS logical
properties cannot express (icon direction, gradients, mirrored ornaments).
*/

/* =========================================================================
   0. Icon fonts
   The template shipped placeholder .woff2 files, so the real Font Awesome 6
   Free faces are installed here under explicit family names. Listing Regular
   before Solid gives per-glyph fallback: an icon that exists only in the Solid
   set still resolves instead of rendering as a tofu box, and none of the
   markup has to know which weight an icon lives in.
   ========================================================================= */
@font-face {
    font-family: "FA6 Solid";
    src: url("../webfonts/fa-solid-900.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: "FA6 Regular";
    src: url("../webfonts/fa-regular-400.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: "FA6 Brands";
    src: url("../webfonts/fa-brands-400.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: block;
}

.fa, .fas, .far, .fal, .fat, .fad,
.fa-solid, .fa-regular, .fa-light, .fa-thin, .fa-duotone, .fa-classic,
[class^="fa-"], [class*=" fa-"] {
    font-family: "FA6 Regular", "FA6 Solid" !important;
    font-weight: 400 !important;
    font-style: normal;
    font-variant: normal;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
}

.fas, .fa-solid, .fa-classic.fa-solid {
    font-family: "FA6 Solid" !important;
}

.fab, .fa-brands {
    font-family: "FA6 Brands" !important;
}

/* =========================================================================
   1. Design tokens
   ========================================================================= */
:root {
    --font-display: "Fredoka", "Baloo Bhaijaan 2", sans-serif;
    --font-body: "Nunito", "Tajawal", sans-serif;
    --font-script: "Caveat", "Baloo Bhaijaan 2", cursive;

    /* fluid scale: 320px → 1400px viewport */
    --step--1: clamp(0.82rem, 0.79rem + 0.15vw, 0.9rem);
    --step-0: clamp(0.95rem, 0.91rem + 0.2vw, 1rem);
    --step-1: clamp(1.1rem, 1rem + 0.5vw, 1.25rem);
    --step-2: clamp(1.3rem, 1.1rem + 1vw, 1.75rem);
    --step-3: clamp(1.6rem, 1.2rem + 2vw, 2.6rem);
    --step-4: clamp(2rem, 1.3rem + 3.5vw, 4.375rem);

    --gutter: clamp(1rem, 0.6rem + 2vw, 2rem);
    --section-y: clamp(3rem, 1.5rem + 7vw, 7.5rem);
    --radius-lg: clamp(18px, 1.5vw, 30px);
}

html[dir="rtl"] {
    --font-display: "Baloo Bhaijaan 2", "Fredoka", sans-serif;
    --font-body: "Tajawal", "Nunito", sans-serif;
    --font-script: "Baloo Bhaijaan 2", cursive;
}

body {
    font-family: var(--font-body);
    font-size: var(--step-0);
    -webkit-text-size-adjust: 100%;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
}

h1, h2, h3, h4, h5, h6, .theme-btn, .logo-word {
    font-family: var(--font-display);
}

/* the inherited sheet title-cases every heading, which mangles email
   addresses, street names and German nouns — the copy is already cased */
h1, h2, h3, h4, h5, h6, .theme-btn, a, .hilight-text p,
.breadcrumb-items li, .lang-option { text-transform: none; }

/* Arabic and German both need a touch more line height than the Latin default */
html[dir="rtl"] body,
html[lang="de"] body {
    line-height: 1.85;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3 {
    line-height: 1.45;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

:where(a, button, input, select, textarea):focus-visible {
    outline: 3px solid var(--theme4);
    outline-offset: 3px;
    border-radius: 6px;
}

img {
    max-width: 100%;
    height: auto;
}

/* =========================================================================
   2. Mobile-first typography + rhythm
   Base = phone. Each min-width step scales up.
   ========================================================================= */
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
h5 { font-size: var(--step-1); }
h6 { font-size: var(--step-0); }

.section-padding {
    padding-block: var(--section-y);
}

.section-title h2 {
    margin-block-end: 0;
}

.section-title span {
    font-family: var(--font-script);
    font-size: clamp(1.1rem, 1rem + 0.8vw, 1.6rem);
    letter-spacing: 0.02em;
}

.theme-btn {
    font-size: clamp(0.9rem, 0.86rem + 0.2vw, 1rem);
    padding: 16px 26px;
    border-radius: 16px;
}

@media (min-width: 576px) {
    .theme-btn { padding: 19px 32px; border-radius: 20px; }
}

@media (min-width: 992px) {
    .theme-btn { padding: 22px 40px; border-radius: 22px; }
}

/* the vendor sheet hides these ornaments only at large sizes — on a phone
   they are pure weight, so start them off and switch them on with the space */
.hero-section .left-shape,
.hero-section .right-shape,
.hero-section .star-shape,
.hero-section .pencil-shape,
.program-section .compass-shape,
.program-section .mask-shape-2,
.about-section .bus-shape,
.about-section .girl-shape,
.about-activities-section .pencil-shape,
.testimonial-section .right-shape,
.testimonial-section .tree-shape,
.footer-section .frame-shape,
.footer-section .zebra-shape,
.team-section .frame-shape,
.breadcrumb-wrapper .frame-shape,
.breadcrumb-wrapper .plane-shape {
    display: none;
}

@media (min-width: 992px) {
    .hero-section .left-shape,
    .hero-section .right-shape,
    .hero-section .star-shape,
    .hero-section .pencil-shape,
    .program-section .compass-shape,
    .program-section .mask-shape-2,
    .about-section .bus-shape,
    .about-section .girl-shape,
    .about-activities-section .pencil-shape,
    .testimonial-section .right-shape,
    .testimonial-section .tree-shape,
    .footer-section .frame-shape,
    .footer-section .zebra-shape,
    .team-section .frame-shape,
    .breadcrumb-wrapper .frame-shape,
    .breadcrumb-wrapper .plane-shape {
        display: block;
    }
}

/* =========================================================================
   3. Brand mark
   ========================================================================= */
.header-logo,
.offcanvas__logo a,
.widget-head a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-mark {
    flex: 0 0 auto;
    inline-size: 38px;
    block-size: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--theme);
    color: var(--theme3);
}

.logo-mark svg { inline-size: 20px; block-size: 20px; }

.logo-word {
    font-size: clamp(1.5rem, 1.3rem + 1vw, 1.95rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.01em;
    color: var(--header);
    white-space: nowrap;
}

.logo-word > span { color: var(--theme); }

.footer-section .logo-word,
.offcanvas__info .logo-word { color: var(--header); }

/* the preloader spells the brand out */
.preloader .animation-preloader .txt-loading {
    font-size: clamp(2rem, 1rem + 6vw, 5em);
}

/* =========================================================================
   4. Language switcher
   ========================================================================= */
.lang-switcher {
    position: relative;
    z-index: 60;
    font-family: var(--font-body);
}

.lang-current {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.lang-current:hover { background: rgba(255, 255, 255, 0.26); }

.lang-current .arrow {
    font-size: 0.6rem;
    transition: transform 0.25s ease;
}

.lang-switcher.is-open .lang-current .arrow { transform: rotate(180deg); }

.lang-list {
    position: absolute;
    inset-block-start: calc(100% + 10px);
    inset-inline-end: 0;
    min-inline-size: 168px;
    margin: 0;
    padding: 8px;
    list-style: none;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(51, 35, 92, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
}

.lang-switcher.is-open .lang-list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    inline-size: 100%;
    padding: 9px 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--header);
    font-size: 0.92rem;
    font-weight: 600;
    text-align: start;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.lang-option:hover { background: var(--bg); }

.lang-option.is-active {
    background: var(--theme);
    color: #fff;
}

.lang-short {
    flex: 0 0 auto;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    opacity: 0.65;
}

.lang-option.is-active .lang-short { opacity: 0.9; }

/* The switcher inside the sticky header sits on white, not on the pink bar.
   It is the *only* switcher a phone gets — the top bar is hidden there — so
   it has to be visible from 320px up, not just on desktop. */
.lang-switcher--compact .lang-current {
    border-color: var(--border);
    background: var(--bg);
    color: var(--header);
}

.lang-switcher--compact .lang-current:hover,
.lang-switcher--compact.is-open .lang-current {
    background: var(--theme);
    border-color: var(--theme);
    color: #fff;
}

.lang-switcher--compact {
    display: inline-block;
    margin-inline: 8px;
    order: 3;
}

.lang-switcher--compact .lang-current .arrow { display: none; }

@media (min-width: 1200px) {
    .lang-switcher--compact { margin-inline: 18px 6px; order: 0; }
    .lang-switcher--compact .lang-current .arrow { display: inline; }
    .header-top-section .lang-switcher { display: none; }
}

/* --- header fit -------------------------------------------------------
   Nine nav items + a category button + search + switcher + CTA is more than
   a 1500px header can hold, so the least important pieces drop out first. */
.header-1 .header-main .header-left .category-wrapper { display: none; }

@media (min-width: 1700px) {
    .header-1 .header-main .header-left .category-wrapper { display: block; }
}

@media (min-width: 1200px) and (max-width: 1499.98px) {
    .main-menu nav > ul > li > a { padding-inline: 12px; font-size: 0.95rem; }
    .header-button .theme-btn { padding: 16px 22px; }
    .lang-switcher--compact { margin-inline: 10px 4px; }
}

.main-menu nav > ul {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

/* the compact switcher's menu must not run off a 360px screen */
@media (max-width: 1199.98px) {
    .lang-switcher--compact .lang-list { inset-inline-end: 0; min-inline-size: 150px; }
}

.header-top-right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* on a phone the top bar is only the switcher — the rest is in the drawer */
.header-top-section .contact-list { display: none; }
.header-top-section .social-icon { display: none; }

@media (min-width: 768px) {
    .header-top-section .contact-list { display: flex; }
}

@media (min-width: 992px) {
    .header-top-section .social-icon { display: flex; }
}

/* =========================================================================
   5. Hero
   ========================================================================= */
.hero-section .hero-content h1 {
    margin-block: 0.35em 0.5em;
}

.hero-section .hero-content h5 {
    font-family: var(--font-script);
    font-size: clamp(1.15rem, 1rem + 1vw, 1.75rem);
}

.hero-image img:first-child {
    inline-size: 100%;
    max-inline-size: 460px;
    aspect-ratio: 611 / 727;
    object-fit: cover;
    border-radius: 56% 44% 48% 52% / 46% 42% 58% 54%;
    box-shadow: 0 30px 70px rgba(51, 35, 92, 0.18);
}

@media (min-width: 992px) {
    .hero-image img:first-child { max-inline-size: none; }
}

/* the balloon sat on top of the H1 — float it out into the margin instead */
.hero-1 .parasuit-shape { inset-block-start: 14%; inset-inline-start: 1.5%; }
.hero-1 .book-shape { inset-block-start: 12%; }
.hero-1 .left-shape { inset-block-end: 2%; inset-inline-start: -1%; z-index: 0; }
.hero-1 .hero-content { position: relative; z-index: 3; }

/* the rainbow was landing on the first teacher card's caption */
.team-section .love-shape { inset-block-end: -34px; inset-inline-start: -46px; z-index: 0; }
.team-section .container { position: relative; z-index: 2; }

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(1.25rem, 4vw, 3rem);
    margin-block-start: 2.25rem;
    padding: 0;
    list-style: none;
}

.hero-stats li {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hero-stats strong {
    font-family: var(--font-display);
    font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem);
    font-weight: 700;
    line-height: 1;
    color: var(--theme);
}

.hero-stats strong::after {
    content: "+";
    color: var(--theme3);
}

.hero-stats li > span {
    font-size: var(--step--1);
    color: var(--text);
}

/* =========================================================================
   6. Photography treatment
   ========================================================================= */
.about-image img,
.about-image-2 img,
.activities-image img,
.program-image img,
.news-image img,
.news-thumb img,
.event-image img,
.instagram-banner .banner-image img,
.gallery-thumb-7 img,
.recent-thumb img,
.post-featured-thumb img,
.details-image img,
.team-author-items .thumb img,
.cta-image img {
    inline-size: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.program-image img { aspect-ratio: 355 / 270; }
.event-image img { aspect-ratio: 420 / 300; }
.gallery-thumb-7 img { aspect-ratio: 1; }
.news-card-items .news-image img { aspect-ratio: 530 / 340; }
.team-image img:not(.shape-img img) { border-radius: var(--radius-lg); }

.cta-image img {
    border-radius: 50% 50% 46% 54% / 44% 48% 52% 56%;
    max-inline-size: 340px;
}

.recent-thumb img,
.recent-post-items .thumb img,
.blog-single-comment .thumb img,
.post-items .thumb img {
    border-radius: 14px;
    object-fit: cover;
}

.breadcrumb-wrapper {
    position: relative;
    padding-block: clamp(4.5rem, 3rem + 9vw, 9rem);
    background-position: center;
    background-size: cover;
}

.breadcrumb-wrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(51, 35, 92, 0.88), rgba(255, 61, 127, 0.72));
}

.breadcrumb-wrapper .container { position: relative; z-index: 2; }
.breadcrumb-wrapper .page-heading h1 { color: #fff; }
.breadcrumb-wrapper .breadcrumb-items li,
.breadcrumb-wrapper .breadcrumb-items li a { color: rgba(255, 255, 255, 0.85); }
.breadcrumb-wrapper .breadcrumb-items li a:hover { color: var(--theme3); }

.breadcrumb-wrapper .page-heading {
    text-align: center;
}

.breadcrumb-wrapper .breadcrumb-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 0;
    margin-block-start: 12px;
    list-style: none;
}

/* =========================================================================
   7. Components main.css never had
   ========================================================================= */
.gallery-thumb-7 {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    aspect-ratio: 1;
}

/* The dashed ring behind the section photo is only anchored inside the home
   page wrapper upstream; on the other pages it fell into the flow and left a
   blank circle. Anchor it wherever the image block appears. */
.activities-img-items { position: relative; z-index: 1; }

.activities-img-items .radius-shape {
    position: absolute;
    inset-block-start: 50%;
    inset-inline-start: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    pointer-events: none;
}

[dir="rtl"] .activities-img-items .radius-shape { transform: translate(50%, -50%); }

@media (max-width: 1199.98px) {
    .activities-img-items .radius-shape { display: none; }
}

.gallery-thumb-7 .icon {
    position: absolute;
    inset-block-start: 50%;
    inset-inline-start: 50%;
    transform: translate(-50%, -50%) scale(0.6);
    inline-size: 54px;
    block-size: 54px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--theme);
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-thumb-7:hover .icon { opacity: 1; transform: translate(-50%, -50%) scale(1); }
[dir="rtl"] .gallery-thumb-7 .icon { transform: translate(50%, -50%) scale(0.6); }
[dir="rtl"] .gallery-thumb-7:hover .icon { transform: translate(50%, -50%) scale(1); }

.gallery-thumb-7::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(51, 35, 92, 0.45);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-thumb-7:hover::before { opacity: 1; }

/* two more blob colours so six programme cards never repeat side by side */
.program-box-items .program-bg.bg-4 { background-color: var(--theme4); }
.program-box-items .program-bg.bg-5 { background-color: var(--theme3); }

/* the light blobs (white, sunshine) need the dark text treatment */
.program-box-items .program-content.style-2 h4 a { color: var(--header); }
.program-box-items .program-content.style-2 span { color: var(--theme); }
.program-box-items .program-content.style-2 p { color: var(--header); }

/* decorations that were landing on live copy */
.cta-section .plane-shape { inset-block-start: 8%; inset-inline-end: 6%; inset-inline-start: auto; }
.cta-section .pencil-shape { inset-block-end: -20px; }

@media (max-width: 991.98px) {
    .cta-section .plane-shape,
    .cta-section .pencil-shape,
    .main-cta-section .plane-shape { display: none; }
}
.footer-section .frame-shape { inset-block-start: auto; inset-block-end: 40px; inset-inline-end: 3%; inset-inline-start: auto; }

/* the enrolment-step badges: white glyph on a solid brand blob, one colour
   per step. The blob is drawn in CSS so the inline background-image the
   template hard-codes is overridden rather than fought with. */
.process-work-wrapper .work-process-items .icon {
    display: grid;
    place-items: center;
    inline-size: 96px;
    block-size: 96px;
    line-height: 1;
    margin-inline: auto;
    background-image: none !important;
    background-color: var(--theme);
    border-radius: 62% 38% 46% 54% / 52% 44% 56% 48%;
    font-size: 2.1rem;
    color: #fff;
    box-shadow: 0 14px 30px rgba(51, 35, 92, 0.14);
    transition: transform 0.4s ease, border-radius 0.6s ease;
}

.process-work-wrapper .row > div:nth-child(2) .work-process-items .icon { background-color: var(--theme2); }
.process-work-wrapper .row > div:nth-child(3) .work-process-items .icon { background-color: var(--theme4); }
.process-work-wrapper .row > div:nth-child(4) .work-process-items .icon { background-color: var(--theme3); color: var(--header); }

.work-process-items:hover .icon {
    transform: translateY(-6px);
    border-radius: 44% 56% 60% 40% / 46% 58% 42% 54%;
}

.process-work-wrapper .work-process-items .content h4 { margin-block: 22px 8px; }

/* the inherited rule pins this ornament to `bottom: 0`; without clearing it
   the badge stretches into a full-height bar with one letter per line */
.pricing-items .element-shape {
    position: absolute;
    inset-block-start: 18px;
    inset-block-end: auto;
    inset-inline-end: 18px;
    inset-inline-start: auto;
    inline-size: auto;
    padding: 7px 15px;
    border-radius: 999px;
    background: var(--theme3);
    color: var(--header);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.pricing-items {
    position: relative;
    height: 100%;
    box-shadow: 0 18px 44px rgba(51, 35, 92, 0.09);
}

.pricing-items.active { box-shadow: 0 22px 54px rgba(255, 61, 127, 0.28); }

/* "€ 790 / per month" — the inherited −10px kern assumes no space in between */
.pricing-items .pricing-header h2 span {
    margin-inline-start: 8px;
    color: inherit;
    opacity: 0.75;
}

.pricing-items .pricing-header h4 { margin-block-end: 4px; }
.pricing-items .pricing-header p { color: var(--text); }
.pricing-items.active .pricing-header p { color: rgba(255, 255, 255, 0.85); }
.pricing-items .icon { inset-block-start: 34px; inset-inline-end: 30px; color: var(--theme3); }
.pricing-items.active .icon { color: rgba(255, 255, 255, 0.9); inset-block-start: 62px; }

/* keep the CTA on the card floor whatever the feature-list length */
.pricing-items { display: flex; flex-direction: column; }
.pricing-items .pricing-list { flex: 1 1 auto; }
.pricing-items .pricing-list li { display: flex; gap: 10px; align-items: flex-start; }

.error-items h1 {
    font-size: clamp(4.5rem, 2rem + 18vw, 11rem);
    line-height: 1;
    color: var(--theme);
}

.error-items .error-image img {
    inline-size: clamp(120px, 26vw, 190px);
    animation: float-bob-y 3s ease-in-out infinite alternate;
}

.feature-items {
    height: 100%;
    padding: 30px 24px;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--box-shadow);
}

.feature-items .icon {
    inline-size: 62px;
    block-size: 62px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    margin-block-end: 18px;
    font-size: 1.6rem;
}

.list-items,
.details-list {
    padding: 0;
    list-style: none;
}

.list-items li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-block-end: 12px;
}

.list-items li i { color: var(--theme); margin-block-start: 6px; }

.details-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-block: 12px;
    border-block-end: 1px solid var(--border);
}

.details-list-area {
    padding: 28px 24px;
    border-radius: var(--radius-lg);
    background: var(--bg2);
}

.details-list-area .theme-btn.border-style {
    background: transparent;
    border: 2px solid var(--theme);
    color: var(--theme);
}

.progress {
    block-size: 10px;
    border-radius: 999px;
    background: var(--border);
    overflow: hidden;
}

.progress-value {
    display: block;
    block-size: 100%;
    border-radius: 999px;
    background: var(--theme);
}

.progress-value.style-two { background: var(--theme2); }
.progress-value.style-three { background: var(--theme4); }

.pro-items { margin-block-end: 22px; }

.pro-head {
    display: flex;
    justify-content: space-between;
    margin-block-end: 8px;
    font-weight: 700;
    color: var(--header);
}

.hilight-text {
    position: relative;
    margin-block: 26px;
    padding: 26px 28px;
    border-radius: var(--radius-lg);
    background: var(--bg);
    border-inline-start: 5px solid var(--theme);
    font-size: var(--step-1);
    font-family: var(--font-display);
    color: var(--header);
}

.map-items iframe {
    display: block;
    inline-size: 100%;
    block-size: clamp(280px, 40vw, 480px);
    border: 0;
    filter: saturate(0.85);
}

/* --- contact page -------------------------------------------------------
   The inherited wrapper is a solid teal slab meant for a photo layout. Here
   it becomes a white card with a teal info rail, which keeps every label
   readable and still reads as the same family of shapes. */
.contact-section .contact-wrapper {
    background-color: transparent;
    border-radius: 0;
    margin-block-start: 0;
    display: grid;
    gap: clamp(1.5rem, 3vw, 2.5rem);
}

.contact-section .contact-info-area {
    height: 100%;
    padding: clamp(1.75rem, 3vw, 2.5rem);
    border-radius: var(--radius-lg);
    background: var(--theme2);
}

.contact-section .contact-info-area .contact-info-items .icon {
    background: rgba(255, 255, 255, 0.9);
    color: var(--theme2);
}

.contact-section .contact-info-area .contact-info-items .content p { color: rgba(255, 255, 255, 0.85); }
.contact-section .contact-info-area .contact-info-items .content h3,
.contact-section .contact-info-area .contact-info-items .content h3 a { color: #fff; }
.contact-section .contact-info-area .contact-info-items .content h3 a:hover { color: var(--theme3); }

.contact-form-items {
    padding: clamp(1.75rem, 3vw, 2.5rem);
    border-radius: var(--radius-lg);
    background: var(--bg2);
}

/* nice-select replaces the <select>; give the replacement the same shell */
.contact-form-items .nice-select,
.contact-form-items select {
    inline-size: 100%;
    min-block-size: 58px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    color: var(--header);
    line-height: 1.4;
    float: none;
}

.contact-form-items .nice-select .list { inline-size: 100%; }

/* the inherited sheet paints form text and placeholders white */
.contact-form-items .form-clt input,
.contact-form-items .form-clt textarea,
.comment-form-wrap .form-clt input,
.comment-form-wrap .form-clt textarea,
.newsletter-items input,
.search-widget input,
.main-search-input {
    color: var(--header) !important;
}

.contact-form-items .form-clt input::placeholder,
.contact-form-items .form-clt textarea::placeholder,
.comment-form-wrap .form-clt input::placeholder,
.comment-form-wrap .form-clt textarea::placeholder,
.newsletter-items input::placeholder,
.search-widget input::placeholder {
    color: var(--text) !important;
    opacity: 0.8;
}

.contact-info-items .content { text-align: start; }

/* the dashed frame ornament landed in the middle of the page banner */
.breadcrumb-wrapper .frame-shape,
.breadcrumb-wrapper .parasuit-shape { opacity: 0.55; }
.breadcrumb-wrapper .frame-shape { inset-block-start: auto; inset-block-end: -60px; inset-inline-end: 4%; inset-inline-start: auto; }

/* --- open-mornings band: the photo needs a scrim to carry white text ----- */
.cta-section { position: relative; isolation: isolate; }

.cta-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(100deg,
        rgba(51, 35, 92, 0.94) 0%,
        rgba(51, 35, 92, 0.82) 42%,
        rgba(255, 61, 127, 0.55) 100%);
}

[dir="rtl"] .cta-section::before {
    background: linear-gradient(-100deg,
        rgba(51, 35, 92, 0.94) 0%,
        rgba(51, 35, 92, 0.82) 42%,
        rgba(255, 61, 127, 0.55) 100%);
}

.cta-section .cta-wrapper p { max-inline-size: 46ch; }
.cta-section .theme-btn.bg-white { background: #fff; color: var(--header); }

/* --- testimonials: the attribution was dark-on-dark ---------------------- */
.testimonial-content h6 { color: #fff; margin-block-start: 18px; }
.testimonial-content > span {
    display: block;
    color: rgba(255, 255, 255, 0.78);
    font-size: var(--step--1);
}
.testimonial-items.style-3 .testimonial-content h6,
.testimonial-items.style-3 .testimonial-content > span { color: #fff; }

/* --- the toy train kept landing on body copy ---------------------------- */
.about-activities-section .zebra-shape { inset-block-end: -60px; opacity: 0.9; }
.footer-section .zebra-shape { inset-block-end: 60px; inset-inline-end: -70px; }

@media (max-width: 1599.98px) {
    .about-activities-section .zebra-shape,
    .footer-section .zebra-shape { display: none; }
}

/* --- footer contact strip ------------------------------------------------ */
.footer-section .contact-info-area {
    gap: clamp(1.25rem, 3vw, 3rem);
    padding-block-end: clamp(2rem, 4vw, 3.5rem);
    border-block-end: 1px solid rgba(51, 35, 92, 0.1);
}

.footer-section .contact-info-items .content h3 { font-size: var(--step-1); }
.footer-section .contact-info-items .content p { font-size: var(--step--1); color: var(--text); }

/* --- instagram strip ----------------------------------------------------- */
.instagram-banner .banner-image {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.instagram-banner .banner-image img {
    inline-size: 100%;
    aspect-ratio: 270 / 230;
}

.instagram-banner .banner-image .icon {
    position: absolute;
    inset-block-start: 50%;
    inset-inline-start: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    inline-size: 48px;
    block-size: 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--theme);
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.instagram-banner .banner-image:hover .icon { opacity: 1; transform: translate(-50%, -50%) scale(1); }
[dir="rtl"] .instagram-banner .banner-image .icon { transform: translate(50%, -50%) scale(0.7); }
[dir="rtl"] .instagram-banner .banner-image:hover .icon { transform: translate(50%, -50%) scale(1); }

.instagram-wrapper h3 { margin-block-end: clamp(1.5rem, 3vw, 2.5rem); }

/* =========================================================================
   8. RTL corrections logical properties cannot express
   ========================================================================= */
[dir="rtl"] .fa-arrow-right-long,
[dir="rtl"] .fa-arrow-left-long,
[dir="rtl"] .fa-arrow-right,
[dir="rtl"] .fa-arrow-left,
[dir="rtl"] .fa-chevron-right,
[dir="rtl"] .fa-chevron-left,
[dir="rtl"] .fa-angle-right,
[dir="rtl"] .fa-angle-left,
[dir="rtl"] .arrow-icon i,
[dir="rtl"] .array-button i {
    transform: scaleX(-1);
}

/* keep the dropdown caret pointing down, not sideways */
[dir="rtl"] .fa-angle-down,
[dir="rtl"] .fa-chevron-down { transform: none; }

[dir="rtl"] .hero-section .bottom-shape img,
[dir="rtl"] .footer-top-shape img,
[dir="rtl"] .f-bottom-shape img,
[dir="rtl"] .header-top-shape img,
[dir="rtl"] .top-shape img,
[dir="rtl"] .bottom-shape img {
    transform: scaleX(-1);
}

[dir="rtl"] .breadcrumb-wrapper::before {
    background: linear-gradient(-120deg, rgba(51, 35, 92, 0.88), rgba(255, 61, 127, 0.72));
}

/* the mean-menu plugin writes inline physical offsets */
[dir="rtl"] .mean-container .mean-bar { direction: rtl; }
[dir="rtl"] .mean-container .mean-nav ul li a { text-align: start; }
[dir="rtl"] .mean-container .mean-nav ul li a.mean-expand {
    inset-inline-end: 0;
    inset-inline-start: auto;
}

[dir="rtl"] .offcanvas__info { text-align: start; }
[dir="rtl"] .swiper { direction: rtl; }

/* phone numbers, emails and URLs must not be re-ordered by the RTL algorithm */
[dir="rtl"] a[href^="tel:"],
[dir="rtl"] a[href^="mailto:"],
[dir="rtl"] .lang-short {
    direction: ltr;
    unicode-bidi: embed;
    display: inline-block;
}

/* Arabic numerals in the fee cards read better left-to-right */
[dir="rtl"] .pricing-header h2,
[dir="rtl"] .hero-stats strong,
[dir="rtl"] time,
[dir="rtl"] .details-list li span:last-child {
    direction: ltr;
    unicode-bidi: isolate;
}

/* =========================================================================
   9. Mobile-first layout corrections
   Base = single column stacks; capability is added at each min-width.
   ========================================================================= */
.section-title-area {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    margin-block-end: 2rem;
}

@media (min-width: 768px) {
    .section-title-area {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }
}

.about-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0 2rem;
}

@media (min-width: 480px) {
    .about-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.about-author {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
    margin-block-start: 2rem;
}

.hero-button {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.75rem;
}

.hero-button .button-text {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.hero-button .button-text .ms-4 { margin-inline-start: 0 !important; }

.newsletter-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-inline-size: 620px;
    margin-inline: auto;
    margin-block-start: 2rem;
}

.newsletter-items .form-clt { flex: 1 1 auto; }

.newsletter-items input {
    inline-size: 100%;
    padding: 18px 24px;
    border: 0;
    border-radius: 16px;
    background: #fff;
    color: var(--header);
    font-family: var(--font-body);
}

@media (min-width: 576px) {
    .newsletter-items { flex-direction: row; align-items: stretch; }
    .newsletter-items .theme-btn { flex: 0 0 auto; }
}

.contact-info-area {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .contact-info-area { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .contact-info-area.d-block { display: block !important; }
}

.contact-info-items {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-info-items .icon {
    flex: 0 0 auto;
    inline-size: 58px;
    block-size: 58px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--bg);
    color: var(--theme);
    font-size: 1.3rem;
}

.contact-info-items .content h3 { font-size: var(--step-1); }

.footer-wrapper {
    flex-direction: column;
    gap: 12px;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-wrapper { flex-direction: row; text-align: start; }
}

.footer-menu {
    display: flex;
    gap: 1.5rem;
    padding: 0;
    list-style: none;
}

.footer-bottom p a { color: var(--theme3); }

.tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.page-nav-wrap ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 0;
    list-style: none;
}

.page-nav-wrap .page-numbers {
    display: grid;
    place-items: center;
    inline-size: 46px;
    block-size: 46px;
    border-radius: 14px;
    background: var(--bg);
    color: var(--header);
    font-weight: 700;
}

.page-nav-wrap .page-numbers.current,
.page-nav-wrap .page-numbers:hover { background: var(--theme); color: #fff; }

.news-widget-categories ul,
.details-list,
.pricing-list,
.list-area { padding: 0; list-style: none; }

.news-widget-categories li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding-block: 10px;
    border-block-end: 1px solid var(--border);
}

.single-sidebar-widget {
    padding: 26px 24px;
    margin-block-end: 26px;
    border-radius: var(--radius-lg);
    background: var(--bg2);
}

.single-sidebar-widget .wid-title h3 { margin-block-end: 16px; }

.search-widget form { display: flex; gap: 8px; }
.search-widget input {
    flex: 1 1 auto;
    min-inline-size: 0;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    color: var(--header);
}
.search-widget button {
    flex: 0 0 auto;
    inline-size: 46px;
    border-radius: 12px;
    background: var(--theme);
    color: #fff;
}

.recent-items {
    display: flex;
    gap: 14px;
    margin-block-end: 18px;
}

.recent-items .recent-thumb { flex: 0 0 86px; }
.recent-items ul { padding: 0; list-style: none; font-size: var(--step--1); }

.blog-single-comment {
    gap: 16px;
    padding-block: 22px;
    border-block-end: 1px solid var(--border);
}

.blog-single-comment .thumb { flex: 0 0 56px; }

.contact-form-items input,
.contact-form-items textarea,
.contact-form-items select,
.comment-form-wrap input,
.comment-form-wrap textarea {
    inline-size: 100%;
    padding: 16px 20px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    color: var(--header);
    font-family: var(--font-body);
}

.contact-form-items input::placeholder,
.contact-form-items textarea::placeholder,
.comment-form-wrap input::placeholder,
.comment-form-wrap textarea::placeholder { color: var(--text); opacity: 0.75; }

/* the vendor rule paints every input white-on-white */
input, textarea, select { color: var(--header); }

/* =========================================================================
   10. Motion & print
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    .float-bob-x, .float-bob-y { animation: none !important; }
    /* WOW.js hides .wow until it scrolls into view; with motion switched off
       that reveal never happens, so the content must start visible. */
    .wow { visibility: visible !important; animation-name: none !important; }
}

/* Same safety net when JavaScript never runs: after 2s of no WOW, show it. */
@media screen {
    .wow { animation-fill-mode: both; }
}

html.no-js .wow { visibility: visible !important; animation-name: none !important; }

@media print {
    .header-top-section, header, .offcanvas__info, .search-wrap,
    .main-cta-section, .instagram-banner, .scroll-icon, #preloader { display: none !important; }
    body { color: #000; }
}
