:root {

    --primary-blue: #ff9100;
    --secondary-green: #e99e3c;
    --accent-light-blue: #eaac5a;
    --text-dark: #212529; 
    --text-light: #495057;
    --background-light: #f8f9fa;
    --white-color: #ffffff;
    --border-color: #dee2e6;
    --light-orange: #fffaf0;
}

html {
    scroll-behavior: smooth;
}

:target, section[id], h1[id], h2[id], h3[id], h4[id] {
    scroll-margin-top: 140px; 
}

body {
    font-family: 'Be Vietnam Pro', sans-serif;
    margin: 0;
    color: var(--text-dark);
    background-color: var(--white-color);
    line-height: 1.6;
    overflow-x: hidden;
}



.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.flex-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#stats-counter {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/img/anh_maybay.png');
    
    background-size: cover;      
    background-position: center;
    background-attachment: local; 
    color: var(--white-color);   
    position: relative;
}

#stats-counter .stat-item {
    border: none;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounceIn {
    0% { transform: scale(0.95); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in-slide {
    animation: fadeInSlide 0.8s ease-out forwards;
}

.bounce-hover {
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.bounce-hover:hover {
    animation: bounceIn 0.6s ease-out;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animate {
    opacity: 1;
    transform: translateY(0);
}

.top-header {
    background-color: var(--background-light);
    padding: 10px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-light);
}
.top-header i {
    color: var(--secondary-green);
    margin-right: 8px;
}
.contact-details span {
    margin-right: 20px;
}

.main-navigation {
    background: var(--white-color);
    height: 80px;
    width: 100%;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 35px;
    margin: 0;
    padding: 0;
}
.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 700;
    padding-bottom: 5px;
    position: relative;
    transition: color 0.3s;
}
.nav-menu a:hover, .nav-menu a.active {
    color: var(--primary-blue);
}
.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--secondary-green);
}
.quote-button {
    background-color: var(--secondary-green);
    color: var(--white-color);
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s, transform 0.2s;
    position: relative;
    overflow: hidden; 
}
.quote-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}
.quote-button:hover::before {
    width: 300px;
    height: 300px;
}
.quote-button:hover {
    background-color: var(--primary-blue);
    transform: translateY(-2px);
}

.mobile-nav-toggle {
    display: none;
}

.hero {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,145,0,0.05) 0%, rgba(233,158,60,0.05) 100%);
    z-index: 1;
}
.hero-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 2;
}
.hero-image-column {
    display: flex;
    align-items: center;
    position: relative;
}
.hero-image-column img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,95,115,0.2);
    animation: fadeInUp 1s ease-out 0.5s both; /* Delay cho image */
}
.main-headline {
    font-size: 42px;
    color: var(--primary-blue);
    line-height: 1.2;
    margin-bottom: 20px;
    animation: fadeInSlide 0.8s ease-out both;
}
.sub-headline {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}
.feature-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 40px;
}
.feature-item {
    display: flex;
    align-items: center;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}
.feature-item:nth-child(1) { animation-delay: 0.5s; }
.feature-item:nth-child(2) { animation-delay: 0.7s; }
.feature-item:nth-child(3) { animation-delay: 0.9s; }
.feature-icon {
    background-color: #e0f2f1;
    width: 55px;
    height: 55px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 20px;
    transition: transform 0.3s;
}
.feature-item:hover .feature-icon {
    transform: scale(1.1);
}
.feature-icon i {
    font-size: 24px;
    color: var(--secondary-green);
}
.feature-text h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
}
.feature-text p {
    margin: 0;
    color: var(--text-light);
}
.learn-more-button {
    background-color: var(--primary-blue);
    color: var(--white-color);
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    transition: background-color 0.3s, transform 0.2s;
    position: relative;
    overflow: hidden;
    animation: bounceIn 0.8s ease-out 1.2s both;
}
.learn-more-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}
.learn-more-button:hover::before {
    width: 300px;
    height: 300px;
}
.learn-more-button:hover {
    background-color: #004250;
    transform: translateY(-2px);
}

