@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');

:root {
    --color-primary: #00B4A9;
    --color-secondary: #007f7c;
    --color-primary-dark: #007f7c;
    --color-primary-light: #e0f7f5;
    --color-teal-top: #007f7c;
    --color-accent: #e31e24;
    --color-success: #198754;
    --color-text: #1a1a2e;
    --color-muted: #5c6578;
    --color-border: #dde4ee;
    --color-bg: #f5f8fc;
    --color-white: #ffffff;
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 2px 8px rgba(0, 40, 80, 0.06);
    --shadow: 0 4px 20px rgba(0, 40, 80, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 40, 80, 0.12);
    --container: 1200px;
    --container-narrow: 840px;
    --header-height: 72px;
    --header-height-compact: 64px;
    --transition: 0.2s ease;

    --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
    --font-heading: "Manrope", "Inter", "Segoe UI", system-ui, sans-serif;

    /* Breakpoints (dùng trong hospital-responsive.css)
       sm  = 576px  — điện thoại lớn
       md  = 768px  — tablet dọc
       lg  = 1024px — tablet ngang / laptop nhỏ
       xl  = 1200px — desktop
    */
    --space-page: 2rem;
    --space-section: 2.5rem;
    --container-pad: 1rem;
    --mobile-bar-height: 60px;
    --site-band-image: url("https://images.unsplash.com/photo-1519494026892-80bbd2d6fd0d?w=1600&h=900&fit=crop&q=80");
    --footer-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.07' stroke-width='1'%3E%3Cpath d='M14 6v16M6 14h16'/%3E%3Ccircle cx='14' cy='14' r='1.2' fill='%23ffffff' fill-opacity='0.08' stroke='none'/%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

.container-narrow { max-width: var(--container-narrow); }

a { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-primary-dark); }

h1, h2, h3, h4,
.section-title,
.hero-content h1,
.cta-inner h2,
.auth-card h1,
.logo-text,
.brand-name {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

h1, h2, h3, h4 { line-height: 1.3; margin-top: 0; }

code {
    background: var(--color-primary-light);
    padding: 0.15em 0.4em;
    border-radius: 4px;
    font-size: 0.9em;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none !important;
    transition: background var(--transition), border-color var(--transition), transform var(--transition);
    white-space: nowrap;
    line-height: 1.2;
}

.btn .bi {
    font-size: 1.05em;
    line-height: 1;
    flex-shrink: 0;
}

.btn-sm .bi { font-size: 0.95em; }
.btn-lg .bi { font-size: 1.15em; }

.icon-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.icon-inline .bi { line-height: 1; }

.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.btn-primary { background: var(--color-primary); color: var(--color-white) !important; }
.btn-primary:hover { background: var(--color-primary-dark); color: var(--color-white) !important; }

.btn-secondary {
    background: var(--color-white);
    color: var(--color-text) !important;
    border-color: var(--color-border);
}
.btn-secondary:hover { background: var(--color-bg); }

.btn-outline {
    background: transparent;
    color: var(--color-white) !important;
    border-color: rgba(255,255,255,0.75);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); color: var(--color-white) !important; }

.btn-outline-dark {
    background: transparent;
    color: var(--color-primary) !important;
    border-color: var(--color-primary);
}
.btn-outline-dark:hover { background: var(--color-primary-light); }

.btn-accent { background: var(--color-accent); color: var(--color-white) !important; }
.btn-accent:hover { background: #c4191f; color: var(--color-white) !important; }

.btn-sm { padding: 0.4rem 0.85rem; font-size: 0.875rem; }
.btn-lg { padding: 0.85rem 1.75rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ── Top bar & Header ── */
.top-bar {
    background: var(--color-teal-top);
    color: var(--color-white);
    font-size: 0.8rem;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 36px;
    gap: 1rem;
}

.top-bar-left,
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.top-bar-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--color-white) !important;
    text-decoration: none !important;
    opacity: 0.95;
    transition: opacity var(--transition);
}

.top-bar-item:hover { opacity: 0.75; }
.top-bar-item .bi { font-size: 0.9rem; }

