/*
Theme Name: Hoppa Site2
Author: Hoang
Version: 1.0
*/
.editable-phone {
    cursor: pointer;
    display: inline-block;
    padding: 4px 8px;
}

.inline-phone-input {
    width: 220px;
    max-width: 100%;
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font: inherit;
}

.doctor-slider-controls button:disabled{
    opacity: .4;
    cursor: not-allowed;
}

.doctor-slider-controls button:disabled:hover,
.doctor-slider-controls button:disabled:focus-visible {
    color: var(--teal-dark);
    background: var(--white);
    outline: none;
}

.gallery-button:disabled{
    opacity: .4;
    cursor: not-allowed;
}

.gallery-button:disabled:hover,
.gallery-button:disabled:focus-visible {
    color: var(--teal-dark);
    background: var(--white);
}
.site-header,
.main-nav,
.nav-inner,
.nav-right {
    overflow: visible;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: block;
    padding: 12px 14px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #314048;
    font-weight: 650;
    white-space: nowrap;
    cursor: pointer;
}

.clinic-system-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
    align-items: start;
}

.clinic-map-wrap,
.vietnam-map {
    width: 600px;
}

.vietnam-map {
    min-height: 318px;
    display: block;
    border-radius: 16px;
}

.clinic-list {
    display: grid;
    gap: 12px;
}

.clinic-item {
    cursor: pointer;
    padding: 16px;
    border-radius: 14px;
    background: #fff;
    transition: 0.25s ease;
    border: 1px solid #e8eee9;
}

.clinic-item:hover,
.clinic-item.is-active {
    background: #eefaf6;
    border-color: #0b7a5c;
    transform: translateX(4px);
}

.clinic-title-text {
    margin: 0 0 8px;
}

.clinic-address,
.clinic-phone {
    margin: 0;
}

#clinic-map-frame.vietnam-map {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 100%;
    height: 420px;
    border: 0;
    border-radius: 16px;
}
/*@media (max-width: 767px) {*/
/*  .hero-picture,*/
/*  .hero-image.viewport-breakpoint-image {*/
/*    display: none !important;*/
/*  }*/
/*}*/

.hero-picture.desktop-only {
    display: block;
}
@media (max-width: 767px) {
    .hero-picture.desktop-only {
        display: none;
    }
}

/* Only show on mobile when mobile-only */
.hero-picture.mobile-only {
    display: none;
}
@media (max-width: 767px) {
    .hero-picture.mobile-only {
        display: block;
    }
}
.button {
    min-width: 100px !important;
}
svg {
    width: 20px;
    height: 20px;
}
.nav-dropdown-menu {
    display: none !important;
}

.nav-dropdown.open .nav-dropdown-menu {
    display: block !important;
}
.nav-dropdown.open > .nav-dropdown-toggle,
.nav-dropdown.active > .nav-dropdown-toggle {
    background: #eef2ff !important;
}
#doctors,
#contact {
    scroll-margin-top: -20px !important; /* bằng chiều cao header fixed */
}
.doctor-slider {
    justify-content: center;
}
.test-pagination button:hover:not(:disabled),
.test-pagination button:focus-visible:not(:disabled) {
    color: var(--white) !important;
    background: var(--teal) !important;
    outline: none !important;
}

.test-pagination button:focus-visible {
    color: var(--white) !important;
    background: var(--teal) !important;
    outline: none !important;
}
.video-card {
    background: none !important;
}
.section-no-data{
    min-height: 600px !important;
}
.doctor-showcase{
    min-height: 424px;
}
.home-news-view-all {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 10px 16px;
    background: var(--white);
    font-size: 0.88rem;
    white-space: nowrap;
}
.home-knowledge-view-all{
    flex: 0 0 auto;
    min-height: 40px;
    padding: 10px 16px;
    background: var(--white);
    font-size: 0.88rem;
    white-space: nowrap;
}
.home-update-card img {
    height: 190px !important;;
}
.post-summary {
    display: -webkit-box;
    -webkit-line-clamp: 2 !important; /* Giới hạn 2 dòng */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}
