﻿/* ══════════════════════════════════════════════════════════════════════════
   TYT Portal – Bach Mai Inspired Medical Design System
   Font: Montserrat | Primary: #0055a5 | .NET 10 / Blazor
   ══════════════════════════════════════════════════════════════════════════ */

/* ── CSS Variables ── */
:root {
    --primary:             #0055a5;
    --primary-dark:        #003d7a;
    --primary-light:       #2977c9;
    --primary-ultra-light: #e8f0fb;
    --teal:                #00897b;
    --teal-light:          #4db6ac;
    --accent:              #e53935;
    --accent-dark:         #b71c1c;
    --warning:             #f57c00;
    --success:             #2e7d32;
    --bg:                  #f0f4f8;
    --bg-white:            #ffffff;
    --bg-section:          #f7f9fc;
    --text-dark:           #1e2d3d;
    --text-main:           #2c3e50;
    --text-muted:          #5a6a7a;
    --border:              #dce6f0;
    --border-light:        #eef2f8;
    --shadow-sm:           0 2px 8px rgba(0,85,165,.08);
    --shadow-md:           0 4px 20px rgba(0,85,165,.14);
    --shadow-lg:           0 8px 40px rgba(0,85,165,.2);
    --shadow-card:         0 2px 12px rgba(0,0,0,.07);
    --radius-sm:           6px;
    --radius-md:           10px;
    --radius-lg:           16px;
    --radius-xl:           24px;
    --transition:          .25s ease;
    --header-h:            72px;
    --container-max:       1200px;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
    background-color: var(--bg);
    color: var(--text-main);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.3;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; display: block; }

h1:focus { outline: none; }

/* ── Container ── */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

/* ══════════════════════════════════════════════════════════════════════════
   PUBLIC LAYOUT – Top Bar
   ══════════════════════════════════════════════════════════════════════════ */
