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

:root {
    /* Khối màu chủ đạo */
    --primary: #C11D2D;
    /* Đỏ tín hiệu PCCC từ Logo */
    --primary-dark: #A81825;
    --secondary: #1F3682;
    /* Xanh Navy cho sự tin cậy từ Logo */
    --secondary-light: #457B9D;

    /* Màu nền & chữ */
    --bg-light: #F8F9FA;
    --bg-white: #FFFFFF;
    --text-dark: #2B2D42;
    --text-gray: #6C757D;
    --text-light: #EDF2F4;

    /* Thông số hệ thống */
    --font-main: 'Inter', sans-serif;
    --transition: all 0.3s ease;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --radius: 8px;
    --container-width: 1200px;
}

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

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navbar */
.header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    padding: 5px 0;
    box-shadow: var(--shadow-md);
    background-color: rgba(255, 255, 255, 0.98);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    transition: var(--transition);
}

.header.scrolled .header-container {
    height: 70px;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    color: var(--primary);
}

.logo i {
    color: var(--primary);
}

.brand-logo {
    max-height: 55px;
    /* Giới hạn chiều cao logo trong header */
    width: auto;
    object-fit: contain;
}

.footer-new-col .brand-logo {
    max-height: 80px;
    /* Logo to hơn một chút ở footer */
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-weight: 600;
    font-size: 15px;
    color: var(--secondary);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary);
    transition: var(--transition);
}

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

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

.btn-contact {
    background-color: var(--primary);
    color: var(--bg-white);
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(230, 57, 70, 0.3);
}

.btn-contact:hover {
    background-color: var(--primary-dark);
    color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(230, 57, 70, 0.4);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: var(--transition);
    background-color: var(--secondary);
}

/* Main Content */
.main-content {
    margin-top: 80px;
    /* Offset for fixed header */
    min-height: calc(100vh - 80px - 300px);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(230, 57, 70, 0.4);
}

.btn-outline {
    border: 2px solid var(--secondary);
    color: var(--secondary);
    background: transparent;
}

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

/* Sections */
.section-padding {
    padding: 80px 0;
}

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

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

.section-title h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 15px;
}

.section-title h2 span {
    color: var(--primary);
}

.section-title p {
    color: var(--text-gray);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

/* Footer */
.footer {
    background-color: var(--secondary);
    color: var(--text-light);
    padding-top: 70px;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo {
    color: white;
    margin-bottom: 20px;
}

.footer-desc {
    color: #cbd5e1;
    margin-bottom: 25px;
}

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--bg-white);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.footer-col h4 {
    font-size: 20px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary);
}

.footer-col ul li {
    margin-bottom: 15px;
}

.footer-col ul li a {
    color: #cbd5e1;
}

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

.contact-info li {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    color: #cbd5e1;
}

.contact-info i {
    color: var(--primary);
    margin-top: 5px;
}

.footer-bottom {
    background-color: #112239;
    padding: 20px 0;
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
}

/* Utilities for Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        gap: 0;
        flex-direction: column;
        background-color: var(--bg-white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 15px 0;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }
}

/* Hero Section */
.hero {
    height: 600px;
    background: linear-gradient(rgba(29, 53, 87, 0.8), rgba(29, 53, 87, 0.8)), url('https://images.unsplash.com/photo-1541888047915-1887e1f40957?w=1200&q=80') center/cover;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    color: white;
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    color: #e2e8f0;
}

.hero-btns {
    display: flex;
    gap: 15px;
    justify-content: center;
}

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

/* Stats */
.stats {
    background-color: var(--secondary);
    color: white;
    margin-top: -50px;
    position: relative;
    z-index: 2;
    border-radius: var(--radius);
    padding: 40px 0;
    box-shadow: var(--shadow-lg);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.stat-item h3 {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 5px;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-bottom: 3px solid var(--primary);
}

.service-icon {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--secondary);
}

.service-card p {
    color: var(--text-gray);
    margin-bottom: 20px;
}

.read-more {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.read-more i {
    transition: var(--transition);
}

.read-more:hover i {
    transform: translateX(5px);
}

/* Why Us */
.why-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.why-img,
.why-content {
    flex: 1;
}

.feature-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-dark);
}

