/* Evanspark ELCC Academy - Global Custom Styles */

/* @group GLOBAL UTILITIES */
.margin-left-50px {
    padding-left: 50px !important;
}

/* ================================================
   GLOBAL MOBILE REBUILD (ALL PAGES)
   ================================================ */
:root {
    --primary-yellow: #fed100;
    --primary-orange: #ff9800;
    --theme-gradient: linear-gradient(135deg, var(--primary-yellow) 0%, var(--primary-orange) 100%);
    --mobile-x-pad: 20px;
    /* Tighter gutters for high-end look */
    --mobile-y-gap: clamp(14px, 3.8vw, 24px);
    --mobile-card-radius: 14px;
    --mobile-soft-shadow: 0 10px 26px rgba(19, 26, 35, 0.1);
}

/* CURRICULUM ICONS */
.custom-bulb-wrapper {
    width: 82px;
    height: 82px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    transition: all 0.4s ease;
}

.custom-bulb-wrapper i {
    font-size: 38px;
    color: #ffffff;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
    transition: transform 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.elementor-flip-box:hover .custom-bulb-wrapper i {
    transform: scale(1.15) rotate(8deg);
}

/* SECTION COLOURS */
.section-yellow {
    background: var(--theme-gradient) !important;
    position: relative;
}

.section-yellow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 0%, rgba(255, 255, 255, 0) 40px);
    pointer-events: none;
}

/* PREMIUM IMAGES */
.premium-rounded-img img {
    border-radius: 30px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
    object-fit: cover !important;
    width: 100% !important;
}

.height-reduced img {
    height: 400px !important;
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

img,
video,
iframe,
svg {
    max-width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    :root {
        --mobile-x-pad: 20px !important;
    }

    html {
        scroll-behavior: smooth;
    }

    body {
        margin: 0 !important;
        -webkit-font-smoothing: antialiased;
        text-rendering: optimizeLegibility;
    }

    /* Remove squeezed page wrappers and force full-width flow */
    #page,
    .site,
    .site-main,
    #content,
    .page-content,
    [data-elementor-type],
    .elementor,
    .elementor-section-wrap,
    .elementor-location-header,
    .elementor-location-footer {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Keep sections full width while controlling inner text gutters */
    .elementor-section,
    .elementor-top-section {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        overflow: visible !important;
    }

    .elementor-top-section>.elementor-container,
    .elementor-section.elementor-section-boxed>.elementor-container,
    [data-elementor-type] .elementor-container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: var(--mobile-x-pad) !important;
        padding-right: var(--mobile-x-pad) !important;
    }

    /* Aggressively strip nested padding to ensure absolute alignment */
    .elementor-column,
    .elementor-widget-wrap,
    .elementor-widget-container,
    .elementor-text-editor {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        overflow: visible !important;
    }



    .elementor-widget:not(:last-child),
    .elementor-column .elementor-widget-wrap>.elementor-widget:not(:last-child) {
        margin-bottom: var(--mobile-y-gap) !important;
    }

    /* More natural mobile typography */
    h1,
    .elementor-heading-title.elementor-size-xxl,
    .elementor-heading-title.elementor-size-xl {
        font-size: clamp(1.5rem, 7vw, 2.05rem) !important;
        line-height: 1.2 !important;
        letter-spacing: -0.01em;
    }

    h2,
    .elementor-heading-title.elementor-size-large {
        font-size: clamp(1.25rem, 5.8vw, 1.72rem) !important;
        line-height: 1.28 !important;
    }

    h3,
    .elementor-heading-title.elementor-size-medium {
        font-size: clamp(1.06rem, 4.8vw, 1.28rem) !important;
        line-height: 1.35 !important;
    }

    p,
    li,
    .elementor-text-editor,
    .elementor-text-editor p,
    .elementor-widget-text-editor {
        font-size: clamp(0.98rem, 3.4vw, 1.05rem) !important;
        line-height: 1.65 !important;
    }

    /* Fix common inline text collisions */
    .elementor-widget-text-editor,
    .elementor-widget-text-editor p,
    .elementor-widget-heading,
    .elementor-widget-container {
        word-break: normal !important;
        overflow-wrap: anywhere !important;
    }

    /* Mobile-first image behavior */
    .elementor-widget-image,
    .elementor-widget-image .elementor-widget-container {
        width: 100% !important;
    }

    .elementor-widget-image img,
    .elementor-post__thumbnail img,
    .stratum-horizontal-timeline-item__card-image img {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Fix centering by removing desktop-only left padding on mobile */
    .margin-left-50px {
        padding-left: 0 !important;
    }

    /* Standardize logo and heading alignment on mobile for all program sections */
    [data-id="bas-logo"] {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        margin-top: 15px !important;
        margin-bottom: 20px !important;
    }

    [data-id="bas-logo"] img {
        width: 100% !important;
        max-width: 110px !important;
        height: auto !important;
        display: block !important;
        margin: 0 auto !important;
    }

    [data-id="bas-text"] {
        text-align: center !important;
        width: 100% !important;
    }

    [data-id="bas-text"] h3 {
        margin-top: 0 !important;
        margin-bottom: 12px !important;
        font-weight: 800 !important;
        font-size: clamp(1.6rem, 7.5vw, 2.1rem) !important;
        line-height: 1.15 !important;
        color: #1a202c !important;
    }

    [data-id="bas-text"] p {
        text-align: center !important;
    }

    /* Fix centering by removing desktop-only left padding on mobile */
    .margin-left-50px {
        padding-left: 0 !important;
    }

    /* Standardize logo and heading alignment on mobile for all program sections */
    [data-id="bas-logo"] {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        margin-top: 15px !important;
        margin-bottom: 20px !important;
    }

    [data-id="bas-logo"] img {
        width: 100% !important;
        max-width: 110px !important;
        height: auto !important;
        display: block !important;
        margin: 0 auto !important;
    }

    [data-id="bas-text"] {
        text-align: center !important;
        width: 100% !important;
    }

    [data-id="bas-text"] h3 {
        margin-top: 0 !important;
        margin-bottom: 12px !important;
        font-weight: 800 !important;
        font-size: clamp(1.6rem, 7.5vw, 2.1rem) !important;
        line-height: 1.15 !important;
        color: #1a202c !important;
    }

    [data-id="bas-text"] p {
        text-align: center !important;
    }

    /* Force Hero Slider and Curriculum Sliders to be truly edge-to-edge on mobile */
    #slider-cefa,
    #slider-cefa .elementor-container,
    #slider-cefa .elementor-column,
    #slider-cefa .elementor-widget-wrap,
    #slider-cefa .elementor-widget-slides,
    #slider-cefa .elementor-widget-container,
    [id*="slides-stem"],
    [id*="slides-literacy"],
    [id*="slides-arts"],
    [id*="slides-mindfulness"],
    [id*="slides-stem"] .elementor-container,
    [id*="slides-literacy"] .elementor-container,
    [id*="slides-arts"] .elementor-container,
    [id*="slides-mindfulness"] .elementor-container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    #slider-cefa .elementor-widget-slides,
    [id*="slides-stem"] .elementor-widget-reviews,
    [id*="slides-literacy"] .elementor-widget-reviews,
    [id*="slides-arts"] .elementor-widget-reviews,
    [id*="slides-mindfulness"] .elementor-widget-reviews {
        margin-bottom: 0 !important;
    }

    .elementor-post__thumbnail img,
    .stratum-horizontal-timeline-item__card-image img {
        border-radius: var(--mobile-card-radius);
        box-shadow: var(--mobile-soft-shadow);
    }

    /* Safer touch targets and premium interactions */
    button,
    [type="button"],
    [type="submit"],
    .elementor-button,
    a.elementor-button,
    .elementor-post__read-more {
        min-height: 46px !important;
        padding: 11px 20px !important;
        border-radius: 999px !important;
        font-weight: 700 !important;
        transition: transform 200ms ease, box-shadow 200ms ease, background-color 200ms ease !important;
    }

    .elementor-button:hover,
    .elementor-button:active,
    .elementor-post__read-more:hover {
        transform: translateY(-1px);
        box-shadow: var(--mobile-soft-shadow);
    }

    a,
    button,
    .elementor-icon,
    .elementor-social-icon {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    }

    /* Header and menu polish */
    #-desktop-header-section {
        position: sticky !important;
        top: 0 !important;
        z-index: 1000 !important;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    }

    #-desktop-header-section .elementor-nav-menu--dropdown {
        max-height: calc(100vh - 86px) !important;
        overflow-y: auto !important;
        overscroll-behavior: contain;
    }

    #-desktop-header-section .elementor-nav-menu--dropdown a {
        min-height: 46px;
        display: flex !important;
        align-items: center !important;
    }

    /* Swipe and scrolling smoothness */
    .swiper,
    .swiper-wrapper,
    .swiper-slide {
        touch-action: pan-y pinch-zoom;
    }

    /* ================================================
       FLIP-BOX: ROBUST CROSSFADE FIX FOR IOS GLITCHES
       ================================================ */

    /* Rather than a buggy 3D flip on iOS, use a clean fade */
    .elementor-flip-box {
        perspective: none !important;
        cursor: pointer !important;
        -webkit-tap-highlight-color: transparent !important;
    }

    /* Both layers: transition fade, bypass transform */
    .elementor-flip-box__layer {
        transition: opacity 0.4s ease, visibility 0.4s ease !important;
        transform: none !important;
        backface-visibility: visible !important;
        -webkit-backface-visibility: visible !important;
        will-change: opacity, visibility !important;
    }

    /* Front face: initially visible */
    .elementor-flip-box__layer.elementor-flip-box__front {
        opacity: 1 !important;
        visibility: visible !important;
        position: absolute !important;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 2 !important;
    }

    /* Back face: initially hidden */
    .elementor-flip-box__layer.elementor-flip-box__back {
        opacity: 0 !important;
        visibility: hidden !important;
        position: absolute !important;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1 !important;
    }

    /* TAPPED STATE: Smooth crossfade */
    .elementor-flip-box.flipped-click .elementor-flip-box__layer.elementor-flip-box__front {
        opacity: 0 !important;
        visibility: hidden !important;
        z-index: 1 !important;
    }

    .elementor-flip-box.flipped-click .elementor-flip-box__layer.elementor-flip-box__back {
        opacity: 1 !important;
        visibility: visible !important;
        z-index: 2 !important;
    }

    /* CRITICAL: Ensure no logo ghosting on back face */
    .elementor-flip-box__back .elementor-flip-box__image,
    .elementor-flip-box__back .custom-bulb-wrapper,
    .elementor-flip-box__back .animated-bulb {
        display: none !important;
    }

    /* Enforce brand gradient colors on flip-box backs for curriculum */
    #innovators-flipbox .elementor-flip-box__front,
    #innovators-flipbox .elementor-flip-box__back {
        background: linear-gradient(135deg, #2f80c2 0%, #3f94d4 100%) !important;
    }

    #masterminds-flipbox .elementor-flip-box__front,
    #masterminds-flipbox .elementor-flip-box__back {
        background: linear-gradient(135deg, #e73895 0%, #cf2f85 100%) !important;
    }

    #creators-flipbox .elementor-flip-box__front,
    #creators-flipbox .elementor-flip-box__back {
        background: linear-gradient(135deg, #f59a23 0%, #e2830f 100%) !important;
    }

    #change-makers-flipbox .elementor-flip-box__front,
    #change-makers-flipbox .elementor-flip-box__back {
        background: linear-gradient(135deg, #67bb45 0%, #58a63a 100%) !important;
    }

    /* UP button mobile spacing */
    .button-up {
        padding-top: 10px !important;
        padding-bottom: 10px !important;
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
    }

    .button-up .elementor-button {
        background-color: #FED100 !important;
        color: #1a202c !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    }

    .swiper-slide {
        transition: transform 260ms ease, opacity 260ms ease !important;
    }

    footer a,
    [data-elementor-type="footer"] a {
        min-height: 40px;
        display: inline-flex;
        align-items: center;
    }

    /* Curriculum Slider Spacing & Alignment Fixes */
    .elementor-testimonial {
        padding: 10px 20px 15px !important;
    }

    .elementor-testimonial__header {
        justify-content: flex-start !important;
        margin-bottom: 20px !important;
        text-align: left !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .elementor-testimonial__name {
        font-size: 1.7rem !important;
        font-weight: 800 !important;
        margin-bottom: 5px !important;
        display: block !important;
        color: #1a202c !important;
        text-align: left !important;
        width: 100% !important;
    }

    .elementor-testimonial__text {
        font-size: 1.05rem !important;
        line-height: 1.75 !important;
        margin-bottom: 15px !important;
        padding: 0 !important;
    }

    .science-insight-cards {
        margin-top: 15px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        padding: 0 !important;
    }

    /* Force global section containers on curriculum to use the same alignment */
    [id*="stem-2"] .elementor-container,
    [id*="literacy-2"] .elementor-container,
    [id*="arts-2"] .elementor-container,
    [id*="mindfulness-2"] .elementor-container,
    #slider-cefa .elementor-container {
        padding-left: 18px !important;
        padding-right: 18px !important;
        padding-bottom: 0 !important;
    }

    /* Reduce vertical gaps between curriculum blocks */
    [id*="stem-2"],
    [id*="literacy-2"],
    [id*="arts-2"],
    [id*="mindfulness-2"] {
        padding-top: 20px !important;
        padding-bottom: 0 !important;
    }

    .curriculum-block-wrapper section,
    .curriculum-block-wrapper .elementor-container,
    .curriculum-block-wrapper .elementor-column,
    .curriculum-block-wrapper .elementor-widget-wrap,
    .curriculum-block-wrapper .elementor-widget-container,
    .curriculum-block-wrapper .elementor-widget-reviews,
    .curriculum-block-wrapper .elementor-swiper,
    .curriculum-block-wrapper .swiper {
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }

    .curriculum-block-wrapper .elementor-widget {
        margin-bottom: 0 !important;
    }

    /* Adjust swiper padding specifically for bullets */
    .curriculum-block-wrapper .elementor-main-swiper {
        padding-bottom: 25px !important;
        margin-bottom: 0 !important;
    }

    .curriculum-block-wrapper .swiper-pagination {
        bottom: 0 !important;
        margin-bottom: 0 !important;
    }

    /* GLOBAL MOBILE ALIGNMENT ABSOLUTE: Strip all child offsets */
    .elementor-testimonial__name,
    .elementor-testimonial__text,
    .elementor-testimonial__text p,
    .elementor-text-editor,
    .elementor-text-editor p,
    .elementor-widget-text-editor,
    .elementor-widget-text-editor p,
    .elementor-widget-heading,
    .elementor-heading-title,
    [id*="stem-2"] h2,
    [id*="literacy-2"] h2,
    [id*="arts-2"] h2,
    [id*="mindfulness-2"] h2,
    [id*="stem-2"] h4,
    [id*="literacy-2"] h4,
    [id*="arts-2"] h4,
    [id*="mindfulness-2"] h4 {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-top: 10px !important;
        text-align: left !important;
        word-break: normal !important;
        background-color: transparent !important;
        /* Fix colored header bg */
    }

    [id*="slides-"] .elementor-testimonial,
    [id*="slides-"] .elementor-testimonial-wrapper {
        background-color: #ffffff !important;
        border-radius: 12px !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
    }

    .science-insight-cards {
        margin-top: 15px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        padding: 0 !important;
    }

    .science-insight-card {
        padding: 15px 20px !important;
        border-radius: 12px !important;
        background: #f8fafc !important;
        border: 1px solid rgba(0, 0, 0, 0.05) !important;
    }

    /* Mobile: keep colored header bars, just fix sizing */
    [id*="slides-stem"] .elementor-testimonial__header,
    [id*="slides-literacy"] .elementor-testimonial__header,
    [id*="slides-arts"] .elementor-testimonial__header,
    [id*="slides-mindfulness"] .elementor-testimonial__header {
        padding: 8px 15px !important;
        border-radius: 0 !important;
    }

    [id*="slides-stem"] .elementor-testimonial__name,
    [id*="slides-literacy"] .elementor-testimonial__name,
    [id*="slides-mindfulness"] .elementor-testimonial__name {
        color: white !important;
    }

    [id*="slides-arts"] .elementor-testimonial__name {
        color: #1a202c !important;
    }

    /* Remove desktop 10% padding on mobile - use 20px instead */
    #stem-block,
    #arts-block,
    #literacy-2,
    #mindfulness-2 {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .science-insight-card h5 {
        margin-bottom: 8px !important;
        font-size: 1.1rem !important;
    }

    #image-Importance-of-ECL img {
        max-height: 260px !important;
        object-fit: cover !important;
        width: 100% !important;
    }
}