.site-topbar {
    background: var(--primary-dark);
    color: rgba(255,255,255,.85);
    font-size: .78rem;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-topbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.topbar-left, .topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.topbar-sep { color: rgba(255,255,255,.3); }
.topbar-schedule { color: rgba(255,255,255,.8); }
.topbar-schedule strong { color: #fff; }
.topbar-hotline-link {
    color: #ffd54f;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color var(--transition);
}
.topbar-hotline-link:hover { color: #fff; }

/* legacy compat */
.topbar-hotline {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.topbar-hotline a { color: #ffd54f; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.topbar-hotline a:hover { color: #fff; }
.topbar-hotline span { color: rgba(255,255,255,.6); }

/* ══════════════════════════════════════════════════════════════════════════
   PUBLIC LAYOUT – Header
   ══════════════════════════════════════════════════════════════════════════ */
.site-header {
    background: var(--bg-white);
    border-bottom: 3px solid var(--primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }
.header-inner {
    display: flex;
    align-items: center;
    height: var(--header-h);
    gap: 20px;
}
/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}
.logo-emblem, .site-logo .logo-icon {
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(0,85,165,.3);
}
.site-logo .logo-text { display: flex; flex-direction: column; gap: 1px; }
.site-logo .logo-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
    white-space: nowrap;
    letter-spacing: -.01em;
}
.site-logo .logo-sub {
    font-size: .72rem;
    color: var(--text-muted);
    white-space: nowrap;
    font-weight: 400;
}
/* ── Main Nav ── */
.main-nav { flex: 1; }
.nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 2px;
}
.nav-list > li > a {
    display: block;
    padding: 8px 13px;
    font-size: .875rem;
    font-weight: 600;
    color: var(--text-main);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    white-space: nowrap;
    position: relative;
}
.nav-list > li > a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 70%;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
    transition: transform var(--transition);
}
.nav-list > li > a:hover::after,
.nav-list > li > a.active::after { transform: translateX(-50%) scaleX(1); }
.nav-list > li > a:hover { color: var(--primary); }
.nav-list > li > a.active { color: var(--primary); font-weight: 700; }

/* ── Header Right (search + CTA) ── */
.header-right, .header-search {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.header-search-form {
    display: flex;
    border: 1.5px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.header-search-form:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,85,165,.12);
}
.header-search-input {
    border: none;
    outline: none;
    padding: 7px 14px;
    font-size: .83rem;
    font-family: inherit;
    width: 170px;
    background: var(--bg);
    color: var(--text-main);
}
.header-search-btn {
    background: var(--primary);
    border: none;
    color: #fff;
    padding: 7px 14px;
    cursor: pointer;
    font-size: .88rem;
    transition: background var(--transition);
}
.header-search-btn:hover { background: var(--primary-dark); }
.header-cta {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 24px;
    padding: 8px 18px;
    font-size: .82rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all var(--transition);
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(229,57,53,.3);
}
.header-cta:hover { background: var(--accent-dark); color: #fff; transform: translateY(-1px); }

/* ── Hamburger ── */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    flex-direction: column;
    gap: 5px;
    margin-left: auto;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

/* ── Mobile Menu ── */
.mobile-menu {
    display: none;
    background: var(--bg-white);
    border-top: 1px solid var(--border-light);
    padding: 8px 0 16px;
    box-shadow: var(--shadow-md);
}
.mobile-menu.open { display: block; }
.mobile-nav-list {
    list-style: none;
}
.mobile-nav-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 20px;
    font-size: .95rem;
    font-weight: 600;
    color: var(--text-main);
    border-bottom: 1px solid var(--border-light);
    transition: all var(--transition);
}
.mobile-nav-list a:hover { background: var(--primary-ultra-light); color: var(--primary); padding-left: 26px; }

/* ══════════════════════════════════════════════════════════════════════════
   PUBLIC LAYOUT – Footer
   ══════════════════════════════════════════════════════════════════════════ */
.site-footer {
    background: linear-gradient(180deg, #0d2240 0%, #091828 100%);
    color: rgba(255,255,255,.8);
    padding: 56px 0 0;
    margin-top: 72px;
    position: relative;
}
.site-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 50%, var(--teal) 100%);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.6fr;
    gap: 40px;
    padding-bottom: 40px;
}
.footer-brand .brand-name, .footer-brand-name {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
}
.footer-brand p, .footer-brand-desc {
    font-size: .84rem;
    line-height: 1.75;
    color: rgba(255,255,255,.6);
    margin-bottom: 18px;
}
.footer-emergency, .footer-emergency-box {
    background: rgba(229,57,53,.18);
    border: 1px solid rgba(229,57,53,.35);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .88rem;
    font-weight: 700;
    color: #fff;
    margin-top: 12px;
}
.footer-emergency a, .footer-emergency-box a { color: #ff8a80; font-size: 1rem; }
.footer-emergency a:hover, .footer-emergency-box a:hover { color: #fff; }
.footer-col h4, .footer-col-title {
    font-size: .82rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    text-transform: uppercase;
    letter-spacing: .07em;
    display: block;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 9px; }
.footer-links a {
    color: rgba(255,255,255,.65);
    font-size: .85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all var(--transition);
}
.footer-links a::before { content: '›'; color: var(--primary-light); font-weight: 700; }
.footer-links a:hover { color: #fff; padding-left: 4px; }
.footer-contact-item, .footer-contact-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: .84rem;
    color: rgba(255,255,255,.7);
}
.footer-contact-item .icon, .footer-contact-row .fi { font-size: 1rem; flex-shrink: 0; margin-top: 2px; color: var(--primary-light); }
.footer-contact-item a, .footer-contact-row a { color: #ffd54f; font-weight: 600; }
.footer-contact-item a:hover, .footer-contact-row a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 16px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .78rem;
    color: rgba(255,255,255,.4);
    text-align: center;
}

/* ══════════════════════════════════════════════════════════════════════════
   PAGE HERO (interior pages)
   ══════════════════════════════════════════════════════════════════════════ */
.page-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, var(--primary-light) 100%);
    padding: 44px 0 40px;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 10% 50%, rgba(255,255,255,.1) 0%, transparent 60%),
        radial-gradient(ellipse at 90% -20%, rgba(255,255,255,.08) 0%, transparent 50%);
}
.page-hero::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 0; right: 0;
    height: 32px;
    background: var(--bg);
    clip-path: ellipse(55% 100% at 50% 100%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero-title {
    font-size: 1.9rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: -.02em;
}
.page-hero-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .82rem;
    color: rgba(255,255,255,.75);
    flex-wrap: wrap;
}
.page-hero-breadcrumb a { color: rgba(255,255,255,.9); font-weight: 600; }
.page-hero-breadcrumb a:hover { color: #fff; }
.page-hero-breadcrumb .sep { color: rgba(255,255,255,.35); }
.page-hero-breadcrumb .current { color: rgba(255,255,255,.6); }

/* ══════════════════════════════════════════════════════════════════════════
   SHARED UTILITIES
   ══════════════════════════════════════════════════════════════════════════ */
/* ── Section Head ── */
.section-head { margin-bottom: 40px; }
.section-head.center { text-align: center; }
.section-label {
    display: inline-block;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--primary-ultra-light);
    border-radius: 999px;
    padding: 4px 14px;
    margin-bottom: 10px;
}
.section-head .section-sub {
    margin-top: 12px;
    font-size: .95rem;
    color: var(--text-muted);
    max-width: 560px;
    line-height: 1.6;
}
.section-head.center .section-sub { margin: 12px auto 0; }

/* ── Section Title ── */
.section-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 14px;
    margin-bottom: 24px;
    letter-spacing: -.02em;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 44px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 2px;
}
.section-title.center { text-align: center; }
.section-title.center::after { left: 50%; transform: translateX(-50%); }

/* ── Section row (title + link) ── */
.section-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.section-row .section-title { margin-bottom: 0; }

.page-section { padding: 56px 0; }
.page-section-alt { background: var(--bg-white); }
.page-section-blue { background: var(--primary-ultra-light); }

