/* ================================
   Condition Page Styles
   ================================ */

/* Page Header Banner - Dark Background Override */
.page-header-banner::before {
    background: linear-gradient(180deg, rgba(0,0,0,0.77) 0%, rgba(0,0,0,0.59) 100%) !important;
}

/* Breadcrumb - White Home Link */
.page-header-banner .breadcrumb a {
    color: #ffffff !important;
}
.page-header-banner .breadcrumb a:hover {
    color: #CBFFB5 !important;
} 
/* Breadcrumb - White Separator */
.page-header-banner .breadcrumb .separator {
    color: #ffffff !important;
}

/* Breadcrumb - Green Current Item */
.page-header-banner .breadcrumb .current {
    color: #CBFFB5 !important;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

@media (max-width: 992px) {
    .page-header-banner .breadcrumb .current {
        font-size: 14px;
        max-width: 280px;
    }
}

@media (max-width: 768px) {
    .page-header-banner .breadcrumb .current {
        font-size: 13px;
        max-width: 200px;
    }
}

@media (max-width: 576px) {
    .page-header-banner .breadcrumb .current {
        font-size: 11px;
        max-width: 150px;
    }
}

/* Page Header Banner Height */
.page-header-banner {
    min-height: 280px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
}

/* 自适应：tabs 与 banner 高度 */
@media (max-width: 992px) {
    .tabs-wrapper .tab-item {
        padding: 14px 20px;
        font-size: 14px;
    }
    .page-header-banner {
        min-height: 260px;
    }
}

@media (max-width: 768px) {
    .tabs-wrapper .tabs {
        flex-wrap: nowrap;
        width: 100%;
    }
    
    .tabs-wrapper .tab-item {
        padding: 12px 10px;
        font-size: 13px;
        flex: 1;
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .page-header-banner {
        background-size: cover;
        background-position: center center;
        min-height: 240px;
    }
}

@media (max-width: 576px) {
    .tabs-wrapper .tabs {
        flex-wrap: nowrap;
        width: 100%;
    }
    
    .tabs-wrapper .tab-item {
        padding: 10px 6px;
        font-size: 11px;
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .tabs-wrapper .tab-item:nth-child(1) {
        flex: 3;

    }

    .tabs-wrapper .tab-item:nth-child(2) {
        flex: 3;
        
    }
    .tabs-wrapper .tab-item:nth-child(3) {
    flex: 1;
    }

    .page-header-banner {
        background-size: cover;
        background-position: center center;
        min-height: 200px;
    }
}

/* Breadcrumb Section - Keep at Top */
.page-header-banner .breadcrumb-section {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding-top: 20px;
    z-index: 3;
}

/* Page Hero */
.page-hero.hero-white {
    display: flex;
    align-items: center;
    min-height: 312px;
    position: relative;
}

/* .page-hero.hero-white .container {
    max-width: 1200px;
    position: relative;
    z-index: 2;
} */

.page-hero.hero-white h1 {
    color: #ffffff;
    /* font-size: 36px; */
    font-weight: 700;
    margin: 0;
}

/* Hero Description (for doctors.html) */
.page-hero.hero-white .hero-description {
    color: #ffffff;
    font-size: 20px;
    margin-top: 24px;
    margin-bottom: 0;
    line-height: 1.6;
    word-wrap: break-word;
    word-break: break-word;
}

/* 自适应：hero 描述换行与字号 */
@media (max-width: 992px) {
    .page-hero.hero-white .hero-description {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .page-hero.hero-white .hero-description {
        font-size: 14px;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        word-wrap: break-word;
        word-break: break-word;
    }
}

@media (max-width: 576px) {
    .page-hero.hero-white .hero-description {
        font-size: 13px;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        word-wrap: break-word;
        word-break: break-word;
    }
}

/* Content Section - 基础不变，仅媒体查询内调整 */
.condition-content-section {
    padding-top: 40px ;
}

/* Content Layout - 使用 div 分配，替代 row/col，conditions 页面专用 */
.condition-content-layout {
    display: flex;
    gap: 80px;
    align-items: flex-start;
}

.condition-content-main {
    flex: 1;
    min-width: 0;
}

.condition-content-sidebar {
    flex: 0 0 25%;
    min-width: 240px;
    position: sticky;
    top: 220px;
    align-self: flex-start;
}

@media (max-width: 991px) {
    .condition-content-layout {
        flex-direction: column;
    }

    .condition-content-main {
        padding-right: 0;
    }

    .condition-content-sidebar {
        flex: none;
        width: 100%;
        min-width: auto;
        position: static;
    }
}

/* .condition-content-section .container {
    max-width: 1280px;
} */

.condition-content-section p {
    font-size: 20px;
    line-height: 28px;
   
    /* display: flex; */
    font-weight: lighter;
}

.condition-content-section img {
    display: inline-block;
}
.condition-content-section a {
   
    /*padding: 0 4px;*/
}
.condition-content-section p:last-of-type {
    margin-bottom: 0;
}

/* Tabs */
.tabs-wrapper {
    margin-bottom: 48px;
}

.tabs-wrapper .tabs {
    margin-bottom: 0;
    display: inline-flex;
    align-items: stretch;
    background-color: #E8E6E6;
}

.tabs-wrapper .tab-item {
    padding: 15px 30px;
    color: #2A2A2A;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    z-index: 1;
}

.tabs-wrapper .tab-item:hover {
    color: #6F0B65;
    background-color: transparent;
}

.tabs-wrapper .tab-item.active {
    background-color: #6F0B65;
    color: #ffffff !important;
    border-radius: 0;
}

.tabs-wrapper .tab-item.active:hover {
    color: #ffffff !important;
}

/* Symptoms Link */
.symptoms-link-wrapper {
    display: flex;
    justify-content: flex-end;
}

.symptoms-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    color: var(--text-primary);
    text-decoration: none;
}

.symptoms-link-icon {
    width: 40px;
    height: 40px;
    background-color: var(--accent-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Sidebar */
.procedures-sidebar {
    margin-top: 80px;
}

/* Surgical Cases Section */
.surgical-cases-section {
    padding: 60px 0;
}

/* Cases Page - Other Cases Section Background */
.case-page .surgical-cases-section {
    background-color: #E8E6E6;
}

/* .surgical-cases-section .container {
    max-width: 1280px;
} */

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.section-header .section-title {
    margin-bottom: 0;
}

.all-cases-link,
.all-posts-link {
    color: var(--accent-purple);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Cases Carousel - 限定于 condition-cases-section 防止与 procedures 等页面冲突 */
.condition-cases-section .cases-carousel-wrapper {
    position: relative;
}

.condition-cases-section .cases-carousel-wrapper .gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 128px;
    height: 128px;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    border-radius: 0;
    box-shadow: none;
}

.condition-cases-section .cases-carousel-wrapper .gallery-nav.prev {
    left: -128px;
}

.condition-cases-section .cases-carousel-wrapper .gallery-nav.next {
    right: -128px;
}

.condition-cases-section .cases-carousel-wrapper .gallery-nav:hover {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.condition-cases-section .cases-carousel-wrapper .gallery-nav:hover svg {
    stroke: var(--accent-purple);
}

/* 滑动指示点 */
.condition-cases-section .cases-carousel-indicators {
    margin-top: 16px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.condition-cases-section .cases-carousel-indicator {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background-color: #D3D3D3;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.25s ease;
}

.condition-cases-section .cases-carousel-indicator.active {
    width: 24px;
    height: 8px;
    background-color: var(--accent-purple);
}

.condition-cases-section .cases-carousel-indicator:focus-visible {
    outline: 2px solid rgba(0, 0, 0, 0.2);
    outline-offset: 2px;
}

/* condition-cases-grid：参照 procedures，3个/页，横向滚动，少于3个不显示箭头 */
.condition-cases-section .condition-cases-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    flex-direction: row !important;
    /* gap: 24px; */
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    width: 100%;
}

.condition-cases-section .condition-cases-grid::-webkit-scrollbar {
    display: none;
}

.condition-cases-section .condition-cases-grid .case-card {
    flex: 0 0 calc(100% / 3) !important;
    min-width: calc(100% / 3) !important;
    max-width: calc(100% / 3) !important;
    width: calc(100% / 3) !important;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    border-radius: 0;
    overflow: hidden;
    scroll-snap-align: start;
    flex-shrink: 0;
    background-color: transparent;
    border: none;
    padding: 16px;
}

/* 少于或等于3项时隐藏箭头 */
.condition-cases-section .cases-carousel-wrapper:has(.condition-cases-grid .case-card:only-child) .gallery-nav,
.condition-cases-section .cases-carousel-wrapper:has(.condition-cases-grid .case-card:nth-child(2):last-child) .gallery-nav,
.condition-cases-section .cases-carousel-wrapper:has(.condition-cases-grid .case-card:nth-child(3):last-child) .gallery-nav {
    display: none !important;
}

.condition-cases-section .condition-cases-grid .case-card:hover {
    background-color: #ffffff;
    box-shadow: 0px 4px 16px 0px rgba(0,0,0,0.16);
    padding: 16px;
    transform: translateY(-8px);
}

.condition-cases-section .condition-cases-grid .case-card:hover .case-title a {
    color: var(--accent-purple);
}

.condition-cases-section .condition-cases-grid .case-card:hover .card-img img {
    transform: scale(1.05);
}

.condition-cases-section .condition-cases-grid .case-card .card-img {
    overflow: hidden;
    width: 100%;
    height: 300px;
    background-color: transparent;
}

.condition-cases-section .condition-cases-grid .case-card .card-img img {
    background-color: transparent;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.condition-cases-section .condition-cases-grid .case-card .card-body {
    padding: 13px 16px 20px 16px;
}

.condition-cases-section .condition-cases-grid .case-card .case-type {
    color: var(--accent-purple);
    font-size: 16px;
    font-weight: 600;
    display: block;
    margin-bottom: 12px;
    line-height: 20px;
}

.condition-cases-section .condition-cases-grid .case-card .case-title {
    font-size: 16px;
    font-weight: lighter;
    color: var(--text-primary);
    line-height: 28px;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 3em;
}

.condition-cases-section .condition-cases-grid .case-card .case-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.condition-cases-section .condition-cases-grid .case-card:hover .case-title a {
    color: var(--accent-purple);
}

/* 保留原 cases-grid 用于 detail_faq、detail_procedures（若仍使用 cases-grid） */
.condition-cases-section .cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 33px;
}

.condition-cases-section .case-card {
    cursor: pointer;
    transition: box-shadow 0.3s ease;
    /* background-color: #ffffff; */
}

.condition-cases-section .case-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.condition-cases-section .case-card:hover .case-title a {
    color: var(--accent-purple);
}

.condition-cases-section .case-card .card-img {
    overflow: hidden;
}

.condition-cases-section .case-card .card-img img {
    background-color: #ffffff;
    /* padding: 16px; */
}

.condition-cases-section .case-card .card-body {
    padding: 16px;
}

.condition-cases-section .case-type {
    color: var(--accent-purple);
    font-size: 14px;
    font-weight: 600;
}

.condition-cases-section .case-title {
    font-size: 16px;
    margin-top: 8px;
    font-weight: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
    max-height: 3em; /* 2行 * 1.5行高 */
}

.condition-cases-section .case-title a {
    color: var(--text-primary);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
    max-height: 3em; /* 2行 * 1.5行高 */
}

/* Related Articles Section */
.related-articles-section {
    background-color: #E8E6E6;
    padding: 60px 0;
}
/* 
.related-articles-section .container {
    max-width: 1280px;
} */

.related-articles-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 32px;
}

.related-articles-header .section-title {
    font-size: 40px;
    line-height: 56px;
    font-weight: 700;
    color: #6F0B65;
    margin: 0;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.article-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.article-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.article-card .card-img {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.article-card .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-card .card-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-tag {
    display: inline-block;
    padding: 4px 10px;
    font-size: 14px;
    line-height: 20px;
    margin-bottom: 10px;
    align-self: flex-start;
    border-radius: 0;
    background: rgba(111, 11, 101, 0.5);
    color: #6F0B65;
}

.card-tag.news {
    background: #00423573;
    color: #004235;
}

.card-title {
    font-size: 20px;
    font-weight: lighter;
    color: #2A2A2A;
    line-height: 28px;
    margin: 0;
    transition: color 0.25s;
    font-family: 'Lato';
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-title a {
    color: var(--text-primary);
    text-decoration: none;
}

/* FAQ Navigation Link */
.faq-nav-link-wrapper {
    display: flex;
    justify-content: flex-start;
    margin-top: 40px;
}

.faq-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--text-primary);
    text-decoration: none;
}

.faq-nav-link-icon {
    width: 40px;
    height: 40px;
    background-color: var(--accent-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Related Photos Carousel */
.related-photos-carousel {
    position: relative;
    margin-top: 24px;
}

.related-photos-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    position: relative;
    width: 100%;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.related-photos-track::-webkit-scrollbar {
    display: none;
}

.related-photo-item {
    flex: 0 0 calc(40% - 10px);
    min-width: calc(40% - 10px);
    width: calc(40% - 10px);
}

.related-photo-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 400 / 267;
    /* border-radius: 8px; */
    overflow: hidden;
    cursor: pointer;
    background-color: #000;
}

.related-photo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: opacity 0.4s ease;
    opacity: 0.85;
}

.related-photo-wrapper:hover .related-photo-image {
    opacity: 1;
}

/* 遮盖层 - 覆盖整个图片（始终显示） */
.related-photo-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
    transition: background 0.4s ease;
    pointer-events: none;
}

.related-photo-wrapper:hover::before {
    background: rgba(0, 0, 0, 0.6);
}

/* Label 文字直接显示在遮盖层上，白色居中，最多3行，宽度与图片对齐 */
.related-photo-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px 30px;
    font-size: 16px;
    font-weight: 400;
    color: #ffffff;
    line-height: 1.6;
    text-align: center;
    background: transparent;
    margin: 0;
    z-index: 2;
    white-space: normal;
    word-wrap: break-word;
    max-width: calc(100% - 40px);
    width: calc(100% - 40px);
    box-sizing: border-box;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.related-photo-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 16px;
    font-size: 14px;
    color: #ffffff;
    line-height: 1.6;
    text-align: center;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
    margin: 0;
    border-radius: 0 0 8px 8px;
    z-index: 2;
}

.related-photos-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 128px;
    height: 128px;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
}

.related-photos-nav svg {
    width: 64px;
    height: 64px;
    display: block;
    transition: stroke 0.3s ease;
}

.related-photos-nav:hover {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.related-photos-nav:hover svg {
    stroke: var(--accent-purple);
}

.related-photos-nav.prev {
    left: -128px;
}

.related-photos-nav.next {
    right: -128px;
}

/* Footer */


/* Footer CTA Buttons Hover Effect - Only Change Text Color */
/*.footer-cta-btn:hover {*/
/*    !* background-color: transparent !important; *!*/
/*    border-color: #76976c!important;*/
/*    color: #76976c;*/
/*}*/

/* Sidebar Buttons - Remove Border Radius and Hover Effect (Only Change Text Color) */
.procedures-sidebar-btn {
    border-radius: 0 !important;
}

.procedures-sidebar-btn:hover {
    background-color: var(--primary-green) !important;
    color: #CBFFB5 !important;
    transform: none !important;
    box-shadow: none !important;
}

/* 自适应：与全站断点一致 1200 / 992 / 768 / 576 */
@media (max-width: 1200px) {
    .condition-cases-section .condition-cases-grid .case-card {
        flex: 0 0 calc((100% - 32px) / 2) !important;
        min-width: calc((100% - 32px) / 2) !important;
        max-width: calc((100% - 32px) / 2) !important;
        width: calc((100% - 32px) / 2) !important;
    }
    .condition-cases-section .cases-carousel-wrapper .gallery-nav {
        width: 80px;
        height: 80px;
    }
    .condition-cases-section .cases-carousel-wrapper .gallery-nav.prev {
        left: -80px;
    }
    .condition-cases-section .cases-carousel-wrapper .gallery-nav.next {
        right: -80px;
    }
    .related-photos-nav {
        width: 80px;
        height: 80px;
    }
    .related-photos-nav.prev {
        left: -80px;
    }
    .related-photos-nav.next {
        right: -80px;
    }
}

@media (max-width: 992px) {
    .condition-content-section {
        padding: 40px 0;
    }
    .surgical-cases-section {
        padding: 40px 0;
    }
    .related-articles-section {
        padding: 40px 0;
    }
}

@media (max-width: 991px) {
    .condition-cases-section .cases-carousel-wrapper .gallery-nav {
        display: none;
    }

    .condition-cases-section .cases-carousel-wrapper {
        overflow: hidden;
    }

    .condition-cases-section .condition-cases-grid .case-card {
        flex: 0 0 clamp(240px, 75vw, 320px) !important;
        min-width: clamp(240px, 75vw, 320px) !important;
        max-width: clamp(240px, 75vw, 320px) !important;
    }

    .condition-cases-section .cases-grid {
        display: flex;
        overflow-x: auto;
        gap: 20px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .condition-cases-section .cases-grid::-webkit-scrollbar {
        display: none;
    }

    .condition-cases-section .case-card {
        flex: 0 0 clamp(240px, 75vw, 320px);
        scroll-snap-align: start;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .related-photos-nav {
        display: none;
    }

    .related-photos-track {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .related-photos-track::-webkit-scrollbar {
        display: none;
    }

    .related-photo-item {
        flex: 0 0 calc(40% - 10px);
        min-width: calc(40% - 10px);
        scroll-snap-align: start;
    }
}

@media (max-width: 768px) {
    .condition-content-section {
        padding: 32px 0;
    }
    .surgical-cases-section {
        padding: 32px 0;
    }
    .related-articles-section {
        padding: 32px 0;
    }
    
    .related-photo-label {
        font-size: 14px;
        padding: 16px 24px;
        max-width: calc(100% - 30px);
        width: calc(100% - 30px);
        line-height: 1.5;
    }
}

@media (max-width: 576px) {
    .condition-content-section {
        padding: 24px 0;
    }
    .surgical-cases-section {
        padding: 24px 0;
    }
    .related-articles-section {
        padding: 24px 0;
    }
    
    .related-photo-label {
        font-size: 13px;
        padding: 12px 20px;
        max-width: calc(100% - 24px);
        width: calc(100% - 24px);
        line-height: 1.4;
    }
}

/* ================================
   Quick Tab Switch (at tab-content bottom)
   ================================ */
.condition-tab-content-inner {
    position: relative;
    padding-bottom: 72px;
    /* padding-right:80px; */
}

.tab-quick-switch-wrap {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    pointer-events: none;
}

.tab-quick-switch-wrap .tab-quick-btn {
    pointer-events: auto;
}

.tab-quick-switch-wrap .tab-quick-btn.hidden {
    visibility: hidden;
    pointer-events: none;
}

.tab-quick-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px 12px 20px;
    font-size: 20px;
    line-height: 32px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.tab-quick-prev-btn {
    padding: 12px 20px 12px 16px;
}

.tab-quick-btn:hover {
    color: #6F0B65;
}

.tab-quick-btn:hover .tab-quick-prev-label,
.tab-quick-btn:hover .tab-quick-next-label {
    color: #6F0B65 !important;
}

.tab-quick-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #6F0B65;
    color: #ffffff;
    border-radius: 50%;
    flex-shrink: 0;
}

.tab-quick-icon svg {
    width: 18px;
    height: 18px;
}

@media (max-width: 768px) {
    .condition-tab-content-inner {
        padding-bottom: 64px;
    }
    .tab-quick-btn {
        padding: 10px 12px 10px 16px;
        font-size: 13px;
        gap: 10px;
    }
    .tab-quick-prev-btn {
        padding: 10px 16px 10px 12px;
    }
    .tab-quick-icon {
        width: 32px;
        height: 32px;
    }
    .tab-quick-icon svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 576px) {
    .condition-tab-content-inner {
        padding-bottom: 56px;
    }
    .tab-quick-btn {
        padding: 8px 10px 8px 14px;
        font-size: 12px;
        gap: 8px;
    }
    .tab-quick-prev-btn {
        padding: 8px 14px 8px 10px;
    }
    .tab-quick-icon {
        width: 28px;
        height: 28px;
    }
    .tab-quick-icon svg {
        width: 14px;
        height: 14px;
    }
}