.feature-list i {
    color: white;
    background: var(--primary);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* Contact Form */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--radius);
    font-family: var(--font-main);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

@media (max-width: 992px) {

    .stats-grid,
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-container {
        flex-direction: column;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 32px;
    }
}

/* ================== SẢN PHẨM TIÊU BIỂU ================== */
.product-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 40px;
    padding: 20px 0;
}

.product-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
    max-width: 1100px;
    overflow: hidden;
    position: relative;
    height: 400px;
}

.prod-item {
    position: absolute;
    width: 300px;
    height: 300px;
    transition: all 0.5s ease;
    opacity: 0.5;
    transform: scale(0.8);
    z-index: 1;
    cursor: pointer;
}

.prod-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.prod-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--primary);
    color: white;
    text-align: center;
    padding: 15px 10px;
    font-weight: 700;
    font-size: 14px;
    opacity: 0;
    transform: translateY(20px);
    transition: 0.3s;
}

.prod-item.active {
    opacity: 1;
    transform: scale(1);
    z-index: 3;
    width: 450px;
    height: 350px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.prod-item.active .prod-caption {
    opacity: 1;
    transform: translateY(0);
}

.prod-item.prev,
.prod-item.next {
    z-index: 2;
}

.prod-item.prev {
    left: 0%;
    transform: translateX(0) scale(0.8);
}

.prod-item.active {
    left: 50%;
    transform: translateX(-50%) scale(1);
}

.prod-item.next {
    right: 0%;
    transform: translateX(0) scale(0.8);
}

.carousel-nav {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--secondary);
    cursor: pointer;
    position: absolute;
    z-index: 10;
}

.carousel-nav.prev-nav {
    left: 0;
}

.carousel-nav.next-nav {
    right: 0;
}

.btn-pill {
    display: inline-block;
    padding: 12px 35px;
    background-color: var(--primary);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    transition: 0.3s;
}

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

/* ================== DỰ ÁN TIÊU BIỂU ================== */
.projects-featured {
    position: relative;
    width: 100%;
    margin-top: 50px;
    margin-bottom: 0;
    z-index: 10;
}

.projects-bg {
    position: relative;
    width: 100%;
    height: 500px;
}

.projects-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-overlay-container {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.project-info-box {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    width: 450px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--primary);
}

.project-info-box h3 {
    color: var(--secondary);
    font-size: 22px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.project-details p {
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
}

.project-dots {
    display: flex;
    gap: 8px;
    margin-top: 25px;
}

.project-dots .dot {
    width: 10px;
    height: 10px;
    background-color: #ddd;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.project-dots .dot.active {
    background-color: var(--primary);
}

.project-btn-wrapper {
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
}

/* ================== KHÁCH HÀNG ĐÁNH GIÁ ================== */
.testimonials-section {
    background-color: #151515;
    padding: 80px 0;
    color: white;
}

.testimonials-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.testimo-title h2 {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
}

.testimo-title .highlight {
    color: var(--primary);
}

.testimo-slider {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 30px;
}

.tes-content {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    flex: 1;
}

.tes-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--primary);
}

.tes-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tes-text {
    flex: 1;
}

.tes-text p {
    font-size: 16px;
    line-height: 1.7;
    color: #ccc;
    font-style: italic;
    margin-bottom: 20px;
}

.tes-author h4 {
    color: white;
    font-size: 16px;
    margin-bottom: 5px;
}

.tes-author span {
    color: var(--primary);
    font-size: 13px;
}

.tes-nav {
    background: none;
    border: none;
    color: #555;
    font-size: 20px;
    cursor: pointer;
    transition: 0.3s;
}

.tes-nav:hover {
    color: var(--primary);
}

/* ================== ĐỐI TÁC ================== */
.partners-logo-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 40px;
    gap: 20px;
}

.partner-logo {
    filter: grayscale(100%);
    opacity: 0.6;
    transition: 0.3s;
    cursor: pointer;
}

