/* =========================================================
   AH INTERNATIONAL COMPANY — Responsive Overrides
   ========================================================= */

@media screen and (max-width: 1200px) {

    .products-grid-wrap,
    .products-wrap .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (min-width: 768px) and (max-width: 1024px) {

    /* Hero */
    .banner-wrap,
    .banner-wrap .banner-item,
    .hero-slide {
        height: 78vh;
        min-height: 540px;
    }

    .hero-slide__desc,
    .hero-slide__title,
    .banner-wrap .banner-item .banner-content p.sub-heading,
    .banner-wrap .banner-item .banner-content h5.heading {
        width: 100% !important;
    }

    .banner-wrap .banner-item .banner-content,
    .hero-slide__panel {
        padding: 0 6% !important;
    }

    .hero-slide__num { font-size: 44px; }

    /* Products */
    .products-grid-wrap,
    .products-wrap .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* All-Products page */
    .allproducts-sections .productcategories-list {
        position: relative;
        top: 0;
        min-height: max-content;
        height: fit-content;
    }

    .allproducts-sections .productcategory .products-grid-wrap {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Clients */
    .clients .client-item .image {
        height: 100px;
        padding: 18px;
    }

    .clients.clients-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

@media screen and (max-width: 767px) {

    /* Hero — slightly shorter, room for chrome at bottom */
    .banner-wrap,
    .banner-wrap .banner-item,
    .hero-slide {
        height: auto;
        min-height: 520px;
    }

    .hero-slide__media img,
    .banner-wrap .banner-item img {
        object-position: center;
    }

    .banner-wrap .banner-item .banner-content,
    .hero-slide__panel {
        padding: 70px 6% 110px;
        align-items: center;
    }

    .hero-slide__meta { margin-bottom: 14px; gap: 12px; }
    .hero-slide__num { font-size: 32px; }
    .hero-slide__rule { width: 36px; }

    .banner-wrap .banner-item .banner-content h5.heading,
    .hero-slide__title {
        font-size: 26px !important;
        line-height: 1.2 !important;
        width: 100% !important;
        max-width: none !important;
        margin-bottom: 14px;
    }

    .banner-wrap .banner-item .banner-content p.sub-heading,
    .hero-slide__desc {
        width: 100% !important;
        font-size: 14px !important;
        line-height: 1.6 !important;
        margin-bottom: 20px !important;
    }

    /* Dots sit above brand strip, no overlap */
    .banner-wrap .owl-dots {
        bottom: 32px;
        padding: 0 6%;
        gap: 6px;
    }

    .banner-wrap .owl-dots button.owl-dot::after { display: none; }

    .banner-wrap .owl-dots button.owl-dot {
        flex-grow: 0;
        width: 28px;
        height: 3px;
    }

    .banner-wrap .owl-dots button.owl-dot.active {
        width: 44px;
    }

    /* Nav arrows — compact, bottom-right, well above dots */
    .banner-wrap .owl-nav {
        position: absolute;
        bottom: 60px;
        right: 6%;
        left: auto;
        width: auto;
        padding: 0;
        gap: 10px;
    }

    .banner-wrap .owl-nav button {
        padding: 18px !important;
    }

    .banner-wrap .owl-nav button::before { font-size: 13px; }

    /* Hide the decorative brand strip on phones (no room) */
    .hero-stage__brand { display: none; }

    /* Products */
    .products-grid-wrap,
    .products-wrap .products-grid,
    .allproducts-sections .productcategory .products-grid-wrap {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .products-wrap .product-item,
    .products-grid-wrap .product-item {
        padding: 14px;
    }

    .products-wrap .product-item .product-image,
    .products-grid-wrap .product-item .product-image {
        height: 140px;
    }

    .products-wrap .product-item h5.product-title,
    .products-grid-wrap .product-item h5.product-title {
        font-size: 13px;
    }

    /* Clients */
    .clients.clients-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .clients .client-item .image {
        height: 90px;
        padding: 14px;
    }

    /* Form — new grid structure */
    .form-submit .basic-details {
        grid-template-columns: 1fr !important;
    }
}

@media screen and (max-width: 480px) {
    .products-grid-wrap,
    .products-wrap .products-grid,
    .allproducts-sections .productcategory .products-grid-wrap {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   Section shortcodes — responsive
   ========================================================= */

@media screen and (max-width: 1200px) {
    .ah-stats__grid    { grid-template-columns: repeat(2, 1fr); }
    .ah-sectors__grid  { grid-template-columns: repeat(2, 1fr); }
    .ah-features__grid { grid-template-columns: repeat(2, 1fr); }
    .ah-process__list  { grid-template-columns: repeat(2, 1fr); gap: 32px; }
    .ah-process__list::before { display: none; }
}

@media screen and (max-width: 1024px) {
    .ah-features { padding: 36px 0; }
    .ah-features__grid { gap: 28px 36px; }

    .ah-cta__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 22px;
    }

    .ah-about {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .ah-about__media { max-width: 600px; aspect-ratio: 16 / 10; }
    .ah-about__pills { grid-template-columns: repeat(2, 1fr); }
}

@media screen and (max-width: 767px) {
    .ah-stats,
    .ah-sectors,
    .ah-process,
    .ah-testimonials,
    .ah-about { padding: 30px 0; }

    .ah-features { padding: 30px 0; margin: 0; }
    .ah-features__grid { grid-template-columns: 1fr !important; gap: 14px; }
    .ah-feature-card { padding: 28px 24px 24px; }
    .ah-feature-card__icon { width: 52px; height: 52px; font-size: 20px; border-radius: 13px; margin-bottom: 18px; }

    .ah-cta { padding: 36px 26px; margin: 28px 0; }

    .ah-section__head { margin-bottom: 28px; }
    .ah-eyebrow { font-size: 11px; letter-spacing: 2px; }

    .ah-stats__grid,
    .ah-sectors__grid,
    .ah-features__grid,
    .ah-process__list {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .ah-stat-card,
    .ah-sector-card { padding: 24px 22px; }

    .ah-stat-card__num { font-size: 38px; }

    /* CTA */
    .ah-cta__actions { flex-direction: column; width: 100%; }
    .ah-cta__actions .ah-btn { justify-content: center; width: 100%; }
    .ah-cta__shape { width: 200px; height: 200px; top: -60px; right: -60px; }

    /* About */
    .ah-about__media { aspect-ratio: 4 / 3; }
    .ah-about__pills { grid-template-columns: 1fr; }
}

/* =========================================================
   Mobile cleanup — header, banner, carousels, fine-tuning
   ========================================================= */

@media screen and (max-width: 1024px) {
    /* Header nav tighter spacing */
    .hfe-nav-menu > li { margin: 0 4px !important; }
    .hfe-nav-menu > li > a,
    .hfe-nav-menu > li > div > a {
        padding: 11px 12px !important;
        font-size: 13px !important;
    }
    .hfe-nav-menu > li > a::after,
    .hfe-nav-menu > li > div > a::after {
        left: 12px;
        right: 12px;
        bottom: 5px;
    }


    /* Page banner — smaller heading */
    .page-banner .page-container .page-heading h2 {
        font-size: 34px !important;
    }

    /* Industries carousel buttons smaller */
    .industries-carousel.owl-carousel .owl-nav button,
    .products-wrap .owl-nav button {
        width: 44px;
        height: 44px;
        margin: 16px 6px;
    }

    /* Banner inner-page hero */
    .banner.about-banner { padding: 0 5% !important; }
}

@media screen and (max-width: 767px) {

    /* (Mobile dropdown rules now live in the @1024 block below — they
       need to apply to both tablet and phone hamburger menus) */

    /* Header contact button — smaller, still pill */
    .contact-btn a {
        padding: 10px 18px !important;
        font-size: 13px !important;
        gap: 8px;
    }
    .contact-btn a::after {
        width: 20px;
        height: 20px;
        font-size: 11px;
    }

    /* Page banner — heading reduces further */
    .page-banner .page-container .page-heading h2 {
        font-size: 26px !important;
        line-height: 1.2 !important;
    }
    .page-banner .page-container .page-description {
        font-size: 14px !important;
        line-height: 1.55 !important;
    }

    /* Hero nav arrows smaller */
    .banner-wrap .owl-nav button {
        padding: 18px !important;
    }
    .banner-wrap .owl-nav button::before { font-size: 13px; }

    /* Industries / products carousel nav — smaller */
    .industries-carousel.owl-carousel .owl-nav button,
    .products-wrap .owl-nav button {
        width: 40px;
        height: 40px;
        margin: 12px 4px;
    }

    /* Section headings scale down */
    .ah-section__title,
    .ah-contact__form-title,
    .ah-cta__title,
    .ah-about .ah-section__title {
        font-size: clamp(22px, 5.5vw, 28px) !important;
    }
    .ah-contact__intro { font-size: 14px; }

    /* Testimonials carousel padding adjustments */
    .ah-testimonial { margin: 16px 4px; padding: 28px 22px 24px; }
    .ah-testimonial__mark { font-size: 56px; top: 8px; right: 18px; }
    .ah-testimonial__quote { font-size: 14px; }

    /* Process step spacing */
    .ah-process-step { padding: 0; }
    .ah-process-step__title { font-size: 15px; }
    .ah-process-step__desc { font-size: 13px; }

    /* About badge — keep inside frame */
    .ah-about__badge { bottom: 14px; left: 14px; padding: 12px 16px; }
    .ah-about__badge span { font-size: 22px; }
    .ah-about__badge small { font-size: 10px; }

    /* Contact card chevron stays visible */
    .ah-contact-card__chev { top: 22px; right: 18px; }
}

@media screen and (max-width: 480px) {
    /* Hero text scales down further on tiny phones */
    .banner-wrap,
    .banner-wrap .banner-item,
    .hero-slide {
        min-height: 480px;
    }

    .hero-slide__title,
    .banner-wrap .banner-item .banner-content h5.heading {
        font-size: 22px !important;
        line-height: 1.22 !important;
    }
    .hero-slide__desc,
    .banner-wrap .banner-item .banner-content p.sub-heading {
        font-size: 13px !important;
        line-height: 1.6 !important;
        margin-bottom: 18px !important;
    }
    .hero-slide__num { font-size: 26px; }
    .hero-slide__tag { font-size: 10px !important; letter-spacing: 2.5px !important; }

    /* Hero CTA button width */
    .banner-wrap .banner-item .banner-content .learn-more {
        width: 11rem;
    }

    /* Page banner heading even smaller */
    .page-banner .page-container .page-heading h2 {
        font-size: 22px !important;
    }

    /* Clients grid drops to 1 column on tiny phones */
    .clients.clients-grid { grid-template-columns: 1fr; }

    /* Stats / sectors card padding tightens */
    .ah-stat-card,
    .ah-sector-card { padding: 22px 18px; }
    .ah-stat-card__num { font-size: 34px; }
    .ah-feature-card__title { font-size: 16px; }
    .ah-feature-card__desc { font-size: 13px; }

    /* CTA padding shrinks */
    .ah-cta { padding: 28px 20px; }
    .ah-cta__title { font-size: 22px !important; }
    .ah-cta__text { font-size: 13px; }

    /* About pills */
    .ah-about__pills li { font-size: 13px; padding: 9px 12px; }

    /* Form fields slightly shorter */
    .form-submit .input-field p input,
    .form-submit .input-field p select { height: 46px; font-size: 14px; }

    /* Services carousel cards tighter */
    .ah-service-card__title { font-size: 20px; }
    .ah-service-card__body { padding: 16px 16px 18px; }
}

/* Prevent any horizontal overflow on phones — use `clip` (not `hidden`)
   so it doesn't create a scroll container and break position:sticky */
@media screen and (max-width: 767px) {
    html, body { overflow-x: clip; }
}


/* Header Responsive CSS */

/* Menu Hamburger */

@media only screen and (min-width: 1561px) {

    #masthead .header-logo>.elementor-widget-container {
        padding-right: 51px;
    }

    #masthead .header-logo>.elementor-widget-container img {
        max-width: 318px;
    }

    main#content .patient-reviews-container.slick-initialized .slick-list.draggable {
        padding: 0 121px !important;
    }
}

@media screen and (max-width: 1400px) {
    .logos-wrapper>div {
        display: flex !important;
    }
}

@media only screen and (min-width: 1400px) and (max-width: 1560px) {
    #masthead .header-logo>.elementor-widget-container {
        padding-right: 21px;
    }

    #masthead .header-logo>.elementor-widget-container img {
        height: 60px;
    }

    #masthead .book-online .elementor-button-wrapper a.elementor-button {
        padding: 05px 18px 5px 18px;
    }

    #masthead .header-container .header-menu .menu-item a.hfe-menu-item,
    #masthead .header-container .header-menu .menu-item a.hfe-sub-menu-item {
        padding-right: 10px;
        padding-left: 10px;
    }

    main#content .patient-reviews-container.slick-initialized .slick-list.draggable {

        padding: 0 60px !important;
    }
}

