@font-face {
    font-family: 'Noto Sans Display';
    font-style: normal;
    font-weight: 400;
    src: url('../../../fonts/noto-sans-display-v13-vietnamese-regular.eot');
    src: local(''), url('../../../fonts/noto-sans-display-v13-vietnamese-regular.eot?#iefix') format('embedded-opentype'), url('../../../fonts/noto-sans-display-v13-vietnamese-regular.woff2') format('woff2'), url('../../../fonts/noto-sans-display-v13-vietnamese-regular.woff') format('woff'), url('../../../fonts/noto-sans-display-v13-vietnamese-regular.ttf') format('truetype'), url('../../../fonts/noto-sans-display-v13-vietnamese-regular.svg#NotoSansDisplay') format('svg');
}

.container {
    max-width: 80% !important
}

.blog-container {
    padding: 0px 50px;
}

body {
    font-family: 'Noto Sans Display' !important;
    background-color: #f8fafc !important;
}

.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
    font-family: 'Noto Sans Display' !important;
}

.badge {
    color: #fff;
    font-family: 'Noto Sans Display' !important;
}

label {
    font-family: 'Noto Sans Display' !important;
}

#overlay-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 61, 122, 0.9);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

    #overlay-loading .spinner {
        border: 8px solid rgba(255, 255, 255, 0.3);
        border-top: 8px solid #ffffff;
        border-radius: 50%;
        width: 80px;
        height: 80px;
        animation: spin 1s linear infinite;
    }

    #overlay-loading .loading-text {
        color: white;
        margin-top: 20px;
        font-size: 16px;
        font-weight: 600;
    }

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* === Variables === */
:root {
    --primary-color: #0D3C61;
    --secondary-color: #005EB8;
    --text-color: #333;
    --border-color: #e0e0e0;
    --hover-color: #f5f5f5;
    --white: #fff;
    --notification-bg: #FDB913;
    --notification-text: #000;
}

/* === Reset === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

/* === Notification Bar === */
.notification-bar {
    background-color: var(--notification-bg);
    color: var(--notification-text);
    padding: 12px 0;
    position: relative;
    z-index: 1001;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.notification-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.notification-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
}

.notification-icon {
    font-size: 20px;
    font-weight: bold;
    flex-shrink: 0;
    line-height: 1.4;
}

.notification-message {
    flex: 1;
    font-size: 14px;
    line-height: 1.6;
}

    .notification-message p {
        margin: 0 0 8px 0;
    }

        .notification-message p:last-child {
            margin-bottom: 0;
        }

    .notification-message img {
        max-width: 100%;
        height: auto;
        margin: 8px 0;
        border-radius: 4px;
    }

    .notification-message a {
        color: var(--notification-text);
        text-decoration: underline;
        font-weight: 500;
    }

        .notification-message a:hover {
            text-decoration: none;
        }

    .notification-message strong,
    .notification-message b {
        font-weight: 600;
    }

.notification-close {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--notification-text);
    border-radius: 4px;
    transition: background-color 0.3s;
    flex-shrink: 0;
}

    .notification-close:hover {
        background-color: rgba(0, 0, 0, 0.1);
    }

/* === Header === */
.site-header {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-top {
    padding: 16px 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.header-logo img {
    height: auto;
    width: 60px;
}

/* === Navigation === */
.main-nav {
    flex: 1;
    margin: 0 32px;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 0;
    padding: 0;
    margin: 0;
}

.nav-item {
    position: relative;
}


.main-nav .nav-list .nav-link,
.main-nav .nav-link {
    text-decoration: none !important;
    color: #000 !important;
    font-size: 15px !important;
    padding: 8px 16px !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    transition: all 0.3s ease !important;
    font-weight: 600 !important;
    background-color: transparent !important;
    border: none !important;
    white-space: nowrap;
    border-bottom: 3px solid transparent !important;
    position: relative;
}

    .main-nav .nav-list .nav-link:hover,
    .main-nav .nav-link:hover,
    .main-nav .nav-list .nav-link:focus,
    .main-nav .nav-link:focus,
    .main-nav .nav-list .nav-item.active .nav-link,
    .main-nav .nav-item.active .nav-link {
        color: var(--secondary-color) !important;
        background-color: transparent !important;
        text-decoration: none !important;
        border-bottom-color: var(--secondary-color) !important;
    }

.dropdown-icon {
    font-size: 12px;
    margin-left: 2px;
    transition: transform 0.3s ease;
    display: inline-block;
}

.nav-item.dropdown-open .dropdown-icon {
    transform: rotate(180deg);
}

/* === Dropdown Menu === */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    list-style: none;
    min-width: 250px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    border-top: 3px solid var(--secondary-color);
    margin-top: 0;
}

.nav-item:hover .dropdown-menu,
.nav-item.dropdown-open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 12px 24px;
    color: #000;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 14px;
}

    .dropdown-menu a:hover {
        background-color: var(--hover-color);
        color: var(--secondary-color);
        padding-left: 28px;
    }

