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

@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 'Inter' / 'Manrope' / 'Montez' dung ban woff2 tu Google Fonts
   (link khai bao trong _LayoutWebsite.cshtml va _LayoutEnglishWebsite.cshtml,
   dong @import ben duoi chi la bo dem neu view khong tai link).
   Cac block @font-face tro file .ttf local (~854KB/weight) da loai bo vi trung lap va nang hon 20 lan. */

:root {
    /* Font chữ chính */
    --title-font: "Manrope", sans-serif;
    --body-font: "Inter", sans-serif;
    --style-font: "Montez", cursive;

    /* Tương thích ngược */
    --font-heading: var(--title-font);
    --font-body: var(--body-font);
    --font-style: var(--style-font);

    /* Màu thương hiệu đồng bộ với footer (teal Cồn Sơn) */
    --primary-color: #265c66;
    --primary-dark: #1c4650;
    --secondary-color: #e2b13b;
    --text-dark: #333333;
    --text-gray: #666666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --transition: all 0.3s ease-in-out;

    /* Hiệu ứng UI tinh tế (dùng cho card / nút / reveal) */
    --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
    --shadow-card: 0 6px 20px rgba(15, 89, 100, 0.08);
    --shadow-card-hover: 0 16px 38px rgba(15, 89, 100, 0.16);
    --ring-accent: 0 0 0 3px rgba(226, 177, 59, 0.22);
}

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

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

.body-font {
    font-family: var(--body-font);
}

.style-font {
    font-family: var(--style-font);
}

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);
}

/* Nút tùy chỉnh trong header (VN/EN): CẢ HAI nút dùng chung một khung kích thước
   cố định — chuyển active/hover không làm thay đổi width/height/padding. */
.header .lang-switcher .btn {
    padding: 0 !important;
    min-width: 42px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border-width: 2px;
    /* btn-custom 2px, btn-outline-light mặc định 1px → ép về 2px */
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
}

.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: 80px 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: 14px;
    display: block;
    margin-bottom: 10px;
}

.section-title h2 {
    font-size: 36px;
    position: relative;
    display: inline-block;
	    color: var(--primary-color);
    padding-bottom: 15px;
}

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

/* Header luôn có nền teal thương hiệu và nằm trong luồng tài liệu,
   nên luôn đẩy banner xuống dưới toàn bộ chiều cao header (không đè lên banner). */
.header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.header.sticky {
    position: sticky;
    top: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.navbar-brand {
    font-family: var(--title-font);
    font-size: 28px;
    font-weight: 700;
    color: var(--bg-white);
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Logo: rộng cố định 50px, giữ nguyên tỷ lệ khung hình trên mọi màn hình */
.navbar-brand .brand-logo {
    width: 50px;
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
}

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

/* Tên thương hiệu cạnh logo — lấy từ ContactDetail */
.navbar-brand .brand-name {
    font-family: var(--title-font);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: var(--bg-white);
    line-height: 1.25;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
}

/* Header trong suốt trên banner/hero: chữ trắng để đọc rõ trên nền đậm */
.nav-link {
    color: #fff !important;
    font-weight: 500;
    padding: 10px 15px !important;
    text-transform: uppercase;
    font-size: 15px;
    letter-spacing: 1px;
}

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

/* Desktop (≥992px): mỗi item menu luôn nằm trên MỘT dòng — không cho vỡ chữ
   trong item khi thanh menu sát biên (công văn mục 3.3, Hình 11). */
@media (min-width: 992px) {
    .nav-link {
        white-space: nowrap;
    }

    .navbar-expand-lg .navbar-nav {
        flex-wrap: nowrap;
    }

    .navbar-brand {
        flex-shrink: 0;
        white-space: nowrap;
    }

    .lang-switcher {
        flex-shrink: 0;
    }
}

/* Header trong suốt (chưa scroll): hover nổi bật hơn trên nền hero — nền trắng mờ + chữ vàng */
.header:not(.sticky) .nav-link:hover {
    color: var(--secondary-color) !important;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 6px;
}

/* ── 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: 500px;
    max-height: 900px;
    overflow: hidden;
}

.hero-slider .carousel,
.hero-slider .carousel-inner,
.hero-slider .carousel-item {
    height: 100%;
}

.hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 60%);
    z-index: 1;
}

.hero-slider .container {
    position: relative;
    z-index: 2;
}

/* Hero Glassmorphism Card (Dạng kính trong suốt, nhạt để nhìn rõ ảnh nền) */
.hero-glass-box,
.hero-text-box {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(20, 52, 60, 0.22) 100%);
    backdrop-filter: blur(2px) saturate(130%);
    -webkit-backdrop-filter: blur(6px) saturate(130%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    padding: 32px 38px;
    max-width: 620px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18), inset 0 1px 1px rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 2;
    transition: var(--transition);
}

.hero-glass-title {
    font-family: var(--title-font);
    font-size: 40px;
    font-weight: 700;
    line-height: 1.25;
    color: #ffffff;
    margin-bottom: 14px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55), 0 1px 3px rgba(0, 0, 0, 0.65);
    letter-spacing: -0.3px;
}

