/*
Theme Name: Hello Elementor Child - KidCare
Theme URI: https://test.kisangawomenug.org/
Description: Pixel-perfect replica of KidCare with Flutterwave Donations integration
Author: Antigravity
Template: hello-elementor
Version: 1.0.0
Text Domain: hello-elementor-child
*/

/* 1. Global Variables & Typography */
:root,
body,
.elementor-kit-6,
.elementor-kit-8 {
    --e-global-color-primary: #FF5E7E !important;
    --e-global-color-secondary: #12265A !important;
    --e-global-color-text: #7A7A7A !important;
    --e-global-color-accent: #FE4B7B !important;
    --e-global-color-4bc0955: #FFB218 !important;
    --e-global-color-5edbea3: #12265A !important;
    --e-global-typography-primary-font-family: 'Nunito', sans-serif !important;
    --e-global-typography-secondary-font-family: 'Nunito', sans-serif !important;
    --e-global-typography-text-font-family: 'Nunito', sans-serif !important;
    --e-global-typography-accent-font-family: 'Nunito', sans-serif !important;
    font-family: 'Nunito', sans-serif !important;
}

body {
    margin: 0;
    padding: 0;
    color: #626472;
    background-color: #ffffff;
    font-family: 'Nunito', sans-serif !important;
    -webkit-font-smoothing: antialiased;
}

/* 2. Desktop Dropdowns & Navigation */
.elementor-nav-menu--layout-horizontal .menu-item-has-children {
    position: relative;
}
.elementor-nav-menu--layout-horizontal .menu-item-has-children > .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-radius: 12px;
    padding: 10px 0;
    list-style: none;
    margin: 0;
}
.elementor-nav-menu--layout-horizontal .menu-item-has-children:hover > .sub-menu,
.elementor-nav-menu--layout-horizontal .menu-item-has-children:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.elementor-nav-menu--layout-horizontal .sub-menu li {
    display: block;
    margin: 0;
    padding: 0;
}
.elementor-nav-menu--layout-horizontal .sub-menu li a {
    display: block;
    padding: 10px 24px;
    font-size: 15px;
    font-weight: 700;
    color: #626472;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.elementor-nav-menu--layout-horizontal .sub-menu li a:hover {
    background-color: #FE4B7B;
    color: #ffffff;
}

/* Sticky Header Effect */
.elementor-sticky--effects {
    box-shadow: 0 10px 25px rgba(0,0,0,0.06) !important;
    background: #ffffff !important;
    transition: all 0.3s ease;
}

/* 3. Mobile Navigation */
@media (max-width: 1024px) {
    .elementor-nav-menu--main {
        display: none !important;
    }
    .elementor-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        padding: 10px;
        font-size: 24px;
        color: #12265A;
    }
    .elementor-menu-toggle .elementor-menu-toggle__icon--close {
        display: none;
    }
    .elementor-menu-toggle.elementor-active .elementor-menu-toggle__icon--open {
        display: none;
    }
    .elementor-menu-toggle.elementor-active .elementor-menu-toggle__icon--close {
        display: inline-block;
    }
    nav.elementor-nav-menu--dropdown {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #ffffff;
        box-shadow: 0 15px 30px rgba(0,0,0,0.1);
        z-index: 99999;
        display: none;
        padding: 15px 0;
    }
    nav.elementor-nav-menu--dropdown ul.elementor-nav-menu {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    nav.elementor-nav-menu--dropdown ul.elementor-nav-menu > li > a {
        display: block;
        padding: 12px 25px;
        font-size: 16px;
        font-weight: 700;
        color: #12265A;
        border-bottom: 1px solid #f1f3f7;
        text-decoration: none;
    }
    nav.elementor-nav-menu--dropdown ul.elementor-nav-menu > li > a:hover {
        color: #FE4B7B;
        background: #fbfcfe;
    }
    nav.elementor-nav-menu--dropdown .sub-menu {
        display: none;
        background: #f8fafc;
        padding: 5px 0 5px 20px;
        list-style: none;
    }
    nav.elementor-nav-menu--dropdown .sub-menu li a {
        display: block;
        padding: 8px 20px;
        font-size: 14px;
        color: #626472;
        text-decoration: none;
    }
}
@media (min-width: 1025px) {
    .elementor-menu-toggle {
        display: none !important;
    }
    nav.elementor-nav-menu--dropdown {
        display: none !important;
    }
    .elementor-nav-menu--main {
        display: block !important;
    }
}