button.top-bar-item,
.top-bar-button {
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
    font: inherit;
    cursor: pointer;
}

.top-bar-logout-form {
    display: inline;
    margin: 0;
}

.top-bar-lang {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-left: auto;
}

.top-bar .lang-sep {
    opacity: 0.45;
    font-weight: 600;
    line-height: 1;
}

.top-bar .lang-btn {
    cursor: pointer;
    line-height: 1;
    border: none;
    background: rgba(0, 0, 0, 0.08);
    padding: 0 2px;
    min-width: 1.85rem;
    width: 1.85rem;
    height: 26px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s, box-shadow .2s, background .2s;
}

.top-bar .lang-flag-img {
    width: 20px;
    height: auto;
    max-height: 15px;
    object-fit: cover;
    border-radius: 2px;
    display: block;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    pointer-events: none;
}

.top-bar .lang-btn:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.18);
}

.top-bar .lang-btn.active {
    background: rgba(103, 198, 63, 0.35);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.95);
}

.site-header {
    background: var(--color-white);
    box-shadow: 0 2px 12px rgba(0, 60, 60, 0.08);
    position: sticky;
    top: 0;
    z-index: 200;
    overflow: visible;
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: var(--header-height);
    position: relative;
    z-index: 291;
    overflow: visible;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-text);
    text-decoration: none !important;
    flex-shrink: 0;
    min-width: 200px;
    max-width: 280px;
}

.brand:hover .brand-name { color: var(--color-primary); }

.brand-logo-img { height: 44px; width: auto; }

.brand-logo-mark svg { width: 40px; height: 40px; }

.brand-logo-mark {
    flex-shrink: 0;
    line-height: 0;
}

.brand-text-block {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.brand-name {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: 0.02em;
    line-height: 1.2;
    transition: color var(--transition);
}

.brand-tagline {
    font-size: 0.62rem;
    font-weight: 600;
    color: #3d9a3d;
    letter-spacing: 0.03em;
    line-height: 1.3;
    text-transform: uppercase;
}

/* Nav toggle (mobile) */
.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-white);
    cursor: pointer;
    margin-left: auto;
    color: var(--color-text);
}

.nav-toggle .bi { font-size: 1.35rem; line-height: 1; }

.main-nav {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    margin-left: auto;
    justify-content: flex-end;
    flex: 0 1 auto;
    overflow: visible;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    color: #2f3b4a !important;
    font-weight: 700;
    font-size: 0.875rem; /* 14px — cấp 1 */
    line-height: 1.2;
    padding: 0.35rem 0.6rem;
    border-radius: 8px;
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    transition: background var(--transition), color var(--transition), border-radius var(--transition), border-color var(--transition);
}

.nav-link:hover,
.nav-link.active {
    background: #e8f7f5;
    color: var(--color-primary) !important;
}

.nav-chevron {
    font-size: 0.55rem;
    opacity: 0.65;
    margin-top: 1px;
    transition: transform var(--transition);
}

.nav-dropdown.open > .nav-dropdown-toggle .nav-chevron,
.nav-dropdown:hover > .nav-dropdown-toggle .nav-chevron {
    transform: rotate(180deg);
}

/* Dropdown */
.nav-dropdown {
    position: relative;
    overflow: visible;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% - 1px);
    left: 0;
    min-width: 260px;
    background: var(--color-white);
    border: 1px solid #d7e6e3;
    border-radius: 14px;
    box-shadow: 0 14px 40px rgba(20, 50, 70, 0.12);
    padding: 0.75rem;
    z-index: 300;
    overflow: visible;
}

/* Cầu hover: tránh mất menu khi di chuột từ cha → con */
.nav-dropdown-menu::before {
    content: "";
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
}

.nav-mega {
    display: none;
    gap: 0.2rem 1.5rem;
    grid-template-columns: 1fr;
    padding: 0.65rem 0.75rem 0.75rem;
    border-radius: 0 16px 16px 16px;
    align-items: start;
    overflow: visible;
}