/* ── Breadcrumb ── */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: .82rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    padding: 10px 0;
}
.breadcrumb a { color: var(--primary); font-weight: 500; }
.breadcrumb a:hover { color: var(--primary-dark); }
.breadcrumb .sep { color: var(--border); }
.breadcrumb .current { color: var(--text-main); font-weight: 600; }

/* ── Alert / Info Boxes ── */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    font-size: .9rem;
    margin-bottom: 20px;
    border-left: 4px solid;
}
.alert-info    { background: #e8f0fb; color: #1a4fa0; border-color: var(--primary); }
.alert-success { background: #e8f5e9; color: #2e7d32; border-color: #2e7d32; }
.alert-warning { background: #fff3e0; color: #e65100; border-color: #e65100; }
.alert-error   { background: #ffebee; color: #c62828; border-color: #c62828; }

/* ── Badge / Tag ── */
.badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 30px;
    font-size: .75rem;
    font-weight: 700;
    white-space: nowrap;
    letter-spacing: .02em;
}
.badge-primary   { background: var(--primary);  color: #fff; }
.badge-secondary { background: var(--teal);     color: #fff; }
.badge-info      { background: #0288d1;          color: #fff; }
.badge-outline   { background: transparent; border: 1.5px solid var(--primary); color: var(--primary); }

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 11px 24px;
    font-size: .9rem;
    font-weight: 700;
    font-family: inherit;
    border: 2px solid transparent;
    border-radius: 30px;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.3;
}
.btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary {
    background: var(--teal);
    color: #fff;
    border-color: var(--teal);
}
.btn-secondary:hover { background: #00695c; color: #fff; }
.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; transform: translateY(-1px); }
.btn-outline-white {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,.7);
}
.btn-outline-white:hover { background: rgba(255,255,255,.15); color: #fff; }
/* legacy compat */
.hero-outline { color: #fff !important; border-color: rgba(255,255,255,.7) !important; }
.hero-outline:hover { background: rgba(255,255,255,.12) !important; }
.btn-accent {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.btn-accent:hover { background: var(--accent-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(229,57,53,.3); }
.btn-sm  { padding: 7px 18px; font-size: .82rem; }
.btn-lg  { padding: 14px 32px; font-size: 1rem; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none !important; }

/* ── Required ── */
.required { color: var(--accent); margin-left: 2px; }

/* ══════════════════════════════════════════════════════════════════════════
   CARD COMPONENTS
   ══════════════════════════════════════════════════════════════════════════ */
.card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-body { padding: 22px; }

/* ── News Card ── */
.news-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
    transition: box-shadow var(--transition), transform var(--transition);
    border: 1px solid var(--border-light);
}
.news-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.news-card-img {
    position: relative;
    overflow: hidden;
    height: 190px;
    flex-shrink: 0;
}
.news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.news-card:hover .news-card-img img { transform: scale(1.05); }
.news-card-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.news-card-category {
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--primary);
    margin-bottom: 8px;
}
.news-card-title {
    font-size: .95rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.45;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card:hover .news-card-title { color: var(--primary); }
.news-card-summary {
    font-size: .82rem;
    color: var(--text-muted);
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}
.news-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .75rem;
    color: var(--text-muted);
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
}
.news-card-meta span { display: flex; align-items: center; gap: 4px; }

/* ── Featured News (Homepage) ── */
.news-featured {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
.news-featured-main {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
    cursor: pointer;
    transition: box-shadow var(--transition), transform var(--transition);
    display: flex;
    flex-direction: column;
}
.news-featured-main:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.news-featured-main-img { height: 240px; overflow: hidden; flex-shrink: 0; }
.news-featured-main-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.news-featured-main:hover .news-featured-main-img img { transform: scale(1.04); }
.news-featured-main-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.news-featured-main-body .news-card-title { font-size: 1.05rem; -webkit-line-clamp: 3; }
.news-featured-list { display: flex; flex-direction: column; gap: 10px; }
.news-list-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 12px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
    cursor: pointer;
    transition: all var(--transition);
}
.news-list-item:hover { box-shadow: var(--shadow-md); transform: translateX(3px); }
.news-list-item-img { width: 88px; height: 66px; flex-shrink: 0; border-radius: var(--radius-sm); overflow: hidden; }
.news-list-item-img img { width: 100%; height: 100%; object-fit: cover; }
.news-list-item-body { flex: 1; }
.news-list-item-title {
    font-size: .88rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 5px;
}
.news-list-item:hover .news-list-item-title { color: var(--primary); }
.news-list-item-date { font-size: .74rem; color: var(--text-muted); }

/* ══════════════════════════════════════════════════════════════════════════
   NEWS PAGE – CATEGORY SECTIONS & SLIDER
   ══════════════════════════════════════════════════════════════════════════ */

/* Section wrapper */
.news-page-section { margin-bottom: 56px; }
.news-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--primary-ultra-light);
    position: relative;
}
.news-section-header::before {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 56px; height: 2px;
    background: var(--primary);
    border-radius: 2px;
}
.news-section-title {
    font-size: 1.18rem;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.news-section-more {
    font-size: .82rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    transition: gap var(--transition);
}
.news-section-more:hover { gap: 10px; }

/* Slider container */
.news-slider { position: relative; }
.news-slider-main { position: relative; }
.news-slider-viewport {
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    touch-action: pan-y;
}
.news-slider-track {
    display: flex;
    transition: transform .55s cubic-bezier(.4,0,.2,1);
}
.news-slide { min-width: 100%; flex-shrink: 0; }

/* Slide inner layout: image 55% | body 45% */
.news-slide-inner {
    display: grid;
    grid-template-columns: 55% 45%;
    min-height: 380px;
    cursor: pointer;
    background: var(--bg-white);
}
.news-slide-img {
    overflow: hidden;
    position: relative;
}
.news-slide-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}
.news-slide-inner:hover .news-slide-img img { transform: scale(1.04); }
.news-slide-body {
    padding: 36px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
}
.news-slide-cat {
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--primary);
}
.news-slide-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--transition);
}
.news-slide-inner:hover .news-slide-title { color: var(--primary); }
.news-slide-summary {
    font-size: .9rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-slide-meta {
    display: flex;
    gap: 16px;
    font-size: .78rem;
    color: var(--text-muted);
}

/* Prev / Next arrows */
.news-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px; height: 44px;
    background: rgba(255,255,255,.92);
    border: 1px solid var(--border-light);
    border-radius: 50%;
    font-size: 1.9rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-card);
    transition: all var(--transition);
    z-index: 10;
    color: var(--primary-dark);
    padding: 0;
}
.news-slider-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.news-slider-btn.prev { left: 12px; }
.news-slider-btn.next { right: 12px; }

