/*
Theme Name: Bhakti Yoga School Child
Template: twentytwentyfive
Description: Final working version – images restored, centered header/footer, transparent mobile menu
Version: 8.0
*/

/* ========== Google Fonts ========== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Salsa&family=Roboto:wght@300;400;500;700&display=swap');

/* ========== Global Variables ========== */
:root {
    --teal: #5dc1b9;
    --teal-dark: #3b8d88;
    --dark: #222222;
    --gray: #575760;
    --base: #f0f0f0;
    --base-2: #f7f8f9;
    --white: #ffffff;
    --accent: #1e73be;
    --heading-font: 'Salsa', cursive;
    --body-font: 'Poppins', sans-serif;
}

/* ========== Reset & Base ========== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: var(--body-font) !important;
    background-color: var(--base-2) !important;
    color: var(--dark) !important;
    line-height: 1.7 !important;
    font-size: 16px !important;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}
a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}
a:hover {
    color: var(--teal-dark);
}

/* ========== Headings ========== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font) !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    margin-bottom: 0.6em !important;
    color: var(--teal) !important;
}
/* White headings in header/footer */
.elementor-element-header h2,
.elementor-element-footer h2,
.hero-content h2 {
    color: #FFFFFF !important;
}

/* ========== Layout ========== */
.elementor-section {
    position: relative;
    padding: 60px 0;
}
.elementor-section-boxed .elementor-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.elementor-container {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}
.elementor-column {
    display: flex;
    min-height: 1px;
}
.elementor-col-100 { width: 100% !important; }
.elementor-col-50  { width: 50% !important; }
.elementor-col-33  { width: 33.333% !important; }
.elementor-col-25  { width: 25% !important; }

.elementor-widget-wrap {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    padding: 10px;
}
.elementor-widget {
    width: 100%;
    margin-bottom: 20px;
}

/* ========== Spacer ========== */
.elementor-spacer { height: 50px; }
.elementor-spacer-inner { height: 100%; }

/* ========== FINAL CTA BUTTON (text always visible) ========== */
.cssbuttons-io,
.elementor-button.cssbuttons-io {
    position: relative;
    font-family: inherit;
    font-weight: 500;
    font-size: 18px;
    letter-spacing: 0.05em;
    border-radius: 0.7em;
    cursor: pointer;
    border: none;
    background: linear-gradient(to right, #13B4A7, #0e9c90) !important;
    color: #ffffff !important;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8em 1.2em;
    transition: transform 0.3s;
    z-index: 1;                       /* create stacking context */
}

/* The sliding layer – place behind text */
.cssbuttons-io::before,
.elementor-button.cssbuttons-io::before {
    content: "";
    position: absolute;
    top: 0;
    left: -10%;
    width: 120%;
    height: 100%;
    background: #13B4A7 !important;
    transform: skew(30deg);
    transition: transform 0.4s cubic-bezier(0.3, 1, 0.8, 1);
    z-index: -1;                      /* behind text */
}

.cssbuttons-io:hover::before,
.cssbuttons-io:focus::before,
.cssbuttons-io:active::before,
.elementor-button.cssbuttons-io:hover::before,
.elementor-button.cssbuttons-io:focus::before,
.elementor-button.cssbuttons-io:active::before {
    transform: translate3d(100%, 0, 0);
}

/* Ensure any inner elements remain white */
.cssbuttons-io span,
.cssbuttons-io svg,
.elementor-button.cssbuttons-io span,
.elementor-button.cssbuttons-io svg {
    position: relative;
    z-index: 1;
    color: #ffffff !important;
}

/* Raw text nodes automatically inherit button color (white) */
.cssbuttons-io:active,
.elementor-button.cssbuttons-io:active {
    transform: scale(0.95);
}

/* ========== CTA Cards ========== */
.elementor-cta {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}
.elementor-cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
.elementor-cta__bg-wrapper {
    position: relative;
    height: 220px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}
.elementor-cta__bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s;
}
.elementor-cta:hover .elementor-cta__bg {
    transform: scale(1.05);
}
.elementor-cta__content {
    padding: 5px;
    text-align: center;
}
.elementor-cta__title {
    font-family: var(--heading-font) !important;
    color: var(--teal) !important;
    font-size: 16px !important;
    margin-bottom: 10px;
}
.elementor-cta__description {
    font-size: 0.95rem;
    color: var(--gray);
    margin-bottom: 15px;
}
/* Card description / body text: 12px */
.elementor-cta__description,
.elementor-cta .elementor-cta__description,
.elementor-image-box-description {
    font-size: 12px !important;
    line-height: 1;
}

