/*
 Theme Name:   Knirpse Child
 Theme URI:    http://vecurosoft.com/products/wordpress/knirpse/
 Description:  This is a child theme for Knirpse WordPress Theme
 Author:       Vecurosoft
 Template:     knirpse
 Version:      1.1
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags:         two-columns, three-columns, left-sidebar, right-sidebar, flexible-header, custom-background, custom-colors, custom-header, custom-menu, theme-options, editor-style, featured-images, microformats, post-formats,  sticky-post, threaded-comments, translation-ready
 Text Domain:  knirpse-child
*/

/*  [ Add your custom css below ]
- - - - - - - - - - - - - - - - - - - - */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

/* Fix Menu Hover Color - White text on Brand Background */
.header-menu-area .main-menu ul>li>a:hover {
    color: #ffffff !important;
    background-color: #F4A821 !important;
    border-radius: 50px;
}

/* Aggressive Full Width Header for Desktops */
@media (min-width: 992px) {
    .header-menu-area .container {
        max-width: 100% !important;
        width: 98% !important;
        padding-left: 10px;
        padding-right: 10px;
    }

    /* Distribute space: Logo and Button compact, Menu takes rest */
    .header-menu-area .row {
        justify-content: space-between !important;
    }

    /* Logo: consistent large size on desktop */
    .header-logo img {
        max-width: none !important;
        width: auto !important;
        max-height: 220px !important;
        height: auto !important;
    }

    /* Hide Menu Button on Large Screens */
    .vs-menu-toggle,
    .sideMenuToggler {
        display: none !important;
    }
}

