:root {
    --primary-color: #24A2ED; /* Màu xanh chủ đạo */
    --text-color: #404040;
    --footer-bg: #24303e;     /* Màu nền footer chuẩn theo ảnh mẫu */
    --footer-text: #ffffff;   /* Chữ trắng */
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
}

a { text-decoration: none; }

/* --- Header & Slider --- */
/* (Giữ nguyên code phần Header cũ nếu bạn thấy ổn, hoặc tôi gửi lại nếu cần) */
.main-navbar { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.navbar-nav .nav-link { font-weight: 700; text-transform: uppercase; padding: 15px !important; color: #333; }
.navbar-nav .nav-link:hover { color: var(--primary-color); }

/* --- Quick Actions Block --- */
.quick-action-box {
    background: #fff; border-radius: 15px; padding: 25px 15px; text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05); transition: all 0.3s; height: 100%; border: 1px solid #f0f0f0; cursor: pointer;
}
.quick-action-box:hover { transform: translateY(-5px); border-color: var(--primary-color); }
.quick-action-icon {
    font-size: 2rem; color: var(--primary-color); margin-bottom: 15px;
    background: #f8f9fa; width: 60px; height: 60px; line-height: 60px; border-radius: 50%; display: inline-block;
}

/* --- News Section (Đã chỉnh ảnh đẹp hơn) --- */
.news-section { padding: 60px 0; background-color: #f4f6f9; }
.big-post-card {
    background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.05); height: 100%;
}
.big-post-img { height: 350px; object-fit: cover; width: 100%; }
.small-post-card {
    background: #fff; border-radius: 8px; padding: 15px; margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03); display: flex; gap: 15px; align-items: flex-start;
}
.small-post-img {
    width: 140px; height: 100px; object-fit: cover; border-radius: 6px; flex-shrink: 0;
}

/* --- FOOTER CHUẨN MẪU --- */
footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding-top: 50px;
    padding-bottom: 30px;
    font-size: 0.9rem;
}

footer h5 {
    font-size: 1.1rem; font-weight: 700; margin-bottom: 20px; color: #fff;
}

/* Cột thông tin */
.footer-info p { margin-bottom: 10px; line-height: 1.6; opacity: 0.9; }
.footer-info strong { color: #fff; font-weight: 700; }

/* Cột tin tức tròn */
.footer-news-item { display: flex; gap: 15px; margin-bottom: 20px; align-items: center; }
.footer-news-img {
    width: 60px; height: 60px; border-radius: 50%; /* Tròn xoe như mẫu */
    object-fit: cover; border: 2px solid #5a6b7c;
}
.footer-news-info h6 a { color: #fff; font-size: 0.95rem; font-weight: 500; display: block; margin-bottom: 4px; }
.footer-news-info h6 a:hover { color: var(--primary-color); }
.footer-date { font-size: 0.8rem; color: #aab2bd; }

/* Cột Form Liên hệ */
.footer-form label { font-weight: 600; font-size: 0.9rem; margin-bottom: 5px; display: block; }
.footer-form label span { color: #ff4d4f; } /* Dấu sao màu đỏ */
.footer-form .form-control {
    border-radius: 4px; border: none; padding: 10px 15px; font-size: 0.9rem; margin-bottom: 0px;
}
.footer-form .btn-submit {
    background-color: var(--primary-color); color: #fff; border: none;
    padding: 8px 25px; border-radius: 4px; font-weight: 600; width: auto; display: inline-block;
}
.footer-form .btn-submit:hover { background-color: #1a82c4; }

/* Scroll Top Button */
#scrollToTopBtn {
    display: none; position: fixed; bottom: 30px; right: 30px; z-index: 99;
    border: none; background-color: var(--primary-color); color: white; cursor: pointer;
    width: 45px; height: 45px; border-radius: 50%; box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
#scrollToTopBtn:hover { background-color: #1a82c4; transform: translateY(-3px); }


/* --- Info Grid Section (Knowledge for Better Healthcare) --- */
.info-grid-section {
    padding: 60px 0;
    background-color: #fff;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}
.section-header .sub-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}
.section-header .main-title {
    font-size: 1.2rem;
    color: #6c757d;
    font-weight: 400;
}

.info-card {
    background: #fff;
    padding: 30px 25px;
    border-radius: 4px; /* Bo góc nhẹ */
    box-shadow: 0 5px 20px rgba(0,0,0,0.05); /* Đổ bóng nhẹ */
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-color: #f0f0f0;
}

.info-card-icon {
    font-size: 2.5rem;
    color: var(--primary-color); /* Màu xanh chủ đạo #24A2ED */
    margin-bottom: 20px;
    display: inline-block;
}

.info-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.info-card-desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 0;
}
/* --- Video Background Section (Giữ nguyên phần khung video) --- */
.video-bg-section {
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 450px; /* Điều chỉnh chiều cao phù hợp */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

/* Overlay chỉnh lại màu xanh dương nhạt cho giống ảnh mẫu hơn */
.video-overlay {
    background: rgba(36, 162, 237, 0.6); /* Màu #24A2ED độ trong suốt 60% */
}

/* --- Feature Blocks (Các ô vuông màu trắng) --- */
.feature-block-card {
    background: rgba(255, 255, 255, 0.9); /* Màu trắng hơi trong suốt nhẹ */
    border-radius: 6px;
    padding: 30px 15px;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    
    /* Căn giữa nội dung dọc */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 160px;
}

.feature-block-card:hover {
    transform: translateY(-5px);
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.feature-block-icon {
    font-size: 2.2rem;
    color: #333; /* Icon màu tối như hình mẫu */
    margin-bottom: 15px;
}

/* Màu riêng cho từng icon nếu muốn giống hệt (Icon có màu xanh điểm xuyết) */
.feature-block-icon i {
    color: #2c3e50; 
}

.feature-block-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
    margin: 0;
    line-height: 1.4;
}

/* --- News Tab Section --- */
.news-tab-section {
    padding: 60px 0;
    background-color: #fff;
}

/* Tùy chỉnh thanh Tab (Nav Pills) */
.custom-nav-pills {
    justify-content: center;
    margin-bottom: 40px;
    gap: 15px;
    border: none;
}

.custom-nav-pills .nav-link {
    border-radius: 50px; /* Bo tròn hình viên thuốc */
    padding: 10px 30px;
    font-weight: 600;
    color: #6c757d;
    background-color: #fff;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.custom-nav-pills .nav-link:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: #f8f9fa;
}

.custom-nav-pills .nav-link.active {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(36, 162, 237, 0.3); /* Đổ bóng cho tab đang chọn */
}

/* Card tin tức trong Tab */
.news-tab-card {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    transition: all 0.3s ease;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.news-tab-card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    transform: translateY(-5px); /* Nổi lên khi hover */
    border-color: #d1e7dd;
}

/* Wrapper để xử lý zoom ảnh */
.card-img-wrapper {
    overflow: hidden;
    height: 200px; /* Chiều cao cố định cho ảnh */
    position: relative;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-tab-card:hover .card-img-wrapper img {
    transform: scale(1.1); /* Zoom ảnh khi hover card */
}

/* Nội dung card */
.card-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-date {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 10px;
    display: block;
}

.news-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    line-height: 1.4;
    text-transform: uppercase;
    
    /* Cắt dòng nếu tiêu đề quá dài (tối đa 3 dòng) */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-title a {
    color: inherit;
    text-decoration: none;
}

.news-author {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 15px;
    flex-grow: 1; /* Đẩy nút xem thêm xuống đáy */
}

.btn-read-more {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: margin-left 0.3s;
}

.btn-read-more:hover {
    color: #1a82c4;
    margin-left: 5px; /* Hiệu ứng dịch chuyển nhẹ sang phải */
}

/* 1. Kích hoạt cuộn mượt toàn trang */
html {
    scroll-behavior: smooth;
}

/* 2. Hiệu ứng Banner: Ken Burns (Zoom nhẹ & Fade) */
.carousel-item {
    transition: transform 2s ease, opacity .5s ease-out;
}
.carousel-fade .active.carousel-item-start,
.carousel-fade .active.carousel-item-end {
    transition: opacity 0s 0s;
}
/* Tạo animation zoom ảnh slider */
.carousel-item img {
    animation: zoomEffect 20s infinite;
}
@keyframes zoomEffect {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); } /* Zoom nhẹ lên 1.05 lần */
    100% { transform: scale(1); }
}

/* 3. Nút Scroll Top đẹp hơn */
#scrollToTopBtn {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    border: none;
    background: linear-gradient(135deg, var(--primary-color), #1a82c4); /* Màu Gradient */
    color: white;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(36, 162, 237, 0.4);
    font-size: 1.2rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Hiệu ứng nảy */
    opacity: 0.8;
}

#scrollToTopBtn:hover {
    transform: translateY(-5px) scale(1.1);
    opacity: 1;
    box-shadow: 0 8px 25px rgba(36, 162, 237, 0.6);
}

/* 4. Tinh chỉnh lại các card để animation mượt hơn */
.quick-action-box, .big-post-card, .small-post-card, .info-card, .feature-block-card, .news-tab-card {
    /* Đã có transition ở các bước trước, giữ nguyên */
    will-change: transform, box-shadow; /* Tối ưu hiệu năng render */
}

/* --- 1. Fix Menu Hover (Chỉ áp dụng trên Desktop) --- */
@media (min-width: 992px) {
    .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0; /* Xóa khoảng cách để chuột không bị hụt */
        animation: fadeIn 0.3s ease;
    }
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- 2. Partner/Sponsor Section --- */
.partner-section {
    padding: 50px 0 80px 0;
    background-color: #fff;
    border-top: 1px solid #eee;
}

.partner-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 25px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 10px;
}

/* Gạch chân nhỏ dưới tiêu đề */
.partner-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.partner-logo-box {
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px; /* Chiều cao cố định để logo đều nhau */
    background: #fff;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.partner-logo-box:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.partner-logo-box img {
    max-width: 100%;
    max-height: 70px;
    filter: grayscale(100%); /* Logo đen trắng cho sang trọng */
    opacity: 0.7;
    transition: all 0.3s;
}

.partner-logo-box:hover img {
    filter: grayscale(0%); /* Hover vào thì hiện màu */
    opacity: 1;
}


/* --- Single Post Styles --- */
.breadcrumb-section {
    background-color: #f8f9fa;
    padding: 15px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb-item a {
    color: #6c757d;
    text-decoration: none;
}
.breadcrumb-item.active {
    color: var(--primary-color);
    font-weight: 500;
}

.blog-post {
    background: #fff;
    padding-bottom: 40px;
}

.post-header {
    margin-bottom: 25px;
}

.post-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.3;
}

.post-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: #888;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 25px;
}

.post-meta i {
    color: var(--primary-color);
    margin-right: 5px;
}

.post-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
    text-align: justify;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

/* Social Share & Like Buttons */
.post-actions {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.btn-like {
    border: 1px solid #e9ecef;
    background: #fff;
    color: #dc3545; /* Màu đỏ trái tim */
    padding: 8px 20px;
    border-radius: 50px;
    transition: 0.3s;
}
.btn-like:hover {
    background: #dc3545;
    color: #fff;
}

.social-share-btns a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f1f1;
    color: #555;
    margin-left: 10px;
    transition: 0.3s;
    text-decoration: none;
}
.social-share-btns a:hover {
    background: var(--primary-color);
    color: #fff;
}

/* --- Sidebar Widget Styles --- */
.sidebar-widget {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1f1f1;
}
.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-color);
}