.floating-contact-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 990; 
}
.fab-icon {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white-color);
    font-size: 22px;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s, background-color 0.3s;
}
.fab-icon:hover {
    transform: scale(1.1) rotate(5deg); 
}
.fab-icon.call { background-color: #007bff; }
.fab-icon.back-to-top {
    background-color: var(--text-light);
    display: none;
}
.fab-icon.back-to-top:hover {
    background-color: var(--text-dark);
}
.fab-icon.facebook { background-color: #1877F2; }
.fab-icon.zalo {
    background-color: transparent;
    box-shadow: none;
    width: 60px;
    height: 60px;
}
.fab-icon.zalo:hover {
    transform: scale(1.1);
}
.zalo-img-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.content-section {
    padding: 80px 0;
}
.bg-light {
    background-color: var(--background-light);
}
.section-title {
    font-size: 36px;
    color: var(--primary-blue);
    margin-bottom: 20px;
    text-align: center;
}
.section-subtitle {
    font-size: 18px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 50px auto;
}
.text-center {
    text-align: center;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: center;
}
.about-image img {
    width: 100%;
    border-radius: 15px;
    animation: fadeInUp 1s ease-out both;
}
.about-content h3 {
    font-size: 24px;
    margin-bottom: 15px;
}
.about-content p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.8;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.service-card {
    background-color: var(--white-color);
    padding: 40px;
    text-align: center;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    opacity: 0; 
}
.service-card.animate {
    animation: fadeInUp 0.6s ease-out forwards;
}
.service-card:nth-child(1).animate { animation-delay: 0.2s; }
.service-card:nth-child(2).animate { animation-delay: 0.4s; }
.service-card:nth-child(3).animate { animation-delay: 0.6s; }
.service-card:hover {
    transform: translateY(-10px) rotate(1deg); 
    box-shadow: 0 12px 35px rgba(0,95,115,0.15);
}
.card-icon {
    font-size: 40px;
    color: var(--secondary-green);
    margin-bottom: 20px;
    transition: transform 0.3s;
}
.service-card:hover .card-icon {
    transform: scale(1.2) rotate(360deg);
}
.service-card h4 {
    font-size: 22px;
    margin-bottom: 15px;
}
.service-card p {
    color: var(--text-light);
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}
.contact-info-item {
    text-align: center;
    transition: transform 0.3s;
}
.contact-info-item:hover {
    transform: translateY(-5px);
}
.contact-info-item i {
    font-size: 32px;
    color: var(--primary-blue);
    margin-bottom: 20px;
}
.contact-info-item h4 {
    font-size: 20px;
    margin-bottom: 10px;
}
.contact-info-item p {
    font-size: 16px;
    color: var(--text-light);
    margin: 0;
}

.map-container {
    margin-top: 50px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}
.map-container iframe {
    display: block;
    width: 100%;
    height: 450px;
    border: 0;
}

.site-footer {
    background-color: #ffffff; 
    color: var(--text-dark); 
    padding-top: 60px; 
    font-size: 15px;
    line-height: 1.7;
    box-shadow: 0 -4px 20px rgba(255,145,0,0.1); 
}

.footer-top {
    padding-bottom: 40px; 
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer-column.about {
    grid-column: span 1; 
}

.footer-column.links {
    grid-column: span 1;
}

.footer-column.contact {
    grid-column: span 1;
}

.footer-logo {
    height: 150px; 
    margin-bottom: 20px;
    background-color: transparent; 
    padding: 5px 10px;
    border-radius: 5px;
}

.footer-column p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.footer-social-icons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #ffe8cc; 
    color: var(--primary-blue);
    font-size: 16px;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.3s, color 0.3s;
}
.social-icon:hover {
    background-color: var(--primary-blue);
    color: var(--white-color); 
    transform: translateY(-3px) scale(1.1);
}

.footer-column-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark); 
    margin-bottom: 25px;
    position: relative;
}

.footer-nav-menu,
.footer-contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav-menu li {
    margin-bottom: 12px;
}

.footer-nav-menu li a,
.footer-contact-info li a {
    text-decoration: none;
    color: var(--text-light); 
    transition: color 0.3s, padding-left 0.3s;
}

.footer-nav-menu li a:hover {
    color: var(--primary-blue); 
    padding-left: 5px;
}

.footer-contact-info li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    color: var(--text-light);
}

.footer-contact-info li i {
    margin-right: 12px;
    font-size: 16px;
    margin-top: 4px;
    width: 20px; 
    text-align: center;
    color: var(--primary-blue);
}
.footer-contact-info li span {
    flex: 1; 
}
.footer-contact-info li a:hover {
    color: var(--primary-blue); 
}

