/*
Theme Name: Divi Child
Theme URI: https://example.com/
Description: A custom child theme for Divi.
Author: Your Name
Author URI: https://example.com/
Template: Divi
Version: 1.0
*/

/*********************/
/* Google reCAPTCHA  */
/*********************/

/* Hide reCAPTCHA */
.grecaptcha-badge {
    display: none !important;
}


/* Ensures the image covers the container */
.et_pb_gallery .et_pb_gallery_image {
    position: relative;
    width: 100%;
    padding-top: 100%;
}

 /* Maintain aspect ratio of 1:1 */
.et_pb_gallery .et_pb_gallery_image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* Hide image names and numbers in Divi gallery */
.mfp-title { display: none !important; }
.mfp-counter { display: none !important; }


/* STYLES FOR LANGUAGES DROPDOWN */

.gt_switcher_wrapper {
    border-radius: 7px !important; /* Adjust padding if necessary */
    background: #ffffff;
    padding-left: 5px;
    padding-right: 5px;
    padding-top: 2px;
    padding-bottom: 2px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Add shadow */
    visibility: hidden; /* Hide the element initially */
    opacity: 0; /* Hide with opacity */
    transition: opacity 1.0s ease-in-out; /* Smooth transition */
}

.gt_white_content {
    width: 100%; /* Ensures the inner content fits */
    height: auto;
    border-radius: 10px !important; /* Adjust padding if necessary */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Add shadow */

}


@media only screen and (max-width: 767px) {
    body header img#logo {
        max-width: 80%!important;
        max-height: 80%!important;
        height: auto!important;
        width: auto!important;
    }
}












/*********************/
/*   Menu Styling    */
/*********************/


/* Main Menu Background - Soft Light */
.et_pb_menu {
  background-color: #f7f9f8; /* calm wellness background */
}

/* Main Menu Links */
.et_pb_menu .nav li a {
  font-family: 'Lato', sans-serif;
  color: #275d38; /* deep elegant green */
  font-size: 17px;
  font-weight: 600;
  padding: 14px 18px;
  transition: color 0.3s ease;
  background: none; /* no background boxes */
  border: none; /* no borders */
}

/* Hover State */
.et_pb_menu .nav li a:hover {
  color: #a83232; /* light acupuncture red on hover */
  background: none;
}

/* Active Menu Item */
.et_pb_menu .nav > li.current-menu-item > a {
  color: #a83232;
  font-weight: 700;
}

/* Dropdown Menu Background */
.et_pb_menu ul.sub-menu {
  background-color: #ffffff; /* clean white dropdown */
  padding: 10px 0;
  border-radius: 6px;
  border: 1px solid #ebebeb; /* very subtle dropdown border */
}

/* Dropdown Links */
.et_pb_menu ul.sub-menu li a {
  color: #275d38;
  font-size: 16px;
  padding: 10px 20px;
}

/* Dropdown Hover */
.et_pb_menu ul.sub-menu li a:hover {
  color: #a83232;
  background-color: #f0f7f3; /* very light soft green */
}

/* Mobile Menu Background */
.et_mobile_menu {
  background-color: #ffffff; /* clean white mobile menu */
}

/* Mobile Menu Items */
.et_mobile_menu li a {
  color: #275d38;
  font-size: 18px;
  padding: 14px;
  border-bottom: 1px solid #f0f0f0; /* very light divider */
}

/* Mobile Hover */
.et_mobile_menu li a:hover {
  color: #a83232;
  background: none; /* no background on hover */
}

/* "Book Free Marketing Call" Button */
.et_pb_button_0_tb_header {
  background-color: #a83232;
  color: #ffffff;
  font-weight: 600;
  font-size: 16px;
  border-radius: 30px;
  padding: 12px 24px;
  box-shadow: none; /* no button shadow */
}

.et_pb_button_0_tb_header:hover {
  background-color: #275d38;
  color: #ffffff;
}

/* Remove bottom border for the last item in mobile dropdown */
.et_mobile_menu .sub-menu li:last-child a {
  border-bottom: none;
}










/*********************/
/*   Blogs Styling   */
/*********************/

.et_post_meta_wrapper .entry-title {
    text-align: left; /* Aligns title to the left */
    font-size: 45px !important; /* Adjust size as needed */
    font-weight: bold; /* Ensures the date stands out */
    margin-bottom: 10px; /* Adds spacing below */
    display: block;
}