.nav-mega.nav-mega--cols-2 {
    width: max-content;
    max-width: min(560px, calc(100vw - 2rem));
    min-width: 0;
    grid-template-columns: repeat(2, max-content);
}

/* Mục gần cuối thanh menu: panel mở sang trái để không tràn khỏi trang */
.main-nav > .nav-dropdown:nth-last-child(-n+3) > .nav-dropdown-menu {
    left: auto;
    right: 0;
    border-radius: 16px 0 16px 16px;
}

.main-nav > .nav-dropdown:nth-last-child(-n+3) .nav-submenu {
    left: auto;
    right: calc(100% - 2px);
}

.main-nav > .nav-dropdown:nth-last-child(-n+3) .nav-submenu::before {
    left: auto;
    right: -14px;
}

.nav-dropdown.open > .nav-mega,
.nav-dropdown:hover > .nav-mega {
    display: grid;
}

/* Tab cấp 1 nối liền mega panel (mint tab + panel trắng) */
.nav-dropdown.open > .nav-dropdown-toggle,
.nav-dropdown:hover > .nav-dropdown-toggle {
    position: relative;
    z-index: 301;
    border-radius: 8px 8px 0 0;
    background: #e8f7f5;
    color: var(--color-primary) !important;
    border-color: #d7e6e3;
    border-bottom-color: #e8f7f5;
}

.nav-mega-item,
.nav-mega-item-btn {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
    padding: 0.45rem 0.4rem;
    border: none;
    background: transparent;
    border-radius: 8px;
    text-decoration: none !important;
    color: var(--color-text) !important;
    text-align: left;
    cursor: pointer;
    font: inherit;
    transition: background var(--transition), color var(--transition);
}

.nav-mega-item:hover,
.nav-mega-item-btn:hover,
.nav-mega-item--parent.open > .nav-mega-item-btn,
.nav-mega-item--parent:hover > .nav-mega-item-btn {
    background: #f3faf9;
}

.nav-mega-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: #e7f6f4;
    color: var(--color-primary);
}

.nav-mega-icon-img,
.nav-mega-icon .nav-mega-icon-bi {
    width: 14px;
    height: 14px;
    object-fit: contain;
    flex-shrink: 0;
}

.nav-mega-icon .nav-mega-icon-bi {
    font-size: 0.85rem;
    line-height: 1;
    color: var(--color-primary);
}

.nav-menu-icon {
    width: 13px;
    height: 13px;
    object-fit: contain;
    flex-shrink: 0;
    font-size: 0.85rem;
    line-height: 1;
}

.nav-mega-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.15rem;
    min-width: 0;
    flex: 1 1 auto;
    text-align: left;
}

.nav-mega-title {
    font-size: 0.9375rem; /* 15px — cấp 2 */
    font-weight: 700;
    line-height: 1.25;
    color: #1e293b;
    text-transform: none;
    letter-spacing: 0;
}