@media (min-width: 992px) and (max-width: 1400px) {

    /* Force Middle Column (Menu) to take available space */
    .header-menu-area .row>.col-auto:nth-child(2) {
        flex-grow: 1 !important;
        width: auto !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Make Nav fill the column */
    .header-menu-area .main-menu {
        width: 100% !important;
        display: block !important;
    }

    /* Spread Menu Items */
    .header-menu-area .main-menu ul {
        display: flex !important;
        justify-content: space-between !important;
        width: 100% !important;
        margin: 0 !important;
    }

    /* Fix Dropdown Orientation */
    .header-menu-area .main-menu ul.sub-menu {
        display: block !important;
        /* Force block to stack items */
        width: 260px !important;
        /* Increase width */
        padding: 10px 0 !important;
        left: 0 !important;
        top: 100% !important;
        background-color: #fff !important;
        position: absolute !important;
    }

    .header-menu-area .main-menu ul.sub-menu>li {
        width: 100% !important;
        display: block !important;
        margin: 0 !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .header-menu-area .main-menu ul.sub-menu>li>a {
        padding: 10px 20px !important;
        text-align: left !important;
        font-size: 14px !important;
        justify-content: flex-start !important;
        display: block !important;
        white-space: normal !important;
        line-height: 1.4 !important;
    }

    /* Adjust main menu padding and font size for smaller desktops */
    .header-layout1 .header-menu-area .main-menu ul>li>a,
    .header-menu-area .main-menu ul>li>a {
        padding-left: 5px !important;
        padding-right: 5px !important;
        font-size: 13px !important;
    }

    /* Adjust button size and padding */
    .header-button .vs-btn {
        padding: 15px 15px !important;
        font-size: 13px !important;
    }

    /* Logo: consistent size on medium desktop */
    .header-logo img {
        max-width: none !important;
        width: auto !important;
        max-height: 180px !important;
        height: auto !important;
    }

    /* Adjust container padding if necessary */
    .container {
        padding-left: 10px;
        padding-right: 10px;
        max-width: 100%;
        width: 100% !important;
    }

    /* Ensure flex items don't wrap inappropriately */
    .row.align-items-center.justify-content-between {
        flex-wrap: nowrap;
    }

    /* Adjust spacing between header items */
    .header-menu-area .col-auto {
        padding-left: 2px;
        padding-right: 2px;
    }

    /* Fix Home Option Width - Active Item Padding */
    .header-menu-area .main-menu ul>li.current-menu-item>a,
    .header-menu-area .main-menu ul>li.current_page_item>a {
        padding-left: 20px !important;
        padding-right: 20px !important;
        font-weight: 700 !important;
        color: #ffffff !important;
        /* White text for selected */
    }
}

/* Mothers Club Banner Overrides */
.breadcumb-wrapper.about-header-wrapper.mothers-club-banner {
    aspect-ratio: 1024 / 700 !important;
    /* Proper height to show full image */
    background-size: cover !important;
    background-position: center bottom !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Force the overlay content down by overriding the theme's !important rules (Desktop Only) */
.breadcumb-wrapper.about-header-wrapper.mothers-club-banner .breadcumb-content {
    padding-top: 250px !important;
    display: block !important;
    width: 100% !important;
}

/* Reset for mobile to allow flexbox centering */
@media (max-width: 991px) {
    .breadcumb-wrapper.about-header-wrapper.mothers-club-banner .breadcumb-content {
        padding-top: 0 !important;
    }
}




/* Make Full-Width Buttons only in Forms (not header) */
.wpcf7-form button[type="submit"],
.wpcf7-form input[type="submit"],
#clubForm .submit-btn {
    width: 100% !important;
    display: block !important;
    margin-bottom: 5px;
}

/* Mobile Header Responsiveness */
@media (max-width: 991px) {

    /* Container for Logo and Buttons - Center horizontally against logo */
    .vs-header .row {
        align-items: center !important;
        display: flex !important;
    }

    /* Target the header-button container specifically */
    .vs-header .header-button {
        display: flex !important;
        gap: 8px !important;
        justify-content: flex-end !important;
        align-items: center !important;
        width: 100% !important;
        padding-top: 5px;
    }

    /* Small Join Now button */
    .vs-header .vs-btn.wave-btn {
        padding: 4px 6px !important;
        font-size: 11px !important;
        min-width: 80px !important;
        max-width: 120px !important;
        width: auto !important;
        height: 30px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin-right: 0 !important;
        line-height: 1 !important;
        text-align: center !important;
        border-radius: 9999px !important;
    }

    /* Menu Toggle */
    .vs-header .vs-menu-toggle {
        margin: 0 !important;
        padding: 4px 8px !important;
        font-size: 12px !important;
        background: var(--theme-color, #F4A821);
        color: #fff !important;
        border-radius: 9999px;
        white-space: nowrap !important;
        border: none !important;
        display: flex !important;
        align-items: center !important;
        gap: 4px;
        height: 30px !important;
    }

    /* Search Button - Hidden */
    .vs-header .searchBoxToggler {
        display: none !important;
    }

    /* Fix Logo Layout on mobile and allow it to be large */
    .vs-header .header-logo {
        padding-right: 5px !important;
        padding-top: 5px !important;
        padding-bottom: 5px !important;
        flex: 0 1 auto !important;
        /* Allow logo area to shrink if needed but default to auto */
        min-width: 0 !important;
        /* REMOVE 250px bottleneck */
    }

    .vs-header .header-logo img {
        max-width: 100% !important;
        width: auto !important;
        max-height: 110px !important;
        /* LARGE logo as requested */
        height: auto !important;
    }

    /* Prevent horizontal overflow on the body, not the header container (which clips the drawer) */
    .vs-header,
    .header-menu-area,
    .sticky-wrapper,
    .will-sticky {
        overflow: visible !important;
        /* Fix: Allow drawer to be visible */
        contain: none !important;
        /* Performance flags can trap the drawer */
        transform: none !important;
        /* Transforms trap fixed-position drawers */
        z-index: 99999 !important;
        /* Ensure head is on top of content to avoid punch-through */
    }

    /* Proper Drawer Styling to ensure it covers the screen now that it's freed */
    .vs-menu-wrapper {
        z-index: 999999 !important;
        /* Extremely high level */
        position: fixed !important;
        top: 0;
        left: 0;
        height: 100vh !important;
        width: 100% !important;
        visibility: visible;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        /* Scroll happens here now */
        -webkit-overflow-scrolling: touch !important;
    }
}

/* Mobile: Shift hero section up 20px to reduce gap below header */
@media (max-width: 991px) {

    .vs-hero-wrapper,
    .hero-slider1 {
        margin-top: -30px !important;
        /* Move banner back up to meet the header */
        transform: translateZ(0);
        /* Force GPU rendering for stability */
        will-change: transform;
    }

    /* Slider Dots Positioning - Mobile: Below banner, above buttons */
    .hero-slider1 {
        position: relative !important;
    }

    .hero-slider1 .slick-dots,
    .hero-slider-dots {
        position: absolute !important;
        top: 310px !important;
        /* Positioned below the banner image */
        bottom: auto !important;
        left: 0 !important;
        right: 0 !important;
        margin: 0 !important;
        text-align: center !important;
        width: 100% !important;
        display: block !important;
        z-index: 100 !important;
    }

    /* Move the content (buttons) a little down (balanced) */
    .hero-slider1 .slide-content-wrapper {
        margin-top: 0px !important;
    }
}

/* Slider Dots Positioning - Desktop: Move down below banner */
@media (min-width: 992px) {

    .hero-slider1 .slick-dots,
    .hero-slider-dots {
        margin-top: 60px !important;
        position: relative !important;
        bottom: auto !important;
        text-align: center !important;
        width: 100% !important;
        z-index: 10 !important;
        display: block !important;
    }
}

/* Custom Preloader Styling - Fun & Childish */
.preloader {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 9999999 !important;
    /* Elevated above the header and menu (which is 999999) */
    background-color: #FFF9E6;
    /* Soft Creamy Yellow */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Disable flickering bubbles on mobile */
@media (max-width: 991px) {

    .preloader::before,
    .preloader::after {
        display: none !important;
    }

    .preloader-logo {
        animation: none !important;
    }
}

.preloader-inner {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.preloader-logo {
    max-height: 220px !important;
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    margin-bottom: 30px !important;
    animation: childBounce 2s ease-in-out infinite;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.1));
}

/* Fun Bouncy Animation */
@keyframes childBounce {

    0%,
    100% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(-20px) rotate(2deg);
    }
}

@keyframes floatingBubbles {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(50px, 50px);
    }
}

/* Playful Loader */
.loader-wrap .loader {
    width: 48px;
    height: 48px;
    border: 5px solid #F4A821;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ===== Breadcrumb Banner Mobile Fixes ===== */

/* Fix: overlay not covering full image height */
.about-header-wrapper[data-overlay]::before {
    height: 100% !important;
}

/* Fix: reduce aspect ratio on mobile so banner isn't too tall */
@media (max-width: 767px) {
    .breadcumb-wrapper {
        aspect-ratio: 4 / 3 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Fix: gracefully center text vertically instead of top-padding */
    .breadcumb-content {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        margin: auto !important;
        width: 100% !important;
    }

    /* Fix: smaller title so it doesn't overflow */
    .breadcumb-title {
        font-size: 36px !important;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    /* Fix: smaller breadcrumb menu text */
    .breadcumb-menu li,
    .breadcumb-menu a,
    .breadcumb-menu span {
        font-size: 14px !important;
    }
}

@media (max-width: 480px) {
    .breadcumb-wrapper {
        aspect-ratio: 1 / 1 !important;
    }

    .breadcumb-title {
        font-size: 28px !important;
    }

    .breadcumb-content {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        margin: auto !important;
    }
}

/* ===== Childish & Animated Elements for Class Pages ===== */

/* Soft Bouncing Animation for Titles/Images */
@keyframes softBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes gentleRotate {

    0%,
    100% {
        transform: rotate(-2deg);
    }

    50% {
        transform: rotate(2deg);
    }
}

.class-featured-image img {
    animation: gentleRotate 5s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.class-featured-image:hover img {
    transform: scale(1.02);
}

.class-details-wrapper .breadcumb-title {
    animation: softBounce 4s ease-in-out infinite;
}

/* Floating Bubbles Background Effect */
.childish-bg-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.bubble {
    position: absolute;
    background: rgba(244, 168, 33, 0.1);
    border-radius: 50%;
    animation: floatUp 15s linear infinite;
}

@keyframes floatUp {
    0% {
        transform: translateY(110vh) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-10vh) translateX(50px);
        opacity: 0;
    }
}

/* Playful Typography for Highlights */
.class-highlight-box {
    background: #FFFAF0;
    border: 3px dashed #F4A821;
    padding: 30px;
    border-radius: 25px;
    margin: 40px 0;
    position: relative;
    overflow: hidden;
}

.class-highlight-box::before {
    content: "✨";
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
}

.class-info-box {
    border: 2px solid #F4A821 !important;
    border-radius: 30px !important;
    overflow: hidden;
}

.class-info-box h3 {
    background: #F4A821;
    color: #fff !important;
    padding: 15px;
    margin: -30px -30px 25px -30px !important;
    text-align: center;
}

/* Top Bar Background Color */
.header-top-area {
    background-color: #F4A821 !important;
}

/* Top Bar Icon Color Changes */
.header-links ul li i,
.header-social ul li a i {
    color: #000000 !important;
}

/* Make Top Bar Text Black for readability on yellow background */
.header-links a,
.header-links ul li {
    color: #000000 !important;
}

/* Make the separator line black as well for consistency */
.header-links ul li:before {
    background-color: rgba(0, 0, 0, 0.2) !important;
}

/* Force consistent aspect ratio for Class Widget images */
.class-box .class-img img,
.class-box1 .class-img img {
    width: 100% !important;
    height: 250px !important;
    /* Fixed height to ensure uniformity */
    /* Crop to fit without distortion */
    border-radius: 20px;
    /* Match the theme's rounded style */
}

/* Reposition "Who We Are" Slider Arrows - Balanced position */
.shape-slider-area {
    overflow: visible !important;
}


.shape-slider-area .arrow-right {
    right: 15px !important;
    /* Closer to image but not overlapping text */
}

/* Responsive adjustments for arrows */
@media (max-width: 1199px) {
    .shape-slider-area .arrow-left {
        left: 0 !important;
    }

    .shape-slider-area .arrow-right {
        right: 0 !important;
    }

}

/* ===== Redesigned Childish Interactive Header Background - Refined ===== */

.vs-header,
.header-menu-area,
.sticky-active .header-menu-area,
.vs-menu-wrapper .vs-menu-area,
.vs-menu-wrapper .mobile-logo {
    background-color: #F5F5A8 !important;
    /* Bulletproof Dots Pattern */
    background-image:
        radial-gradient(rgba(255, 255, 255, 0.6) 8%, transparent 9%),
        radial-gradient(rgba(255, 255, 255, 0.6) 8%, transparent 9%) !important;
    background-size: 100px 100px !important;
    background-position: 0 0, 50px 50px !important;
    position: relative;
    border-bottom: 4px solid #F5F5A8 !important;
    background-attachment: scroll !important;
    /* Use scroll on mobile to avoid fixed-background bugs */
    /* Advanced iOS & Safari Specific Resets */
    box-shadow: none !important;
    filter: none !important;
    backdrop-filter: none !important;
    opacity: 1 !important;
    transition: none !important;
    -webkit-appearance: none !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-backface-visibility: hidden;
    -webkit-transform-style: preserve-3d;
    image-rendering: -webkit-optimize-contrast !important;
}

/* Subtle Interactive Background Movement on Header Hover */
.vs-header:hover .header-menu-area,
.header-menu-area:hover {
    background-position: 10px 10px, 60px 60px;
}

/* Ensure Logo stands out and shows at full natural width */
.header-logo img {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
    max-width: none !important;
    width: auto !important;
    /* Let logo set its own height, constrained to header bar */
    max-height: 220px !important;
    height: auto !important;
    display: block !important;
}

/* Prevent Bootstrap col-auto from squeezing the logo column - Desktop Only */
@media (min-width: 992px) {
    .header-menu-area .col-auto:first-child {
        min-width: 250px !important;
        flex-shrink: 0 !important;
    }
}

/* Medium desktop: slightly smaller but still unconstrained */
@media (min-width: 992px) and (max-width: 1400px) {
    .header-logo img {
        max-height: 180px !important;
    }

    .header-menu-area .col-auto:first-child {
        min-width: 210px !important;
    }
}

/* Ensure sticky header also keeps the pattern */
.sticky-active .header-menu-area {
    background-color: #F5F5A8 !important;
}

/* Mobile Adjustments */
@media (max-width: 991px) {

    .vs-header,
    .header-menu-area,
    .vs-menu-wrapper .mobile-logo {
        background-color: #F5F5A8 !important;
        /* Re-declaring pattern explicitly for mobile visibility (Bulletproof) */
        background-image:
            radial-gradient(rgba(255, 255, 255, 0.6) 8%, transparent 9%),
            radial-gradient(rgba(255, 255, 255, 0.6) 8%, transparent 9%) !important;
        background-size: 60px 60px !important;
        background-position: 0 0, 30px 30px !important;
        border-bottom-width: 3px !important;
        transform: none !important;
        overflow: visible !important;
        /* Advanced iOS Flattening */
        box-shadow: none !important;
        filter: none !important;
        backdrop-filter: none !important;
        -webkit-appearance: none !important;
    }

    /* Lock body scroll when mobile menu is open - Stronger Mobile Version */
    html.vs-body-visible,
    body.vs-body-visible {
        overflow: hidden !important;
        height: 100vh !important;
        width: 100% !important;
        position: fixed !important;
        touch-action: none !important;
        -webkit-overflow-scrolling: none !important;
    }

    /* Re-enable scrolling within the menu area specifically */
    .vs-menu-wrapper.vs-body-visible .vs-menu-area {
        touch-action: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    /* Neutralize inner scroll area and allow drawer content to grow naturally */
    .vs-mobile-menu {
        max-height: none !important;
        overflow: visible !important;
        padding-bottom: 40px !important;
    }

    /* Cross Icon inside Drawer Fix - Positioned clearly inside the 70% width */
    .vs-menu-wrapper .vs-menu-toggle {
        right: 15px !important; 
        top: 20px !important;
        background-color: #F4A821 !important;
        color: #FFFFFF !important;
        border-radius: 50% !important;
        z-index: 100 !important;
        width: 36px !important;
        height: 36px !important;
        line-height: 36px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Ensure mobile drawer also has the pattern consistently */
    .vs-menu-wrapper .vs-menu-area {
        background-color: #F5F5A8 !important;
        background-image:
            radial-gradient(rgba(255, 255, 255, 0.6) 8%, transparent 9%),
            radial-gradient(rgba(255, 255, 255, 0.6) 8%, transparent 9%) !important;
        background-size: 60px 60px !important;
        background-position: 0 0, 30px 30px !important;
        background-attachment: scroll !important;
        /* Fix: Always use scroll on mobile for reliable patterns */
        box-shadow: none !important;
        filter: none !important;
        backdrop-filter: none !important;
        width: 70% !important;
        /* Set to 70% as requested */
        max-width: 70% !important;
        min-width: 260px !important;
        /* Ensure it's not too thin on small screens */
        height: auto !important;
        /* Allow content to push height */
        min-height: 100% !important;
        /* Use 100% instead of 100vh to cover full scrollable area */
        display: block !important;
        overflow: visible !important;
        /* Let the wrapper handle scrolling */
        padding-bottom: 80px !important;
        /* Balanced padding for reachability without excessive space */
    }
}

/* ===== Visibility Enhancements ===== */

/* Bold Menu Items - Top Level White */
.header-menu-area .main-menu>ul>li>a {
    font-weight: 700 !important;
    color: #000000 !important;
}

/* Shadow on Join Now Button */
.header-button .vs-btn.wave-btn {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.3s ease !important;
}

.header-button .vs-btn.wave-btn:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3) !important;
    transform: translateY(-2px);
}

/* Force White Text and Orange Bubble on Selected Menu Items and their Parents - High Specificity Version */
body .header-menu-area .main-menu li.current-menu-item>a,
body .header-menu-area .main-menu li.current_page_item>a,
body .header-menu-area .main-menu li.current-menu-parent>a,
body .header-menu-area .main-menu li.current-menu-ancestor>a,
body .header-menu-area .main-menu li.current-page-ancestor>a,
body .header-menu-area .main-menu li.current-page-parent>a,
body .header-menu-area .main-menu li.current_page_ancestor>a,
body .header-menu-area .main-menu li>a.active-parent-highlight,
body .vs-mobile-menu ul li.current-menu-item>a,
body .vs-mobile-menu ul li.current_page_item>a,
body .vs-mobile-menu ul li.current-menu-parent>a,
body .vs-mobile-menu ul li.current-menu-ancestor>a,
body .vs-mobile-menu ul li.current-page-ancestor>a,
body .vs-mobile-menu ul li.current-page-parent>a,
body .vs-mobile-menu ul li.current_page_ancestor>a,
body .vs-mobile-menu ul li a.active-parent-highlight,
body .vs-mobile-menu ul li a.active-item-highlight,
body .elementor-nav-menu li.current-menu-item>a,
body .elementor-nav-menu li.current-menu-ancestor>a,
body .elementor-nav-menu li>a.active-parent-highlight,
body a.active-parent-highlight {
    color: #ffffff !important;
    background-color: #F4A821 !important;
    border-radius: 50px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    font-weight: 700 !important;
}

/* Highlight for the active dropdown item itself */
.sub-menu li.current-menu-item>a,
.sub-menu li.current_page_item>a,
.sub-menu li a.active-item-highlight,
a.active-item-highlight {
    color: #ffffff !important;
    background-color: #F4A821 !important;
    border-radius: 5px !important;
    position: relative !important;
    padding-left: 30px !important;
    /* Extra room for the dot */
}

/* Add white dot to active sub-menu item to match 'Programs' menu exactly */
.sub-menu li.current-menu-item>a::before,
.sub-menu li a.active-item-highlight::before,
a.active-item-highlight::before {
    content: "" !important;
    position: absolute !important;
    left: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 6px !important;
    height: 6px !important;
    background-color: #ffffff !important;
    border-radius: 50% !important;
    display: block !important;
}

/* Fix Dropdown Text Overflow for all Desktop */
@media (min-width: 1401px) {
    .header-menu-area .main-menu ul.sub-menu {
        min-width: 260px !important;
    }

    .header-menu-area .main-menu ul.sub-menu>li>a {
        white-space: normal !important;
        line-height: 1.4 !important;
        display: block !important;
    }
}

/* Fix Dropdown Menu Going Behind Hero Section on Desktop */
@media (min-width: 992px) {
    .vs-header,
    .header-menu-area {
        position: relative !important;
        z-index: 99999 !important;
    }
    
    .header-menu-area .main-menu ul.sub-menu {
        z-index: 999999 !important;
    }
}

/* Move Banner images slightly up and add orange overlay for specific pages */

/* Banner: Schedule a Visit / Apply Now */
.page-template-page-schedule-visit-apply-now #breadcumbwrap {
    background-position: center 2% !important;
}

.page-template-page-schedule-visit-apply-now #breadcumbwrap::before {
    background-color: #F4A821 !important;
    opacity: 0.4 !important;
}

/* Banner: Why the First 6 Years Matter Most */
.page-template-page-why-the-first-six-years-matter-most-php #breadcumbwrap {
    background-position: center 30% !important;
}

.page-template-page-why-the-first-six-years-matter-most-php #breadcumbwrap::before {
    background-color: #F4A821 !important;
    opacity: 0.4 !important;
}