.elementor-button:not(.cssbuttons-io) {
    background-color: transparent !important;
    color: #009287 !important;
    border: 2px solid #009287 !important;
    border-radius: 1em !important;
    padding: 3px 8px;
    font-family: "Poppins", Sans-serif;
    font-weight: 500;
    box-shadow: none;
}
.elementor-button:not(.cssbuttons-io):hover {
    background-color: rgb(6, 124, 115) !important;
    color: #fff !important;
}
/* ========== Image Widget (restored) ========== */
.elementor-widget-image {
    text-align: center;
}
.elementor-widget-image a {
    display: inline-block;
}
.elementor-widget-image img {
    display: inline-block;
    vertical-align: middle;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* ========== Image Carousel (restored) ========== */
.elementor-image-carousel-wrapper.swiper {
    overflow: hidden;
}
.elementor-image-carousel.swiper-wrapper {
    display: flex;
}
.swiper-slide {
    flex-shrink: 0;
    width: 100%;
}
.swiper-slide img {
    width: 100%;
    height: auto;
    display: block;
}
.elementor-swiper-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    cursor: pointer;
    font-size: 24px;
    color: #fff;
}
.elementor-swiper-button-prev { left: 10px; }
.elementor-swiper-button-next { right: 10px; }
.swiper-pagination {
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 2;
}

/* ========== Nav Menu (Desktop) ========== */
.desktop-menu-row {
    display: flex;
    justify-content: center;   /* center the entire row */
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    text-align: center;
    width: 100%;
}
.desktop-menu-left,
.desktop-menu-right {
    display: flex;
    gap: 15px;
    align-items: center;
    flex: 0 0 auto;   /* remove any flex-grow causing left/right spread */
}
.elementor-nav-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: transparent !important;  /* transparent */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    min-width: 200px;
    z-index: 999;
    border-radius: 5px;
    padding: 10px 0;
    border: 1px solid rgba(255,255,255,0.3);
}
.elementor-nav-menu li {
    position: relative;
}
.elementor-nav-menu a {
    font-weight: 500;
    padding: 8px 0;
    display: block;
    color: inherit;
    white-space: nowrap;
}
.elementor-nav-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    min-width: 200px;
    z-index: 999;
    border-radius: 5px;
    padding: 10px 0;
}
.elementor-nav-menu li:hover > .sub-menu { display: block; }
.elementor-nav-menu .sub-menu li { margin: 0; }
.elementor-nav-menu .sub-menu a {
    padding: 5px 16px;
    border-bottom: 1px solid #f0f0f0;
}

