@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/PlayfairDisplay/PlayfairDisplay-Vietnamese.woff2') format('woff2');
    unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/PlayfairDisplay/PlayfairDisplay-Regular.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/Inter/Inter-VariableFont_opsz,wght.ttf') format('truetype');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/Inter/Inter-VariableFont_opsz,wght.ttf') format('truetype');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/Inter/Inter-VariableFont_opsz,wght.ttf') format('truetype');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/Inter/Inter-VariableFont_opsz,wght.ttf') format('truetype');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/Inter/Inter-VariableFont_opsz,wght.ttf') format('truetype');
}

:root {
    --primary-color: #1a1a2e;
    --secondary-color: #e2b13b;
    --text-dark: #333333;
    --text-gray: #666666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s ease-in-out;
}

body {
    font-family: var(--font-body);
    color: var(--text-gray);
    background-color: var(--bg-white);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6,
.heading-font {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-weight: 600;
}

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

a:hover {
    color: var(--secondary-color);
}

.text-primary-custom {
    color: var(--primary-color) !important;
}

.text-secondary-custom {
    color: var(--secondary-color) !important;
}

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

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

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

.btn-custom {
    background-color: var(--secondary-color);
    color: var(--bg-white);
    border: 2px solid var(--secondary-color);
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-custom:hover {
    background-color: transparent;
    color: var(--secondary-color);
}

.btn-outline-custom {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-outline-custom:hover {
    background-color: var(--secondary-color);
    color: var(--bg-white);
}

.section-padding {
    padding: 40px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

    .section-title span {
        color: var(--secondary-color);
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 2px;
        font-size: calc(0.9rem + 7px);
        display: block;
        margin-bottom: 10px;
    }

    .section-title h2 {
        font-size: calc(2.5rem + 7px);
        
        position: relative;
        display: inline-block;
        padding-bottom: 15px;
    }

.section-title h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
}

.header.sticky {
    position: fixed;
    background: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header.sticky .navbar-brand,
.header.sticky .nav-link {
    color: var(--secondary-color) !important;
}

.navbar-brand {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--bg-white);
}

.navbar-brand span {
    color: var(--secondary-color);
}

.nav-link {
    color: var(--secondary-color) !important;
    font-weight: 500;
    padding: 10px 15px !important;
    text-transform: uppercase;
    font-size: 16px;
    letter-spacing: 1px;
}

.nav-link:hover,
.nav-link.active {
    color: #fff !important;
}

/* ── Header sticky: sửa màu hover/active cho đúng trên nền trắng ── */
.header.sticky .nav-link:hover,
.header.sticky .nav-link.active {
    color: var(--secondary-color) !important;
}

.header.sticky .nav-link.dropdown-toggle::after {
    color: var(--secondary-color);
}

/* ── Dropdown menu — đồng bộ cả 2 trạng thái header ── */
.nav-item.dropdown {
    position: relative;
}

.dropdown-menu {
    min-width: 200px;
    padding: 8px 0;
    margin-top: 0;
    border: none;
    border-radius: 8px;
    background: var(--bg-white);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    display: block;
    pointer-events: none;
    overflow: hidden;
}

.nav-item.dropdown:hover>.dropdown-menu,
.nav-item.dropdown.show>.dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Viền accent trên đỉnh dropdown */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 8px 8px 0 0;
}

.dropdown-item {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-color);
    letter-spacing: 0.3px;
    transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
    white-space: nowrap;
    position: relative;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--secondary-color);
    border-radius: 0 2px 2px 0;
    transition: height 0.2s ease;
}

.dropdown-item:hover {
    background: rgba(226, 177, 59, 0.08);
    color: var(--secondary-color);
    padding-left: 26px;
}

.dropdown-item:hover::before {
    height: 60%;
}

.dropdown-item.active,
.dropdown-item:active {
    background: rgba(226, 177, 59, 0.12);
    color: var(--secondary-color);
    font-weight: 600;
}

.dropdown-item.active::before {
    height: 60%;
}

/* Dropdown toggle arrow */
.nav-link.dropdown-toggle::after {
    margin-left: 6px;
    vertical-align: middle;
    transition: transform 0.25s ease;
    color: inherit;
}

.nav-item.dropdown:hover>.nav-link.dropdown-toggle::after,
.nav-item.dropdown.show>.nav-link.dropdown-toggle::after {
    transform: rotate(180deg);
}

