﻿/* =============================== GLOBAL STYLE =============================== */
html, body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    box-sizing: border-box;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* =============================== HEADER =============================== */
#header {
    width: 100%;
    background-color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2%;
    height: 60px;
}

.logo-left {
    flex: 0 0 30%;
    max-width: 30%;
    white-space: nowrap;
}

.erp-logo {
    font-size: 36px;
    font-weight: bold;
}

    .erp-logo .sun {
        color: #d32f2f;
    }

    .erp-logo .net {
        color: #2196f3;
    }

    .erp-logo .one {
        color: #888;
    }

    .erp-logo .erp {
        color: #0d47a1;
    }

.menu-right {
    flex: 0 0 68%;
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    white-space: nowrap;
}

    .menu-right a.menu-item {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 4px 6px;
        border-radius: 4px;
        font-weight: 600;
        color: #0c4a6e;
        transition: all 0.25s ease;
    }

        .menu-right a.menu-item:hover {
            background-color: rgba(0,0,0,0.05);
            transform: scale(1.05);
        }

    .menu-right .menu-icon {
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .menu-right .hamburger {
        width: 25px;
        height: 20px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        cursor: pointer;
    }

        .menu-right .hamburger div {
            width: 100%;
            height: 3px;
            background-color: #0c4a6e;
            border-radius: 2px;
            transition: all 0.3s ease;
        }

.lang-mini {
    margin-left: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #0c4a6e;
    letter-spacing: 0.3px;
    user-select: none;
}

/* =============================== MAIN WRAPPER =============================== */
#main {
    padding-top: 70px;
}

/* =============================== ERP INTRO =============================== */
.erp-intro {
    width: 100%;
    padding: 20px;
    text-align: center;
    background-color: #f8fafc;
    margin: 0 auto 15px auto;
    box-sizing: border-box;
    overflow-x: hidden;
}

.erp-intro-container {
    max-width: 1200px;
    margin: 0 auto;
}

.erp-intro h1 {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 16px;
    white-space: normal;
}

    .erp-intro h1 .sun {
        color: #d32f2f;
    }

    .erp-intro h1 .net {
        color: #2196f3;
    }

.erp-intro p {
    font-size: 16px;
    line-height: 1.6;
    color: #0c4a6e;
}

/* =============================== CHATBOT INTRO =============================== */
.chatbot-intro {
    margin: 1.2rem 2% 0.8rem 2%;
    font-size: 1.2rem;
    font-weight: 500;
    color: #0077b6;
    text-align: center;
    padding: 10px;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* =============================== KHUNG CHATGPT 2 CỘT =============================== */
.chatgpt-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    width: 96%;
    margin: 10px auto 20px auto;
    gap: 2%;
    box-sizing: border-box;
    height: 70vh;
}

.chatgpt-left {
    flex: 3;
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    overflow-y: auto;
    overflow-x: hidden;
    height: 100%;
    box-sizing: border-box;
    text-align: center;
    font-weight: 600;
    color: #0c4a6e;
}

.chatgpt-right {
    flex: 1.2;
    background-color: #ffffff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    overflow-y: auto;
    height: 100%;
    box-sizing: border-box;
    color: #b45309;
}

/* =============================== KHUNG CHATGPT ĐƠN 1 CỘT =============================== */
.chatgpt-single {
    width: 96%;
    margin: 20px auto;
    box-sizing: border-box;
    overflow-x: hidden;
}

.chatgpt-box {
    background-color: #e0f2fe;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    font-weight: 600;
    color: #0c4a6e;
    height: 70vh;
    box-sizing: border-box;
}

@media (max-width:768px) {
    .chatgpt-box {
        height: auto;
        padding: 16px;
    }
}

/* =============================== FOOTER =============================== */
#footer {
    padding: 15px 0;
    background-color: #f0f4f8;
    height: 200px;
}

.footer-container {
    width: 96%;
    margin: 0 auto;
}

.footer-info {
    display: flex;
    gap: 40px;
    margin-bottom: 12px;
}

