/* ===== Global Setup & Presets ===== */
:root {
    --primary-color: #1B4C93;
    --accent-color: #F7941D;
    --text-color: #333333;
    --bg-gray: #F5F5F5;
    --footer-bg: #0E2A4E;
    --white: #FFFFFF;
    --font-main: 'Montserrat', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.gray-bg {
    background-color: var(--bg-gray);
}

.text-center {
    text-align: center;
}

.mt-30 {
    margin-top: 30px;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-main);
    font-weight: 700;
}

.section-title h2 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 40px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

/* Section specific styling for titles if needed */
.section-title h2::after {
    /* Optional underline or decors */
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    margin: 15px auto 0;
}

/* ===== Buttons ===== */
.btn-primary {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(247, 148, 29, 0.4);
}
.btn-primary:hover {
    background-color: #e08316;
    transform: translateY(-2px);
}

.btn-outline {
    display: inline-block;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
}
.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid #eee;
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    padding: 5px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    transition: height 0.3s;
}

.header.scrolled .header-container {
    height: 60px;
}

.logo a {
    display: flex;
    align-items: center;
    height: 100%;
}
.logo img {
    height: 75px;
    object-fit: contain;
    transition: var(--transition);
}
.header.scrolled .logo img {
    height: 60px;
}

.main-nav ul {
    display: flex;
    gap: 25px;
}

.main-nav a {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
}
.main-nav a:hover {
    color: var(--accent-color);
}
.has-dropdown {
    position: relative;
}
.has-dropdown i {
    font-size: 10px;
    margin-left: 3px;
    transition: transform 0.3s;
}
.has-dropdown:hover i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 260px;
    background: white;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    padding: 15px 0;
    z-index: 999;
    border-top: 3px solid var(--primary-color);
    border-radius: 0 0 5px 5px;
}
.has-dropdown:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-menu li {
    position: relative;
    width: 100%;
}
.dropdown-menu .dropdown-submenu {
    top: 0;
    left: 100%;
    margin-top: -3px; /* Align border top */
    border-radius: 0 5px 5px 5px;
    transform: translateX(-15px);
}
.has-dropdown.sub-dropdown:hover > i {
    transform: rotate(0deg); /* prevent arrow rotating down */
}
.has-dropdown.sub-dropdown:hover > .dropdown-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}
.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: none;
    color: #444;
    transition: var(--transition);
}
.dropdown-menu a:hover {
    background: rgba(27, 76, 147, 0.05);
    color: var(--primary-color);
    padding-left: 25px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-icon {
    position: relative;
    color: var(--primary-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
}
.cart-icon i {
    font-size: 18px;
    margin-bottom: 3px;
}
.cart-badge {
    position: absolute;
    top: -5px;
    right: 15px;
    background: var(--accent-color);
    color: white;
    font-size: 10px;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
}

.mobile-menu-toggle {
    display: none;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
}

/* ===== Hero Slider ===== */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    margin-top: 80px; /* offset for sticky header */
}

.hero-slider {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.slide {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 0;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

/* 3 Tabs overlap */
.hero-tabs {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    transform: translateY(50%);
    z-index: 10;
}
.hero-tabs .flex-center {
    display: flex;
    justify-content: center;
    gap: 20px;
}
.tab-item {
    background: var(--white);
    padding: 20px 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 180px;
    border-top: 4px solid transparent;
}
.tab-item:hover {
    border-top-color: var(--accent-color);
    transform: translateY(-5px);
}
.tab-item .icon {
    font-size: 30px;
    color: var(--primary-color);
}
.tab-item p {
    font-weight: 700;
    color: var(--primary-color);
}

/* ===== About Section ===== */
.about {
    margin-top: 60px;
}

.about-quote {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 40px;
}
.quote-icon {
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 80px;
    color: rgba(27, 76, 147, 0.1); /* light primary blue */
    line-height: 1;
}
.about-content p {
    margin-bottom: 20px;
    font-size: 16px;
    color: #555;
}

.stats-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 50px;
}
.stat-item {
    text-align: center;
    max-width: 150px;
}
.stat-icon {
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 15px;
    box-shadow: 0 5px 20px rgba(27,76,147,0.3);
    transition: var(--transition);
}
.stat-item:hover .stat-icon {
    background-color: var(--accent-color);
    transform: scale(1.1);
}
.stat-item p {
    font-size: 13px;
    font-weight: 600;
    color: #444;
}

/* ===== Product Grid ===== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: var(--transition);
}
.product-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transform: translateY(-10px);
}
.product-img {
    width: 100%;
    height: 220px;
    overflow: hidden;
}
.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.product-card:hover .product-img img {
    transform: scale(1.05);
}
.product-info {
    padding: 25px;
    text-align: center;
}
.product-info h3 {
    font-size: 16px;
    color: var(--primary-color);
    margin-bottom: 20px;
    min-height: 48px;
}

/* ===== Strategy Section ===== */
.strategy-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.strategy-item {
    text-align: center;
    padding: 30px;
    border: 1px solid #eaeaea;
    border-radius: 10px;
    transition: var(--transition);
}
.strategy-item:hover {
    border-color: var(--accent-color);
    box-shadow: 0 5px 20px rgba(247,148,29,0.1);
}
.strategy-icon {
    font-size: 50px;
    color: var(--primary-color);
    margin-bottom: 15px;
}
.strategy-item h4 {
    font-size: 15px;
    color: #333;
}

/* ===== Events Section ===== */
.events-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}
.event-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 350px;
}
.event-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.event-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 20px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
}
.event-overlay h4 {
    font-size: 20px;
    text-transform: uppercase;
}

