/*
Theme Name: Divi Child Theme
Version: 1.0
Description: Divi Child Theme by Van Alva
Author: Juan Carlos Vannini
Template: Divi
Author URL: https://vanalva.io
*/

/*-----------------------------------
  Theme Customizations
-------------------------------------*/

/*** Color Variables ***/

:root {
    --et-global-color-base: #f9e4d9; /* Base BG color */
    --et-global-color-primary: #db4e3b; /* Primary color */
    --et-global-color-secondary: #7880a9; /* Secondary color */
    --et-global-color-tertiary: #fc776a; /* Tertiary color */
    --et-global-color-global: #0d3333; /* JY Global color */
    --et-global-color-light-grey: #323335; /* JY Light Grey */
    --et-global-color-dark-grey: #1a1a1a; /* JY Dark Grey */
}

/* Global Styles */

/* Body Overflow */
html, body {
    overflow-x: hidden;
}

/* Invert Column Mobile */
.invert-columns-mobile {
    display: flex;
    flex-direction: row;
}

@media (max-width: 980px) {
    .invert-columns-mobile {
        flex-direction: column-reverse; /* Invert the order of columns */
    }
}

/* Center Column */
.center-column {
    display: flex;
    height: 100%; /* Ensure the column takes full height of its container */
    margin-top: auto !important;
    margin-bottom: auto !important;
}

/* Ensure it works on mobile as well */
@media (max-width: 768px) {
    .center-column {
        display: flex;
        height: 100%;
        margin-top: auto !important;
        margin-bottom: auto !important;
    }
}

/* Show Mobile Empty BG Images */

@media (max-width: 980px) {
    .et_pb_column.et_pb_column_empty {
        display: flex !important;
    }
}

/* Full Height Image Column */
.pa-full-height-image-column {
    height: 100% !important;
}
.pa-full-height-image-column .et_pb_image_wrap {
    height: 100% !important;
}
.pa-full-height-image-column img {
    object-fit: cover !important;
    height: 100% !important;
}

/* Flexbox for Columns */
.et_pb_column {
    display: flex;
    flex-direction: column;
}

/* Full Witdh Button */
.full-width-button {
  width: 100% !important;
  text-align: center !important; 
}

/* Slider Styles */

@media (max-width: 750px) {
.et_pb_slide_image {
    display: block !important;
    margin-bottom: 25px !important;
    margin-top: 50px !important;
}
}

.et_pb_bg_layout_dark .et_pb_slide_description {
    text-shadow: none;
    font-weight: bold !important;
}

@media (max-width: 750px) {
    .et-pb-arrow-prev {
        top: 5% !important;
        left: 70%!important;
    }

}

@media (max-width: 750px) {
    .et-pb-arrow-next {
        top: 5% !important;
        right: 5% !important;
    }

}

.et-pb-arrow-prev {
    top: 5% !important;
}
.et-pb-arrow-next {
    top: 5% !important;
}

@media (max-width: 750px) {
.et-pb-controllers {
    left: 80% !important;
    width: 10% !important;
}
}

/* Change Mobile Columns */

@media all and (max-width: 767px) {
    /* 2 Columns Mobile */
    html .et-db .two-col-mob .et_pb_column {
        width: 47.25% !important;
    }
    html .et-db .two-col-mob .et_pb_column:nth-last-child(-n+2) {
        margin-bottom: 0;
    }
    html .et-db .two-col-mob .et_pb_column:not(:nth-child(2n)) {
        margin-right: 5.5% !important;
    }

    /* 3 Columns Mobile */
    html .et-db .three-col-mob .et_pb_column {
        width: 29.6667% !important;
    }
    html .et-db .three-col-mob .et_pb_column:nth-last-child(-n+3) {
        margin-bottom: 0;
    }
    html .et-db .three-col-mob .et_pb_column:not(:nth-child(3n)) {
        margin-right: 5.5% !important;
    }

    /* 4 Columns Mobile */
    html .et-db .four-col-mob .et_pb_column {
        width: 20.875% !important;
    }
    html .et-db .four-col-mob .et_pb_column:nth-last-child(-n+4) {
        margin-bottom: 0;
    }
    html .et-db .four-col-mob .et_pb_column:not(:nth-child(4n)) {
        margin-right: 5.5% !important;
    }

    /* 5 Columns Mobile */
    html .et-db .five-col-mob .et_pb_column {
        width: 15.6% !important;
    }
    html .et-db .five-col-mob .et_pb_column:nth-last-child(-n+5) {
        margin-bottom: 0;
    }
    html .et-db .five-col-mob .et_pb_column:not(:nth-child(5n)) {
        margin-right: 5.5% !important;
    }

    /* 6 Columns Mobile */
    html .et-db .six-col-mob .et_pb_column {
        width: 12.083% !important;
    }
    html .et-db .six-col-mob .et_pb_column:nth-last-child(-n+6) {
        margin-bottom: 0;
    }
    html .et-db .six-col-mob .et_pb_column:not(:nth-child(6n)) {
        margin-right: 5.5% !important;
    }
}