/* ================================================
   PREMIUM HEAVY FOOTER DESIGN
   ================================================ */
#-custom-footer {
    background: #0f172a;
    /* Deep, heavy navy background */
    color: #f1f5f9;
    padding: 80px 0 0;
    font-family: 'PT Sans', sans-serif;
    border-top: 5px solid #129700;
    line-height: 1.6;
}

.-footer-wrap {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 80px;
    padding-bottom: 70px;
}

.-footer-col-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.-footer-logo {
    max-width: 180px;
    height: auto;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
}

.-footer-text {
    font-size: 16px;
    color: #cbd5e1;
    margin: 10px 0;
}

.-footer-cta-wrap {
    margin-top: 10px;
}

.-footer-cta {
    display: inline-flex !important;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #FED100 0%, #FEC100 100%) !important;
    color: #000 !important;
    padding: 16px 36px !important;
    border-radius: 50px !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    text-decoration: none !important;
    letter-spacing: 1px;
    font-size: 14px;
    box-shadow: 0 8px 25px rgba(254, 209, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.-footer-cta:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(254, 209, 0, 0.5);
    filter: brightness(1.1);
}

.-footer-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
    position: relative;
}

.-footer-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 30px;
    height: 3px;
    background: #FED100;
}

.-footer-links,
.-footer-contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.-footer-links a,
.-footer-contact-info a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.-footer-links a:hover {
    color: #FED100 !important;
    transform: translateX(5px);
}

.-footer-contact-info li {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    color: #cbd5e1;
    margin-bottom: 5px;
}

.-footer-contact-info i {
    color: #FED100;
    margin-top: 5px;
    font-size: 18px;
}

.-footer-col h4 {
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 10px;
}

.-footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: #FED100;
    border-radius: 2px;
}

.-footer-bottom {
    background: #0a0f1a !important;
    /* Dark but with enough perceived contrast */
    padding: 35px 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.-footer-bottom-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    font-size: 14px;
    color: #bcc7df !important;
    /* Updated to requested color */
    width: 100%;
}