.hero-glass-desc {
    font-family: var(--body-font);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
}

/* ── Lớp phủ cố định trên banner trang chủ: H1 + giới thiệu + CTA (công văn 3.2) ── */
.hero-caption {
    position: absolute;
    left: 0;
    right: 0;
    /* Chiếm đúng chỗ hộp chữ của slide trước đây: căn giữa theo chiều dọc banner */
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    pointer-events: none;
}

.hero-caption-inner {
    max-width: 640px;
    background: linear-gradient(135deg, rgba(20, 52, 60, 0.55) 0%, rgba(20, 52, 60, 0.35) 100%);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 18px;
    padding: 22px 26px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
    pointer-events: auto;
    will-change: transform, opacity;
    /* Hộp chữ trượt vào từ bên trái + mờ dần hiện lên (main.js chạy lại mỗi lần đổi slide) */
    animation: hpCaptionLeft 2s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

@keyframes hpCaptionLeft {
    from {
        opacity: 0;
        transform: translateX(-140px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-caption-inner {
        animation: none;
    }
}

.hero-caption-title {
    font-family: var(--title-font);
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-caption-text {
    color: rgba(255, 255, 255, 0.95);
    font-size: 16px;
    line-height: 1.55;
    margin-bottom: 14px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
}

/* Câu mô tả theo từng banner: mỗi slide một <span>, JS bật .active theo carousel
   nên luôn hiện đúng một câu (caption đặt ngoài vòng lặp slide để giữ 1 thẻ H1). */
.hero-caption-slide {
    display: none;
}

.hero-caption-slide.active {
    display: inline;
    animation: heroCaptionFade 0.7s ease;
}

@keyframes heroCaptionFade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.hero-caption-actions {
    display: none;
}

.hero-caption-actions .btn {
    margin: 0 10px 8px 0;
}

@media (max-width: 767.98px) {
    .hero-caption-inner {
        padding: 14px 16px;
        border-radius: 14px;
    }

    .hero-caption-title {
        font-size: 21px;
        margin-bottom: 6px;
    }

    .hero-caption-text {
        font-size: 13.5px;
        margin-bottom: 10px;
    }

    .hero-caption-actions .btn {
        padding: 8px 16px;
        font-size: 14px;
    }
}

.hero-text {
    color: #fff;
    font-size: 20px;
    font-style: italic;
    line-height: 1.7;
    margin: 0;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.hero-text--sub {
    margin-top: 12px;
    font-size: 23px;
    opacity: 0.9;
}

.hero-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 28px;
    background: var(--primary-color, #1a6b3c);
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

.hero-btn:hover {
    background: var(--secondary-color, #e2b13b);
    color: #fff;
    transform: translateY(-1px);
}

.hero-indicators {
    bottom: 24px;
    z-index: 3;
}

.hero-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    margin: 0 4px;
    transition: background 0.3s;
}

.hero-indicators button.active {
    background: #fff;
    width: 28px;
    border-radius: 5px;
}

.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;
    right: 30px;
    bottom: 30px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

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

/* Icon chiếm ~56% đường kính nút để có khoảng thở đều quanh icon */
.floating-btn svg {
    width: 18px;
    height: 18px;
    display: block;
    flex-shrink: 0;
}

/* Không lắc icon — chỉ dùng quầng shadow thở nhẹ phía sau nút để gây chú ý */

.floating-btn.zalo {
    background-color: #0068ff;
    animation: floatingGlowZalo 2.8s ease-in-out infinite;
}

/* Logo Zalo là dạng chữ ngang nên cần rộng hơn icon vuông để cân đối */
.floating-btn.zalo svg {
    width: 21px;
    height: 21px;
}

.floating-btn.messenger {
    background-color: #0084ff;
    animation: floatingGlowMessenger 2.8s ease-in-out infinite;
}

/* Hiệu ứng shadow thu vào - tỏa ra nhẹ nhàng (màu Zalo) */
@keyframes floatingGlowZalo {

    0%,
    100% {
        box-shadow: 0 6px 14px rgba(0, 104, 255, 0.35), 0 0 0 2px rgba(0, 104, 255, 0.10);
    }

    50% {
        box-shadow: 0 8px 26px rgba(0, 104, 255, 0.55), 0 0 0 10px rgba(0, 104, 255, 0.22);
    }
}

/* Hiệu ứng shadow thu vào - tỏa ra nhẹ nhàng (màu Messenger) */
@keyframes floatingGlowMessenger {

    0%,
    100% {
        box-shadow: 0 6px 14px rgba(0, 132, 255, 0.35), 0 0 0 2px rgba(0, 132, 255, 0.10);
    }

    50% {
        box-shadow: 0 8px 26px rgba(0, 132, 255, 0.55), 0 0 0 10px rgba(0, 132, 255, 0.22);
    }
}

/* TikTok: nền đen + nốt trắng dạng vector (sắc nét mọi tỉ lệ màn hình),
   loang màu cyan/hồng đặc trưng tạo bằng drop-shadow ngay trên icon */
.floating-btn.tiktok {
    background-color: #010101;
    animation: floatingGlowTiktok 2.8s ease-in-out infinite;
}

.floating-btn.tiktok svg {
    filter: drop-shadow(1.2px 0 rgba(254, 44, 85, .9)) drop-shadow(-1.2px 0 rgba(37, 244, 238, .9));
}

/* Hiệu ứng shadow thu vào - tỏa ra nhẹ nhàng (màu TikTok) */
@keyframes floatingGlowTiktok {

    0%,
    100% {
        box-shadow: 0 6px 14px rgba(254, 44, 85, 0.35), 0 0 0 2px rgba(254, 44, 85, 0.10);
    }

    50% {
        box-shadow: 0 8px 26px rgba(254, 44, 85, 0.55), 0 0 0 10px rgba(254, 44, 85, 0.22);
    }
}

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

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

/* Nhấn nút khi chạm/giữ (chuột và cảm ứng) - thu nhẹ đối lập với hover */
.floating-btn:active {
    transform: scale(.94);
}

.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: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
    height: 100%;
    border-bottom: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
    border-bottom-color: var(--secondary-color);
}

.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);
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
    /* Đồng đều chiều cao card trong cùng row (khoảng cách giữa các row do gutter g-4 đảm nhiệm) */
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(15, 89, 100, 0.07);
}

.event-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(226, 177, 59, 0.45);
}

.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: transform 0.55s var(--ease-out);
}

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

.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;
    /* Phần thân card giãn hết chiều cao còn lại để nút luôn nằm sát đáy */
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

/* Hàng badge (số trải nghiệm / thời lượng / ghép đoàn): chừa chỗ 2 dòng
   để tiêu đề các card bắt đầu cùng một vị trí dù số badge khác nhau */
.event-content>.d-flex:first-child {
    min-height: 22px;
}

/* Nút "Xem chi tiết" đẩy xuống đáy card, đồng hàng giữa các card */
.event-content>.btn,
.event-content>a.btn {
    margin-top: auto;
    align-self: flex-start;
}

.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: 2;
    -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;
    text-align: justify;
    overflow: hidden;
    margin-bottom: 0;
    line-height: 1.6;
    min-height: 4.8em;
    margin-bottom: 10px;
}