/* Banner: Our Vision and Mission */
.page-template-page-our-vision-and-mission-php #breadcumbwrap {
    background-position: center 40% !important;
}

.page-template-page-our-vision-and-mission-php #breadcumbwrap::before {
    background-color: #F4A821 !important;
    opacity: 0.4 !important;
}

/* Banner: Who We Are */
.page-template-page-who-we-are-introduction-php #breadcumbwrap {
    background-position: center 30% !important;
}

.page-template-page-who-we-are-introduction-php #breadcumbwrap::before {
    background-color: #F4A821 !important;
    opacity: 0.4 !important;
}

/* Banner: The Science Behind Brain Lab School */
.page-template-page-the-science-behind-brain-lab-school-php #breadcumbwrap {
    background-position: center 2% !important;
}

.page-template-page-the-science-behind-brain-lab-school-php #breadcumbwrap::before {
    background-color: #F4A821 !important;
    opacity: 0.4 !important;
}

/* Banner: How Brain Lab Aligns with Brain Science */
.page-template-page-how-brain-lab-school-aligns-with-brain-science-php #breadcumbwrap {
    background-position: center 2% !important;
}

.page-template-page-how-brain-lab-school-aligns-with-brain-science-php #breadcumbwrap::before {
    background-color: #F4A821 !important;
    opacity: 0.4 !important;
}

