/* ================= Header CSS ================= */
@media (min-width: 991px) {
    .header .top-right {
        width: 50%;
        padding-left: 55px;
    }

    .navbar-brand {
        width: 80px;
    }

    .header .top-right a,
    #main-menu .nav-item>.nav-link {
        font-size: 11px;
    }
}

@media (min-width: 1200px) {
    .header .top-right {
        width: 50%;
        margin-left: 0;
        flex: unset;
        padding-left: 90px;
    }

    .header .menu-wrap {
        flex: unset;
    }

    .header .top-right a,
    #main-menu .nav-item>.nav-link {
        font-size: 14px;
    }
}

@media (max-width: 991px) {
    .navbar {
        padding: 10px;
        min-height: 72px;
    }

    .container-fluid {
        padding: 0;
    }

    .desktop-nav {
        display: none;
    }

    .navbar-brand {
        position: static;
        transform: none;
        max-width: 100px;
        order: 1;
    }

    .menu-wrap {
        order: 3;
        width: auto;
    }

    .top-right {
        order: 2;
        width: auto;
        margin-left: auto;
        gap: 10px;
    }

    .navbar-toggler {
        display: flex;
    }

    .top-right .new-link {
        display: none;
    }

    .top-right .btn-custom {
        padding: 8px 20px;
    }

    #main-menu {
        position: fixed;
        top: 92px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgb(var(--color_base));
        padding: 0 18px;
        overflow-y: auto;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-8px);
        z-index: 998;
    }

    #main-menu.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .mobile-nav {
        display: block;
    }

    .close-icon02 {
        display: none !important;
    }
}

@media (max-width: 620px) {
    .new-link {
        display: none;
    }
}

@media (max-width: 480px) {
    .top-right .btn-custom {
        padding: 8px 10px;
        font-size: 12px;
    }

    .navbar-brand {
        max-width: 70px;
    }
}

@media (max-width: 390px) {
    .navbar-brand {
        max-width: 100px;
    }
}

@media (max-width: 350px) {
    .top-right .btn-custom {
        font-size: 10px;
    }

    .navbar-brand {
        max-width: 80px;
    }
}

/* ================= Footer CSS ================= */

@media (max-width: 1199px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 35px;
    }

    .map {
        padding: 0 50px;
    }
}

@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 40px 25px;
    }

    .footer-bottom {
        padding: 14px 30px 40px;
    }
}

@media (max-width: 767px) {
    .map {
        padding: 0 20px;
        margin-bottom: -70px;
    }

    .map iframe {
        height: 280px;
    }

    .footer {
        padding-top: 120px;
    }

    .footer-logo {
        margin-bottom: 45px;
    }

    .footer-logo img {
        width: 220px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 35px 20px;
    }

    .social-links {
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        padding: 18px 20px 35px;
    }

    .footer p,
    .footer a {
        font-size: 16px;
        line-height: 22px;
    }
}

@media (max-width: 480px) {
    .map {
        padding: 0 16px;
    }

    .footer-logo img {
        width: 180px;
    }
}

/* ================= Xerf Responsive CSS ================= */

@media (max-width: 1200px) {
    .xerf-container {
        max-width: 100%;
    }

    .xerf-hero {
        height: 560px;
    }

    .xerf-reasons-grid {
        gap: 16px;
    }

    .xerf-reason-card {
        padding: 28px 24px;
    }

    .xerf-suitable-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .xerf-treatment-grid {
        gap: 35px;
    }

    .xerf-before-after-slider .splide__arrow--prev {
        left: -55px;
    }

    .xerf-before-after-slider .splide__arrow--next {
        right: -55px;
    }
}