/* Thanh Copyright */
.footer-bottom {
    background-color: #f8b94d; 
    color: var(--white-color); 
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    font-size: 14px;
    border-top: none; 
}

.footer-bottom p {
    margin: 0;
    color: var(--white-color);
}

.nav-item-dropdown {
    position: relative; 
}

.nav-item-dropdown > a .fa-chevron-down {
    font-size: 12px;
    margin-left: 6px;
    transition: transform 0.3s ease;
}

.dropdown-menu {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 250px;
    
    background-color: var(--white-color);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 8px;
    
    list-style: none;
    margin: 0;
    padding: 8px 0;
    z-index: 1100;

    visibility: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

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

.nav-item-dropdown:hover > a .fa-chevron-down {
    transform: rotate(180deg);
}

.dropdown-menu li {
    position: relative;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 15px;
    white-space: nowrap; 
    transition: background-color 0.2s, color 0.2s;
}

.dropdown-menu li a.active::after,
.dropdown-menu li a::after {
    content: none;
}

.dropdown-menu li a:hover {
    background-color: var(--background-light);
    color: var(--primary-blue); 
}

.customer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 2px solid var(--background-light);
}

.customer-name {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    color: var(--text-dark);
}

.customer-role {
    font-size: 12px;
    color: var(--text-light);
}

.star-rating {
    color: #ffc107; /* Màu vàng ngôi sao */
    font-size: 14px;
    margin-bottom: 15px;
}

.bg-gradient {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-green) 100%);
    color: var(--white-color);
    padding: 60px 0;
}

.stats-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.stats-header p {
    font-size: 20px;
    font-weight: 700;
    color: var(--white-color);
    text-transform: uppercase;
    letter-spacing: 3px; 
    margin: 0;
    display: inline-block;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-green); 
}

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

.stat-item {
    background: rgba(255, 255, 255, 0.1); 
    padding: 30px 20px;
    border-radius: 15px;
    backdrop-filter: blur(5px);
    
    transition: transform 0.3s;
}

.stat-icon {
    font-size: 40px;
    margin-bottom: 15px;
    color: #fffaf0;
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 5px;
    line-height: 1.2;
}

.stat-number::after {
    content: "+";
    font-size: 30px;
    vertical-align: top;
    margin-left: 5px;
    color: #ffd700; /* Màu vàng kim */
}

.stat-label {
    font-size: 18px;
    font-weight: 500;
    margin: 0;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}



.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr; 
    gap: 50px;
    margin-bottom: 50px;
    align-items: flex-start;
}

.contact-left {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-info-box {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    background-color: var(--white-color);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    border: 1px solid #f0f0f0;
}

.contact-info-box:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-green);
}

.contact-info-box .info-icon {
    min-width: 50px;
    height: 50px;
    background-color: #fffaf0;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 20px;
}

.contact-info-box .info-icon i {
    font-size: 20px;
    color: var(--primary-blue);
}

.contact-info-box h4 {
    margin: 0 0 5px 0;
    font-size: 18px;
    color: var(--text-dark);
}

.contact-info-box p, 
.contact-info-box a {
    margin: 0;
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
    text-decoration: none;
}
.contact-info-box a:hover {
    color: var(--primary-blue);
}

/* Style Cột Phải (Form) */
.contact-right {
    background-color: var(--white-color);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group input,
.form-group textarea,
.form-group-row input {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
    outline: none;
    background-color: #fcfcfc;
    box-sizing: border-box; 
}

.form-group-row {
    display: flex;
    gap: 20px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group-row input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(255, 145, 0, 0.1);
    background-color: var(--white-color);
}

.form-group textarea {
    resize: vertical;
}

.submit-btn {
    background-color: var(--primary-blue);
    color: var(--white-color);
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    align-self: flex-start; /* Nút nằm bên trái */
    margin-top: 10px;
}

.submit-btn:hover {
    background-color: #004250; /* Màu hover tối hơn */
    transform: translateY(-2px);
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--white-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* --- NEWS SECTION STYLES --- */

/* Tiêu đề có gạch ngang */
.news-section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    gap: 20px;
}

.news-title {
    font-size: 32px;
    color: #e99e3c; /* Màu vàng cam giống hình */
    text-transform: uppercase;
    margin: 0;
    font-weight: 700;
}

.header-line {
    height: 1px;
    background-color: #ddd;
    width: 100px; /* Độ dài gạch ngang */
    display: block;
}

/* Slider Wrapper */
.news-slider-wrapper {
    position: relative;
    padding: 0 50px; /* Chừa chỗ cho nút Next/Prev */
}

.news-track-container {
    overflow: hidden;
    width: 100%;
}

.news-image a {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer; 
}

.news-track {
    display: flex;
    padding: 0;
    margin: 0;
    list-style: none;
    transition: transform 0.5s ease-in-out;
}

.news-slide {
    min-width: 33.333%; /* 3 item trên desktop */
    box-sizing: border-box;
    padding: 0 15px; /* Khoảng cách giữa các card */
}

/* Card Style */
.news-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s;
}

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