/* ========== Language Switcher ========== */
.bys-language-switcher {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
    width: 100%;
    text-align: center;
}
.bys-language-switcher a {
    color: #fff !important;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 4px;
}
.bys-language-switcher a.active {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

/* ========== Header (centered, white text, increased padding) ========== */
.elementor-section.elementor-element-header {
    background: linear-gradient(180deg, #1BCEBF 0%, #5DC1B9 100%) !important;
    position: relative;
    padding: 40px 20px;   /* doubled vertical padding */
    text-align: center;
}
.elementor-section.elementor-element-header .elementor-background-overlay {
    position: absolute;
    inset: 0;
    background-image: url('https://bhaktiyogaashram.com/wp-content/uploads/2021/12/Cusco-Bhakti-Yoga-School.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.44;
    z-index: 0;
}
.elementor-section.elementor-element-header .elementor-container {
    position: relative;
    z-index: 1;
    justify-content: center;
    text-align: center;
}
.elementor-element-header .elementor-nav-menu a,
.elementor-element-header .bys-language-switcher a {
    color: #fff !important;
}
.elementor-element-header .bys-language-switcher a.active {
    background: rgba(255,255,255,0.2);
    color: #fff;
}
.elementor-element-header .logo-container img {
    filter: brightness(0) invert(1);
    max-width: 120px;
    margin: 0 auto;
}
/* Header overlays: Cusco image + Mandala */
.elementor-section.elementor-element-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://bhaktiyogaashram.com/wp-content/uploads/2021/12/Cusco-Bhakti-Yoga-School.jpg');
    background-size: cover;
    background-position: center;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    opacity: 0.34;
    z-index: 0;
    pointer-events: none;
}
.elementor-section.elementor-element-header::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://bhaktiyogaashram.com/wp-content/uploads/2021/11/Mandalas-Bhakti-1.png');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: 1;
    pointer-events: none;
}
/* Top Bar (centered, increased padding) */
.elementor-section.elementor-element-top-bar {
    background-color: #13B4A7 !important;
    padding: 14px 14px !important;   /* doubled from 7px */
    position: sticky;
    top: 0;
    z-index: 1000;
    text-align: center;
}
.elementor-element-top-bar .elementor-widget-wrap {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 0 !important;
}
.elementor-element-top-bar .elementor-heading-title {
    font-size: 14px !important;
    color: #fff !important;
    white-space: nowrap;
    margin: 0 !important;
}
.elementor-element-top-bar .elementor-button {
    background: #fff;
    color: var(--dark);
    padding: 8px 18px;
    font-size: 13px;
    border-radius: 20px;
    white-space: nowrap;
}

/* ========== Mobile Menu Overlay (transparent background) ========== */
#mobile-menu-toggle {
    display: none;
    color: #fff !important;
    font-size: 28px;
    cursor: pointer;
    text-align: center;
    margin: 0 auto;
}
#mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: transparent !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    overflow-y: auto;
    padding: 20px;
    /* we'll let jQuery toggle display:flex */
}
#mobile-menu-overlay .mobile-menu-close { text-align: right; }
#mobile-menu-overlay #mobile-menu-close {
    font-size: 40px;
    cursor: pointer;
    color: var(--dark);
}
#mobile-menu-overlay .elementor-nav-menu-mobile {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
#mobile-menu-overlay .elementor-nav-menu-mobile a {
    color: var(--dark);
    font-size: 1.5rem;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}
/* Mobile responsiveness: hide desktop menu, show toggle */
@media (max-width: 768px) {
    .desktop-menu-row {
        display: none !important;
    }
    #mobile-menu-toggle {
        display: block !important;
    }
    #mobile-menu-overlay {
        display: none;   /* ✅ No !important – jQuery will control it */
    }
    .elementor-element-header .elementor-widget-wrap {
        flex-direction: column !important;
        align-items: center !important;
    }
}
@media (min-width: 769px) {
    #mobile-menu-toggle {
        display: none !important;
    }
    #mobile-menu-overlay {
        display: none !important;
    }
    .desktop-menu-row {
        display: flex !important;
        justify-content: center !important;
    }
}

/* ========== Footer (centered, white text, increased padding) ========== */
.elementor-section.elementor-element-footer {
    background-color: #5DC1B9 !important;
    text-align: center;
    padding: 80px 20px 40px;   /* doubled vertical padding */
    color: #fff;
}
.elementor-element-footer .elementor-widget-wrap {
    justify-content: center;
}
.elementor-element-footer .elementor-widget-image img {
    max-width: 150px;
    margin: 0 auto;
    box-shadow: none;
}
.elementor-element-footer .elementor-social-icon {
    background: transparent !important;
    color: #fff !important;
    margin: 0 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.2rem;
}
.elementor-element-footer .elementor-social-icon i {
    color: #fff !important;
}
.elementor-element-footer .elementor-social-icon:hover {
    opacity: 0.8;
}

