/* ==========================================================================
   CSS TÙY BIẾN CHO LANDING PAGE TRANG CHỦ NHA KHOA SUNSHINE
   ========================================================================== */

body { 
    font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.6;
}

/* 1. HIỆU ỨNG NHỊP THỞ VÀ QUÉT SÁNG CHO NÚT CTA CHÍNH */
.btn-cta-pulse {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    animation: btnBreathing 3.5s infinite ease-in-out;
    box-shadow: 0 4px 15px rgba(7, 109, 111, 0.35);
}
.btn-cta-pulse:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(7, 109, 111, 0.5);
}
.btn-cta-pulse:active {
    transform: translateY(1px) scale(0.96);
}
.btn-cta-pulse::after {
    content: '';
    position: absolute;
    top: 0;
    left: -130%;
    width: 80%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-20deg);
    animation: btnShimmerSweep 4s infinite ease-in-out;
}

@keyframes btnBreathing {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.025); }
}
@keyframes btnShimmerSweep {
    0%, 65% { left: -130%; }
    100% { left: 180%; }
}

/* 2. NÚT XEM CHI TIẾT DẠNG PILL */
.btn-view-detail-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 9999px;
    background-color: #e0f2f1;
    color: #076d6f;
    border: 1px solid rgba(7, 109, 111, 0.3);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 1px 3px rgba(7, 109, 111, 0.1);
}
.btn-view-detail-pill:hover {
    background-color: #076d6f;
    color: #ffffff !important;
    border-color: #076d6f;
    transform: translateY(-1px) scale(1.04);
    box-shadow: 0 3px 8px rgba(7, 109, 111, 0.25);
}

/* 3. PHÂN TÁCH BANNER THEO THIẾT BỊ (PC / MOBILE) */
.banner-pc-only { display: none !important; }
.banner-mobile-only { display: block !important; width: 100% !important; height: auto !important; }
@media (min-width: 768px) {
    .banner-pc-only { display: block !important; width: 100% !important; height: auto !important; object-fit: cover !important; }
    .banner-mobile-only { display: none !important; }
}

/* 4. KHUNG AVATAR BÁC SĨ */
.doctor-avatar-box {
    width: 105px;
    height: 105px;
    min-width: 105px;
    min-height: 105px;
    border-radius: 1.25rem;
    overflow: hidden;
    background-color: #ffffff;
    border: 2px solid #076d6f;
    flex-shrink: 0;
}
@media (min-width: 768px) {
    .doctor-avatar-box {
        width: 125px;
        height: 125px;
        min-width: 125px;
        min-height: 125px;
    }
}
.doctor-avatar-box img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

/* 5. NÚT PLAY VIDEO NỔI */
.yt-play-float {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    background: rgba(7, 109, 111, 0.9);
    backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    z-index: 10;
}
.video-card:hover .yt-play-float {
    background: #d97706;
    transform: scale(1.12);
}

/* 6. ẨN THANH CUỘN CHO KHUNG CAROUSEL / SLIDER */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* 7. STYLE CONTACT FORM 7 THÔNG BÁO */
.wpcf7 form.sent .wpcf7-response-output {
    border-color: #076d6f !important;
    background-color: #f0f9f9 !important;
    color: #076d6f !important;
    border-radius: 0.75rem !important;
    padding: 0.75rem !important;
    font-size: 0.85rem !important;
    text-align: center !important;
}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
    color: #b91c1c !important;
    border-radius: 0.75rem !important;
    padding: 0.75rem !important;
    font-size: 0.85rem !important;
    text-align: center !important;
}

/* 8. STICKY BOTTOM BAR CHO MOBILE (< 768px) */
#sunshine-master-sticky-bar {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    background: #ffffff !important;
    padding: 6px 8px !important;
    display: flex !important;
    gap: 6px !important;
    z-index: 9999999 !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15) !important;
    box-sizing: border-box !important;
    border-top: 1px solid #e2e8f0 !important;
}
@media (min-width: 768px) {
    #sunshine-master-sticky-bar { display: none !important; }
}
#sunshine-master-sticky-bar .sunshine-tab-btn {
    flex: 1 1 25% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 6px 2px !important;
    border-radius: 12px !important;
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
    text-align: center !important;
    box-sizing: border-box !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12) !important;
    position: relative !important;
    overflow: hidden !important;
    transition: transform 0.2s ease !important;
}
#sunshine-master-sticky-bar .sunshine-tab-btn svg {
    width: 18px !important;
    height: 18px !important;
    margin-bottom: 3px !important;
    fill: #ffffff !important;
    display: block !important;
}