/* ===== News Section ===== */
.news-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
}
.news-main .news-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
}
.news-main img {
    width: 100%;
    height: 450px;
    object-fit: cover;
}
.news-content {
    background: var(--white);
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin: -50px 20px 0;
    position: relative;
    border-radius: 8px;
}
.news-content h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 10px;
}
.news-date {
    font-size: 13px;
    color: #888;
    margin-bottom: 15px;
}
.news-desc {
    color: #555;
}

/* Sidebar News */
.news-list-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}
.news-list-item img {
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
}
.news-list-content h4 {
    font-size: 15px;
    color: #333;
    line-height: 1.4;
    margin-bottom: 5px;
}
.news-list-content h4:hover {
    color: var(--accent-color);
}

/* ===== Footer ===== */
.footer {
    background-color: var(--footer-bg);
    color: #ccc;
    padding-top: 60px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo {
    margin-bottom: 20px;
}
.footer-logo img {
    height: 100px;
    object-fit: contain;
}
.col-about p {
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.8;
}
.footer-col h3 {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 20px;
    text-transform: uppercase;
}
.footer-col ul li {
    margin-bottom: 12px;
}
.footer-col ul a {
    font-size: 14px;
}
.footer-col ul a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}
.social-links {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}
.social-links a {
    width: 35px;
    height: 35px;
    background-color: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
}
.social-links a:hover {
    background-color: var(--accent-color);
}
.fb-page-placeholder {
    width: 100%;
    height: 150px;
    background-color: #2c4974;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #fff;
}
.footer-bottom {
    padding: 20px 0;
    font-size: 13px;
    background-color: #0b1f3c;
}

/* ===== Floating Tools ===== */
.floating-tools {
    position: fixed;
    right: 20px;
    bottom: 100px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 999;
}
.tool-item {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    animation: tool-bounce 2s infinite ease-in-out;
}
.tool-item.zalo {
    background-color: #fff;
    padding: 10px;
}
.tool-item.zalo img {
    width: 100%;
}
.tool-item.phone {
    background-color: #E63946;
}
.tool-item.fb {
    background-color: #0084FF;
}
@keyframes tool-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* ===== Responsive Design ===== */
@media (max-width: 992px) {
    .main-nav, .cart-text {
        display: none;
    }
    .mobile-menu-toggle {
        display: block;
    }
    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        border-top: none;
        padding-left: 15px;
        padding-top: 5px;
        padding-bottom: 5px;
        display: none;
        transform: none !important;
    }
    .has-dropdown:hover .dropdown-menu {
        display: flex;
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .strategy-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .news-layout {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .product-grid, .strategy-grid, .events-grid {
        grid-template-columns: 1fr;
    }
    .stats-row {
        gap: 20px;
    }
    .hero-tabs .flex-center {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    .hero-tabs {
        position: relative;
        transform: none;
        margin-top: -30px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Core Mobile Overrides for Inlined Styles */
@media (max-width: 768px) {
    .slide h2, .hero-slider h2, .page-banner h1 {
        font-size: 26px !important;
        line-height: 1.3 !important;
        margin-bottom: 10px !important;
    }
    .slide p, .hero-slider p, .page-banner p {
        font-size: 15px !important;
        margin-bottom: 20px !important;
    }
    .slide ul li, .hero-slider ul li {
        font-size: 14px !important;
        margin-bottom: 10px !important;
    }
    .slide .btn-primary, .page-banner .btn-primary {
        font-size: 13px !important;
        padding: 10px 20px !important;
        display: inline-block !important;
    }
    .section-title h2 {
        font-size: 24px !important;
    }
    .slide {
        background-position: center !important;
    }
}