.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:
        linear-gradient(135deg, rgba(38, 92, 102, 0.86) 0%, rgba(28, 70, 80, 0.92) 100%),
        url('/images/banners/banner-default.jpg') center/cover no-repeat;
    background-size: cover;
    background-position: center center;
    padding: 80px 0 100px;
    /* Header nằm trong luồng nên banner không cần chừa khoảng cho header overlay;
       !important để thống nhất với padding-top inline trong các view con. */
    padding-top: 80px !important;
    position: relative;
    text-align: center;
}

/* Các biến thể ảnh nền mờ chìm đặc trưng theo từng chủ đề trang (tương tự chân trang) */
.page-banner--packages {
    background:
        linear-gradient(135deg, rgba(38, 92, 102, 0.86) 0%, rgba(28, 70, 80, 0.92) 100%),
        url('/images/banners/banner-packages.jpg') center/cover no-repeat;
}

.page-banner--news {
    background:
        linear-gradient(135deg, rgba(38, 92, 102, 0.86) 0%, rgba(28, 70, 80, 0.92) 100%),
        url('/images/banners/banner-news.jpg') center/cover no-repeat;
}

.page-banner--about {
    background:
        linear-gradient(135deg, rgba(38, 92, 102, 0.86) 0%, rgba(28, 70, 80, 0.92) 100%),
        url('/images/banners/banner-about.jpg') center/cover no-repeat;
}

