/* General Body & Reset */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

a {
    text-decoration: none;
    color: #007bff;
}

a:hover {
    color: #0056b3;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

h1, h2, h3 {
    color: #0a4c8a;
    text-align: center;
    margin-bottom: 20px;
}

h2 {
    font-size: 2.5em;
    padding-bottom: 10px;
    position: relative;
    margin-top: 40px;
}

h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #007bff;
}

/* Header */
.main-header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.top-bar {
    background-color: #0a4c8a;
    color: #fff;
    padding: 10px 0;
    font-size: 0.9em;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.top-bar .contact-info span {
    margin-right: 20px;
}

.top-bar .contact-info i {
    margin-right: 5px;
}

.top-bar .social-links a {
    color: #fff;
    margin-left: 15px;
    font-size: 1.1em;
}

.main-nav-area .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo img {
    height: 70px; /* Adjust as needed */
    width: auto;
}

.main-nav ul {
    display: flex;
}

.main-nav ul li {
    position: relative;
    margin-left: 30px;
}

.main-nav ul li a {
    color: #333;
    font-weight: bold;
    padding: 10px 0;
    display: block;
}

.main-nav ul li a:hover {
    color: #007bff;
}

.main-nav ul li.has-submenu > a i {
    margin-left: 5px;
    font-size: 0.8em;
}

.submenu {
    display: none;
    position: absolute;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    min-width: 200px;
    z-index: 10;
    top: 100%; /* Dưới li cha */
    left: 0;
    border-top: 3px solid #007bff;
}

.main-nav ul li.has-submenu:hover .submenu {
    display: block;
}

.submenu li {
    margin: 0;
    border-bottom: 1px solid #eee;
}

.submenu li:last-child {
    border-bottom: none;
}

.submenu li a {
    padding: 10px 15px;
    color: #555;
    white-space: nowrap;
}

.submenu li a:hover {
    background-color: #f4f4f4;
    color: #007bff;
}

.search-bar {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.search-bar input {
    border: none;
    padding: 8px 10px;
    outline: none;
    flex-grow: 1;
}

.search-bar button {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
}

.search-bar button:hover {
    background-color: #0056b3;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    width: 100%;
    height: 450px; /* Adjust as needed */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    margin-bottom: 40px;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: brightness(0.7); /* Làm mờ ảnh để chữ nổi bật hơn */
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.4); /* Nền mờ cho nội dung */
    border-radius: 8px;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3.5em;
    margin-bottom: 15px;
    color: #fff;
}

.hero-content p {
    font-size: 1.3em;
    margin-bottom: 30px;
}

.btn-primary {
    background-color: #007bff;
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #0056b3;
}

/* About Us Section */
.about-us-summary {
    background-color: #fff;
    padding: 40px 0;
    margin-bottom: 40px;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.about-content .text-content {
    flex: 2;
    padding-right: 20px;
    text-align: justify;
}

.about-content .text-content p {
    margin-bottom: 15px;
}

.about-content .image-content {
    flex: 1;
    text-align: center;
}

.about-content .image-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.btn-secondary {
    background-color: #0a4c8a;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    display: inline-block;
    margin-top: 15px;
    transition: background-color 0.3s ease;
}

.btn-secondary:hover {
    background-color: #073a6b;
}

/* Featured Products */
.featured-products, .latest-news {
    background-color: #fff;
    padding: 40px 0;
    margin-bottom: 40px;
}

.product-grid, .news-grid, .reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-item, .news-item, .reason-item {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.product-item:hover, .news-item:hover, .reason-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-item img, .news-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.product-item h3, .news-item h3 {
    font-size: 1.4em;
    margin: 15px 10px 10px;
    color: #0a4c8a;
}

.product-item p, .news-item p {
    font-size: 0.95em;
    padding: 0 15px 15px;
    color: #666;
}

.btn-tertiary {
    background-color: #ff9900;
    color: #fff;
    padding: 8px 15px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 15px;
    transition: background-color 0.3s ease;
}

.btn-tertiary:hover {
    background-color: #cc7a00;
}

.news-item .date {
    font-size: 0.85em;
    color: #999;
    margin-top: -5px;
    margin-bottom: 10px;
    display: block;
}

.news-item .date i {
    margin-right: 5px;
}

.news-item .read-more {
    display: inline-block;
    color: #007bff;
    font-weight: bold;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.news-item .read-more i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.news-item .read-more:hover {
    color: #0056b3;
}

.news-item .read-more:hover i {
    transform: translateX(5px);
}

/* Why Choose Us */
.why-choose-us {
    background-color: #f0f8ff; /* Light blue background */
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
}

.reason-item {
    padding: 25px;
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.reason-item .icon-large {
    font-size: 3em;
    color: #0a4c8a;
    margin-bottom: 15px;
}

.reason-item h3 {
    font-size: 1.6em;
    margin-top: 0;
    color: #0a4c8a;
}

.reason-item p {
    font-size: 0.95em;
    color: #555;
}

/* Footer */
.main-footer {
    background-color: #222;
    color: #eee;
    padding: 40px 0 20px;
    font-size: 0.9em;
}

.footer-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h3 {
    color: #fff;
    font-size: 1.3em;
    margin-bottom: 20px;
    text-align: left; /* Override default h3 center */
}

.footer-col p {
    margin-bottom: 10px;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: #ccc;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: #007bff;
}

.footer-col.map iframe {
    border-radius: 8px;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Cho phép xuống dòng trên màn hình nhỏ */
}

.footer-bottom p {
    margin: 0;
}

.payment-methods img {
    height: 30px;
    margin-left: 10px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .main-nav ul li {
        margin-left: 20px;
    }
    .hero-content h1 {
        font-size: 2.8em;
    }
    .hero-content p {
        font-size: 1.1em;
    }
}

@media (max-width: 768px) {
    .top-bar .container {
        flex-direction: column;
        text-align: center;
    }
    .top-bar .contact-info span {
        margin-right: 0;
        margin-bottom: 5px;
        display: block;
    }
    .top-bar .social-links {
        margin-top: 10px;
    }

    .main-nav-area .container {
        flex-direction: column;
        align-items: flex-start;
    }
    .logo {
        margin-bottom: 15px;
    }
    .main-nav ul {
        flex-direction: column;
        width: 100%;
        text-align: left;
    }
    .main-nav ul li {
        margin-left: 0;
        border-bottom: 1px solid #eee;
        width: 100%;
    }
    .main-nav ul li:last-child {
        border-bottom: none;
    }
    .main-nav ul li a {
        padding: 12px 0;
    }
    .main-nav ul li.has-submenu .submenu {
        position: static; /* Biến submenu thành block bình thường */
        box-shadow: none;
        border-top: none;
        background-color: #f9f9f9;
        padding-left: 20px;
    }
    .main-nav ul li.has-submenu:hover .submenu {
        display: block;
    }
    .search-bar {
        width: 100%;
        margin-top: 15px;
    }

    .hero-slider {
        height: 350px;
    }
    .hero-content h1 {
        font-size: 2.2em;
    }
    .hero-content p {
        font-size: 1em;
    }

    .about-content {
        flex-direction: column;
    }
    .about-content .text-content, .about-content .image-content {
        padding-right: 0;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .payment-methods {
        margin-top: 15px;
    }
}

@media (max-width: 480px) {
    h2 {
        font-size: 2em;
    }
    .hero-slider {
        height: 250px;
    }
    .hero-content h1 {
        font-size: 1.8em;
    }
    .hero-content p {
        font-size: 0.9em;
    }
    .btn-primary, .btn-secondary, .btn-tertiary {
        padding: 10px 20px;
    }
    .product-grid, .news-grid, .reasons-grid {
        grid-template-columns: 1fr; /* Stack items vertically */
    }
}