/*--------------------------------------------------------------
15. Media queries
--------------------------------------------------------------*/

@media (max-width: 1470px) {
.navbar-nav {
	gap: 45px;
}
.mega-section {
    padding: 40px 30px;
}
.header {
    padding: 20px 0px;
}
.mega-inner p {
    margin-bottom: 10px;
}
.mega-section .dropdown-item {
    margin-bottom: 10px;
}
.p-footer p, .contact-sec p{
    margin-bottom: 21px;
}
.p-footer .sub-title {
    font-size: 22px;
    line-height: 30px;
    margin-bottom: 25px;
}
.sec-pad{
    padding: 70px 0px;
}
.p-footer {
    padding: 70px 0px 40px;
}
.contact-box .btn-theme {
    width: 200px;
}
.contact-title {
    font-size: 37px;
    line-height: 47px;
    margin-bottom: 45px;
}
.title{
    font-size: 50px;
    line-height: 65px;
}
.mb-60{
    margin-bottom: 55px;
}
.yc-op .cust-gap {
    --bs-gutter-x: 50px;
    --bs-gutter-y: 50px;
}
.owl-theme .owl-nav {
    margin-right: 200px;
    margin-top: 30px;
    gap: 15px;
}
#why-choose-sfd .owl-theme .owl-nav {
    margin-right: 0px;
    margin-top: 20px;
    justify-content: center;
}
#why-choose-sfd {
    padding-bottom: 40px;
}
#testimonial {
    margin-bottom: 35px;
}
.card-box {
    gap: 200px;
}
.add-btn {
    min-width: 70px;
    height: 70px;
}
.hero-sec{
    padding: 60px 0px 80px 0px;
}
.hero-title{
    font-size: 70px;
    line-height: 80px;
    margin-bottom: 35px;
}
.hero-text{
    font-size: 22px;
    line-height: 32px; /* 141.667% */
    margin-bottom: 40px;
}
.feature-box {
    padding: 35px;
}
.box001 {
    padding: 35px;
}
.step-left h2 {
    font-size: 70px;
    line-height: 80px;
    margin-bottom: 25px;
}
.step-left h3 {
    font-size: 28px;
    line-height: 38px;
}
.connect-technician .form-control {
    font-size: 75px;
    padding: 10px 25px;
}
.box001.download {
    min-height: 328px;
}
.testimonials .modal-content {
    padding: 70px;
}
.video-list .cust-gap{
    --bs-gutter-y: 80px;
}
.play-icon {
    width: 115px;
}
#testimonial .owl-carousel {
    margin-bottom: 55px;
}
#testimonial .owl-theme .owl-nav {
    bottom: -102px;
}
}


@media (max-width: 1400px) {
.steps-wrapper {
    min-height: 464vh;
}
.box001.download {
    min-height: 358px;
}
}


@media (max-width: 1350px) {
.card-title {
    font-size: 24px;
    line-height: 34px;
}
}