.-footer-bottom-inner p,
.-footer-bottom-inner div {
    margin: 0;
    flex: 0 1 auto;
    color: #bcc7df !important;
    /* Specific color for paragraph tags */
}

.-footer-credit {
    margin-left: auto;
    color: #bcc7df !important;
}

.-footer-bottom-links {
    display: flex;
    flex-wrap: nowrap !important;
    /* Prevent wrapping to second line */
    gap: 18px !important;
    /* Consistent spacing */
}

.-footer-bottom-links a {
    color: #bcc7df !important;
    text-decoration: none;
    transition: all 0.2s ease;
}

.-footer-bottom-links a:hover {
    color: #FED100 !important;
}

.-footer-credit a {
    color: #FED100;
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 991px) {
    .-footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .-footer-bottom-inner {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 15px !important;
        text-align: center !important;
        justify-items: center !important;
        padding: 5px 0 !important;
    }

    .-footer-bottom-inner p,
    .-footer-bottom-inner div,
    .-footer-bottom-inner span {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        position: static !important;
        width: 100% !important;
        line-height: 1.6 !important;
        clear: both !important;
        float: none !important;
    }

    .-footer-bottom-links {
        display: flex !important;
        justify-content: center !important;
        gap: 20px !important;
        margin: 0 !important;
    }
}

/* ================================================
   INDEX PAGE â€” MOBILE FOOTER FIX
   ================================================ */
@media (max-width: 768px) {

    /* Fix footer horizontal padding so content doesn't clip off-screen */
    #-custom-footer .-footer-wrap {
        padding: 0 18px !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Give the footer main area breathing room */
    #-custom-footer {
        padding-top: 48px !important;
    }

    /* Stack grid neatly with tighter gaps */
    #-custom-footer .-footer-grid {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
        padding-bottom: 40px !important;
    }

    /* Logo sizing */
    #-custom-footer .-footer-logo {
        max-width: 140px !important;
    }

    /* Footer text and CTA */
    #-custom-footer .-footer-text {
        font-size: 15px !important;
    }

    #-custom-footer .-footer-col-main {
        align-items: center !important;
        text-align: center !important;
        margin-bottom: 10px !important;
    }

    #-custom-footer .-footer-cta {
        display: inline-flex !important;
        width: auto !important;
        min-width: 240px !important;
        max-width: 100% !important;
        justify-content: center !important;
        padding: 18px 32px !important;
        font-size: 15px !important;
        font-weight: 900 !important;
        margin: 0 auto !important;
        border-radius: 99px !important;
        background: linear-gradient(135deg, #FFD700 0%, #FED100 100%) !important;
        box-shadow: 0 10px 25px rgba(254, 209, 0, 0.3) !important;
        letter-spacing: 1.2px !important;
        border: none !important;
    }

    /* Titles */
    #-custom-footer .-footer-title,
    #-custom-footer .-footer-col h4 {
        font-size: 15px !important;
        margin-bottom: 20px !important;
    }

    /* Links */
    #-custom-footer .-footer-links a,
    #-custom-footer .-footer-contact-info a {
        font-size: 14px !important;
    }

    #-custom-footer .-footer-contact-info li {
        font-size: 14px !important;
        gap: 12px !important;
    }

    /* Bottom bar: full-width centered, no margin-left auto clipping */
    #-custom-footer .-footer-bottom {
        padding: 20px 0 !important;
    }

    #-custom-footer .-footer-bottom .-footer-wrap {
        padding: 0 18px !important;
    }

    #-custom-footer .-footer-bottom-inner {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 10px !important;
        width: 100% !important;
    }

    #-custom-footer .-footer-bottom-inner p,
    #-custom-footer .-footer-bottom-inner div {
        width: 100% !important;
        text-align: center !important;
        margin: 0 !important;
    }

    /* Fix the "Designed and Developed by  Yabuh Ltd" credit â€” remove the auto margin that pushes it off-screen */
    #-custom-footer .-footer-credit {
        margin-left: 0 !important;
        width: 100% !important;
    }

    #-custom-footer .-footer-bottom-links {
        justify-content: center !important;
        gap: 16px !important;
        flex-wrap: wrap !important;
        width: 100% !important;
    }

    #-custom-footer .-footer-bottom-links a {
        font-size: 13px !important;
    }
}


@media (max-width: 480px) {

    .elementor-top-section>.elementor-container,
    .elementor-section.elementor-section-boxed>.elementor-container,
    [data-elementor-type] .elementor-container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .elementor-menu-toggle {
        margin-bottom: 10px !important;
        border-radius: 10px !important;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ================================================
   INDEX PAGE HARD MOBILE FIX (HOME ONLY)
   ================================================ */
@media (max-width: 768px) {

    body.home.elementor-page-2,
    body.home.elementor-page-2 #content,
    body.home.elementor-page-2 .site,
    body.home.elementor-page-2 .site-main {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        overflow-x: hidden !important;
    }

    /* Defeat duplicated inline homepage rules that keep boxed widths */
    body.home.elementor-page-2 #content .elementor-section.elementor-section-boxed>.elementor-container,
    body.home.elementor-page-2 #content .elementor-section.elementor-top-section.elementor-section-boxed>.elementor-container,
    body.home.elementor-page-2 #content .elementor-section>.elementor-container {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Correct header id + remove desktop CTA clutter on mobile */
    #cefa-desktop-header-section {
        position: sticky !important;
        top: 0 !important;
        z-index: 1200 !important;
        width: 100% !important;
        background: #ffffff !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
    }

    #cefa-cta-buttons {
        display: none !important;
    }

    #cefa-mainNav-inner {
        height: 72px !important;
        min-height: 72px !important;
    }

    #cefa-mainNav-inner .elementor-container {
        padding-left: 10px !important;
        padding-right: 10px !important;
        min-height: 72px !important;
        align-items: center !important;
    }

    #cefa-mainNav-col-logo,
    #cefa-mainNav-col-logo .elementor-widget-wrap,
    #cefa-mainNav-col-logo .elementor-widget-theme-site-logo,
    #cefa-mainNav-col-logo .elementor-widget-container {
        height: auto !important;
        min-height: 0 !important;
    }

    #cefa-mainNav-col-logo img,
    #cefa-mainNav-col-logo .elementor-widget-theme-site-logo img,
    #cefa-desktop-header-section .elementor-widget-theme-site-logo img {
        width: auto !important;
        max-width: 118px !important;
        max-height: 34px !important;
        height: auto !important;
        object-fit: contain !important;
        margin: 0 !important;
    }

    /* Keep hero flush below sticky header without artificial gap */
    body.home.elementor-page-2 #content {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    body.home.elementor-page-2 #slider-cefa,
    body.home.elementor-page-2 #slider-cefa .elementor-widget-container,
    body.home.elementor-page-2 #slider-cefa .elementor-main-swiper,
    body.home.elementor-page-2 #slider-cefa .swiper,
    body.home.elementor-page-2 #slider-cefa .swiper-wrapper {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    /* Kill old fixed bottom CTA bars that overlap content */
    #cefa-cta-buttons,
    #cefa-school-buttons {
        position: static !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        height: auto !important;
        min-height: 0 !important;
        width: 100% !important;
        z-index: auto !important;
        transform: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    #cefa-cta-buttons .elementor-widget-wrap,
    #cefa-school-buttons .elementor-widget-wrap {
        flex-direction: column !important;
        gap: 10px !important;
        padding: 10px 12px !important;
    }

    #cefa-cta-buttons .elementor-widget-button,
    #cefa-school-buttons .elementor-widget-button,
    #btn-apply,
    #btn-apply-desktop,
    #btn-submitSite,
    #btn-submitSite-desktop,
    #btn-availableMarkets,
    #btn-availableMarkets-desktop {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Hero should fill width and keep readable overlays */
    #slider-cefa,
    #slider-cefa .elementor-widget-container,
    #slider-cefa .elementor-main-swiper,
    #slider-cefa .elementor-container,
    #slider-cefa .elementor-column,
    #slider-cefa .elementor-widget-wrap,
    #slider-cefa .elementor-element-populated,
    #slider-cefa .elementor-widget-slides {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    #slider-cefa .swiper-slide {
        min-height: 420px !important;
        height: auto !important;
    }

    #slider-cefa .swiper-slide-inner {
        padding: 26px 0 18px 0 !important;
    }

    #slider-cefa .swiper-slide-contents {
        margin-left: 12px !important;
        margin-right: 12px !important;
        max-width: calc(100% - 24px) !important;
        padding: 18px 14px 16px !important;
        border-radius: 14px !important;
    }

    #slider-cefa .elementor-slide-heading {
        font-size: clamp(2rem, 8vw, 2.5rem) !important;
        line-height: 1.08 !important;
    }

    #slider-cefa .elementor-slide-description {
        font-size: clamp(1rem, 4vw, 1.15rem) !important;
        line-height: 1.45 !important;
    }

    /* Rebuild green intro section so it stacks cleanly */
    #cefa-media>.elementor-container {
        display: flex !important;
        flex-direction: column !important;
    }

    #cefa-media .section-col-photo,
    #cefa-media .section-col-content,
    #cefa-media .elementor-col-50 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }

    #cefa-media .section-col-photo img {
        width: 100% !important;
        height: 230px !important;
        object-fit: cover !important;
        display: block !important;
    }

    #cefa-media .section-col-content {
        margin: 0 !important;
        padding: 18px 16px 14px !important;
    }

    #cefa-media .cefa-inline-logo img {
        width: min(146px, 42vw) !important;
        height: auto !important;
        margin: 0 auto 10px !important;
        display: block !important;
    }

    #cefa-media h2 {
        font-size: clamp(1.4rem, 6.2vw, 1.8rem) !important;
        line-height: 1.25 !important;
        margin: 0 0 10px 0 !important;
        text-align: center !important;
    }

    #cefa-media p {
        font-size: 1rem !important;
        line-height: 1.62 !important;
        margin: 0 0 14px 0 !important;
        text-align: center !important;
    }

    #cefa-media .cefa-button-row .elementor-widget-wrap {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        padding: 0 !important;
    }

    #cefa-media .cefa-button-row .elementor-button {
        width: 100% !important;
        justify-content: center !important;
    }

    body.home.elementor-page-2 #content .elementor-widget-text-editor .elementor-widget-container,
    body.home.elementor-page-2 #content .elementor-widget-heading .elementor-widget-container,
    body.home.elementor-page-2 #content .elementor-widget-text-editor p,
    body.home.elementor-page-2 #content .elementor-widget-text-editor li,
    body.home.elementor-page-2 #content .elementor-heading-title {
        padding-left: 6px !important;
        /* Aggressive reduction for edge-to-edge feel */
        padding-right: 6px !important;
        max-width: 100% !important;
    }

    body.home.elementor-page-2 #content .margin-left-50px,
    body.home.elementor-page-2 #content .margin-right-50px,
    body.home.elementor-page-2 #content .section-col-content,
    body.home.elementor-page-2 #content .elementor-container,
    body.home.elementor-page-2 #content .elementor-column {

        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        flex: 0 0 100% !important;
    }

    /* Reduce Hero Logo size in secondary top section */
    .top-class .elementor-widget-image img {
        /* Scaled down for mobile focus */
        max-width: 50vw !important;
        margin-bottom: 8px !important;
        display: block !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* Ensure consistent premium gradient for top sections */
    body.home.elementor-page-2 .section-yellow,
    body.home.elementor-page-2 .top-class {
        background: var(--theme-gradient) !important;
        border-bottom: 3px solid rgba(254, 209, 0, 0.3);
        padding-top: 38px !important;
        /* Breathing room above heading */
    }

    /* Enhanced text legibility */
    .top-class h1,
    .top-class p,
    .section-yellow h1,
    .section-yellow h2,
    .section-yellow p {
        color: #ffffff !important;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) !important;
    }
}