/* Dots */
.news-slider-dots {
    display: flex;
    justify-content: center;
    gap: 7px;
    padding: 12px 0 0;
}
.news-slider-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--border);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all var(--transition);
}
.news-slider-dot.active { width: 24px; border-radius: 4px; background: var(--primary); }

/* Responsive */
@media (max-width: 768px) {
    .news-slide-inner { grid-template-columns: 1fr; min-height: auto; }
    .news-slide-img { height: 200px; }
    .news-slide-body { padding: 18px 16px; gap: 10px; }
    .news-slide-title { font-size: 1.05rem; }
    .news-slide-summary { -webkit-line-clamp: 2; }
    .news-slide-meta { flex-wrap: wrap; gap: 8px; }
    /* Position arrows over the image area only (not the stacked text body) */
    .news-slider-btn { width: 36px; height: 36px; font-size: 1.4rem; top: 100px; }
    .news-slider-btn.prev { left: 8px; }
    .news-slider-btn.next { right: 8px; }
    .news-page-section { margin-bottom: 36px; }
    .news-section-header { margin-bottom: 14px; padding-bottom: 10px; }
    .news-section-title { font-size: 1rem; }
}

/* ── Doctor Card ── */
.doctor-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    text-align: center;
    border: 1px solid var(--border-light);
    transition: box-shadow var(--transition), transform var(--transition);
}
.doctor-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.doctor-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: top;
}
.doctor-card-body { padding: 16px 18px 20px; }
.doctor-card-title {
    font-size: .72rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 6px;
}
.doctor-card-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
}
.doctor-card-dept {
    font-size: .82rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}
.doctor-card-specialty {
    font-size: .82rem;
    color: var(--text-main);
    font-style: italic;
}

/* ── Department Card ── */
.dept-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: all var(--transition);
    border-left: 4px solid var(--primary);
}
.dept-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-left-color: var(--primary-light); }
.dept-card-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-ultra-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    color: var(--primary);
    transition: all var(--transition);
}
.dept-card:hover .dept-card-icon { background: var(--primary); color: #fff; }
.dept-card-info h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
}
.dept-card-info p {
    font-size: .82rem;
    color: var(--text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Service Card ── */
.service-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 24px 20px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
    border-top: 3px solid transparent;
    height: 100%;
    transition: all var(--transition);
}
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-top-color: var(--primary); }
.service-card-icon {
    width: 52px;
    height: 52px;
    background: var(--primary-ultra-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 14px;
    color: var(--primary);
    transition: all var(--transition);
}
.service-card:hover .service-card-icon { background: var(--primary); color: #fff; }
.service-card h3 { font-size: .98rem; font-weight: 700; margin-bottom: 8px; color: var(--text-dark); }
.service-card p  { font-size: .84rem; color: var(--text-muted); line-height: 1.65; }

/* ══════════════════════════════════════════════════════════════════════════
   PAGINATION
   ══════════════════════════════════════════════════════════════════════════ */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 40px;
    flex-wrap: wrap;
}
.page-btn {
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-white);
    color: var(--text-main);
    font-size: .85rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.page-btn:disabled { opacity: .4; cursor: not-allowed; }
.page-ellipsis {
    min-width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    color: var(--text-muted);
}

/* ── Required field indicator ── */
.required { color: var(--accent); margin-left: 2px; }

/* ══════════════════════════════════════════════════════════════════════════
   HERO BANNER (Homepage)
   ══════════════════════════════════════════════════════════════════════════ */
.hero-banner {
    background: linear-gradient(130deg, #002855 0%, #0055a5 52%, #1a78d4 100%);
    color: #fff;
    padding: 72px 0 88px;
    position: relative;
    overflow: hidden;
}
.hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 15% 30%, rgba(255,255,255,.15) 0%, transparent 45%),
        radial-gradient(ellipse at 90% 80%, rgba(26,120,212,.4) 0%, transparent 40%);
}
.hero-banner::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 0; right: 0;
    height: 52px;
    background: var(--bg);
    clip-path: ellipse(52% 100% at 50% 100%);
}
.hero-banner .container { position: relative; z-index: 1; }
.hero-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 32px;
    align-items: center;
}
.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 999px;
    padding: 5px 14px;
    margin-bottom: 18px;
    color: rgba(255,255,255,.95);
}
.hero-content h1 {
    font-size: 2.4rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.2;
    letter-spacing: -.03em;
}
.hero-content > p {
    font-size: 1rem;
    color: rgba(255,255,255,.88);
    margin-bottom: 28px;
    line-height: 1.7;
    max-width: 540px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: -8px 0 24px;
}
.hero-highlights span {
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 600;
    color: rgba(255,255,255,.92);
    padding: 6px 12px;
}
.hero-stats {
    display: flex;
    gap: 28px;
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid rgba(255,255,255,.15);
    flex-wrap: wrap;
}
.hero-stat-num {
    font-size: 1.65rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
}
.hero-stat-label {
    font-size: .76rem;
    color: rgba(255,255,255,.7);
    margin-top: 2px;
}