.page-banner--contact {
    background:
        linear-gradient(135deg, rgba(38, 92, 102, 0.86) 0%, rgba(28, 70, 80, 0.92) 100%),
        url('/images/banners/banner-contact.jpg') center/cover no-repeat;
}

.page-banner--faq {
    background:
        linear-gradient(135deg, rgba(38, 92, 102, 0.86) 0%, rgba(28, 70, 80, 0.92) 100%),
        url('/images/banners/banner-faq.jpg') center/cover no-repeat;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
}

.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 teal nhẹ hơn để ảnh nổi bật */
.page-banner--custom::before {
    background: linear-gradient(135deg, rgba(28, 70, 80, 0.6) 0%, rgba(22, 52, 60, 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);
}

/* ===== Sidebar trang chi tiết gói tour (dùng chung cho bản VI và EN) ===== */
.pd-side-card {
    background: var(--bg-light);
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.pd-side-card__title {
    font-size: 20px;
    color: var(--primary-color);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding-bottom: 10px;
    margin-bottom: 18px;
}

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

.pd-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    color: var(--text-gray);
}

.pd-contact-list li:last-child {
    margin-bottom: 0;
}

.pd-contact-list i {
    color: var(--primary-color);
    margin-top: 3px;
}

.pd-contact-list a {
    color: var(--text-gray);
}

.pd-contact-list a:hover {
    color: var(--primary-color);
}

.pd-related {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
}

.pd-related:last-child {
    margin-bottom: 0;
}

.pd-related img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.pd-related h6 {
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.4;
}

.pd-related:hover h6 {
    color: var(--primary-color);
}

/* ============================================================
   UI POLISH — hiệu ứng tinh tế cho card / nút / nội dung DB
   ============================================================ */

/* Card tin tức / video: nhấc nhẹ + shadow mềm */
.news-card,
.video-card {
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.news-card:hover,
.video-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
}

/* Nút: nhấc nhẹ + vệt sáng quét qua */
.btn-custom,
.btn-outline-custom {
    position: relative;
    overflow: hidden;
    transition: transform 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out),
        background-color 0.28s var(--ease-out), color 0.28s var(--ease-out);
}

.btn-custom::after,
.btn-outline-custom::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 -60%;
    width: 45%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.42), transparent);
    transform: skewX(-18deg);
    transition: left 0.55s var(--ease-out);
    pointer-events: none;
}

.btn-custom:hover::after,
.btn-outline-custom:hover::after {
    left: 120%;
}

.btn-custom:hover,
.btn-outline-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(226, 177, 59, 0.3);
}

.btn-custom:focus-visible,
.btn-outline-custom:focus-visible {
    box-shadow: var(--ring-accent);
}

/* Ảnh trong section (kể cả nội dung render từ DB chỉ có inline style) */
.section-padding img,
.hero-slider img {
    transition: transform 0.5s var(--ease-out), filter 0.5s var(--ease-out);
}

.section-padding img:hover {
    transform: scale(1.03);
}

/* Ảnh chèn từ CKEditor trong nội dung bài viết/trang:
   luôn co vừa khung cột, không tràn sang cột phải dù thẻ img mang width cố định. */
.event-content-body img,
.page-content img {
    max-width: 100% !important;
    height: auto !important;
}

/* Ảnh nội dung không phóng to khi hover (tránh tràn ra ngoài cột) */
.event-content-body img:hover,
.page-content img:hover {
    transform: none;
}

/* Nút CTA nằm trong nội dung DB (thẻ <a> có inline background).
   Áp dụng cho cả 2 layout: VI (.page-content) và EN (.section-padding). */
.page-content a[href][style*="background"],
.section-padding a[href][style*="background"],
a.btn-cta {
    position: relative;
    overflow: hidden;
    transition: transform 0.25s var(--ease-out), filter 0.25s var(--ease-out),
        box-shadow 0.25s var(--ease-out);
}

.page-content a[href][style*="background"]::after,
.section-padding a[href][style*="background"]::after,
a.btn-cta::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 -60%;
    width: 45%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.42), transparent);
    transform: skewX(-18deg);
    transition: left 0.55s var(--ease-out);
    pointer-events: none;
}