@media only screen and (max-width: 1300px) {

    main#content .contact-us-detail-wrapper .contact-us-detail-wrap {
        padding-right: 20px;
    }
}

@media only screen and (min-width: 1200px) and (max-width:1280px) {

    #masthead .header-container .header-menu .menu-item a.hfe-menu-item,
    #masthead .header-container .header-menu .menu-item a.hfe-sub-menu-item {
        padding-top: 38px;
        padding-bottom: 38px;
        font-size: 15px;
        padding-right: 5px;
        padding-left: 5px;
    }

    #masthead .header-logo>.elementor-widget-container {
        padding-right: 8px;
    }

    #masthead .header-logo>.elementor-widget-container img {
        max-width: 160px;
        height: 45px;
    }

    #masthead .book-online .elementor-button-wrapper a.elementor-button {
        padding: 0 7px 0 7px;
        font-size: 16px;
    }

    #masthead .header-container .header-menu .hfe-nav-menu__layout-horizontal .hfe-nav-menu>li.menu-item:not(:last-child) {
        margin-right: 11px;
    }

    main#content .about-lt-wrap .elementor-widget-text-editor,
    main#content .our-facilities-container .our-facilities-rt-wrap .our-facilities-para.elementor-widget-text-editor {
        font-size: 18px;
    }

    main#content .about-lt-wrap {
        padding-right: 40px;
    }

    main#content .patient-reviews-container.slick-initialized .slick-list.draggable {
        padding: 0px !important;
    }

    main#content .about-reviews>.elementor-widget-container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .mail-site-link-wrap {
        padding-left: 38px;
    }
}