@media (max-width: 1200px) {
.btn-header {
    margin-left: 0px; 
    margin-top: 20px;
}
.navbar-nav{
	gap: 30px;
}
.offcanvas .mega-section {
    position: relative;
    width: 100%;
    background: transparent;
    padding: 0px;
    display: none;
    margin-top: 10px;
}

.offcanvas .mega-inner {
    background-color: transparent;
    padding: 20px 20px 10px;
    gap: 0px;
}
.mega-section .dropdown-item {
    font-size: 18px;
    font-weight: 400;
    line-height: 28px;
    margin-bottom: 15px;
}
.contact-title {
    font-size: 33px;
    line-height: 43px;
    margin-bottom: 30px;
}
.modal-content {
    padding: 70px 0px;
}
.sec-pad{
    padding: 50px 0px;
}
.p-footer {
    padding: 50px 0px 40px;
}
.s-footer {
    padding: 30px 0px;
}
.contact-box {
    padding: 30px;
}
.contact-sec {
    padding: 20px;
}
.sub-title {
    font-size: 22px;
    line-height: 32px;
}
.title{
    font-size: 45px;
    line-height: 60px;
}
.trust-text {
    margin-bottom: 30px;
}
.mb-60{
    margin-bottom: 50px;
}
.sub-title-big {
    font-size: 24px;
    line-height: 26px;
}
.yc-op-box .yc-op-img {
    margin-bottom: 20px;
}
.yc-op .cust-gap{
    --bs-gutter-x: 40px;
    --bs-gutter-y: 40px;
}
.customer-profile-box {
    gap: 20px;
    margin-bottom: 20px;
}
.customer-profile {
    min-width: 70px;
    height: 70px;
}
.profile-name {
    font-size: 22px;
    line-height: 24px;
}
.owl-theme .owl-nav {
    margin-right: 110px;
    margin-top: 20px;
    gap: 10px;
}
#why-choose-sfd .owl-theme .owl-nav {
    margin-right: 0px;
    margin-top: 15px;
    justify-content: center;
}
#why-choose-sfd {
    padding-bottom: 30px;
}
#testimonial {
    margin-bottom: 30px;
}
.owl-prev, .owl-next {
    width: 55px;
    height: 55px;
}
.card-box {
    gap: 150px;
}
.add-btn {
    min-width: 60px;
    height: 60px;
}
.hero-sec{
    padding: 50px 0px 70px 0px;
}
.hero-title{
    font-size: 55px;
    line-height: 65px;
    margin-bottom: 30px;
}
.hero-text{
    margin-bottom: 30px;
}
.hero-btn{
    gap: 15px;
}
.card-box .top, .card-box .bottom {
    padding: 20px;
}
.sub-title1 {
    font-size: 24px;
    line-height: 34px;
    margin-bottom: 20px;
}
.feature-box .features-icon {
    margin-bottom: 10px;
}
.feature-box {
    padding: 30px;
}
.box001 .sub-title1 {
    margin-bottom: 15px;
}
.box001{
    padding: 25px;
    border-radius: 20px;
}
.cust-form .form-control{
    padding: 15px;
}
.pricing-text {
    font-size: 22px;
    line-height: 36px;
}
.step-left h2 {
    font-size: 60px;
    line-height: 60px;
    margin-bottom: 15px;
}
.step-left h3 {
    font-size: 26px;
    line-height: 36px;
}
.step-data {
    padding: 25px 25px 15px;
}
.step-data p, .step-data .cust-ul {
    margin-bottom: 15px;
}
.step-content {
    margin-bottom: 70px;
}
.steps-wrapper {
    min-height: 383vh;
}
.inner-hero .hero-text, .connect-technician{
    margin-bottom: 30px;
}
.connect-technician .form-control {
    font-size: 60px;
    padding: 5px 20px;
}
.contact-us p {
    font-size: 22px;
    line-height: 32px;
}
.about-us-text{
    font-size: 25px;
    line-height: 35px;
}
.privacy p, .privacy ol li::marker{
    font-size: 22px;
    line-height: 36px;
}
.privacy{
    margin-bottom: 45px;
}
.privacy h2, .testimonial-text h2{
    font-size: 30px;
    line-height: 40px;
}
.testimonial-text .about-us-text, .testimonial-text h2, .testimonial-text p{
    margin-bottom: 25px;
}
.box001.download {
    min-height: 336px;
}
.testimonials .modal-content {
    padding: 50px;
}
.testi-pro-img {
    min-width: 70px;
    height: 70px;
}
.testimonial-box {
    border-radius: 20px;
    padding: 30px;
}
.testi-pro-box {
    gap: 15px;
    margin-bottom: 30px;
}
.quote {
    margin-bottom: 20px;
}
.quote img{
    width: 45px;
}
.br-10{
    margin-bottom: 20px;
}
.accordion-button h5 {
    font-size: 22px;
    line-height: 32px;
}
.accordion-button {
    padding: 18px 80px 18px 20px;
}
.nav-pills .nav-item .nav-link {
    padding: 15px 20px;
}
#faq .owl-prev, #faq .owl-next{
    width: 45px;
    height: 45px;
}
.accordion-body {
    padding: 0px 40px 20px 20px;
}
.accordion-button.collapsed:after {
    right: 20px;
}
.accordion-button:not(.collapsed)::after {
    right: 20px;
}
.video-list .cust-gap{
    --bs-gutter-y: 60px;
    --bs-gutter-x: 24px;
}
.play-icon {
    width: 100px;
}
.video-outer-box {
    border-radius: 20px;
}
.video-tutorial .video-outer-box {
    margin-bottom: 30px;
}
.video-tutorial .video-inner-box {
    border-radius: 20px;
}
.count {
    font-size: 30px;
    line-height: 50px;
}
.playlist-count img{
    width: 40px;
}
#testimonial .owl-carousel {
    margin-bottom: 45px;
}
#testimonial .owl-theme .owl-nav {
    bottom: -92px;
}
}