.page-content a[href][style*="background"]:hover::after,
.section-padding a[href][style*="background"]:hover::after,
a.btn-cta:hover::after {
    left: 120%;
}

.page-content a[href][style*="background"]:hover,
.section-padding a[href][style*="background"]:hover,
a.btn-cta:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.14);
}

/* Reveal khi cuộn tới */
.reveal {
    opacity: 0;
    transform: translateY(22px);
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}

/* Tiêu đề section: gạch chân vàng mở rộng dần khi hiện.
   Chỉ thu về 0 khi JS đã gắn class .reveal => nếu JS tắt/lỗi vẫn giữ 60px mặc định. */
.section-title.reveal h2::after {
    transition: width 0.7s var(--ease-out) 0.15s;
    width: 0;
}

.section-title.reveal.is-visible h2::after {
    width: 60px;
}

/* ============================================================
   HIỆU ỨNG CHUYỂN TRANG — header + banner trang con
   ============================================================ */

/* Header trượt từ trên xuống mỗi lần vào/chuyển trang */
@keyframes hpHeaderDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: none;
        opacity: 1;
    }
}

@keyframes hpNavItemIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.header {
    animation: hpHeaderDown 0.75s var(--ease-out) both;
}

/* Menu sinh bằng JS sau khi load -> animation tự chạy khi item được chèn */
.header .navbar-nav>.nav-item {
    animation: hpNavItemIn 0.55s var(--ease-out) 0.3s both;
}

.header .navbar-nav>.nav-item:nth-child(2) {
    animation-delay: 0.36s;
}

.header .navbar-nav>.nav-item:nth-child(3) {
    animation-delay: 0.42s;
}

.header .navbar-nav>.nav-item:nth-child(4) {
    animation-delay: 0.48s;
}

.header .navbar-nav>.nav-item:nth-child(5) {
    animation-delay: 0.54s;
}

.header .navbar-nav>.nav-item:nth-child(6) {
    animation-delay: 0.60s;
}

.header .navbar-nav>.nav-item:nth-child(7) {
    animation-delay: 0.66s;
}

.header .navbar-nav>.nav-item:nth-child(n + 8) {
    animation-delay: 0.72s;
}

.header .lang-switcher {
    animation: hpNavItemIn 0.55s var(--ease-out) 0.72s both;
}

/* Banner trang con: tiêu đề / mô tả / breadcrumb trượt lên lần lượt */
@keyframes pbTextUp {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.page-banner-content>*,
.banner-content>* {
    animation: pbTextUp 0.7s var(--ease-out) both;
}

.page-banner-content>*:nth-child(1),
.banner-content>*:nth-child(1) {
    animation-delay: 0.1s;
}

.page-banner-content>*:nth-child(2),
.banner-content>*:nth-child(2) {
    animation-delay: 0.2s;
}

.page-banner-content>*:nth-child(3),
.banner-content>*:nth-child(3) {
    animation-delay: 0.3s;
}

.page-banner-content>*:nth-child(4),
.banner-content>*:nth-child(4) {
    animation-delay: 0.4s;
}

.page-banner-content>*:nth-child(n + 5),
.banner-content>*:nth-child(n + 5) {
    animation-delay: 0.48s;
}

/* Tôn trọng người dùng giảm chuyển động */
@media (prefers-reduced-motion: reduce) {

    .reveal,
    .reveal.is-visible {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .header,
    .header .navbar-nav>.nav-item,
    .header .lang-switcher,
    .page-banner-content>*,
    .banner-content>* {
        animation: none;
    }

    .section-title.reveal h2::after {
        width: 60px;
        transition: none;
    }

    .event-card,
    .news-card,
    .video-card,
    .service-card,
    .btn-custom,
    .btn-outline-custom,
    .section-padding img {
        transition: none;
    }

    .event-card:hover,
    .news-card:hover,
    .video-card:hover,
    .service-card:hover,
    .btn-custom:hover,
    .btn-outline-custom:hover,
    .section-padding img:hover {
        transform: none;
    }
}

/* ============================================================
   TRANG DANH SÁCH GÓI THAM QUAN (.pkg-*) — dùng chung VI + EN
   ============================================================ */
.pkg-banner-tag {
    display: inline-block;
    color: var(--secondary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 13px;
    margin-bottom: 12px;
}

/* Thanh lọc đè lên chân banner */
.pkg-filter-card {
    background: var(--bg-white);
    border-radius: 10px;
    border-top: 3px solid var(--secondary-color);
    box-shadow: 0 14px 44px rgba(26, 26, 46, 0.14);
    padding: 26px 28px 22px;
    margin-top: -64px;
    position: relative;
    z-index: 10;
}

.pkg-filter-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: #98a1b3;
    margin-bottom: 7px;
}

.pkg-filter-card .form-control,
.pkg-filter-card .form-select {
    border: 1px solid #e3e6ec;
    border-radius: 6px;
    font-size: 14px;
    padding: 10px 14px;
    color: var(--text-dark);
    transition: var(--transition);
}

.pkg-filter-card .form-control:focus,
.pkg-filter-card .form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(226, 177, 59, 0.15);
}

.pkg-search-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #98a1b3;
    pointer-events: none;
}

