﻿/* ⭐ VIETNAMESE STYLE - CLEAN REFACTOR ⭐ */

/* Import Google Fonts cho tiếng Việt */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* Font Variables */
:root {
    --vietnamese-primary-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    --vietnamese-heading-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

/* ⭐ PROTECT FONT AWESOME ICONS ⭐ */
.fas, .fab, .far, .fa,
[class*="fa-"]::before,
[class^="fa-"]::before,
i[class*="fa-"]::before,
i[class^="fa-"]::before {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 6 Brands" !important;
}

/* ⭐ VIETNAMESE FONTS - CHỈ THAY FONT, KHÔNG THAY ĐỔI LAYOUT ⭐ */
body {
    font-family: var(--vietnamese-primary-font) !important;
    font-weight: 500 !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    font-size: 14px !important; /* nhỏ hơn mặc định */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--vietnamese-heading-font) !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
}

/* ⭐ HEADER FONTS - CHỈNH LẠI FONT CHO HEADER ⭐ */
/* Header top - contact info - TĂNG SIZE */
.main-menu__contact-list li .text p,
.main-menu__contact-list li .text p a {
    font-family: var(--vietnamese-primary-font) !important;
    font-size: 15px !important; /* Tăng từ 14px lên 15px */
    font-weight: 600 !important; /* Đậm hơn */
}

/* Welcome text CENTER container - TRONG VÙNG KHOẢNG TRỐNG ĐỎ VỚI PADDING */
.main-menu__top-center {
    position: absolute;
    left: calc(50% + 150px);
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
}

/* Welcome text styling - TĂNG SIZE */
.main-menu__top-welcome-text {
    font-family: var(--vietnamese-heading-font) !important;
    font-size: 17px !important; /* Tăng từ 15px lên 17px */
    font-weight: 700 !important;
    color: #ffffff !important;
    margin: 0 !important;
    padding: 0 20px !important;
    white-space: nowrap !important;
    line-height: normal !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

/* Time text - TĂNG SIZE */
.main-menu__top-text {
    font-family: var(--vietnamese-primary-font) !important;
    font-size: 15px !important; /* Tăng từ 14px lên 15px */
    font-weight: 600 !important; /* Đậm hơn */
}

/* Social icons trong header đỏ */
.main-menu__social a {
    font-size: 18px !important; /* Tăng size icon */
}

/* Main navigation menu */
.main-menu__list li a {
    font-family: var(--vietnamese-heading-font) !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.03em !important;
}

/* Call section */
.main-menu__call-sub-title {
    font-family: var(--vietnamese-primary-font) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
}

.main-menu__call-number,
.main-menu__call-number a {
    font-family: var(--vietnamese-heading-font) !important;
    font-size: 19px !important;
    font-weight: 800 !important;
}

/* Button */
.thm-btn {
    font-family: var(--vietnamese-heading-font) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

/* Sticky header */
.sticky-header__menu li a {
    font-family: var(--vietnamese-heading-font) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.03em !important;
}

.sticky-header__phone span {
    font-family: var(--vietnamese-primary-font) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}

/* ⭐ GENERAL TEXT IMPROVEMENTS ⭐ */
p {
    font-weight: 500 !important;
    line-height: 1.7 !important;
}

a {
    font-weight: 600 !important;
}

/* Section titles */
.section-title__tagline {
    font-family: var(--vietnamese-primary-font) !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
}

.section-title__title {
    font-family: var(--vietnamese-heading-font) !important;
    font-weight: 800 !important;
}

/* ⭐ LANGUAGE SWITCHER STYLES ⭐ */
.main-menu__language-switcher {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 0 20px;
}

.language-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 25px;
    text-decoration: none;
    font-family: var(--vietnamese-primary-font) !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    min-width: 60px;
    justify-content: center;
    text-transform: uppercase !important;
}

.language-btn.inactive {
    opacity: 0.5;
    filter: grayscale(40%);
    transition: opacity 0.2s, filter 0.2s;
    /* KHÔNG được có pointer-events: none; */
}

.language-btn--en {
    background: rgba(255,255,255,0.95);
    color: #007bff;
    border-color: rgba(0,123,255,0.3);
}

.language-btn--en:hover,
.language-btn--en.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

.language-btn--vi {
    background: rgba(255,255,255,0.95);
    color: #dc3545;
    border-color: rgba(220,53,69,0.3);
}

.language-btn--vi:hover,
.language-btn--vi.active {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220,53,69,0.3);
}

