/**
 * K-MedInfo - KHIDI 스타일 메인 스타일시트
 * 전문적인 의료정보 플랫폼 디자인
 */

:root {
    /* Primary Colors - 전문적인 파란색 테마 */
    --primary-color: #1a5490;
    --primary-dark: #0d3a5f;
    --primary-light: #2e7ab8;
    --secondary-color: #00a0e4;

    /* Accent Colors */
    --accent-color: #00b4aa;
    --accent-orange: #f39c12;
    --accent-red: #e74c3c;
    --accent-green: #27ae60;

    /* Neutral Colors */
    --dark-color: #2c3e50;
    --text-color: #333333;
    --text-muted: #6c757d;
    --text-light: #95a5a6;
    --border-color: #dde4e9;
    --bg-light: #f5f7fa;
    --bg-section: #eef2f6;
    --white: #ffffff;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 25px rgba(0,0,0,0.12);

    /* Spacing */
    --header-height: 70px;
    --section-padding: 60px;
}

/* ========================================
   Base Styles
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans KR', 'Noto Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    color: var(--text-color);
    background-color: var(--bg-light);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--primary-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.4;
    color: var(--dark-color);
}

/* ========================================
   Header Styles
======================================== */
.header-main {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: var(--white);
}

/* Top Bar */
.header-top {
    background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    font-size: 13px;
    padding: 8px 0;
}

.header-top a {
    color: rgba(255,255,255,0.85);
}

.header-top a:hover {
    color: #fff;
}

/* Main Navigation */
.navbar {
    padding: 0;
    background: var(--white) !important;
    border-bottom: 1px solid var(--border-color);
    min-height: var(--header-height);
}

.navbar-brand {
    padding: 10px 0;
}

.navbar-brand img {
    height: 48px;
    transition: transform 0.2s;
}

.navbar-brand:hover img {
    transform: scale(1.02);
}

.nav-link {
    font-weight: 500;
    font-size: 15px;
    color: var(--text-color) !important;
    padding: 25px 18px !important;
    position: relative;
    transition: all 0.2s ease;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link i {
    font-size: 14px;
    margin-right: 5px;
    color: var(--primary-color);
}

/* Dropdown Menu */
.dropdown-menu {
    border: none;
    border-radius: 0 0 8px 8px;
    box-shadow: var(--shadow-lg);
    padding: 10px 0;
    margin-top: 0 !important;
    border-top: 3px solid var(--primary-color);
}

.dropdown-item {
    padding: 10px 20px;
    font-size: 14px;
    color: var(--text-color);
    transition: all 0.2s;
}

.dropdown-item:hover {
    background: var(--bg-light);
    color: var(--primary-color);
    padding-left: 25px;
}

.dropdown-item i {
    width: 20px;
    color: var(--primary-color);
}

/* ========================================
   Hero Section
======================================== */
.hero-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 50%, var(--primary-light) 100%);
    color: white;
    padding: 50px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-section h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-section p {
    font-size: 1.05rem;
    opacity: 0.95;
    margin-bottom: 25px;
}

/* Hero Search */
.hero-search {
    max-width: 650px;
    margin: 0 auto;
}

.hero-search .input-group {
    background: white;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.hero-search .form-control {
    height: 55px;
    font-size: 16px;
    border: none;
    padding-left: 25px;
    background: transparent;
}

.hero-search .form-control:focus {
    box-shadow: none;
}

.hero-search .btn {
    padding: 0 30px;
    border-radius: 0 50px 50px 0 !important;
    font-weight: 600;
}

/* ========================================
   Section Styles
======================================== */
.section {
    padding: var(--section-padding) 0;
}

.section-gray {
    background: var(--bg-section);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
}

.section-header h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header h2 i {
    color: var(--primary-color);
}

.section-header .view-all {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
}

.section-header .view-all:hover {
    color: var(--primary-color);
}

/* ========================================
   Content Cards
======================================== */
.content-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    height: 100%;
}

.content-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.content-card .card-img-top {
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}

.content-card .card-body {
    padding: 20px;
}

.content-card .badge {
    font-size: 11px;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 4px;
}