.pkg-search-input {
    padding-right: 40px !important;
}

/* Chip tiêu chí đang áp dụng */
.pkg-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(226, 177, 59, 0.12);
    border: 1px solid rgba(226, 177, 59, 0.4);
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 20px;
    transition: var(--transition);
}

.pkg-chip i {
    font-size: 11px;
    color: #b0842a;
}

.pkg-chip:hover {
    background: var(--secondary-color);
    color: #fff;
}

.pkg-chip:hover i {
    color: #fff;
}

/* Nền chấm bi nhẹ cho khu danh sách */
.pkg-listing {
    background-image: radial-gradient(rgba(26, 26, 46, 0.045) 1px, transparent 1px);
    background-size: 22px 22px;
}

/* Thẻ gói: ribbon + chân giá */
.pkg-card {
    margin-bottom: 0;
}

.pkg-ribbon {
    position: absolute;
    top: 16px;
    left: 0;
    z-index: 2;
    background: var(--secondary-color);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 6px 16px 6px 12px;
    border-radius: 0 4px 4px 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.pkg-ribbon--hot {
    background: #d64545;
}

.pkg-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px dashed #e3e6ec;
    padding-top: 16px;
    margin-top: 16px;
}

.pkg-price {
    font-family: var(--title-font, var(--font-heading));
    font-size: 21px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}

.pkg-price small {
    display: block;
    font-family: var(--body-font, var(--font-body));
    font-size: 11px;
    font-weight: 500;
    color: #98a1b3;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pkg-price--empty {
    font-family: var(--body-font, var(--font-body));
    font-size: 14px;
    font-weight: 500;
    color: #98a1b3;
}

/* Phân trang */
.pkg-pagination .page-link {
    color: var(--primary-color);
    border: 1px solid #e3e6ec;
    margin: 0 3px;
    border-radius: 6px;
    min-width: 40px;
    text-align: center;
    font-weight: 500;
    transition: var(--transition);
}

.pkg-pagination .page-item.active .page-link {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #fff;
    box-shadow: 0 4px 12px rgba(226, 177, 59, 0.4);
}

.pkg-pagination .page-link:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

.pkg-pagination .page-item.disabled .page-link {
    background: transparent;
    color: #c3c9d4;
    transform: none;
}

/* Hiệu ứng hiện dần khi cuộn */
.pkg-reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.pkg-reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* Trạng thái rỗng / lỗi */
.pkg-empty {
    text-align: center;
    padding: 70px 20px;
    background: var(--bg-white);
    border-radius: 10px;
    border: 1px dashed #dfe3ea;
}

.pkg-empty i {
    font-size: 54px;
    color: var(--secondary-color);
    opacity: 0.7;
}

/* ============================================================
   TRANG CHI TIẾT GÓI THAM QUAN — GALLERY (.pd-gallery__*)
   dùng chung VI + EN (sidebar .pd-side-card đã có ở trên)
   ============================================================ */
.pd-gallery__main {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    background: #eef1f5;
}

.pd-gallery__main img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}

.pd-gallery__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.92);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

.pd-gallery__nav--prev {
    left: 12px;
}

.pd-gallery__nav--next {
    right: 12px;
}

.pd-gallery__nav:hover {
    background: var(--secondary-color);
    color: #fff;
}

.pd-gallery__thumbs {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.pd-gallery__thumb {
    flex: 0 0 96px;
    height: 68px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    padding: 0;
    background: none;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.2s;
}

.pd-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pd-gallery__thumb.active,
.pd-gallery__thumb:hover {
    border-color: var(--primary-color);
    opacity: 1;
}

@media (max-width: 575.98px) {
    .pd-gallery__main img {
        height: 260px;
    }
}