/* Change Tablet Columns */

@media all and (min-width: 768px) and (max-width: 980px) {
    /* 1 Column Tablet */
    html .et-db .one-col-tab .et_pb_column {
        margin-right: 0 !important;
        width: 100% !important;
    }
    html .et-db .one-col-tab .et_pb_column:not(:last-child) {
        margin-bottom: 30px !important;
    }

    /* 2 Columns Tablet */
    html .et-db .two-col-tab .et_pb_column {
        width: 47.25% !important;
    }
    .two-col-tab .et_pb_column:nth-last-child(-n+2) {
        margin-bottom: 0;
    }
    html .et-db .two-col-tab .et_pb_column:not(:nth-child(2n)) {
        margin-right: 5.5% !important;
    }

    /* 3 Columns Tablet */
    html .et-db .three-col-tab .et_pb_column {
        width: 29.6667% !important;
    }
    html .et-db .three-col-tab .et_pb_column:nth-last-child(-n+3) {
        margin-bottom: 0;
    }
    html .et-db .three-col-tab .et_pb_column:not(:nth-child(3n)) {
        margin-right: 5.5% !important;
    }

    /* 4 Columns Tablet */
    html .et-db .four-col-tab .et_pb_column {
        width: 20.875% !important;
    }
    html .et-db .four-col-tab .et_pb_column:nth-last-child(-n+4) {
        margin-bottom: 0;
    }
    html .et-db .four-col-tab .et_pb_column:not(:nth-child(4n)) {
        margin-right: 5.5% !important;
    }

    /* 5 Columns Tablet */
    html .et-db .five-col-tab .et_pb_column {
        width: 15.6% !important;
    }
    .five-col-mob .et_pb_column:nth-last-child(-n+5) {
        margin-bottom: 0;
    }
    html .et-db .five-col-tab .et_pb_column:not(:nth-child(5n)) {
        margin-right: 5.5% !important;
    }

    /* 6 Columns Tablet */
    html .et-db .six-col-tab .et_pb_column {
        width: 12.083% !important;
    }
    html .et-db .six-col-tab .et_pb_column:nth-last-child(-n+6) {
        margin-bottom: 0;
    }
    html .et-db .six-col-tab .et_pb_column:not(:nth-child(6n)) {
        margin-right: 5.5% !important;
    }
}

/* Font Styling */

a {
    color: var(--et-global-color-primary) !important;
}