.margin-right-50px {
    padding-right: 50px !important;
}

/* Content pages: keep hero logo on the left */
body.elementor-page-4743 #curriculum-hero .elementor-element-75ff8c1,
body.elementor-page-4743 #curriculum-hero .elementor-element-75ff8c1 .elementor-widget-container {
    text-align: left !important;
}

body.elementor-page-4743 #curriculum-hero .elementor-element-75ff8c1 img {
    display: block !important;
    margin-left: 0 !important;
    margin-right: auto !important;
}

/* Curriculum science slide: add two premium insight cards */
.science-insight-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.science-insight-card {
    background: #ffffff;
    border: 1px solid rgba(35, 88, 143, 0.14);
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 8px 20px rgba(18, 35, 55, 0.08);
}

.science-insight-card h5 {
    margin: 0 0 8px 0;
    color: #215f9b;
    font-size: 15px;
    line-height: 1.25;
    font-weight: 700;
}

.science-insight-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #374151;
}

@media (max-width: 767px) {
    .science-insight-cards {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 12px;
    }

    .science-insight-card {
        padding: 12px;
    }
}

@media (max-width: 767px) {
    .margin-left-50px {
        padding-left: 0 !important;
    }

    .margin-right-50px {
        padding-right: 0 !important;
    }
}

/* @group CAROUSEL NAVIGATION HIDE */
.elementor-swiper-button-prev,
.elementor-swiper-button-next,
.swiper-button-prev,
.swiper-button-next,
.elementor-swiper-button {
    display: none !important;
}

/* @group REVIEWS SLIDESHOW (From About Page) */
#testimonials .swiper {
    width: 100%;
    padding: 40px 0 60px;
}

#testimonials .swiper-slide {
    height: auto;
    display: flex;
    justify-content: center;
    opacity: 0.4;
    transition: opacity 0.3s;
}

#testimonials .swiper-slide-active {
    opacity: 1;
}

#testimonials .elementor-testimonial-wrapper {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px !important;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#testimonials .swiper-slide:nth-child(3n+1) .elementor-testimonial-wrapper {
    background-color: #fef9c3 !important;
}

#testimonials .swiper-slide:nth-child(3n+2) .elementor-testimonial-wrapper {
    background-color: #f3e8ff !important;
}

#testimonials .swiper-slide:nth-child(3n+3) .elementor-testimonial-wrapper {
    background-color: #f0fdf4 !important;
}

#testimonials .elementor-testimonial-content {
    font-style: normal !important;
    margin-bottom: 20px !important;
    color: #333 !important;
    font-size: 1.05rem !important;
    line-height: 1.6 !important;
}

#testimonials .elementor-testimonial-meta {
    margin-top: auto !important;
}

#testimonials .swiper-pagination-bullet-active {
    background: #d2a35d;
}

@media (max-width: 768px) {
    #testimonials .elementor-testimonial-wrapper {
        padding: 25px !important;
    }
}

/* @group PARENT RESOURCES SLIDESHOW */
#parent-slides-container .swiper {
    width: 100%;
    padding: 50px 20px 80px;
    overflow: visible;
}

#parent-slides-container .swiper-slide {
    height: auto;
    display: flex;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#parent-slides-container .elementor-post__card {
    background: #ffffff !important;
    border-radius: 24px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid rgba(254, 209, 0, 0.1) !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    transition: all 0.4s ease !important;
    position: relative !important;
    z-index: 1 !important;
}

#parent-slides-container .swiper-slide:hover {
    transform: translateY(-15px);
    z-index: 10;
}

#parent-slides-container .swiper-slide:hover .elementor-post__card {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15) !important;
    border-color: #FED100 !important;
}

#parent-slides-container .elementor-post__thumbnail {
    overflow: hidden !important;
    border-radius: 0 !important;
    height: 240px !important;
}

#parent-slides-container .elementor-post__thumbnail img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.8s ease !important;
}

#parent-slides-container .swiper-slide:hover .elementor-post__thumbnail img {
    transform: scale(1.1);
}

#parent-slides-container .elementor-post__text {
    padding: 30px !important;
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    background: #ffffff !important;
}

#parent-slides-container .elementor-post__title {
    font-size: 22px !important;
    line-height: 1.3 !important;
    margin-bottom: 15px !important;
    font-weight: 700 !important;
    color: #333 !important;
    height: 3em !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
}

#parent-slides-container .elementor-post__title a {
    color: inherit !important;
    text-decoration: none !important;
    transition: color 0.3s !important;
}

#parent-slides-container .elementor-post__title a:hover {
    color: #FED100 !important;
}

#parent-slides-container .elementor-post__excerpt {
    font-size: 15px !important;
    line-height: 1.6 !important;
    color: #666 !important;
    margin-bottom: 25px !important;
}

#parent-slides-container .elementor-post__read-more {
    margin-top: auto !important;
    display: inline-block !important;
    background: #FED100 !important;
    color: #333 !important;
    padding: 12px 25px !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    text-align: center !important;
    width: fit-content !important;
    transition: all 0.3s ease !important;
    font-size: 14px !important;
    box-shadow: 0 4px 15px rgba(254, 209, 0, 0.3) !important;
}

#parent-slides-container .elementor-post__read-more:hover {
    background: #333 !important;
    color: #FED100 !important;
    transform: scale(1.05) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2) !important;
}

/* Reveal specific buttons for this section */
#parent-slides-container .swiper-button-prev,
#parent-slides-container .swiper-button-next {
    display: flex !important;
    width: 60px !important;
    height: 60px !important;
    background: #ffffff !important;
    border-radius: 50% !important;
    color: #333 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
}

#parent-slides-container .swiper-button-prev:after,
#parent-slides-container .swiper-button-next:after {
    font-size: 20px !important;
    font-weight: bold !important;
}

#parent-slides-container .swiper-button-prev:hover,
#parent-slides-container .swiper-button-next:hover {
    background: #FED100 !important;
    transform: scale(1.1) !important;
}

#parent-slides-container .swiper-pagination {
    bottom: 20px !important;
}

#parent-slides-container .swiper-pagination-bullet {
    width: 12px !important;
    height: 12px !important;
    background: #ccc !important;
    opacity: 1 !important;
    margin: 0 8px !important;
}

#parent-slides-container .swiper-pagination-bullet-active {
    background: #FED100 !important;
    width: 30px !important;
    border-radius: 6px !important;
}

/* @group TOP MENU STYLING (Yellow to Purple) */
#-external-menu .elementor-item {
    color: #9B51E0 !important;
    transition: color 0.3s ease !important;
}

#-external-menu .elementor-item:hover,
#-external-menu .elementor-item.elementor-item-active {
    color: #7b1fa2 !important;
    /* Slightly darker purple on hover/active */
}

