/*
 Theme Name: Divi Child
 Theme URI: https://www.elegantthemes.com/gallery/divi/
 Description: Divi Child Theme
 Author: Elegant Themes
 Author URI: https://www.elegantthemes.com
 Template: Divi
 Version: 1.0.0
*/
 
/* =Theme customization starts here 
------------------------------------------------------- */
/* CF7 styling  * /
/* Two-column layout for name fields */
.cf7-two-column {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}
.cf7-half {
  flex: 1;
}

/* Input and textarea styling */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
  font-family: inherit;
  box-sizing: border-box;
  margin-bottom: 20px;
}

/* Submit button styling */
.wpcf7 input[type="submit"] {
  background-color: #005b7f; /* Match Divi button color */
  color: #fff;
  border: none;
  padding: 14px 28px;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.wpcf7 input[type="submit"]:hover {
  background-color: #005bb5;
}

/* Confirmation message styling */
.wpcf7-response-output {
  margin-top: 20px;
  padding: 12px;
  border-radius: 6px;
  background-color: #e6ffe6;
  border: 1px solid #b2ffb2;
  color: #2d7a2d;
}


/*
 seopress_breadcrumb style in archive template built using divi theme builder 
 */
.seopress-breadcrumbs, 
.seopress-breadcrumbs a, 
.seopress-breadcrumbs span {
    color: #ffffff !important;
}

.seopress-breadcrumbs a:hover {
    color: #1CA7A7 !important; /* your teal accent */
}

.seopress-breadcrumbs {
    display: block;
    margin-bottom: 10px;
    margin-top: 5px;
}


/* Business ratings badge css */
.business-rating-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  background: #f8f9fa;
  border: 1px solid #e8eaed;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  min-height: 80px;
  min-width: 180px;
}

.badge-content {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.badge-top-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}

.badge-stars {
  font-size: 18px;
  color: #fbbc04;
  letter-spacing: 1px;
  line-height: 1;
  white-space: nowrap;
}

.badge-rating {
  font-size: 20px;
  font-weight: 700;
  color: #202124;
  line-height: 1;
  white-space: nowrap;
}

.badge-count {
  font-size: 11px;
  color: #5f6368;
  line-height: 1.2;
  text-align: center;
}

.badge-logo {
  opacity: 0.6;
  margin-top: 2px;
}

.badge-logo img {
  height: 16px;
}

/* Responsive */
@media (max-width: 600px) {
  .business-rating-badge {
    padding: 10px 14px;
    min-height: 70px;
    min-width: 160px;
  }
  .badge-stars { font-size: 16px; }
  .badge-rating { font-size: 18px; }
  .badge-count { font-size: 10px; }
}

/*   Increase font size for selected event meta shown in cart */
.selected-event-meta {
    font-size: 18px !important;
    font-weight: 600;
    color: #222 !important;
    line-height: 1.35;
}

/* Fallback: increase common WooCommerce item-meta selectors too */
.woocommerce-cart .cart_item .variation,
.woocommerce-cart .cart_item .product_meta,
.woocommerce-cart .cart_item dl.variation,
.woocommerce-cart .cart_item dd,
.woocommerce-cart .cart_item .wc-item-meta {
    font-size: 18px !important;
    line-height: 1.35 !important;
    color: #222 !important;
}