/* General Styling */
.et_pb_post {
    font-family: 'Arial', sans-serif;
    font-size: 18px !important;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

/* Heading Styling */
.et_pb_post h1, 
.et_pb_post h2, 
.et_pb_post h3 {
    color: #222;
    font-weight: bold;
}

.et_pb_post h1 {
    font-size: 24px;
    text-align: center;
}

.et_pb_post h2 {
    font-size: 26px;
    border-bottom: 3px solid #004aad;
    padding-bottom: 5px;
    margin-top: 60px;
    margin-bottom: 20px;
}

.et_pb_post h3 {
    font-size: 20px;
}

/* Image Styling */
.et_pb_post img {
    width: 100%;
    height: auto;
    border-radius: 10px;

}

@media (min-width: 768px) {
    .et_pb_post img {
        width: 75%;
    }
}

/* Button Styling */
.custom-posts-button-consultation {
    background-color: #004aad;
    color: white;
    padding: 12px 20px;
    font-size: 16px;
    border: none;
    border-radius: 6px;
	margin-bottom: 20px;
    cursor: pointer;
    display: inline-block;
    transition: background-color 0.3s ease-in-out;
    opacity: 1;
}

.custom-posts-button-consultation:hover {
    background-color: #004aad;
}

/* List Styling */
.et_pb_post ul {
    padding-left: 20px;
}

.et_pb_post ul li {
    margin-bottom: 10px;
    position: relative;
    list-style: none;
    padding-left: 25px;
}

.et_pb_post ul li::before {
    content: '\2713';
    color: #004aad;
    position: absolute;
    left: 0;
    top: 2px;
    font-weight: bold;
}

/* Blockquote Styling */
.et_pb_post blockquote {
    border-left: 5px solid #004aad;
    padding-left: 15px;
    margin: 20px 0;
    opacity: 1;
}

/* Table of Contents Styling */
.et_pb_post nav {
    max-width: 40%; /* Limits TOC width to the content width */
    text-align: left; /* Aligns TOC to the left */
    font-size: 16px;
	margin-top: 20px;
}

.et_pb_post nav h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #004aad;
}

.et_pb_post nav ul {
    background: #f8f9fa;
    border-radius: 6px;
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.1);    
    max-width: 100%; /* Ensures it doesnâ€™t extend beyond the text */
    font-size: 16px;
	padding-top: 8% !important;
}

.et_pb_post nav ul li a {
    text-decoration: none;
    color: #004aad;
    font-weight: bold;
    transition: color 0.3s ease-in-out;
    font-size: 16px;
}

.et_pb_post nav ul li a:hover {
    color: #004aad;
}

.et_pb_post .special-spacing {
    margin-bottom: 10px;
    margin-top: 80px;
}


@media screen and (max-width: 768px) {
    .et_pb_post nav {
        max-width: 90% !important;
        margin: 0 auto;
    }
}


@media screen and (max-width: 768px) {
    body.single-post .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    body.single-post .et_pb_post,
    body.single-post .entry-content {
        padding-left: 20px !important;
        padding-right: 20px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        line-height: 1.7 !important;
    }

	.et_pb_post h2 {
		font-size:32px !important;
	}

	.et_pb_post h3 {
		font-size: 25px !important;
	}

	
}





/* Mobile Posts */

/* Mobile & Tablet Styling for Blog Posts and Widget Behavior */

/* Hide latest posts widget and sidebar on tablet and below */
@media screen and (max-width: 1024px) {
    .wp-block-latest-posts__list,
    .wp-block-group.is-layout-flow,
    #sidebar,
    .et_pb_widget_area {
        display: none !important;
    }

    article.et_pb_post {
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
        padding: 20px;
        margin-bottom: 30px;
    }

    article.et_pb_post .more-link {
        box-shadow: none !important;
        background: none !important;
    }
	
	    .et_pb_blog_grid .et_pb_post h2.entry-title a {
        font-size: 22px !important;
        line-height: 1.4;
        font-weight: bold;
        color: #222;
        text-align: left;
    }
	
}