/* 9. FLOATING CONTACT WIDGET CHO PC (>= 768px) */
#sunshine-pc-floating-widget {
    display: none;
}
@media (min-width: 768px) {
    #sunshine-pc-floating-widget {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        position: fixed !important;
        bottom: 30px !important;
        right: 24px !important;
        z-index: 999999 !important;
    }
    .pc-floating-btn {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        padding: 10px 18px 10px 12px !important;
        border-radius: 9999px !important;
        color: #ffffff !important;
        text-decoration: none !important;
        font-weight: 700 !important;
        font-size: 13px !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.18) !important;
        transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    }
    .pc-floating-btn:hover {
        transform: translateX(-6px) scale(1.04) !important;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25) !important;
    }
    .pc-floating-btn .pc-icon-circle {
        width: 32px !important;
        height: 32px !important;
        border-radius: 50% !important;
        background: rgba(255, 255, 255, 0.2) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
    }
    .pc-floating-btn svg {
        width: 18px !important;
        height: 18px !important;
        fill: #ffffff !important;
    }
}

/* 10. HIỆU ỨNG RUNG CHUÔNG & NHẤP NHÁY */
.anim-ring-phone svg {
    animation: ringPhone 3s infinite ease-in-out;
    transform-origin: center center;
}
@keyframes ringPhone {
    0%, 65%, 100% { transform: rotate(0deg) scale(1); }
    70% { transform: rotate(14deg) scale(1.1); }
    75% { transform: rotate(-14deg) scale(1.1); }
    80% { transform: rotate(10deg) scale(1.1); }
    85% { transform: rotate(-10deg) scale(1.1); }
    90% { transform: rotate(4deg) scale(1.05); }
    95% { transform: rotate(0deg) scale(1); }
}

.anim-pulse-zalo svg {
    animation: pulseIcon 2.8s infinite ease-in-out;
}
@keyframes pulseIcon {
    0%, 70%, 100% { transform: scale(1); }
    75% { transform: scale(1.18); }
    80% { transform: scale(0.95); }
    85% { transform: scale(1.12); }
    90% { transform: scale(1); }
}

.anim-glow-baogia {
    animation: baogiaPulse 2.4s infinite ease-in-out;
}
@keyframes baogiaPulse {
    0%, 100% { box-shadow: 0 2px 6px rgba(217,119,6,0.25); }
    50% { box-shadow: 0 0 12px rgba(245,158,11,0.7); transform: translateY(-1px); }
}

/* 11. TAB ACTIVE SERVICE */
.service-tab-btn.active {
    background-color: #076d6f !important;
    color: #ffffff !important;
    border-color: #076d6f !important;
    box-shadow: 0 4px 12px rgba(7, 109, 111, 0.25);
}
/* ==========================================================================
   CSS GIAO DIỆN BÀI VIẾT CHUẨN Y KHOA NHA KHOA SUNSHINE
   ========================================================================== */

/* 1. KHUNG BAO NGOÀI BÀI VIẾT */
.article-main-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 24px 16px 48px !important;
    box-sizing: border-box !important;
}

/* 2. BREADCRUMBS */
.single-breadcrumb {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    font-size: 13px !important;
    color: #64748b !important;
    margin-bottom: 16px !important;
}
.single-breadcrumb a {
    color: #076d6f !important;
    font-weight: 500 !important;
    text-decoration: none !important;
}
.single-breadcrumb a:hover {
    color: #d97706 !important;
}

/* 3. TIÊU ĐỀ & META BÁC SĨ */
.single-article-header {
    margin-bottom: 20px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    padding-bottom: 16px !important;
}
.single-article-title {
    font-size: 24px !important;
    line-height: 1.35 !important;
    font-weight: 900 !important;
    color: #0f172a !important;
    margin: 0 0 12px 0 !important;
    display: block !important;
}
@media (min-width: 768px) {
    .single-article-title {
        font-size: 32px !important;
    }
}
.single-article-meta {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    font-size: 13px !important;
    color: #64748b !important;
}
.single-article-meta .meta-author {
    color: #076d6f !important;
    font-weight: 700 !important;
}