/* ===== Font Hierarchy Update: Poppins ===== */
:root {
    --title-font: "Poppins", sans-serif !important;
    --para-font: "Poppins", sans-serif !important;
    --body-font: "Poppins", sans-serif !important;
}

/* Base Body Text */
body,
p,
a,
span,
li,
input,
textarea,
select {
    font-family: var(--body-font) !important;
}

/* Headings Structure */
.h1,
h1,
.h2,
h2,
.h3,
h3,
.h4,
h4,
.h5,
h5,
.h6,
h6 {
    font-family: var(--title-font) !important;
}

.h1,
h1,
.h2,
h2,
.h3,
h3,
.h4,
h4,
.h5,
h5,
.h6,
h6 {
    font-weight: 700 !important;
}

/* Specific override for "Book an Appointment" heading */
.appointment-section .sec-title.big-title,
.mockup3 .sec-title.big-title {
    font-weight: 600 !important;
    font-size: 42px !important;
}

/* Ensure paragraph text is normal weight */
p,
body {
    font-weight: 400 !important;
}

/* Bold text elements within body should still be bold */
b,
strong {
    font-weight: 700 !important;
}

/* --- Specific Overrides for Mothers Club Templates --- */

/* Override specific hardcoded classes from inline styles using wildcard selectors to catch all variations (e.g., .pg-section-title, .cdb-section-title) */
.pg-page,
.cdb-page,
.mmh-page,
.cs-page,
.cd-page,
[class*="-section-title"],
[class*="-card"] h3,
[class*="-img-overlay"] h4,
[class*="-hero"] h1,
.btn-bounce {
    font-family: var(--title-font) !important;
}