.footer-block {
    text-align: left;
    min-width: 180px;
}

    .footer-block a {
        font-weight: 600;
        color: #0369a1;
    }

        .footer-block a:hover {
            text-decoration: underline;
        }

.footer-copy-left {
    font-size: 13px;
    color: #555;
}

/* =============================== RESPONSIVE =============================== */
@media (max-width:1024px) {
    .erp-overview-wrapper {
        flex-direction: column;
    }
}

@media (max-width:768px) {
    .erp-logo {
        font-size: 30px;
    }

    .header-container {
        flex-direction: column;
        align-items: center;
        height: auto;
        padding: 10px 0;
    }

    .menu-right {
        justify-content: center;
        margin-top: 5px;
    }

    .chatgpt-wrapper {
        flex-direction: column;
        gap: 12px;
        height: auto;
        width: 94%;
    }

    .chatgpt-left, .chatgpt-right {
        flex: 1 1 auto;
        height: auto;
    }

    .chatbot-intro {
        font-size: 16px;
    }

    body {
        overflow-x: hidden;
    }
}

@media (max-width:480px) {
    .header-container, .footer-container {
        width: 100%;
        margin: 0;
        padding: 0 5px;
    }

    .erp-logo {
        font-size: 26px;
    }

    .footer-info {
        flex-direction: column;
        gap: 12px;
    }

    .chatbot-intro {
        font-size: 14px;
    }
}

/* =============================== PRODUCT PAGE =============================== */
.product-container {
    width: 96%;
    margin: 0 2%;
    font-family: 'Segoe UI', Arial, sans-serif;
    box-sizing: border-box;
    overflow-x: hidden;
}

.product-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.items_quydinhs {
    width: calc(50% - 16px);
    border-bottom: 1px solid #e0e0e0;
    padding: 16px 20px;
    box-sizing: border-box;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .items_quydinhs:hover {
        transform: translateY(-2px);
        box-shadow: 0 2px 6px rgba(0,0,0,0.08);
        background: #fafafa;
    }

.content_shorts .titles {
    display: block;
    font-weight: 600;
    font-size: 18px;
    color: #0c4a6e;
    text-decoration: none;
    margin-bottom: 8px;
}

    .content_shorts .titles:hover {
        color: #0369a1;
        text-decoration: underline;
    }

.content_shorts .content-html {
    font-size: 14px;
    color: #034663;
    line-height: 1.6;
}

.items_quydinhs img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 8px 0;
    border-radius: 4px;
    object-fit: contain;
}

@media (max-width: 768px) {
    .items_quydinhs {
        width: 100%;
    }
}


/* =============================== MOBILE HEADER 1 DONG =============================== */
@media (max-width: 768px) {
    body.mobile #header .header-container {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        height: 60px !important;
        padding: 0 2% !important;
    }

    body.mobile #header .logo-left {
        flex: 0 0 auto !important;
        max-width: none !important;
    }

    body.mobile .menu-right {
        flex: 0 0 auto !important;
        display: flex !important;
        justify-content: flex-end !important;
        gap: 0 !important;
        align-items: center !important;
        position: relative;
        right: 2%;
    }

        /* Chỉ hiển thị hamburger + EN|VN */
        body.mobile .menu-right a.menu-item {
            display: none !important;
        }

        body.mobile .menu-right .hamburger {
            display: flex !important;
            cursor: pointer;
        }

        body.mobile .menu-right .lang-mini {
            margin-left: 6px !important;
            font-size: 13px !important;
            font-weight: 600 !important;
            color: #0c4a6e !important;
        }
}

/* =============================== HAMBURGER 3 MÀU =============================== */
.menu-right .hamburger div:nth-child(1) {
    background-color: #d32f2f; /* đỏ */
}

.menu-right .hamburger div:nth-child(2) {
    background-color: #000000; /* đen */
}

.menu-right .hamburger div:nth-child(3) {
    background-color: #2196f3; /* xanh */
}