@media only screen and (min-width: 1024px) and (max-width: 1199px) {

    main#content .about-facility-Container>div>div {
        display: block;
    }

    main#content .about-facility-Container>div>div>div:first-child {
        float: left;
        width: auto;
        padding-right: 50px;
    }

    main#content .about-facility-Container>div>div>div:last-child {
        width: auto;
        padding: 0;
    }

}

@media only screen and (min-width: 1025px) and (max-width: 1169px) {

    #masthead .header-container .header-menu .menu-item a.hfe-menu-item,
    #masthead .header-container .header-menu .menu-item a.hfe-sub-menu-item {
        padding-top: 28px;
        padding-bottom: 28px;
        font-size: 13px;
        padding-right: 4px;
        padding-left: 4px;
    }

    #masthead .header-logo>.elementor-widget-container {
        padding-right: 15px;
    }

    #masthead .header-logo>.elementor-widget-container img {
        max-width: 215px;
        height: 45px;
    }

    #masthead .book-online .elementor-button-wrapper a.elementor-button {
        padding: 0 5px 0 5px;
        font-size: 14px;
    }

    #masthead .header-container .header-menu .hfe-nav-menu__layout-horizontal .hfe-nav-menu>li.menu-item:not(:last-child) {
        margin-right: 5px;
    }

    main#content .about-lt-wrap .elementor-widget-text-editor,
    main#content .our-facilities-container .our-facilities-rt-wrap .our-facilities-para.elementor-widget-text-editor {
        font-size: 18px;
    }

    main#content .about-lt-wrap {
        padding-right: 40px;
    }


    #colophon .footer-container .footer-menu .hfe-nav-menu__layout-horizontal .hfe-nav-menu>li.menu-item:not(:last-child) {
        margin-right: 14px;
    }

    #colophon .footer-container .footer-menu .menu-item a.hfe-menu-item,
    #colophon .footer-container .footer-menu .menu-item a.hfe-sub-menu-item {
        font-size: 16px;
    }

}