/* @group MOBILE LOGO AND NAV FIXES */
@media (max-width: 768px) {

    /* --- Hide CTA buttons (Find A School / Inquire Today) from the header on mobile --- */
    #-cta-buttons {
        display: none !important;
    }

    /* --- Curriculum page: reduce nav header logo size --- */
    #-desktop-header-section .elementor-widget-image img,
    #-desktop-header-section .-logo img {
        max-width: 160px !important;
        width: 160px !important;
        height: auto !important;
    }

    /* --- SECTION: Curriculum Hero (#curriculum-hero) â€” stack columns on mobile --- */
    #curriculum-hero {
        padding: 0 !important;
        margin: 0 !important;
    }

    #curriculum-hero .elementor-container {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Target the columns directly with their unique class/ID to beat Elementor specificity */
    #curriculum-hero .elementor-column.elementor-col-50,
    #curriculum-hero .elementor-element-6f97ff1e,
    #curriculum-hero .elementor-element-10966c6c {
        width: 100% !important;
        max-width: 100% !important;
        flex: 1 0 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Photo column (#image-Curriculum-Hero) - ensure zero gaps */
    #image-Curriculum-Hero {
        order: -1 !important;
        width: 100% !important;
        display: block !important;
    }

    #image-Curriculum-Hero .elementor-widget-wrap {
        padding: 0 !important;
        width: 100% !important;
    }

    #image-Curriculum-Hero .elementor-element-77099ec4 {
        width: 100% !important;
        margin: 0 !important;
    }

    #image-Curriculum-Hero img {
        width: 100% !important;
        max-width: 100vw !important;
        /* Force to viewport width if needed */
        height: 260px !important;
        object-fit: cover !important;
        object-position: 50% 30% !important;
        display: block !important;
        border: none !important;
    }

    /* Content column: padding + remove desktop right-margin */
    #curriculum-hero .section-col-content.margin-right-50px {
        padding: 24px 20px !important;
        margin: 0 !important;
    }

    /* Hide redundant content logo on mobile (header logo is sufficient) */
    #curriculum-hero .elementor-element-75ff8c1 {
        display: none !important;
    }

    #curriculum-hero h1 {
        font-size: 1.6rem !important;
        line-height: 1.3 !important;
        margin-top: 0 !important;
        margin-bottom: 14px !important;
    }

    #curriculum-hero p {
        font-size: 0.95rem !important;
        line-height: 1.7 !important;
        margin-bottom: 12px !important;
    }


    /* --- GLOBAL: Hide extra menu toggles in page content (only keep header one) --- */
    /* Target common Elementor containers that might host redundant menus */
    #content .elementor-menu-toggle,
    .page-content .elementor-menu-toggle,
    .elementor-section:not(#-desktop-header-section) .elementor-menu-toggle {
        display: none !important;
    }

    /* --- GLOBAL: standardized horizontal padding for text on mobile --- */
    .elementor-section .elementor-widget-text-editor .elementor-widget-container,
    .elementor-section .elementor-widget-container h1,
    .elementor-section .elementor-widget-container h2,
    .elementor-section .elementor-widget-container h3,
    .elementor-section .elementor-widget-container p {
        padding-left: 24px !important;
        padding-right: 24px !important;
    }

    /* Fix for full-width sections that override padding */
    .elementor-section-full_width .elementor-widget-container {
        padding-left: 24px !important;
        padding-right: 24px !important;
    }

    /* --- SECTIONS: Programs Hero stacking (matches curriculum logic) --- */
    .post-5313 #content .elementor-section.elementor-reverse-mobile .elementor-container {
        display: flex !important;
        flex-direction: column !important;
        padding: 0 !important;
    }

    .post-5313 #content .elementor-section.elementor-reverse-mobile .elementor-col-50 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 1 0 100% !important;
    }

    .post-5313 #content .elementor-section.elementor-reverse-mobile .section-col-photo {
        order: -1 !important;
    }

    .post-5313 #content .elementor-section.elementor-reverse-mobile .section-col-photo img {
        width: 100% !important;
        height: 260px !important;
        object-fit: cover !important;
    }

    .post-5313 #content .elementor-section.elementor-reverse-mobile .section-col-content {
        padding: 30px 24px !important;
        margin: 0 !important;
    }

    #-mainNav-col-logo .elementor-widget-theme-site-logo img {
        width: auto !important;
        max-width: 200px !important;
        height: auto !important;
    }
}

/* Display toggles explicitly for desktop vs mobile */
@media (min-width: 769px) {
    .elementor-menu-toggle {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .elementor-menu-toggle {
        display: flex !important;
        background-color: #ffffff !important;
        border: 2px solid #FED100 !important;
        border-radius: 8px !important;
        padding: 5px !important;
        margin: 0 auto 15px auto !important;
    }

    /* Make sure icons accept sizing but let Elementor hide them */
    .elementor-menu-toggle__icon--open,
    .elementor-menu-toggle__icon--close {
        display: inline-block;
    }

    .eicon-menu-bar {
        width: 30px !important;
        height: 30px !important;
        background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='%236A1B9A' d='M16 132h416c8.8 0 16-7.2 16-16V76c0-8.8-7.2-16-16-16H16C7.2 60 0 67.2 0 76v40c0 8.8 7.2 16 16 16zm0 160h416c8.8 0 16-7.2 16-16v-40c0-8.8-7.2-16-16-16H16c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16zm0 160h416c8.8 0 16-7.2 16-16v-40c0-8.8-7.2-16-16-16H16c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16z'/%3E%3C/svg%3E") !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
    }

    .eicon-menu-bar:before {
        display: none !important;
    }

    .eicon-close {
        width: 30px !important;
        height: 30px !important;
        background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512'%3E%3Cpath fill='%236A1B9A' d='M207.6 256l107.7-107.7c6.2-6.2 6.2-16.4 0-22.6l-22.6-22.6c-6.2-6.2-16.4-6.2-22.6 0L160 210.7 52.3 103c-6.2-6.2-16.4-6.2-22.6 0l-22.6 22.6c-6.2 6.2-6.2 16.4 0 22.6L114.7 256 7 363.7c-6.2 6.2-6.2 16.4 0 22.6l22.6 22.6c6.2 6.2 16.4 6.2 22.6 0L160 301.3l107.7 107.7c6.2 6.2 16.4 6.2 22.6 0l22.6-22.6c6.2-6.2 6.2-16.4 0-22.6L207.6 256z'/%3E%3C/svg%3E") !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
    }

    .eicon-close:before {
        display: none !important;
    }

    /* Force visibility rules based on Elementor's active state */
    .elementor-menu-toggle:not(.elementor-active) .elementor-menu-toggle__icon--close {
        display: none !important;
    }

    .elementor-menu-toggle.elementor-active .elementor-menu-toggle__icon--open {
        display: none !important;
    }

    /* Force the dropdown to display and sit ON TOP when active */
    #-desktop-header-section .elementor-nav-menu--dropdown {
        position: absolute !important;
        width: 100% !important;
        z-index: 99999 !important;
        left: 0 !important;
    }

    /* Style the Dropdown "Slider" nicely */
    #-desktop-header-section .elementor-nav-menu--dropdown {
        background-color: #ffffff !important;
        border-radius: 12px !important;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15) !important;
        margin-top: 20px !important;
        padding: 5px !important;
        border: 2px solid rgba(254, 209, 0, 0.2) !important;
    }

    #-desktop-header-section .elementor-nav-menu--dropdown a {
        color: #333333 !important;
        padding: 15px 25px !important;
        font-size: 16px !important;
        font-weight: 700 !important;
        border-bottom: 1px solid #f5f5f5 !important;
        transition: all 0.3s ease !important;
    }

    #-desktop-header-section .elementor-nav-menu--dropdown>ul>li:last-child>a {
        border-bottom: none !important;
    }

    #-desktop-header-section .elementor-nav-menu--dropdown a:hover,
    #-desktop-header-section .elementor-nav-menu--dropdown a.elementor-item-active {
        background-color: #FED100 !important;
        color: #000000 !important;
        border-radius: 8px !important;
    }

    /* Submenus styling */
    #-desktop-header-section .elementor-nav-menu--dropdown .sub-menu {
        background-color: #fcfcfc !important;
        border-radius: 8px !important;
        margin: 5px 0 !important;
    }

    #-desktop-header-section .elementor-nav-menu--dropdown .sub-menu a {
        padding-left: 40px !important;
        font-size: 14px !important;
        font-weight: 500 !important;
        border-bottom: 1px dashed #eaeaea !important;
    }
}

/* ================================================
   ABOUT PAGE - MOBILE LAYOUT FIXES
   ================================================ */