/* ...View Scheule Call to Action Button Style... */
.et_pb_button.schedule-btn {
  background: #e53935 !important;
  color: #ffffff !important;
  border: none;
  border-radius: 999px; /* pill shape — optional */
  padding: 10px 18px;
  box-shadow: none;
}
/* Responsive event table */
.event-table-wrap { width:100%; overflow-x:auto; -webkit-overflow-scrolling:touch; margin:1.25rem 0; }
.event-table { width:100%; border-collapse:collapse; font-family:inherit; color:#222; min-width:640px; }
.event-table thead th { text-align:left; padding:12px 16px; font-weight:700; border-bottom:2px solid #005b7f; font-size:0.95rem; }
.event-table tbody td { padding:12px 16px; border-bottom:1px solid #005b7f; vertical-align:middle; font-size:0.95rem; }
.event-table tr:hover td { background:#fafafa; }
.event-price { font-weight:700; color:#005b7f; }
.event-qty { width:72px; padding:6px 8px; border:1px solid #ddd; border-radius:4px; }

.add-to-cart-event { display:inline-block; background:#005b7f; color:#fff; border:none; padding:8px 12px; border-radius:4px; cursor:pointer; text-decoration:none; }
.add-to-cart-event:hover { opacity:0.95; }


/* Ensure contrast inside Divi dark sections */
.et_pb_section .add-to-cart-event { background-color:#005b7f !important; color:#fff !important; } 

/* Mobile: stack rows as cards */
@media (max-width:780px) {
  .event-table { min-width:0; border:none; }
  .event-table thead { display:none; }
  .event-table, .event-table tbody, .event-table tr, .event-table td { display:block; width:100%; }
  .event-table tr { margin-bottom:1rem; border:1px solid #005b7f; border-radius:8px; padding:8px; background:#fff; }
  .event-table td { padding:10px; border-bottom:none; position:relative; }
  .event-table td[data-label]::before { content: attr(data-label); display:block; font-weight:700; color:#333; margin-bottom:6px; }
  .event-qty { width:100%; box-sizing:border-box; }
  .add-to-cart-event { width:100%; text-align:center; margin-top:8px; box-sizing:border-box; }
}

/* Small visual tweaks */
.events-heading { margin-top:1rem; margin-bottom:0.5rem; font-size:1.25rem; font-weight:700; color:#111; }
.event-days, .event-instructor { color:#111; font-size:0.9rem; }
/*
.event-table {
    width: 100%;
    border-collapse: collapse;
}
.event-table th, .event-table td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: center;
}
*/
/* Hide the woocommerce default quantity input */
.single-product div.quantity {
    display: none !important;
}

/* Hide the woocommerce default Add to Cart button */
.single-product button.single_add_to_cart_button {
    display: none !important;
}

/* Ensure the woocommerce default price is hidden */
.et_pb_module.et_pb_wc_price.et_pb_wc_price_0_tb_body {
    display: none !important;
}
/* Adjust the width of quantity input box that gets rendered on woo product page in schedule/events for upcoming classes section */
.event-qty {
    width: 51px; /* Adjust the value as needed */
}
/* Reduce font size for the Register/Enroll button in event table */
.add-to-cart-event {
    font-size: 15px !important; /* Adjust the size as needed */
}
/* Hide Add to Cart button in WooCommerce "Newest Products" Blocks product grid on cart page */
body.woocommerce-cart .wc-block-grid__products .add_to_cart_button {
    display: none !important;
}

/* Divi layout, when rendering using shortcode, it adds fair bit of margin on left and right, Following code removes that margin*/
.et_pb_section_4_tb_body .et_pb_row,
.et_pb_section_4_tb_body .et_pb_row_4_tb_body,
.et_pb_section_4_tb_body .et_pb_row_5_tb_body {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box;
}

/* Make Divi Fullwidth Header buttons visible on dark backgrounds */
.et_pb_fullwidth_header.et_pb_bg_layout_dark .et_pb_button {
    background-color: transparent !important;
    color: #fff !important;
    border: 2px solid #fff !important;
}

.et_pb_fullwidth_header.et_pb_bg_layout_dark .et_pb_button:hover {
    background-color: rgba(255,255,255,0.1) !important; /* Optional: subtle hover effect */
    color: #fff !important;
    border-color: #fff !important;
}

/* Display FAQs as an Accordian */
.course-faqs-accordion .faq-item {
    margin-bottom: 10px;
}
.course-faqs-accordion .faq-question {
    width: 100%;
    text-align: left;
    background: #f5f5f5;
    border: none;
    padding: 12px 16px;
    font-size: 1.1em;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
    outline: none;
    position: relative;
}
.course-faqs-accordion .faq-question[aria-expanded="true"] {
    background: #e0e0e0;
}
.course-faqs-accordion .faq-answer {
    padding: 12px 16px;
    background: #fff;
    border-left: 2px solid #0073e6;
    border-radius: 0 0 4px 4px;
    margin-top: 0;
}

/* Show More button — desktop + mobile encouraging tappability */
.event-load-more-container {
  text-align: center;
  margin: 1.25rem 0 1.5rem;
  position: relative;
  z-index: 2;
}

.event-load-more-btn {
  -webkit-appearance: none;
  appearance: none;
  display: inline-block;
  min-width: 140px;
  padding: 0.55rem 1.1rem;
  font-size: 0.95rem;
  line-height: 1;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  background: var(--primary-color, #1155cc) !important;
  color: #fff !important;
  box-shadow: 0 2px 6px rgba(18, 35, 70, 0.08);
  transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
  text-decoration: none;
  pointer-events: auto;
}

.event-load-more-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(18, 35, 70, 0.10);
  opacity: 0.98;
}

.event-load-more-btn:active { transform: translateY(0); }

.event-load-more-btn:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(17,85,204,0.12);
  border-color: rgba(255,255,255,0.12);
}

/* Mobile / touch screens: large tap target and full-width button */
@media (max-width: 780px) {
  .event-load-more-btn {
    display: block !important;
    width: 92% !important;
    max-width: 420px;
    margin: 0.5rem auto;
    padding: 0.9rem 1rem;
    font-size: 1rem;
    border-radius: 10px;
    -webkit-tap-highlight-color: rgba(0,0,0,0.08);
  }
}