/* 4. HUY HIỆU ĐÁNH GIÁ SAO */
.single-rating-box {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: #fffbeb !important;
    border: 1px solid #fef3c7 !important;
    padding: 6px 14px !important;
    border-radius: 9999px !important;
    font-size: 13px !important;
    color: #b45309 !important;
    font-weight: 600 !important;
    margin-bottom: 20px !important;
}
.single-rating-box .stars {
    color: #f59e0b !important;
    letter-spacing: 2px !important;
}

/* 5. BOX MỤC LỤC TỰ ĐỘNG (TOC & LWPTOC FIX) */
.lwptoc, 
#toc_container, 
.toc_container, 
.ez-toc-container {
    background: #f0fdfa !important;
    border: 1.5px solid #99f6e4 !important;
    border-radius: 18px !important;
    padding: 18px 22px !important;
    margin: 25px 0 32px 0 !important;
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
.lwptoc_header, 
#toc_container .toc_title, 
.ez-toc-title {
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #076d6f !important;
    margin-bottom: 12px !important;
}
.lwptoc ul, 
#toc_container ul, 
.ez-toc-container ul {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 0 !important;
}
.lwptoc ul li, 
#toc_container ul li, 
.ez-toc-container ul li {
    position: relative !important;
    padding-left: 20px !important;
    margin-bottom: 8px !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}
.lwptoc ul li::before, 
#toc_container ul li::before, 
.ez-toc-container ul li::before {
    content: "›" !important;
    position: absolute !important;
    left: 0 !important;
    top: -2px !important;
    color: #076d6f !important;
    font-weight: 900 !important;
    font-size: 18px !important;
}
.lwptoc a, 
#toc_container a, 
.ez-toc-container a {
    color: #334155 !important;
    text-decoration: none !important;
    font-weight: 500 !important;
}
.lwptoc a:hover, 
#toc_container a:hover, 
.ez-toc-container a:hover {
    color: #076d6f !important;
    font-weight: 700 !important;
}

/* 6. TYPOGRAPHY BÀI VIẾT */
.single-content {
    font-size: 16px !important;
    line-height: 1.85 !important;
    color: #334155 !important;
}
.single-content p {
    margin-bottom: 18px !important;
    line-height: 1.85 !important;
}
.single-content h2 {
    font-size: 22px !important;
    line-height: 1.4 !important;
    font-weight: 800 !important;
    color: #076d6f !important;
    margin-top: 36px !important;
    margin-bottom: 16px !important;
    padding-bottom: 8px !important;
    border-bottom: 2px solid #ccfbf1 !important;
    display: block !important;
}
@media (min-width: 768px) {
    .single-content h2 {
        font-size: 26px !important;
    }
}
.single-content h3 {
    font-size: 18px !important;
    line-height: 1.4 !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin-top: 24px !important;
    margin-bottom: 12px !important;
    display: block !important;
}
.single-content img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 16px !important;
    margin: 20px auto !important;
    display: block !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06) !important;
}
.single-content table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 20px 0 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
}
.single-content table th, 
.single-content table td {
    padding: 10px 14px !important;
    border: 1px solid #e2e8f0 !important;
    font-size: 14px !important;
}
.single-content table th {
    background: #076d6f !important;
    color: #ffffff !important;
    font-weight: 700 !important;
}

/* 7. BOX CTA TRONG BÀI */
.single-in-article-cta {
    background: linear-gradient(135deg, #032f30 0%, #076d6f 100%) !important;
    color: #ffffff !important;
    border-radius: 20px !important;
    padding: 26px 20px !important;
    margin: 36px 0 !important;
    text-align: center !important;
    box-shadow: 0 8px 25px rgba(7, 109, 111, 0.25) !important;
}

/* 8. BOX TÁC GIẢ BÁC SĨ */
.single-doctor-author-card {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 20px !important;
    padding: 20px !important;
    margin-top: 40px !important;
    display: flex !important;
    gap: 16px !important;
    align-items: center !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03) !important;
}

/* 9. SIDEBAR BÊN PHẢI */
.single-sidebar-sticky {
    position: sticky !important;
    top: 90px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
}
.sidebar-widget-box {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 20px !important;
    padding: 20px !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02) !important;
    box-sizing: border-box !important;
}
.sidebar-widget-title {
    font-size: 15px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    border-bottom: 2px solid #e0f2f1 !important;
    padding-bottom: 8px !important;
    margin: 0 0 14px 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}