@media (max-width: 768px) {

    /* --- SECTION: Approach (image + text, col-33 / col-66) --- */
    #Methodology .elementor-container {
        flex-direction: column !important;
    }

    #Methodology .elementor-col-33,
    #Methodology .elementor-col-66 {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Image takes full width and nice height */
    #image-Methodology .elementor-widget-container {
        padding: 0 !important;
    }

    #image-Methodology img {
        width: 100% !important;
        height: 220px !important;
        object-fit: cover !important;
        display: block !important;
        border-radius: 0 !important;
    }

    /* Text content: remove desktop margin, add comfortable padding */
    .elementor-element-2cd92e70.margin-left-50px {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    #Methodology .section-col-content {
        padding: 24px 20px !important;
        margin: 0 !important;
    }

    #Methodology h1 {
        font-size: 1.6rem !important;
        line-height: 1.3 !important;
        margin-top: 0 !important;
        margin-bottom: 16px !important;
    }

    #Methodology p {
        font-size: 0.95rem !important;
        line-height: 1.7 !important;
        margin-bottom: 14px !important;
    }

    /* --- SECTION: Educators / Teachers (col-50 + col-50) --- */
    #teachers .elementor-container {
        flex-direction: column !important;
    }

    #teachers .elementor-col-50,
    #teachers .elementor-col-100 {
        width: 100% !important;
        max-width: 100% !important;
    }

    #teachers .section-col-content.margin-right-50px {
        padding: 20px 20px 0 20px !important;
        margin: 0 !important;
    }

    #teachers .section-col-content.margin-left-50px {
        padding: 0 20px 20px 20px !important;
        margin: 0 !important;
    }

    #teachers h2 {
        font-size: 1.5rem !important;
        text-align: center !important;
        padding: 20px !important;
        margin-top: 0 !important;
    }

    #teachers p,
    #teachers li {
        font-size: 0.95rem !important;
        line-height: 1.7 !important;
    }

    #teachers ul {
        padding-left: 20px !important;
    }

    /* --- SECTION: Our Story / History (full-width yellow) --- */
    #History .elementor-widget-container h1 {
        font-size: 1.5rem !important;
        text-align: center !important;
        padding: 24px 20px 16px 20px !important;
        margin: 0 !important;
    }

    /* Stack timeline vertically on mobile */
    .stratum-horizontal-timeline {
        overflow: visible !important;
    }

    .stratum-horizontal-timeline__inner {
        min-width: unset !important;
        width: 100% !important;
    }

    /* Hide the horizontal line/dots only */
    .stratum-horizontal-timeline__list--middle,
    .stratum-horizontal-timeline__line {
        display: none !important;
    }

    /* The track must remain visible */
    .stratum-horizontal-timeline__track {
        display: block !important;
        overflow: visible !important;
    }

    /* Stack the top list (cards) vertically */
    .stratum-horizontal-timeline__list--top {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
        padding: 0 16px 24px !important;
    }

    /* Each card: full-width, clean white box */
    .stratum-horizontal-timeline-item {
        width: 100% !important;
        max-width: 100% !important;
    }

    .stratum-horizontal-timeline-item__card {
        max-width: 100% !important;
        width: 100% !important;
        background: #ffffff !important;
        border-radius: 12px !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10) !important;
        overflow: hidden !important;
    }

    .stratum-horizontal-timeline-item__card-inner {
        padding: 16px !important;
    }

    .stratum-horizontal-timeline-item__card-image img {
        width: 100% !important;
        height: 180px !important;
        object-fit: cover !important;
        border-radius: 8px !important;
        margin-bottom: 12px !important;
    }

    .stratum-horizontal-timeline-item__card-title {
        font-size: 1rem !important;
        font-weight: 700 !important;
        margin-bottom: 10px !important;
        line-height: 1.4 !important;
    }

    .stratum-horizontal-timeline-item__card-description {
        font-size: 0.9rem !important;
        line-height: 1.65 !important;
        color: #444 !important;
    }

    /* Hide the arrow connectors */
    .stratum-horizontal-timeline-item__card-arrow {
        display: none !important;
    }

    /* --- GLOBAL about page section padding --- */
    .elementor-section.section-grey,
    .elementor-section.section-white,
    .elementor-section.section-yellow {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    /* --- CTA Buttons: center and full-width --- */
    .-button-row .elementor-widget-wrap {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 12px !important;
        padding: 16px 20px !important;
    }

    .-button-row .elementor-button {
        width: 100% !important;
        text-align: center !important;
    }

    /* --- General text overflow fix --- */
    .elementor-widget-text-editor,
    .elementor-widget-container {
        word-break: break-word !important;
        overflow-wrap: break-word !important;
    }

    /* --- SECTION: About Evanspark ELCC Academy intro (#AboutTheFounder) --- */
    #AboutTheFounder .elementor-container {
        flex-direction: column !important;
    }

    #AboutTheFounder .elementor-col-33,
    #AboutTheFounder .elementor-col-66 {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    #AboutTheFounder #image-AboutTheFounder .elementor-widget-container {
        padding: 0 !important;
    }

    #AboutTheFounder #image-AboutTheFounder img {
        width: 100% !important;
        height: 220px !important;
        object-fit: cover !important;
        display: block !important;
    }

    /* Remove desktop left-margin, add mobile side padding */
    #AboutTheFounder .elementor-element-2aa1f317.margin-left-50px {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    #AboutTheFounder .section-col-content {
        padding: 24px 20px !important;
        margin: 0 !important;
    }

    #AboutTheFounder h1 {
        font-size: 1.6rem !important;
        line-height: 1.3 !important;
        margin-top: 0 !important;
        margin-bottom: 16px !important;
    }

    #AboutTheFounder p {
        font-size: 0.95rem !important;
        line-height: 1.7 !important;
        margin-bottom: 14px !important;
    }

    /* --- SECTION: Core Values (#CoreValues) --- */
    #CoreValues .elementor-container {
        flex-direction: column !important;
    }

    #CoreValues .elementor-col-50 {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Image column: full-width cover photo */
    #CoreValues #image-CoreValues .elementor-widget-container {
        padding: 0 !important;
    }

    #CoreValues #image-CoreValues img {
        width: 100% !important;
        height: 220px !important;
        object-fit: cover !important;
        object-position: 50% 15% !important;
        display: block !important;
    }

    /* Text column: proper side padding */
    #CoreValues .section-col-content.margin-right-50px {
        padding: 24px 20px !important;
        margin: 0 !important;
    }

    #CoreValues h1 {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
        margin-top: 0 !important;
        margin-bottom: 14px !important;
    }

    #CoreValues p,
    #CoreValues li {
        font-size: 0.95rem !important;
        line-height: 1.7 !important;
        margin-bottom: 10px !important;
    }

    #CoreValues ul {
        padding-left: 20px !important;
    }

    /* "Do you believe..." text block below image â€” 3-ID selector beats 2-ID image rule */
    #CoreValues #image-CoreValues .elementor-element-98313af .elementor-widget-container {
        padding: 16px 6px 20px 6px !important;
        font-size: 0.95rem !important;
        line-height: 1.7 !important;
    }
}

/* --- Premium Top Section Gradient --- */
.top-class {
    background: var(--theme-gradient) !important;
    background-image:
        linear-gradient(to bottom, rgba(0, 0, 0, 0.08) 0%, rgba(255, 255, 255, 0) 40px),
        var(--theme-gradient) !important;
    position: relative;
    overflow: hidden;
}

.top-class::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

/* --- Premium Consolidated Header --- */
#cefa-desktop-header-section {
    background: var(--primary-orange) !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-main-nav ul li a {
    transition: all 0.3s ease;
    position: relative;
}

.header-main-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #4F545C;
    transition: width 0.3s ease;
}

.header-main-nav ul li a:hover::after {
    width: 100%;
}

.menu-item-has-children-new:hover .sub-menu-new {
    display: block !important;
    animation: fadeInHeader 0.3s ease;
}

@keyframes fadeInHeader {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sub-menu-new li a:hover {
    background-color: #f8f9fa !important;
    color: #FED100 !important;
    padding-left: 25px !important;
}

.sub-menu-new li a {
    transition: all 0.2s ease !important;
}

/* ================================================
   PREMIUM MOBILE NAVIGATION
   ================================================ */
@media (max-width: 1024px) {

    .header-main-nav,
    .desktop-reg-btn {
        display: none !important;
    }

    #mobile-menu-trigger {
        display: block !important;
    }

    #cefa-desktop-header-section .elementor-container {
        padding: 5px 15px !important;
        min-height: 64px !important;
    }

    .header-logo-side {
        flex: 0 0 140px !important;
    }

    .header-logo-side img {
        max-height: 48px !important;
    }

    #premium-mobile-menu ul li a {
        color: #ffffff !important;
    }
}

/* ================================================
   SUB-PAGES (ABOUT, CURRICULUM, PROGRAMS) â€” MOBILE SPACING FIX
   (Matches index page 6px spacing exactly)
   ================================================ */