/* ⭐ STICKY HEADER ⭐ */
.sticky-header__language-switcher {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* ⭐ SCROLL LANGUAGE SWITCHER ⭐ */
.scroll-language-switcher {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.scroll-language-switcher.show {
    opacity: 1;
    visibility: visible;
}

.scroll-lang-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-family: var(--vietnamese-primary-font) !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.scroll-lang-btn--en {
    background: rgba(0,123,255,0.9);
    color: white;
    border-color: #007bff;
}

.scroll-lang-btn--en:hover {
    background: #007bff;
    transform: scale(1.1);
}

.scroll-lang-btn--vi {
    background: rgba(220,53,69,0.9);
    color: white;
    border-color: #dc3545;
}

.scroll-lang-btn--vi:hover {
    background: #dc3545;
    transform: scale(1.1);
}

.scroll-lang-btn.active {
    transform: scale(1.15);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* ⭐ FOOTER FONTS ⭐ */
.footer-widget__title {
    font-family: var(--vietnamese-heading-font) !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.03em !important;
}

.footer-widget__about-text,
.footer-widget__link,
.footer-widget__contact {
    font-family: var(--vietnamese-primary-font) !important;
    font-weight: 500 !important;
}

/* Page Header Breadcrumb Styling */
.page-header .thm-breadcrumb {
    font-size: 18px;
    font-weight: 500;
    margin-top: 15px;
}

.page-header .thm-breadcrumb li {
    color: #ffffff;
    font-family: 'Rubik', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.page-header .thm-breadcrumb li a {
    color: #ffffff;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.page-header .thm-breadcrumb li a:hover {
    color: #ffd700;
    text-decoration: none;
}

.page-header .thm-breadcrumb li span.fas {
    font-size: 14px;
    margin: 0 12px;
    color: #ffd700;
}

/* Page Header Title Enhancement */
.page-header h3 {
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.4);
    margin-bottom: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-header h3 {
        font-size: 36px;
    }
    
    .page-header .thm-breadcrumb {
        font-size: 16px;
    }
}

/* ⭐ RESPONSIVE CHO WELCOME TEXT TRONG VÙNG ĐỎ VỚI KHOẢNG CÁCH ⭐ */
@media (min-width: 1400px) {
    .main-menu__top-center {
        left: calc(50% + 170px);
    }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .main-menu__top-center {
        left: calc(50% + 150px);
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .main-menu__top-center {
        left: calc(50% + 130px);
    }
}

@media (max-width: 991px) {
    .main-menu__top-center,
    .main-menu__top-welcome-text {
        display: none !important;
    }
    
    .main-menu__language-switcher {
        margin: 0 10px;
    }
    
    .language-btn {
        padding: 8px 12px;
        font-size: 12px;
        min-width: 50px;
    }
}

@media (max-width: 767px) {
    .scroll-language-switcher {
        right: 15px;
    }
    
    .scroll-lang-btn {
        width: 40px;
        height: 40px;
        font-size: 10px;
    }
}

/* ⭐ SIDEBAR STYLES ⭐ */
.sidebar {
    font-size: 13px !important;
    font-weight: 700 !important;
    background: #4285f4;
    box-shadow: 0 2px 12px rgba(66,133,244,0.08);
}

.sidebar .menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    color: #fff;
    font-size: 13px; /* nhỏ lại */
    font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
    font-weight: 700; /* in đậm */
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 4px;
    transition: background 0.2s, color 0.2s;
    letter-spacing: 0.5px;
}

.sidebar .menu-item .menu-icon {
    font-size: 16px;
    min-width: 20px;
    text-align: center;
}

.sidebar .menu-item .menu-text {
    flex: 1;
    text-align: left;
    font-size: 13px;
    font-weight: 700; /* in đậm */
}

.sidebar .menu-item.active,
.sidebar .menu-item:hover {
    background: #2b5cb8;
    color: #ffd700;
    box-shadow: 0 2px 8px rgba(66,133,244,0.15);
}

/* Card Component */
.card {
    padding: 18px 12px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(66,133,244,0.07);
}

/* Button Primary */
.btn-primary {
    background: #4285f4;
    border-color: #4285f4;
    font-weight: 700;
}

/* Button Danger */
.btn-danger {
    background: #dc3545;
    border-color: #dc3545;
    font-weight: 700;
}

/* Đồng bộ kích thước font cho bảng, thẻ card, select, button, item menu sidebar */
.table, .card, .form-select, .btn, .sidebar .menu-item, .sidebar .menu-text {
    font-size: 13px !important; /* đồng bộ nhỏ hơn */
}

.btn:hover, .btn:focus {
    filter: brightness(0.95);
    box-shadow: 0 2px 8px rgba(66,133,244,0.12);
}

.table tbody tr:hover {
    background: #eaf3ff;
    transition: background 0.2s;
}

.badge.bg-warning {
    color: #333 !important;
    background: #ffd700 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
}

img[alt="Logo"], img[alt="Icon"] {
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

/* ⭐ END - KHÔNG CÓ OVERRIDE LAYOUT ⭐ */