h1 {
    font-size: 5rem !important;
    text-transform: uppercase;
}
h2 {
    font-size: 4.5rem !important;
    font-weight: 500;
    line-height: 1.3;
    text-transform: none;
    letter-spacing: 0;
}
h3 {
    font-size: 3rem !important;
    font-weight: 300;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
h4 {
    font-size: 2.8125rem !important;
    font-weight: 500 !important;
    line-height: 1.4;
    text-transform: none;
    letter-spacing: 3px !important;
}
h5 {
    font-size: 1.125rem !important;
    font-weight: 500;
    line-height: auto !important;
    text-transform: none;
    letter-spacing: 0.3em !important;
    padding-bottom: 0px !important;
}
h6 {
    font-size: 1.25rem !important;
    font-weight: 400;
    line-height: 1.7;
    text-transform: uppercase;
    text-decoration: underline;
}
p {
    font-size: 1.25rem !important;
    line-height: 1.6;
    letter-spacing: 0.01em;
}

/* Responsive Font Styles */

/* Extra Large Desktops */
@media (max-width: 1600px) {
    h1 {
        font-size: 4.5rem !important;
    }
    h2 {
        font-size: 4rem !important;
    }
    h3 {
        font-size: 2.75rem !important;
    }
    h4 {
        font-size: 2.625rem !important;
    }
    h5 {
        font-size: 0.9375rem !important;
    }

    h6 {
        font-size: 1.125rem !important;
    }
    p {
        font-size: 1.1875rem !important;
    }
}

/* Large Desktops */
@media (max-width: 1440px) {
    h1 {
        font-size: 4rem !important;
    }
    h2 {
        font-size: 3.625rem !important;
    }
    h3 {
        font-size: 2.5rem !important;
    }
    h4 {
        font-size: 2.375rem !important;
    }
    p {
        font-size: 1.125rem !important;
    }
}

/* Desktops */
@media (max-width: 1200px) {
    h1 {
        font-size: 3.5rem !important;
    }
    h2 {
        font-size: 3.125rem !important;
    }
    h3 {
        font-size: 2.25rem !important;
    }
    h4 {
        font-size: 2.125rem !important;
    }
    h5 {
        font-size: 0.875rem !important;
    }
    h6 {
        font-size: 1rem !important;
    }
    p {
        font-size: 1.125rem !important;
    }
}

/* Small Desktops */
@media (max-width: 1024px) {
    h1 {
        font-size: 3rem !important;
    }
    h2 {
        font-size: 2.625rem !important;
    }
    h3 {
        font-size: 2rem !important;
    }
    h4 {
        font-size: 1.875rem !important;
    }
    p {
        font-size: 1.125rem !important;
    }
}

/* Tablets */
@media (max-width: 900px) {
    h1 {
        font-size: 2.5rem !important;
        letter-spacing: 5px !important;
    }
    h2 {
        font-size: 2.25rem !important;
    }
    h3 {
        font-size: 1.75rem !important;
    }
    h4 {
        font-size: 1.625rem !important;
    }
    h5 {
        font-size: 0.75rem !important;
    }
    h6 {
        font-size: 0.875rem !important;
    }
    p {
        font-size: 1.0625rem !important;
    }
}

/* Large Mobiles */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem !important;
        letter-spacing: 5px !important;
    }
    h2 {
        font-size: 1.75rem !important;
    }
    h3 {
        font-size: 1.5rem !important;
    }
    h4 {
        font-size: 1.375rem !important;
    }
    h5 {
        font-size: 0.625rem !important;
    }
    h6 {
        font-size: 0.75rem !important;
    }
    p {
        font-size: 1rem !important;
    }
}

/* Small Mobiles */
@media (max-width: 480px) {
    h1 {
        font-size: 1.75rem !important;
        letter-spacing: 5px !important;
    }
    h2 {
        font-size: 1.5rem !important;
    }
    h3 {
        font-size: 1.25rem !important;
    }
    h4 {
        font-size: 1.125rem !important;
    }
    h5 {
        font-size: 0.5rem !important;
    }
    h6 {
        font-size: 0.625rem !important;
    }
    p {
        font-size: 1rem !important;
    }
}

/* Extra Small Mobiles */
@media (max-width: 360px) {
    h1 {
        font-size: 1.5rem !important;
        letter-spacing: 5px !important;
    }
    h2 {
        font-size: 1.25rem !important;
    }
    h3 {
        font-size: 1rem !important;
    }
    h4 {
        font-size: 0.875rem !important;
    }
    h5 {
        font-size: 0.375rem !important;
    }
    h6 {
        font-size: 0.5rem !important;
    }
    p {
        font-size: 0.875rem !important;
    }
}

/* Custom Fields Styling */

.item_teacher {
    font-size: 1.2em;
    margin-bottom: 25px;
    font-weight: bold;
}

/* Responsive Styles for .item_teacher */
@media (max-width: 1024px) {
    .item_teacher {
        font-size: 1.1em;
        margin-bottom: 20px;
    }
}
@media (max-width: 768px) {
    .item_teacher {
        font-size: 1em;
        margin-bottom: 15px;
    }
}
@media (max-width: 480px) {
    .item_teacher {
        font-size: 0.9em;
        margin-bottom: 10px;
    }
}

.item_date {
    font-size: 1.2em;
    margin-top: 25px;
    margin-bottom: 25px;
}

/* Responsive Styles for .item_date */
@media (max-width: 1024px) {
    .item_date {
        font-size: 1.1em;
        margin-top: 20px;
        margin-bottom: 20px;
    }
}
@media (max-width: 768px) {
    .item_date {
        font-size: 1em;
        margin-top: 15px;
        margin-bottom: 15px;
    }
}
@media (max-width: 480px) {
    .item_date {
        font-size: 0.9em;
        margin-top: 10px;
        margin-bottom: 10px;
    }
}

.item_price {
    font-size: 5.5em;
    margin-top: 50px;
    margin-bottom: 50px;
}

/* Responsive Styles for .item_price */
@media (max-width: 1024px) {
    .item_price {
        font-size: 4.5em;
        margin-top: 40px;
        margin-bottom: 40px;
    }
}
@media (max-width: 768px) {
    .item_price {
        font-size: 3.5em;
        margin-top: 30px;
        margin-bottom: 30px;
    }
}
@media (max-width: 480px) {
    .item_price {
        font-size: 2.5em;
        margin-top: 20px;
        margin-bottom: 20px;
    }
}