/* ========== RESPONSIVE HEADER ========== */
@media (max-width: 768px) {
    .desktop-menu-row {
        display: none !important;
    }
    .desktop-logo {
        display: none !important;
    }
    .mobile-logo {
        display: block !important;
    }
    #mobile-menu-toggle {
        display: block !important;
        color: #fff !important;
        font-size: 28px !important;
        cursor: pointer !important;
        margin: 10px auto !important;
        text-align: center !important;
    }
}
@media (min-width: 769px) {
    .mobile-logo {
        display: none !important;
    }
}

/* --- Header & Footer full centering --- */
.elementor-section.elementor-element-header .elementor-widget-wrap,
.elementor-section.elementor-element-footer .elementor-widget-wrap {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    text-align: center !important;
}

/* Language switcher always centered */
.bys-language-switcher {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    text-align: center !important;
    margin: 0 auto 15px auto !important;
}

/* Desktop menu row also centered */
.desktop-menu-row {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
    width: 100% !important;
    text-align: center !important;
}
.desktop-menu-left,
.desktop-menu-right {
    display: flex !important;
    flex: 0 0 auto !important;   /* prevent left/right spread */
    align-items: center !important;
    justify-content: center !important;
}

/* ========== GLOBAL HERO OVERLAY (blurred backdrop, header excluded) ========== */
.elementor-section[style*="linear-gradient"]:not(.elementor-element-header) {
    position: relative;
    overflow: hidden;
}
/* Background image overlay */
.elementor-section[style*="linear-gradient"]:not(.elementor-element-header)::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('');
    background-size: cover;
    background-position: center;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    opacity: 0.34;
    z-index: 0;
    pointer-events: none;
}
/* Frosted glass effect on the content wrapper */
.elementor-section[style*="linear-gradient"]:not(.elementor-element-header) .elementor-widget-wrap {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.1);   /* optional light frost */
    padding: 20px;
    border-radius: 10px;
}
/* Ensure text is white and centered */
.elementor-section[style*="linear-gradient"]:not(.elementor-element-header) .elementor-heading-title,
.elementor-section[style*="linear-gradient"]:not(.elementor-element-header) .elementor-widget-text-editor p {
    color: #ffffff !important;
    text-align: center !important;
    padding: 0 20px !important;
}
.elementor-section[style*="linear-gradient"]:not(.elementor-element-header) .elementor-widget-text-editor p {
    margin-bottom: 1em !important;
}
.elementor-section.elementor-element-top-bar .elementor-widget-wrap {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 0 !important;
    text-align: center !important;
}
.elementor-element-top-bar .elementor-heading-title {
    text-align: center !important;
    margin: 0 !important;
}

.elementor-widget-text-editor ul {
    list-style: none;
    padding-left: 0;
}
.elementor-widget-text-editor ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
}
.elementor-widget-text-editor ul li:not(:has(> i.fa-check, > i.fa-times))::before {
    content: "\f00c"; /* Font Awesome check */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--teal);
}

.elementor-section[style*="linear-gradient"] .video-trigger {
    background: rgba(255,255,255,0.2);
    color: #fff !important;
    border: 2px solid #fff;
    padding: 10px 25px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
}