@media (max-width: 768px) {

    /* Target content pages by their body classes */
    body.elementor-page-39 .elementor-section,
    body.elementor-page-39 .elementor-top-section,
    body.elementor-page-4743 .elementor-section,
    body.elementor-page-4743 .elementor-top-section,
    body.elementor-page-5313 .elementor-section,
    body.elementor-page-5313 .elementor-top-section,
    body.elementor-page-5313 .elementor-inner-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
    }

    body.elementor-page-39 .elementor-section>.elementor-container,
    body.elementor-page-39 .elementor-section.elementor-section-boxed>.elementor-container,
    body.elementor-page-4743 .elementor-section>.elementor-container,
    body.elementor-page-4743 .elementor-section.elementor-section-boxed>.elementor-container,
    body.elementor-page-5313 .elementor-section>.elementor-container,
    body.elementor-page-5313 .elementor-section.elementor-section-boxed>.elementor-container {
        padding-left: 0 !important;
        padding-right: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Columns and text: 6px gutters for consistent edge-to-edge feel */
    body.elementor-page-39 .elementor-column,
    body.elementor-page-39 .elementor-col-50,
    body.elementor-page-39 .elementor-col-100,
    body.elementor-page-39 .section-col-content,
    body.elementor-page-39 .margin-left-50px,
    body.elementor-page-39 .margin-right-50px,
    body.elementor-page-4743 .elementor-column,
    body.elementor-page-4743 .elementor-col-50,
    body.elementor-page-4743 .elementor-col-100,
    body.elementor-page-4743 .section-col-content,
    body.elementor-page-4743 .margin-left-50px,
    body.elementor-page-4743 .margin-right-50px,
    body.elementor-page-5313 .elementor-column,
    body.elementor-page-5313 .elementor-col-50,
    body.elementor-page-5313 .elementor-col-100,
    body.elementor-page-5313 .section-col-content,
    body.elementor-page-5313 .margin-left-50px,
    body.elementor-page-5313 .margin-right-50px {
        padding-left: 6px !important;
        padding-right: 6px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }

    body.elementor-page-39 .elementor-widget-wrap,
    body.elementor-page-4743 .elementor-widget-wrap,
    body.elementor-page-5313 .elementor-widget-wrap {
        padding-left: 0 !important;
        padding-right: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }

    /* Text widgets: 12px or 6px gutters - consistent with Index page */
    body.elementor-page-39 .elementor-widget-text-editor .elementor-widget-container,
    body.elementor-page-39 .elementor-widget-heading .elementor-widget-container,
    body.elementor-page-39 .elementor-widget-container h1,
    body.elementor-page-39 .elementor-widget-container h2,
    body.elementor-page-39 .elementor-widget-container h3,
    body.elementor-page-39 .elementor-widget-container h4,
    body.elementor-page-39 .elementor-widget-container h5,
    body.elementor-page-39 .elementor-widget-container h6,
    body.elementor-page-39 .elementor-widget-container p,
    body.elementor-page-39 .elementor-heading-title,
    body.elementor-page-4743 .elementor-widget-text-editor .elementor-widget-container,
    body.elementor-page-4743 .elementor-widget-heading .elementor-widget-container,
    body.elementor-page-4743 .elementor-widget-container h1,
    body.elementor-page-4743 .elementor-widget-container h2,
    body.elementor-page-4743 .elementor-widget-container h3,
    body.elementor-page-4743 .elementor-widget-container h4,
    body.elementor-page-4743 .elementor-widget-container h5,
    body.elementor-page-4743 .elementor-widget-container h6,
    body.elementor-page-4743 .elementor-widget-container p,
    body.elementor-page-4743 .elementor-heading-title,
    body.elementor-page-4743 .elementor-inner-column>.elementor-widget-wrap,
    body.elementor-page-4743 .elementor-element-populated,
    body.elementor-page-5313 .elementor-widget-text-editor .elementor-widget-container,
    body.elementor-page-5313 .elementor-widget-heading .elementor-widget-container,
    body.elementor-page-5313 .elementor-widget-container h1,
    body.elementor-page-5313 .elementor-widget-container h2,
    body.elementor-page-5313 .elementor-widget-container h3,
    body.elementor-page-5313 .elementor-widget-container h4,
    body.elementor-page-5313 .elementor-widget-container h5,
    body.elementor-page-5313 .elementor-widget-container h6,
    body.elementor-page-5313 .elementor-widget-container p,
    body.elementor-page-5313 .elementor-heading-title,
    body.elementor-page-5313 .elementor-inner-column>.elementor-widget-wrap,
    body.elementor-page-5313 .elementor-element-populated {
        padding-left: 6px !important;
        padding-right: 6px !important;
        max-width: 100% !important;
    }

    /* Images: full-width, no side padding */
    body.elementor-page-39 .elementor-widget-image,
    body.elementor-page-39 .elementor-widget-image .elementor-widget-container,
    body.elementor-page-39 .elementor-widget-image img,
    body.elementor-page-4743 .elementor-widget-image,
    body.elementor-page-4743 .elementor-widget-image .elementor-widget-container,
    body.elementor-page-4743 .elementor-widget-image img,
    body.elementor-page-5313 .elementor-widget-image,
    body.elementor-page-5313 .elementor-widget-image .elementor-widget-container,
    body.elementor-page-5313 .elementor-widget-image img {
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Fix for Resource/Blog Cards: Ensure text is always readable (Black) */
.elementor-post__text,
.elementor-post__title,
.elementor-post__title a,
.elementor-post__excerpt,
.elementor-post__excerpt p {
    color: #000000 !important;
}

/* Specific fix for Parents Page (3717) visibility */
body.elementor-page-3717 .elementor-post__excerpt p {
    color: #000000 !important;
    font-weight: 500;
}

/* Dynamic Heading Colors matching section backgrounds */
#stem-2 .science-insight-card h5 {
    color: #488CCB !important;
}

#literacy-2 .science-insight-card h5 {
    color: #EE3A8F !important;
}

#arts-2 .science-insight-card h5 {
    color: #F79221 !important;
}

#mindfulness-2 .science-insight-card h5 {
    color: #68BD46 !important;
}


/* Make testimonial names non-italic */
.elementor-testimonial__cite,
.elementor-testimonial__name {
    font-style: normal !important;
}


/* GLOBAL: Remove ALL italic text across the entire site */
html,
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
div,
span,
li,
td,
th,
blockquote,
q,
em,
cite,
strong,
b,
address,
pre,
code {
    font-style: normal !important;
}


/* BRIDGE FOR DROPDOWN MENUS (Fixes cursor losing hover) */
.sub-menu-new::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    right: 0;
    height: 15px;
    background: transparent;
}

/* Fix for FontAwesome icons in footer rendering as squares */
.-footer-contact-info i.fas,
.-footer-contact-info i.fab,
.-footer-contact-info i.far {
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
    font-style: normal !important;
    display: inline-block !important;
    font-feature-settings: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased !important;
}

/* Force Boxed Layout and Left Alignment on Desktop */
@media (min-width: 769px) {

    #stem-2>.elementor-container,
    #literacy-2>.elementor-container,
    #arts-2>.elementor-container,
    #mindfulness-2>.elementor-container {
        max-width: 1140px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    #stem-2 .elementor-widget-container,
    #literacy-2 .elementor-widget-container,
    #arts-2 .elementor-widget-container,
    #mindfulness-2 .elementor-widget-container,
    #stem-2 h2,
    #stem-2 h4,
    #stem-2 p,
    #literacy-2 h2,
    #literacy-2 h4,
    #literacy-2 p,
    #arts-2 h2,
    #arts-2 h4,
    #arts-2 p,
    #mindfulness-2 h2,
    #mindfulness-2 h4,
    #mindfulness-2 p {
        text-align: left !important;
    }
}

.section-white .elementor-widget-text-editor p,
.section-yellow .elementor-widget-text-editor p,
.section-col-content .elementor-widget-text-editor p,
.section-grey .elementor-widget-text-editor p {
    text-align: left !important;
    line-height: 1.5 !important;
    margin-top: 4px !important;
    margin-bottom: 12px !important;
}

.section-white h2,
.section-yellow h2,
.section-grey h2,
.section-white h1,
.section-yellow h1,
.section-grey h1,
.section-white h4,
.section-yellow h4,
.section-grey h4 {
    text-align: left !important;
    margin-bottom: 8px !important;
}

/* ================================================
   FINAL MOBILE MASTER-FIX (ALIGNMENT & SPACING)
   ================================================ */