.item_duration {
    font-size: 1.2em;
    margin-bottom: 25px;
}

/* Responsive Styles for .item_duration */
@media (max-width: 1024px) {
    .item_duration {
        font-size: 1.1em;
        margin-bottom: 20px;
    }
}
@media (max-width: 768px) {
    .item_duration {
        font-size: 1em;
        margin-bottom: 15px;
    }
}
@media (max-width: 480px) {
    .item_duration {
        font-size: 0.9em;
        margin-bottom: 10px;
    }
}

.item_location {
    font-size: 1.2em;
    margin-bottom: 25px;
}

/* Responsive Styles for .item_location */
@media (max-width: 1024px) {
    .item_location {
        font-size: 1.1em;
        margin-bottom: 20px;
    }
}
@media (max-width: 768px) {
    .item_location {
        font-size: 1em;
        margin-bottom: 15px;
    }
}
@media (max-width: 480px) {
    .item_location {
        font-size: 0.9em;
        margin-bottom: 10px;
    }
}

.item_event_location {
    font-size: 1.2em;
    margin-bottom: 25px;
}

/* Responsive Styles for .item_event_location */
@media (max-width: 1024px) {
    .item_event_location {
        font-size: 1.1em;
        margin-bottom: 20px;
    }
}
@media (max-width: 768px) {
    .item_event_location {
        font-size: 1em;
        margin-bottom: 15px;
    }
}
@media (max-width: 480px) {
    .item_event_location {
        font-size: 0.9em;
        margin-bottom: 10px;
    }
}

/* Button Styles */

/* Native READ MORE Button */
.et_pb_blog_0_tb_body .et_pb_post div.post-content a.more-link,
.et_pb_blog_1_tb_body .et_pb_post div.post-content a.more-link {
    text-transform: uppercase;
    font-size: 20px;
    display: inline-block;
    padding: 10px 15px;
    text-align: center;
    width: 100%;
    border: 3px solid currentColor;
    border-radius: 0;
    background-color: transparent;
    text-decoration: none;
    box-sizing: border-box;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin-top: 10px;
}

/* Custom BOOK NOW Loop Button */
.custom-button {
    width: 100% !important;
    padding: 10px 20px;
    border: 3px solid currentColor;
    color: currentColor;
    text-decoration: none;
    border-radius: 0; /* No border radius for sharp corners */
    text-transform: uppercase;
    font-size: 20px;
    letter-spacing: 6px;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: block;
    box-sizing: border-box; /* Ensure padding and border are included in the element's total width and height */
    margin-top: auto; /* Pushes the button to the bottom */
}

/* Post Content Container */
.post-content {
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Loop Image Container */
.et_pb_image_container {
    margin: 0px;
}

/* Hide certain custom fields */
.item_link { display: none !important; }
.item_currency { display: none !important; }
.item_notes { display: none !important; }
.item_title { display: none !important; }

/* Tab Controls Background */
ul.et_pb_tabs_controls {
    background-color: #1a1a1a00 !important;
}

/* Momo Yoga */
.momoyoga-schedule .momoyoga-section {
    background-color: var(--et-global-color-base) !important;
    border: 3px solid var(--et-global-color-secondary) !important;
    border-radius: 0;
    display: block;
    font-size: 1rem;
    margin: 0 0 15px;
    padding: 25px;
}

.momoyoga-schedule .momoyoga-day {
    color: var(--et-global-color-secondary) !important;
    display: inline;
    font-size: 2rem;
}

.momoyoga-schedule .momoyoga-section a {
    color: var(--et-global-color-secondary) !important;
    text-decoration-line: underline;
}

/* Instagram Feed */
#sb_instagram .sbi_photo img {
    border: 3px solid currentColor;
    border-radius: 0;
    padding: 1vw !important;
}

#sb_instagram .sbi_type_carousel .fa-clone {
    right: 12px;
    top: 12px;
    font-size: 24px;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0);
    color: currentColor;
}
.sbi_type_carousel svg.fa-clone, #sb_instagram .sbi_type_video .svg-inline--fa.fa-play, #sb_instagram .sbi_type_carousel .svg-inline--fa.fa-play {
    -webkit-filter: drop-shadow(0px 0px 2px rgba(0, 0, 0, .4));
    filter: none;
}

#sb_instagram #sbi_images {
    gap: 30px !important;
}

#sb_instagram #sbi_load .sbi_load_btn, a {
    border-radius: 0;
}

.sbi_follow_btn a {
    display: none !important;
}