/* === Header Actions === */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-appointment {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
}

    .btn-appointment:hover {
        background-color: var(--primary-color);
        color: var(--white);
    }

.btn-login {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: all 0.3s;
}

    .btn-login:hover {
        background-color: var(--hover-color);
    }

.btn-search {
    background: #fff;
    border: none;
    padding: 8px;
    cursor: pointer;
}

.search-icon {
    position: relative;
    display: inline-block;
    width: 16px;
    height: 16px;
}

    .search-icon::before {
        content: "";
        position: absolute;
        width: 14px;
        height: 14px;
        border: 2px solid #000;
        border-radius: 50%;
        top: 0;
        left: 0;
    }

    .search-icon::after {
        content: "";
        position: absolute;
        width: 9px;
        height: 2px;
        background: #000;
        transform: rotate(45deg);
        right: -2px;
        bottom: 0;
    }

/* === Main Content === */
main {
    min-height: calc(100vh - 400px);
}

/* === Footer === */
.site-footer {
    background-color: var(--primary-color);
    color: var(--white);
    margin-top: 64px;
}

.footer-main {
    padding: 48px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
}

.footer-column {
    min-width: 0;
}

    .footer-column h3 {
        font-size: 16px;
        margin-bottom: 16px;
        font-weight: 600;
        color: var(--white);
    }

.footer-title {
    color: var(--white);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .footer-links li {
        margin-bottom: 8px;
    }

    .footer-links a {
        color: rgba(255, 255, 255, 0.8);
        text-decoration: none;
        font-size: 14px;
        transition: color 0.3s;
        display: inline-block;
    }

        .footer-links a:hover {
            color: var(--white);
            text-decoration: underline;
        }

        .footer-links a span {
            margin-left: 4px;
        }

/* === Social Links === */
.social-links {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

    .social-links a {
        width: 36px;
        height: 36px;
        background-color: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--white);
        text-decoration: none;
        transition: background-color 0.3s;
    }

        .social-links a:hover {
            background-color: rgba(255, 255, 255, 0.2);
        }

/* === Footer Bottom === */
.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 32px 0;
}

    .footer-bottom .container {
        display: block;
    }

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-legal {
    flex: 1;
}

.legal-links {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
    gap: 24px;
    padding: 0;
    margin: 0;
}

    .legal-links a {
        color: rgba(255, 255, 255, 0.8);
        text-decoration: none;
        font-size: 14px;
    }

        .legal-links a:hover {
            text-decoration: underline;
        }

.footer-app-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

    .footer-app-links span {
        color: rgba(255, 255, 255, 0.8);
        font-size: 14px;
    }

    .footer-app-links img {
        height: 40px;
        width: auto;
    }

.footer-copyright {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

    .footer-copyright p {
        margin: 0;
    }

.footer-language {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .footer-language label {
        color: rgba(255, 255, 255, 0.8);
        font-size: 14px;
    }

    .footer-language select {
        background-color: transparent;
        color: var(--white);
        border: 1px solid rgba(255, 255, 255, 0.3);
        padding: 4px 8px;
        border-radius: 4px;
        cursor: pointer;
    }

        .footer-language select option {
            background-color: var(--primary-color);
            color: var(--white);
        }

/* ===== MOBILE MENU STYLES ===== */

/* Mobile Menu Toggle Button - Hidden by default */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

    .mobile-menu-toggle span {
        width: 100%;
        height: 3px;
        background: #333;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

/* Mobile Menu Overlay
/* Mobile Menu Overlay - Add backdrop blur and opacity */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    overflow-y: auto;
}

    .mobile-menu-overlay.active {
        transform: translateX(0);
    }

/* Mobile Menu Header */
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 10;
}

.mobile-logo img {
    height: 40px;
}

.mobile-menu-close {
    background: transparent;
    border: none;
    font-size: 32px;
    color: #333;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 300;
}

/* Mobile Quick Actions Grid - Mayo Clinic Style with Blue Background */
.mobile-quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    background: #0051a5;
    border-bottom: 0;
}

