﻿/* Responsive */
@media (max-width: 768px) {
    .cta-button {
        font-size: 1.0rem;
    }
    .hero-cta {
        gap: 0.5rem;
    }
    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .banner h1 {
        font-size: 2rem;
    }

    .banner p {
        font-size: 1rem;
    }

    .about-content {
        grid-template-columns: 1fr !important;
    }

    .product-categories {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }
    .product-card {
        width: 100%;
    }
    .product-items a {
        min-width: 100%;
        margin-right: 22px;
    }
    .product-items {
        padding: 20px 0.5rem;
        width: auto;
    }
    .project-info p{
        height:auto !important;
    }
    .partners .slick-wrapper {
        width: 100% !important;
    }
}
/* Responsive */
@media (max-width: 1024px) {
    .mega-menu {
        width: 600px;
    }

    .mega-menu-content {
        grid-template-columns: 1fr;
    }

    .mega-menu-image {
        display: none;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
    .product-card {
        width: 100%;
    }
    .product-items a {
        min-width: 100%;
        margin-right: 22px;
    }
    .product-items {
        padding: 20px 0.5rem;
        width: auto;
    }
    .cta-button {
        font-size: 1.0rem;
    }
    .hero-cta {
        gap: 0.5rem;
    }
    .project-info p {
        height: auto !important;
    }
    .partners .slick-wrapper {
        width: 100% !important;
    }
}
@media (max-width: 768px) {
    .cta-button {
        font-size: 1.0rem;
        gap: 0.5rem;
    }
    .nav-menu {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-actions {
        gap: 1rem;
    }

    .header-cta {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }

    .hero-tagline {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-cta {
        flex-direction: row;
        align-items: center;
        gap: 0.35rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .intro-grid,
    .products-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    nav {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-title {
        font-size: 2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .about-visual {
        height: 400px;
    }

    .visual-card {
        position: relative !important;
        width: 100% !important;
        margin-bottom: 1rem;
    }

    .main-card,
    .secondary-card,
    .accent-card {
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
    }

    .floating-elements {
        display: none;
    }

    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .prev-arrow {
        left: 1rem;
    }

    .next-arrow {
        right: 1rem;
    }

    .slider-nav {
        bottom: 1rem;
    }

    .slide-badge {
        font-size: 0.8rem;
        padding: 0.4rem 1.2rem;
    }

    .hero-nav-menu {
        flex-direction: column;
        gap: 1.5rem;
        margin-top: 14rem;
        left: 17%;
        position:unset;
    }

    .hero-nav-link {
        padding: 1rem 1.5rem;
        min-width: 100px;
    }

    .nav-icon {
        font-size: 2rem;
    }

    .nav-text {
        font-size: 0.9rem;
    }

    .hero-dropdown {
        min-width: 280px;
        left: 0;
        transform: translateX(0) translateY(-20px);
    }

    .hero-nav-item:hover .hero-dropdown {
        transform: translateX(0) translateY(0);
    }

    .dropdown-content {
        padding: 1rem;
    }
    .product-card {
        width: 100%;
    }
    .product-items a {
        min-width: 100%;
        margin-right: 22px;
    }
    .product-items {
        padding: 20px 0.5rem;
        width:auto;
    }
    .project-info p {
        height: auto !important;
    }
    .partners .slick-wrapper {
        width: 100% !important;
    }
}
/**Responsive Hamburger**/
.dropdown-submenu {
    position: relative;
}

    .dropdown-submenu .dropdown-menu-sub {
        top: 0;
        left: 102%;
        margin-top: -20px;
    }

.dropdown-menu-sub {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 0.25rem;
    min-width: 160px;
    z-index: 1000;
    padding-left: 0px;
}

    .dropdown-menu-sub li {
        list-style: none;
    }

.dropdown-submenu:hover > .dropdown-menu-sub {
    display: block;
}

.caret {
    display: inline-block;
    margin-left: .255em;
    vertical-align: 0.0855em;
    content: "";
    border-top: .3em solid;
    border-right: .3em solid transparent;
    border-bottom: 0;
    border-left: .3em solid transparent;
    -webkit-transform: rotate(-90deg);
}

@media (min-width: 992px) {
    .navbar-expand-lg .navbar-nav .dropdown-menu-sub {
        position: absolute;
    }
}

.dropdown-menu a:hover {
    background-color: #f8f9fa;
}

.language-dropdown {
    min-width: 150px;
    max-width: 90vw; /* giới hạn chiều rộng theo màn hình */
    right: calc(100vh - 716px);
    left: auto;
    transform: translateX(0); /* không bị lệch */
}

/* Căn dropdown sát phải, đổ bóng, bo góc */
.language-dropdown {
    min-width: 160px;
    padding: 0.5rem 0;
    border-radius: 4px;
    border: 1px solid #ddd;
    width: 10%;
}

    /* Hiển thị từng dòng rõ ràng */
    .language-dropdown .dropdown-item {
        padding: 6px 16px;
        font-size: 14px;
    }

        /* Hover hiệu ứng */
        .language-dropdown .dropdown-item:hover {
            background-color: #f5f5f5;
        }
/**/
.sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    z-index: 1002;
    transition: right 0.3s ease;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(15px);
}

    .sidebar.open {
        right: 0;
    }

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-btn {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
}

    .sidebar-menu li {
        padding: 10px 0;
        border-bottom: 1px solid #eee;
        margin-left: 1rem;
    }

.submenu {
    padding-left: 15px;
    font-size: 0.9em;
}

.social-icons i {
    margin-right: 10px;
    font-size: 18px;
}
/* Overlay phủ nền */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
}

    .menu-overlay.show {
        display: block;
    }

.sidebar-menu .submenu {
    padding-left: 1rem;
}

    .sidebar-menu .submenu li {
        margin-top: 5px;
    }

.nav-link {
    color: var(--dark);
}

    .nav-link:active, .nav-link:hover {
        color: #f24c4c;
    }

.no-marker li {
    list-style: none;
    padding-left: 0; /* tránh bị thụt vào */
}

@media (max-width: 992px) {
    .hero {
        height: calc(80vh - 50px);
    }
    .project-info h3 {
        min-height: 50% !important;
        margin-top: 8px;
    }
    .partners .slick-wrapper {
        width: 100% !important;
    }
}

@media (max-width: 768px) {
    .hero {
        height: calc(80vh - 50px);
    }
    .project-info h3 {
        min-height: 50% !important;
        margin-top: 8px;
    }
    .partners .slick-wrapper {
        width: 100% !important;
    }
}

@media (max-width: 576px) {
    .hero {
        height: calc(80vh - 50px);
    }
    .project-info h3 {
        min-height: 50% !important;
        margin-top: 8px;
    }
    .partners .slick-wrapper {
        width: 100% !important;
    }
}