@media only screen and (max-width: 1024px) {
    .rt-wrap-firsthead ul.contact-list li:nth-child(2) {
        margin-right: 0;
    }

    /*header css*/

    header .header-container {
        padding: 15px 15px;
    }

    header .header-container .book-online {
        margin-left: 624px;
    }

    #masthead .header-container .e-con-inner {
        justify-content: space-between;
    }

    #masthead .header-container .e-con-inner .hfe-submenu-icon-arrow {
        order: 3;
    }

    header#masthead.sticky .header-nav-menu {
        margin-top: 0;
    }

    header#masthead .hfe-nav-menu__toggle .hfe-nav-menu-icon {
        display: block;
        opacity: 0;
    }

    header#masthead .hfe-nav-menu__toggle::before {
        content: "";
        position: absolute;
        height: 3px;
        width: 23px;
        background: #d9d9d9;
        top: 0;
        right: 0;
        left: 0;
        bottom: 0;
        margin: auto;
        box-shadow: 0 -8px 0 0 #d9d9d9, 0 8px 0 0 #d9d9d9;
        transition: 0.5s all;
        z-index: auto;
    }

    body.sticky header#masthead .hfe-nav-menu__toggle::before {
        background: #1f2122;
        box-shadow: 0 -8px 0 0 #1f2122, 0 8px 0 0 #1f2122;
    }

    body.sticky header#masthead .hfe-nav-menu__toggle.hfe-active-menu-full-width::before {
        background: #d9d9d9;
        box-shadow: 0 -8px 0 0 transparent, 0 8px 0 0 transparent;
    }

    .fixed-header .fixed-header-nav header#masthead .hfe-nav-menu__toggle::before {
        content: "";
        position: absolute;
        height: 3px;
        width: 23px;
        background: #1f2122;
        top: 0;
        right: 0;
        left: 0;
        bottom: 0;
        margin: auto;
        box-shadow: 0 -8px 0 0 #1f2122, 0 8px 0 0 #1f2122;
        transition: 0.5s all;
        z-index: auto;
    }

    .no-scroll.show.menu {
        overflow: hidden;
    }

    header#masthead .hfe-nav-menu__toggle.hfe-active-menu::before {
        box-shadow: none;
        transform: rotate(45deg);
        background: #fff;
    }

    header#masthead .hfe-nav-menu__toggle.hfe-active-menu::after {
        height: 3px;
        width: 23px;
        background: #fff;
        content: "";
        position: absolute;
        margin: auto;
        top: 0;
        right: 0;
        left: 0;
        bottom: 0;
        transform: rotate(-45deg);
        transition: 0.5s all;
    }

    header#masthead .hfe-nav-menu__toggle.hfe-active-menu {
        z-index: 999999;
        background-color: #000;
    }

    header#masthead .hfe-nav-menu__toggle.hfe-active-menu+nav {
        transform: translateY(0);
    }

    header#masthead nav {
        position: fixed;
        top: 0;
        right: 0;
        left: 0 !important;
        bottom: 0;
        padding: 65px 12px 0 12px;
        background: #000;
        height: 100vh;
        overflow: hidden;
        transform: translateX(100%);
        transition: 0.5s all;
        z-index: 99999 !important;
        width: 100% !important;
        margin: 0;
        border-radius: 0;
        display: block;
    }

    header#masthead nav::before {
        content: "";
        position: absolute;
        top: 15px;
        left: 20px;
        background: url('/wp-content/uploads/2024/12/seldom-white.png') !important;
        z-index: 100000000 !important;
        /* background-color: #fff; */
        width: 100px;
        height: 50px;
    }

    header#masthead nav>ul {
        overflow: hidden;
        max-height: calc(100vh - 104px);
        display: block;
        opacity: 1;
        overflow-y: auto;
    }

    body #masthead .header-container .header-menu ul.sub-menu .menu-item a.hfe-sub-menu-item {
        text-align: left;
    }

    header#masthead nav>ul>li>a,
    header#masthead nav ul li>div>a {
        background: transparent;
        margin: 0px !important;
        padding: 20px 15px !important;
        color: white;
        border: 0;
        border-radius: 10px;
    }

    header#masthead nav>ul>li>a,
    header#masthead nav ul li>div>a {
        background: transparent;
        margin: 0px !important;
        padding: 20px 15px !important;
        color: white;
        border: 0;
    }

    body #masthead .header-container .header-menu li.menu-item .hfe-has-submenu-container a.hfe-menu-item::before {
        display: none;
    }

    header#masthead nav ul li.current_page_item>div>a,
    header#masthead nav ul li.current_page_item>a,
    header#masthead nav ul li.current-menu-parent {
        background: #E6E9EF !important;
        color: #00235A !important;
    }

    header#masthead nav ul li.current-menu-parent>div>a {
        color: #333;
    }

    header#masthead nav ul li.current-menu-parent>div i::before,
    header#masthead nav ul li.current-menu-parent>div i::after {
        background: #333;
    }

    header#masthead nav ul li.current-menu-parent>div i::before {
        background: transparent;
    }

    header#masthead nav>ul>li:first-child {
        border-left: 0;
    }

    /*header css*/

    .banner-container .content-wrap {
        width: 51%;
        padding-right: 0;
    }

    .banner-container .content-wrap h2 {
        font-size: 50px;
        line-height: 62px;
    }

    p.about-dentist span,
    .about-services span {
        font-size: 16px;
        line-height: 28px;
    }

    .about-dentist-wrapper p.name,
    .services-title {
        font-size: 20px;
        line-height: 30px;
    }

    /*footer css*/

    body footer#colophon .footer-container .hfe-nav-menu__layout-horizontal {
        visibility: visible;
        opacity: 1;
        height: auto;
        background-color: transparent;
    }

    body footer#colophon .footer-container .hfe-nav-menu__toggle {
        visibility: hidden;
        opacity: 0;
        display: none;
    }

    body .footer-container .hfe-nav-menu__layout-horizontal a.hfe-menu-item,
    body .footer-container .hfe-nav-menu__layout-horizontal {
        background-color: transparent !important;
    }

    body .footer-container .hfe-nav-menu__layout-horizontal ul li {
        border: 0 !important;
    }

    body .footer-container .hfe-nav-menu__layout-horizontal ul li .hfe-menu-item {
        padding: 0 !important;
    }

    body footer#colophon .footer-container .hfe-nav-menu__breakpoint-tablet .hfe-nav-menu {
        visibility: visible;
        opacity: 1;
        justify-content: center;
        align-items: center;
        flex-wrap: nowrap;
    }

    body footer#colophon .footer-container .hfe-nav-menu__breakpoint-tablet .hfe-nav-menu__layout-horizontal li {
        width: auto;
        margin-right: 0px;
        padding: 0;
    }

    body footer#colophon .footer-container .hfe-nav-menu__breakpoint-tablet .hfe-nav-menu__layout-horizontal li:not(:last-child) {
        margin-right: 20px;
    }

    body footer#colophon .footer-container .hfe-nav-menu__breakpoint-tablet .hfe-nav-menu__layout-horizontal ul.sub-menu {
        min-width: 250px;
    }

    body footer#colophon .footer-container .hfe-nav-menu__breakpoint-tablet .hfe-nav-menu {
        width: auto;
        margin-right: 0px;
        padding: 0;
    }

    body footer#colophon .footer-container .hfe-nav-menu__breakpoint-tablet .hfe-nav-menu__layout-horizontal .hfe-nav-menu .sub-arrow {
        margin-left: 0;
        padding: 3px;
    }

    body footer#colophon .footer-container .hfe-nav-menu__breakpoint-tablet .hfe-nav-menu__layout-horizontal li a.hfe-menu-item {
        background-color: transparent;
    }

    footer#colophon::before {
        left: -200px;
    }

    body footer#colophon .footer-container .hfe-nav-menu__breakpoint-tablet .hfe-nav-menu__layout-horizontal ul.sub-menu.sub-menu-open {
        top: 25px;
    }

    body footer#colophon .footer-container .hfe-nav-menu__breakpoint-tablet .hfe-nav-menu__layout-horizontal ul.sub-menu li a.hfe-sub-menu-item {
        padding: 7px 10px;
        background: #000000;
    }

    #masthead .header-container .header-menu .menu-item ul.sub-menu {
        z-index: 1;
    }
}