.nav-mega-desc {
    font-size: 0.8125rem; /* 13px */
    line-height: 1.35;
    color: #6c757d;
    font-weight: 400;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nav-mega-item--parent {
    position: relative;
    padding: 0;
    overflow: visible;
}

.nav-mega-item--compact {
    padding: 0.4rem 0.35rem;
    align-items: center;
    gap: 0.5rem;
}

.nav-mega-item--compact .nav-mega-icon {
    width: 24px;
    height: 24px;
    border-radius: 7px;
}

.nav-mega-item--compact .nav-mega-icon-img,
.nav-mega-item--compact .nav-mega-icon-bi {
    width: 12px;
    height: 12px;
    font-size: 0.75rem;
}

.nav-mega-item--compact .nav-mega-title {
    font-size: 0.8125rem; /* 13px — cấp 3 */
    font-weight: 600;
}

.nav-chevron-right {
    font-size: 0.65rem;
    opacity: 0.55;
    margin-left: auto;
    align-self: center;
    flex-shrink: 0;
}

.nav-submenu {
    display: none;
    position: absolute;
    left: calc(100% - 2px);
    top: 0;
    min-width: 220px;
    background: var(--color-white);
    border: 1px solid #d7e6e3;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(20, 50, 70, 0.12);
    padding: 0.45rem 0.5rem;
    z-index: 330;
}

/* Cầu hover ngang sang cấp 3 */
.nav-submenu::before {
    content: "";
    position: absolute;
    top: 0;
    left: -14px;
    width: 16px;
    bottom: 0;
}

.nav-mega-item--parent.open > .nav-submenu,
.nav-mega-item--parent:hover > .nav-submenu {
    display: block;
}

@media (hover: hover) and (pointer: fine) {
    .nav-mega-item--parent:hover > .nav-submenu {
        display: block;
    }
}

/* Hover + click đều dùng class .open → cùng một kiểu hiện menu con */
.nav-dropdown.open > .nav-dropdown-menu:not(.nav-mega) {
    display: block;
}

/* Desktop: CSS :hover giữ menu khi Blazor mouseleave bị trễ */
@media (hover: hover) and (pointer: fine) {
    .nav-dropdown:hover > .nav-dropdown-menu:not(.nav-mega) {
        display: block;
    }
}

/* Click ngoài menu → đóng (dưới mega panel) */
.nav-click-away {
    position: fixed;
    inset: 0;
    z-index: 290;
    background: transparent;
}
/* Search */
.header-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: #f0f4f8;
    color: var(--color-primary);
    cursor: pointer;
    flex-shrink: 0;
    margin-left: 0.15rem;
    transition: background var(--transition), border-color var(--transition);
}

.header-search-btn .bi { font-size: 1.1rem; line-height: 1; }

.header-search-btn:hover {
    background: var(--color-primary-light);
    border-color: var(--color-primary);
}

/* Search modal popup */
.search-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 30, 40, 0.55);
    z-index: 1000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 6rem 1rem 2rem;
    animation: searchFadeIn 0.2s ease;
}

@keyframes searchFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.search-modal {
    width: 100%;
    max-width: 520px;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 1.5rem;
    animation: searchSlideIn 0.25s ease;
}

@keyframes searchSlideIn {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
}

.search-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.35rem;
}

.search-modal-header h2 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--color-text);
}

.search-modal-close {
    border: none;
    background: transparent;
    font-size: 1.25rem;
    color: var(--color-muted);
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    line-height: 1;
    border-radius: 4px;
}

.search-modal-close:hover {
    background: var(--color-bg);
    color: var(--color-text);
}

.search-modal-hint {
    margin: 0 0 1.25rem;
    font-size: 0.9rem;
    color: var(--color-muted);
}

.search-scope-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(6.5rem, 1fr));
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.search-scope-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0.75rem 0.45rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-bg);
    color: var(--color-text);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

.search-scope-tab:hover {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
}

.search-scope-tab.active {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
    color: var(--color-primary);
    box-shadow: 0 0 0 1px var(--color-primary);
}

.search-scope-tab .bi { font-size: 1.35rem; line-height: 1; }

.search-modal-form { display: flex; flex-direction: column; gap: 0.5rem; }

.search-modal-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text);
}

.search-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.65rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

.main-content { min-height: 55vh; padding-bottom: 0; }

/* ── Hero carousel (home) ── */
.hero-home {
    position: relative;
    padding: 0;
    background: #0d1f28;
    overflow: hidden;
}

.hero-carousel-viewport {
    position: relative;
    width: 100%;
    /* Khớp tỉ lệ banner thật (~2172×724); cover + căn phải giữ full khung */
    aspect-ratio: 3 / 1;
    overflow: hidden;
    isolation: isolate;
}

.hero-carousel-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.85s ease, visibility 0.85s ease;
    z-index: 0;
}

.hero-carousel-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.hero-carousel-img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: right center;
}

.hero-carousel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(0, 28, 36, 0.82) 0%, rgba(0, 28, 36, 0.45) 42%, transparent 68%);
    z-index: 1;
    pointer-events: none;
}

.hero-carousel .hero-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    /* Giữ cùng bề rộng / padding với .container nội dung trang */
    max-width: var(--container);
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-pad);
    padding-right: var(--container-pad);
    color: var(--color-white);
    padding-top: clamp(1rem, 2.5vw, 1.75rem);
    padding-bottom: clamp(1rem, 2.5vw, 1.75rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    pointer-events: none;
    box-sizing: border-box;
}