/* Force paragraph and list fonts inside these pages */
[class*="-page"] p,
[class*="-page"] li,
[class*="-page"] a,
[class*="-page"] span {
    font-family: var(--body-font) !important;
}

/* Override inline custom properties */
:root {
    --font-heading: "Poppins", sans-serif !important;
    --font-body: "Poppins", sans-serif !important;
}

/* Fix massive gaps on Mothers Club pages by removing invisible animated text and reducing padding */
.pi-hero h1,
.pi-hero p.lead-text {
    display: none !important;
}

.hero-img-wrap {
    margin-bottom: 0px !important;
}

.pi-hero {
    padding-bottom: 40px !important;
    padding-top: 40px !important;
}

.pg-sessions,
[class*="-sessions"] {
    padding-top: 40px !important;
}

@media (max-width: 767px) {

    .pg-sessions,
    [class*="-sessions"] {
        padding-top: 40px !important;
        /* Overriding the 220px inline !important rule */
    }
}

/* Make Who We Are (About) paragraphs proper black */
.about-section p,
.about-section-two p {
    color: #000000 !important;
}

/* ========================================================================== */
/* GMAIL WRAPPING RESOLUTION (NON-DESTRUCTIVE) */
/* ========================================================================== */

/* Only target email links to prevent wrapping, without touching layout containers */
#block-15 a[href^="mailto:"],
.footer-info a[href^="mailto:"] {
    white-space: nowrap !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    display: inline !important;
    /* Stick to natural text flow */
}