.content-card .card-title {
    font-size: 15px;
    font-weight: 600;
    margin: 10px 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.content-card .card-title a {
    color: var(--dark-color);
}

.content-card .card-title a:hover {
    color: var(--primary-color);
}

.content-card .card-text {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.content-card .card-meta {
    font-size: 12px;
    color: var(--text-light);
    padding-top: 15px;
    margin-top: 15px;
    border-top: 1px solid var(--border-color);
}

/* ========================================
   Hospital Cards
======================================== */
.hospital-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    height: 100%;
}

.hospital-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.hospital-card .hospital-logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: 8px;
    background: var(--bg-light);
    padding: 8px;
}

.hospital-card h5 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.hospital-card .verified-badge {
    color: var(--accent-green);
    font-size: 13px;
}

.hospital-card .hospital-info {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ========================================
   Sidebar
======================================== */
.sidebar-widget {
    background: white;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.sidebar-widget h5 {
    font-size: 15px;
    font-weight: 600;
    padding: 15px 20px;
    margin: 0;
    background: var(--bg-light);
    border-bottom: 2px solid var(--primary-color);
}

.sidebar-widget h5 i {
    color: var(--primary-color);
    margin-right: 8px;
}

.sidebar-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-widget ul li {
    border-bottom: 1px solid var(--border-color);
}

.sidebar-widget ul li:last-child {
    border-bottom: none;
}

.sidebar-widget ul li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    color: var(--text-color);
    font-size: 14px;
    transition: all 0.2s;
}

.sidebar-widget ul li a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
    padding-left: 25px;
}

.sidebar-widget .badge {
    font-size: 11px;
    font-weight: 500;
}

/* Sidebar Widget with Primary Background */
.sidebar-widget.bg-primary {
    border: none;
}

.sidebar-widget.bg-primary h5 {
    background: transparent;
    border-bottom: none;
    color: white;
}

.sidebar-widget.bg-primary h5 i {
    color: white;
}

.sidebar-widget.bg-primary p {
    padding: 0 20px;
    margin: 0 0 15px 0;
}

.sidebar-widget.bg-primary .btn {
    margin: 0 20px 20px 20px !important;
    width: calc(100% - 40px) !important;
    display: block;
}

/* Sidebar Widget Content Padding */
.sidebar-widget > .list-unstyled,
.sidebar-widget > p,
.sidebar-widget > .small,
.sidebar-widget > a.d-block {
    padding: 0 20px;
    margin-bottom: 15px;
}

.sidebar-widget > .list-unstyled {
    padding-bottom: 15px;
}

.sidebar-widget > p:last-child,
.sidebar-widget > .small:last-child {
    padding-bottom: 20px;
    margin-bottom: 0;
}

/* ========================================
   Breadcrumb
======================================== */
.breadcrumb-wrapper {
    background: white;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb {
    margin-bottom: 0;
    font-size: 13px;
    background: none;
    padding: 0;
}

.breadcrumb-item a {
    color: var(--text-muted);
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
}

.breadcrumb-item.active {
    color: var(--text-color);
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    font-size: 16px;
    color: var(--text-light);
}

/* ========================================
   Buttons
======================================== */
.btn {
    font-weight: 500;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}

/* ========================================
   Forms
======================================== */
.form-control,
.form-select {
    font-size: 14px;
    padding: 10px 15px;
    border-color: var(--border-color);
    border-radius: 6px;
    transition: all 0.2s;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 84, 144, 0.1);
}

.form-label {
    font-weight: 500;
    font-size: 14px;
    color: var(--text-color);
    margin-bottom: 8px;
}

/* ========================================
   Tables
======================================== */
.table {
    font-size: 14px;
}

.table thead th {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--dark-color);
    border-bottom: 2px solid var(--primary-color);
    padding: 12px 15px;
}

.table tbody td {
    padding: 12px 15px;
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background: var(--bg-light);
}

/* ========================================
   Pagination
======================================== */
.pagination {
    margin-top: 30px;
    gap: 5px;
}

.pagination .page-link {
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 8px 14px;
    font-size: 14px;
    transition: all 0.2s;
}

.pagination .page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.pagination .page-link:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* ========================================
   Footer
