:root {
    /* Đổi tone màu sang các sắc thái Xanh Dương chuyên nghiệp */
    --primary-red: #4994db;      /* Xanh chủ đạo */
    --primary-hover: #357fbf;    /* Xanh đậm khi hover */
    --light-red-bg: #EBF4FC;     /* Nền xanh nhạt */
    --text-dark: #333333;
    --text-light: #777777;
    --white: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: #FAFAFA; /* Màu nền tệp với ảnh gốc */
    color: var(--text-dark);
    /* Custom trỏ chuột bằng hình ảnh */
    cursor: url("../images/tro-chuot.png"), auto;
    /* Thêm đường dẫn tuyệt đối làm phương án dự phòng (fallback) trên localhost */
    cursor: url("/agency-website/assets/images/tro-chuot.png"), url("../images/tro-chuot.png"), auto;
    
    /* Chống bôi đen copy nội dung văn bản toàn trang */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}

/* Trỏ chuột khi hover vào các liên kết, nút bấm */
a, button, .btn, .main-nav__link, .filter-btn, .scroll-top-btn, select {
    cursor: url("../images/tro-chuot.png"), pointer !important;
    cursor: url("/agency-website/assets/images/tro-chuot.png"), url("../images/tro-chuot.png"), pointer !important;
}

/* Cho phép bôi đen/chọn text trở lại đối với các form nhập liệu */
input, textarea, select {
    user-select: text;
    -webkit-user-select: text;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header Wrapper --- */
.site-header-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

/* --- Top Bar màu đỏ --- */
.site-header__top-bar {
    width: 100%;
    height: 72px; /* Đặt chiều cao thanh đỏ 50px */
    background-color: var(--primary-red);
}

.site-header__container {
    position: relative;
    margin: -40px auto 0; /* Kéo lên -35px để cắt vắt ngang ranh giới Top-bar 50px */
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 95%;
    max-width: 1320px; /* Mở rộng thanh nền để đủ chỗ cho Logo + Menu tiếng Việt dài hơn */
    gap: 20px;
    height: 84px;
    background-color: rgba(255, 255, 255, 0.85); /* Nền kính mờ trong suốt */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 50px; /* Khung hình viên thuốc (pill) */
    padding: 0 20px 0 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); /* Đổ bóng sâu hơn để nổi bật */
    transition: all 0.3s ease;
}

/* -- Khu vực Logo -- */
.site-header__logo {
    display: flex;
    align-items: center;
    flex-shrink: 0; /* Không cho Logo bị co lại/biến mất khi Menu dài chiếm chỗ */
}

.logo-img {
    height: 56px;
    width: auto;
    max-width: 220px;
    flex-shrink: 0;
    object-fit: contain;
    display: block;
}

/* -- Khu vực Center Navigation -- */
.main-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.main-nav__item {
    position: relative;
}

.main-nav__link {
    text-decoration: none;
    color: #3F4338;
    font-family: Roboto, Helvetica, Arial, sans-serif;
    font-weight: bold; /* Làm đậm chữ danh mục menu */
    font-size: 16px;
    padding: 10px;
    border-radius: 30px; /* Nút hình pill khi active */
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap; /* Bắt buộc các chữ như "Trang Chủ", "Công cụ" không được rớt xuống dòng */
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.main-nav__link:hover {
    color: var(--primary-red);
    background-color: var(--light-red-bg); /* Thêm nền đỏ nhạt bao quanh chữ */
    transform: translateY(-2px); /* Hiệu ứng nảy lên */
}

/* Trạng thái Active */
.main-nav__link--active,
.main-nav__link--active:hover {
    background-color: var(--primary-red);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(73, 148, 219, 0.4); /* Glow sáng màu xanh */
    transform: translateY(0); /* Giữ cố định */
    border: none; /* Xóa viền đen/outline không mong muốn */
    outline: none;
}

/* Hiệu ứng gạch chân mỏng màu đỏ khi Hover vào thẻ có dropdown */
.main-nav__item--has-dropdown > .main-nav__link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--primary-red);
    transition: width 0.3s ease;
}
.main-nav__item--has-dropdown:hover > .main-nav__link::after {
    width: calc(100% - 30px); /* Thanh gạch dài theo chữ */
}

.icon-dropdown {
    transition: transform 0.3s ease;
}

.main-nav__item:hover .icon-dropdown {
    transform: rotate(180deg);
}

/* -- Dropdown Menu (Sub-nav) -- */
.sub-nav__list {
    position: absolute;
    top: calc(100% + 15px); /* Cách header một đoạn */
    left: 0;
    width: 240px; /* Rộng hơn chút xíu */
    background-color: rgba(255, 255, 255, 0.95); /* Kính mờ */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 16px; /* Bo góc mềm hơn */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    padding: 12px 10px; /* Padding trong bao bọc các item */
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95); /* Thêm scale để bung ra */
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1050;
    transform-origin: top center;
}

/* Cầu nối tàng hình để không bị mất Dropdown khi trỏ chuột qua khe hở */
.sub-nav__list::before {
    content: '';
    position: absolute;
    top: -15px; left: 0;
    width: 100%; height: 15px;
}

.main-nav__item--has-dropdown:hover .sub-nav__list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.sub-nav__link {
    display: block;
    padding: 10px 16px;
    margin: 2px 0;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 15px;
    font-family: Roboto, Helvetica, Arial, sans-serif;
    font-weight: 500;
    border-radius: 8px; /* Bo góc từng mục bên trong dropdown */
    transition: all 0.2s ease;
}

.sub-nav__link:hover {
    color: var(--primary-red);
    background-color: var(--light-red-bg); /* Đỏ nhạt thay vì xám */
    transform: translateX(5px); /* Dịch nguyên khối chữ sang phải thay vì padding */
}

/* -- Khu vực Right Actions (Lang & CTA) -- */
.site-header__actions {
    display: flex;
    align-items: center;
    gap: 15px; /* Thu hẹp khoảng cách giữa icon địa cầu và nút Hotline để nhường chỗ cho Menu */
    flex-shrink: 0;
}