.mobile-action-card {
    padding: 28px 20px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
}

    .mobile-action-card:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    .mobile-action-card .action-icon {
        width: 56px;
        height: 56px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 28px;
        color: white;
        background: transparent;
        border: 2px solid white;
    }

/* Remove individual gradient backgrounds */
.mobile-action-register .action-icon,
.mobile-action-result .action-icon,
.mobile-action-disease .action-icon,
.mobile-action-specialty .action-icon {
    background: transparent;
}

.mobile-action-card .action-text {
    font-size: 15px;
    font-weight: 500;
    color: white;
    line-height: 1.4;
}

/* Mobile Menu Navigation - Transparent background with high opacity */
.mobile-menu-nav {
    padding: 0;
    background: rgba(255, 255, 255, 0.75); /* Thêm background với opacity thấp */
}

    .mobile-menu-nav ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .mobile-menu-nav > ul > li {
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        background: transparent; /* Đảm bảo transparent */
    }

        .mobile-menu-nav > ul > li > a {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 18px 20px;
            color: #1f2937;
            text-decoration: none;
            font-size: 17px;
            font-weight: 500; /* Tăng từ 400 lên 500 để text rõ hơn */
            transition: all 0.2s;
            background: transparent;
        }

            .mobile-menu-nav > ul > li > a:hover,
            .mobile-menu-nav > ul > li > a.active {
                background: rgba(0, 81, 165, 0.08); /* Tăng opacity khi hover */
                color: #0051a5;
            }

            .mobile-menu-nav > ul > li > a i {
                font-size: 16px;
                color: #6b7280;
                transition: transform 0.3s;
            }

            .mobile-menu-nav > ul > li > a.active i {
                transform: rotate(180deg);
                color: #0051a5;
            }

/* Mobile Submenu - Also with transparency */
.mobile-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(249, 250, 251, 0.7); /* Giảm opacity */
}

    .mobile-submenu.active {
        max-height: 1000px;
    }

    .mobile-submenu li {
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

        .mobile-submenu li:last-child {
            border-bottom: none;
        }

        .mobile-submenu li a {
            display: block;
            padding: 14px 20px 14px 48px;
            color: #4b5563;
            text-decoration: none;
            font-size: 15px;
            transition: all 0.2s;
            background: transparent;
        }

            .mobile-submenu li a:hover {
                background: rgba(255, 255, 255, 0.8); /* Giảm opacity khi hover */
                color: #0051a5;
                padding-left: 52px;
            }

/* Add backdrop when menu is open */
body.mobile-menu-open {
    overflow: hidden;
}

/* ===== RESPONSIVE STYLES - ĐỒNG BỘ TỪ LỚN ĐẾN NHỎ ===== */

/* Desktop Large: > 1200px - Mặc định, không cần media query */

.container-header {
    max-width: 1400px !important;
}

/* Desktop: 992px - 1200px */
@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .container {
        max-width: 90%;
    }
}

/* Tablet & Mobile Landscape: 768px - 991px */
@media (max-width: 991px) {
    /* ===== ẨN NOTIFICATION BAR ===== */
 /*   .notification-bar {
        display: none !important;
    }*/

    .notification-message {
        flex: 1;
        font-size: 10px;
        line-height: 1.1;
    }
    /* ===== ẨN DESKTOP MENU VÀ ACTION BUTTONS ===== */
    .main-nav,
    .header-actions {
        display: none !important;
    }

    /* ===== HIỂN THỊ MOBILE MENU TOGGLE ===== */
    .mobile-menu-toggle {
        display: flex !important;
    }

    /* ===== HEADER MOBILE LAYOUT ===== */
    .header-top {
        padding: 12px 0;
    }

        .header-top .container {
            display: flex !important;
            justify-content: space-between !important;
            align-items: center !important;
            padding: 0 20px !important;
            flex-wrap: nowrap !important;
        }

    .header-logo img {
        width: 50px;
        height: auto;
    }

    /* Footer adjustments */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .container {
        padding: 0 20px;
    }
}