/* Give the Contact column a little extra room on Desktop (1200px+) */
@media (min-width: 1200px) {
    .footer-wrapper.four .widget-area .row .col-xl-auto:last-child {
        margin-left: -50px !important;
        /* Move slightly left to gain space from right edge */
        min-width: 320px !important;
    }
}

/* Mobile: Optimization for long email fit */
@media (max-width: 767px) {
    #block-15 .footer-info a {
        font-size: clamp(13px, 4vw, 15px) !important;
    }

    #block-15 .footer-info {
        padding-left: 50px !important;
        /* Reverting to theme standard to fix alignment */
    }
}

/* ========================================================================== */
/* CAREERS PAGE STYLING */
/* ========================================================================== */

.careers-section {
    padding-top: 80px;
    padding-bottom: 80px;
    background-color: #ffffff;
    width: 100%;
}

.careers-hero {
    text-align: center;
    margin-bottom: 50px;
}

.careers-tag {
    display: inline-block;
    background-color: #F29A00;
    color: #ffffff;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 25px;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 4px 15px rgba(242, 154, 0, 0.3);
    transition: all 0.3s ease;
    cursor: default;
}

.careers-tag:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 8px 25px rgba(242, 154, 0, 0.45);
    background-color: #ffaa00;
}

.careers-hero h2 {
    font-size: 52px;
    font-weight: 800;
    color: #1A1000;
    margin-bottom: 20px;
    line-height: 1.2;
}