.site-header__lang {
    color: var(--primary-red); /* Icon quả địa cầu màu Đỏ */
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.site-header__lang:hover {
    color: var(--primary-hover);
}

.btn-cta {
    background-color: var(--primary-red);
    color: #FFFFFF;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    letter-spacing: 0.5px;
    font-weight: bold;
    padding: 3px 18px;
    margin: 0 0 0 10px;
    border-radius: 50px;
    width: auto;
    white-space: nowrap;
    height: 47px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 2px solid #FFFFFF; /* Thêm viền màu trắng 2px */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); /* Thêm đổ bóng màu đen */
    transition: all 0.3s ease;
}

.btn-cta:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px); /* Nhô lên nhẹ khi hover */
    box-shadow: 0 8px 20px rgba(73, 148, 219, 0.4); /* Đổ bóng nhấn mạnh 3D */
}

/* -- Nút User Tròn -- */
.btn-user-circle {
    width: 47px;
    height: 47px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--white);
    color: var(--primary-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-size: 16px;
    text-decoration: none;
    border: 2px solid var(--primary-red);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.btn-user-circle:hover {
    background-color: var(--primary-red);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(73, 148, 219, 0.3);
}

/* -- Dropdown cho Nút User -- */
.user-dropdown-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.user-dropdown-wrapper::after {
    /* Cầu nối tàng hình để không bị mất trỏ chuột khi rê xuống */
    content: '';
    position: absolute;
    top: 100%;
    right: 0;
    width: 60px;
    height: 15px;
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    width: 220px;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1050;
    transform-origin: top right;
}

.user-dropdown-wrapper:hover .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.user-dropdown-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.user-dropdown-link:hover {
    color: var(--primary-red);
    background-color: var(--light-red-bg);
    transform: translateX(5px);
}

/* -- Hamburger Menu -- */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hoạt ảnh biến thành dấu X */
.mobile-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* -- Responsive Mobile -- */
@media (max-width: 992px) {
    .mobile-toggle {
        display: flex;
    }

    .main-nav {
        position: absolute;
        top: 130%; /* Tránh vướng nút bấm Menu Mobile khi hiện Menu ra */
        left: 20px;
        right: 20px;
        background-color: var(--white);
        border-radius: 20px;
        box-shadow: 0 10px 40px rgba(0,0,0,0.15);
        padding: 20px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(15px);
        transition: all 0.3s ease;
    }

    .main-nav.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .main-nav__list {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .main-nav__item {
        width: 100%;
    }

    .main-nav__link {
        width: 100%;
        border-radius: 12px;
    }
    
    /* Responsive Dropdown Menu trên Mobile */
    .sub-nav__list {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        width: 100%;
        display: none;
        padding-left: 20px;
    }
    .main-nav__item--has-dropdown:hover .sub-nav__list {
        display: block;
    }
}

@media (max-width: 576px) {
    .site-header__lang {
        display: none;
    }
    
    .btn-cta {
        padding: 10px 12px;
        width: auto;
        height: auto;
    }

    .btn-cta span {
        display: none; /* Ẩn chữ trên mobile bé, chỉ giữ icon điện thoại */
    }
    
    .btn-user-circle {
        width: 40px;
        height: 40px;
        font-size: 18px;
        width: 34px;
        height: 34px;
        font-size: 14px;
    }
}

/* --- Buttons --- */
.btn {
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-red);
    color: var(--white);
    border: 2px solid var(--primary-red);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-red);
    border: 2px solid var(--primary-red);
}

.btn-outline:hover {
    background-color: var(--light-red-bg);
}

/* --- Main Hero Section --- */
.main-hero {
    background-color: var(--white); /* Nền trắng sạch sẽ theo yêu cầu */
    position: relative;
    overflow: hidden;
    margin-top: 72px; /* Đẩy xuống đúng bằng chiều cao của Top bar màu đỏ */
}

.hero-swiper {
    width: 100%;
    padding: 0; /* Xóa khoảng trống, cho ảnh dính sát vào mép thanh Top bar */
}

.full-width-banner {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* --- Hero Swiper Custom UI --- */
.hero-swiper .hero-next,
.hero-swiper .hero-prev {
    color: var(--primary-red);
    background: rgba(255, 255, 255, 0.7);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.hero-swiper .hero-next:hover,
.hero-swiper .hero-prev:hover {
    background: var(--white);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.hero-swiper .hero-next:after,
.hero-swiper .hero-prev:after {
    font-size: 18px;
    font-weight: bold;
}

.hero-pagination .swiper-pagination-bullet-active {
    background-color: var(--primary-red);
    width: 25px;
    border-radius: 5px;
}

/* --- Partner Logo Slider (Thiết kế lại, bỏ hiệu ứng sóng) --- */
.partner-slider-section {
    position: relative;
    padding: 56px 0 60px;
    background-color: var(--light-red-bg); /* Nền xanh nhạt, đồng bộ tông xanh của site */
    border-top: 1px solid rgba(73, 148, 219, 0.15);
    border-bottom: 1px solid rgba(73, 148, 219, 0.15);
}

.partner-slider-header {
    text-align: center;
    margin-bottom: 30px;
}

.partner-slider-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--primary-red);
    margin-bottom: 0;
}

.partner-slider-eyebrow::before,
.partner-slider-eyebrow::after {
    content: '';
    display: block;
    width: 36px;
    height: 2px;
    border-radius: 2px;
    background-color: var(--primary-red);
    opacity: 0.5;
}

.partner-slider-header h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0;
}

.partner-swiper .swiper-wrapper {
    transition-timing-function: linear !important; /* Chìa khóa để Swiper trượt liên tục không bị giật/đứt quãng */
}

.partner-swiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.partner-swiper img {
    max-width: 140px;
    height: auto;
    filter: grayscale(1) opacity(0.55);
    transition: all 0.3s ease;
}

.partner-swiper img:hover {
    filter: grayscale(0) opacity(1);
    transform: translateY(-3px);
}

