/* Tablet and Small Screen Enhancements */
@media (max-width: 768px) {

    /* Hide top bar on mobile */
    .topbar-one {
        display: none !important;
    }

    .header-navigation .container .logo-box {
        position: relative;
        float: left;
        transform: none;
        left: 0;
        top: 0;
        padding: 10px 0;
    }

    .header-navigation .container .navbar-brand img {
        max-width: 150px;
        height: auto;
    }

    .header-navigation .container .menu-toggler {
        top: 10px !important;
        right: 10px !important;
        width: 45px !important;
        height: 40px !important;
    }
}

@media (max-width: 576px) {

    /* Hide top bar on mobile */
    .topbar-one {
        display: none !important;
    }

    .header-navigation .main-navigation {
        width: 280px !important;
    }

    .header-navigation ul.navigation-box>li>a {
        font-size: 15px !important;
        padding: 15px 18px !important;
    }

    .header-navigation ul.navigation-box>li>.submenu>li>a {
        font-size: 13px !important;
        padding: 12px 20px !important;
    }
}

@media (max-width: 480px) {
    .header-navigation .main-navigation {
        width: 100% !important;
        right: -100% !important;
    }

    .header-navigation .main-navigation.show {
        right: 0 !important;
    }

    .header-navigation ul.navigation-box>li {
        margin: 0 0 3px 0 !important;
    }

    .header-navigation ul.navigation-box>li>a {
        font-size: 14px !important;
        padding: 16px 15px !important;
    }

    .header-navigation .container .navbar-brand img {
        max-width: 120px;
    }
}