/* Recent Posts Widget */
.widget-recent-post-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: flex-start;
}
.widget-recent-post-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 5px;
    flex-shrink: 0;
}
.widget-recent-post-content h6 {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 5px;
}
.widget-recent-post-content h6 a {
    color: #333;
    text-decoration: none;
    transition: 0.2s;
}
.widget-recent-post-content h6 a:hover {
    color: var(--primary-color);
}
.widget-recent-post-date {
    font-size: 0.8rem;
    color: #999;
}

/* Partner Widget (Sidebar Version) */
.partner-grid-sidebar {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 cột trong sidebar */
    gap: 10px;
}
.partner-item-sidebar {
    border: 1px solid #eee;
    padding: 10px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    background: #fff;
}
.partner-item-sidebar img {
    max-width: 100%;
    max-height: 40px;
    object-fit: contain;
}

/* --- Category Page Styles --- */

/* Tiêu đề danh mục */
.category-header {
    border-bottom: 2px solid #eee;
    margin-bottom: 30px;
    padding-bottom: 15px;
    position: relative;
}
.category-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    margin: 0;
    display: inline-block;
    border-bottom: 3px solid var(--primary-color); /* Gạch chân đậm */
    padding-bottom: 13px;
    margin-bottom: -17px; /* Kéo xuống đè lên border xám */
}