.doctor-slider{
    height: 46px;
}
@media (max-width: 520px) {
    .home-update-card {
        display: flex !important;
        flex-direction: column !important;
    }
    /*.home-update-card img {*/
    /*    height: 100% !important;*/
    /*}*/
    .section-no-data{
        min-height: 500px !important;
    }
    .doctor-showcase{
        min-height: 324px;
    }
}
@media (max-width: 480px) {
    .home-news-view-all {
        width: auto;
    }
    .home-knowledge-view-all {
        width: auto;
    }
}

.aligncenter {
    margin-left: auto;
    margin-right: auto;
}
.alignleft {
    float: left;
    margin: 0.5em 1em 0.5em 0;
}
.alignright {
    float: right;
    margin: 0.5em 0 0.5em 1em;
}
.service-content-body a[href]{
    color: #0073aa !important;
    text-decoration: underline;
    word-break: break-word;
}
.service-content-body iframe {
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 10px;
}
.service-content-body iframe {
    display: block;
    width: 100% !important;
    aspect-ratio: 16 / 9;
    height: auto;
    max-width: 100% !important;
}
.service-content-body h1 {
    max-width: 100% !important;
}
.news-detail-body {
    display: flow-root !important;
}
.service-content-body{
    display: flow-root !important;
}
.news-detail-body pre,
.service-content-body pre {
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: anywhere;
    max-width: 100%;
}
.service-content-body h1,h2,h3 {
    margin-bottom: 10px;
}
#news-body pre {
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: anywhere;
    max-width: 100%;
}
#news-body h1,h2,h3 {
    margin-bottom: 10px;
}
#news-body a {
    color: #0073aa !important;
    text-decoration: underline;
    word-break: break-word;
}
#news-body iframe {
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 10px;
}
#news-body iframe {
    display: block;
    width: 100% !important;
    aspect-ratio: 16 / 9;
    height: auto;
    max-width: 100% !important;
}
#news-body h1 {
    max-width: 100% !important;
}

@media (max-width: 520px) {
    .hero-copy, .hero-actions {
        max-width: 400px !important;
    }
}

.doctor-content > ul {
    display: grid;
    width: 100%;
    gap: 6px;
    margin: 14px 0;
    padding-left: 20px;
    color: var(--teal-dark);
    text-align: left;
}

.doctor-content > ul > li {
    padding-left: 2px;
    font-size: 0.94rem;
    font-weight: 760;
    line-height: 1.45;
}

.doctor-content > ul > li::marker {
    color: var(--coral);
}
@media (max-width: 1120px) {
    .nav-links.open {
        max-height: calc(100vh - 170px);
        overflow-y: auto;
    }
}
.dr-med-news-tabs a.active,
.dr-med-news-tabs a:focus-visible {
    color: var(--white);
    background: var(--teal);
}

@media (hover: hover) and (pointer: fine) {
    .dr-med-news-tabs a:hover {
        color: var(--white);
        background: var(--teal);
    }
}
.dr-med-news-tabs {
    visibility: hidden !important;
}

.dr-med-news-tabs.ready {
    visibility: visible !important;
}
textarea {
    overflow-x: hidden;
}
.dr-med-site #self-check{
    background: linear-gradient(180deg, #f3f5fd 0%, #f5f3fd 55%, #fbf3f9 100%);
}

.service-detail-hero h1,
.service-detail-hero p{
    width: fit-content !important;
    max-width: 1200px !important;
}
.clinic-item[data-has-data="0"] {
    display: none;
}


.home-update-card {
    /* Fix Safari zoom bug: force re-calculation of grid rows */
    will-change: auto;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000px;
    perspective: 1000px;
    transform: translate3d(0, 0, 0);
    min-height: 318px !important;
}
/* Safari-specific fix for zoom bug */
@supports (-webkit-hyphens:none) {
    .home-update-card {
        /* Force Safari to recalculate grid on zoom */
        contain: layout style;
    }

    .home-update-content {
        /* Ensure proper height recalculation */
        contain: layout;
    }
}

a.home-update-card:hover,
a.home-update-card:focus-visible {
    border-color: rgba(0, 108, 69, 0.55);
    box-shadow: 0 16px 36px rgba(26, 64, 45, 0.12);
    transform: translate3d(0, -2px, 0) !important;
}
.test-pagination button {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.test-pagination button svg {
    display: block !important;
}
.gallery-heading {
    max-width: 100%;
}
.gallery-slide::after {
    background: none;
}