.careers-hero p {
    font-size: 20px;
    color: #333333;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.careers-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.section-icon {
    width: 50px;
    height: 50px;
    background-color: #F4A821;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #ffffff;
}

.section-icon svg {
    width: 28px;
    height: 28px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: #2c2c2c;
    margin: 0;
}

.welcome-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.welcome-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(244, 168, 33, 0.1);
    transition: transform 0.3s ease;
}

.welcome-card:hover {
    transform: translateY(-3px);
    border-color: #F4A821;
}

.welcome-bullet {
    width: 8px;
    height: 8px;
    background-color: #F4A821;
    border-radius: 50%;
    flex-shrink: 0;
}

.offer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px 20px;
}

.offer-item {
    display: flex;
    gap: 20px;
}

.offer-icon {
    width: 50px;
    height: 50px;
    background-color: #ffffff;
    border: 2px solid #F4A821;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #F4A821;
}

.offer-title {
    font-size: 20px;
    font-weight: 700;
    color: #F4A821;
    margin-bottom: 8px;
}

/* Career Application Form Section */
.careers-cta-banner {
    padding: 100px 20px;
    background-color: #F4A821;
    text-align: center;
    border-radius: 60px 60px 0 0;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

.careers-cta-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
}

.cta-banner-headline {
    font-size: 48px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 15px;
}