@media (max-width: 991px) {
    .new-page h2 {
        font-size: 28px;
        line-height: 32px;
    }

    .xerf-hero {
        height: 480px;
        background-position: center;
    }

    .xerf-intro-section,
    .xerf-info-dark-section,
    .xerf-journey-section,
    .xerf-faq-section {
        padding-left: 30px;
        padding-right: 30px;
    }

    .xerf-reasons-section,
    .xerf-before-after-section,
    .xerf-suitable-section,
    .xerf-treatment-section,
    .xerf-combination-section {
        padding-left: 30px;
        padding-right: 30px;
    }

    .xerf-reasons-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .xerf-info-dark-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .xerf-info-box h2 {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .xerf-info-box p {
        text-align: center;
        max-width: 760px;
        margin-left: auto;
        margin-right: auto;
    }

    .xerf-treatment-grid {
        flex-direction: column;
        align-items: center;
    }

    .xerf-treatment-content {
        max-width: 100%;
    }

    .xerf-treatment-content h2 {
        text-align: center;
        max-width: 100%;
    }

    .xerf-treatment-image {
        max-width: 620px;
    }

    .xerf-journey-content,
    .xerf-journey-content.active {
        flex-direction: column;
        text-align: center;
    }

    .xerf-journey-text p {
        max-width: 100%;
    }

    .xerf-bullet li {
        text-align: left;
    }

    .xerf-combination-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .xerf-before-after-slider .splide__arrow {
        position: static;
        transform: none;
    }

    .xerf-before-after-slider .splide__arrow svg {
        width: 18px;
        height: 36px;
    }

    .xerf-before-after-slider .splide__arrows {
        position: relative;
        margin-top: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 20px;
    }
}

@media (max-width: 767px) {
    .new-page h2 {
        font-size: 24px;
        line-height: 30px;
    }

    .xerf-hero {
        height: 420px;
        max-height: unset;
        background-position: center;
    }

    .xerf-intro-section,
    .xerf-info-dark-section,
    .xerf-journey-section,
    .xerf-faq-section {
        padding: 50px 20px;
    }

    .xerf-reasons-section,
    .xerf-before-after-section,
    .xerf-suitable-section,
    .xerf-combination-section {
        padding: 50px 20px;
    }

    .xerf-treatment-section {
        padding: 45px 20px;
    }

    .xerf-intro-section p,
    .xerf-reason-card p,
    .xerf-info-box p,
    .xerf-suitable-card p,
    .xerf-treatment-content p,
    .xerf-journey-text p,
    .xerf-combination-section p,
    .xerf-faq-answer p,
    .xerf-bullet li,
    .xerf-combination-grid span {
        font-size: 15px;
        line-height: 21px;
    }

    .xerf-reasons-grid,
    .xerf-suitable-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .xerf-reasons-grid,
    .xerf-suitable-grid {
        margin-top: 28px;
    }

    .xerf-suitable-grid {
        margin-bottom: 24px;
    }

    .xerf-reason-card {
        padding: 24px 20px;
        border-radius: 16px;
    }

    .xerf-reason-card>div {
        gap: 12px;
        margin-bottom: 18px;
    }

    .xerf-reason-icon {
        width: 48px;
        height: 48px;
        flex: 0 0 48px;
    }

    .xerf-reason-icon img {
        width: 30px;
    }

    .xerf-reason-card h3,
    .xerf-suitable-card h3 {
        font-size: 15px;
        line-height: 20px;
    }

    .xerf-before-after-slider {
        margin-top: 26px;
    }

    .xerf-before-after-card {
        border-radius: 16px;
    }

    .xerf-suitable-card {
        padding: 28px 20px;
        border-radius: 16px;
    }

    .xerf-suitable-section .xerf-container>p {
        font-size: 12px;
        line-height: 20px;
    }

    .xerf-treatment-grid {
        gap: 28px;
    }

    .xerf-treatment-image {
        border-radius: 20px;
    }

    .xerf-journey-tabs {
        margin: 35px auto;
        gap: 0;
        border-bottom: 0;
    }

    .xerf-journey-tab {
        padding: 14px 10px;
        border-bottom: 1px solid rgba(246, 242, 232, 0.25);
        font-size: 15px;
        line-height: 20px;
    }

    .xerf-journey-tab.active::after {
        bottom: 0;
    }

    .xerf-journey-content {
        gap: 24px;
    }

    .xerf-journey-text .xerf-btn-custom {
        margin-top: 28px;
    }

    .xerf-bullet {
        gap: 10px;
    }

    .xerf-bullet li {
        align-items: flex-start;
        gap: 10px;
    }

    .xerf-bullet li::before {
        width: 22px;
        height: 22px;
        flex: 0 0 22px;
    }

    #before .xerf-bullet li:nth-child(2),
    #during .xerf-bullet li:nth-child(2),
    #after .xerf-bullet li {
        max-width: 100%;
    }

    .xerf-combination-section h2 {
        margin-bottom: 18px;
    }

    .xerf-combination-grid {
        margin-top: 28px;
    }

    .xerf-combination-grid span {
        padding: 15px;
    }

    .xerf-faq-wrapper {
        margin-top: 28px;
        gap: 12px;
    }

    .xerf-faq-item {
        border-radius: 14px;
    }

    .xerf-faq-question {
        padding: 20px;
        gap: 16px;
        font-size: 16px;
        line-height: 24px;
    }

    .xerf-faq-answer-inner {
        padding: 0 20px 28px;
    }

    .xerf-btn-custom {
        padding: 8px 18px;
    }
}