.news-image {
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.news-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-category {
    font-size: 12px;
    color: #e99e3c; /* Màu vàng cam */
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.news-heading {
    font-size: 18px;
    margin: 0 0 10px 0;
    line-height: 1.4;
    min-height: 50px; /* Giữ chiều cao tiêu đề đồng đều */
}

.news-heading a {
    text-decoration: none;
    color: var(--text-dark);
    transition: color 0.3s;
}

.news-heading a:hover {
    color: var(--primary-blue);
}

.news-meta {
    font-size: 13px;
    color: #999;
    margin-bottom: 15px;
}

.news-excerpt {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
    
    display: -webkit-box;           /* 1. Thiết lập kiểu hiển thị box */
    -webkit-box-orient: vertical;   /* 3. Hướng nội dung dọc */
    overflow: hidden;               /* 4. Ẩn phần nội dung thừa */
}

/* Navigation Buttons */
.news-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: 1px solid #ddd;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    color: #999;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    
    /* --- SỬA/THÊM 2 DÒNG QUAN TRỌNG NÀY --- */
    z-index: 100; /* Tăng lên 100 để chắc chắn nằm trên cùng */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); /* Thêm chút bóng cho nút nổi lên */
}

.news-nav-btn i {
    pointer-events: none; 
}

.news-nav-btn:hover {
    background: var(--primary-blue);
    color: #fff;
    border-color: var(--primary-blue);
}

.prev-btn { left: 0; }
.next-btn { right: 0; }

/* Dots Pagination */
.news-dots-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

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

.news-dot.active-dot {
    background: #e99e3c; /* Màu vàng cam */
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000; /* Thấp hơn menu (1001) nhưng cao hơn web */
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
}

#overlay.active {
    display: block;
    opacity: 1;
}

/* Responsive */
@media (max-width: 992px) {
    .news-slide { min-width: 50%; } /* Tablet: 2 item */
}

@media (max-width: 576px) {
    .news-slide { min-width: 100%; } /* Mobile: 1 item */
    .news-slider-wrapper { padding: 0; } /* Bỏ padding 2 bên trên mobile */
    .news-nav-btn { display: none; } /* Ẩn nút mũi tên trên mobile cho gọn */
}

/* Responsive cho Mobile/Tablet */
@media (max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr; /* Chuyển thành 1 cột */
        gap: 40px;
    }

    .form-group-row {
        flex-direction: column; /* Input email/phone xuống dòng */
    }

    .submit-btn {
        width: 100%; /* Nút full chiều rộng trên mobile */
    }
}

/* Responsive Mobile */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr; /* Chuyển thành 1 cột dọc */
        gap: 20px;
    }
    
    .stat-number {
        font-size: 36px;
    }
}

/* Định nghĩa Animation chạy ngang */
@keyframes scroll-loop {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Dịch chuyển -50% vì ta sẽ nhân đôi nội dung bằng JS */
        transform: translateX(-50%);
    }
}