.hero-carousel .hero-content .hero-actions,
.hero-carousel .hero-content a {
    pointer-events: auto;
}

.hero-text-block {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    max-width: min(560px, 100%);
}

.hero-carousel .hero-content h1 {
    font-size: clamp(1.35rem, 3.2vw, 2.15rem);
    font-weight: 800;
    line-height: 1.2;
    margin: 0;
    max-width: min(560px, 100%);
    text-align: left;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55), 0 1px 3px rgba(0, 0, 0, 0.4);
}

.hero-carousel .hero-eyebrow {
    display: inline-block;
    margin: 0 0 0.65rem;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-shadow: none;
    backdrop-filter: blur(4px);
}

.hero-carousel .hero-line {
    margin: 0;
    font-size: clamp(1.05rem, 2.2vw, 1.35rem);
    font-weight: 700;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.98);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
    max-width: min(560px, 100%);
}

.hero-carousel .hero-line--muted {
    font-size: clamp(0.95rem, 1.8vw, 1.15rem);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
}

.hero-carousel .hero-actions {
    margin-top: 1rem;
}

.hero-carousel .hero-desc {
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    font-weight: 500;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.96);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
    opacity: 1;
    max-width: min(560px, 100%);
    margin: 0;
    text-align: left;
}

.hero-content-animate {
    animation: heroTextIn 0.65s ease 0.15s both;
}

@keyframes heroTextIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero float actions — cố định góc dưới-phải body */
.main-content .hero-float-actions {
    position: fixed;
    right: 1rem;
    bottom: 1.5rem;
    top: auto;
    transform: none;
    z-index: 90;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    pointer-events: none;
}

.main-content .hero-float-actions .hero-float-btn {
    pointer-events: auto;
}

/* Hero float actions */
.hero-float-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.55rem;
}

.hero-float-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0;
    border-radius: 50%;
    border: 2px solid transparent;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.16);
    text-decoration: none !important;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1;
    text-align: center;
}

.hero-float-btn .bi {
    font-size: 1.05rem;
    line-height: 1;
    flex-shrink: 0;
}

.hero-float-label {
    position: absolute;
    right: calc(100% + 0.45rem);
    top: 50%;
    transform: translateY(-50%) translateX(4px);
    padding: 0.28rem 0.55rem;
    border-radius: 6px;
    background: rgba(15, 23, 32, 0.88);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
    line-height: 1.2;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}

.hero-float-btn:hover,
.hero-float-btn:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.2);
}

.hero-float-btn:hover .hero-float-label,
.hero-float-btn:focus-visible .hero-float-label {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

/* Màu chính — teal */
.hero-float-btn--primary {
    background: var(--color-primary);
    color: var(--color-white) !important;
    border-color: var(--color-primary-dark);
}

.hero-float-btn--primary:hover {
    background: var(--color-primary-dark);
    color: var(--color-white) !important;
}

/* Màu phụ — #007f7c */
.hero-float-btn--secondary {
    background: var(--color-secondary);
    color: var(--color-white) !important;
    border-color: #006663;
}

.hero-float-btn--secondary:hover {
    background: #006663;
    color: var(--color-white) !important;
}

/* Nhấn mạnh — đỏ accent (cấp cứu) */
.hero-float-btn--accent {
    background: var(--color-accent);
    color: var(--color-white) !important;
    border-color: #c4191f;
}

.hero-float-btn--accent:hover {
    background: #c4191f;
    color: var(--color-white) !important;
}

.hero-float-btn--messenger {
    background: #0084ff;
    color: var(--color-white) !important;
    border-color: #006fd6;
}

.hero-float-btn--messenger:hover {
    background: #006fd6;
    color: var(--color-white) !important;
}

.hero-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    pointer-events: auto;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
    transition: background var(--transition), transform var(--transition);
}

.hero-carousel-nav:hover {
    background: var(--color-white);
    transform: translateY(-50%) scale(1.06);
}