/* ── Header trong suốt: dropdown nổi bật trên nền tối ── */
.header:not(.sticky) .dropdown-menu {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25), 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ── Header sticky: dropdown đồng bộ nền trắng ── */
.header.sticky .dropdown-menu {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.05);
}

.hero-slider {
    position: relative;
    height: 100vh;
    min-height: 600px;
}

.carousel-item {
    height: 100vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 46, 0.6);
}

.carousel-caption {
    bottom: 50%;
    transform: translateY(50%);
    z-index: 2;
    text-align: center;
}

.hero-subtitle {
    color: var(--secondary-color);
    font-size: 30px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: block;
}

.hero-title {
    color: var(--bg-white);
    font-size: 60px;
    font-weight: 700;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.footer {
    background-color: var(--primary-color);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 0;
}

.footer-widget h4 {
    color: var(--bg-white);
    margin-bottom: 25px;
    font-size: 20px;
}

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

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

.footer-widget ul li a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-widget ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-social a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    color: var(--bg-white);
    border-radius: 50%;
    margin-right: 10px;
}

.footer-social a:hover {
    background: var(--secondary-color);
}

.footer-widget ul li a.text-white-50:hover {
    color: var(--secondary-color) !important;
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    margin-top: 50px;
    text-align: center;
}

#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: none;
    z-index: 999;
    transition: var(--transition);
}

#backToTop:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.floating-contact {
    position: fixed;
    left: 30px;
    bottom: 30px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.floating-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.floating-btn.zalo {
    background-color: #0068ff;
}

.floating-btn.messenger {
    background-color: #0084ff;
}

.floating-btn.phone {
    background-color: #28a745;
}

.floating-btn:hover {
    transform: scale(1.1);
    color: white;
}

.service-card {
    text-align: center;
    padding: 40px 20px;
    background: var(--bg-white);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    transition: var(--transition);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    line-height: 80px;
    background: var(--bg-light);
    color: var(--secondary-color);
    font-size: 36px;
    border-radius: 50%;
    margin: 0 auto 25px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--secondary-color);
    color: var(--bg-white);
}

.event-card {
    background: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    transition: var(--transition);
}

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

.event-img {
    position: relative;
    overflow: hidden;
    height: 240px;
    background: linear-gradient(135deg, #eef1f5, #e3e7ec);
}

.event-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.event-card:hover .event-img img {
    transform: scale(1.1);
}

.event-date {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--secondary-color);
    color: var(--bg-white);
    padding: 10px;
    text-align: center;
    border-radius: 4px;
}

.event-date .day {
    font-size: 24px;
    font-weight: 700;
    display: block;
    line-height: 1;
}

.event-date .month {
    font-size: 14px;
    text-transform: uppercase;
}

.event-content {
    padding: 25px;
}

.event-category {
    color: var(--secondary-color);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
}

/* ===== CARD SYNC: đồng bộ chiều cao card giữa các module (không phụ thuộc ảnh / text) ===== */
/* Tiêu đề: cố định đúng 2 dòng (ngắn hơn vẫn giữ khung, dài hơn cắt bớt) */
.event-content h4,
.news-content .news-title,
.video-title {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    min-height: 2.8em;
}

/* Mô tả: cố định đúng 3 dòng (kể cả khi rỗng) */
.event-content p,
.news-content p.text-muted {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0;
    line-height: 1.6;
    min-height: 4.8em;
}

.news-card,
.video-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.news-content>a:last-child {
    margin-top: auto;
    padding-top: 12px;
}

.video-title {
    flex: 1 1 auto;
    margin-bottom: 0;
}

.page-banner {
    background: var(--primary-color) url('https://images.unsplash.com/photo-1540575467063-178a50c2df87?q=80&w=2070&auto=format&fit=crop') no-repeat center center;
    background-size: cover;
    padding: 150px 0 100px;
    position: relative;
    text-align: center;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 46, 0.8);
}

.page-banner-content,
.banner-content {
    position: relative;
    z-index: 2;
}

.page-banner h1,
.banner-title {
    color: var(--bg-white);
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

/* Banner có ảnh tùy chỉnh từ Page — overlay nhẹ hơn để ảnh nổi bật */
.page-banner--custom::before {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.6) 0%, rgba(22, 33, 62, 0.5) 100%);
}

.banner-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.breadcrumb {
    justify-content: center;
    background: transparent;
    padding: 0;
}

.breadcrumb-item {
    color: rgba(255, 255, 255, 0.7);
}

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

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

.breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}