/* Hero info card */
.hero-info-card, .hero-card {
    background: rgba(255,255,255,.13);
    border: 1px solid rgba(255,255,255,.24);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-lg);
    padding: 26px;
    box-shadow: 0 12px 40px rgba(0,0,0,.15);
}
.hero-info-card h3, .hero-card-title {
    color: #fff;
    font-size: 1.02rem;
    margin-bottom: 6px;
}
.hero-info-summary, .hero-card-sub {
    color: rgba(255,255,255,.82);
    font-size: .84rem;
    line-height: 1.65;
    margin-bottom: 18px;
}
.hero-info-card ul, .hero-info-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.hero-info-card li, .hero-info-list li {
    background: rgba(255,255,255,.1);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    display: grid;
    gap: 3px;
}
.hero-info-card li span, .hero-info-list li span { font-size: .78rem; color: rgba(255,255,255,.7); }
.hero-info-card li strong, .hero-info-list li strong { font-size: .88rem; color: #fff; font-weight: 600; line-height: 1.45; }

/* ══════════════════════════════════════════════════════════════════════════
   QUICK ACCESS TILES (below hero)
   ══════════════════════════════════════════════════════════════════════════ */
.quick-access {
    position: relative;
    z-index: 2;
    margin-top: -32px;
    padding-bottom: 0;
}
.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
}
.qa-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 26px 18px;
    text-decoration: none;
    transition: all var(--transition);
    border-right: 1px solid var(--border-light);
    cursor: pointer;
    text-align: center;
    color: inherit;
}
.qa-tile:last-child { border-right: none; }
.qa-tile:hover { background: var(--primary-ultra-light); }
.qa-tile:hover .qa-icon { transform: scale(1.08); }
.qa-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    transition: transform var(--transition);
    flex-shrink: 0;
}
.qa-icon.red    { background: #ffebee; }
.qa-icon.blue   { background: var(--primary-ultra-light); }
.qa-icon.teal   { background: #e0f2f1; }
.qa-icon.orange { background: #fff3e0; }
.qa-label {
    font-size: .85rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.35;
}
.qa-sub {
    font-size: .74rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ══════════════════════════════════════════════════════════════════════════
   STATS BANNER
   ══════════════════════════════════════════════════════════════════════════ */
.stats-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 48px 0;
    position: relative;
    overflow: hidden;
}
.stats-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(255,255,255,.12) 0%, transparent 60%);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
    z-index: 1;
}
.stat-item {
    text-align: center;
    padding: 20px;
    border-right: 1px solid rgba(255,255,255,.18);
}
.stat-item:last-child { border-right: none; }
.stat-number {
    font-size: 2.4rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 6px;
    letter-spacing: -.02em;
}
.stat-number sup { font-size: 1.2rem; vertical-align: top; margin-top: 4px; }
.stat-label { font-size: .84rem; color: rgba(255,255,255,.8); font-weight: 500; line-height: 1.4; }

/* ── Emergency Strip ── */
.emergency-strip {
    background: #09315b;
    color: #fff;
    padding: 10px 0;
}
.emergency-strip-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}
.emergency-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: .82rem;
    font-weight: 600;
}
.emergency-strip a { color: #ffec8a; }
.emergency-strip a:hover { color: #fff; }

.station-info {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}
.station-summary {
    margin-top: -4px;
    margin-bottom: 22px;
    color: var(--text-muted);
    line-height: 1.7;
    font-size: .95rem;
}
.station-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}
.station-badges span {
    background: var(--primary-ultra-light);
    border: 1px solid #c9ddf8;
    color: var(--primary-dark);
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 700;
    padding: 6px 14px;
}
.station-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.station-card {
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 18px;
    border-top: 3px solid var(--primary);
}
.station-card h3 { font-size: .95rem; margin-bottom: 8px; color: var(--primary-dark); }
.station-card p { font-size: .87rem; color: var(--text-main); line-height: 1.65; }
.station-card a { font-weight: 700; color: var(--primary); }
.station-follow { margin-top: 24px; }

.home-reveal {
    opacity: 1;
    transform: translateY(0);
}
.js .home-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .55s ease, transform .55s ease;
}
.js .home-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Quick Service Icons ── */
.quick-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 16px;
}
.quick-service-item {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 20px 12px;
    text-align: center;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
    cursor: pointer;
    transition: all var(--transition);
}
.quick-service-item:hover { background: var(--primary); color: #fff; box-shadow: var(--shadow-md); transform: translateY(-2px); }
.quick-service-item:hover .qs-icon { background: rgba(255,255,255,.2); }
.quick-service-item:hover .qs-label { color: #fff; }
.qs-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-ultra-light);
    border-radius: var(--radius-sm);
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    transition: background var(--transition);
}
.qs-label {
    font-size: .78rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.3;
    transition: color var(--transition);
}