.hero-carousel-nav .bi { font-size: 1.15rem; line-height: 1; }

.hero-carousel-prev { left: 1rem; }
.hero-carousel-next { right: 1rem; }

.hero-carousel-dots {
    position: absolute;
    bottom: 0.85rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    pointer-events: auto;
    display: flex;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(6px);
}

.hero-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.85);
    background: transparent;
    padding: 0;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
}

.hero-carousel-dot:hover { transform: scale(1.15); }

.hero-carousel-dot.active {
    background: var(--color-white);
    transform: scale(1.1);
}

.hero-content h1 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    margin: 0.4rem 0 0.75rem;
    max-width: 680px;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.hero .hero-eyebrow { color: rgba(255,255,255,0.9); }
.hero-desc { opacity: 0.92; max-width: 560px; margin-bottom: 0; }

/* Hero contact strip — 3 ô thông tin dưới banner */
.hero-contact-strip {
    position: relative;
    z-index: 1;
    padding: 1.25rem 0 0.75rem;
    background: var(--color-bg);
}

.hero-contact-card {
    display: grid;
    grid-template-columns: 1fr;
    background: var(--color-white);
    border-radius: 14px;
    box-shadow: var(--shadow);
    border: 1px solid var(--color-border);
    overflow: hidden;
}

.hero-contact-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.95rem 1.15rem;
    min-width: 0;
    border-bottom: 1px solid var(--color-border);
    text-decoration: none;
    color: inherit;
    transition: background var(--transition);
}

.hero-contact-cell:last-child {
    border-bottom: none;
}

.hero-contact-icon {
    flex-shrink: 0;
    align-self: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.hero-contact-icon--primary {
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.hero-contact-icon--secondary {
    background: #e8f4f3;
    color: var(--color-secondary);
}

.hero-contact-body {
    min-width: 0;
    flex: 1;
}

.hero-contact-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-muted);
    margin-bottom: 0.3rem;
}

.hero-contact-phone-line {
    display: block;
    text-decoration: none !important;
    color: inherit;
    margin-bottom: 0.3rem;
    transition: opacity var(--transition);
}

.hero-contact-phone-line:last-child {
    margin-bottom: 0;
}

.hero-contact-phone-line:hover {
    opacity: 0.85;
}

.hero-contact-sublabel {
    display: block;
    font-size: 0.72rem;
    color: var(--color-muted);
    margin-bottom: 0.1rem;
}

.hero-contact-phone-line strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    line-height: 1.25;
}

.hero-contact-phone-line--emergency strong {
    color: var(--color-accent);
}

.hero-contact-text {
    margin: 0;
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--color-text);
}

.hero-contact-hours {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.hero-contact-hours li {
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-text);
}

/* Legacy hero (inner pages) — không áp dụng cho banner carousel trang chủ */
.hero:not(.hero-home) {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-white);
    padding: 3.5rem 0 4.5rem;
}

.hero.hero-home {
    padding: 0;
}

.hero-eyebrow, .section-eyebrow {
    opacity: 0.85;
    margin: 0;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-primary);
}

.hero-actions {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.quick-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin: -2.5rem auto 0;
    position: relative;
    z-index: 1;
    padding-bottom: 2rem;
}

.info-card {
    background: var(--color-white);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--color-border);
}

.info-label {
    display: block;
    font-size: 0.8rem;
    color: var(--color-muted);
    margin-bottom: 0.35rem;
    font-weight: 500;
}

/* ── Footer ── */
.site-footer {
    position: relative;
    color: rgba(255, 255, 255, 0.88);
    padding: 2.75rem 0 0;
    background-color: #0a1f2e;
    background-image:
        linear-gradient(165deg, rgba(10, 31, 46, 0.97) 0%, rgba(0, 90, 88, 0.94) 50%, rgba(12, 32, 52, 0.98) 100%),
        var(--footer-pattern);
    background-size: auto, 28px 28px;
    background-position: center, 0 0;
    background-repeat: repeat;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) repeat(2, minmax(0, 0.9fr)) minmax(0, 1.05fr);
    gap: 1.75rem 2rem;
    padding-bottom: 2rem;
}