/* Gallery Lightbox */
.cu-lightbox-off .et_pb_gallery_item a {
    pointer-events: none;
}
.cu-lightbox-off .et_overlay {
    display: none !important;
}

/* To the TOP Button */

.et_pb_scroll_top.et-pb-icon {
    width: 3vw;
    background: var(--et-global-color-primary) !important;
    text-decoration: none;
    position: fixed;
    z-index: 99999;
    bottom: 15px;
    left: 0px;
    margin: auto !important;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    cursor: pointer;
    font-size: 25px;
    color: var(--et-global-color-base) !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 750px) {
.et_pb_scroll_top.et-pb-icon {
    width: 7vw;
}
}

.et_pb_scroll_top.et-visible {
    animation: fadeInBottom 0.5s 1 cubic-bezier(0.77, 0, 0.175, 1) !important;
}

.et_pb_scroll_top.et-hidden {
    animation: fadeOutBottom 0.5s 1 cubic-bezier(0.77, 0, 0.175, 1) !important;
}

/* Mobile Menu Styles */
.et_mobile_nav_menu {
    display: none !important; /* Hidden by default */
}

/* Show mobile menu only on mobile breakpoint */
@media (max-width: 980px) {
    .et_mobile_nav_menu {
        display: block !important;
    }
    
    /* Hide default menu on mobile */
    .et_pb_menu .et_pb_menu__menu {
        display: none !important;
    }
    
    /* Hamburger Icon - Match menu text color */
    .et_pb_menu_0_tb_header .mobile_menu_bar:before,
    .et_pb_menu_1_tb_header .mobile_menu_bar:before,
    .et_pb_menu .mobile_menu_bar:before,
    .mobile_menu_bar:before {
        color: inherit !important;
        font-size: 42px !important;
        position: relative;
        z-index: 99999;
        cursor: pointer;
    }

    /* Ensure menu wrapper inherits color */
    .et_pb_menu__wrap,
    .et_mobile_nav_menu,
    .mobile_menu_bar,
    .mobile_menu_bar:before {
        color: inherit !important;
    }
}

/* Full Screen Mobile Menu */
.et_mobile_menu {
    display: flex !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: var(--et-global-color-base) !important;
    padding-top: 100px !important;
    border: none !important;
    z-index: 999998 !important;
    overflow: hidden !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

/* Close Button */
.mobile_nav.opened .mobile_menu_bar {
    position: fixed !important;
    top: 32px !important;
    right: 32px !important;
    z-index: 999999 !important;
    width: 32px !important;
    height: 32px !important;
    color: inherit !important;
}

/* Ensure close button inherits original menu color */
.mobile_nav.opened .mobile_menu_bar:before {
    content: '\4d' !important;
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    color: inherit !important;
    font-size: 32px !important;
}

/* Prevent body scroll when menu is open */
body.mobile-menu-open {
    overflow: hidden !important;
    height: 100vh !important;
    position: fixed !important;
    width: 100% !important;
}

/* Menu Open State */
.mobile_nav.opened .et_mobile_menu {
    opacity: 1;
    visibility: visible;
}

/* Menu Items */
.et_mobile_menu li {
    padding: 15px 0;
    width: 100%;
    text-align: center;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease-in-out;
}

.et_mobile_menu li a {
    color: var(--et-global-color-primary) !important;
    font-size: 24px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: none !important;
    padding: 10px 0 !important;
    opacity: 1;
    transition: all 0.3s ease;
    width: 100%;
    display: block;
}

/* Menu Open Animation */
.mobile_nav.opened .et_mobile_menu li {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}

/* Submenu Styles */
.et_mobile_menu li.menu-item-has-children > a {
    background-color: transparent !important;
}

.et_mobile_menu li ul {
    padding: 10px 0 !important;
    background-color: transparent !important;
    display: none;
}

.et_mobile_menu li li {
    padding: 5px 0 !important;
}

.et_mobile_menu li li a {
    font-size: 18px !important;
    padding: 5px 0 !important;
    opacity: 0.8;
}

/* Force show submenus when parent is clicked */
.et_mobile_menu li.visible > ul {
    display: block !important;
}

/* Ensure menu container is above other content */
.et_pb_menu_0_tb_header.et_pb_menu .et_mobile_menu, 
.et_pb_menu_0_tb_header.et_pb_menu .et_mobile_menu ul {
    background-color: var(--et-global-color-base) !important;
}

/* Add this script to your functions.php to handle the body class:
jQuery(document).ready(function($) {
    $('.mobile_menu_bar').click(function() {
        $('body').toggleClass('mobile-menu-open');
    });
});
*/