@media (max-width: 576px) {
    .partner-slider-header h2 { font-size: 22px; }
    .partner-swiper img { max-width: 100px; }
}

/* --- Global Section Header --- */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    color: var(--text-dark);
    margin-top: 10px;
}

/* =========================================
   --- Global Floating Buttons --- 
========================================= */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-red);
    border-radius: 50%;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(73, 148, 219, 0.3);
    z-index: 999;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.scroll-top-btn:hover {
    transform: translateY(-5px);
    background-color: var(--primary-hover);
}

/* =========================================
   --- Partners & Stats Section --- 
========================================= */
.partners-stats {
    position: relative;
    padding-top: 80px;
    padding-bottom: 80px;
    background-color: #FAFAFA;
}

.stats-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 150px); /* Chừa khoảng trống phía dưới để Khối trắng đè lên */
    z-index: 1;
    overflow: hidden;
}

.stats-bg-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.stats-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--primary-red);
    opacity: 0.9;
    mix-blend-mode: multiply; /* RÀNG BUỘC: Blend mode giúp nhuộm Đỏ ảnh gốc nhưng giữ nguyên vẹn chi tiết người/bàn tay */
    z-index: 2;
}

#particles-js {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 3; /* Nằm trên overlay và dưới text */
}

.relative-z {
    position: relative;
    z-index: 10;
}

/* Text Header */
.text-white { color: var(--white) !important; }
.bg-white { background-color: var(--white) !important; }

.stats-top {
    text-align: center;
    margin-bottom: 50px;
}

.stats-title {
    font-size: 36px;
    margin-top: 10px;
}

/* 4 Cột Thống Kê */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
    margin-bottom: 60px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-icon {
    width: 80px;
    height: 80px;
    background-color: var(--white);
    border: 3px solid var(--primary-red); /* Viền màu đỏ */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.stat-num {
    font-size: 38px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.stat-desc {
    color: rgba(255, 255, 255, 0.95);
    font-size: 15px;
    font-weight: 600;
}

/* Khối Trắng đè lên (Partner Card) */
.partners-card {
    background-color: var(--white);
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.08);
    text-align: center;
}

.logo-item img {
    max-width: 100%;
    height: auto;
    mix-blend-mode: screen; /* Xóa nền đen của ảnh logo */
    transition: all 0.3s ease;
}

/* Custom pagination cho Swiper Partner Card dưới cùng */
.bottom-partner-pagination {
    display: flex !important;
    justify-content: center;
    gap: 8px;
    margin-bottom: 25px;
}

.bottom-partner-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background-color: #E0E0E0;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    opacity: 1;
    margin: 0 !important;
}

.bottom-partner-pagination .swiper-pagination-bullet-active {
    background-color: var(--primary-red);
    width: 30px;
    border-radius: 5px;
}

.partners-extra-text {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 25px;
}

/* Responsive Mobile/Tablet */
@media (max-width: 992px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
}

@media (max-width: 576px) {
    .stats-grid { grid-template-columns: 1fr; }
    .partners-card { padding: 35px 20px; }
    .stats-title { font-size: 28px; }
}

/* =========================================
   --- Projects Section --- 
========================================= */
.projects {
    padding: 80px 0;
    background-color: var(--white);
}

.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
}

.projects-subtitle { color: var(--primary-red); }
.projects-dot { background-color: var(--primary-red); }

.projects-link {
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.projects-link:hover { color: var(--primary-red); }

/* Filter Tabs */
.projects-filter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    border-bottom: 1px solid #EEEEEE;
    padding-bottom: 20px;
}

.filter-tabs {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 24px;
    border: 1px solid transparent;
    background-color: #F5F5F5;
    color: var(--text-light);
    font-weight: 600;
    font-size: 14px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active, .filter-btn:hover {
    background-color: var(--primary-red);
    color: var(--white);
}

.filter-arrows {
    display: flex;
    gap: 10px;
}

.arrow-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #DDD;
    background-color: var(--white);
    color: var(--text-dark);
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.arrow-btn:hover {
    border-color: var(--primary-red);
    color: var(--primary-red);
}

/* Grid Layout Dự án */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* Thẻ lớn chiếm khoảng 45%, 4 thẻ nhỏ chiếm 55% */
    gap: 30px;
}

.right-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2x2 */
    grid-template-rows: 1fr 1fr;
    gap: 30px;
}

.project-card {
    border-radius: 16px;
    overflow: hidden;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    display: block;
}

.project-card:hover img {
    transform: scale(1.08); /* Hiệu ứng scale mượt mà */
}

/* Thẻ lớn */
.card-large {
    background-color: #FAFAFA;
    border: 1px solid #EEEEEE;
    display: flex;
    flex-direction: column;
}

.card-large .img-wrapper {
    height: 60%;
    overflow: hidden;
}

.card-large-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.card-large-title {
    font-size: 24px;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.btn-detail {
    background-color: var(--primary-red);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    align-self: flex-start;
    margin-top: 20px;
    transition: background-color 0.3s;
}

.btn-detail:hover { background-color: var(--primary-hover); }

/* Thẻ nhỏ */
.card-small {
    position: relative;
    height: 250px;
}

.card-small-overlay {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    padding: 40px 20px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    pointer-events: none; /* Tránh cản trở chuột khi hover */
}

.card-small-title {
    color: var(--white);
    font-size: 18px;
    margin: 0;
}

/* Responsive Grid */
@media (max-width: 992px) {
    .projects-grid { grid-template-columns: 1fr; } /* Đưa về 1 cột dọc trên màn nhỏ */
    .projects-header, .projects-filter { flex-direction: column; align-items: flex-start; gap: 15px; }
}
@media (max-width: 576px) {
    .right-grid { grid-template-columns: 1fr; } /* Thẻ nhỏ về 1 cột trên mobile */
}

/* =========================================
   --- Testimonials Section --- 
========================================= */
.testimonials {
    padding: 100px 0;
    background-color: #FAFAFA;
    overflow: hidden;
}

.testimonials-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.testimonials-content {
    flex: 1;
    max-width: 550px;
}

.testimonials-subtitle { color: var(--primary-red); }
.testimonials-dot { background-color: var(--primary-red) !important; }

.testimonials-content h2 {
    font-size: 36px;
    margin-bottom: 40px;
    line-height: 1.3;
}

.testimonial-slider-wrapper {
    position: relative;
    min-height: 220px;
}

.testimonial-card {
    background-color: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    position: relative;
}

.quote-icon {
    position: absolute;
    top: -25px;
    left: 40px;
}

.quote-icon svg {
    fill: var(--primary-red);
    opacity: 0.15;
}

.testimonial-quote {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-dark);
    font-style: italic;
    margin-bottom: 30px;
}