.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* ================== FORM ĐĂNG KÝ ================== */
.consulting-bg {
    background-color: var(--secondary);
    /* The theme's Navy instead of light blue to keep color config */
    padding: 60px 0;
    color: white;
}

.consulting-flex {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 50px;
}

.consulting-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.consulting-info h2 {
    font-size: 32px;
    margin-bottom: 30px;
}

.hotline-box {
    margin-bottom: 20px;
}

.hotline-box p {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hotline-box h3 {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
    /* Red hotline text */
}

.consulting-form-box {
    flex: 1;
    background: transparent;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.flat-input {
    width: 100%;
    padding: 15px 20px;
    background-color: white;
    border: 1px solid #ccc;
    color: #333;
    font-family: inherit;
    outline: none;
    transition: 0.3s;
}

.flat-input:focus {
    border-color: var(--primary);
}

.btn-submit-form {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 15px 30px;
    font-weight: 600;
    cursor: pointer;
    float: right;
    margin-top: 15px;
    transition: 0.3s;
}

.btn-submit-form:hover {
    background-color: #c92a37;
}

/* ================== NEW FOOTER ================== */
.footer-new {
    background-color: #f9f9f9;
    padding: 60px 0 30px;
    color: #333;
    border-top: 1px solid #eaeaea;
}

.footer-new-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
}

.logo-light {
    font-size: 28px;
    font-weight: 800;
    color: var(--secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.font-weight-600 {
    font-weight: 600;
}

.text-sm {
    font-size: 14px;
    color: #555;
}

.btn-download {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    padding: 8px 20px;
    border-radius: 5px;
    font-size: 14px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

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

.col-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 25px;
    text-transform: uppercase;
    color: var(--secondary);
}

.col-links ul {
    list-style: none;
    padding: 0;
}

.col-links ul li {
    margin-bottom: 12px;
}

.col-links ul li a {
    color: #555;
    text-decoration: none;
    font-size: 15px;
    transition: 0.2s;
}

.col-links ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.col-contact p {
    font-size: 15px;
    color: #555;
    margin-bottom: 8px;
}

@media (max-width: 992px) {

    .consulting-flex,
    .testimonials-flex {
        flex-direction: column;
    }

    .project-info-box {
        width: 90%;
    }

    /* Mobile: peek layout – item giữa 75%, hai bên lộ ra để gợi ý swipe */
    .product-carousel {
        height: 260px;
        display: block;
        overflow: visible;
        position: relative;
    }

    .product-carousel-wrapper {
        overflow: hidden; /* clip hai bên ngoài viewport */
        padding: 0;
    }

    .prod-item {
        position: absolute;
        width: 75%;
        height: 240px;
        transform: none;
        opacity: 0.4;
        margin-bottom: 0;
        transition: all 0.4s ease;
    }

    .prod-item.active {
        width: 75%;
        height: 240px;
        left: 50%;
        transform: translateX(-50%) scale(1);
        opacity: 1;
    }

    .prod-item.prev {
        left: 0;
        transform: translateX(-55%) scale(0.88);
        opacity: 0.5;
    }

    .prod-item.next {
        right: 0;
        transform: translateX(55%) scale(0.88);
        opacity: 0.5;
    }

    .carousel-nav {
        display: none;
    }
}

@media (max-width: 768px) {
    .footer-new-container {
        grid-template-columns: 1fr;
    }

    .form-row {
        flex-direction: column;
    }
}

/* ================== HERO MỚI ================== */
.hero-new {
    position: relative;
    width: 100%;
    height: 65vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    background-color: #f4f6f9;
    /* Fallback */
}

.hero-new-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-new-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    /* Sáng, rõ như ảnh */
}

.hero-new-bg::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);
}

.hero-new-content {
    position: relative;
    z-index: 2;
    padding-bottom: 120px;
    /* Nhường chỗ cho overlap box */
}

.hero-new-text {
    max-width: 600px;
}