/* Mobile-only enhancements */
@media screen and (max-width: 768px) {
    .et_pb_blog_grid {
        padding: 10px;
        position: relative;
        z-index: 1;
        overflow: visible !important;
    }

    .et_pb_ajax_pagination_container,
    .et_pb_salvattore_content {
        overflow: visible !important;
    }

    .et_pb_blog_grid article.et_pb_post,
    .et_pb_blog_grid .et_pb_post {
        background: #fff !important;
        border-radius: 12px !important;
        box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1) !important;
        padding: 20px !important;
        margin-bottom: 30px !important;
        position: relative;
        z-index: 2;
    }

    .et_pb_blog_grid article.et_pb_post .more-link {
        display: block;
        background: none !important;
        box-shadow: none !important;
    }

    .et_pb_blog_grid .et_pb_image_container {
        text-align: center;
    }

    .et_pb_blog_grid .et_pb_image_container img {
        border-radius: 10px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.05);
        max-width: 100%;
        height: auto;
    }

    .et_pb_blog_grid .et_pb_post h2.entry-title a {
        font-size: 22px !important;
        line-height: 1.4;
        font-weight: bold;
        color: #222;
        text-align: left;
    }
	
	.et_post_meta_wrapper .entry-title {
    text-align: left; /* Aligns title to the left */
    font-size: 35px !important; /* Adjust size as needed */
    margin-bottom: 10px; /* Adds spacing below */
	margin-top: -30px; /* Adds spacing below */
	font-weight: bold; /* Makes the font not bold */
    display: block;
}
}









/* Sidebar Styling */

/* Sidebar Title */
#sidebar h2 {
    font-size: 32px !important;
    font-weight: bold;
    color: #222;
    border-bottom: 3px solid #004aad;
    margin-bottom: 30px;
    text-align: center !important;
}

.wp-block-latest-posts__list li + li {
    margin-top: 30px; /* Adds space only between posts */
}

/* Sidebar Post List */
.wp-block-latest-posts__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Each Post in its Own Box */
.wp-block-latest-posts__list li {
    background-color: #ffffff;    
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.1);    
    margin-bottom: 50px;
    display: flex; /* ✅ Added for centering */
    flex-direction: column; /* ✅ Stack image & title */
    align-items: center; /* ✅ Center image and title horizontally */
    text-align: center; /* ✅ Center text content */
}

/* Remove Border from Last Item */
.wp-block-latest-posts__list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* Sidebar Post Image */
.wp-block-latest-posts__featured-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    margin-bottom: 15px; /* ✅ Added spacing below image */
}

/* Sidebar Post Title */
.wp-block-latest-posts__post-title {
    font-size: 16px;
    font-weight: bold;
    color: #004aad;
    text-align: center !important;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
    display: block; /* ✅ Ensures block-level for full width centering */
}

.wp-block-latest-posts__post-title:hover {
    color: #004aad;
}








/* Blog Font Sizing */
/* THIS IS A MAIN FONT SIZE STYLING FOR BLOGPOSTS */
/* USE IT AS THE ONLY OPTION */


  .single-post .entry-content p,
  .single-post .entry-content ol,
  .single-post .entry-content ul,
  .single-post .entry-content li,
  .single-post .entry-content blockquote,
  .single-post .entry-content a {
  font-family: 'Source Sans Pro', sans-serif !important;
  font-size: 16px !important;
  line-height: 1.7;
}

/* Tablet */
@media (max-width: 991px) {
  .single-post .entry-content p,
  .single-post .entry-content ol,
  .single-post .entry-content ul,
  .single-post .entry-content li,
  .single-post .entry-content blockquote,
  .single-post .entry-content a {
    font-size: 18px !important;
  }
}

/* Phone */
@media (max-width: 767px) {
  .single-post .entry-content p,
  .single-post .entry-content ol,
  .single-post .entry-content ul,
  .single-post .entry-content li,
  .single-post .entry-content blockquote,
  .single-post .entry-content a {
    font-size: 18px !important;
  }
}



/* Floating Social Share Box with Text + Animation */
/* Floating container with heading + icons */
.floating-share-box {
  position: fixed;
  left: 30px;
  top: 10%;
  z-index: 9999;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  padding: 15px;
  text-align: center;
  width: auto;
  opacity: 0;
  animation: fadeInIcons 1.5s ease-in-out forwards;
  animation-delay: 2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* Override plugin layout and center icons */
.floating-share-box .sfsi_shortcode_container {
  position: static !important;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: auto !important;
  margin: 0 auto;
  text-align: center;
}

/* Center each icon block */
.floating-share-box .sfsi_wicons {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Center icon images */
.floating-share-box .sfsi_wicons img {
  display: block;
  margin: 0 auto;
}

/* Text headings */
.sidebar .floating-share-box h2 {
  color: #004aad;
  margin-bottom: 0;
}

.floating-share-box h3 {
  font-size: 14px;
  margin-top: 0;
  margin-bottom: 10px;
  font-weight: normal;
  color: #666;
}

/* Fade-in animation */
@keyframes fadeInIcons {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hide on mobile */
@media (max-width: 768px) {
  .floating-share-box {
    display: none !important;
  }
}