/* Fix carousel responsive behavior */
@media (max-width: 1199px) {
    #why-choose-sfd .owl-carousel .owl-stage {
        display: flex !important;
    }
    #why-choose-sfd .owl-carousel .owl-item {
        display: flex !important;
        height: auto !important;
    }
    #why-choose-sfd .owl-carousel .item {
        height: 100%;
    }
    .card-box {
        height: 100%;
        min-height: 400px;
    }
}

/* Intermediate breakpoint for better card scaling */
@media (max-width: 1100px) and (min-width: 993px) {
    .card-box {
        gap: 120px;
        min-height: 380px;
    }
    .card-title {
        font-size: 24px;
        line-height: 34px;
    }
    .card-box .top, .card-box .bottom {
        padding: 25px;
    }
}

@media (max-width: 992px) {
.modal-content .btn-close {
    top: 30px;
    right: 30px;
}
.title{
    font-size: 40px;
    line-height: 55px;
    margin-bottom: 10px;
}
p {
    line-height: 32px;
}
.mb-60{
    margin-bottom: 40px;
}
.card-title {
    font-size: 22px;
    line-height: 32px;
}
.card-small-title {
    font-size: 18px;
    line-height: 20px;
    margin-bottom: 0px;
}
.card-box {
    gap: 80px;
    min-height: 350px;
}
/* Fix carousel items to prevent overflow */
#why-choose-sfd .owl-carousel {
    overflow: hidden;
}
#why-choose-sfd .owl-stage-outer {
    overflow: hidden;
}
#why-choose-sfd .owl-carousel .owl-item {
    float: left;
}
.step-left h2 {
    font-size: 50px;
    line-height: 50px;
    margin-bottom: 15px;
}
.step-left h3 {
    font-size: 22px;
    line-height: 32px;
}
.step-box {
    border-radius: 15px;
    padding: 5px;
}
.step-data {
    padding: 15px 10px 10px;
}
.steps-wrapper {
    min-height: 365vh;
}
.connect-technician .form-control {
    font-size: 50px;
    padding: 10px 20px;
}
.privacy{
    margin-bottom: 35px;
}
.privacy h2{
    margin-bottom: 10px;
}
.testimonial-text .about-us-text, .testimonial-text h2, .testimonial-text p{
    margin-bottom: 20px;
}
.video-list .cust-gap{
    --bs-gutter-y: 50px;
}
.play-icon {
    width: 80px;
}
#testimonial .owl-theme .owl-nav {
    margin-right: 40px;
}
}


