/*
 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.0
 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;
    }

    /* Ensure logo doesn't take too much space */
    .header-logo img {
        max-width: 180px;
    }

    /* 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;
    }

    /* Adjust logo size */
    .header-logo img {
        max-width: 130px !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 */
.breadcumb-wrapper.about-header-wrapper.mothers-club-banner .breadcumb-content {
    padding-top: 250px !important;
    display: block !important;
    width: 100% !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 8px !important;
        font-size: 12px !important;
        min-width: 90px !important;
        max-width: 140px !important;
        width: auto !important;
        height: 32px !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: 6px 10px !important;
        font-size: 13px !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: 5px;
        height: 32px !important;
    }

    /* Search Button - Hidden */
    .vs-header .searchBoxToggler {
        display: none !important;
    }

    /* Fix Logo Layout on mobile and reduce height */
    .vs-header .header-logo {
        padding-right: 15px !important;
        padding-top: 5px !important;
        padding-bottom: 5px !important;
    }

    .vs-header .header-logo img {
        max-width: 100px !important;
        height: auto !important;
    }

    /* Prevent horizontal overflow */
    .header-menu-area {
        overflow: hidden !important;
    }
}

/* Mobile: Shift hero section up 20px to reduce gap below header */
@media (max-width: 991px) {

    .vs-hero-wrapper,
    .hero-slider1 {
        margin-top: -30px;
    }

    /* 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 {
    background-color: #FFF9E6;
    /* Soft Creamy Yellow */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Floating Bubbles Background Effect */
.preloader::before,
.preloader::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    z-index: -1;
    animation: floatingBubbles 8s ease-in-out infinite;
}

.preloader::before {
    width: 300px;
    height: 300px;
    background: rgba(244, 168, 33, 0.2);
    /* Theme Yellow */
    top: -50px;
    left: -50px;
}

.preloader::after {
    width: 250px;
    height: 250px;
    background: rgba(37, 211, 102, 0.15);
    /* WA Green */
    bottom: -50px;
    right: -50px;
    animation-delay: -4s;
}

.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-width: 220px !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 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 */
    object-fit: cover !important;
    /* 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 {
    background-color: #F7EF9F !important;
    /* Soft Base Color */
    background-image:
        radial-gradient(#ffffff 8%, transparent 9%),
        radial-gradient(#ffffff 8%, transparent 9%);
    background-size: 100px 100px;
    background-position: 0 0, 50px 50px;
    position: relative;
    transition: background-position 0.6s ease-out;
    border-bottom: 4px solid #F7EF9F;
    /* Clean solid border matching background */
}

/* 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 */
.header-logo img {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
}

/* Ensure sticky header also keeps the pattern */
.sticky-active .header-menu-area {
    background-color: #F7EF9F !important;
}

/* Mobile Adjustments */
@media (max-width: 991px) {

    .vs-header,
    .header-menu-area {
        background-size: 60px 60px;
        background-position: 0 0, 30px 30px;
        border-bottom-width: 3px;
    }
}

/* ===== 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 on Selected Menu Items - Specificity Override */
.vs-header .header-menu-area .main-menu ul>li.current-menu-item>a,
.vs-header .header-menu-area .main-menu ul>li.current_page_item>a,
.vs-header .header-menu-area .main-menu ul>li.current-menu-parent>a {
    color: #ffffff !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;
    }
}

/* 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;
}