/* Item bài viết (Dạng ngang) */
.cat-post-item {
    display: flex;
    gap: 25px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.cat-post-item:last-child {
    border-bottom: none; /* Bỏ gạch chân bài cuối */
}

.cat-post-thumb {
    width: 280px; /* Chiều rộng ảnh cố định */
    height: 190px;
    flex-shrink: 0; /* Không bị co lại */
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.cat-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.cat-post-item:hover .cat-post-thumb img {
    transform: scale(1.1); /* Zoom ảnh khi hover */
}

.cat-post-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.cat-post-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}

.cat-post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.cat-post-title a:hover {
    color: var(--primary-color);
}

.cat-post-meta {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 12px;
}
.cat-post-meta i {
    margin-right: 5px;
    color: var(--primary-color);
}

.cat-post-excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Giới hạn 3 dòng mô tả */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Pagination (Phân trang) */
.pagination {
    margin-top: 20px;
    justify-content: center; /* Căn giữa */
}

.page-link {
    color: #555;
    border: 1px solid #dee2e6;
    margin: 0 3px;
    border-radius: 4px;
    padding: 8px 16px;
    font-weight: 500;
}

.page-link:hover {
    background-color: #f8f9fa;
    color: var(--primary-color);
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* Responsive Mobile */
@media (max-width: 768px) {
    .cat-post-item {
        flex-direction: column; /* Dọc trên mobile */
    }
    .cat-post-thumb {
        width: 100%;
        height: 200px;
    }
}


/* --- Contact Page Styles --- */
.contact-page {
    background: #fff;
    padding-bottom: 60px;
}

/* Bản đồ Google Map */
.contact-map {
    width: 100%;
    height: 400px;
    border: none;
    margin-bottom: 40px;
    background: #eee; /* Placeholder color */
}

/* Khối thông tin bên phải */
.contact-info-box {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    height: 100%;
}

.contact-info-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.contact-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

.contact-info-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-top: 3px; /* Căn chỉnh icon với dòng đầu tiên của text */
}

.contact-info-item strong {
    color: #333;
    font-weight: 600;
}

/* Style cho Form */
.contact-form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.contact-form-control {
    background-color: #fdfdfd;
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 10px 15px;
    transition: all 0.3s;
}

.contact-form-control:focus {
    background-color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(36, 162, 237, 0.25);
}

.captcha-box {
    background: #eee;
    padding: 10px;
    border-radius: 4px;
    display: inline-block;
    font-family: monospace;
    letter-spacing: 3px;
    font-weight: bold;
    color: #555;
    margin-bottom: 10px;
    user-select: none;
}


/* --- IMPRESSIVE PARTNER SECTION --- */
.partner-section-pro {
    padding: 80px 0;
    background: linear-gradient(180deg, #fff 0%, #f4f6f9 100%);
    text-align: center;
}

.partner-tier-title {
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}
/* Màu riêng cho từng hạng */
.tier-platinum .partner-tier-title { color: #5a6b7c; background: -webkit-linear-gradient(#333, #999); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.tier-gold .partner-tier-title { color: #d4af37; }
.tier-silver .partner-tier-title { color: #a0aeb9; }
/* --- Cập nhật CSS Partner Box (Thống nhất size) --- */

/* Class chung cho tất cả các box để đảm bảo đều nhau */
.partner-box {
    height: 140px; /* Chiều cao chuẩn (theo Gold) */
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    display: flex; 
    align-items: center; 
    justify-content: center;
    position: relative; 
    overflow: hidden;
    padding: 15px; /* Padding thống nhất */
    margin-bottom: 20px; /* Khoảng cách dưới */
}

/* Ảnh logo bên trong box */
.partner-box img {
    max-height: 85px; /* Giới hạn chiều cao logo để không bị tràn */
    max-width: 90%;   /* Giới hạn chiều rộng */
    width: auto;
    object-fit: contain; /* Giữ tỉ lệ ảnh */
    opacity: 0.8;
    transition: all 0.3s;
}

/* Hiệu ứng Hover chung */
.partner-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.partner-box:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* --- Tinh chỉnh riêng cho từng hạng (Màu viền & Shadow) --- */

/* Platinum (Vẫn giữ chút đặc biệt nhưng size bằng Gold) */
.partner-box.platinum {
    border-color: #e5e5e5;
    /* Có thể thêm background nhạt để phân biệt nếu muốn */
    /* background: linear-gradient(to bottom, #fff, #f8f9fa); */
}
.partner-box.platinum:hover {
    border-color: #5a6b7c; /* Viền màu bạch kim khi hover */
}
/* Logo Platinum luôn có màu (nếu muốn nổi bật hơn) hoặc để đen trắng như Gold tùy bạn */
.partner-box.platinum img {
    filter: grayscale(0%); /* Platinum luôn có màu */
    opacity: 1;
    max-height: 95px; /* Cho phép to hơn xíu xiu */
}

/* Gold */
.partner-box.gold:hover {
    border-color: #d4af37; /* Viền vàng */
}

/* Silver */
.partner-box.silver:hover {
    border-color: #a0aeb9; /* Viền bạc */
}

/* Fix lỗi Swiper bị cắt bóng đổ */
.swiper-slide {
    padding: 10px; /* Tạo khoảng trống để shadow không bị cắt */
}
/* Swiper Pagination (Dấu chấm) */
.swiper-pagination-bullet-active {
    background-color: var(--primary-color) !important;
}
.footer-news-item a{
	color:#ededed !important;
}
/* =========================================
   MULTILEVEL DROPDOWN MENU (STRICT MODE)
========================================= */

/* 1. Thiết lập vị trí tương đối cho mục chứa menu con */
.dropdown-submenu {
    position: relative;
}

/* 2. MẶC ĐỊNH: Luôn ẩn menu con cấp 2 một cách tuyệt đối */
/* display: none !important giúp chống lại việc hiện lung tung khi click menu cha */
.dropdown-menu .dropdown-menu {
    display: none !important; 
    left: 100%;
    top: 0;
    margin-top: -1px;
}

/* --- Dành cho DESKTOP (> 992px) --- */
@media (min-width: 992px) {
    /* 3. Chỉ hiện khi HOVER vào đúng thẻ .dropdown-submenu */
    .dropdown-submenu:hover > .dropdown-menu {
        display: block !important; /* Bắt buộc hiện khi hover */
    }

    /* Mũi tên chỉ sang phải */
    .dropdown-submenu > .dropdown-toggle::after {
        float: right;
        margin-top: 6px;
        margin-left: 10px;

        border-top: 0.3em solid transparent;
        border-right: 0;
        border-bottom: 0.3em solid transparent;
        border-left: 0.3em solid;
    }
}

/* --- Dành cho MOBILE (< 992px) --- */
@media (max-width: 991px) {
    /* Trên mobile: Luôn hiện (để người dùng thấy mà bấm) nhưng thụt vào trong */
    .dropdown-menu .dropdown-menu {
        display: block !important;
        position: static;
        margin-left: 20px;
        padding-left: 10px;
        border: none;
        border-left: 2px solid #eee;
        background: transparent;
        box-shadow: none;
    }
    
    .dropdown-submenu > .dropdown-toggle::after {
        transform: rotate(0deg); /* Mũi tên trỏ xuống */
    }
}
/* =========================================
   FIX DROPDOWN WIDTH & SPACING
========================================= */

/* 1. Tự động giãn chiều rộng menu theo nội dung dài nhất */
.dropdown-menu {
    min-width: 220px; /* Tăng chiều rộng tối thiểu (mặc định BS là 10rem ~ 160px) */
}

/* 2. Bắt buộc chữ không được rớt dòng */
.dropdown-item {
    white-space: nowrap; /* Quan trọng: Giúp khung tự giãn ra nếu chữ dài */
    padding-right: 1.5rem; /* Tạo khoảng thở bên phải để mũi tên không bị dính sát lề */
}

/* 3. Tinh chỉnh lại mũi tên cho cân đối hơn */
@media (min-width: 992px) {
    .dropdown-submenu > .dropdown-toggle::after {
        margin-left: 1.5rem; /* Tăng khoảng cách giữa chữ và mũi tên */
    }
}


.post-content p, .post-content p>span {
    font-size: 1.0em !important;
}
/* --- SEARCH BOX HEADER --- */
.search-box-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 300px;
    background: #fff;
    padding: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    border-radius: 5px;
    display: none; /* Ẩn mặc định */
    z-index: 1000;
    margin-top: 10px;
}

.search-box-dropdown.active {
    display: block; /* Hiện khi có class active */
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- HIGHLIGHT SEARCH RESULTS --- */
mark.highlight {
    background-color: #ffeb3b; /* Màu vàng */
    color: #000;
    padding: 0 2px;
    border-radius: 2px;
    font-weight: bold;
}

/* --- Responsive Search --- */
@media (max-width: 991px) {
    .search-box-dropdown {
        width: 250px;
        right: -50px; /* Căn chỉnh lại trên mobile nếu cần */
    }
}

/* Container chính để đảm bảo bảng không bị tràn trên mobile */
.WordSection1 {
    font-family: 'Arial', sans-serif;
    color: #333;
    overflow-x: auto; /* Cho phép cuộn ngang trên điện thoại */
}

/* Reset và style chung cho bảng */
.WordSection1 table {
    width: 100%;
    border-collapse: collapse; /* Gộp đường viền để tạo nét mảnh */
    margin: 20px 0;
    font-size: 14px; /* Kích thước chữ dễ đọc */
    background-color: #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05); /* Tạo bóng nhẹ cho bảng nổi bật */
}

/* Style cho các ô tiêu đề (Header) */
.WordSection1 table thead tr th {
    background-color: #009879; /* Màu xanh chuyên nghiệp (hoặc đổi màu bạn thích) */
    color: #ffffff;
    text-align: left;
    font-weight: bold;
    padding: 12px 15px;
    border: 1px solid #ccc; /* Viền màu #ccc theo yêu cầu */
    white-space: nowrap; /* Giữ tiêu đề trên 1 dòng */
}

/* Style cho các ô nội dung (Body) */
.WordSection1 table tbody tr td {
    padding: 12px 15px;
    border: 1px solid #ccc; /* Viền màu #ccc theo yêu cầu */
    vertical-align: middle;
}

/* Hiệu ứng Banded Rows (Dòng xen kẽ màu) */
.WordSection1 table tbody tr:nth-of-type(even) {
    background-color: #f3f3f3; /* Màu xám nhạt cho dòng chẵn */
}

/* Hiệu ứng khi di chuột qua dòng (Hover) */
.WordSection1 table tbody tr:hover {
    background-color: #e6f7ff; /* Màu xanh nhạt khi hover */
    transition: background-color 0.2s ease;
}

/* Căn giữa cột Số thứ tự (Cột 1) */
.WordSection1 table tbody tr td:first-child {
    text-align: center;
    font-weight: bold;
}

/* Làm đậm tên bác sĩ (Cột 3) để nổi bật */
.WordSection1 table tbody tr td:nth-child(3) {
    font-weight: 600;
    color: #005f4b;
}

/* Tùy chỉnh lại các đoạn văn bản tiêu đề phía trên bảng */
.WordSection1 p.MsoNormal {
    margin: 10px 0 !important;
    color: #2c3e50;
}

/* Container chính */
.share-section {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 15px 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    transition: all 0.3s ease;
}

.share-section:hover {
    background: #fff;
    box-shadow: 0 8px 15px rgba(0,0,0,0.05);
}

.share-label {
    font-weight: 600;
    color: #495057;
    font-size: 0.95rem;
    margin-right: 15px;
}

/* Style chung cho các nút */
.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Hiệu ứng nảy */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border: none;
    cursor: pointer;
}

.social-btn i {
    font-size: 18px;
}

/* Hiệu ứng Hover */
.social-btn:hover {
    transform: translateY(-5px); /* Nổi lên trên */
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Màu thương hiệu */
.btn-facebook { background-color: #1877f2; }
.btn-twitter  { background-color: #1da1f2; } /* Hoặc dùng màu đen cho X: #000 */
.btn-zalo     { background-color: #0068ff; } /* Màu Zalo */
.btn-email    { background-color: #ea4335; }
.btn-copy     { background-color: #6c757d; }

/* Tooltip đơn giản khi copy */
.tooltip-copy {
    position: relative;
}
.tooltip-copy::after {
    content: "Đã copy!";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    opacity: 0;
    visibility: hidden;
    transition: 0.2s;
    pointer-events: none;
}
.tooltip-copy.copied::after {
    opacity: 1;
    visibility: visible;
    bottom: 115%;
}
.py-5{
	padding-top:0 !important;
}