.site-footer h4 {
    color: #fff;
    margin: 0 0 0.9rem;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.site-footer a {
    color: #9fd4ff;
    text-decoration: none !important;
    transition: color var(--transition);
}

.site-footer a:hover {
    color: #fff;
}

.footer-about {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact-list,
.footer-link-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.footer-contact-list li {
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.9rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.86);
}

.footer-contact-list .bi {
    color: var(--color-primary);
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.footer-contact-list a {
    color: #7dffcf;
    font-weight: 600;
}

.footer-link-list a {
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.9rem;
}

.footer-link-list a:hover {
    color: var(--color-primary);
}

.footer-social {
    display: flex;
    gap: 0.55rem;
    margin-bottom: 0.95rem;
}

.footer-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff !important;
    transition: background var(--transition), transform var(--transition);
}

.footer-social-btn:hover {
    background: #00c9bc;
    color: #fff !important;
    transform: translateY(-1px);
}

.footer-social-btn .bi {
    font-size: 1rem;
    line-height: 1;
}

.footer-stat-boxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    width: 100%;
    max-width: 17.5rem;
    margin-bottom: 0.85rem;
    border-radius: 8px;
    overflow: hidden;
}

.footer-stat-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 0.15rem;
    min-height: 4rem;
    padding: 0.55rem 0.65rem;
    border-radius: 0;
}

.footer-stat-box--online {
    background: var(--color-primary);
    color: #fff;
    border-radius: 8px 0 0 8px;
}

.footer-stat-box--total {
    background: rgba(255, 255, 255, 0.96);
    color: var(--color-text);
    border-radius: 0 8px 8px 0;
}

.footer-stat-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.9;
}

.footer-stat-box--total .footer-stat-label {
    color: var(--color-muted);
    opacity: 1;
}

.footer-stat-value {
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.footer-dmca {
    display: inline-block;
    line-height: 0;
    opacity: 0.95;
    transition: opacity var(--transition), transform var(--transition);
}

.footer-dmca:hover {
    opacity: 1;
    transform: translateY(-1px);
}

.footer-dmca img {
    display: block;
    height: 24px;
    width: auto;
    max-width: 100%;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    font-size: 0.85rem;
    background: rgba(0, 0, 0, 0.18);
}

.footer-bottom-mail {
    color: #9fd4ff !important;
    font-weight: 500;
}

.footer-bottom-mail:hover {
    color: #fff !important;
}

/* ── CTA Banner ── */
.cta-banner {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    color: var(--color-white);
    padding: 3.25rem 0;
    background: linear-gradient(120deg, #006663 0%, #007f7c 50%, #005a57 100%);
}

.cta-banner::before {
    content: "";
    position: absolute;
    inset: -24px;
    z-index: 0;
    background-image: var(--site-band-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(8px) saturate(0.85);
    opacity: 0.28;
    pointer-events: none;
}

.cta-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(120deg, rgba(0, 95, 92, 0.72) 0%, rgba(0, 127, 124, 0.62) 45%, rgba(0, 60, 70, 0.78) 100%);
    pointer-events: none;
}

.cta-inner {
    position: relative;
    z-index: 1;
    text-align: center;
}

.cta-inner h2 {
    margin: 0 0 0.75rem;
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
}

.cta-inner p {
    opacity: 0.95;
    margin-bottom: 1.5rem;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Mobile action bar ── */
.mobile-action-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 300;
    background: var(--color-white);
    box-shadow: 0 -4px 16px rgba(0,0,0,0.1);
    padding: 0.5rem;
    gap: 0.5rem;
}

.mobile-action {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none !important;
}

.mobile-action.booking { background: var(--color-primary); color: var(--color-white) !important; }
.mobile-action.emergency { background: #fde8e8; color: var(--color-accent) !important; }

/* ── Blazor error UI ── */
#blazor-error-ui {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #b32121;
    color: white;
    padding: 0.75rem 1.25rem;
    z-index: 9999;
}