.cta-banner-text {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.careers-form-container {
    max-width: 900px;
    margin: 0 auto;
    background: #ffffff;
    padding: 50px;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.careers-form .form-group {
    margin-bottom: 25px;
}

.careers-form .form-control {
    background-color: #f8f9fa;
    border: 2px solid #eee;
    border-radius: 12px;
    padding: 15px 20px;
    height: auto;
    transition: all 0.3s ease;
    font-size: 16px;
}

.careers-form .form-control:focus {
    border-color: #F4A821;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(244, 168, 33, 0.1);
}

.careers-form select.form-control {
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23F4A821' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 16px;
    cursor: pointer;
}

.careers-form .vs-btn {
    padding: 18px 45px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 12px;
    margin-top: 10px;
    width: auto !important;
    min-width: 250px;
}

@media (max-width: 991px) {
    .careers-row {
        grid-template-columns: 1fr;
    }

    .careers-form-container {
        padding: 30px 20px;
    }

    .cta-banner-headline {
        font-size: 36px;
    }
}

@media (max-width: 767px) {
    .careers-hero h2 {
        font-size: 36px;
    }

    .welcome-grid,
    .offer-grid {
        grid-template-columns: 1fr;
    }
}

/* HERO CTA BUTTON RESPONSIBILITY FIX */
.hero-cta-btn {
    background: #F29A00;
    color: #ffffff !important;
    padding: 18px 45px;
    font-size: 22px;
    border-radius: 100px;
    box-shadow: 0 10px 20px rgba(242, 154, 0, 0.3);
    display: inline-block;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hero-cta-btn:hover {
    background: #E69600;
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(242, 154, 0, 0.4);
}

@media (max-width: 991px) {
    .hero-cta-btn {
        padding: 15px 35px;
        font-size: 18px;
    }
}

@media (max-width: 767px) {
    .hero-cta-btn {
        padding: 12px 25px;
        font-size: 16px;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }

    .hero-btns {
        text-align: center;
        width: 100%;
        padding: 0 15px;
    }
}

/* Schedule Visit Page Hero Image Desktop Fix */
@media (min-width: 992px) {
    .page-template-page-schedule-visit-apply-now-php .breadcumb-wrapper {
        background-size: 100% 100% !important;
        background-position: center top !important;
        background-repeat: no-repeat !important;
        min-height: 90vh;
    }
}

/* Remove Product Prices on Brain Lab Home Program Page */
.page-id-4703 .price-tag,
.page-id-4703 .price,
.page-id-4703 .amount,
.page-id-4703 .product-price,
.page-id-4703 .woocommerce-Price-amount,
.page-id-4703 .elementor-widget-woocommerce-product-price {
    display: none !important;
}

/* Admission Page Hero Image Desktop Adjustments */
@media (min-width: 992px) {
    .page-id-4455 #breadcumbwrap {
        background-position: center 50% !important;
    }
}

/* -------------------------------------------------------------------------- */
/* Mobile Responsiveness Fixes for 'Who We Are' section on About Page        */
/* -------------------------------------------------------------------------- */
@media (max-width: 767px) {

    /* Main container and vertical stacking fix */
    .about-section .img-box-2 {
        height: auto !important;
        width: 100% !important;
        margin-bottom: 30px !important;
        border: none !important;
        /* Remove the dashed circle from parent theme */
    }

    /* Maintain elliptical shape on mobile */
    .about-section .img-box-2 img {
        border-radius: 50% !important;
        width: 100% !important;
        height: auto !important;
        border: none !important;
        object-fit: contain !important;
    }

    /* Reduce and center titles */
    .about-section .sec-title.big-title {
        font-size: 26px !important;
        /* Original: 48px */
        line-height: 1.2 !important;
        text-align: center !important;
        margin-bottom: 15px !important;
    }

    .about-section .sub-title {
        font-size: 18px !important;
        /* Original: 26px */
        text-align: center !important;
        display: block !important;
        margin-bottom: 10px !important;
        margin-top: 20px !important;
    }

    /* General mobile text alignment and padding */
    .about-section .text-center,
    .about-section .text-lg-start {
        text-align: center !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .about-section .sec-desc,
    .about-section p {
        text-align: left !important;
        font-size: 14px !important;
        line-height: 1.5 !important;
        margin-bottom: 20px !important;
    }

    /* Centered call-to-action button */
    .about-section .vs-btn {
        display: inline-block !important;
        width: 100% !important;
        max-width: 250px !important;
        margin: 0 auto 30px !important;
        padding: 12px 20px !important;
    }

    /* Extra spacing for the container */
    .about-section .container {
        padding-top: 10px !important;
        padding-bottom: 30px !important;
    }
}

/* -------------------------------------------------------------------------- */
/* Programs Page — 4-Image Hero Collage                                       */
/* -------------------------------------------------------------------------- */
.programs-collage-banner {
    position: relative !important;
    overflow: visible;
    /* Allow container-wrapped images to shift up/out */
    min-height: 400px;
}

/* Override parent theme's img max-width which can interfere with grid layout */
.programs-collage-grid .programs-collage-item {
    max-width: none !important;
    max-height: none !important;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Yellow Overlay System Support */
[data-overlay="yellow"]::before {
    background-color: #F4A821 !important;
    /* Brand yellow */
}

/* The 2x2 collage grid sits behind all content */
.programs-collage-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    z-index: 0;
}

.programs-collage-item {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    /* Show the top/subject area of each photo */
    display: block;
    min-height: 0;
}

/* Dark overlay on top of the collage so text stays readable */
.programs-collage-banner::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(244, 230, 0, 0.7) !important;
    /* Brighter, more obvious yellow overlay */
    z-index: 10 !important;
    /* Ensure it stays above the collage but below the text */
    pointer-events: none !important;
    display: block !important;
}

/* Container for each collage image to allow independent animation/shifting */
.programs-collage-item-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    /* Move images slightly down as requested */
    transform: translateY(10px);
    transition: none;
    /* Remove hover transition as requested */
}

/* Ensure no hover lift occurs */
.programs-collage-item-wrap:hover {
    transform: translateY(10px);
}

/* Compensate for the downward shift */
.programs-collage-item-wrap .programs-collage-item {
    height: calc(100% + 10px);
    object-position: center bottom;
}

/* Push breadcrumb text content above the overlay */
.programs-collage-banner .container,
.programs-collage-banner #breadcumbwrap>.container {
    position: relative;
    z-index: 2;
}

/* Title & breadcrumb text ensure white on dark collage */
.programs-collage-banner .breadcumb-title,
.programs-collage-banner .breadcumb-menu li,
.programs-collage-banner .breadcumb-menu li a,
.programs-collage-banner .breadcumb-menu li::before {
    color: #ffffff !important;
}

/* ---- Mobile: stack collage 2x2 but shrink to avoid excessive height ---- */
@media (max-width: 767px) {
    .programs-collage-grid {
        grid-template-columns: 1fr 1fr;
        /* Keep 2 columns on mobile */
    }
}

/* ===== Curriculum Page Hero: Natural Image Width (no stretching) ===== */
.curriculum-hero-banner {
    background-size: auto 300% !important;
    /* image shows at natural width, not stretched */
    background-repeat: no-repeat !important;
    background-position: center center !important;
}

*=====Curriculum Page Hero: Natural Image Width (no stretching)=====*/ .curriculum-hero-banner {
    background-size: auto 300% !important;
    /* image shows at natural width, not stretched */
    background-repeat: no-repeat !important;
    background-position: center center !important;
}