@media (max-width: 992px) {
    /* 1. LAYOUT CHUNG */
    .hero-grid, .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-image-column { order: -1; }
    .feature-item { justify-content: center; text-align: left; }
    .main-headline { font-size: 36px; }
    .services-grid, .contact-info-grid { grid-template-columns: 1fr; }
    .contact-wrapper { grid-template-columns: 1fr; gap: 40px; }
    .form-group-row { flex-direction: column; }
    .submit-btn { width: 100%; }

    /* 2. FOOTER TABLET */
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
    .footer-column.about { grid-column: span 2; text-align: center; }
    .footer-social-icons { justify-content: center; }
    .footer-column.contact, .footer-column.links { grid-column: span 1; }

    /* 3. NAV MENU MOBILE (Code Mới) */
    .mobile-nav-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 24px;
        color: var(--text-dark);
        cursor: pointer;
        z-index: 1002;
        padding: 5px;
        order: 3;
    }

    /* Logo - Tracking - Hamburger */
    .main-navigation .flex-container {
        justify-content: space-between;
        flex-wrap: nowrap;
    }
    
    .brand-logo {
        order: 1;
        margin-right: auto;
        z-index: 1002;
    }

    /* Hiện lại nút Tracking */
    .quote-button {
        display: inline-block !important;
        order: 2;
        margin-left: auto;
        margin-right: 15px;
        padding: 8px 15px;
        font-size: 13px;
        z-index: 1002;
    }

    /* Menu trượt từ phải sang (280px) */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--white-color);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 80px 0 20px 0;
        gap: 0;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        z-index: 1001;
        overflow-y: auto;
    }

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

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    .nav-menu a {
        font-size: 16px;
        padding: 15px 20px;
        display: block;
        width: 100%;
        text-align: left;
    }

    /* Dropdown Mobile */
    .nav-item-dropdown {
        position: static;
        width: 100%;
        text-align: left;
    }
    
    .nav-item-dropdown .dropdown-menu {
        position: static;
        display: none; /* JS sẽ toggle */
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-top: none;
        padding-left: 0;
        background-color: #f8f9fa;
        width: 100%;
        max-height: none;
    }

    .nav-item-dropdown.active .dropdown-menu {
        display: block;
    }
    
    .nav-item-dropdown > a .fa-chevron-down {
        float: right;
        margin-top: 5px;
        margin-left: 0;
        transition: transform 0.3s;
    }
    
    .nav-item-dropdown.active > a .fa-chevron-down {
        transform: rotate(180deg);
    }
    
    main {
        padding-top: 110px;
    }
}

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

    .footer-column.about {
        grid-column: span 1;
        text-align: center;
        border-bottom: 1px solid #e0e0e0; 
        padding-bottom: 30px;
        margin-bottom: 10px;
    }

    .footer-social-icons {
        justify-content: center;
        margin-top: 15px;
    }

    .footer-column.links,
    .footer-column.contact {
        grid-column: span 1;
        text-align: left;
        padding: 0 15px; 
    }

    .footer-column-title {
        font-size: 18px;
        margin-bottom: 20px;
        border-left: 4px solid var(--primary-blue); 
        padding-left: 10px;
        display: block;
    }

    .footer-nav-menu li {
        margin-bottom: 0;
        border-bottom: 1px dashed #eee; 
    }

    .footer-nav-menu li:last-child {
        border-bottom: none;
    }

    .footer-nav-menu li a {
        display: block;
        padding: 12px 0;
        font-size: 16px;
    }

    .footer-contact-info li {
        display: flex;
        align-items: flex-start;
        justify-content: flex-start;
        text-align: left;
        margin-bottom: 15px;
        padding-bottom: 15px;
        border-bottom: 1px solid #f0f0f0;
    }

    .footer-contact-info li:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }

    .footer-contact-info li i {
        margin-top: 3px; 
        min-width: 25px; 
        margin-right: 10px;
    }
    
    /* Copyright */
    .footer-bottom {
        padding: 15px 10px;
        font-size: 13px;
    }
}


@media (max-width: 576px) {
    .content-section {
        padding: 60px 0;
    }
    
    .main-headline {
        font-size: 32px;
    }

    .section-title {
        font-size: 28px;
    }

    .service-card {
        padding: 30px;
    }

    .top-header .contact-details {
        font-size: 12px;
    }

    .floating-contact-buttons {
        bottom: 20px;
        right: 20px;
    }

    .fab-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .fab-icon.zalo {
        width: 55px;
        height: 55px;
    }

    .news-section-header {
        gap: 10px; 
        padding: 0 10px; 
    }

    .header-line {
        width: auto; 
        flex: 1;    
        height: 2px;
    }

    .news-title {
        font-size: 24px; 
        white-space: nowrap;
    }
}


.fab-icon.zalo {
    cursor: pointer;
}