/* Large Mobile and Small Tablet */
@media (min-width: 577px) and (max-width: 767px) {
    .header-navigation .main-navigation {
        width: 300px !important;
    }

    .header-navigation ul.navigation-box>li>a {
        font-size: 16px !important;
        padding: 17px 20px !important;
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (max-width: 991px) {
    .header-navigation .main-navigation {
        padding: 60px 20px 20px 20px !important;
    }

    .header-navigation ul.navigation-box>li>a {
        padding: 12px 15px !important;
        font-size: 14px !important;
    }

    .header-navigation ul.navigation-box>li>.submenu>li>a {
        padding: 10px 15px !important;
        font-size: 12px !important;
    }
}

/* Banner Fix for Mobile */
@media (max-width: 768px) {
    .inner-banner {
        background-size: contain !important;
        background-repeat: no-repeat !important;
        background-position: center center !important;
        height: auto !important;
        padding: 0 !important;

        /* Aspect ratio based on typical banner dimensions, adjusting padding-bottom to maintain height */
        /* Assuming a roughly 3:1 or 4:1 ratio, but let's try a safe padding-bottom approach or min-height */
        /* padding-bottom: 40% !important; */
        /* background-color: #f5bcd8; */
        /* Fallback color matching the theme */
    }

    .inner-banner .container {
        display: none;
        /* Hide text overlay if it conflicts, or adjust it. The user said "sides are cutting", implying image content is important. */
    }

    /* If the user wants the text overlay to still be visible but not on top of the image in a weird way: */
    .inner-banner__overlay {
        display: none;
    }
}


@media (max-width: 1199px) {


    .header-navigation {
        margin-bottom: 0;
    }

    .logo-box {
        width: 100%;
        float: none;
        margin: 0 !important;
    }

    .navigation-box {
        margin: 0;
    }

    .navbar-expand-lg .menu-toggler {
        display: block;
        margin-right: 0;
        border-color: #fff;
        background-color: transparent !important;
        margin: 23px 0;
        color: #fff;
        border: none;
        font-size: 28px;
        float: right;
        outline: none;
        cursor: pointer;
    }

    .menu-toggler:hover {
        border-color: #00AD4D;
    }

    .menu-toggler .icon-bar {
        background: #fff;
    }

    .menu-toggler:hover .icon-bar {
        background: #00AD4D;
    }

    .navbar-expand-lg .navbar-collapse {
        padding-bottom: 0;
        overflow: auto !important;
        width: 100%;
    }

    .navbar-expand-lg .navbar-collapse {
        display: none !important;
        background: transparent;
        padding: 0px 0px !important;
        padding-bottom: 0px !important;
        margin: 0;
        background: #000;
        transition: all .5s ease;
        height: 0;
    }

    .navbar-expand-lg .navbar-collapse.showen {
        display: block !important;
        height: auto;
        max-height: 70vh;
    }

    .navbar-collapse.show {
        overflow-y: auto;
    }

    .header-navigation .nav {
        width: 100%;
        text-align: left;
    }

    .header-navigation .nav>li {
        display: block;
        padding: 0 !important;
        width: 100%;
        float: none;
    }

    .header-navigation .nav>li+li {
        margin-left: 0 !important;
    }

    .header-navigation .nav>li>a {
        padding: 8px 0;
    }

    .header-navigation .right-box.nav {
        width: 100%;
        margin: 0;
    }

    .header-navigation .right-box.nav>li>a {
        border: none !important;
        padding: 8px 0;
        color: #fff;
    }

    .header-navigation .nav>li>a:after {
        display: none;
    }

    .header-navigation .nav.navigation-box+.nav {
        border-top: 1px dashed #282828;
    }

    .header-navigation .navigation-box>li>.submenu,
    .header-navigation .navigation-box>li>.submenu>li>.submenu {
        position: relative !important;
        width: 100% !important;
        opacity: 1 !important;
        visibility: visible !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        transition: none !important;
        display: none;
        float: none !important;
        margin: 0;
        -webkit-transform: translateX(0);
        -ms-transform: translateX(0);
        -o-transform: translateX(0);
        transform: translateX(0);
        -webkit-box-shadow: none !important;
        box-shadow: none !important;
    }

    .header-navigation .navigation-box>li>.submenu>li>a::after {
        display: none;
    }

    .header-navigation ul.navigation-box>li+li {
        padding: 0 !important;
        border-top: 1px solid rgba(255, 255, 255, .1);
        display: block;
        float: none;
    }

    .header-navigation .nav>li.show-mobile {
        display: none;
    }

    .header-navigation ul.navigation-box>li>a,
    .header-navigation .right-box.nav>li>a {
        padding: 0;
        display: block;
        color: #fff;
        padding: 16px 0 16px 20px !important;
        transition: background 0.4s ease 0s;
    }

    .header .stricky-fixed.header-navigation .nav>li {
        padding: 0 !important;
    }

    .header-navigation .container .right-side-box {
        top: 23px;
        right: 15px;
        transform: translateY(0%)
    }

    .header-navigation .container {
        display: block;
        padding-right: 0px;
        padding-left: 0px;
        position: relative;
    }

    .header-navigation .container .logo-box {
        position: relative;
        top: 0;
        left: 0;
        -webkit-transform: translateY(0);
        -ms-transform: translateY(0);
        -o-transform: translateY(0);
        transform: translateY(0);
        float: none;
        padding-right: 145px;
    }

    .header-navigation .container .logo-box .navbar-brand {
        float: left;
        padding: 20px 15px;
    }

    .header-navigation .container .logo-box .navbar-toggler {
        float: left;
    }

    .header-navigation ul.navigation-box {
        display: block;
        margin: 0 !important;
        width: 100%;
    }

    .header-navigation ul.navigation-box>li {
        padding: 0;
        display: block;
    }

    .header-navigation ul.navigation-box>li>a {
        display: block;
        padding: 13px 30px;
    }

    .header-navigation ul.navigation-box>li>a:after {
        display: none;
    }

    .header-navigation ul.navigation-box>li+li {
        margin: 0;
    }

    .header-navigation .main-navigation {
        float: none;
        width: 100%;
        display: block;
        text-align: left;
        background: #181818;
        max-height: 70vh;
        overflow-y: scroll;
    }

    .header-navigation .container .menu-toggler {
        display: block;
    }

    .header-navigation.stricky-fixed ul.navigation-box>li {
        padding: 0;
    }

    .header-navigation .container .logo-box .navbar-brand {
        background-color: transparent;
    }

    .header-navigation .container .menu-toggler {
        float: left;
        margin: 23px 0;
        color: #111111;
    }


    .header-navigation {
        padding-left: 0px !important;
        padding-right: 0px !important;
    }

    .header-one .header-navigation .container {
        padding-right: 0;
    }

    .header-one .header-navigation .container .menu-toggler {
        float: right;
        margin-top: 130px;
    }

    .header-one .header-navigation .container .logo-box {
        padding-right: 105px;
    }

    .header-two .header-navigation .container .right-side-box {
        top: 10px;
    }

    .header-one__dental-one .header-navigation .main-navigation,
    .header-two .header-navigation .main-navigation {
        text-align: left;
    }

    .topbar-two .container {
        display: block;
    }

    .topbar-two .logo-box {
        text-align: center;
        margin-bottom: 20px;
    }

    .topbar-two__info {
        width: 100%;
        margin-top: 20px;
    }

    .header-three .header-navigation .container .right-side-box {
        top: 10px;
    }

    .header-one__dental-one .header-navigation ul.navigation-box>li,
    .header-three .header-navigation ul.navigation-box>li {
        padding: 0;
    }

    .header-one__dental-one .header-navigation .container .menu-toggler {
        float: left;
        color: #fff;
    }

    .header-one__dental-one .header-navigation .container .right-side-box {
        top: 10px;
    }

}


/*
* template responsive styles
*/

@media(max-width: 1750px) {
    .appointment-two__about-one__image-block img {
        width: 85%;
    }
}

/* Reduce footer margins on small screens */
@media (max-width: 767px) {
    .footer-one {
        padding-top: 15px !important;
        padding-bottom: 10px !important;
    }

    .footer-one__middle {
        padding: 10px 0 !important;
    }

    .footer-one__widget {
        margin-bottom: 10px !important;
        padding: 0 !important;
    }

    .footer-one__widget-title {
        margin-bottom: 8px !important;
        font-size: 16px !important;
    }

    .footer-one__text {
        margin-bottom: 8px !important;
        font-size: 14px !important;
        line-height: 1.4 !important;
    }

    .footer-one__contact-list-item {
        margin-bottom: 4px !important;
        font-size: 14px !important;
    }

    .footer-one__bottom {
        padding: 15px 0 !important;
    }

    .footer-one__copy-text {
        margin-bottom: 10px !important;
        font-size: 12px !important;
    }

    .footer-one__bottom-links {
        margin: 0 !important;
        padding: 0 !important;
    }

    .footer-one__bottom-links-item {
        margin: 0 5px !important;
        font-size: 12px !important;
    }

    /* Adjust logo size in footer for tablets */
    .footer-one__logo img {
        width: 150px !important;
        margin-bottom: 15px !important;
    }

    /* Remove excessive margins from footer rows */
    .footer-one .row {
        margin-left: -10px !important;
        margin-right: -10px !important;
    }

    .footer-one .col-lg-4,
    .footer-one .col-lg-2,
    .footer-one .col-lg-3,
    .footer-one .col-md-6,
    .footer-one .col-sm-12 {
        padding-left: 10px !important;
        padding-right: 10px !important;
        margin-bottom: 20px !important;
    }

    /* Reduce line height */
    hr {
        margin: 20px 0 !important;
    }
}

/* Ultra-small footer adjustments */
@media (max-width: 575px) {
    .footer-one {
        padding-top: 10px !important;
        padding-bottom: 8px !important;
    }

    .footer-one__middle {
        padding: 8px 0 !important;
    }

    .footer-one__widget {
        margin-bottom: 8px !important;
    }

    .footer-one__widget-title {
        margin-bottom: 6px !important;
        font-size: 15px !important;
    }

    .footer-one__text {
        margin-bottom: 6px !important;
        font-size: 13px !important;
    }

    .footer-one__contact-list-item {
        margin-bottom: 3px !important;
        font-size: 13px !important;
    }

    .footer-one__bottom {
        padding: 12px 0 !important;
        text-align: center !important;
    }

    .footer-one__copy-text {
        margin-bottom: 8px !important;
        font-size: 11px !important;
    }

    .footer-one__bottom-links-item {
        font-size: 11px !important;
        display: block !important;
        margin: 5px 0 !important;
    }

    .footer-one__logo img {
        width: 140px !important;
        margin-bottom: 12px !important;
    }

    hr {
        margin: 15px 0 !important;
    }
}

@media (max-width: 375px) {
    .footer-one {
        padding-top: 8px !important;
        padding-bottom: 6px !important;
    }

    .footer-one__middle {
        padding: 6px 0 !important;
    }

    .footer-one__widget {
        margin-bottom: 6px !important;
    }

    .footer-one__widget-title {
        margin-bottom: 4px !important;
        font-size: 14px !important;
    }

    .footer-one__text {
        margin-bottom: 4px !important;
        font-size: 12px !important;
        line-height: 1.3 !important;
    }

    .footer-one__contact-list-item {
        margin-bottom: 2px !important;
        font-size: 12px !important;
    }

    .footer-one__bottom {
        padding: 10px 0 !important;
        text-align: left !important;
    }

    .footer-one__copy-text {
        margin-bottom: 6px !important;
        font-size: 10px !important;
    }

    .footer-one__bottom-links-item {
        font-size: 10px !important;
        margin: 3px 0 !important;
    }

    .footer-one__logo img {
        width: 130px !important;
        margin-bottom: 10px !important;
    }

    hr {
        margin: 10px 0 !important;
    }
}

@media(max-width: 16400px) {
    .appointment-two__about-one__image-block img {
        width: 65%;
    }
}

@media(max-width: 1199px) {

    .appointment-two__text br,
    .block-title__text br,
    .banner-one__title br {
        display: none;
    }

    .feature-one .custom-col-39 {
        -webkit-box-flex: 0;
        flex: 0 0 40%;
        max-width: 40%;
    }

    .feature-one .custom-col-61 {
        -webkit-box-flex: 0;
        flex: 0 0 60%;
        max-width: 60%;
    }

    .feature-one__curvs:before,
    .feature-one__curvs:after {
        display: none;
    }

    .feature-one__content-block:before {
        display: none;
    }

    .feature-one__content-block .block-title {
        margin-bottom: 50px;
    }

    .feature-one__content-block {
        padding: 50px;
        padding-bottom: 20px;
        padding-right: 20px;
    }

    .feature-one__single {
        margin-bottom: 30px;
    }

    .video-one {
        margin-top: 50px;
    }

    .feature-two__tab-title-link {
        padding-left: 20px;
        padding-right: 20px;
    }

    .blog-one__image>img {
        width: 100%;
    }

    .blog-one__meta {
        display: none;
    }

    .header-one__login {
        padding-left: 25px;
    }

    .footer-one__text br {
        display: none;
    }

    .banner-one .banner-one__title br {
        display: none;
    }

    .banner-one .banner-one__title {
        font-size: 40px;
        line-height: 45px;
    }

    .appointment-two__form {
        margin-right: 30px;
    }

    .feature-four__list-item br,
    .static-banner-two__text br,
    .static-banner-one__box,
    .static-banner-one__text br {
        display: none;
    }

    .feature-one__home-three .video-one {
        margin-top: 65px;
    }

    .feature-three__feature-line {
        font-size: 14px;
    }

    .team-three .bx-wrapper {
        margin-top: 40px;
        max-width: 450px;
        margin-left: auto;
        margin-right: auto;
    }

    .video-two__box {
        display: none;
    }

    .testimonials-two {
        padding-left: 0;
    }

    .video-three {
        max-width: 380px;
    }

    .blog-four__image {
        display: none;
    }

    .blog-four__content {
        padding: 25px;
    }

    .appointment-two__about-one__image-block {
        display: none;
    }

    .about-two__about-page .about-four__image-block {
        max-width: 400px;
    }

    .about-six__image-block img,
    .about-five__image-block img,
    .about-four__image-block img {
        max-width: 100%;
    }

    .about-five__image-block {
        max-width: 400px;
    }

    .about-six__image-block {
        max-width: 290px;
    }

}

@media(max-width: 1024px) {
    .feature-one .custom-col-39 {
        -webkit-box-flex: 0;
        flex: 0 0 100%;
        max-width: 100%;
    }

    .feature-one .custom-col-61 {
        -webkit-box-flex: 0;
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media(max-width: 991px) {

    /* Profile section adjustments for medium devices */
    .person-profile {
        margin: 0 auto 40px;
        max-width: 500px;
    }

    .profile-image-container {
        max-width: 350px !important;
        margin: 0 auto;
    }

    .profile-badge {
        width: 70px !important;
        height: 70px !important;
        bottom: 10px !important;
        right: 10px !important;
    }

    .profile-badge i {
        font-size: 28px !important;
    }

    .banner-one__person {
        display: none !important;
    }

    .banner-one .container {
        padding: 90px 15px;
        /* padding: 105px 15px; */
    }

    .feature-two__person,
    .topbar-one__contact-item:not(:last-child):after {
        display: none;
    }

    .about-one__image-wrap,
    .about-one__content-block {
        padding: 0;
        margin-left: auto;
        margin-right: auto;
        max-width: 645px;
    }

    .about-one__content-block {
        margin-bottom: 50px;
    }

    .appointment-one {
        padding-bottom: 100px;
    }

    .footer-one__widget {
        margin-bottom: 40px;
    }

    .footer-one__top {
        padding-bottom: 60px;
    }

    .footer-one__middle .inner-container {
        padding-bottom: 10px;
    }

    .banner-one__text br {
        display: none;
    }

    .service-six {
        margin-top: 0;
        padding-top: 70px;
    }

    .service-six__single {
        margin-bottom: 30px;
    }

    .video-three {
        position: relative;
        top: 0;
        right: 0;
        transform: translateY(-0%);
        width: 100%;
        max-width: 490px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 200px;
    }

    .appointment-table__content .table {
        width: 1050px;
    }


    .blog-four__image {
        display: table-cell;
    }

    .service-five__dental-two {
        padding: 120px 0;
        -webkit-transform: translateY(0);
        -ms-transform: translateY(0);
        -o-transform: translateY(0);
        transform: translateY(0);
    }

    .feature-five {
        margin-top: 0px;
    }

    .feature-five__content-block {
        margin-bottom: 50px;
    }

    .feature-one__home-three .video-one {
        margin-top: 0;
    }

    .blog-three {
        padding-bottom: 100px;
    }

    .blog-three__single {
        margin-bottom: 30px;
    }

    .contact-two__form,
    .dental-google-map-wrap {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .contact-two__form {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .static-banner-two .appointment-two__form {
        margin-top: 50px;
        margin-left: 0;
    }

    .about-one .flex-row-reverse .about-one__image-wrap {
        margin-left: auto;
        margin-right: auto;
        margin-top: 50px;
    }

    .testimonials-two__carousel {
        right: 0;
    }

    .feature-three__home-three .feature-three__single {
        -webkit-transform: translateY(0);
        -ms-transform: translateY(0);
        -o-transform: translateY(0);
        transform: translateY(0);
    }

    .feature-three__home-three {
        padding: 120px 0;
    }

    .about-three__content {
        margin-bottom: 40px;
    }

    .service-four__content {
        margin-top: 0;
        padding-right: 0;
    }

    .fun-fact-two {
        padding-bottom: 70px;
    }

    .fun-fact-two__single {
        margin-bottom: 50px;
    }

    .team-two {
        padding-bottom: 60px;
        /* padding-bottom: 90px; */
    }

    .team-two__single {
        margin-bottom: 30px;
    }

    .about-two__content {
        margin-left: auto;
        margin-right: auto;
    }

    .about-two__box {
        margin-top: 40px;
        margin-left: auto;
        margin-right: auto;
    }

    .about-one__image-wrap {
        margin-top: 40px;
    }

    /* Custom styles for about-one section on small devices */
    .about-one .row.no-gutters {
        display: flex;
        flex-direction: column;
    }

    .about-one .row.no-gutters>.col-lg-6:last-child {
        order: -1;
        margin-bottom: 20px;
    }

    .about-one .row.no-gutters>.col-lg-6:first-child {
        order: 1;
    }

    .about-one__content-block {
        padding: 0 20px !important;
        margin-bottom: 30px;
    }

    .about-one__image-wrap {
        margin-top: 0;
        margin-bottom: 20px;
        padding: 0 15px;
    }

    .about-one {
        padding-bottom: 20px;
    }

    .about-one__title {
        margin-bottom: 15px;
    }

    .about-one__tag-line {
        margin-bottom: 15px;
    }

    .about-one__text {
        margin-bottom: 15px;
    }

    .about-one__features {
        margin-top: 20px;
    }

    .about-one__btn {
        margin-top: 30px;
    }

    .appointment-table__content {
        padding-right: 0;
    }

    .schedule-one {
        padding-left: 0;
    }

    .appointment-two__content {
        margin-top: 40px;
    }

    .cta-one__left .cta-one__content,
    .cta-one__right .cta-one__content {
        margin-left: auto;
        margin-right: auto;
        padding: 0;
    }

    .about-two__about-page .about-two__content {
        max-width: 100%;
    }

    .product-details__thumb-carousel {
        margin-bottom: 70px;
    }
}

@media(max-width: 767px) {

    /* Profile section adjustments for mobile devices */
    .person-profile {
        margin: 0 auto 30px;
        max-width: 100%;
        padding: 0 10px !important;
    }

    .profile-image-container {
        max-width: 280px !important;
        margin: 0 auto;
    }

    .profile-badge {
        width: 60px !important;
        height: 60px !important;
        bottom: 8px !important;
        right: 8px !important;
    }

    .profile-badge i {
        font-size: 24px !important;
    }

    .profile-info h3 {
        font-size: 26px !important;
    }

    .profile-info p {
        font-size: 14px !important;
    }

    .topbar-one .container {
        flex-direction: column;
    }

    .topbar-one__contact-item:not(:last-child):after {
        display: inline-block;
    }

    .topbar-one__contact {
        margin-bottom: 5px;
        margin-top: 5px;
    }

    /* Default for larger screens */
    .footer-one__bottom .container {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        text-align: left !important;
        flex-wrap: nowrap;
        padding: 15px 0 !important;
    }

    .footer-one__copy-text {
        margin: 0 !important;
        padding-right: 20px !important;
    }

    .footer-one__bottom-links {
        display: flex !important;
        margin: 0 !important;
        padding: 0 !important;
        justify-content: flex-end !important;
        flex: 1;
    }

    .footer-one__bottom-links-item {
        display: inline-block !important;
        margin: 0 0 0 30px !important;
    }

    /* For small screens */
    @media (max-width: 767px) {
        .footer-one__bottom .container {
            flex-direction: column !important;
            text-align: center !important;
            gap: 10px !important;
        }

        .footer-one__bottom-links {
            margin-top: 10px !important;
            display: block !important;
            width: 100% !important;
            justify-content: center !important;
        }

        .footer-one__bottom-links-item {
            display: block !important;
            margin: 5px 0 !important;
            text-align: center !important;
        }
    }

    .appointment-two__tag-line br {
        display: none;
    }

    .topbar-two__info {
        flex-direction: column;
    }

    .topbar-two__info-single {
        width: 300px;
    }

    .topbar-two__info-single+.topbar-two__info-single {
        margin-left: 0;
        margin-top: 20px;
    }

    .static-banner-one__title {
        font-size: 40px;
        line-height: 45px;
    }

    .static-banner-one__box {
        display: flex;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
        margin-top: 40px;
    }

    .about-two__box {
        padding: 0;
    }

    .about-two__box [class*=col-]:last-child {
        margin-top: 30px;
    }

    .service-tab .tab-title .nav-item {
        flex: 1 0 33.333333333%;
    }

    .dental-feature__single {
        margin-top: 30px;
    }

    .topbar-three .container {
        flex-direction: column;
    }

    .topbar-three__right {
        margin-top: 15px;
    }

    .appointment-two__form {
        margin-right: 0;
    }
}

/* Tabs Section Responsive */
@media (max-width: 1199px) {
    .feature-tab-btn {
        padding: 14px 25px !important;
        font-size: 15px !important;
        height: 50px !important;
    }

    .feature-tab-btn i {
        font-size: 16px !important;
    }
}

/* Tab buttons in 2x2 grid on all screens */
.nav-tabs {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 12px !important;
    width: 100% !important;
    margin: 0 auto 20px !important;
    max-width: 600px !important;
    padding: 0 15px !important;
    box-sizing: border-box !important;
}

.feature-tab-btn {
    width: 100% !important;
    margin: 0 !important;
    padding: 14px 10px !important;
    font-size: 15px !important;
    height: 54px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    border-radius: 30px !important;
    transition: all 0.3s ease !important;
}

.feature-tab-btn i {
    font-size: 16px !important;
    margin-right: 6px !important;
}

/* Adjust for different screen sizes */
@media (max-width: 991px) {
    .feature-tab-btn {
        padding: 14px 8px !important;
        font-size: 15px !important;
        height: 50px !important;
    }

    .feature-tab-btn i {
        font-size: 15px !important;
        margin-right: 5px !important;
    }
}

/* Adjust for smaller screens */
@media (max-width: 576px) {
    .nav-tabs {
        gap: 10px !important;
        padding: 0 10px !important;
    }

    .feature-tab-btn {
        font-size: 14px !important;
        padding: 12px 6px !important;
        height: 48px !important;
    }

    .feature-tab-btn i {
        font-size: 14px !important;
        margin-right: 4px !important;
    }
}

/* Extra small screens */
@media (max-width: 400px) {
    .feature-tab-btn {
        font-size: 13px !important;
        padding: 10px 4px !important;
        height: 46px !important;
    }

    .feature-tab-btn i {
        font-size: 13px !important;
        margin-right: 3px !important;
    }
}

/* Team Member Cards Styling */
.team-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #f0f0f0;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(150, 10, 110, 0.15);
}

.team-member__image-container {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
}

.team-member__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-card:hover .team-member__image {
    transform: scale(1.05);
}

.team-member__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(150, 10, 110, 0) 0%, rgba(150, 10, 110, 0.7) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-card:hover .team-member__overlay {
    opacity: 1;
}

.team-member__info {
    padding: 25px 20px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.team-member__name-container {
    margin-bottom: 15px;
}

.team-member__name {
    color: #351F76 !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    margin: 0 0 5px 0 !important;
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
}

.team-member__name::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(135deg, #960A6E 0%, #7A0859 100%);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.team-card:hover .team-member__name::after {
    width: 80px;
}

.team-member__title {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 15px;
    font-weight: 500;
}

.team-social-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: -18px;
    /* margin-top: 15px; */
}

.team-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f8f9fa;
    color: #960A6E;
    font-size: 14px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid #eee;
}

.team-social-link:hover {
    background: #960A6E;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(150, 10, 110, 0.3);
}

/* Responsive adjustments */
@media (max-width: 1199px) {
    .team-member__name {
        font-size: 18px !important;
    }

    .team-member__title {
        font-size: 13px;
    }

    .team-social-link {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }
}

@media (max-width: 991px) {
    .team-member__info {
        padding: 20px 15px;
    }

    .team-member__name {
        font-size: 17px !important;
    }

    .team-social-link {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 767px) {
    .team-card {
        margin-bottom: 30px;
    }

    .team-member__name {
        font-size: 18px !important;
    }

    .team-social-link {
        width: 36px;
        height: 36px;
    }
}

/* Success Stories Styling */
.testimonial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.testimonials-three__title {
    margin: 0 !important;
    font-size: 20px !important;
    color: #351F76 !important;
    position: relative;
    padding-right: 10px;
    display: inline-block;
}

.testimonials-three__title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(135deg, #960a6e 0%, #7a0859 100%);
    border-radius: 3px;
}

.social-links {
    display: flex;
    gap: 8px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #f5f5f5;
    color: #960a6e;
    font-size: 14px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid #eee;
}

.social-link:hover {
    background: #960a6e;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(150, 10, 110, 0.3);
}

.testimonials-three__single {
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonials-three__content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.testimonials-three__video {
    margin-top: auto;
    padding-top: 15px;
}

/* Hover effects */
.testimonials-three__single:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .testimonials-three__title {
        font-size: 18px !important;
    }

    .social-link {
        width: 28px;
        height: 28px;
        font-size: 13px;
    }
}

@media (max-width: 767px) {
    .testimonial-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .social-links {
        margin-top: 5px;
    }

    .testimonials-three__title {
        font-size: 16px !important;
    }

    .social-link {
        width: 26px;
        height: 26px;
        font-size: 12px;
    }
}

/* Mission Section Spacing */
@media (max-width: 767px) {
    .feature-one {
        padding: 20px 0 !important;
    }

    .feature-one__content-block {
        padding: 30px 15px !important;
    }

    .feature-title {
        font-size: 24px !important;
        margin-bottom: 15px !important;
    }

    .feature-description {
        font-size: 14px !important;
        line-height: 1.6 !important;
        margin-bottom: 15px !important;
    }

    /* Reduce space before footer */
    .feature-one+.feature-two {
        margin-top: 0 !important;
    }

    .feature-two {
        padding: 0px 0 !important;
    }

    .feature-two__content-block {
        padding: 20px 15px !important;
    }

    .tab-content-card {
        padding: 20px !important;
    }

    /* Footer adjustments */
    .footer-one {
        margin-top: 0 !important;
        padding-top: 20px !important;
    }

    .footer-one__middle {
        padding: 20px 0 !important;
    }
}

/* Healthcare Section Responsive Styles */
@media (max-width: 1199px) {
    .feature-one__content-block {
        padding: 40px !important;
    }

    .feature-title {
        font-size: 42px !important;
    }

    .feature-description {
        font-size: 16px !important;
    }
}

@media (max-width: 991px) {
    .feature-one__content-block {
        padding: 30px !important;
    }

    .feature-title {
        font-size: 36px !important;
    }

    .feature-badge span {
        font-size: 14px !important;
        padding: 6px 16px !important;
    }

    .feature-card {
        padding: 25px !important;
    }

    .feature-icon {
        width: 50px !important;
        height: 50px !important;
    }

    .feature-icon i {
        font-size: 22px !important;
    }
}

@media (max-width: 767px) {
    .feature-title {
        font-size: 32px !important;
    }

    .feature-description {
        font-size: 15px !important;
        margin-bottom: 30px !important;
    }

    .feature-card {
        margin-bottom: 20px !important;
    }

    .feature-card-title {
        font-size: 16px !important;
    }

    .feature-card-text {
        font-size: 13px !important;
    }
}

@media (max-width: 575px) {
    .feature-one__content-block {
        padding: 20px 15px !important;
    }

    .feature-title {
        font-size: 22px !important;
        margin-bottom: 15px !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .feature-badge {
        margin-bottom: 10px !important;
    }

    .feature-badge span {
        font-size: 10px !important;
        padding: 3px 10px !important;
        white-space: nowrap;
    }

    .feature-description {
        font-size: 12px !important;
        margin-bottom: 20px !important;
        line-height: 1.5 !important;
    }

    .feature-icon {
        width: 36px !important;
        height: 36px !important;
        margin-bottom: 10px !important;
    }

    .feature-icon i {
        font-size: 16px !important;
    }

    .feature-card {
        padding: 15px !important;
    }

    .feature-card-title {
        font-size: 13px !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-bottom: 8px !important;
    }

    .feature-card-text {
        font-size: 11px !important;
        line-height: 1.4 !important;
        margin-bottom: 0 !important;
    }

    .service-one__single {
        margin-bottom: 50px;
    }

    .video-one {
        margin: 0;
    }

    .appointment-one {
        margin-top: 0;
    }

    .banner-wrapper .carousel-btn-block .carousel-btn {
        position: relative;
        top: 0;
        right: 0;
        left: 0;
        -webkit-transform: translate(0);
        -ms-transform: translate(0);
        -o-transform: translate(0);
        transform: translate(0);
    }

    .banner-carousel-btn {
        position: absolute;
        bottom: 70px;
        left: 50%;
        -webkit-transform: translateX(-50%);
        -ms-transform: translateX(-50%);
        -o-transform: translateX(-50%);
        transform: translateX(-50%);
        z-index: 9;
    }

    .banner-wrapper .carousel-btn-block .carousel-btn.left-btn {
        left: 0;
        margin-right: 20px;
    }

    .banner-wrapper .carousel-btn-block .carousel-btn.right-btn {
        right: 0;
    }

    .about-one__image-wrap .col-lg-7 {
        max-width: 100% !important;
        float: none;
    }

    .about-one__image-wrap .col-lg-5 {
        max-width: 100% !important;
        float: none;
    }

    /* Additional styles for very small devices */
    .about-one .row.no-gutters>.col-lg-6:last-child {
        margin-bottom: 15px;
    }

    .about-one__content-block {
        padding: 0 15px !important;
        margin-bottom: 20px;
    }

    .about-one__image-wrap {
        padding: 0 10px;
        margin-bottom: 15px;
    }

    .about-one {
        padding-bottom: 40px;
    }

    .about-one__title {
        font-size: 24px;
        margin-bottom: 10px;
    }

    .about-one__tag-line {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .about-one__text {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 10px;
    }

    .about-one__features {
        margin-top: 15px;
    }

    .about-one__features-item {
        font-size: 14px;
        padding-left: 20px;
    }

    .about-one__btn {
        margin-top: 20px;
    }

    .cta-one__left .cta-one__content,
    .cta-one__right .cta-one__content {
        padding-left: 30px;
        padding-right: 30px;
    }

    .feature-two__content-block {
        /* padding-right: 0; */
        padding-left: 30px;
        padding-right: 30px;
    }

    .footer-one__bottom-links {
        text-align: left !important;
        justify-content: flex-start !important;
    }

    .inner-banner__title {
        font-size: 40px;
    }

    .inner-banner {
        padding: 1px 0;
    }


    .team-three__list {
        padding-right: 0;
    }

    .about-four__image-block img {
        max-width: 100%;
    }

    .about-four__image-two {
        -webkit-transform: translateY(50px) translateX(10%);
        -ms-transform: translateY(50px) translateX(10%);
        -o-transform: translateY(50px) translateX(10%);
        transform: translateY(50px) translateX(10%);
    }

    .video-two__shape-bg {
        display: none;
    }

    .about-one .flex-row-reverse .dental-feature__content,
    .about-one .flex-row-reverse .about-one__content-block {
        padding-left: 0;
    }

    .contact-two__form {
        padding-top: 50px;
        padding-bottom: 50px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .post-filter-one__appointment-table {
        margin-bottom: 50px;
    }

    .service-three__icon,
    .service-three__content {
        display: block;
    }

    .service-three__icon {
        border: none;
    }

    .service-three__content {
        padding-left: 0;
        padding-top: 20px;
    }

    .service-three__single {
        margin-bottom: 50px;
    }

    .service-three {
        padding-bottom: 70px;
    }
}

@media(max-width: 768px) {
    .banner-one__title {
        font-size: 40px;
        line-height: 45px;
    }

    .person-profile .profile-image {
        width: 250px !important;
        height: 250px !important;
        max-width: 100% !important;
        max-height: 100% !important;
    }

    .portfolio-header .portfolio-title {
        font-size: 28px !important;
        margin-bottom: 15px !important;
    }

    /* //FOTTER GAP */
    .footer-one__widget-title {
        margin: 5px 0 10px !important;
    }
    /* FAQ Form Style code for Mobile */
    @media (max-width: 600px) {
        .contact-one__form {
            gap: 1px !important;
        }

        .contact-one__form input,
        .contact-one__form select,
        .contact-one__form textarea {
            padding: 12px !important;
            width: 100% !important;
            border-radius: 8px;
        }
    }


    .portfolio-subtitle-container {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0 0 10px 0;
        text-align: center;
        margin: 0 !important;
    }

    .portfolio-subtitle {
        display: inline-flex !important;
        font-size: 16px !important;
        margin: 0 !important;
        white-space: nowrap;
    }

    .portfolio-subtitle i {
        font-size: 16px !important;
        flex-shrink: 0;
    }

    .portfolio-subtitle span {
        display: inline-flex !important;
        align-items: center;
        white-space: nowrap;
        gap: 8px;
    }

    .feature-two .nav-tabs {
        display: -webkit-flex;
        display: -moz-flex;
        display: -ms-flex;
        display: -o-flex;
        display: flex;
        justify-content: space-between;
    }

    .feature-two .nav-tabs .nav-item {
        width: 50%;
        text-align: center;
        margin-bottom: 15px;
        border: 1px solid #cacaca;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .feature-two__tab-title {
        border-bottom: 0;
    }

    .feature-two__tab-title-link {
        padding-bottom: 0;
    }

    .feature-two__tab-title-link:before {
        top: calc(100% + 10px);
    }

    /* Enhanced counseling services styles for small devices */
    .feature-two__content-block {
        padding: 0 15px;
        margin-bottom: 30px;
    }

    .feature-two .block-title {
        margin-bottom: 30px;
        margin-top: -25px;
    }

    .feature-two .block-title__title {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .feature-two .block-title__text {
        font-size: 16px;
        margin-bottom: 20px;
        text-align: left;
        padding: 0 10px;
    }

    /* Enhanced button styles for counseling services */
    .feature-two .nav-tabs {
        margin: 0 auto;
        max-width: 90%;
        border: none;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        border-radius: 20px;
        padding: 15px;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
        backdrop-filter: blur(10px);
    }

    .feature-two .nav-tabs .nav-item {
        width: 48%;
        margin: 1%;
        border: none;
        padding: 0;
        border-radius: 12px;
        overflow: hidden;
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        position: relative;
    }

    .feature-two .nav-tabs .nav-item:hover {
        transform: translateY(-4px) scale(1.02);
        box-shadow: 0 12px 35px rgba(150, 10, 110, 0.25);
    }

    .feature-two__tab-title-link {
        padding: 15px 10px !important;
        font-size: 14px;
        font-weight: 700;
        border: none !important;
        border-radius: 12px !important;
        background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #e9ecef 100%);
        color: #351F76;
        text-align: center;
        min-height: 70px;
        display: flex !important;
        align-items: center;
        justify-content: center;
        transition: all 0.4s ease;
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
        position: relative;
        overflow: hidden;
    }

    .feature-two__tab-title-link:before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
        transition: left 0.6s ease;
    }

    .feature-two__tab-title-link:hover:before {
        left: 100%;
    }

    .feature-two__tab-title-link:hover {
        background: linear-gradient(135deg, #ffffff 0%, #f1f3f5 100%);
        color: #860963;
        transform: translateY(-2px);
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    }

    .feature-two__tab-title-link.active {
        background: linear-gradient(135deg, #b61c8a 0%, #960a6e 50%, #7a0859 100%) !important;
        color: white !important;
        box-shadow: 0 8px 25px rgba(150, 10, 110, 0.4);
        transform: translateY(-2px);
        border: 2px solid rgba(255, 255, 255, 0.2) !important;
    }

    .feature-two__tab-title-link.active:before {
        display: none;
    }

    .feature-two__tab-title-link:before {
        display: none;
    }

    /* Reduce padding in tab content */
    .feature-two__tab-content {
        margin-top: 20px;
        padding: 0 10px;
    }

    .feature-two__content {
        padding: 20px 15px;
        background: white;
        border-radius: 15px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    }

    .feature-two__text {
        font-size: 14px;
        text-align: left;
        line-height: 1.7;
        margin-bottom: 0;
    }

    .feature-one__content-block {
        padding-left: 15px;
        padding-right: 15px;
    }

    .testimonials-one__icon,
    .testimonials-one__content {
        display: block;
        padding: 0px;
    }

    .testimonials-one__content {
        margin-top: 20px;
    }

    .testimonials-one .owl-theme .owl-dots {
        margin-top: 35px;
    }

    .topbar-three__link+.topbar-three__link {
        margin-left: 0;
        margin-top: 15px;
    }

    .video-three {
        display: none;
    }

    .blog-four__image,
    .blog-four__content {
        display: block;
    }

    .blog-four__image img {
        width: 100%;
    }

    .topbar-one__contact-item:not(:last-child):after {
        display: none;
    }

    .topbar-one__contact-item:not(:last-child) {
        margin-left: 10px;
    }

    .topbar-one__contact {
        display: -webkit-flex;
        display: -moz-flex;
        display: -ms-flex;
        display: -o-flex;
        display: flex;
    }

    .schedule-one .inner-content:before {
        width: 99%;
    }

    .comment-one__image,
    .comment-one__content {
        display: block;
    }

    .comment-one__content {
        padding: 0;
        margin-top: 30px;
    }

    .blog-details__share-link {
        margin-bottom: 10px;
    }

    .newsletter-one__form button[type=submit] {
        border-radius: 27.5px;
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%) translateY(10px);
    }

    .testimonials-two__single {
        padding: 15px;
        padding-bottom: 50px;
    }
}

@media(max-width: 375px) {
    .schedule-one__sep {
        display: none;
    }

    .feature-two .nav-tabs .nav-item {
        width: 100%;
    }

    .topbar-one__contact-item {
        align-items: center;
        display: -webkit-flex;
        display: -moz-flex;
        display: -ms-flex;
        display: -o-flex;
        display: flex;
    }

    .topbar-one__contact-item+.topbar-one__contact-item {
        margin-top: 5px;
    }

    .appointment-one .inner-container {
        padding-left: 30px;
        padding-right: 30px;
    }

    .header-navigation .container .right-side-box {
        display: none !important;
    }

    .header-navigation .container .menu-toggler {
        float: right !important;
    }

    .header-navigation .container .logo-box {
        padding-right: 15px !important;
    }

    .topbar-one__contact {
        flex-direction: column;
    }

    .comment-one__btn {
        position: relative;
        margin-top: 30px;
    }

    .single-shop-page .product-tab-box .tab-title li a {
        padding: 14px 17.5px;
    }

    .static-banner-one__box-single {
        width: 70px;
        height: 70px;
    }

    .static-banner-one__box-single i {
        font-size: 30px;
    }

    .feature-one__single {
        flex-direction: column;
    }

    .feature-one__content {
        padding-left: 0;
        padding-top: 29px;
    }

    .service-tab .tab-title .nav-item {
        flex: 1 1 100%;
    }

    .service-tab .tab-title .nav-item+.nav-item {
        margin-top: 15px;
    }

    .service-tab .tab-title .nav-item .nav-link:before {
        display: none;
    }

    .feature-five__icon,
    .feature-five__content {
        display: block;
    }

    .feature-five__content {
        padding-left: 0;
        padding-top: 20px;
    }

    /* Ultra-small device optimizations for counseling services */
    .feature-two .nav-tabs {
        max-width: 95%;
        padding: 12px;
        border-radius: 18px;
    }

    .feature-two .nav-tabs .nav-item {
        width: 48%;
        margin: 1% 0.5%;
        border-radius: 10px;
    }

    .feature-two__tab-title-link {
        padding: 12px 6px !important;
        font-size: 11px;
        min-height: 55px;
        border-radius: 10px !important;
        font-weight: 600;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    }

    .feature-two__tab-title-link:before {
        display: none;
    }

    .feature-two .block-title__title {
        font-size: 22px;
    }

    .feature-two .block-title__text {
        font-size: 13px;
        padding: 0 8px;
    }

    .feature-two__content {
        padding: 18px 12px;
        border-radius: 15px;
        box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
    }

    .feature-two__text {
        font-size: 15px;
        line-height: 1.65;
    }

    .feature-two__content-block {
        padding: 0 8px;
        margin-bottom: 25px;
    }
}

/* Enhanced Mission, Vision, Success, History Buttons */
.enhanced-tabs .nav-tabs {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    padding: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.enhanced-tabs .nav-tabs .nav-item {
    margin: 0 5px;
    flex: 1;
    min-width: 120px;
}

.enhanced-tabs .feature-tab-btn {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    color: #495057 !important;
    border: 2px solid transparent !important;
    padding: 15px 20px !important;
    border-radius: 15px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    position: relative !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    min-height: 50px !important;
}

.enhanced-tabs .feature-tab-btn::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent) !important;
    transition: left 0.5s !important;
}

.enhanced-tabs .feature-tab-btn:hover::before {
    left: 100% !important;
}

.enhanced-tabs .feature-tab-btn:hover {
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    color: #212529 !important;
}

.enhanced-tabs .feature-tab-btn.active {
    background: linear-gradient(135deg, #960a6e 0%, #7a0859 100%) !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(150, 10, 110, 0.3) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.enhanced-tabs .feature-tab-btn.active:hover {
    transform: translateY(-4px) scale(1.03) !important;
    box-shadow: 0 10px 30px rgba(150, 10, 110, 0.4) !important;
}

.enhanced-tabs .feature-tab-btn i {
    font-size: 16px !important;
    transition: transform 0.3s ease !important;
    margin-right: 8px !important;
}

.enhanced-tabs .feature-tab-btn:hover i {
    transform: scale(1.2) !important;
}

.enhanced-tabs .feature-tab-btn.active i {
    transform: scale(1.1) !important;
}

/* Responsive adjustments for enhanced tabs */
@media (max-width: 767px) {
    .enhanced-tabs .nav-tabs {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        justify-content: space-between !important;
        padding: 10px !important;
        margin-bottom: 20px !important;
        align-items: stretch !important;
        align-content: flex-start !important;
    }

    .enhanced-tabs .nav-tabs .nav-item {
        width: calc(50% - 4px) !important;
        margin: 0 !important;
        min-width: auto !important;
        margin-bottom: 8px !important;
        flex: 0 0 auto !important;
        display: flex !important;
    }

    .enhanced-tabs .feature-tab-btn {
        min-height: 40px !important;
        font-size: 12px !important;
        padding: 10px 12px !important;
        width: 100% !important;
        justify-content: center !important;
    }

    /* Reduce padding in tab content cards */
    .tab-content-card {
        padding: 25px !important;
        margin: 0 !important;
    }

    .tab-icon {
        width: 50px !important;
        height: 50px !important;
        margin-bottom: 15px !important;
    }

    .tab-icon i {
        font-size: 20px !important;
    }
}

@media (max-width: 575px) {
    .enhanced-tabs .nav-tabs {
        padding: 8px !important;
        border-radius: 12px !important;
        gap: 6px !important;
        margin-bottom: 15px !important;
    }

    .enhanced-tabs .nav-tabs .nav-item {
        width: calc(50% - 3px) !important;
        margin-bottom: 6px !important;
    }

    .enhanced-tabs .feature-tab-btn {
        min-height: 35px !important;
        font-size: 11px !important;
        padding: 8px 10px !important;
        border-radius: 10px !important;
    }

    .enhanced-tabs .feature-tab-btn i {
        font-size: 12px !important;
        margin-right: 4px !important;
    }

    /* Further reduce tab content padding */
    .tab-content-card {
        padding: 20px !important;
        border-radius: 15px !important;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08) !important;
    }

    .tab-icon {
        width: 45px !important;
        height: 45px !important;
        margin-bottom: 12px !important;
    }

    .tab-icon i {
        font-size: 18px !important;
    }

    .tab-content-card h3 {
        font-size: 18px !important;
        margin-bottom: 12px !important;
    }

    .tab-content-card p {
        font-size: 14px !important;
        line-height: 1.6 !important;
    }
}

@media (max-width: 375px) {
    .enhanced-tabs .nav-tabs {
        padding: 6px !important;
        gap: 4px !important;
        margin-bottom: 12px !important;
    }

    .enhanced-tabs .nav-tabs .nav-item {
        width: calc(50% - 2px) !important;
        margin-bottom: 4px !important;
    }

    .enhanced-tabs .feature-tab-btn {
        min-height: 32px !important;
        font-size: 10px !important;
        padding: 6px 8px !important;
        border-radius: 8px !important;
    }

    .enhanced-tabs .feature-tab-btn i {
        font-size: 10px !important;
        margin-right: 3px !important;
    }

    /* Ultra-compact tab content */
    .tab-content-card {
        padding: 15px !important;
        border-radius: 12px !important;
    }

    .tab-icon {
        width: 40px !important;
        height: 40px !important;
        margin-bottom: 10px !important;
    }

    .tab-icon i {
        font-size: 16px !important;
    }

    .tab-content-card h3 {
        font-size: 16px !important;
        margin-bottom: 10px !important;
    }

    .tab-content-card p {
        font-size: 13px !important;
        line-height: 1.5 !important;
    }
}