======================================== */
.footer {
    background: linear-gradient(180deg, var(--dark-color) 0%, #1a252f 100%);
    color: rgba(255,255,255,0.8);
    padding: 50px 0 20px;
}

.footer h5 {
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    transition: all 0.2s;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-links a i {
    width: 20px;
    color: var(--primary-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    margin-top: 40px;
}

.footer-bottom p {
    font-size: 13px;
    margin: 0;
    color: rgba(255,255,255,0.6);
}

/* ========================================
   Alerts
======================================== */
.alert {
    border: none;
    border-radius: 8px;
    padding: 15px 20px;
    font-size: 14px;
}

.alert-primary {
    background: rgba(26, 84, 144, 0.1);
    color: var(--primary-dark);
    border-left: 4px solid var(--primary-color);
}

.alert-success {
    background: rgba(39, 174, 96, 0.1);
    color: #1e8449;
    border-left: 4px solid var(--accent-green);
}

.alert-warning {
    background: rgba(243, 156, 18, 0.1);
    color: #9a7b0a;
    border-left: 4px solid var(--accent-orange);
}

.alert-danger {
    background: rgba(231, 76, 60, 0.1);
    color: #b03a2e;
    border-left: 4px solid var(--accent-red);
}

/* ========================================
   Badges
======================================== */
.badge {
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 4px;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-secondary {
    background-color: var(--secondary-color) !important;
}

/* ========================================
   Cards - Generic
======================================== */
.card {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

.card-header {
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    padding: 15px 20px;
}

.card-body {
    padding: 20px;
}

/* ========================================
   Notice/News List
======================================== */
.notice-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.notice-list li {
    padding: 15px 0;
    border-bottom: 1px dashed var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notice-list li:last-child {
    border-bottom: none;
}

.notice-list .notice-title {
    font-size: 14px;
    color: var(--text-color);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notice-list .notice-title:hover {
    color: var(--primary-color);
}

.notice-list .notice-date {
    font-size: 12px;
    color: var(--text-light);
    margin-left: 15px;
    white-space: nowrap;
}

.notice-list .badge {
    font-size: 10px;
    margin-right: 8px;
}

/* ========================================
   Stats Cards
======================================== */
.stat-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s;
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
}

.stat-card .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.stat-card .stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark-color);
}

.stat-card .stat-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 5px;
}

/* ========================================
   Utilities
======================================== */
.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }
.text-accent { color: var(--accent-color) !important; }
.bg-light { background-color: var(--bg-light) !important; }
.border-primary { border-color: var(--primary-color) !important; }

.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow-md { box-shadow: var(--shadow-md) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }

/* ========================================
   Responsive Styles
======================================== */
@media (max-width: 991px) {
    :root {
        --header-height: 60px;
        --section-padding: 40px;
    }

    .navbar-collapse {
        background: white;
        padding: 15px;
        border-top: 1px solid var(--border-color);
        margin-top: 10px;
    }

    .nav-link {
        padding: 12px 15px !important;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-link::after {
        display: none;
    }

    .hero-section h1 {
        font-size: 1.6rem;
    }

    .hero-section p {
        font-size: 0.95rem;
    }

    .quick-menu-section {
        margin-top: -20px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 35px 0;
    }

    .hero-search .form-control {
        height: 48px;
        font-size: 14px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .section-header h2 {
        font-size: 18px;
    }

    .quick-menu-card {
        padding: 20px 15px;
    }

    .quick-icon {
        width: 55px;
        height: 55px;
    }

    .quick-icon i {
        font-size: 22px;
    }

    .content-card .card-img-top {
        height: 150px;
    }
}

/* ========================================
   Language Specific
======================================== */
html[lang="mn"] body,
html[lang="vi"] body {
    font-family: 'Noto Sans', sans-serif;
}

/* ========================================
   Print Styles
======================================== */
@media print {
    .header-main,
    .footer,
    .sidebar-widget,
    .btn,
    .breadcrumb-wrapper {
        display: none !important;
    }

    body {
        background: white;
    }

    .main-content {
        padding: 0;
    }
}

/* ========================================
   Loading & Animations
======================================== */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

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

.fade-in {
    animation: fadeIn 0.4s ease;
}

/* ========================================
   NEW Top Bar Styles
======================================== */
.top-bar {
    background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    padding: 8px 0;
    font-size: 13px;
}

.top-bar-text {
    color: rgba(255,255,255,0.9);
}

.top-bar-link {
    color: rgba(255,255,255,0.85);
    font-size: 13px;
}

.top-bar-link:hover {
    color: #fff;
}

.lang-selector {
    display: flex;
    gap: 8px;
}

.lang-selector a {
    color: rgba(255,255,255,0.7);
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
}

.lang-selector a:hover,
.lang-selector a.active {
    color: #fff;
    background: rgba(255,255,255,0.15);
}

/* ========================================
   NEW Header Content Styles
======================================== */
.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon i {
    font-size: 26px;
    color: white;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 12px;
    color: var(--text-muted);
}

/* Header Search */
.header-search {
    flex: 1;
    max-width: 450px;
    margin: 0 30px;
}

.search-box {
    display: flex;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    overflow: hidden;
    transition: all 0.3s;
}

.search-box:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 84, 144, 0.1);
}

.search-box input {
    flex: 1;
    border: none;
    padding: 12px 20px;
    font-size: 14px;
    outline: none;
}

.search-box button {
    background: var(--primary-color);
    border: none;
    padding: 0 25px;
    color: white;
    cursor: pointer;
    transition: background 0.3s;
}

.search-box button:hover {
    background: var(--primary-dark);
}

/* Header Contact */
.header-contact {
    display: flex;
    align-items: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-item > i {
    font-size: 28px;
    color: var(--primary-color);
}

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 11px;
    color: var(--text-muted);
}

.contact-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-dark);
}