.zalo-popup-overlay {
    position: fixed;
    top: 0; /* Đổi từ 80px thành 0 để phủ toàn màn hình */
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 2000; /* Phải cao hơn header (1000) */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.zalo-popup-overlay.show {
    visibility: visible;
    opacity: 1;
}

.zalo-popup-content {
    width: 100%;
    max-width: 400px; 
    background-color: var(--white-color);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.zalo-popup-overlay.show .zalo-popup-content {
    transform: scale(1);
}

.zalo-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background-color: var(--primary-blue);
    color: var(--white-color);
}

.zalo-popup-header span {
    font-weight: 700;
}

.zalo-popup-close {
    background: none;
    border: none;
    color: var(--white-color);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.8;
    padding: 0;
}
.zalo-popup-close:hover {
    opacity: 1;
}

.zalo-staff-list {
    list-style: none;
    margin: 0;
    padding: 10px;
    max-height: 60vh;
    overflow-y: auto;
}

.zalo-staff-item {
    display: flex;
    align-items: center;
    padding: 12px 10px;
    text-decoration: none;
    color: var(--text-dark);
    border-radius: 8px;
    transition: background-color 0.2s;
}

.zalo-staff-item:hover {
    background-color: var(--background-light);
}

.zalo-staff-item img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    margin-right: 12px;
    object-fit: cover;
    border: 1px solid var(--border-color);
}

.zalo-staff-item span {
    font-size: 15px;
    font-weight: 500;
}

main {
    padding-top: 125px;
}

/* --- LOGO CSS MỚI --- */
.brand-logo {
    display: flex;
    align-items: center;
    text-decoration: none; /* Bỏ gạch chân */
    height: 100%; /* Căn giữa theo chiều dọc của header */
}

.logo-wrapper {
    position: relative; 
    display: inline-flex;
    gap: 3px;
    font-size: 2.2rem; /* Kích thước chữ logo */
    font-weight: 900;
    line-height: 1;
    padding: 10px 0; /* Tạo khoảng thở */
}

.logo-exim {
    color: #f8b94d;
    display: contents;
}

.logo-log {
    color: var(--text-dark); /* Dùng màu #212529 có sẵn trong root để hiện trên nền trắng */
    display: contents;
}

/* Định dạng ngôi sao */
.sparkle {
    position: absolute;
    top: -5px;        /* Vị trí dọc: trên đầu chữ */
    left: 27%;        /* Vị trí ngang: canh vào chữ I của EXIM */
    color: #f8b94d;   /* Màu ngôi sao (cùng màu EXIM) */
    font-size: 1rem;  /* Kích thước sao nhỏ hơn chữ */
    opacity: 0;       
    z-index: 10;      
    filter: drop-shadow(0 0 3px rgba(248, 185, 77, 0.8)); /* Phát sáng */
    animation: twinkle 3s infinite ease-in-out; 
    pointer-events: none; /* Không che mất chữ khi click */
}

/* Animation Lóe sáng */
@keyframes twinkle {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 0;
    }
    20% {
        transform: scale(1.3) rotate(45deg);
        opacity: 1;
    }
    40% {
        transform: scale(0) rotate(90deg);
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

/* --- FIX LỖI CĂN GIỮA & RESPONSIVE LOGO --- */

/* 1. Căn giữa chiều dọc cho toàn bộ nội dung trong menu */
.main-navigation .container {
    height: 100%; /* Bắt buộc container cao bằng menu (80px) */
}

/* 2. Điều chỉnh kích thước Logo trên Tablet (Màn hình < 992px) */
@media (max-width: 992px) {
    .logo-wrapper {
        font-size: 1.8rem; /* Giảm từ 2.2rem xuống 1.8rem */
    }
    
    .sparkle {
        top: -4px; /* Chỉnh lại vị trí ngôi sao chút cho khớp */
    }
}

/* 3. Điều chỉnh kích thước Logo trên Mobile (Màn hình < 576px) */
@media (max-width: 576px) {
    .logo-wrapper {
        font-size: 1.4rem; /* Giảm nhỏ nữa cho vừa màn hình điện thoại */
        gap: 2px;          /* Thu hẹp khoảng cách các chữ cái */
    }

    .sparkle {
        top: -3px;         
        left: 25%;         /* Căn lại ngôi sao */
        font-size: 0.8rem; /* Giảm size ngôi sao */
    }

    /* Đảm bảo nút toggle menu và logo không bị dính sát lề */
    .brand-logo {
        margin-left: 0;
    }
}