.hero-new-text h1 {
    font-size: 48px;
    font-weight: 800;
    color: var(--secondary);
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-new-text p {
    font-size: 16px;
    color: #444;
    line-height: 1.6;
    margin-bottom: 30px;
    font-weight: 600;
}

/* ================== STATS OVERLAP ================== */
.stats-overlap-wrapper {
    position: relative;
    z-index: 10;
    margin-top: -100px;
    /* Kéo Box lên đè vào Hero */
    margin-bottom: 50px;
}

.stats-overlap-box {
    background-color: white;
    padding: 50px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    text-align: center;
}

.stats-o-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 40px;
}

.stats-o-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.stats-o-item {
    display: flex;
    align-items: center;
    text-align: left;
    background-color: #fafafa;
    padding: 25px;
    border-radius: 8px;
    transition: 0.3s;
    border-left: 4px solid transparent;
}

.stats-o-item:hover {
    border-left-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.stats-o-icon {
    font-size: 32px;
    color: var(--primary);
    margin-right: 20px;
    width: 50px;
    flex-shrink: 0;
}

.stats-o-text h3 {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 5px;
}

.stats-o-text p {
    font-size: 13px;
    font-weight: 700;
    color: var(--secondary);
    margin: 0;
}

@media (max-width: 992px) {
    .stats-o-grid {
        grid-template-columns: 1fr;
    }

    .hero-new-text h1 {
        font-size: 36px;
    }
}

/* ================== HERO HORIZONTAL SLIDER ================== */
.hero-slider-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    height: 65vh;
    min-height: 500px;
}

.hero-slider-track {
    display: flex;
    width: 300%; /* 3 slides */
    height: 100%;
    transition: transform 0.7s cubic-bezier(0.77, 0, 0.18, 1);
}

.hero-slide {
    position: relative;
    width: calc(100% / 3);
    flex-shrink: 0;
    height: 100%;
    overflow: hidden;
}

.hero-slide-bg {
    position: absolute;
    inset: 0;
}

.hero-slide-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 8s ease;
}

.hero-slide.active .hero-slide-bg img {
    transform: scale(1.06);
}

.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(15, 30, 80, 0.78) 0%,
        rgba(15, 30, 80, 0.45) 55%,
        rgba(0,0,0,0.10) 100%
    );
}

/* Content text on top of image */
.hero-slide-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    z-index: 2;
}

.hero-slide-text {
    max-width: 580px;
    color: white;
    padding-bottom: 80px;
}

.hero-label {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 3px;
    margin-bottom: 18px;
}

.hero-slide-text h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: white;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease 0.2s, transform 0.7s ease 0.2s;
}

.hero-slide-text h1 span {
    color: var(--primary);
}

.hero-slide-text p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 30px;
    color: rgba(255,255,255,0.85);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease 0.4s, transform 0.7s ease 0.4s;
}

.hero-slide.active .hero-slide-text h1,
.hero-slide.active .hero-slide-text p {
    opacity: 1;
    transform: translateY(0);
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--primary);
    color: white;
    padding: 14px 28px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    text-decoration: none;
    text-transform: uppercase;
    border-radius: 4px;
    transition: background-color 0.3s, transform 0.2s;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.7s ease 0.6s, transform 0.7s ease 0.6s, background-color 0.3s;
}

.hero-slide.active .hero-btn {
    opacity: 1;
    transform: translateY(0);
}

.hero-btn:hover {
    background-color: var(--primary-dark);
    transform: translateX(4px);
}

/* === Arrows === */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.4);
    color: white;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, border-color 0.3s;
    backdrop-filter: blur(4px);
}

.hero-arrow:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.hero-arrow-prev { left: 30px; }
.hero-arrow-next { right: 30px; }

/* === Dots === */
.hero-dots-bar {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: 2px solid rgba(255,255,255,0.6);
    cursor: pointer;
    transition: 0.3s;
}

.hero-dot.active {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.3);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-slider-section { height: 75vh; }
    .hero-slide-text h1 { font-size: 30px; }
    .hero-label { font-size: 11px; }
    .hero-btn { padding: 12px 22px; font-size: 13px; }

    /* Ẩn nút prev/next trên mobile để không che content */
    .hero-arrow { display: none; }

    /* Dots to hơn trên mobile để dễ bấm */
    .hero-dot { width: 12px; height: 12px; }
}