/* Mobile Toggle */
.mobile-toggle {
    width: 40px;
    height: 40px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

.mobile-toggle span {
    display: block;
    height: 2px;
    background: var(--text-color);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ========================================
   Main Navigation
======================================== */
.main-nav {
    background: var(--primary-color);
    border-top: 1px solid var(--border-color);
}

/* Nav Collapse - Custom (not Bootstrap) */
.nav-collapse {
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu-item {
    position: relative;
}

.nav-menu-link {
    display: block;
    padding: 15px 25px;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s;
}

.nav-menu-link:hover,
.nav-menu-link.active {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.nav-menu-link i {
    margin-right: 5px;
    font-size: 14px;
}

/* Navigation Dropdown */
.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: white;
    border-radius: 0 0 8px 8px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    z-index: 1000;
}

.nav-menu-item.has-dropdown:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown a {
    display: block;
    padding: 12px 20px;
    color: var(--text-color);
    font-size: 14px;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s;
}

.nav-dropdown a:last-child {
    border-bottom: none;
}

.nav-dropdown a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
    padding-left: 25px;
}

/* ========================================
   Hero Section New Styles
======================================== */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    padding: 30px 0;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
    line-height: 1.3;
}

.hero-title span {
    color: #f0f0f0;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 30px;
    line-height: 1.7;
}

/* Hero Search Box */
.hero-search-box {
    max-width: 600px;
}

.search-input-wrap {
    display: flex;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.search-input-wrap i {
    padding: 15px 0 15px 20px;
    color: var(--text-muted);
    font-size: 18px;
}

.search-input-wrap input {
    flex: 1;
    border: none;
    padding: 15px;
    font-size: 16px;
    outline: none;
}

.search-input-wrap button {
    background: var(--secondary-color);
    border: none;
    padding: 15px 30px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.search-input-wrap button:hover {
    background: var(--primary-dark);
}

.search-tags {
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.search-tags span {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
}

.search-tags a {
    color: white;
    background: rgba(255,255,255,0.15);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 13px;
    transition: all 0.3s;
}

.search-tags a:hover {
    background: rgba(255,255,255,0.25);
}

/* ========================================
   Quick Menu New Styles
======================================== */
.quick-menu-section {
    margin-top: -50px;
    position: relative;
    z-index: 10;
    padding-bottom: 30px;
}

.quick-menu-card {
    display: block;
    background: white;
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    height: 100%;
}

.quick-menu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.quick-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    transition: all 0.3s;
}

.quick-menu-card:hover .quick-icon {
    transform: scale(1.1);
}

.quick-icon i {
    font-size: 28px;
    color: white;
}

.quick-menu-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.quick-menu-card p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

/* ========================================
   Stats Section
======================================== */
.stats-section {
    background: white;
    padding: 30px 0;
    border-bottom: 1px solid var(--border-color);
}

.stats-wrapper {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-item .stat-icon {
    width: 50px;
    height: 50px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-item .stat-icon i {
    font-size: 22px;
    color: var(--primary-color);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 3px;
}

/* ========================================
   Section Header New Styles
======================================== */
.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 700;
    margin: 0;
}

.title-icon {
    width: 36px;
    height: 36px;
    background: var(--primary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.title-icon i {
    color: white;
    font-size: 16px;
}

.btn-more {
    font-size: 14px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-more:hover {
    color: var(--primary-color);
}

/* ========================================
   Category Card New Styles
======================================== */
.category-card {
    display: block;
    background: white;
    border-radius: 10px;
    padding: 25px 15px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    text-decoration: none;
}

.category-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(26, 84, 144, 0.15);
    transform: translateY(-3px);
}

.category-icon {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    transition: all 0.3s;
}

.category-card:hover .category-icon {
    background: var(--primary-color);
}

.category-icon i {
    font-size: 22px;
    color: var(--primary-color);
    transition: color 0.3s;
}

.category-card:hover .category-icon i {
    color: white;
}

.category-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-color);
    margin: 0;
}

/* ========================================
   Content Card New Styles
======================================== */
.card-thumb {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.content-card:hover .card-thumb img {
    transform: scale(1.05);
}

.thumb-placeholder {
    width: 100%;
    height: 100%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumb-placeholder i {
    font-size: 50px;
    color: var(--border-color);
}

.thumb-placeholder.small {
    width: 60px;
    height: 60px;
    border-radius: 8px;
}

.thumb-placeholder.small i {
    font-size: 24px;
}

.card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary-color);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.card-badge.success {
    background: var(--accent-green);
}

.card-content {
    padding: 18px;
}

.card-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 10px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-title a {
    color: var(--dark-color);
}

.card-title a:hover {
    color: var(--primary-color);
}

.card-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    font-size: 12px;
    color: var(--text-light);
    display: flex;
    gap: 15px;
}

.card-meta i {
    margin-right: 4px;
}

/* ========================================
   Hospital List Styles
======================================== */
.hospital-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hospital-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: all 0.3s;
}

.hospital-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.hospital-thumb {
    flex-shrink: 0;
}

.hospital-thumb img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
    background: var(--bg-light);
    padding: 5px;
}

.hospital-info {
    flex: 1;
    min-width: 0;
}

.hospital-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--dark-color);
    margin: 0 0 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.hospital-name i {
    font-size: 14px;
}

.hospital-addr {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0 0 5px;
}

.hospital-addr i {
    margin-right: 5px;
    color: var(--primary-color);
}

.hospital-lang {
    font-size: 12px;
    color: var(--secondary-color);
}

/* ========================================
   Case Card Styles
======================================== */
.case-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    height: 100%;
}