@media (max-width: 480px) {
    .xerf-hero {
        height: 360px;
    }

    .new-page h2 {
        font-size: 22px;
        line-height: 28px;
    }

    .xerf-intro-section,
    .xerf-info-dark-section,
    .xerf-journey-section,
    .xerf-faq-section,
    .xerf-reasons-section,
    .xerf-before-after-section,
    .xerf-suitable-section,
    .xerf-combination-section {
        padding-top: 45px;
        padding-bottom: 45px;
    }

    .xerf-treatment-section {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .xerf-faq-question {
        font-size: 15px;
        line-height: 22px;
    }

    .xerf-before-after-slider .splide__arrows {
        margin-top: 24px;
    }
}

/* =========================
    Endolift Responsive CSS
========================= */

@media (max-width: 1200px) {
    .new-hero-content {
        padding: 50px 60px;
    }

    .endolift-info-section {
        padding: 50px 30px;
    }

    .endolift-aware-section {
        padding: 60px 30px;
    }

    .endolift-aware-grid {
        gap: 40px;
    }

    .choose-endolift {
        padding: 60px 30px;
    }
}

@media (max-width: 991px) {
    .new-hero {
        height: 560px;
        max-height: unset;
        background-position: center;
    }

    .new-hero-content {
        padding: 45px 30px;
    }

    .new-hero-content h1 {
        font-size: 34px;
        line-height: 38px;
    }

    .choose-endolift .xerf-treatment-content ul li:nth-child(4) {
        max-width: 100%;
    }

    .new-hero-content p {
        max-width: 560px;
    }

    .endolift-info-box {
        padding: 55px 30px;
        border-radius: 24px;
    }

    .endolift-info-box h2 {
        line-height: 34px;
    }

    .endolift-aware-container>h2 {
        margin-bottom: 35px;
    }

    .endolift-aware-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .endolift-aware-col h3 {
        font-size: 20px;
        line-height: 30px;
        margin-bottom: 15px;
    }

    .endolift-surgery h2 {
        max-width: 100%;
    }

    .choose-endolift .xerf-treatment-content {
        max-width: 100%;
    }

    .choose-endolift .xerf-treatment-content ul li {
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    .new-hero {
        height: 480px;
        background-position: center;
    }

    .new-hero-content {
        padding: 35px 20px;
    }

    .new-hero-content h1 {
        font-size: 32px;
        line-height: 36px;
        margin-bottom: 10px;
    }

    .new-hero-content p {
        font-size: 15px;
        line-height: 21px;
        max-width: 100%;
    }

    .endolift-info-section {
        padding: 40px 20px;
    }

    .endolift-info-box {
        padding: 40px 20px;
        border-radius: 20px;
    }

    .endolift-info-box h2 {
        line-height: 30px;
        margin-bottom: 16px;
    }

    .endolift-info-box p {
        font-size: 15px;
        line-height: 21px;
        margin-bottom: 16px;
    }

    .endolift-aware-section {
        padding: 45px 20px;
    }

    .endolift-aware-container>h2 {
        margin-bottom: 24px;
    }

    .endolift-aware-grid {
        gap: 30px;
    }

    .endolift-aware-col h3 {
        font-size: 18px;
        line-height: 28px;
        margin-bottom: 14px;
    }

    .choose-endolift {
        padding: 45px 20px;
    }

    .choose-endolift .xerf-treatment-content h2 {
        margin-bottom: 22px;
    }

    .choose-endolift .xerf-treatment-content ul {
        gap: 10px;
        margin-bottom: 28px;
    }

    .choose-endolift .xerf-treatment-content ul li {
        font-size: 15px;
        line-height: 21px;
    }
}

@media (max-width: 480px) {
    .new-hero {
        height: 480px;
    }

    .new-hero-content h1 {
        font-size: 28px;
        line-height: 32px;
    }

    .endolift-info-box {
        padding: 35px 18px;
        border-radius: 18px;
    }

    .endolift-aware-col h3 {
        font-size: 18px;
        line-height: 26px;
    }
}


/* ================================
   Hair Transplant Responsive CSS
================================ */

@media (max-width: 1200px) {
    .hair-transplant-hero .new-hero-content {
        padding: 80px 60px;
    }

    .ht-doctor-wrapper,
    .ht-approach-wrapper,
    .ht-choose-wrapper {
        gap: 40px;
    }

    .ht-technique-grid,
    .ht-process-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ht-benefit-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .ht-recovery-grid {
        gap: 40px;
    }

    .ht-choose-wrapper {
        gap: 50px;
    }
}

@media (max-width: 991px) {
    .hair-transplant-hero .new-hero-content {
        padding: 70px 40px;
    }

    .ht-before-after-section {
        padding: 50px 24px;
    }

    .ht-doctor-section {
        padding: 50px 30px;
    }

    .ht-doctor-wrapper,
    .ht-approach-wrapper,
    .ht-choose-wrapper,
    .ht-recovery-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .ht-doctor-image,
    .ht-approach-image,
    .ht-choose-image {
        max-width: 650px;
        margin: 0 auto;
    }

    .ht-doctor-content p {
        max-width: 100%;
    }

    .ht-technique-section,
    .ht-process-section,
    .ht-approach-section,
    .ht-recovery-section,
    .ht-choose-section {
        padding-left: 30px;
        padding-right: 30px;
    }

    .ht-benefit-section {
        padding: 60px 30px;
    }

    .ht-technique-card,
    .ht-process-card {
        padding: 28px 28px 36px;
    }

    .ht-recovery-section {
        padding-bottom: 210px;
    }

    .ht-suitable-section {
        padding: 0 30px 60px;
    }

    .ht-suitable-box {
        padding: 55px 30px 45px;
    }
}

@media (max-width: 767px) {
    .hair-transplant-hero .new-hero-content {
        padding: 60px 20px;
    }

    .hair-intro-section p {
        max-width: 100%;
    }

    .ht-before-after-section {
        padding: 40px 20px;
    }

    .ht-before-after-section h2 {
        margin-bottom: 24px;
    }

    .ht-doctor-section {
        padding: 40px 20px;
    }

    .ht-doctor-wrapper {
        gap: 24px;
    }

    .ht-doctor-content h2,
    .ht-approach-content h2,
    .ht-recovery-content h2,
    .ht-choose-content h2,
    .ht-suitable-box h2 {
        line-height: 30px;
        margin-bottom: 16px;
    }

    .ht-doctor-content span {
        font-size: 15px;
        line-height: 20px;
        margin-bottom: 16px;
        text-align: center;
    }

    .ht-doctor-content p,
    .ht-section-heading p,
    .ht-technique-card p,
    .ht-process-card p,
    .ht-approach-content p,
    .ht-benefit-section p,
    .ht-recovery-content p,
    .ht-suitable-box p,
    .ht-choose-content p {
        font-size: 15px;
        line-height: 22px;
    }

    .ht-doctor-content .xerf-btn-custom {
        margin-top: 10px;
    }

    .ht-technique-section {
        padding: 50px 20px;
    }

    .ht-section-heading {
        margin-bottom: 28px;
    }

    .ht-section-heading h2 {
        margin-bottom: 16px;
    }

    .ht-technique-grid,
    .ht-process-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .ht-technique-card,
    .ht-process-card {
        padding: 26px 22px 32px;
    }

    .ht-technique-card h3,
    .ht-process-card h3 {
        font-size: 18px;
        line-height: 23px;
        margin-bottom: 10px;
    }

    .ht-technique-card p:not(:last-child),
    .ht-approach-content p:not(:last-child),
    .ht-recovery-content p:not(:last-child),
    .ht-choose-content p:not(:last-child) {
        margin-bottom: 18px;
    }

    .ht-approach-section {
        padding: 45px 20px;
    }

    .ht-benefit-section {
        padding: 50px 20px;
    }

    .ht-benefit-section h2 {
        margin-bottom: 16px;
    }

    .ht-benefit-list {
        gap: 12px;
        margin: 28px 0;
    }

    .ht-benefit-list li {
        font-size: 15px;
        line-height: 22px;
        padding: 14px;
    }

    .ht-benefit-list li::before {
        width: 24px;
        height: 24px;
    }

    .ht-process-section {
        padding: 45px 20px;
    }

    .ht-recovery-section {
        padding: 50px 20px 190px;
    }

    .ht-recovery-grid {
        gap: 26px;
    }

    .ht-suitable-section {
        margin-top: -140px;
        padding: 0 20px 50px;
    }

    .ht-suitable-box {
        padding: 45px 20px 40px;
        border-radius: 14px;
    }

    .ht-choose-section {
        padding: 45px 20px;
        margin-bottom: 50px;
    }

    .ht-choose-wrapper {
        gap: 26px;
    }

    .ht-doctor-image,
    .ht-doctor-image img,
    .ht-approach-image,
    .ht-choose-image {
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    .hair-transplant-hero .new-hero-content {
        padding: 30px 20px;
    }

    .ht-before-after-section {
        padding: 35px 20px;
    }

    .ht-doctor-section {
        padding: 35px 20px;
    }

    .ht-technique-section,
    .ht-process-section,
    .ht-approach-section,
    .ht-choose-section {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .ht-benefit-section {
        padding-top: 45px;
        padding-bottom: 45px;
    }

    .ht-recovery-section {
        padding-top: 45px;
        padding-bottom: 170px;
    }

    .ht-suitable-section {
        margin-top: -125px;
        padding-bottom: 45px;
    }

    .ht-suitable-box {
        padding: 38px 20px 34px;
    }

    .ht-technique-card,
    .ht-process-card {
        padding: 24px 20px 30px;
    }

    .ht-benefit-list li {
        gap: 8px;
    }

    .ht-benefit-list li::before {
        width: 22px;
        height: 22px;
    }
}