/* Tablet Portrait: 768px - 991px */
@media (max-width: 768px) {
    /* Footer single column */
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-copyright {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .legal-links {
        flex-direction: column;
        gap: 8px;
    }

    .blog-container {
        padding: 0 20px;
    }
}

/* Mobile Large: 577px - 767px */
@media (max-width: 576px) {
    /* Mobile action cards adjustment */
    .mobile-action-card {
        padding: 24px 16px;
    }

        .mobile-action-card .action-icon {
            width: 52px;
            height: 52px;
            font-size: 26px;
        }

        .mobile-action-card .action-text {
            font-size: 14px;
        }

    /* Container adjustments */
    .container {
        padding: 0 16px;
        max-width: 100%;
    }

    .footer-grid {
        padding: 0 16px;
    }

    .blog-container {
        padding: 0 16px;
    }
}

/* Mobile Small: 481px - 576px */
@media (max-width: 480px) {
    .header-top .container {
        padding: 0 12px !important;
    }

    .header-logo img {
        width: 45px;
    }

    .mobile-menu-toggle {
        width: 28px;
        height: 28px;
    }

        .mobile-menu-toggle span {
            height: 2.5px;
        }

    .mobile-action-card {
        padding: 20px 12px;
    }

        .mobile-action-card .action-icon {
            width: 48px;
            height: 48px;
            font-size: 24px;
        }

        .mobile-action-card .action-text {
            font-size: 13px;
        }
}

/* Mobile Extra Small: < 480px */
@media (max-width: 375px) {
    .mobile-action-card {
        padding: 18px 10px;
    }

        .mobile-action-card .action-icon {
            width: 44px;
            height: 44px;
            font-size: 22px;
        }

        .mobile-action-card .action-text {
            font-size: 12px;
        }

    .header-logo img {
        width: 40px;
    }
}

/* === (toàn bộ nội dung layout.css giữ nguyên, chỉ thêm phần dưới đây vào cuối) === */

/* ===== MOBILE QUICK ACTIONS - MAYO CLINIC STYLE ===== */

/* Bỏ vòng tròn, layout icon + text theo hàng ngang, căn trái */
.mobile-action-card {
    flex-direction: row !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    text-align: left !important;
    padding: 20px 16px !important;
    gap: 16px !important;
}

    .mobile-action-card .action-icon {
        width: auto !important;
        height: auto !important;
        border-radius: 0 !important;
        border: none !important;
        background: transparent !important;
        font-size: 26px !important;
        flex-shrink: 0;
        margin-bottom: 0 !important;
        padding-top: 2px;
    }

    .mobile-action-card .action-text {
        font-size: 17px !important;
        font-weight: 700 !important;
        line-height: 1.3 !important;
        color: white !important;
    }

/* Nút Tra cứu kết quả bên trong mobile overlay header */
.btn-tracuu-overlay {
    font-size: 0.8rem;
    padding: 0.4rem 0.75rem;
}

/* Responsive cho action cards */
@media (max-width: 576px) {
    .mobile-action-card .action-icon {
        font-size: 22px !important;
    }

    .mobile-action-card .action-text {
        font-size: 15px !important;
    }
}

@media (max-width: 375px) {
    .mobile-action-card .action-text {
        font-size: 14px !important;
    }
}


/* ============================================================
   HERO SECTION — Đồng bộ 3 trang: Chuyên khoa / Gói XN / DV
   ============================================================ */

/* Layout inline: title trái — description phải */
.hero-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: relative;
    z-index: 1;
}

    /* Override: bỏ text-align center trên từng trang */
    .hero-inline .hero-title {
        font-size: 2rem !important;
        font-weight: 600 !important;
        font-family: 'Noto Sans Display', sans-serif !important;
        text-align: left !important;
        text-shadow: 0 2px 4px rgba(0,0,0,0.1);
        margin: 0 !important;
        white-space: nowrap;
        flex-shrink: 0;
        color: #fff !important;
    }

        .hero-inline .hero-title i {
            margin-right: 10px;
        }

    .hero-inline .hero-description {
        font-size: 0.95rem !important;
        text-align: right !important;
        opacity: 0.9;
        margin: 0 !important;
        max-width: 600px;
        line-height: 1.5;
        color: rgba(255,255,255,0.95) !important;
    }

/* Padding chuẩn theo trang Chuyên khoa */
.specialty-hero,
.package-hero,
.service-hero {
    padding: 10px 0 10px !important;
}

@media (max-width: 768px) {
    .hero-inline {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

        .hero-inline .hero-title {
            font-size: 1.5rem !important;
            white-space: normal;
        }

        .hero-inline .hero-description {
            text-align: left !important;
            font-size: 0.875rem !important;
        }
}