@media only screen and (min-width:768px) and (max-width:1023px) {
    .rt-wrap-firsthead ul.contact-list li:nth-child(2) {
        margin-right: 0;
    }
}

@media only screen and (max-width: 1023px) {

    #masthead .header-container .header-menu .menu-item ul.sub-menu {
        z-index: 1;
    }

    header .header-container .book-online {
        margin-left: 0;
    }

    header .header-container {
        padding: 0 15px;
    }

    .heading-title h2:before {
        max-width: 140px;
        height: 28px;
        bottom: -21px;
        left: -12px;
        background-size: 100% 100%;
    }

    .banner-container .content-wrap h2.banner-title2:before {
        max-width: 150px;
        height: 35px;
        bottom: -30px;
        left: 30px;
        background-size: 100% 100%;
    }

    .banner-container .content-wrap h2 {
        font-size: 40px;
        line-height: 52px;
    }

    .banner-slider-content .banner-slider-container .slick-list.draggable {
        height: 635px !important;
    }

    .banner-slider-content .banner-slider-container .slick-list.draggable .banner-title-wrap {
        padding-top: 161px;
        padding-left: 75px;
    }

    body footer#colophon .footer-container .hfe-nav-menu__breakpoint-tablet .hfe-nav-menu__layout-horizontal>ul>li {
        flex: 0 0 50%;
        margin: 0;
    }

    body footer#colophon .footer-container .hfe-nav-menu__breakpoint-tablet .hfe-nav-menu {
        width: 80%;
        margin-right: 0px;
        padding: 0;
        flex-wrap: wrap;
        justify-content: flex-start;
        margin: 0 auto;
    }

    body footer#colophon .footer-container .hfe-nav-menu__breakpoint-tablet .hfe-nav-menu__layout-horizontal li:not(:last-child) {
        margin-right: 0;
        margin-bottom: 13px;
    }

    .detail-container {
        display: flex;
        grid-template-columns: repeat(2, 1fr);
        text-align: center;
        flex-wrap: wrap;
        justify-content: center;
    }

    .mail-site-link-wrap {
        padding-left: 0;
        padding-top: 3px;
        border-top: 1px dashed #00000020;
    }

    button.slick-arrow {
        bottom: -58px;
    }

    body footer#colophon .footer-container .hfe-nav-menu__breakpoint-tablet .hfe-nav-menu__layout-horizontal li a.hfe-menu-item {
        justify-content: flex-start;
    }

    .error-404.not-found .container.error404-wrapper {
        padding-bottom: 86px;
        padding-top: 55px;
    }

}



