/*
Theme Name: GPRO - Child Theme
Theme URI: https://www.ballet-academy.ch
Description: A custom child theme for Divi.
Author: Tomek Gola
Author URI: https://www.gola.pro
Template: Divi
Version: 1.0.0
*/


:root {
  --primary-background-color: 231, 236, 239; /* Platinum - Hex: #e7ecef */
  --platinum: 231, 236, 239; /* Hex: #e7ecef */
  --gold: 214,153,0;
  --body-text-color: #353535;
  --link: #7c403c;
  --link-active: #974E49;
  --link-hover: #D69900;
  --link-important: #D69900;
  --link-important-hover: #974E49;
  --gpro-btn-bg: var(--gold);
  
  --warning-bg: #fff6e5;
  --warning-text: #fff;
  --warning-accent: #fff3cd;

  --success-bg: #ecfdf5;
  --success-text: #065f46;
  --success-accent: #10b981;

  --info-bg: #eef2ff;
  --info-text: #3730a3;
  --info-accent: #6366f1;
}

/* Import parent theme styles */
@import url("../Divi/style.css");

@media all and (max-width: 980px) {
	html,
	body {
		overflow-x: hidden;
	}
	body {
		position: relative
	}
}

/* Custom CSS starts below */

a {
  color: var(--link);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--link-hover);
}

a:active {
  color: var(--link-active);
}

/* Divi sticky header blur (covers most structures) */
/* NORMAL state: put platinum on the header wrapper only */
.et-l--header {
  background-color: rgba(var(--platinum), 1) !important;
}

/* Keep inner header building blocks transparent so they don't override */
.et-l--header .et_pb_section,
.et-l--header .et_pb_row,
.et-l--header .et_pb_column,
.et-l--header .et_pb_module,
.et-l--header .et_pb_section:before,
.et-l--header .et_pb_section:after,
.et-l--header .et_pb_row:before,
.et-l--header .et_pb_row:after {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
}

/* STICKY state: glass */
.et-l--header .et_pb_section.et_pb_sticky,
.et-l--header .et_pb_row.et_pb_sticky,
.et-l--header .et_pb_sticky,
.et-l--header.et_pb_sticky {
  background-color: rgba(var(--platinum), 0.75) !important;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

/* Prevent submenu items from wrapping onto multiple lines */
.et-menu .sub-menu a,
.et_mobile_menu .sub-menu a {
  white-space: nowrap !important;
}


/* Push Divi contact message below the submit button */
.et_pb_contact_form_container{
  display:flex;
  flex-direction:column;
}

.et-pb-contact-message{
  order:99;
  margin-top:20px;
  color: inherit; /* keep success message normal */
}

/* Make ONLY validation/error text red (success stays default) */
.et-pb-contact-message .et_pb_contact_error_text,
.et-pb-contact-message .et_pb_contact_error_message,
.et-pb-contact-message ul li{
  color:#c62828;
}

/* =========================================================
   SAFE GLOBAL BUTTONS (Front-end only, excludes Divi builder)
   ========================================================= */

/* Apply ONLY on front-end pages */

  /* 1) Disable Divi hover icon only for Divi/Woo buttons */
  .et_pb_button::after,
  .et_pb_button:hover::after,
  .woocommerce a.button::after,
  .woocommerce button.button::after,
  .woocommerce input.button::after,
  .woocommerce a.button:hover::after,
  .woocommerce button.button:hover::after,
  .woocommerce input.button:hover::after,
  .single_add_to_cart_button::after,
  .single_add_to_cart_button:hover::after {
    content: none !important;
    display: none !important;
  }

  /* 2) Global look ONLY for Divi/Woo buttons (not generic <button>) */
  :root{
    --gpro-btn-bg: rgba(var(--gold), 1);
    --gpro-btn-color: #fff;
    --gpro-btn-radius: 5px;
    --gpro-btn-pad-y: 5px;
    --gpro-btn-pad-x: 28px;
    --gpro-btn-weight: 600;
  }

  .et_pb_button,
  .woocommerce a.button,
  .woocommerce button.button,
  .woocommerce input.button,
  .single_add_to_cart_button {
    background-color: var(--gpro-btn-bg) !important;
    color: var(--gpro-btn-color) !important;
    border-radius: var(--gpro-btn-radius) !important;
    padding: var(--gpro-btn-pad-y) var(--gpro-btn-pad-x) !important;
    font-weight: var(--gpro-btn-weight) !important;
    border: none !important;
    text-indent: 0 !important;
    transition: box-shadow 0.25s ease, transform 0.25s ease !important;
  }

  /* 3) Hover */
  .et_pb_button:hover,
  .woocommerce a.button:hover,
  .woocommerce button.button:hover,
  .woocommerce input.button:hover,
  .single_add_to_cart_button:hover {
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18) !important;
    transform: none !important;
  }

  /* 4) Disabled */
  .woocommerce a.button:disabled,
  .woocommerce button.button:disabled,
  .woocommerce input.button:disabled,
  .single_add_to_cart_button:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
  }