.case-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.case-card .card-thumb {
    height: 150px;
}

.case-meta {
    margin-bottom: 8px;
}

.case-meta .country {
    font-size: 12px;
    color: var(--secondary-color);
}

.case-hospital {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}

.case-hospital i {
    margin-right: 5px;
    color: var(--primary-color);
}

/* ========================================
   CTA Section
======================================== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    padding: 50px 0;
}

.cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.cta-text h3 {
    color: white;
    font-size: 24px;
    margin: 0 0 8px;
}

.cta-text p {
    color: rgba(255,255,255,0.8);
    margin: 0;
    font-size: 15px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
}

.btn-cta-primary {
    background: white;
    color: var(--primary-color);
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-cta-primary:hover {
    background: var(--secondary-color);
    color: white;
}

.btn-cta-secondary {
    background: rgba(255,255,255,0.15);
    color: white;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.3s;
}

.btn-cta-secondary:hover {
    background: rgba(255,255,255,0.25);
    color: white;
}

/* ========================================
   Notice Box
======================================== */
.notice-box {
    background: white;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.notice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: var(--bg-light);
    border-bottom: 2px solid var(--primary-color);
}

.notice-header h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: var(--dark-color);
}

.notice-header h3 i {
    color: var(--primary-color);
}

.notice-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.notice-list li {
    border-bottom: 1px solid var(--border-color);
}

.notice-list li:last-child {
    border-bottom: none;
}

.notice-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    color: var(--text-color);
    transition: all 0.2s;
}