.testimonial-author { display: flex; align-items: center; gap: 15px; }
.author-avatar { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; border: 2px solid var(--light-red-bg); }
.author-name { font-size: 18px; margin-bottom: 5px; }
.author-role { font-size: 14px; color: var(--text-light); }

.testimonial-controls { display: flex; gap: 15px; margin-top: 30px; }

/* JS Fade Transition */
.fade-element { transition: opacity 0.4s ease, transform 0.4s ease; opacity: 1; transform: translateY(0); }
.fade-element.hide { opacity: 0; transform: translateY(15px); }

/* Cột phải: Hình ảnh */
.testimonials-image-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 550px;
}

.bg-circle-red {
    position: absolute;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, var(--light-red-bg) 0%, transparent 75%);
    border-radius: 50%;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.mockup-img { position: relative; z-index: 2; max-width: 100%; height: auto; object-fit: contain; }

/* Responsive */
@media (max-width: 992px) {
    .testimonials-container { flex-direction: column; }
    .testimonials-content { max-width: 100%; text-align: center; }
    .testimonial-controls { justify-content: center; }
    .quote-icon { left: 50%; transform: translateX(-50%); }
}

/* =========================================
   --- News & Blog Section --- 
========================================= */
.news-blog {
    padding: 80px 0;
    background-color: var(--white);
}

.news-header {
    text-align: center;
    margin-bottom: 50px;
}

.news-subtitle { color: var(--primary-red); }
.news-dot { background-color: var(--primary-red) !important; }

.news-header h2 {
    font-size: 36px;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.news-desc {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Bao bọc Slider và Nút bấm */
.news-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 50px; /* Nhường chỗ cho nút mũi tên 2 bên */
}

/* Nút điều hướng */
.news-nav-btn {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: var(--primary-red);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(73, 148, 219, 0.3);
    transition: background-color 0.3s;
}

.news-nav-btn:hover { background-color: var(--primary-hover); }
.prev-news { left: 0; }
.next-news { right: 0; }

/* Thẻ Bài viết */
.news-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.news-img {
    height: 220px;
    width: 100%;
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Badge "ĐỌC GÌ HÔM NAY" nối bằng đường kẻ */
.news-badge-container {
    position: relative;
    text-align: center;
    margin-top: -14px; /* Đè lên giữa ranh giới ảnh và nội dung */
    z-index: 5;
}

.news-badge-container::before {
    content: '';
    position: absolute;
    top: 50%; left: 0;
    width: 100%; height: 1px;
    background-color: var(--primary-red);
    z-index: -1;
}

.news-badge {
    background-color: var(--primary-red);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    padding: 6px 20px;
    border-radius: 20px;
    display: inline-block;
}

.news-content { padding: 25px 25px 30px; display: flex; flex-direction: column; flex-grow: 1; }
.news-date { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-light); margin-bottom: 12px; }
.news-title { font-size: 18px; color: var(--primary-red); margin-bottom: 15px; line-height: 1.4; }
.news-excerpt { font-size: 14px; color: var(--text-light); line-height: 1.6; margin-bottom: 25px; flex-grow: 1; }
.news-action { text-align: right; }
.news-link { color: var(--primary-red); font-weight: 600; font-size: 14px; text-decoration: none; transition: color 0.3s; }
.news-link:hover { color: var(--primary-hover); }

/* Responsive */
@media (max-width: 768px) {
    .news-slider-wrapper { padding: 0 10px; }
    .news-nav-btn { display: none; /* Ẩn mũi tên trên mobile để dùng vuốt */ }
}

/* =========================================
   --- Footer Section --- 
========================================= */
.main-footer {
    background-color: var(--primary-red);
    /* Họa tiết lượn sóng mạng lưới in mờ */
    background-image: url('https://via.placeholder.com/1920x500/4994db/357fbf?text=Network+Wave+Pattern');
    background-blend-mode: multiply;
    background-position: bottom right;
    background-size: cover;
    background-repeat: no-repeat;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding: 80px 0 50px;
}

.footer-logo h2 {
    font-size: 36px;
    color: var(--white);
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.footer-logo h2 span {
    font-weight: 800;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.7;
    opacity: 0.9;
}

.footer-heading {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
}

/* Gạch chân ngắn dưới các Title của Footer */
.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: var(--white);
    border-radius: 2px;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 15px; }

.footer-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 15px;
    opacity: 0.85;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

/* Icon mũi tên trước mỗi link */
.footer-links a::before {
    content: '\276F';
    font-size: 11px;
    margin-right: 10px;
    transition: transform 0.3s;
}

.footer-links a:hover { opacity: 1; transform: translateX(5px); }

.footer-contact { list-style: none; }
.footer-contact li { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 20px; font-size: 14px; line-height: 1.5; opacity: 0.9; }
.footer-contact svg { flex-shrink: 0; margin-top: 2px; }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    padding: 25px 0;
    font-size: 14px;
    opacity: 0.8;
}

/* Responsive Footer */
@media (max-width: 992px) {
    .footer-top { grid-template-columns: repeat(2, 1fr); gap: 50px; }
}
@media (max-width: 576px) {
    .footer-top { grid-template-columns: 1fr; gap: 40px; }
}