/* Inverted button: white bg, gold text */
.et_pb_button.gpro-btn-inverted,
.woocommerce a.button.gpro-btn-inverted,
.woocommerce button.button.gpro-btn-inverted {
  background-color: #fff !important;
  color: rgba(var(--gold), 1) !important;
  border: 1px solid rgba(var(--gold), 1) !important;
}

.et_pb_button.gpro-btn-inverted:hover,
.woocommerce a.button.gpro-btn-inverted:hover,
.woocommerce button.button.gpro-btn-inverted:hover {
  background-color: #fff !important;
  color: rgba(var(--gold), 1) !important;
}
/* ==============================
   GPRO – WooCommerce Notices
   ============================== */

/* Error (validation, missing fields, etc.) */
.woocommerce-error {
  background: var(--warning-bg, #fff3cd) !important;
  color: var(--warning-text, #664d03) !important;
  border-left: 4px solid var(--warning-accent, #d39e00) !important;
}

/* Success (added to cart, etc.) */
.woocommerce-message {
  background: var(--success-bg, #e6fffa);
  color: var(--success-text, #065f46);
  border-left: 4px solid var(--success-accent, #10b981);
}

/* Info (non-blocking notices) */
.woocommerce-info {
  background: var(--info-bg, #eef2ff);
  color: var(--info-text, #3730a3);
  border-left: 4px solid var(--info-accent, #6366f1);
}

/* Common spacing + radius */
.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
  border-radius: 6px;
  padding: 10px 14px;
  margin: 0 0 12px;
  box-shadow: none;
}




/* Generic fallback */
.sub-menu li a:hover {
    background-color: transparent !important;
}

.header-audience-menu .et-menu > li > a {
    padding-left: 10px;
    padding-right: 10px;
}


/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *  Uncropped images of Slider module  * * * * */
.fullimage-slider.et_pb_slider .et_pb_slide_image {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    top: auto;
    position: relative !important;
    display: block !important;
}
.fullimage-slider.et_pb_slider .et_pb_container {
    max-width: 100% !important;
    width: 100% !important;
}
.fullimage-slider.et_pb_slider .et_pb_slide_image img {
    max-height: none !important;
    width: 100% !important;
}
.fullimage-slider.et_pb_slider .et_pb_slide {
    padding: 0 !important;
}
.fullimage-slider.et_pb_slider .et_pb_slide_with_image .et_pb_slide_description {
    position: absolute !important;
    width: 100% !important;
    padding: 5% !important;
    float: none !important;
    bottom: 0 !important;
    text-align: left;
}
.fullimage-slider.et_pb_slider .et-pb-active-slide .et_pb_slide_image {
    -webkit-animation-name: fadeIn;
    -moz-animation-name: fadeIn;
    -ms-animation-name: fadeIn;
    -o-animation-name: fadeIn;
    animation-name: fadeIn;
}
/* --- Fix: prevent collapsed slide viewport --- */
.fullimage-slider.et_pb_slider .et_pb_slide {
  height: auto !important;
  min-height: 1px !important;
}

/* Ensure the slider wrapper doesn't collapse */
.fullimage-slider.et_pb_slider,
.fullimage-slider.et_pb_slider .et_pb_slides,
.fullimage-slider.et_pb_slider .et_pb_slide {
  overflow: hidden;
}

/* Make sure the image area participates in layout */
.fullimage-slider.et_pb_slider .et_pb_slide_image {
  float: none !important;
}

/* If Divi sets inline heights, we keep a sane minimum */
.fullimage-slider.et_pb_slider {
  min-height: 200px; /* safe fallback; adjust if you want */
}



/* place button modules next to each other in the same column */
.my_inline_buttons .et_pb_button_module_wrapper {
display: inline-block;
}



/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Weekly Schedule Shortcode */
/* Wrapper */
/* .weekly-schedule { } */

/* Desktop vs Mobile switching */
.weekly-schedule__desktop { display: block; }
.weekly-schedule__mobile  { display: none; }

@media (max-width: 900px) {
  .weekly-schedule__desktop { display: none; }
  .weekly-schedule__mobile  { display: block; }
}

/* Desktop table */
.weekly-schedule__table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.weekly-schedule__th,
.weekly-schedule__td {
  border: 1px solid rgba(0,0,0,0.2);
  padding: 10px;
  vertical-align: top;
}

.weekly-schedule__th--time,
.weekly-schedule__td--time {
  width: 90px;
  white-space: nowrap;
}
/* Tighter horizontal padding for weekly schedule table */
.weekly-schedule__table .weekly-schedule__th,
.weekly-schedule__table .weekly-schedule__td {
  padding-left: 6px;
  padding-right: 6px;
}

/* Remove list bullets inside weekly schedule ONLY */
.weekly-schedule ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.weekly-schedule__cell-list,
.weekly-schedule__day-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.weekly-schedule__cell-item {
  margin-bottom: 10px;
}

.weekly-schedule__course-link {
  text-decoration: underline;
}

/* Course title */
.weekly-schedule__course {
  display: block;
  font-weight: 500;
}

/* Time below course */
.weekly-schedule__time {
  display: block;
  font-size: 0.85em;
  opacity: 0.8;
}

/* Location label */
.weekly-schedule__location {
  display: block;
  font-size: 0.8em;
  opacity: 0.7;
}

/* Mobile accordion */
.weekly-schedule__day {
  border: 1px solid currentColor;
  margin-bottom: 10px;
}

.weekly-schedule__day-summary {
  cursor: pointer;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.weekly-schedule__day-body {
  padding: 12px;
}

.weekly-schedule__day-item {
  padding: 10px 0;
  border-top: 1px solid currentColor;
}

.weekly-schedule__day-item:first-child {
  border-top: 0;
}

/* Session card inside table cell */
.weekly-schedule__cell-item {
  padding: 8px 10px;
  margin-bottom: 10px;
  border: 1px solid currentColor;
  border-radius: 4px;
}

/* Remove extra space after last item */
.weekly-schedule__cell-item:last-child {
  margin-bottom: 0;
}

/* Course title inside card */
.weekly-schedule__course {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
}

/* Time inside card */
.weekly-schedule__time {
  display: block;
  font-size: 0.85em;
  opacity: 0.8;
}

/* Location inside card */
.weekly-schedule__location {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 6px;
  font-size: 0.75em;
  border: 1px solid currentColor;
  border-radius: 3px;
  opacity: 0.85;
}

.weekly-schedule__cell-item {
  background-color: rgba(var(--platinum), 0.3);
}

@media (hover: hover) {
  .weekly-schedule__cell-item:hover {
    background-color: rgba(var(--gold), 0.05);
  }
}

.weekly-schedule__filters {
  margin-bottom: 16px;
}

.weekly-schedule__filter {
  margin-bottom: 10px;
}

.weekly-schedule__filter-label {
  margin-bottom: 6px;
  font-weight: 600;
}

.weekly-schedule__filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.weekly-schedule__filter-link {
  display: inline-block;
  padding: 4px 8px;
  border: 1px solid currentColor;
  border-radius: 4px;
  text-decoration: none;
}

.weekly-schedule__filter-link.is-active {
  font-weight: 700;
  text-decoration: underline;
}

.gpro-compact-list__item {
  padding: 8px 10px;
  margin-bottom: 10px;
  border: 1px solid rgb(var(--platinum));
  border-radius: 4px;
}

/******************************************************************* WOOCOMMERCE -  Recurring class Block */

.gpro-recurring-enroll {
  margin:0 0 20px 0;
  padding:14px;
  border:1px solid rgba(0,0,0,.08);
  border-radius:12px;
}



/******************************************************* Force Divi menu to always be visible (no hamburger) and vertical */
/* ===== ALWAYS-OPEN TREE MENU: submenu UNDER parent ===== */

/* No hamburger, always show menu */
.gpro-tree-menu .mobile_nav { display: none !important; }
.gpro-tree-menu .et_pb_menu__menu { display: block !important; }

/* Top level: vertical list */
.gpro-tree-menu .et-menu {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 4px;
}

/* Each item is a normal block */
.gpro-tree-menu .et-menu > li,
.gpro-tree-menu .sub-menu > li {
  display: block !important;
  margin: 0 !important;
}

/* IMPORTANT: make "has children" items a column so submenu drops BELOW */
.gpro-tree-menu .et-menu li.menu-item-has-children {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
}

/* Submenus: always visible, NOT positioned to the side */
.gpro-tree-menu .sub-menu {
  display: block !important;
  position: static !important;   /* kills dropdown positioning */
  left: auto !important;
  top: auto !important;
  float: none !important;
  transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;

  margin: 4px 0 0 0 !important;  /* space above submenu */
  padding: 0 0 0 0 !important; /* indent */
  width: auto !important;

  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}

/* ===== gpro-vertical-mobile-menu ===== */

/* Hide hamburger on all screens */
.gpro-vertical-mobile-menu .mobile_nav { display: none !important; }
.gpro-vertical-mobile-menu .et_pb_menu__menu { display: block !important; }

/* DESKTOP: horizontal menu */
@media (min-width: 981px) {
  .gpro-vertical-mobile-menu .et-menu {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 20px;
  }

  .gpro-vertical-mobile-menu .et-menu > li {
    display: inline-block !important;
  }

  /* Submenus behave as normal dropdowns on desktop */
  .gpro-vertical-mobile-menu .sub-menu {
    display: none !important;
    position: absolute !important;
  }

  .gpro-vertical-mobile-menu .et-menu li:hover > .sub-menu {
    display: block !important;
  }
}

/* MOBILE: vertical tree menu */
@media (max-width: 980px) {
  .gpro-vertical-mobile-menu .et-menu {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 4px;
    width: 100% !important;
  }

  .gpro-vertical-mobile-menu .et-menu > li,
  .gpro-vertical-mobile-menu .sub-menu > li {
    display: block !important;
    margin: 0 !important;
  }

  .gpro-vertical-mobile-menu .et-menu li.menu-item-has-children {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  .gpro-vertical-mobile-menu .sub-menu {
    display: block !important;
    position: static !important;
    left: auto !important;
    top: auto !important;
    float: none !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    margin: 4px 0 0 0 !important;
    padding: 0 0 0 0 !important;
    width: auto !important;
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
    align-items: center !important;
    text-align: center !important;
  }

  .gpro-vertical-mobile-menu .menu-item-has-children > a::after {
    display: none !important;
  }

  .gpro-vertical-mobile-menu .et-menu a {
    padding: 4px 0 !important;
    line-height: 1.2;
    text-align: center !important;
  }

  .gpro-vertical-mobile-menu .et-menu li:hover > .sub-menu {
    display: block !important;
  }
}

.gpro-vertical-mobile-menu .et_pb_menu__menu {
  display: block !important;
  width: 100% !important;
}

.gpro-vertical-mobile-menu .et_pb_menu__menu > nav {
  width: 100% !important;
}

.gpro-vertical-mobile-menu .et-menu {
  width: 100% !important;
}
/* Optional: hide dropdown arrows */
.gpro-tree-menu .menu-item-has-children > a::after { display: none !important; }

/* Compact link spacing */
.gpro-tree-menu .et-menu a {
  padding: 4px 0 !important;
  line-height: 1.2;
}

/* Ensure hover rules can't hide submenus */
.gpro-tree-menu .et-menu li:hover > .sub-menu { display: block !important; }

/**************************************************************************** WooCommerce Cart Table */
.wc-block-cart-item__wrap a.wc-block-components-product-name {
  font-size: 18px !important;
}
.wc-block-formatted-money-amount {
    font-size: 18px !important;
}
.wc-block-components-product-metadata__description {
  font-size: 18px !important;
  font-weight: 300 !important;
}

.wc-block-cart__submit-container .wc-block-cart__submit-button {
  all: unset;
  all: revert;
}

/* Woo Blocks buttons (Cart/Checkout blocks) */
.wp-block-woocommerce-cart .wc-block-components-button,
.wp-block-woocommerce-checkout .wc-block-components-button,
.wp-block-woocommerce-cart .wc-block-cart__submit-button,
.wp-block-woocommerce-checkout .wc-block-components-checkout-place-order-button {
  background-color: var(--gpro-btn-bg) !important;
  color: var(--gpro-btn-color) !important;
  border-radius: var(--gpro-btn-radius) !important;
  padding: var(--gpro-btn-pad-y) var(--gpro-btn-pad-x) !important;
  font-weight: var(--gpro-btn-weight) !important;
  border: none !important;
  text-indent: 0 !important;
  transition: box-shadow 0.25s ease, transform 0.25s ease !important;
  text-decoration: none !important;
}

/* Hover */
.wp-block-woocommerce-cart .wc-block-components-button:hover,
.wp-block-woocommerce-checkout .wc-block-components-button:hover,
.wp-block-woocommerce-cart .wc-block-cart__submit-button:hover,
.wp-block-woocommerce-checkout .wc-block-components-checkout-place-order-button:hover {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18) !important;
  transform: none !important;
}

/* Disabled */
.wp-block-woocommerce-cart .wc-block-components-button:disabled,
.wp-block-woocommerce-checkout .wc-block-components-button:disabled,
.wp-block-woocommerce-cart .wc-block-cart__submit-button:disabled,
.wp-block-woocommerce-checkout .wc-block-components-checkout-place-order-button:disabled {
  opacity: 0.6 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
}

/* Cart & Checkout blocks – hide product description metadata */
.wc-block-components-product-metadata__description {
  display: none !important;
}


/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * MENU - Horizontal scrollable mobile menu  * * * * */
/*diplay the desktop menu on all devices*/
/* display the desktop menu on all devices */
.gpro-horizontal-scroll-menu .et_pb_menu__menu {
  display: block !important;
}
/* hide the mobile menu */
.gpro-horizontal-scroll-menu .et_mobile_nav_menu {
  display: none !important;
}
@media screen and (max-width: 980px) {
  .gpro-horizontal-scroll-menu .et_pb_menu__menu {
    width: 100%;
  }
  .gpro-horizontal-scroll-menu .et_pb_menu__wrap {
    overflow: auto;
  }
  .gpro-horizontal-scroll-menu .et_pb_menu__menu ul.et-menu {
    white-space: nowrap !important;
    flex-wrap: nowrap !important;
    margin: 0 auto;
  }
}
/* hide scrollbar - Firefox, IE, Edge */
.gpro-horizontal-scroll-menu .et_pb_menu__wrap {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
/* hide scrollbar - Chrome, Safari, Opera */
.gpro-horizontal-scroll-menu .et_pb_menu__wrap::-webkit-scrollbar {
  display: none;
}

/* --- Horizontal scroll arrows --- */

.gpro-horizontal-scroll-menu {
  position: relative;
}
.gpro-horizontal-scroll-menu .et_pb_menu__wrap {
  overflow: auto;
  scroll-behavior: smooth;
  margin: 0;
}
/* margin only when arrow is visible */
.gpro-horizontal-scroll-menu.can-scroll-left .et_pb_menu__wrap {
  margin-left: 35px;
}
.gpro-horizontal-scroll-menu.can-scroll-right .et_pb_menu__wrap {
  margin-right: 35px;
}
/* arrows */
.gpro-horizontal-scroll-menu .scroll-hint {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 5;
  transition: opacity .25s ease, visibility .25s ease;
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--menu-fg, #222);
  transform: translateY(-1px);
}
.gpro-horizontal-scroll-menu .scroll-hint--left {
  left: 0;
  transform: translateY(-1px);
}
.gpro-horizontal-scroll-menu .scroll-hint--right {
  right: 0;
  transform:  translateY(-1px);
}
/* show arrows only when needed */
.gpro-horizontal-scroll-menu.can-scroll-left  .scroll-hint--left,
.gpro-horizontal-scroll-menu.can-scroll-right .scroll-hint--right {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.gpro-horizontal-scroll-menu .scroll-hint .arrow {
  font-size: 28px;
  line-height: 1;
  user-select: none;
}
.gpro-horizontal-scroll-menu .et_pb_menu__wrap {
  touch-action: pan-x;
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * WPML  * * * * */
.gpro-wpml-footer-switcher .wpml-ls-statics-shortcode_actions a {
  color: #fff !important;
}
.gpro-wpml-footer-switcher .wpml-ls-statics-shortcode_actions a:hover {
  color: var(--link-hover) !important;
}
.gpro-wpml-footer-switcher .wpml-ls-statics-shortcode_actions .wpml-ls-current-language a {
  color: var(--link-hover) !important;
}
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Jumping Slider  * * * * */
@media (max-width: 767px) {
    .et_pb_slide_description {
        animation: none !important;
        opacity: 1 !important;
    }
}