/* 4. Footer Styling & Scroll Effects */
.elementor-1909 .elementor-element.elementor-element-948bcb7 {
    background-color: #E3F7FC !important;
    background-image: url("/wp-content/uploads/2023/09/footer_bg.png") !important;
    background-position: bottom center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    position: relative;
    overflow: hidden;
    padding-top: 120px;
    transition: background-position 0.1s ease-out;
}

.elementor-1909 .elementor-element.elementor-element-52720c9 {
    position: relative;
    z-index: 2;
    will-change: transform;
}
.elementor-1909 .elementor-element.elementor-element-52720c9 img {
    width: 300px;
    max-width: 100%;
    height: auto;
    display: inline-block;
}

/* 5. Motion FX / Parallax Elements */
[data-settings*="motion_fx_motion_fx_scrolling"] {
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

/* 6. Blog Page Loop, Cards & Hover Effects */
.elementor-1739.e-loop-item {
    margin-bottom: 45px;
    background: #ffffff;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.elementor-1739.e-loop-item:hover {
    transform: translateY(-6px);
}
.elementor-1739 .elementor-element.elementor-element-f905400 {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}
.elementor-1739 .elementor-element.elementor-element-59d47a4 img {
    transition: transform 0.5s ease;
}
.elementor-1739.e-loop-item:hover .elementor-element.elementor-element-59d47a4 img {
    transform: scale(1.04);
}

/* Date badge on Blog Cards */
.elementor-1739 .elementor-element.elementor-element-1e4f0d5 {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 2;
    width: 70px;
    height: 82px;
    background-color: #12265A !important;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px 5px;
    box-shadow: 0 6px 15px rgba(18, 38, 90, 0.25);
}
.elementor-1739 .elementor-element.elementor-element-25f855e .elementor-icon-list-text {
    font-family: 'Nunito', sans-serif !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    color: #FE4B7B !important;
}
.elementor-1739 .elementor-element.elementor-element-8d92448 .elementor-icon-list-text {
    font-family: 'Nunito', sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    color: #FE4B7B !important;
    text-transform: uppercase;
    margin-top: 4px;
}

/* Blog Title Hover */
.elementor-1739 .elementor-element.elementor-element-40b73c3 .elementor-heading-title a {
    color: #12265A;
    text-decoration: none;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.35;
    transition: color 0.3s ease;
}
.elementor-1739 .elementor-element.elementor-element-40b73c3 .elementor-heading-title a:hover {
    color: #FE4B7B !important;
}

/* Read More Button with animated arrow */
.elementor-1739 .elementor-element.elementor-element-6ceb83d .elementor-button {
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: #12265A;
    background: transparent;
    padding: 0;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: color 0.3s ease;
}
.elementor-1739 .elementor-element.elementor-element-6ceb83d .elementor-button:hover {
    color: #FE4B7B !important;
}
.elementor-1739 .elementor-element.elementor-element-6ceb83d .elementor-button-icon {
    display: inline-flex;
    margin-left: 8px;
    transition: transform 0.3s ease, margin-left 0.3s ease;
}
.elementor-1739 .elementor-element.elementor-element-6ceb83d:hover .elementor-button-icon {
    transform: translateX(6px);
}

/* Blog Meta */
.elementor-post-info {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    padding: 0;
    margin: 15px 0;
    list-style: none;
}
.elementor-post-info li {
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    color: #7A7A7A;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.elementor-post-info li a {
    color: #7A7A7A;
    text-decoration: none;
    transition: color 0.2s ease;
}
.elementor-post-info li a:hover {
    color: #FE4B7B;
}
.elementor-post-info .elementor-icon-list-icon i {
    color: #FE4B7B;
}

/* Pagination */
.elementor-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
    font-family: 'Nunito', sans-serif;
}
.elementor-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f4f6fa;
    color: #12265A;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
}
.elementor-pagination .page-numbers.current,
.elementor-pagination .page-numbers:hover {
    background: #FE4B7B;
    color: #ffffff !important;
}
.elementor-pagination .prev,
.elementor-pagination .next {
    width: auto;
    padding: 0 18px;
    border-radius: 22px;
}

