:root {
    --primary-color: #b20527;
    --secondary-color: #fbc326;
    --text-color: #333;
    --light-text: #777;
    --bg-light: #f9f9f9;
    --transition: all 0.3s ease;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--secondary-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 14px;
}

.btn:hover {
    background-color: #e09a05;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title .subtitle {
    display: block;
    color: var(--primary-color);
    font-size: 18px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.section-title h2 span {
    color: var(--primary-color);
}

.section-title .title-desc {
    max-width: 700px;
    margin: 0 auto;
    color: var(--light-text);
}

/* Header Styles */
.top-bar {
    background-color: #111;
    color: #fff;
    padding: 10px 0;
    font-size: 14px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.contact-info {
    display: flex;
    gap: 20px;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-links {
    display: flex;
    gap: 15px;
}

social-links a {
    color: #fff;
    font-size: 16px;
    transition: var(--transition);
}

social-links a:hover {
    color: var(--secondary-color);
    transform: translateY(-3px);
}

/* Main Header */
.main-header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 18px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    width: 55px;
    height: auto;
}
.logo-text{
    text-align: center;
}
.logo-text h1 {
    font-size: 35px;
    color: #fac401;
    margin-bottom: 5px;
    font-family: 'Times New Roman', Times, serif;
    line-height: 30px;
}

.logo-text p {
    font-size: 12px;
    color: var(--light-text);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Navigation */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

.main-nav a {
    font-weight: 500;
    text-transform: uppercase;
    font-size: 15px;
    letter-spacing: 1px;
    position: relative;
    padding: 5px 0;
}

.main-nav a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.main-nav a:hover:after,
.main-nav a.active:after {
    width: 100%;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    padding: 15px;
    min-width: 250px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.dropdown-menu li {
    margin-bottom: 10px;
}

.dropdown-menu a {
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.dropdown-menu a:hover {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary-color);
}
/* Ẩn menu mặc định trên mobile */
@media (max-width: 991px) {
    /* Reset và ẩn menu mobile mặc định */
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: #fff;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
        z-index: 1001;
        padding: 20px;
    }

    .main-nav ul {
        position: absolute;
        top: 50px;
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    /* Style cho dropdown */
    .dropdown {
        display: flex;
        flex-direction: column;
    }

    /* Style cho dropdown menu */
    .dropdown-menu {
        position: static;
        width: 100%;
        max-height: 0;
        opacity: 0;
        visibility: hidden;
        overflow: hidden;
        transition: all 0.3s ease;
        padding: 0;
        margin: 0;
        box-shadow: none;
        background: transparent;
    }

    /* Khi dropdown được active */
    .dropdown.active .dropdown-menu {
        max-height: 500px;
        opacity: 1;
        visibility: visible;
        padding: 15px 0 0 20px;
        margin: 10px 0;
        border-left: 2px solid var(--primary-color);
    }

    /* Style cho dropdown items */
    .dropdown-menu li {
        transform: translateY(-10px);
        opacity: 0;
        transition: all 0.3s ease;
    }

    .dropdown.active .dropdown-menu li {
        transform: translateY(0);
        opacity: 1;
    }

    /* Rotate arrow icon when active */
    .dropdown > a i {
        transition: transform 0.3s ease;
    }

    .dropdown.active > a i {
        transform: rotate(180deg);
    }
}

/* Hiển thị menu trên desktop */
@media (min-width: 992px) {
    .mobile-menu-btn {
        display: none;
    }

    .main-nav {
        display: block !important; /* Luôn hiển thị trên desktop */
    }

    .close-menu {
        display: none;
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Gradient Background with Image */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-size: 200% 200%;
    animation: gradientFlow 10s ease infinite;
    /* Thêm hình ảnh nền tối ưu */
    background-image: url('../images/hero-bg.webp');
    background-position: center;
    background-size: cover;
    background-blend-mode: overlay;
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.menu-toggle-input {
    display: none;
}

.menu-toggle {
    display: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-list {
        display: none;
    }

    .menu-toggle-input:checked ~ .nav-list {
        display: flex;
    }
}




.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-20px) translateX(-50%);
    }

    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

/* Featured Post */
.featured-post {
    padding: 80px 0;
}

.post-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.post-content {
    flex: 1;
}

.post-content .subtitle {
    color: var(--primary-color);
    font-size: 18px;
    margin-bottom: 15px;
    display: block;
}

.post-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.post-content p {
    margin-bottom: 20px;
    color: var(--light-text);
}

.post-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Stats Banner */
.stats-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/stats-bg.jpg') no-repeat center/cover;
    padding: 80px 0;
    color: #fff;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-item h3 {
    font-size: 48px;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.stat-item p {
    font-size: 18px;
}

/* Projects Carousel */
.projects-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.carousel-container {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    will-change: transform;
}

.carousel-slide {
    min-width: 100%;
    flex: 0 0 100%;
    padding: 0 10px;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .carousel-slide {
        min-width: 50%;
        flex: 0 0 50%;
    }
}

@media (min-width: 992px) {
    .carousel-slide {
        min-width: 33.333%;
        flex: 0 0 33.333%;
    }
}

.carousel-slide img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(178, 5, 39, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-button.prev {
    left: 10px;
}

.carousel-button.next {
    right: 10px;
}

.carousel-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.thongtinduan {
    padding: 15px 0;
}

.title-project a {
    font-size: 18px;
    color: #333;
    transition: color 0.3s;
}

.title-project a:hover {
    color: #b20527;
}

.date-project {
    color: #777;
    margin: 8px 0;
    font-size: 14px;
}

.more-project button {
    padding: 8px 20px;
    background-color: #b20527;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.more-project button:hover {
    background-color: #8e0420;
}

/* Services Section */
.services-section {
    padding: 80px 0;
}

.services-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.tab-btn {
    padding: 10px 20px;
    background-color: #f0f0f0;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn.active {
    background-color: var(--primary-color);
    color: #fff;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.service-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 300px;
}

.service-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-item:hover img {
    transform: scale(1.05);
}

.service-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #fff;
}

.service-overlay h3 {
    margin-bottom: 10px;
}


/* Testimonials */
/* Sldeê */

.testimonial-slider {
    text-align: center;
    font-family: Arial, sans-serif;
    max-width: 1050px;
    /* Điều chỉnh kích thước tùy theo thiết kế */
    margin: auto;
    overflow: hidden;
}
.danhgia-customer{
    margin: 80px auto;
}

h3 {
    color: #888;
    font-weight: 500;
}

h2 {
    color: #323232;
    margin-bottom: 20px;
}

.slider {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
}

.slide {
    flex: 0 0 330px;
    /* Mỗi slide có kích thước cố định */
    padding: 20px;
    box-sizing: border-box;
    text-align: left;
    border: 1px solid #ddd;
    margin: 0 10px;
    /* Khoảng cách giữa các slide */
    border-radius: 8px;
    background: #fff;
    height: 370px;
    position: relative;
}
.person-cmt{
    display: flex;
    gap: 10px;
    align-items: center;
    position: absolute;
    bottom: 1rem;
}
.avt-cmt{
    width: 60px;
}
.avt-cmt img{
    width: 100%;
    border-radius: 50%;
}
.name-cmt span{
    color: rgb(255, 115, 0);
}
.content-comment{
    font-size: 18px;
    margin-bottom: 10px;
}
/* @media (max-width: 768px) {
    .slide {
            flex: 0 0 250px;
    }
}

@media (max-width: 576px) {
    .slide {
            flex: 0 0 100%;
            margin: 0 5px;
    }
} */
/* Footer */
.main-footer {
    background-color: #111;
    color: #fff;
    padding: 60px 0 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-size: 20px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-col p {
    margin-bottom: 15px;
    color: #aaa;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #aaa;
    transition: var(--transition);
    display: block;
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #aaa;
    font-size: 14px;
}


/* Responsive Styles */
@media (max-width: 992px) {
    .post-container {
        flex-direction: column;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .carousel-slide {
        min-width: calc(50% - 10px);
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: #fff;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        z-index: 1001;
        padding: 30px;
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 20px;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        padding: 10px 0 0 20px;
        display: none;
    }

    .dropdown:hover .dropdown-menu {
        display: block;
    }

    .close-menu {
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 30px;
        cursor: pointer;
        background-color: #fff;
        border: none;
    }

    .top-bar .container {
        justify-content: center;
    }

    .contact-info {
        display: none;
    }

    .hero-content h1 {
        font-size: 3rem;
        max-width: 100%;
    }

    .hero-content h2 {
        font-size: 18px;
    }

    .hero-content h2 span {
        font-size: 2.5rem;
    }
    .hero-content h3 {
        font-size: 20px;
    }
    .carousel-slide {
        min-width: calc(100% - 20px);
        margin: 0 10px;
    }

    .carousel-button {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .carousel-button.prev {
        left: 0;
    }

    .carousel-button.next {
        right: 0;
    }
}

@media (max-width: 576px) {
    .hero-section {
        min-height: 500px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .section-title h2 {
        font-size: 28px;
    }
}