@media (max-width: 768px) {
.header {
    padding: 10px 0px;
}
.navbar-brand {
    font-size: 24px;
    line-height: 26px;
}
.navbar-nav {
    gap: 25px;
}
.navbar-nav .nav-link {
    font-size: 18px;
    line-height: 20px;
}
.offcanvas .mega-inner {
    padding: 15px 15px 5px;
}
.mega-section .dropdown-item {
    margin-bottom: 10px;
}
.navbar-toggler-icon{
	width: 25px;
}
.offcanvas .custom-close img {
    width: 30px;
}
.modal-content {
    padding: 50px 0px;
}
.modal-content .btn-close {
    top: 20px;
    right: 20px;
    padding: 0px;
}
.contact-title {
    font-size: 27px;
    line-height: 37px;
    margin-bottom: 20px;
}
.form-label {
    font-size: 18px;
    line-height: 20px;
    margin-bottom: 10px;
}
.modal-body .cust-gap, .contact-box .cust-gap, .cust-form .cust-gap{
    --bs-gutter-y: 20px;
}
.form-control {
    border-radius: 7px;
    padding: 7px 10px;
    font-size: 16px;
    line-height: 18px;
}
.modal-content {
    border-radius: 15px;
}
.btn-theme, .hero-btn .btn-header{
    width: 225px;
    font-size: 18px;
    line-height: 20px;
}
.p-footer .sub-title {
    font-size: 20px;
    line-height: 28px;
    margin-bottom: 15px;
}
.p-footer .f-menu-title {
    font-size: 18px;
    line-height: 28px;
}
.f-menu-title.right-side {
    margin-bottom: 5px;
}
.p-footer p {
    font-size: 16px;
    line-height: 26px;
    margin-bottom: 15px;
}
.f-ul li a {
    font-size: 16px;
    line-height: 26px;
}
.p-footer, .sec-pad{
    padding: 40px 0px;
}
.s-footer .f-link::before {
    display: none;
}
.s-footer ul {
    flex-direction: column;
}
.s-footer {
    padding: 25px 0px;
}
.s-footer ul li, .s-footer .f-link{
    font-size: 18px;
    line-height: 20px;
}
.contact-box {
    border-radius: 10px;
    padding: 20px;
}
.contact-sec {
    border-radius: 10px;
}
.contact-sec p {
    margin-bottom: 16px;
    line-height: 28px;
}
body{
    font-size: 18px;
}
.sub-title {
    font-size: 20px;
    line-height: 30px;
}
.trust-text {
    margin-bottom: 20px;
}
p {
    line-height: 28px;
    margin-bottom: 10px;
}
.title{
    font-size: 35px;
    line-height: 45px;
}
.mb-60{
    margin-bottom: 30px;
}
.sub-title-big {
    font-size: 22px;
    line-height: 24px;
}
.yc-op-box .sub-title-big {
    margin-bottom: 5px;
}
.yc-op .cust-gap {
    --bs-gutter-x: 30px;
    --bs-gutter-y: 30px;
}
.yc-op-box .yc-op-img {
    margin-bottom: 15px;
}
.profile-name {
    font-size: 20px;
    line-height: 22px;
    margin-bottom: 4px;
}
.customer-profile-box {
    gap: 15px;
    margin-bottom: 10px;
}
.customer-profile {
    min-width: 60px;
    height: 60px;
}
.owl-theme .owl-nav {
    margin-top: 15px;
    gap: 10px;
    margin-right: 0px;
    justify-content: center;
}
#why-choose-sfd .owl-theme .owl-nav {
    margin-right: 0px;
    margin-top: 15px;
    justify-content: center;
}
#why-choose-sfd {
    padding-bottom: 20px;
}
.owl-prev, .owl-next {
    width: 45px;
    height: 45px;
}
#testimonial {
    margin-bottom: 15px;
}
.add-btn {
    min-width: 50px;
    height: 50px;
}
.add-btn img{
    width: 15px !important;
}
.owl-prev img,
.owl-next img{
    width: 9px;
}
.hero-sec{
    padding: 40px 0px 60px 0px;
}
.hero-sec.inner-hero {
    padding-top: 60px;
}
.hero-small-title {
    margin-top: 15px;
}
.hero-title{
    font-size: 40px;
    line-height: 50px;
    margin-bottom: 15px;
}
.hero-text{
    font-size: 20px;
    line-height: 30px; /* 141.667% */
    margin-bottom: 20px;
}
.hero-btn{
    gap: 15px;
}
/* 404 Page Responsive */
.error-text {
    font-size: 80px;
}
.error-tooth {
    width: 60px;
    height: 60px;
}
.error-number {
    gap: 15px;
    margin-bottom: 30px;
}
.quick-links-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}
.quick-link-item {
    padding: 15px;
}
.card-box{
    border-radius: 10px !important;
    gap: 60px !important;
    min-height: 250px;
    max-height: 250px;
    overflow: hidden;
}
.card-box .top, .card-box .bottom {
    padding: 15px;
}
/* Ensure carousel items stay in line on mobile */
#why-choose-sfd .owl-stage {
    display: flex !important;
    align-items: stretch;
}
#why-choose-sfd .owl-item {
    display: flex;
    align-items: stretch;
}
.feature-box {
    padding: 15px;
    border-radius: 10px;
    min-height: auto;
}
.feature-box .features-icon {
    margin-bottom: 5px;
}
/* Ensure feature cards don't collapse on mobile */
#features .owl-carousel .owl-item {
    display: flex;
    height: auto;
}
#features .feature-box {
    min-height: 280px;
    display: flex;
    flex-direction: column;
}
.sub-title1 {
    font-size: 22px;
    line-height: 32px;
    margin-bottom: 10px;
}
.cust-ul li {
    font-size: 18px;
    line-height: 28px;
}
/* Fix feature box list items on mobile */
.feature-box .cust-ul {
    flex-grow: 1;
}
.feature-box .cust-ul li {
    font-size: 16px;
    line-height: 24px;
    margin-bottom: 8px;
}
.features-icon img{
    width: 60px !important;
}
.box001 .sub-title1 {
    margin-bottom: 10px;
}
.box001{
    padding: 15px;
    border-radius: 10px;
}
.cust-form .form-control{
    padding: 12px;
}
.pricing-text {
    font-size: 20px;
    line-height: 34px;
}
.steps-wrapper{
    display: none;
}
.mobile-step-wrapper{
    display: block;
}
.mobile-step-wrapper h2 {
    font-size: 40px;
    line-height: 40px;
    margin-bottom: 10px;
    color: #BBDD48;
    font-weight: 700;
    letter-spacing: 3.2px;
}
.mobile-step-wrapper h3 {
    font-size: 20px;
    line-height: 30px;
    color: #FFF;
    font-weight: 700;
    letter-spacing: 1.2px;
    margin-bottom: 20px;
}
.step-box {
    border-radius: 10px;
}
.step-img {
    border-radius: 10px;
}
.step-data p {
    font-size: 18px;
    line-height: 28px;
}
.step-data p, .step-data .cust-ul {
    margin-bottom: 10px;
}
.inner-hero .hero-text, .connect-technician{
    margin-bottom: 20px;
}
.connect-technician .form-control {
    font-size: 30px;
    padding: 10px;
}
.contact-us p {
    font-size: 20px;
    line-height: 30px;
}
.icon-box {
    width: 40px;
    height: 40px;
}
.icon-box img{
    width: 15px;
}
.about-us .about-us-text, .about-us p{
    margin-bottom: 15px;
}
.about-us-text{
    font-size: 22px;
    line-height: 32px;
}
.privacy p, .privacy ol li::marker{
    font-size: 20px;
    line-height: 34px;
}
.privacy{
    margin-bottom: 30px;
}
.privacy h2, .testimonial-text h2{
    font-size: 25px;
    line-height: 35px;
}
.testimonial-text .about-us-text, .testimonial-text h2, .testimonial-text p{
    margin-bottom: 15px;
}
.contact-us {
    gap: 10px;
}
.box001.download {
    min-height: 314px;
}
.testimonials .modal-content {
    padding: 35px;
}
.testimonial-box {
    border-radius: 10px;
    padding: 20px;
}
.testi-pro-img {
    min-width: 60px;
    height: 60px;
}
.testi-pro-box {
    gap: 10px;
    margin-bottom: 20px;
}
.testi-pro-box .cust-name {
    font-size: 18px;
    line-height: 20px;
    margin-bottom: 5px;
}
.testi-pro-box .clinic {
    font-size: 15px;
    line-height: 17px;
}
.quote{
    margin-bottom: 10px;
}
.quote img {
    width: 35px;
}
.br-10{
    margin-bottom: 15px;
}
.accordion-item{
    border-radius: 7px !important;
}
.accordion-button {
    padding: 10px 60px 10px 10px;
}
.accordion-body{
    padding: 0px 20px 10px 10px;
    font-size: 18px;
    line-height: 32px;
}
.accordion-button h5 {
    font-size: 18px;
}
.accordion-button.collapsed:after {
    right: 20px;
}
.video-list .cust-gap{
    --bs-gutter-y: 30px;
    --bs-gutter-x: 16px;
}
.video-outer-box {
    border-radius: 15px;
    padding: 5px;
}
.video-inner-box {
    border-radius: 15px;
}
.testimonials.video-modal .modal-content {
    padding: 50px 35px;
}
.video-tutorial .video-outer-box {
    margin-bottom: 10px;
}
.video-tutorial .video-inner-box {
    border-radius: 15px;
}
.video-tutorial .link {
    font-size: 18px;
    line-height: 28px;
}
.count {
    font-size: 25px;
    line-height: 45px;
}
.playlist-count img {
    width: 35px;
}
#testimonial .owl-carousel {
    margin-bottom: 25px;
}
#testimonial .owl-prev, #testimonial .owl-next{
    width: 40px;
    height: 40px;
}
#testimonial .owl-theme .owl-nav {
    bottom: -70px;
    margin-right: 30px;
}
}