.notice-list li a:hover {
    background: var(--bg-light);
}

.notice-list li a:hover .notice-title {
    color: var(--primary-color);
}

.notice-title {
    flex: 1;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notice-date {
    font-size: 12px;
    color: var(--text-light);
    margin-left: 15px;
    white-space: nowrap;
}

/* ========================================
   NEW Footer Styles
======================================== */
.site-footer {
    background: linear-gradient(180deg, var(--dark-color) 0%, #1a252f 100%);
    color: rgba(255,255,255,0.8);
    margin-top: 0;
}

.footer-top {
    padding: 50px 0 40px;
}

.footer-brand {
    margin-bottom: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-logo i {
    font-size: 30px;
    color: var(--secondary-color);
}

.footer-logo span {
    font-size: 24px;
    font-weight: 700;
    color: white;
}

.footer-desc {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
}

.footer-certifications {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.cert-badge {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    padding: 5px 12px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}

.cert-badge i {
    margin-right: 5px;
    color: var(--accent-green);
}

.footer-title {
    color: white;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    transition: all 0.2s;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-contact .contact-phone {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.footer-contact .contact-phone i {
    font-size: 30px;
    color: var(--secondary-color);
}

.phone-info {
    display: flex;
    flex-direction: column;
}

.phone-label {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
}

.phone-number {
    font-size: 22px;
    font-weight: 700;
    color: white;
}

.contact-hours p,
.contact-email p {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    margin: 0 0 5px;
}

.contact-hours i,
.contact-email i {
    color: var(--primary-light);
}

.footer-middle {
    background: rgba(0,0,0,0.2);
    padding: 15px 0;
}

.related-sites {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.related-label {
    font-size: 14px;
    font-weight: 600;
    color: white;
}

.related-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.related-links a {
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    transition: all 0.2s;
}

.related-links a:hover {
    color: white;
}

.footer-bottom {
    background: rgba(0,0,0,0.3);
    padding: 20px 0;
}

.copyright {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    margin: 0;
}

.footer-policy {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-policy a {
    color: rgba(255,255,255,0.6);
    font-size: 13px;
}

.footer-policy a:hover {
    color: white;
}

.footer-policy a.privacy {
    font-weight: 600;
    color: rgba(255,255,255,0.8);
}

.footer-policy .divider {
    color: rgba(255,255,255,0.3);
}

/* ========================================
   Back to Top Button
======================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
    box-shadow: var(--shadow-md);
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* ========================================
   Additional Responsive Styles
======================================== */
@media (max-width: 991px) {
    .header-content {
        flex-wrap: wrap;
    }

    .header-search {
        order: 3;
        width: 100%;
        max-width: none;
        margin: 15px 0 0;
    }

    .main-nav {
        background: white;
        border-top: 1px solid var(--border-color);
    }

    .nav-collapse {
        display: none;
        padding: 15px;
    }

    .nav-collapse.show {
        display: block;
    }

    .nav-menu {
        flex-direction: column;
    }

    .nav-menu-link {
        color: var(--text-color);
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu-link:hover,
    .nav-menu-link.active {
        background: var(--bg-light);
        color: var(--primary-color);
    }

    .nav-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-radius: 0;
        background: var(--bg-light);
    }

    .nav-dropdown a {
        padding-left: 40px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .stats-wrapper {
        gap: 30px;
    }

    .cta-content {
        flex-direction: column;
        text-align: center;
    }

    .mobile-toggle {
        display: flex;
    }
}

@media (min-width: 992px) {
    .mobile-toggle {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .logo-title {
        font-size: 20px;
    }

    .hero-content {
        padding: 20px 0;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .search-input-wrap input {
        font-size: 14px;
        padding: 12px;
    }

    .search-input-wrap button {
        padding: 12px 20px;
    }

    .stats-wrapper {
        justify-content: flex-start;
        gap: 20px;
    }

    .stat-item {
        width: calc(50% - 10px);
    }

    .stat-number {
        font-size: 22px;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn-cta-primary,
    .btn-cta-secondary {
        width: 100%;
        text-align: center;
    }

    .footer-policy {
        justify-content: center;
        flex-wrap: wrap;
    }

    .related-sites {
        flex-direction: column;
        align-items: flex-start;
    }
}
