/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */
/* 1. Initial State: Small Circle */
.global_btn .elementor-button {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    
    /* Force Circle Shape */
    width: 44px; 
    height: 44px;
    padding: 0 0 0 14px !important; /* Centers the icon */
    
    overflow: hidden;
    white-space: nowrap;
    border-radius: 50px;
    border: 1px solid #d1d1d1; /* Light border from your 1st image */
    background-color: transparent !important;
    transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.3s ease;
}

/* Hide the text label inside the button */
.global_btn .elementor-button-text {
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Remove default Elementor icon spacing */
.global_btn .elementor-button-icon {
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
}

/* 2. Hover State: Expand to Pill */
.global_btn:hover .elementor-button {
    width: 140px; /* Adjust this to fit your text */
    background-color: #f4f4f4 !important; /* Light fill from your 2nd image */
    border-color: #1D1D1D; /* Darker border on hover */
}

/* Show the text on hover */
.global_btn:hover .elementor-button-text {
    opacity: 1;
    transform: translateX(10px); /* Slides the text into view */
}




/* Testimonials Button css */
/* Container to center the buttons */
.custom-carousel-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px; /* Space between buttons */
    margin-top: 30px;
    width: 100%;
}

/* Base style for the circular buttons */
.nav-button {
    width: 45px;
    height: 45px;
    border: 1px solid #d1d5db; /* Light grey border like your image */
    border-radius: 50%;
    background-color: #ffffff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 18px; /* Size of the arrow icon */
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Individual Icon Paths */
.prev-btn {
    background-image: url('https://amity-dentistry.omsok.com/wp-content/uploads/2026/01/Prev-Arrow.svg');
}

.next-btn {
    background-image: url('https://amity-dentistry.omsok.com/wp-content/uploads/2026/01/Next-Arrow.svg');
}

/* Hover State */
.nav-button:hover {
    border-color: #000000;
    background-color: #f9f9f9;
}

/* Hide the default Elementor arrows so they don't double up */
.elementor-element-f3bdc2d .elementor-swiper-button {
    display: none !important;
}

/* for small device below 1400px screen  */
@media (max-width: 1621px) {
  .why_us_container .e-con-inner {
    gap: 20px !important;   
  }
	.book_an_appointment  a.elementor-button  {
		padding: 16px 12px !important;
	}
	.testimonials_star {
		width: 70% !important;
	}
	.testimonials_card {
		min-height: 330px !important;
	}
/* 	.why_us_section {
		width: 50% !important;
	} */
	
}

@media (min-width: 1200px) and (max-width: 1400px) {
    .elementor-20 .elementor-element.elementor-element-c8c2564 {
        --width: 70% !important;
    }
}






/* Only apply these styles to Desktop (Large Screens) */
@media (min-width: 1025px) {

    /* 1. TRANSFORM THE CLOSE BUTTON */
    #elementor-popup-modal-9 .dialog-close-button,
    #elementor-popup-modal-781 .dialog-close-button {
        background: transparent !important;
        border: 1px solid rgba(255, 255, 255, 0.5) !important;
        border-radius: 50px !important;
        color: #ffffff !important;
        padding: 16px 16px !important;
        width: 105px !important;
        height: auto !important;
        top: 20px !important;
        left: 50% !important; /* horizontal center */
        right: auto !important;
        transform: translateX(-190%) !important; 
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-decoration: none !important;
    }

    /* Hide the SVG "X" icon on desktop */
    #elementor-popup-modal-9 .dialog-close-button svg,
    #elementor-popup-modal-781 .dialog-close-button svg {
        display: none !important;
    }

    /* Add the "Close" text on desktop */
    #elementor-popup-modal-9 .dialog-close-button::after,
    #elementor-popup-modal-781 .dialog-close-button::after {
        content: "Close";
        font-family: 'Lato', sans-serif;
        font-weight: 700;
        font-size: 16px;
    }
}






/* Hide scrollbars but allow scrolling */
#elementor-popup-modal-781 .dialog-lightbox-message,
#elementor-popup-modal-9 .dialog-lightbox-message,
#elementor-popup-modal-1130 .dialog-lightbox-message,
#elementor-popup-modal-1138 .dialog-lightbox-message
{
    -ms-overflow-style: none;  /* Internet Explorer 10+ */
    scrollbar-width: none;     /* Firefox */
}

/* For Chrome, Safari, and Opera */
#elementor-popup-modal-781 .dialog-lightbox-message::-webkit-scrollbar,
#elementor-popup-modal-9 .dialog-lightbox-message::-webkit-scrollbar,
#elementor-popup-modal-1130 .dialog-lightbox-message::-webkit-scrollbar,
#elementor-popup-modal-1138 .dialog-lightbox-message::-webkit-scrollbar
{
    display: none;
}



/* 1. Ensure the popup container allows fixed positioning */
#elementor-popup-modal-781 .dialog-widget-content,
#elementor-popup-modal-9 .dialog-widget-content,
#elementor-popup-modal-1132 .dialog-widget-content,
#elementor-popup-modal-1138 .dialog-widget-content
{
    display: flex;
    flex-direction: column;
	padding-top: 0 !important;
    overflow: hidden !important; /* Prevents double scrollbars */
}

/* 2. Make the Close button area stay on top */
#elementor-popup-modal-781 .dialog-close-button,
#elementor-popup-modal-9 .dialog-close-button,
#elementor-popup-modal-1132 .dialog-close-button,
#elementor-popup-modal-1138 .dialog-close-button
{
    z-index: 9999;
    position: absolute;
    top: 20px;
    right: 20px;
}

/* 3. Make the dark header container sticky */
#elementor-popup-modal-781 .elementor-element-f21b808,
#elementor-popup-modal-9 .elementor-element-f21b808,
#elementor-popup-modal-1132 .elementor-element-f21b808,
#elementor-popup-modal-1138 .elementor-element-f21b808
{
    position: sticky;
	margin-top: 0 !important;
    top: 0;
    z-index: 100;
    background-color: #233f55; /* Matches your contact icon colors */
    flex-shrink: 0; /* Prevents the header from squishing */
}

/* 4. Make only the content area scrollable and hide its scrollbar */
#elementor-popup-modal-781 .dialog-lightbox-message,
#elementor-popup-modal-9 .dialog-lightbox-message,
#elementor-popup-modal-1132 .dialog-lightbox-message,
#elementor-popup-modal-1138 .dialog-lightbox-message
{
    overflow-y: auto !important;
    flex-grow: 1;
    
    /* Hide scrollbar line but keep functionality */
    -ms-overflow-style: none;  /* IE/Edge */
    scrollbar-width: none;     /* Firefox */
}

/* Hide scrollbar for Chrome/Safari/Opera */
#elementor-popup-modal-781 .dialog-lightbox-message::-webkit-scrollbar,
#elementor-popup-modal-9 .dialog-lightbox-message::-webkit-scrollbar,
#elementor-popup-modal-1132 .dialog-lightbox-message::-webkit-scrollbar,
#elementor-popup-modal-1138 .dialog-lightbox-message::-webkit-scrollbar
{
    display: none;
}

/*fixed the width issue for mobile */
@media (max-width: 1024px) and (min-width: 768px) {
    .elementor-1538 .elementor-element.elementor-element-7198314 {
        --width: initial;
    }
}