@media (max-width: 768px) {

    /* Force white clean backgrounds for all slides on curriculum page */
    [id*="slides-"] .elementor-testimonial,
    [id*="slides-"] .elementor-testimonial-wrapper,
    [id*="slides-"] .elementor-testimonial-content {
        background-color: #ffffff !important;
        background-image: none !important;
        border: none !important;
    }

    /* Definitive Left Alignment for all slide items */
    /* NOTE: Do NOT strip background from __header - it holds the colored bars */
    .elementor-testimonial__cite,
    .elementor-testimonial__name,
    .elementor-testimonial__text,
    .elementor-testimonial__text p,
    .elementor-testimonial__content,
    .elementor-testimonial__footer {
        text-align: left !important;
        justify-content: flex-start !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Header bar: left-align the text, keep background, fix spacing */
    .elementor-testimonial__header {
        text-align: left !important;
        justify-content: flex-start !important;
        align-items: center !important;
    }

    /* Force white clean backgrounds only for the slide content area */
    [id*="slides-"] .elementor-testimonial,
    [id*="slides-"] .elementor-testimonial-wrapper,
    [id*="slides-"] .elementor-testimonial-content {
        background-color: #ffffff !important;
        background-image: none !important;
        border: none !important;
    }

    /* Premium Rounded Pill 'UP' Button */
    .button-up {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        padding-top: 50px !important;
        padding-bottom: 30px !important;
    }

    .button-up .elementor-button {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        background-color: #FED100 !important;
        color: #1a202c !important;
        padding: 16px 40px !important;
        border-radius: 999px !important;
        font-weight: 800 !important;
        font-size: 15px !important;
        text-transform: uppercase !important;
        letter-spacing: 1.5px !important;
        box-shadow: 0 8px 25px rgba(254, 209, 0, 0.45) !important;
        border: none !important;
    }

    /* Mobile: curriculum block wrapper padding reset */
    #stem-block,
    #arts-block,
    #literacy-2,
    #mindfulness-2 {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Enforce brand colors for headers on curriculum page sliders */
    [id*="slides-stem"] .elementor-testimonial__header {
        background: #488CCB !important;
        padding: 12px 20px !important;
        border-radius: 4px 4px 0 0 !important;
    }

    [id*="slides-stem"] .elementor-testimonial__name {
        color: white !important;
    }

    [id*="slides-literacy"] .elementor-testimonial__header {
        background: #ec4899 !important;
        padding: 12px 20px !important;
        border-radius: 4px 4px 0 0 !important;
    }

    [id*="slides-literacy"] .elementor-testimonial__name {
        color: white !important;
    }

    [id*="slides-arts"] .elementor-testimonial__header {
        background: #FED100 !important;
        padding: 12px 20px !important;
        border-radius: 4px 4px 0 0 !important;
    }

    [id*="slides-arts"] .elementor-testimonial__name {
        color: #1a202c !important;
        font-weight: 800 !important;
    }

    [id*="slides-mindfulness"] .elementor-testimonial__header {
        background: #68BD46 !important;
        padding: 12px 20px !important;
        border-radius: 4px 4px 0 0 !important;
    }

    [id*="slides-mindfulness"] .elementor-testimonial__name {
        color: white !important;
    }

    .button-up .elementor-button:active {
        transform: scale(0.96) !important;
        background-color: #e6bc00 !important;
    }

    /* Consistency for the Science Insight Cards */
    .science-insight-card {
        background: #fdfdfd !important;
        border: 2px solid #f1f5f9 !important;
        margin-bottom: 12px !important;
    }

    /* ================================================
       PRICING TABLE MOBILE OPTIMIZATION
       ================================================ */
    .stratum-table {
        width: 100% !important;
        overflow-x: auto !important;
        margin: 20px 0 !important;
        border-radius: 12px !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
        -webkit-overflow-scrolling: touch !important;
        background: #fff !important;
    }

    .stratum-table__table {
        min-width: 650px !important;
        border-collapse: separate !important;
        border-spacing: 0 !important;
        width: 100% !important;
    }

    .stratum-table__table th,
    .stratum-table__table td {
        padding: 14px 12px !important;
        font-size: 14px !important;
        border-bottom: 1px solid #f1f5f9 !important;
        text-align: left !important;
    }

    .stratum-table__table thead th {
        background-color: #f8fafc !important;
        font-weight: 800 !important;
        text-transform: uppercase !important;
        font-size: 11px !important;
        letter-spacing: 0.5px !important;
        color: #475569 !important;
        white-space: nowrap !important;
        border-top: none !important;
    }

    /* Column 1: Program Name */
    .stratum-table__table td:nth-child(1) .stratum-table__body-cell {
        font-weight: 700 !important;
        color: #1a202c !important;
        white-space: nowrap !important;
    }

    /* Column 2: Monthly Fee */
    .stratum-table__table td:nth-child(2) .stratum-table__body-cell {
        font-weight: 800 !important;
        color: #129700 !important;
        white-space: nowrap !important;
        font-size: 16px !important;
    }

    /* Column 3: Details */
    .stratum-table__table td:nth-child(3) .stratum-table__body-cell {
        white-space: normal !important;
        min-width: 300px !important;
        line-height: 1.6 !important;
        color: #64748b !important;
    }

    /* Pricing Page - Hero Image Mobile Flush & Full Width */
    .page-id-5362 #content .elementor-top-section:first-of-type {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .page-id-5362 #content .elementor-top-section:first-of-type>.elementor-container {
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .page-id-5362 #content .elementor-top-section:first-of-type .section-col-photo {
        order: -1 !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .page-id-5362 #content .elementor-top-section:first-of-type .section-col-photo img {
        width: 100% !important;
        height: auto !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        display: block !important;
    }

    /* Keep text content section padded */
    .page-id-5362 #content .elementor-top-section:first-of-type .section-col-content {
        padding: 35px var(--mobile-x-pad) !important;
        width: 100% !important;
    }
}


/* Hero Section Polish for Pricing Page */
#new-fee-structure {
    padding-top: 50px !important;
    padding-bottom: 50px !important;
    background-color: #FED100 !important;
}

#new-fee-structure h2 {
    color: #ffffff !important;
    font-weight: 900 !important;
    letter-spacing: -0.5px !important;
}

/* Parents Page - Hero Image Mobile Flush & Full Width */
.page-id-3717 #content .elementor-top-section:first-of-type {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

@media (max-width: 768px) {
    .page-id-3717 #content .elementor-top-section:first-of-type>.elementor-container {
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .page-id-3717 #content .elementor-top-section:first-of-type .section-col-photo {
        order: -1 !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .page-id-3717 #content .elementor-top-section:first-of-type .section-col-photo img {
        width: 100% !important;
        height: auto !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        display: block !important;
    }

    .page-id-3717 #content .elementor-top-section:first-of-type .section-col-content {
        padding: 35px 20px !important;
        width: 100% !important;
    }
}

/* Programs Page - Hero Image Mobile Flush & Full Width */
.page-id-5313 #content .elementor-top-section:first-of-type {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

@media (max-width: 768px) {
    .page-id-5313 #content .elementor-top-section:first-of-type>.elementor-container {
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .page-id-5313 #content .elementor-top-section:first-of-type .section-col-photo {
        order: -1 !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .page-id-5313 #content .elementor-top-section:first-of-type .section-col-photo img {
        width: 100% !important;
        height: auto !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        display: block !important;
    }

    .page-id-5313 #content .elementor-top-section:first-of-type .section-col-content {
        padding: 35px 20px !important;
        width: 100% !important;
    }
}

/* Training Page - Hero Image Mobile Flush & Full Width */
.page-id-54 #content .elementor-top-section:first-of-type {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

@media (max-width: 768px) {
    .page-id-54 #content .elementor-top-section:first-of-type>.elementor-container {
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .page-id-54 #content .elementor-top-section:first-of-type .section-col-photo {
        order: -1 !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .page-id-54 #content .elementor-top-section:first-of-type .section-col-photo img {
        width: 100% !important;
        height: auto !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        display: block !important;
    }

    .page-id-54 #content .elementor-top-section:first-of-type .elementor-widget-wrap {
        padding-top: 0 !important;
    }

    .page-id-54 #content .elementor-top-section:first-of-type .section-col-content {
        padding: 35px 20px !important;
        width: 100% !important;
    }
}

/* Global Font Awesome Fix */
i.fas,
i.fa-solid {
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
}

i.far,
i.fa-regular {
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 400 !important;
}

i.fab,
i.fa-brands {
    font-family: "Font Awesome 5 Brands" !important;
    font-weight: 400 !important;
}

/* Contact Page - Mobile Polish (Page ID 78) */
@media (max-width: 768px) {
    .page-id-78 #content .elementor-top-section:first-of-type {
        padding-top: 95px !important;
        /* Extra space above the rounded section on mobile */
        background-color: #f8fafc !important;
        /* Consistent light gray background for the page */
    }

    .page-id-78 #content .elementor-top-section:first-of-type>.elementor-container {
        background-color: #ffffff !important;
        border-radius: 40px 40px 0 0 !important;
        /* Premium rounded top corners */
        padding-top: 45px !important;
        /* Space inside the box, above heading */
        margin-top: 0 !important;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.04) !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .page-id-78 #content .elementor-widget-wrap {
        padding: 0 16px !important;
    }

    #cefa-desktop-header-section .elementor-container {
        padding-left: 22px !important;
        /* Force space on left */
        padding-right: 22px !important;
        /* Force space on right */
        display: flex !important;
        justify-content: space-between !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .header-cta-side {
        flex: 0 0 auto !important;
        display: flex !important;
        align-items: center !important;
    }

    .header-logo-side img {
        max-height: 48px !important;
        width: auto !important;
    }

    .page-id-78 #content h1 {
        padding: 0 !important;
        margin: 0 0 24px 0 !important;
        text-align: left !important;
        font-weight: 900 !important;
        font-size: 32px !important;
        line-height: 1.15 !important;
        color: #1a202c !important;
    }

    /* Premium Contact Form Style */
    .page-id-78 .elementor-field-group {
        margin-bottom: 16px !important;
        padding: 0 !important;
        width: 100% !important;
    }

    .page-id-78 .elementor-field-group .elementor-field {
        border-radius: 14px !important;
        border: 1.5px solid #edf2f7 !important;
        padding: 15px 20px !important;
        background-color: #f7fafc !important;
        font-size: 15px !important;
        transition: all 0.25s ease-in-out !important;
        box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02) !important;
        width: 100% !important;
        box-sizing: border-box !important;
        margin-bottom: 10px !important;
    }

    .page-id-78 .elementor-field-group .elementor-field:focus {
        background-color: #ffffff !important;
        border-color: #129700 !important;
        box-shadow: 0 0 0 4px rgba(18, 151, 0, 0.08) !important;
        outline: none !important;
    }

    .page-id-78 .elementor-button[type="submit"] {
        width: 100% !important;
        border-radius: 99px !important;
        padding: 18px !important;
        font-weight: 800 !important;
        font-size: 16px !important;
        text-transform: uppercase !important;
        letter-spacing: 0.8px !important;
        background: var(--theme-gradient) !important;
        box-shadow: 0 8px 20px rgba(174, 71, 14, 0.3) !important;
        border: none !important;
        margin-top: 10px !important;
    }

    /* Ensure paragraphs align with the heading and look premium on mobile */
    .page-id-78 #content .elementor-widget-text-editor p {
        margin-left: 0 !important;
        padding-left: 0 !important;
        text-align: left !important;
        font-size: 15px !important;
        line-height: 1.6 !important;
    }

    .page-id-78 #content .elementor-widget-text-editor a {
        word-break: break-all !important;
    }
    
    .page-id-78 #content .elementor-widget-text-editor strong {
        font-size: 15.5px !important;
        display: inline-block !important;
        margin-top: 6px !important;
    }
}

.meta-share,
.elementor-share-buttons,
.elementor-widget-share-buttons {
    background-color: rgba(254, 209, 0, 0.3) !important;
    border: 3px solid rgba(254, 209, 0, 0.3) !important;
}