/* ══════════════════════════════════════════════════════════════════════════
   GRID UTILITIES
   ══════════════════════════════════════════════════════════════════════════ */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ══════════════════════════════════════════════════════════════════════════
   FORM ELEMENTS
   ══════════════════════════════════════════════════════════════════════════ */
.form-group { margin-bottom: 22px; }
.form-label { display: block; font-size: .88rem; font-weight: 700; color: var(--text-dark); margin-bottom: 7px; }
.form-control {
    width: 100%;
    padding: 11px 14px;
    font-size: .9rem;
    font-family: inherit;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--text-main);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
    line-height: 1.5;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,85,165,.13); background: var(--bg-white); }
.form-control::placeholder { color: var(--text-muted); opacity: .7; }
textarea.form-control { resize: vertical; min-height: 130px; }
select.form-control { cursor: pointer; }

/* ══════════════════════════════════════════════════════════════════════════
   FILTER CHIPS / TAGS
   ══════════════════════════════════════════════════════════════════════════ */
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter-chip {
    padding: 7px 18px;
    border-radius: 30px;
    font-size: .82rem;
    font-weight: 700;
    border: 1.5px solid var(--border);
    background: var(--bg-white);
    color: var(--text-main);
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
}
.filter-chip:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-ultra-light); }
.filter-chip.active { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 2px 8px rgba(0,85,165,.25); }

/* ══════════════════════════════════════════════════════════════════════════
   NEWS DETAIL PAGE
   ══════════════════════════════════════════════════════════════════════════ */
.news-detail-header { padding: 32px 0 24px; }
.news-detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin: 16px 0;
    font-size: .85rem;
    color: var(--text-muted);
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}
.news-detail-meta span { display: flex; align-items: center; gap: 5px; }
.news-hero-img {
    width: 100%;
    max-height: 440px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin-bottom: 28px;
}
.news-summary {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-main);
    font-style: italic;
    line-height: 1.75;
    border-left: 4px solid var(--primary);
    padding: 14px 20px;
    background: var(--primary-ultra-light);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin-bottom: 28px;
}
.news-content {
    font-size: .96rem;
    line-height: 1.85;
    color: var(--text-main);
}
.news-content h1, .news-content h2, .news-content h3, .news-content h4 {
    margin: 28px 0 12px;
    color: var(--primary-dark);
    font-weight: 700;
}
.news-content h2 { font-size: 1.3rem; }
.news-content h3 { font-size: 1.1rem; }
.news-content p { margin-bottom: 16px; }
.news-content img { border-radius: var(--radius-md); margin: 18px 0; max-width: 100%; }
.news-content ul, .news-content ol { padding-left: 26px; margin-bottom: 16px; }
.news-content li { margin-bottom: 8px; }
.news-content table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: .9rem; }
.news-content th, .news-content td { border: 1px solid var(--border); padding: 10px 14px; text-align: left; }
.news-content th { background: var(--primary-ultra-light); font-weight: 700; color: var(--primary-dark); }
.news-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 14px 20px;
    margin: 24px 0;
    background: var(--primary-ultra-light);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    color: var(--text-muted);
    font-style: italic;
    font-size: 1rem;
}
.news-detail-wrap {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    align-items: start;
}
.news-detail-sidebar {
    position: sticky;
    top: calc(var(--header-h) + 20px);
}
.news-sidebar-box {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
    margin-bottom: 20px;
}
.news-sidebar-box h4 {
    font-size: .85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--primary);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-ultra-light);
}
.news-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--border-light); }