/* Sidebar Recent Posts & Sitemap Categories */
.elementor-1733 .elementor-element.elementor-element-aaa1ec5 .elementor-post__title a {
    color: #12265A;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}
.elementor-1733 .elementor-element.elementor-element-aaa1ec5 .elementor-post__title a:hover {
    color: #FE4B7B !important;
}
.elementor-1733 .elementor-element.elementor-element-2ebac1e .elementor-sitemap-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.elementor-1733 .elementor-element.elementor-element-2ebac1e .elementor-sitemap-item {
    margin-bottom: 10px;
}
.elementor-1733 .elementor-element.elementor-element-2ebac1e .elementor-sitemap-item a {
    color: #8486AB;
    text-decoration: none;
    font-family: 'Nunito', sans-serif;
    font-size: 15px;
    font-weight: 600;
    transition: color 0.3s ease, padding-left 0.3s ease;
    display: inline-block;
}
.elementor-1733 .elementor-element.elementor-element-2ebac1e .elementor-sitemap-item a:hover {
    color: #FE4B7B !important;
    padding-left: 6px;
}

/* 7. Hover Effects on Other Pages (Home, About, Programs, Teachers) */
.elementor-10 .elementor-element.elementor-element-3791e53,
.elementor-10 .elementor-element.elementor-element-e9c60fa,
.elementor-10 .elementor-element.elementor-element-6819fc5,
.elementor-447 .elementor-element.elementor-element-31c3fc6,
.elementor-1438 .elementor-element.elementor-element-c63e264 {
    transition: all 0.35s ease;
}
.elementor-10 .elementor-element.elementor-element-3791e53:hover,
.elementor-10 .elementor-element.elementor-element-e9c60fa:hover,
.elementor-10 .elementor-element.elementor-element-6819fc5:hover,
.elementor-447 .elementor-element.elementor-element-31c3fc6:hover,
.elementor-1438 .elementor-element.elementor-element-c63e264:hover {
    transform: translateY(-12px);
    box-shadow: 0 15px 35px rgba(254, 75, 123, 0.12);
}

/* Programs details hover */
.elementor-447 .elementor-element.elementor-element-42e0ee4 a:hover {
    text-decoration: underline;
    color: #45b3df;
}
.elementor-447 .elementor-element.elementor-element-e459a58 a:hover {
    color: #FE4B7B;
}

/* About page arrow button animation */
.elementor-614 .elementor-element.elementor-element-e6e4ed1 .elementor-button-icon {
    transition: transform 0.3s ease;
}
.elementor-614 .elementor-element.elementor-element-e6e4ed1:hover .elementor-button-icon {
    transform: translateX(6px);
}

/* Events hover */
.elementor-919 .elementor-element.elementor-element-9c9b1c8 a:hover .elementor-icon-list-text {
    color: #f16a90 !important;
}

/* Gallery image overlay hover effect */
.elementor-10 .elementor-element.elementor-element-1f6b0fc,
.elementor-10 .elementor-element.elementor-element-febe5df,
.elementor-10 .elementor-element.elementor-element-7af375c,
.elementor-10 .elementor-element.elementor-element-8bce8c4,
.elementor-10 .elementor-element.elementor-element-9a6b64f {
    position: relative;
    overflow: hidden;
}
.elementor-10 .elementor-element.elementor-element-1f6b0fc:after,
.elementor-10 .elementor-element.elementor-element-febe5df:after,
.elementor-10 .elementor-element.elementor-element-7af375c:after,
.elementor-10 .elementor-element.elementor-element-8bce8c4:after,
.elementor-10 .elementor-element.elementor-element-9a6b64f:after {
    position: absolute;
    content: '';
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    transition: background-color 0.35s ease;
    background-color: transparent;
    pointer-events: none;
}
.elementor-10 .elementor-element.elementor-element-1f6b0fc:hover:after,
.elementor-10 .elementor-element.elementor-element-febe5df:hover:after,
.elementor-10 .elementor-element.elementor-element-7af375c:hover:after,
.elementor-10 .elementor-element.elementor-element-8bce8c4:hover:after,
.elementor-10 .elementor-element.elementor-element-9a6b64f:hover:after {
    background-color: rgba(254, 75, 123, 0.7);
}