@media only screen and (max-width: 767px) {

    .rt-wrap-firsthead ul.contact-list li a,
    .rt-wrap-firsthead ul.contact-list li span {
        font-size: 14px;
    }

    header .rt-wrap-firsthead {
        justify-content: center;
    }

    .rt-wrap-firsthead ul.contact-list li:nth-child(2) {
        margin-right: 0;
    }

    /**29-12-2023**/
    .submit-captcha-wrap.div-wrapper .wpcf7-spinner {
        left: auto;
        right: auto;
        margin: 8px 24px;
    }

    /**23-11-2023**/

    main#content .about-page-banner {
        background-size: 100% 100%;
    }

    .banner-slider-content .banner-slider-container .slick-list.draggable .banner-title-wrap {
        padding-top: 79px;
        padding-left: 15px;
    }

    .banner-container .content-wrap h2 {
        font-size: 26px;
        line-height: 32px;
    }

    .banner-container .content-wrap {
        width: 72%;
    }

    .banner-container .content-wrap h2.banner-title2:before {
        max-width: 97px;
        height: 18px;
        bottom: -14px;
        left: 30px;
        background-size: 100% 100%;
    }

    .banner-container .content-wrap h2.banner-title2 {
        margin-bottom: 37px;
    }

    .banner-slider-content a#book-btn,
    .error-404.not-found .common-btn a {
        font-size: 16px;
        line-height: 38px;
        padding: 0 17.7px;
        margin-top: 52px;
    }

    .error-404.not-found .common-btn a {
        margin-top: 0;
    }

    .banner-slider-content .banner-slider-container .slick-list.draggable {
        height: 406px !important;
    }

    .banner-slider-content .banner-slider-container .slick-list.draggable .banner-slider-wrapper.slick-slide {
        background-size: cover;
    }

    .heading-title h2:before {
        max-width: 84px;
        height: 16px;
        bottom: -19px;
        left: 0;
    }

    main#content .about-us-container>.e-con-inner {
        display: flex;
        flex-direction: column-reverse;
    }

    .btn-wrap span:last-child ::before,
    .reviews-descrip-wrap:after {
        width: 18px;
        height: 12px;
        background-size: 17px;
        right: 13px;
    }

    .resp-arrow button.slick-arrow::before {
        background-image: url("../images/white-green-arrow-icon.png");
        width: 31px;
        height: 20px;
        background-position: -51px 1px;
        position: absolute;
        bottom: 0;
    }

    .resp-arrow button.slick-arrow:hover::before {
        background-position: 0px 1px;
        transform: rotate(180deg);
    }

    .resp-arrow button.slick-prev.slick-arrow:hover::before {
        transform: rotate(0);
    }

    .resp-arrow .little-about-services button.slick-arrow::before {
        filter: brightness(0.5);
    }

    .resp-arrow .about-reviews button.slick-arrow:hover::before {
        background-position: -51px 1px;
        opacity: 0.5;
        transform: none;
    }

    .resp-arrow .about-reviews button.slick-prev.slick-arrow:hover::before {
        transform: rotate(180deg);
    }

    .resp-arrow .little-about-services button.slick-arrow:hover::before {
        filter: none;
    }

    .patient-reviews .reviews-descrip-wrap::after {
        height: 16px;
        bottom: -5px;
        background-position: -2px -42px;
        background-size: 22px;
        width: 19px;
    }

    main#content .patient-reviews-container.slick-initialized .slick-list.draggable {
        padding: 0 !important;
    }

    .error-404.not-found .container.error404-wrapper {
        padding-bottom: 45px;
        padding-top: 39px;
    }

    .error-404.not-found h1.section-heading {
        font-size: 65px;
        line-height: 90%;
    }

    .error-404.not-found .page-content h2 {
        font-size: 18px;
    }


    .error-404.not-found .page-content p {
        font-size: 13px;
    }

    iframe#chekkit-frame {
        margin-bottom: 20px;
    }

    #masthead .header-container .header-menu .menu-item ul.sub-menu {
        z-index: 111;
    }

    .our-dentists-wrap .wrapped>.container .tabs {
        min-width: 50%;
        max-width: 50%;
        height: auto;
        border-bottom: 2px solid transparent;
        padding-bottom: 15px;
    }

    /**23-11-2023**/

    .our-dentists-wrap .tabs img {
        max-width: 80px;
        height: 80px;
        border: 3px solid #00923F;
        margin-top: -45px;
        width: 80px;
    }

    .breadcrumb-block a,
    .breadcrumb-block>div {
        font-size: 16px;
        line-height: 22px;
    }

    .tab-content-container .tab-content>div:not(.about-doctor) {
        height: 260px;
        max-width: 260px;
        width: 100%;
        margin: 0 auto;
        float: unset;
    }

    .banner-slider-content .slick-initialized .slick-slide {
        background-position: center center;
    }

    .services-thumbnail a {
        width: 100%;
        height: 100%;
    }

    .elementor-image-box-content p {
        font-size: 16px;
        line-height: 25px;
    }

    .page-id-20 .ti-widget.ti-goog .ti-reviews-container-wrapper {
        max-width: unset;
        padding: unset;
        margin: unset;
        padding-top: 52px;
        padding-bottom: 8px;
    }

    body .ti-widget.ti-goog .ti-controls .ti-next {
        right: -12px;
    }

    body .ti-widget.ti-goog .ti-controls .ti-prev {
        left: -12px;
    }

    .contact-us-section .main-title strong:after {
        margin-top: -13px;
    }

    .testimonial-grid-google .ti-reviews-container-wrapper {
        grid-template-columns: repeat(1, 1fr);
        grid-gap: 40px 20px;
    }

    /*28-12-2023*/

    .logos-wrapper>div {
        display: flex !important;
    }

    body .logos-wrapper>div .logo-wrap {
        max-width: 100px;
        width: 100%;
    }

    body .logos-wrapper>div .logo>div {
        height: 50px;
        max-width: 159px !important;
        width: 100%;
    }

}