/* ── News Media (video + attachment) ── */
.news-media-section { margin-top: 36px; }
.news-media-title {
    font-size: .92rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--primary-dark);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.news-video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #000;
}
.news-video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}
.news-video-native {
    width: 100%;
    border-radius: var(--radius-md);
    display: block;
}
.news-attachment-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    flex-wrap: wrap;
}
.news-attachment-info { display: flex; align-items: center; gap: 12px; min-width: 0; }
.news-attachment-icon { font-size: 2rem; flex-shrink: 0; line-height: 1; }
.news-attachment-name {
    font-size: .9rem;
    font-weight: 600;
    color: var(--text-dark);
    word-break: break-all;
}
.news-attachment-actions { display: flex; gap: 8px; flex-shrink: 0; }
.news-pdf-preview {
    margin-top: 12px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-light);
}
.news-pdf-preview iframe { width: 100%; height: 600px; border: none; display: block; }

/* ══════════════════════════════════════════════════════════════════════════
   SEARCH PAGE
   ══════════════════════════════════════════════════════════════════════════ */
.search-box-wrap {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 32px;
    max-width: 640px;
    margin: 0 auto 36px;
}
.search-input-row { display: flex; gap: 0; border: 2px solid var(--primary); border-radius: 30px; overflow: hidden; }
.search-input-row input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 20px;
    font-size: 1rem;
    font-family: inherit;
}
.search-input-row button {
    background: var(--primary);
    border: none;
    color: #fff;
    padding: 12px 24px;
    font-size: .95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background var(--transition);
}
.search-input-row button:hover { background: var(--primary-dark); }

.search-result-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: background var(--transition);
}
.search-result-item:hover { background: var(--bg); padding-left: 8px; border-radius: var(--radius-sm); }
.search-result-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    color: #fff;
}
.search-result-body { flex: 1; }
.search-result-body h4 { font-size: .95rem; font-weight: 700; color: var(--text-dark); margin-bottom: 3px; }
.search-result-body p  { font-size: .82rem; color: var(--text-muted); }

/* ══════════════════════════════════════════════════════════════════════════
   LOADING SKELETON
   ══════════════════════════════════════════════════════════════════════════ */