/* =========================================
   --- Inner Pages Header (Banner trang con) --- 
========================================= */
.inner-page-header {
    background-color: var(--primary-red);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
    /* Dùng chung pattern lưới mờ giống footer để tạo sự đồng bộ */
    background-image: url('https://via.placeholder.com/1920x300/4994db/357fbf?text=Pattern');
    background-blend-mode: multiply;
}

.inner-page-header h1 {
    font-size: 42px;
    margin-bottom: 15px;
}

.inner-page-header p {
    font-size: 16px;
    opacity: 0.9;
}

/* =========================================
   --- Custom Animations & Scroll Reveals --- 
========================================= */

/* 1. Hiệu ứng trôi nổi liên tục cho các thẻ lơ lửng */
@keyframes floatAnim {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

.float-anim {
    animation: floatAnim 4s ease-in-out infinite;
}
.float-delay {
    animation-delay: 2s; /* Trễ nhịp để lơ lửng so le nhau */
}

/* 2. Các class hiệu ứng xuất hiện khi cuộn trang (Scroll Reveal) */
.reveal-up { opacity: 0; transform: translateY(50px); transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.reveal-left { opacity: 0; transform: translateX(-50px); transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.reveal-right { opacity: 0; transform: translateX(50px); transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.reveal-scale { opacity: 0; transform: scale(0.85); transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); }

.reveal-up.active, 
.reveal-left.active, 
.reveal-right.active, 
.reveal-scale.active {
    opacity: 1; 
    transform: translate(0) scale(1);
}

/* Thời gian trễ (stagger) cho các ô Grid đứng cạnh nhau */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* =========================================
   --- Open Letter Section (Thư Ngỏ) --- 
========================================= */
.open-letter-section {
    padding: 80px 0;
    background-color: #FFFFFF;
    position: relative;
    overflow: hidden;
}

.open-letter-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

/* Cột Trái: Văn bản chiếm 60% */
.open-letter-content {
    flex: 0 0 58%;
    max-width: 58%;
}

.open-letter-title {
    color: var(--primary-red); /* Màu xanh chủ đạo */
    font-size: 46px;
    font-weight: 700;
    margin-bottom: 25px;
    font-family: 'Playfair Display', 'Times New Roman', serif; /* Tạo cảm giác thư pháp sang trọng */
}

.open-letter-content .greeting {
    color: #000000;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 20px;
    font-family: Arial, Helvetica, Arial, Lucida, sans-serif;
}

.letter-body p,
.letter-body span {
    color: #0E3746;
    font-size: 14.5px;
    line-height: 1.6;
    margin-bottom: 15px;
    text-align: justify;    
    font-family: Arial, Helvetica, Arial, Lucida, sans-serif;
}

/* Cột Phải: Hình ảnh chiếm 40% */
.open-letter-image {
    flex: 0 0 38%;
    max-width: 38%;
}

.open-letter-image .image-wrapper {
    padding: 15px;
    background-color: var(--white);
    border: 3px solid var(--primary-red); /* Viền xanh bo góc ngoài */
    border-radius: 40px; /* Bo góc lớn */
    box-shadow: 0 15px 35px rgba(73, 148, 219, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
}

.open-letter-image img {
    width: 100%;
    height: auto;
    border-radius: 28px; /* Bo góc trong cho sát với viền */
    object-fit: cover;
    display: block;
}

/* Đảm bảo Responsive: Chồng nhau trên mobile */
@media (max-width: 992px) {
    .open-letter-container {
        flex-direction: column;
        gap: 40px;
    }
    
    .open-letter-content, 
    .open-letter-image {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .open-letter-image .image-wrapper {
        max-width: 450px;
        margin: 0 auto;
    }
}

.section-header .df-heading {
    font-size: 36px;
    color: var(--text-dark);
    margin-top: 0; /* Gỡ bỏ margin mặc định của thẻ h1 */
}

.section-header .df-heading .infix {
    color: var(--primary-red);
}

/* =========================================
   --- Pricing Section (Bảng giá) --- 
========================================= */
.pricing-section {
    background-color: #020617; /* Chuẩn bg-slate-950 */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 50px 0; /* Thu bớt khoảng trống trên/dưới từ 80px xuống 50px */
}

.pricing-title {
    text-align: center;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 30px; /* text-3xl */
    color: #FFFFFF; /* text-white */
    margin-bottom: 35px; /* Thu bớt khoảng cách tới các thẻ giá từ 50px xuống 35px */
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* md:grid-cols-3 */
    gap: 32px; /* gap-8 */
    max-width: 1152px; /* max-w-6xl */
    margin: 0 auto;
}

.pricing-card {
    background-color: var(--white);
    border-radius: 16px; /* rounded-2xl */
    box-shadow: 0 10px 25px rgba(0,0,0,0.06); /* shadow-lg nhẹ nhàng */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(73, 148, 219, 0.12); /* Đổ bóng ánh xanh khi hover */
}

.pricing-header {
    background-color: var(--primary-red);
    color: var(--white);
    font-weight: 600;
    font-size: 20px; /* text-lg/xl */
    text-align: center;
    padding: 16px 24px; /* py-4 px-6 */
}

.pricing-price-box {
    padding: 32px 0; /* py-8 */
    text-align: center;
    border-bottom: 1px solid #F3F4F6; /* border-gray-100 */
    margin: 0 24px;
}

.pricing-price {
    font-size: 36px; /* text-4xl */
    font-weight: 700;
    color: var(--primary-red);
    display: inline-flex;
    align-items: flex-start;
    justify-content: center;
}

.pricing-price .currency {
    font-size: 18px; /* superscript nhỏ hơn */
    font-weight: 600;
    margin-right: 4px;
    margin-top: 4px;
    text-decoration: underline;
}

.pricing-features {
    list-style: none;
    padding: 24px;
    margin: 0;
    flex-grow: 1;
}

.pricing-features li {
    padding: 12px 0; /* py-3 */
    color: #475569; /* text-slate-600 */
    font-size: 14.5px; /* text-sm/base */
    display: flex;
    align-items: flex-start;
    border-bottom: 1px dashed #F1F5F9; /* Vạch kẻ ngang ngắt các dòng tính năng */
}

.pricing-features li:last-child {
    border-bottom: none;
}

/* Nút tròn nhỏ màu đỏ (Red Dot) */
.pricing-features li::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--primary-red); 
    border-radius: 50%;
    margin-right: 12px;
    margin-top: 6px;
    flex-shrink: 0;
}

/* Nút Đăng Ký Ngay */
.pricing-action {
    padding: 0 24px 32px;
}

.btn-pricing {
    display: block;
    width: 100%;
    text-align: center;
    background-color: var(--primary-red);
    color: var(--white);
    font-weight: 600;
    font-size: 15px;
    padding: 14px 24px;
    border-radius: 8px; /* Bo góc vừa phải */
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-pricing:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 8px 15px rgba(73, 148, 219, 0.25);
}

/* =========================================
   --- Animation cho Tabs --- 
========================================= */
@keyframes fadeInTab {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-tab {
    animation: fadeInTab 0.4s ease forwards;
}

/* Responsive Grid */
@media (max-width: 992px) {
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .pricing-grid { grid-template-columns: 1fr; }
    
    .features-layout {
        flex-direction: column;
    }
    
    .features-tabs-box, .features-image {
        flex: 1 1 100%;
    }
    
    /* Mobile Tabs nằm ngang */
    .features-tabs-box {
        flex-direction: column;
    }
    .tabs-menu {
        flex-direction: row;
        border-right: none;
        border-bottom: 1px solid #E2E8F0;
    }
    .tab-btn { flex: 1; border-bottom: none; border-right: 1px solid #E2E8F0; padding: 15px; }
    .tab-btn:last-child { border-right: none; }
    
}

/* =========================================
   --- Floating Contact Buttons --- 
========================================= */
.floating-contact-wrapper {
    position: fixed;
    bottom: 30px;
    left: 30px;
    display: flex;
    flex-direction: column-reverse; /* Đảo ngược để xếp từ dưới lên */
    gap: 15px;
    z-index: 999;
}
.float-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    text-decoration: none;
    font-size: 24px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.float-btn:hover { transform: scale(1.1); box-shadow: 0 6px 15px rgba(0,0,0,0.3); }
.float-btn.zalo { background-color: #0068FF; font-size: 15px; font-weight: bold; }
.float-btn.messenger { background-color: #0084FF; }
.float-btn.phone { background-color: #4CAF50; animation: phonePulse 2s infinite; }

@keyframes phonePulse {
    0% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(76, 175, 80, 0); }
    100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}

/* =========================================
   --- Tối ưu hóa Mobile Responsive --- 
========================================= */
@media (max-width: 768px) {
    /* 1. Thu nhỏ chữ và căn giữa tiêu đề */
    .open-letter-title { font-size: 32px; text-align: center; }
    .open-letter-content .greeting { text-align: center; }
    .section-header h2, .projects-title-box h2, .news-header h2 { font-size: 28px; text-align: center; }
    .projects-subtitle, .news-subtitle { text-align: center; display: block; }
    .projects-link { text-align: center; display: block; margin-top: 15px; }
    
    /* 2. Giảm padding các section (từ 80px xuống 50px) để không bị loãng */
    .open-letter-section, .partners-stats, .projects, .news-blog { padding: 50px 0; }
    
    /* 3. Filter Dự án: Biến thành thanh cuộn ngang (Swipeable) mượt mà như App */
    .filter-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; }
    .filter-tabs::-webkit-scrollbar { display: none; }
    .filter-btn { white-space: nowrap; }
    .projects-filter { align-items: stretch; border-bottom: none; }
    
    /* Ẩn mũi tên thừa của filter trên mobile */
    .filter-arrows { display: none; }
}

/* =========================================
   --- Social Proof Popup --- 
========================================= */
.social-proof-popup {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    padding: 15px;
    gap: 15px;
    z-index: 9999;
    border-left: 4px solid var(--primary-red);
    transform: translateY(100px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-width: 320px;
}
.social-proof-popup.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}
.sp-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--light-red-bg);
    color: var(--primary-red);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    flex-shrink: 0;
}
.sp-content { flex-grow: 1; }
.sp-name { font-weight: 700; font-size: 14px; color: var(--text-dark); margin-bottom: 2px; }
.sp-action { font-size: 13px; color: var(--text-light); margin-bottom: 4px; line-height: 1.3; }
.sp-time { font-size: 11px; color: #94a3b8; display: flex; align-items: center; gap: 4px; }
.sp-time::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #22c55e;
    border-radius: 50%;
}

@media (max-width: 768px) {
    .social-proof-popup {
        bottom: 90px; /* Nằm trên các nút float */
        left: 20px;
        right: 20px;
        max-width: calc(100% - 40px);
    }
}

/* =========================================
   --- Custom Scrollbar --- 
========================================= */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9; 
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1; 
    border-radius: 10px;
    border: 2px solid #f1f5f9; /* Tạo cảm giác có padding bên trong */
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-red); 
}

/* =========================================
   --- Custom Cursor Follower --- 
========================================= */
.cursor-follower {
    position: fixed;
    top: 0; left: 0;
    width: 32px; height: 32px;
    background: rgba(73, 148, 219, 0.1);
    border: 1px solid rgba(73, 148, 219, 0.4);
    border-radius: 50%;
    pointer-events: none; /* Xuyên thấu click */
    z-index: 999999;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.3s, height 0.3s, background 0.3s, border-color 0.3s, border-radius 0.3s;
}
.cursor-text {
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    opacity: 0;
    transition: opacity 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Trạng thái rê vào Dự án / Ảnh (Hiện chữ View) */
.cursor-view, .cursor-drag {
    width: 70px; height: 70px;
    background: var(--primary-red);
    border-color: var(--primary-red);
    box-shadow: 0 10px 30px rgba(73, 148, 219, 0.4);
}
.cursor-view .cursor-text, .cursor-drag .cursor-text { opacity: 1; }

/* Trạng thái Magnetic (Hút vào Nút/Link) đè lên các trạng thái trên */
.cursor-follower.cursor-hover-link {
    width: 45px; height: 45px;
    background: transparent;
    border: 2px solid var(--primary-red);
}
.cursor-follower.cursor-hover-link .cursor-text { opacity: 0 !important; }

/* Ẩn hiệu ứng này trên thiết bị di động */
@media (max-width: 768px) {
    .cursor-follower { display: none !important; }
}

/* =========================================
   --- Exit Intent Popup --- 
========================================= */
.exit-intent-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(5px);
    z-index: 9999999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.exit-intent-overlay.show {
    opacity: 1;
    visibility: visible;
}
.exit-intent-modal {
    background: #fff;
    border-radius: 24px;
    width: 90%;
    max-width: 750px;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}
.exit-intent-overlay.show .exit-intent-modal {
    transform: scale(1) translateY(0);
}
.exit-intent-close {
    position: absolute;
    top: 15px; right: 15px;
    width: 36px; height: 36px;
    background: #f1f5f9; border: none; border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    color: #64748b; cursor: pointer; z-index: 10; transition: all 0.2s;
}
.exit-intent-close:hover {
    background: var(--light-red-bg); color: var(--primary-red); transform: rotate(90deg);
}

/* =========================================
   --- Reading Progress Bar --- 
========================================= */
.progress-container {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 3px;
    background: transparent;
    z-index: 999999;
    pointer-events: none;
}
.progress-bar {
    height: 100%; width: 0%;
    background: var(--primary-red);
    box-shadow: 0 0 12px rgba(73, 148, 219, 0.8), 0 0 4px rgba(73, 148, 219, 0.5);
    transition: width 0.1s ease-out;
    border-radius: 0 2px 2px 0;
}

/* =========================================
   --- Live AJAX Search Dropdown --- 
========================================= */
.ajax-search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.2s;
    text-decoration: none;
}
.ajax-search-item:last-child { border-bottom: none; }
.ajax-search-item:hover { background-color: #f8fafc; }
.ajax-search-img {
    width: 48px; height: 48px;
    border-radius: 8px; object-fit: cover;
    flex-shrink: 0; border: 1px solid #e2e8f0;
}
.ajax-search-content { flex-grow: 1; overflow: hidden; }
.ajax-search-title {
    font-size: 13px; font-weight: 700; color: #1e293b;
    margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    transition: color 0.2s;
}
.ajax-search-item:hover .ajax-search-title { color: var(--primary-red); }
.ajax-search-meta { font-size: 11px; color: #94a3b8; }
.ajax-search-loading {
    padding: 20px;
    text-align: center;
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
}

/* =========================================
   --- Quick View Modal (Kho Giao Diện) --- 
========================================= */
.quick-view-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    z-index: 9999999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}
.quick-view-overlay.show {
    opacity: 1;
    visibility: visible;
}
.quick-view-modal {
    background: #fff;
    border-radius: 24px;
    width: 100%;
    max-width: 1000px;
    max-height: 90vh;
    position: relative;
    transform: scale(0.95) translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
@media (min-width: 768px) {
    .quick-view-modal { flex-direction: row; }
}
.quick-view-overlay.show .quick-view-modal {
    transform: scale(1) translateY(0);
}
.qv-close {
    position: absolute;
    top: 15px; right: 15px;
    width: 36px; height: 36px;
    background: #f1f5f9; border: none; border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    color: #64748b; cursor: pointer; z-index: 20; transition: all 0.2s;
}
.qv-close:hover {
    background: var(--light-red-bg); color: var(--primary-red); transform: rotate(90deg);
}
.qv-scroll-img { height: 300px; overflow-y: auto; }
@media (min-width: 768px) { .qv-scroll-img { height: 60vh; } }

/* =========================================
   --- Text Marquee Separator --- 
========================================= */
.text-marquee-wrapper {
    width: 100%;
    overflow: hidden;
    display: flex;
    position: relative;
    user-select: none;
    pointer-events: none;
    padding: 30px 0;
}

.text-marquee-content {
    display: flex;
    white-space: nowrap;
    /* Thời gian chạy 25s, điều chỉnh để nhanh/chậm hơn */
    animation: textMarqueeAnim 25s linear infinite; 
}

.text-marquee-content span {
    /* Kích thước co giãn linh hoạt theo màn hình */
    font-size: clamp(60px, 8vw, 120px); 
    font-weight: 900;
    text-transform: uppercase;
    color: transparent;
    -webkit-text-stroke: 2px rgba(73, 148, 219, 0.15); /* Tạo viền mờ màu xanh */
    padding-right: 50px;
}

@keyframes textMarqueeAnim {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Dịch 50% vì nội dung được nhân đôi */
}

/* =========================================
   --- Spotlight Hover Effect (Ánh sáng ma thuật) --- 
========================================= */
.spotlight-wrapper {
    position: relative;
    overflow: hidden;
}
.spotlight-wrapper::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* Tạo một vệt sáng gradient tròn bám theo tọa độ JS truyền vào */
    background: radial-gradient( 600px circle at var(--mouse-x, -1000px) var(--mouse-y, -1000px),
        rgba(73, 148, 219, 0.12),
        transparent 40%
    );
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.spotlight-wrapper:hover::before {
    opacity: 1;
}
/* Đẩy nội dung con lên trên lớp ánh sáng */
.spotlight-wrapper > * {
    position: relative;
    z-index: 1;
}

/* =========================================
   --- Floating Picture-in-Picture Video --- 
========================================= */
.pip-active {
    position: fixed !important;
    bottom: 20px;
    right: 20px;
    width: 320px;
    z-index: 9999999;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    border: 2px solid var(--primary-red);
    border-radius: 12px;
    animation: popInPip 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    background: #000;
}
.pip-active video {
    border-radius: 10px;
}
.pip-active #video-title-overlay { display: none !important; }
.pip-close-btn {
    display: none;
    position: absolute;
    top: -10px; right: -10px;
    width: 28px; height: 28px;
    background: var(--primary-red); 
    color: #fff; border: none; border-radius: 50%;
    cursor: pointer; z-index: 1000000;
    align-items: center; justify-content: center;
    font-size: 14px; box-shadow: 0 4px 10px rgba(73, 148, 219, 0.5);
    transition: transform 0.2s;
}
.pip-close-btn:hover { transform: scale(1.1) rotate(90deg); }
.pip-active .pip-close-btn { display: flex; }

@keyframes popInPip {
    from { transform: translateY(50px) scale(0.8); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}
@media (max-width: 768px) {
    .pip-active { width: 250px; bottom: 90px; right: 15px; } /* Đẩy lên để né các nút Zalo/Gọi */
}

/* =========================================
   --- Micro-Interactions & UI Sounds --- 
========================================= */
.ripple-span {
    position: absolute;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    animation: ripple-animation 0.6s linear forwards;
    pointer-events: none;
    z-index: 0;
}
@keyframes ripple-animation {
    to {
        transform: translate(-50%, -50%) scale(4);
        opacity: 0;
    }
}

.sound-toggle-btn {
    position: fixed;
    bottom: 150px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--white);
    border: 2px solid var(--primary-red);
    color: var(--primary-red);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(73, 148, 219, 0.2);
    z-index: 999;
    cursor: pointer;
    transition: all 0.3s ease;
}
.sound-toggle-btn:hover {
    transform: translateY(-3px) scale(1.05);
    background-color: var(--light-red-bg);
    box-shadow: 0 6px 20px rgba(73, 148, 219, 0.3);
}
.sound-toggle-btn i {
    font-size: 18px;
    transition: all 0.3s ease;
}
.sound-toggle-btn.muted i::before {
    content: "\f6a9"; /* fa-volume-mute */
}
.sound-toggle-btn:not(.muted) i::before {
    content: "\f028"; /* fa-volume-up */
}
@media (max-width: 768px) {
    .sound-toggle-btn {
        bottom: 200px; /* Tránh đè lên nút Zalo/Phone/Lên đầu trang */
        right: 20px;
        width: 40px;
        height: 40px;
    }
    .sound-toggle-btn i {
        font-size: 16px;
    }
}

/* =========================================
   --- AI CHATBOT (T1-Bot) --- 
========================================= */
.ai-chatbot-wrapper {
    position: fixed;
    bottom: 90px;
    right: 30px;
    z-index: 10000;
    font-family: 'Inter', sans-serif;
}
@media (max-width: 768px) {
    .ai-chatbot-wrapper {
        bottom: 140px;
        right: 20px;
    }
}

.ai-chat-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4994db, #63b0f7);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    box-shadow: 0 10px 25px rgba(73, 148, 219, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}
.ai-chat-btn:hover {
    transform: scale(1.1) rotate(5deg);
}

.ai-chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform-origin: bottom right;
    transform: scale(0);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(73, 148, 219, 0.1);
}
.ai-chat-window.open {
    transform: scale(1);
    opacity: 1;
    visibility: visible;
}
@media (max-width: 576px) {
    .ai-chat-window {
        width: 320px;
        height: 450px;
        right: -10px;
    }
}

.ai-chat-header {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.ai-chat-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}
.ai-bot-avatar {
    width: 40px;
    height: 40px;
    background: var(--primary-red);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    box-shadow: 0 0 10px rgba(73, 148, 219, 0.5);
}
.ai-bot-name {
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.ai-bot-status {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 5px #22c55e;
}
.ai-chat-close {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 20px;
    cursor: pointer;
    transition: color 0.3s;
}
.ai-chat-close:hover {
    color: var(--primary-red);
}

.ai-chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.ai-msg {
    max-width: 85%;
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 14px;
    line-height: 1.5;
    animation: fadeInMsg 0.3s ease forwards;
}
@keyframes fadeInMsg {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.ai-msg.bot {
    align-self: flex-start;
    background: #fff;
    color: #334155;
    border: 1px solid #e2e8f0;
    border-bottom-left-radius: 0;
}
.ai-msg.user {
    align-self: flex-end;
    background: var(--primary-red);
    color: #fff;
    border-bottom-right-radius: 0;
}
.ai-msg a {
    color: #3b82f6;
    font-weight: bold;
    text-decoration: underline;
}
.ai-msg.bot .typing-indicator {
    display: flex;
    gap: 4px;
    align-items: center;
    height: 20px;
}
.ai-msg.bot .typing-indicator span {
    width: 6px;
    height: 6px;
    background: #cbd5e1;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out both;
}
.ai-msg.bot .typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.ai-msg.bot .typing-indicator span:nth-child(2) { animation-delay: -0.16s; }
@keyframes typing {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

.ai-chat-input-area {
    padding: 15px;
    background: #fff;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.ai-chat-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    background: #f1f5f9;
    border-radius: 25px;
    padding: 5px 15px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
}
.ai-chat-input-wrapper:focus-within {
    border-color: var(--primary-red);
    background: #fff;
    box-shadow: 0 0 0 2px rgba(73, 148, 219, 0.1);
}
.ai-chat-input {
    width: 100%;
    border: none;
    background: transparent;
    outline: none;
    padding: 8px 0;
    font-size: 14px;
    color: #334155;
}
.ai-voice-btn {
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    font-size: 18px;
    transition: color 0.3s;
    outline: none;
}
.ai-voice-btn:hover {
    color: var(--primary-red);
}
.ai-voice-btn.recording {
    color: var(--primary-red);
    animation: pulse-voice 1.5s infinite;
}
@keyframes pulse-voice {
    0% { transform: scale(1); text-shadow: 0 0 0 rgba(73, 148, 219, 0.7); }
    50% { transform: scale(1.2); text-shadow: 0 0 10px rgba(73, 148, 219, 0.9); }
    100% { transform: scale(1); text-shadow: 0 0 0 rgba(73, 148, 219, 0); }
}
.ai-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-red);
    color: white;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
    outline: none;
}
.ai-send-btn:hover {
    background: var(--primary-hover);
    transform: rotate(-15deg);
}