@media only screen and (min-width: 480px) and (max-width: 767px) {

    .elementor-54 .elementor-element.elementor-element-c8deb4f nav.hfe-dropdown li a.hfe-sub-menu-item,
    .elementor-54 .elementor-element.elementor-element-c8deb4f .sub-menu a.hfe-sub-menu-item {
        padding-top: 20px !important;
        padding-bottom: 20px !important;
    }

    header .header-container .book-online {
        margin-left: 255px;
    }

    .banner-container .content-wrap {
        width: 39%;
    }

    .detail-container {
        text-align: center;
        justify-content: center;
    }

    body .detail-container .contact-wrap {
        border-left: 1px dashed #00000020;
        padding-left: 15px;
        margin-left: 15px;
    }

    .mail-site-link-wrap {

        padding-top: 3px;

        border-top: 1px dashed #00000020;

    }

    .logos-wrapper>div {
        grid-template-columns: repeat(4, 1fr);
        grid-gap: 40px 20px !important;
    }
}

ul.sub-menu.sub-menu-open {
    left: auto !important;
}

/* =========================================================
   Mobile / Tablet Hamburger Menu — brand-color theming
   Targets HFE plugin's offcanvas + sub-menu-open dropdown
   ⚠ Scoped to NOT(.footer-menu) so footer keeps its light theme
   ========================================================= */