/* ========== CONTENT LISTS – checks and spacing ========== */
/* Only style lists that are inside text editor or icon-list widgets */
.elementor-widget-text-editor ul,
.elementor-widget-icon-list ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.elementor-widget-text-editor ul li,
.elementor-widget-icon-list ul li {
    position: relative;
    padding-left: 25px;          /* space for the icon */
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Add a check icon only if the <li> does NOT already have an <i> child */
.elementor-widget-text-editor ul li:not(:has(> i))::before,
.elementor-widget-icon-list ul li:not(:has(> i))::before {
    content: "\f00c";            /* Font Awesome check */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: #5dc1b9;               /* teal */
    font-size: 0.9em;
}

/* Space after existing icons (fa-check, fa-times, etc.) inside list items */
.elementor-widget-text-editor ul li i,
.elementor-widget-icon-list ul li i {
    margin-right: 10px;          /* separation from text */
    color: #5dc1b9;              /* keep consistent color */
}

/* If an <li> already has an <i> icon, remove the pseudo-element (safety) */
.elementor-widget-text-editor ul li:has(> i)::before,
.elementor-widget-icon-list ul li:has(> i)::before {
    content: none;
}

/* ========== FINAL GLOBAL FIXES ========== */

/* 1. Remove bullets from all lists everywhere */
ul {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 0 !important;
}

/* Keep submenu indentation for nav menus if needed */
.elementor-nav-menu .sub-menu {
    padding-left: 10px !important;
}

/* 2. Center top banner content */
.elementor-section.elementor-element-top-bar .elementor-widget-wrap {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 0 !important;
    text-align: center !important;
}
.elementor-element-top-bar .elementor-heading-title {
    text-align: center !important;
    margin: 0 !important;
}

/* 3. Non-CTA button hover animation (move up + brighter text) */
.elementor-button:not(.cssbuttons-io) {
    transition: transform 0.3s ease, color 0.3s ease !important;
    /* Keep original background and border as defined earlier, we don't override here */
}
.elementor-button:not(.cssbuttons-io):hover,
.elementor-button:not(.cssbuttons-io):focus,
.elementor-button:not(.cssbuttons-io):active {
    transform: translateY(-3px) !important;
    color: #00d9c8 !important;   /* brighter teal – adjust as desired */
    background-color: transparent !important; /* ensures no background change */
    border-color: #00d9c8 !important;         /* optional: also brighten border */
}

/* ========== FINAL RESPONSIVE & UI FIXES ========== */

/* 2. Center top banner content always */
.elementor-section.elementor-element-top-bar .elementor-widget-wrap {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 0 !important;
    text-align: center !important;
}
.elementor-element-top-bar .elementor-heading-title {
    text-align: center !important;
    margin: 0 !important;
}

/* ========== ULTIMATE HEADER & MOBILE FIX ========== */

/* Reset header wrapper to block on desktop (allows inline-flex row to work) */
.elementor-section.elementor-element-header .elementor-widget-wrap {
    display: block !important;          /* not flex, not column */
    text-align: center !important;
    width: 100% !important;
    padding: 0 !important;
}

/* Desktop menu row always horizontal */
.desktop-menu-row {
    display: flex !important;
    flex-direction: row !important;    /* ensure horizontal */
    flex-wrap: nowrap !important;      /* no wrap to multiple lines */
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important;              /* smaller gap */
    width: 100% !important;
}

/* Menu containers side-by-side */
.desktop-menu-left,
.desktop-menu-right {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
    flex: 0 1 auto !important;         /* allow shrink */
    white-space: nowrap;
}

/* Logo centered between menus */
.desktop-logo {
    display: inline-block !important;
    flex: 0 0 auto !important;
    margin: 0 15px !important;
}
.desktop-logo img {
    max-width: 100px !important;       /* slightly smaller to fit */
}

/* Mobile logo hidden by default (desktop) */
.mobile-logo {
    display: none !important;
}

/* Language switcher centered */
.bys-language-switcher {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    margin-bottom: 10px !important;
}

/* ========== FINAL MENU OVERRIDES (only these, do not alter other styles) ========== */

/* 1. Force desktop menu row to a single horizontal line */
.desktop-menu-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    padding: 0 !important;
}

/* 2. On mobile: hide desktop row and desktop logo, show mobile logo and burger */
@media (max-width: 768px) {
    .desktop-menu-row {
        display: none !important;
    }
    .desktop-logo {
        display: none !important;
    }
    .mobile-logo {
        display: block !important;
        text-align: center !important;
        margin: 10px 0 !important;
    }
    #mobile-menu-toggle {
        display: block !important;   /* override inline display:none */
        color: #fff !important;
        font-size: 28px !important;
        cursor: pointer !important;
        margin: 10px auto !important;
        text-align: center !important;
    }
}

/* 3. Ensure mobile overlay is hidden initially and shown via JS */
#mobile-menu-overlay {
    display: none;
}