@keyframes shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position:  200% 0; }
}
.skeleton {
    background: linear-gradient(90deg, #dde8f5 25%, #eef3fb 50%, #dde8f5 75%);
    background-size: 200% 100%;
    animation: shimmer 1.6s infinite;
    border-radius: var(--radius-sm);
}
.skeleton-card { height: 300px; }
.skeleton-line { height: 14px; margin-bottom: 10px; border-radius: 4px; }
.skeleton-line.short { width: 55%; }

/* ══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1200px) {
    .quick-access-grid { grid-template-columns: repeat(4, 1fr); }
    .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .header-search-input { width: 130px; }
    .hero-content h1 { font-size: 2rem; }
    .news-featured { grid-template-columns: 1fr; }
    .news-detail-wrap { grid-template-columns: 1fr; }
    .news-detail-sidebar { position: static; }
}

@media (max-width: 900px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .quick-access-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-item { border-bottom: 1px solid rgba(255,255,255,.18); }
    .stat-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.18); }
    .stat-item:nth-last-child(-n+2) { border-bottom: none; }
}

@media (max-width: 768px) {
    .main-nav, .header-search, .header-right { display: none; }
    .nav-toggle { display: flex; }
    .hero-content h1 { font-size: 1.65rem; }
    .hero-banner { padding: 52px 0 72px; }
    .hero-banner::after { height: 36px; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-info-card, .hero-card { display: none; }
    .station-grid { grid-template-columns: 1fr; }
    .station-info { padding: 22px; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-grid .footer-col:nth-child(2),
    .footer-grid .footer-col:nth-child(3) { display: none; }
    .section-title { font-size: 1.3rem; }
    .page-section { padding: 40px 0; }
    .site-topbar .container { flex-direction: column; align-items: flex-start; gap: 4px; }
    .topbar-right { display: none; }
    .search-box-wrap { padding: 20px; }
    .news-detail-meta { gap: 10px; }
    .page-hero { padding: 32px 0 36px; }
    .page-hero-title { font-size: 1.5rem; }
    .quick-access { margin-top: -20px; }
    .quick-access-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-number { font-size: 2rem; }
    .header-h { --header-h: 60px; }
}

@media (max-width: 480px) {
    .quick-services-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-content h1 { font-size: 1.4rem; }
    .quick-access-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .emergency-strip-inner { flex-direction: column; align-items: flex-start; gap: 6px; }
    .page-hero::after { height: 20px; }
    .news-slide-img { height: 180px; }
    .news-slider-btn { top: 90px; }
    .news-slide-body { padding: 14px 12px; gap: 8px; }
    .news-slide-title { font-size: .95rem; }
    .news-slide-summary { display: none; }
    .news-card-img { height: 160px; }
}

/* ══════════════════════════════════════════════════════════════════════════
   FLOATING ACTION BUTTONS (FAB) – scroll-top, phone, AI chat
   ══════════════════════════════════════════════════════════════════════════ */
.fab-stack {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 901;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    pointer-events: none; /* children re-enable individually */
}
.fab-group {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
    pointer-events: none;
}
.fab {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 4px 16px rgba(0,0,0,.22);
    transition: transform .2s ease, box-shadow .2s ease, opacity .25s ease;
    flex-shrink: 0;
    pointer-events: auto;
    outline: none;
}
.fab:hover  { transform: scale(1.1); box-shadow: 0 6px 22px rgba(0,0,0,.28); }
.fab:active { transform: scale(.95); }
.fab-ai    { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); color: #fff; }
.fab-phone { background: linear-gradient(135deg, #2e7d32 0%, #43a047 100%); color: #fff; }
.fab-ai.active, .fab-phone.active { box-shadow: 0 0 0 4px rgba(0,85,165,.25); }
.fab-scroll {
    background: var(--bg-white);
    color: var(--primary);
    border: 2px solid var(--border);
    opacity: 0;
    pointer-events: none;
    transform: scale(.8) translateY(6px);
}
.fab-scroll.visible {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1) translateY(0);
}

/* ── Phone popup ── */
.fab-popup {
    position: absolute;
    bottom: calc(100% + 8px);
    right: 0;
    pointer-events: none;
    opacity: 0;
    transform: translateY(8px) scale(.97);
    transition: opacity .2s ease, transform .2s ease;
}
.fab-popup.show {
    pointer-events: auto;
    opacity: 1;
    transform: translateY(0) scale(1);
}
.phone-popup-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 18px 20px 14px;
    min-width: 240px;
    border: 1px solid var(--border-light);
}
.phone-popup-title {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 12px;
}
.phone-popup-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    transition: background var(--transition);
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: .95rem;
    margin-bottom: 4px;
}
.phone-popup-item:hover { background: var(--primary-ultra-light); color: var(--primary); }
.phone-popup-item .pi-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.pi-icon.pi-green  { background: #e8f5e9; }
.pi-icon.pi-red    { background: #ffeaea; }

/* ── AI Chat popup ── */
.ai-popup-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 320px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-light);
    overflow: hidden;
}
.ai-popup-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #fff;
}
.ai-popup-header-info { display: flex; align-items: center; gap: 10px; }
.ai-avatar {
    width: 36px; height: 36px;
    background: rgba(255,255,255,.2);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
}
.ai-popup-header h4 { margin: 0; font-size: .95rem; font-weight: 700; color: #fff; }
.ai-popup-header p  { margin: 0; font-size: .72rem; color: rgba(255,255,255,.8); }
.ai-close-btn {
    background: rgba(255,255,255,.15);
    border: none; border-radius: 50%;
    width: 28px; height: 28px;
    color: #fff; font-size: .8rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background var(--transition);
    flex-shrink: 0;
}
.ai-close-btn:hover { background: rgba(255,255,255,.3); }
.ai-messages {
    flex: 1;
    min-height: 220px;
    max-height: 280px;
    overflow-y: auto;
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    scroll-behavior: smooth;
}
.ai-msg {
    max-width: 82%;
    padding: 8px 12px;
    border-radius: 14px;
    font-size: .84rem;
    line-height: 1.5;
    white-space: pre-wrap;
}
.ai-msg.bot  { background: var(--primary-ultra-light); color: var(--text-dark); align-self: flex-start; border-bottom-left-radius: 4px; }
.ai-msg.user { background: var(--primary); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.ai-quick-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 12px 10px;
}
.ai-qbtn {
    background: var(--primary-ultra-light);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 4px 10px;
    font-size: .75rem;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    transition: background var(--transition);
    white-space: nowrap;
}
.ai-qbtn:hover { background: var(--primary); color: #fff; }
.ai-input-row {
    display: flex;
    gap: 0;
    border-top: 1px solid var(--border-light);
}
.ai-input {
    flex: 1;
    border: none;
    padding: 10px 14px;
    font-size: .84rem;
    outline: none;
    background: transparent;
    font-family: inherit;
    color: var(--text-dark);
}
.ai-send-btn {
    width: 44px;
    background: var(--primary);
    border: none;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: background var(--transition);
    display: flex; align-items: center; justify-content: center;
}
.ai-send-btn:hover { background: var(--primary-dark); }

@media (max-width: 480px) {
    .fab-stack { bottom: 16px; right: 14px; }
    .fab       { width: 46px; height: 46px; font-size: 1.15rem; }
    .ai-popup-card  { width: calc(100vw - 28px); }
    .phone-popup-card { min-width: 200px; }
}

/* ══════════════════════════════════════════════════════════════════════════
   BLAZOR SYSTEM MESSAGES
   ══════════════════════════════════════════════════════════════════════════ */
.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}
.blazor-error-boundary::after { content: "An error has occurred."; }

.valid.modified:not([type=checkbox]) { outline: 1px solid #26b050; }
.invalid { outline: 1px solid #e50000; }
.validation-message { color: #e50000; }
.darker-border-checkbox.form-check-input { border-color: #929292; }
.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}
.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}