@media (max-width: 576px) {
.modal-content {
    padding: 40px 0px;
}
.modal-body {
    padding: 0px 15px;
}
.sec-pad, .p-footer{
    padding: 30px 0px;
}
.contact-box {
    padding: 15px;
}
.contact-sec {
    padding: 15px;
}
.contact-title {
    font-size: 25px;
    line-height: 35px;
    margin-bottom: 15px;
}
.title{
    font-size: 30px;
    line-height: 40px;
}
.mb-60{
    margin-bottom: 20px;
}
.hero-sec {
    padding: 40px 0px 50px 0px;
}
.owl-theme .owl-nav {
    margin-right: 0px;
    justify-content: center;
}
.mobile-step-wrapper h2 {
    font-size: 35px;
    line-height: 30px;
    margin-bottom: 10px;
}
/* 404 Page Mobile */
.error-text {
    font-size: 60px;
}
.error-tooth {
    width: 45px;
    height: 45px;
}
.error-number {
    gap: 10px;
    margin-bottom: 20px;
}
.quick-links-grid {
    grid-template-columns: 1fr;
    gap: 10px;
}
.quick-link-item {
    padding: 12px;
}
.quick-link-icon {
    width: 30px;
    height: 30px;
}
.privacy{
    margin-bottom: 20px;
}
.privacy h2, .testimonial-text h2{
    font-size: 22px;
    line-height: 32px;
}
.box001.download {
    min-height: auto;
}
.testimonials .modal-content {
    padding: 25px;
}
.testimonial-text .customer-name {
    margin-bottom: 0px;
}
.play-icon {
    width: 65px;
}
/* Fix testimonial card text overflow on mobile */
.customer-profile-box {
    flex-wrap: nowrap;
    align-items: center;
}
.customer-profile-box > div {
    min-width: 0;
    flex: 1;
}
.customer-profile-box .profile-name {
    font-size: 16px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.customer-profile-box .profile-clinic {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.video-inner-box iframe {
    height: 300px;
}
.testimonials.video-modal .modal-content {
    padding: 50px 20px;
}
#testimonial .owl-carousel {
    margin-bottom: 0px;
}
#testimonial .owl-theme .owl-nav {
    position: relative;
    bottom: 0px;
    margin-right: 0px;
    margin-top: 15px;
}
}


@media (max-width: 400px) {
.offcanvas.show{
    width: 100%;
}
.hero-btn{
    flex-direction: column;
}
.connect-technician .form-control {
    font-size: 25px;
}
.connect-technician{
    gap: 6px;
}
.play-icon {
    width: 55px;
}
.video-inner-box iframe {
    height: 200px;
}
}