/* ===== Fix Desktop Menu Wrapping ===== */
@media (min-width: 769px) {
  /* Target the actual <ul> that holds the menu items inside the header */
  .elementor-section.elementor-element-header ul.elementor-nav-menu {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;      /* prevents wrapping to a second row */
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important;              /* adjust spacing as needed */
    width: auto !important;            /* let it size naturally */
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
  }

  /* Ensure each top-level menu item does not shrink or grow unexpectedly */
  .elementor-section.elementor-element-header ul.elementor-nav-menu > li {
    flex: 0 0 auto !important;
    width: auto !important;
  }

  /* Make links inline-block and keep text on one line */
  .elementor-section.elementor-element-header ul.elementor-nav-menu > li > a {
    display: inline-block !important;
    white-space: nowrap !important;
    padding: 8px 10px !important;
    font-size: 15px !important;        /* reduce if needed */
  }
}

/* ===== Center Submenu Under Parent Item ===== */
@media (min-width: 769px) {
  .elementor-section.elementor-element-header .elementor-nav-menu .sub-menu {
    left: 50% !important;
    transform: translateX(-50%) !important;
    text-align: center !important;
    width: max-content !important;   /* fit content without stretching */
    min-width: 220px;                /* minimum width, adjust if needed */
  }

  .elementor-section.elementor-element-header .elementor-nav-menu .sub-menu a {
    text-align: center !important;
    padding: 8px 20px !important;    /* comfortable padding */
  }
}

/* ===== Force Language Switcher Centering ===== */
.bys-language-switcher {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;               /* adjust spacing between links */
    width: 100% !important;             /* take full width so centering works */
    text-align: center !important;
    margin: 0 auto !important;          /* center the nav itself if width is auto */
}

/* Ensure the container holding the switcher is also centered */
.elementor-widget-container:has(.bys-language-switcher) {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
}

/* ===== Allow multi-line buttons without clipping ===== */
.elementor-button:not(.cssbuttons-io) {
    white-space: normal !important;          /* allow text to wrap */
    word-break: normal !important;           /* don't break inside words */
    overflow-wrap: normal !important;        /* standard wrapping */
    display: inline-block !important;        /* ensure it behaves like a button */
    height: auto !important;                 /* let height adjust */
    min-height: auto !important;
    line-height: 1.4 !important;             /* comfortable spacing */
    font-size: 12px !important;              /* reduce font size */
}

/* Ensure the wrapper doesn't clip */
.elementor-cta__button-wrapper {
    overflow: visible !important;
}

/* ===== Single Post Content – Clean Spacing (scoped to single posts) ===== */