@media (max-width: 1024px) {

    /* Main menu items — bright white text, full opacity */
    :not(.footer-menu) > .hfe-nav-menu > li > a.hfe-menu-item,
    :not(.footer-menu) > .hfe-nav-menu > li > div > a.hfe-menu-item {
        color: #fff !important;
        opacity: 1 !important;
        font-weight: 500 !important;
    }

    /* Hover state on main items */
    :not(.footer-menu) > .hfe-nav-menu > li > a.hfe-menu-item:hover,
    :not(.footer-menu) > .hfe-nav-menu > li > div > a.hfe-menu-item:hover {
        color: var(--ah-accent) !important;
    }

    /* Active page (current) — gold accent */
    :not(.footer-menu) > .hfe-nav-menu > li.current-menu-item > a.hfe-menu-item,
    :not(.footer-menu) > .hfe-nav-menu > li.current-menu-item > div > a.hfe-menu-item,
    :not(.footer-menu) > .hfe-nav-menu > li.current-menu-ancestor > a.hfe-menu-item,
    :not(.footer-menu) > .hfe-nav-menu > li.current-menu-ancestor > div > a.hfe-menu-item,
    :not(.footer-menu) > .hfe-nav-menu > li.current-menu-parent > a.hfe-menu-item,
    :not(.footer-menu) > .hfe-nav-menu > li.current-menu-parent > div > a.hfe-menu-item {
        color: var(--ah-accent) !important;
        font-weight: 600 !important;
    }

    /* Chevron (toggle arrow) — muted white */
    :not(.footer-menu) > .hfe-nav-menu .hfe-menu-toggle,
    :not(.footer-menu) > .hfe-nav-menu .sub-arrow {
        color: rgba(255, 255, 255, .65) !important;
    }

    /* ---- Dropdown panel (HFE adds .sub-menu-open when expanded) ---- */
    body :not(.footer-menu) > .hfe-nav-menu ul.sub-menu,
    body :not(.footer-menu) > .hfe-nav-menu ul.sub-menu.sub-menu-open {
        position: static !important;
        background-color: #1B2055 !important;
        background-image: linear-gradient(180deg, #1B2055 0%, #0F1530 100%) !important;
        border: 0 !important;
        border-left: 2px solid var(--ah-primary) !important;
        border-radius: 10px !important;
        box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .35) !important;
        padding: 8px !important;
        margin: 8px 0 12px 14px !important;
        min-width: 0 !important;
        width: auto !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }

    /* Submenu items inside the dropdown */
    body :not(.footer-menu) > .hfe-nav-menu ul.sub-menu li,
    body :not(.footer-menu) > .hfe-nav-menu ul.sub-menu.sub-menu-open li {
        background: transparent !important;
        margin: 0 !important;
        border: 0 !important;
    }

    body :not(.footer-menu) > .hfe-nav-menu ul.sub-menu li a.hfe-sub-menu-item,
    body :not(.footer-menu) > .hfe-nav-menu ul.sub-menu.sub-menu-open li a.hfe-sub-menu-item,
    body :not(.footer-menu) > .hfe-nav-menu ul.sub-menu li a,
    body :not(.footer-menu) > .hfe-nav-menu ul.sub-menu.sub-menu-open li a {
        color: rgba(255, 255, 255, .85) !important;
        background: transparent !important;
        padding: 10px 14px !important;
        font-size: 14px !important;
        font-weight: 400 !important;
        border-radius: 6px !important;
        border: 0 !important;
        text-decoration: none !important;
    }

    body :not(.footer-menu) > .hfe-nav-menu ul.sub-menu li a:hover,
    body :not(.footer-menu) > .hfe-nav-menu ul.sub-menu.sub-menu-open li a:hover,
    body :not(.footer-menu) > .hfe-nav-menu ul.sub-menu li a.hfe-sub-menu-item:hover {
        color: #fff !important;
        background: rgba(52, 58, 142, .35) !important;
    }

    /* Active page — bright BLUE highlight (brand primary) */
    body :not(.footer-menu) > .hfe-nav-menu ul.sub-menu li.current-menu-item > a,
    body :not(.footer-menu) > .hfe-nav-menu ul.sub-menu.sub-menu-open li.current-menu-item > a,
    body :not(.footer-menu) > .hfe-nav-menu ul.sub-menu li.current-menu-item > a.hfe-sub-menu-item {
        color: #fff !important;
        background: var(--ah-primary) !important;
        font-weight: 600 !important;
    }

    /* Kill desktop dot/underline indicator inside the mobile menu */
    :not(.footer-menu) > .hfe-nav-menu > li > a::after,
    :not(.footer-menu) > .hfe-nav-menu > li > div > a::after,
    :not(.footer-menu) > .hfe-nav-menu > li > a::before,
    :not(.footer-menu) > .hfe-nav-menu > li > div > a::before {
        display: none !important;
    }

    /* Override the desktop "active page" pill background that would
       otherwise clash with the dark mobile theme */
    :not(.footer-menu) > .hfe-nav-menu > li.current-menu-item > a,
    :not(.footer-menu) > .hfe-nav-menu > li.current-menu-item > div > a,
    :not(.footer-menu) > .hfe-nav-menu > li.current-menu-ancestor > a,
    :not(.footer-menu) > .hfe-nav-menu > li.current-menu-ancestor > div > a,
    :not(.footer-menu) > .hfe-nav-menu > li.current-menu-parent > a,
    :not(.footer-menu) > .hfe-nav-menu > li.current-menu-parent > div > a {
        background: transparent !important;
        border-radius: 0 !important;
    }

    /* ----- FOOTER menu — force light-theme readability on mobile ----- */
    .footer-menu .hfe-nav-menu > li > a,
    .footer-menu .hfe-nav-menu > li > a.hfe-menu-item {
        color: var(--ah-muted) !important;
        background: transparent !important;
        opacity: 1 !important;
        font-weight: 400 !important;
    }

    .footer-menu .hfe-nav-menu > li.current-menu-item > a,
    .footer-menu .hfe-nav-menu > li.current-menu-item > a.hfe-menu-item,
    .footer-menu .hfe-nav-menu > li.current-menu-ancestor > a,
    .footer-menu .hfe-nav-menu > li.current-menu-parent > a {
        color: var(--ah-primary) !important;
        background: transparent !important;
        font-weight: 600 !important;
    }
}

/* Menu Hamburger End */