/* The main post content container in block themes */
body.single .wp-block-post-content,
body.single .entry-content {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* Give every block inside the post some breathing room */
body.single .wp-block-post-content > *,
body.single .entry-content > * {
    margin-bottom: 30px;
}

/* Headings */
body.single .wp-block-post-content h2,
body.single .entry-content h2 {
    margin-top: 50px;
    margin-bottom: 20px;
    font-size: 1.8em;
    line-height: 1.3;
}
body.single .wp-block-post-content h3,
body.single .entry-content h3 {
    margin-top: 35px;
    margin-bottom: 15px;
    font-size: 1.4em;
    line-height: 1.3;
}

/* Paragraphs */
body.single .wp-block-post-content p,
body.single .entry-content p {
    margin-bottom: 25px;
    line-height: 1.7;
}

/* Lists */
body.single .wp-block-post-content ul,
body.single .wp-block-post-content ol,
body.single .entry-content ul,
body.single .entry-content ol {
    margin-bottom: 30px;
    padding-left: 25px;
}
body.single .wp-block-post-content li,
body.single .entry-content li {
    margin-bottom: 8px;
}

/* Images */
body.single .wp-block-post-content img,
body.single .entry-content img {
    display: block;
    margin: 0 auto 30px;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Videos (iframes) */
body.single .wp-block-post-content iframe,
body.single .entry-content iframe {
    display: block;
    width: 100%;
    max-width: 900px;
    margin: 0 auto 30px;
    aspect-ratio: 16 / 9;
    height: auto;
    border: none;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Buttons (if you use <a class="elementor-button">) */
body.single .wp-block-post-content a.elementor-button,
body.single .entry-content a.elementor-button {
    display: inline-block;
    background-color: #13B4A7;
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    margin: 10px 0 25px;
}

/* Remove auto paragraphs around iframes from WordPress */
body.single .wp-block-post-content p:has(iframe),
body.single .entry-content p:has(iframe) {
    margin-bottom: 0;
}

/* ===== Single Post Content – Clean Spacing & Delicate Videos ===== */

/* Main post content container */
body.single .wp-block-post-content,
body.single .entry-content {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* Space between all top-level blocks */
body.single .wp-block-post-content > *,
body.single .entry-content > * {
    margin-bottom: 30px;
}

/* Headings */
body.single .wp-block-post-content h2,
body.single .entry-content h2 {
    margin-top: 50px;
    margin-bottom: 20px;
    font-size: 1.8em;
    line-height: 1.3;
}
body.single .wp-block-post-content h3,
body.single .entry-content h3 {
    margin-top: 35px;
    margin-bottom: 15px;
    font-size: 1.4em;
    line-height: 1.3;
}

/* Paragraphs */
body.single .wp-block-post-content p,
body.single .entry-content p {
    margin-bottom: 25px;
    line-height: 1.7;
}

/* Lists */
body.single .wp-block-post-content ul,
body.single .wp-block-post-content ol,
body.single .entry-content ul,
body.single .entry-content ol {
    margin-bottom: 30px;
    padding-left: 25px;
}
body.single .wp-block-post-content li,
body.single .entry-content li {
    margin-bottom: 8px;
}

/* Images */
body.single .wp-block-post-content img,
body.single .entry-content img {
    display: block;
    margin: 0 auto 30px;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Buttons */
body.single .wp-block-post-content a.elementor-button,
body.single .entry-content a.elementor-button {
    display: inline-block;
    background-color: #13B4A7;
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    margin: 10px 0 25px;
}

/* Videos – delicate, subtle, elegant */
body.single .wp-block-post-content iframe,
body.single .entry-content iframe {
    display: block;
    width: 100%;
    max-width: 850px;
    margin: 0 auto 30px;
    aspect-ratio: 16 / 9;
    height: auto;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
body.single .wp-block-post-content iframe:hover,
body.single .entry-content iframe:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* Remove auto paragraphs around iframes */
body.single .wp-block-post-content p:has(iframe),
body.single .entry-content p:has(iframe) {
    margin-bottom: 0;
}
/* ===== Reduce height of all gradient hero sections to 70% ===== */
.elementor-section[style*="linear-gradient"]:not(.elementor-element-header) {
    padding-top: 30px !important;      /* 60px default → 70% = 42px */
    padding-bottom: 30px !important;
}

/* Reduce spacer heights inside those hero sections */
.elementor-section[style*="linear-gradient"]:not(.elementor-element-header) .elementor-spacer-inner {
    height: 34px !important;           /* 50px default → 70% = 35px */
}

/* =============================================
   Forms – Delicate Global Styling
   ============================================= */

/* General form container spacing */
.wpcf7 form,
form {
    margin-bottom: 20px;
}

/* Labels */
.wpcf7 label,
form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark);
    font-size: 0.95rem;
}

/* Text inputs, email, etc. */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 textarea,
.wpcf7 select,
form input[type="text"],
form input[type="email"],
form input[type="tel"],
form input[type="url"],
form textarea,
form select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    background-color: #fff;
    color: var(--dark);
    font-family: var(--body-font);
    font-size: 1rem;
    line-height: 1.5;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    box-sizing: border-box;
}

/* Focus state – subtle teal glow */
.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 input[type="url"]:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus,
form input[type="text"]:focus,
form input[type="email"]:focus,
form input[type="tel"]:focus,
form input[type="url"]:focus,
form textarea:focus,
form select:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(93, 193, 185, 0.15);
}

/* Placeholder color */
.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder,
form input::placeholder,
form textarea::placeholder {
    color: #aaa;
    opacity: 1;
}

/* Submit buttons */
.wpcf7 input[type="submit"],
.wpcf7 button[type="submit"],
form input[type="submit"],
form button[type="submit"] {
    display: inline-block;
    background-color: var(--teal);
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 10px 24px;
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.wpcf7 input[type="submit"]:hover,
.wpcf7 button[type="submit"]:hover,
form input[type="submit"]:hover,
form button[type="submit"]:hover {
    background-color: var(--teal-dark);
    transform: translateY(-2px);
}

/* Align submit button with the rest */
.wpcf7 .wpcf7-submit,
form .submit {
    margin-top: 10px;
}

/* Error / validation messages (Contact Form 7) */
.wpcf7 .wpcf7-not-valid-tip {
    color: #d9534f;
    font-size: 0.85rem;
    margin-top: 4px;
}
.wpcf7 .wpcf7-response-output {
    border-radius: 4px;
    padding: 10px 15px;
    margin: 15px 0 0;
    font-size: 0.9rem;
}

/* ===== Submenu: stay open on hover & sit above all content ===== */

/* 1. Give the parent <li> a stacking context so its submenu can go above everything */
.elementor-nav-menu > li {
    position: relative;
    z-index: 10;               /* raise the parent while its submenu is shown */
}

/* Raise the whole header above page content when a dropdown is active */
.elementor-section.elementor-element-header {
    z-index: 9999;
}

/* 2. Make the submenu sit on top of all text and images on the page */
.elementor-nav-menu .sub-menu {
    z-index: 99999 !important;
    position: absolute !important;
    top: 100% !important;
    left: 0;
    background: #ffffff !important;      /* solid background, change if you prefer */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    padding: 8px 0 !important;
    min-width: 220px;
}

/* 3. Add an invisible "bridge" so the mouse can travel from parent to submenu
      without the gap breaking the hover */
.elementor-nav-menu > li > .sub-menu::before {
    content: "";
    position: absolute;
    top: -12px;                 /* height of the gap you want to bridge */
    left: 0;
    width: 100%;
    height: 12px;
    background: transparent;
}

/* Optional: add a small padding on the parent link so the hover area is bigger */
.elementor-nav-menu > li > a {
    padding: 12px 10px !important;    /* bigger hit area on the parent item */
}

/* 4. Keep submenu visible when hovering over the parent OR the submenu itself */
.elementor-nav-menu > li:hover > .sub-menu,
.elementor-nav-menu > li:focus-within > .sub-menu {
    display: block;
}

/* Keep parent <li> highlighted while submenu is open (helps mouse travel) */
.elementor-nav-menu > li:hover > a,
.elementor-nav-menu > li:focus-within > a {
    color: var(--teal-dark) !important;
}

/* Ensure submenu links are dark on the white background */
.elementor-nav-menu .sub-menu a {
    color: var(--dark) !important;
}
.elementor-nav-menu .sub-menu a:hover {
    color: var(--teal) !important;
    background: rgb(255 255 255 / 30%);
}

/* ===== Top bar – smaller text and no gap ===== */

/* Remove the gap between widgets in the top bar */
.elementor-section.elementor-element-top-bar .elementor-widget-wrap {
    gap: 0 !important;
    column-gap: 0 !important;
    row-gap: 0 !important;
}

/* Remove bottom margin between widgets */
.elementor-section.elementor-element-top-bar .elementor-widget,
.elementor-section.elementor-element-top-bar .elementor-element {
    margin: 0 !important;
}

/* Headline text 11px */
.elementor-section.elementor-element-top-bar .elementor-heading-title,
.elementor-section.elementor-element-top-bar .elementor-heading-title a {
    font-size: 12px !important;
    line-height: 1.3 !important;
}

/* Button text 11px and tighter padding */
.elementor-section.elementor-element-top-bar .elementor-button {
    font-size: 11px !important;
    padding: 3px 10px !important;
    line-height: 1.3 !important;
}

/* Optional: if the widgets still show space between them,
   collapse any default margins/padding on the containers */
.elementor-section.elementor-element-top-bar .elementor-widget-container {
    margin: 0 !important;
    padding: 0 !important;
}