﻿html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

fieldset.disabled {
    opacity: 0.6
}

/*Overite Boostrap*/
/*mark 29/01/2026 begin*/
/*.container {
    max-width: 1440px !important;
}*/
/*mark 29/01/2026 end*/
/*ADD 30/01/2026 begin*/
.container {
    max-width: 100vw !important;
}
/*mark 30/01/2026 end*/
.map-frame {
    width: 100%;
    border: 0;
    border-radius: 20px;
}

.contact iframe {
    height: 350px;
}

@media (min-width: 992px) {
    .contact iframe {
        height: 600px;
    }
}
.btn-primary {
    background-color: var(--blue-default);
    border-color: var(--blue-default);
}

    .btn-primary:hover {
        background-color: #38B6FF;
        border-color: #38B6FF;
    }

.btn-warning {
    background-color: var(--organe-default);
    border-color: var(--organe-default);
}

.btn-light {
    background: white;
    border: 1px solid #D1D5DB;
}

.form-control:focus {
    outline: none;
    box-shadow: none;
    border-color: #d1d6dc
}

/* Badge styles */
.badge.bg-success {
    padding: 6px 12px;
    background: #DCFCE7 !important;
    color: #166534;
    font-weight: 500;
    font-size: 13px;
}

.badge.bg-warning {
    padding: 6px 12px;
    background: #FEF3C7 !important;
    color: #92400E;
    font-weight: 500;
    font-size: 13px;
}

.badge.bg-primary {
    padding: 6px 12px;
    background: #DBEAFE !important;
    color: #1E40AF;
    font-weight: 500;
    font-size: 13px;
}

.badge.bg-danger {
    padding: 6px 12px;
    background: #FEE2E2 !important;
    color: #991B1B;
    font-weight: 500;
    font-size: 13px;
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236c757d'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2316A34A'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button:focus {
    box-shadow: none;
}
/*Custom class*/
.cursor-pointer {
    cursor: pointer
}

.bg-green {
    background-color: var(--green-default)
}

.border-custom {
    border-color: var(--border-color)
}

.center-v-h {
    display: flex;
    align-items: center;
    justify-content: center;
}

.fadein-animation {
    animation-name: fadein;
    animation-duration: 2s;
    animation-timing-function: ease;
    animation-delay: 0s;
    animation-iteration-count: 1;
    animation-direction: normal;
    animation-fill-mode: none;
}

.fadein-top-right-animation {
    animation-name: fadein-top-right;
    animation-duration: 2s;
    animation-timing-function: ease;
    animation-delay: 0s;
    animation-iteration-count: 1;
    animation-direction: normal;
    animation-fill-mode: none;
}

.fadein-top-left-animation {
    animation-name: fadein-top-left;
    animation-duration: 2s;
    animation-timing-function: ease;
    animation-delay: 0s;
    animation-iteration-count: 1;
    animation-direction: normal;
    animation-fill-mode: none;
}

.fadein-right-animation {
    animation-name: fadein-right;
    animation-duration: 2s;
    animation-timing-function: ease;
    animation-delay: 0s;
    animation-iteration-count: 1;
    animation-direction: normal;
    animation-fill-mode: none;
}

.fadein-left-animation {
    animation-name: fadein-left;
    animation-duration: 2s;
    animation-timing-function: ease;
    animation-delay: 0s;
    animation-iteration-count: 1;
    animation-direction: normal;
    animation-fill-mode: none;
}

.fadeout-animation {
    animation-name: fadein;
    animation-duration: 1s;
    animation-timing-function: ease;
    animation-delay: 0s;
    animation-iteration-count: 1;
    animation-direction: normal;
    animation-fill-mode: none;
}

.typewriter-animation {
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    transform: translateY(-50%);
    animation: typewriter 5s steps(50) 1s 1 normal both, blinkingCursor 500ms steps(50) infinite normal;
}

.text-green {
    color: #4CAF50
}

.btn-success {
    background: var(--green-default);
    border: 0
}

.text-red {
    color: red !important;
}

.text-gray {
    color: #6B7280;
}
/*hanlde focus input*/
input[type="text"]:focus {
    outline: none !important;
    box-shadow: none !important;
    border-color: #ccc;
}

input[type="password"] {
    border-right: 0;
}

    input[type="password"]:focus {
        outline: none !important;
        box-shadow: none !important;
        border-color: #ccc;
    }

.password-input {
    border-right: 0;
    border-color: #ccc;
}

.togglePassword {
    cursor: pointer !important;
    background: inherit;
    text-align: center;
    border-left: 0;
    border: 1px solid #ccc;
    border-radius: 6px;
}

fieldset[disabled] .togglePassword {
    background-color: #e9ecef !important;
    pointer-events: none;
    cursor: not-allowed !important;
}

input:focus,
button:focus,
.btn:focus,
textarea:focus {
    outline: none !important;
}

img {
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-drag: none;
}
/*Handle copy and cursor*/
p, h1, h2, h3, h4, h5, h6, span, label, a {
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -moz-user-select: none;
    cursor: default;
}

/*Main css*/
/* Hide number input arrows */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

h1 {
    font-size: 48px;
    font-weight: 600
}

@media (max-width:768px) {
    h1 {
        font-size: 38px
    }
}

@media (max-width:576px) {
    h1 {
        font-size: 30px
    }
}
/*Header*/
.promotion-bar {
    width: 100%;
    height: 30px;
    font-size: 14px;
    /*    tran  sform: translateY(-100%);*/
    opacity: 1;
    /*    animation: slideDown 0.6s ease-out forwards;*/
    /*    animation-delay: 0.2s;*/
}

.navbar .nav-link {
    border-bottom: 0;
}

.header-function {
    width: fit-content
}

#btn-avartar {
    margin-left: 15px;
    cursor: pointer
}

@media (min-width: 992px) {
    .navbar .container-fluid {
        position: relative;
    }

    .navbar .nav-link {
        border-bottom: 1px
    }

    .navbar-brand-center {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        z-index: 2;
        pointer-events: auto;
    }

    .navbar-toggler,
    .header-function {
        z-index: 3;
    }
}

@media (max-width:575px) {
    .promotion-bar {
        font-size: 10px;
        white-space: nowrap
    }
}

@media (max-width:360px) {
    .promotion-bar {
        font-size: 8px;
        white-space: nowrap
    }
}

.header-function .icon {
    font-size: 24px;
    margin-left: 15px;
}

.header-function .form-search {
    display: none;
}

.cart {
    position: relative;
    width: fit-content;
    display: inline-block;
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -12px;
    background: red;
    color: white;
    font-size: 12px;
    font-weight: bold;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
/*Handle navar bar*/
.navbar {
    padding-bottom: 0px;
    box-shadow: 5px 10px 18px #d5d7d6;
}

.navbar-light .navbar-nav .nav-link {
    color: black;
    font-weight: bold;
    cursor: pointer;
    margin-left: 10px;
    border-bottom: 0px;
    margin-right: 10px;
    font-size:20px;
}

    .navbar-light .navbar-nav .nav-link .active {
        color: #4CAF50;
        font-weight: bold;
        cursor: pointer;
    }

    .navbar-light .navbar-nav .nav-link:hover {
        color: #4CAF50;
        text-decoration: underline
    }

@media (max-width: 992px) {

    .navbar-light .navbar-nav .nav-link {
        border-bottom: 1px
    }
}

.searchContainer {
    transition: ease-in 0.3s;
    width: 600px;
    margin-left: auto;
    margin-right: auto
}

/*    .searchContainer .form-control {
        border-radius: 12px 12px 0 0 
    }*/
.navbar input:focus {
    border-color: var(--green-default) !important;
    box-shadow: none !important
}

#dataReseachContainer {
    position: absolute;
    width: 100%;
    text-align: center;
    border-top-width: 1.5px;
    border-right-width: 1px;
    border-bottom-width: 1px;
    border-left-width: 1px;
    border-style: solid;
    border-color: #ccc;
    max-height: 250px;
    overflow-y: auto;
    z-index: 99;
    display: block;
    background: white;
    border-radius: 0 0 12px 12px
}

.result-item-default {
    padding: 10px;
    background-color: #fff;
}

.result-item {
    padding: 10px;
    background-color: #fff;
    cursor: pointer;
}

    .result-item:hover {
        background-color: #f0f0f0;
    }
/*Handle Dropdown menu*/
.navbar .nav-item.dropdown {
    position: static;
}

.mega-dropdown {
    position: absolute !important;
    left: 0;
    right: 0;
    top: 100%;
    width: 100vh; /*Handle width dropdown*/
    height: fit-content;
    border-radius: 0 0 12px 12px;
    margin-top: 0;
    margin-right: auto;
    margin-left: auto;
    padding: 1rem 2rem;
    visibility: hidden;
}


.dropdown-menu .mega-dropdown-content {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.mega-dropdown-column {
    margin-right: 20px
}

    .mega-dropdown-column .dropdown-column-subject {
        font-size: 28px
    }

    .mega-dropdown-column .dropdown-column-link {
        font-style: italic;
        font-size: 16px
    }

.dropdown-toggle::after {
    display: none !important;
}

.dropdown-menu .dropdown-item.active,
.dropdown-menu .dropdown-item:active,
.dropdown-menu .dropdown-item:focus {
    background-color: #16A34A !important;
    color: #fff !important;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link:active,
.navbar-nav .nav-link:focus {
    color: #16A34A !important;
}
/* Offcanvas width for small screens */
@media (max-width: 991.98px) {
    .offcanvas.offcanvas-start {
        width: 280px; /* adjust width as needed */
    }

    /* Make sure dropdown doesn't show on small screens (we already added d-none d-lg-flex) */
    .mega-dropdown-column {
        padding: 0.5rem 1rem;
    }

    .mega-offcanvas-nav .list-group-item {
        border: none;
        padding-left: 0;
        padding-right: 0;
    }
}

/* Optional: tweak mega-dropdown columns for large screens */
@media (min-width: 992px) {
    .mega-dropdown {
        gap: 1rem;
        padding: 1rem 2rem;
        width: 100%;
    }

    .mega-dropdown-column {
        min-width: 180px;
    }
}
/*Handle Hover menu dropdown*/
.nav-item.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible
}


/*Footer*/
footer .footer-icon {
    width: 20px;
    height: 20px;
}

footer p {
    margin-bottom: 10px
}


.footer-fixed {
    color: white !important;
    text-align: center;
}

.footer-content {
    padding: 50px
}

@media(max-width:992px) {
    .footer-fixed {
        height: fit-content;
    }

    .footer-content {
        margin-left: 12px;
        padding: 0
    }

    footer h4 {
        margin-top: 20px;
    }
}

/*Handle sidebar offcanvas*/
.offcanvas .offcanvas-footer p {
    margin: 0;
}


.offcanvas .cart-footer-item {
    display: flex;
    flex-direction: row;
    margin-right: 20px;
    margin-left: 20px;
    justify-content: space-between;
}

.cart-footer-item .cart-footer-property {
    font-weight: 300;
    color: black;
}

.cart-footer-item .cart-footer-value {
    font-weight: 500;
    color: #4CAF50
}

.cart-footer-item .cart-footer-property-total {
    font-weight: 600;
    color: black;
    font-size: 20px
}

.cart-footer-item .cart-footer-value-total {
    font-weight: 600;
    color: black;
    font-size: 20px
}

.offcanvas-footer .cart-button-checkout {
    display: block;
    margin: 15px auto 15px auto;
    width: 90%;
}

.offcanvas-body {
    padding: 0
}

/*Handle cart product card*/
.cart-product-card .cart-product-card-img {
    width: 80px;
    height: 80px;
    border-radius: 8px
}

.cart-product-card .cart-product-card-input {
    width: 120px;
    height: 42px;
    border-width: 2px;
    border-color: #D1D5DB;
    border-radius: 8px
}

/*handle modal*/
.modal-content {
    border-radius: 12px
}

.modal-dialog input {
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 10px
}

.modal-dialog .otp-input {
    width: 50px;
    height: 50px;
    margin: 0 10px;
    text-align: center;
    font-size: 36px;
    cursor: not-allowed;
    pointer-events: none;
}

    .modal-dialog .otp-input:focus {
        border: 1px solid #4CAF50;
        outline: none;
        color: #4CAF50;
    }

    .modal-dialog .otp-input:nth-child(1) {
        cursor: pointer;
        pointer-events: all;
    }

.modal-dialog #otpButton {
    width: 100% !important;
}


.modal-dialog hr {
    border: none;
    height: 2px;
    color: black;
    background-color: black;
    width: 20px;
    margin-top: auto;
    border-radius: 12px;
    margin-bottom: auto
}

.modal-dialog input[type="checkbox"] {
    padding: 0px
}

p .text-decoration-underline {
    cursor: pointer
}

.modal-dialog .input-group-text {
    background: inherit;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 6px;
    border-left: 0;
}

.modal-dialog .input-group input {
    border-right: 0;
}

.modal-dialog .input-group-text i:hover {
    cursor: pointer;
}

.modal-dialog .modal-body .btn {
    width: 210px;
    height: 40px;
    font-weight: 600;
    font-size: 18px
}

    .modal-dialog .modal-body .btn .btn-logo {
        width: 18px;
        height: 18px;
        margin-left: 8px
    }

.modal-body .btn-forgetPassword:hover {
    color: #4CAF50;
    cursor: pointer;
}

label.error {
    color: #dc3545;
    font-size: 0.95em;
    margin-top: 4px;
    margin-bottom: 0;
    display: block;
    font-weight: 400;
    text-align: left;
    padding-left: 2px;
}

@media (max-width:576px) {
    .modal-dialog .modal-body .btn {
        margin-left: 12px;
        margin-right: 12px
    }
}
/*Handle Cauroul*/
/* style.css cập nhật */




/*Handle Policy*/
.banner-header {
    width: 100%;
    height: 350px
}


/*Hanlde pagination*/
.pagination a {
    color: var(--green-default)
}

/*Handle news detail*/
.news-article {
    /*max-width: 800px;*/
    padding: 0 100px;
    margin: auto;
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #343A40;
}

    .news-article h1 {
        font-family: 'Lora', serif;
        font-size: 36px;
        color: #4CAF50;
        margin-bottom: 10px;
    }

    .news-article h2 {
        font-family: 'Lora', serif;
        font-size: 28px;
        color: #2C5F2D;
        margin-top: 40px;
        margin-bottom: 15px;
    }

.meta-info {
    font-size: 14px;
    color: #6C757D;
}

.sapo {
    font-size: 18px;
    color: #555;
}

.article-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 15px;
}

.image-caption {
    font-size: 14px;
    text-align: center;
    color: #6C757D;
    margin-bottom: 30px;
}

.article-content a {
    color: #FF9800;
    text-decoration: none;
    font-weight: bold;
}

    .article-content a:hover {
        text-decoration: underline;
    }
/*-----------------------------HANDLE WEBKIT INPUT REMOVE FOCUS-----------------------------*/
input:-webkit-autofill, input:-webkit-autofill:focus {
    transition: background-color 600000s 0s, color 600000s 0s;
}

input[data-autocompleted] {
    background-color: transparent !important;
}

.support-form input::placeholder {
    font-size: 15px;
    color: #838383;
}
/*handle toast*/
.toast-container {
    position: fixed;
    bottom: 2rem; /* hoặc 24px, 32px tuỳ ý */
    right: 2rem;
    z-index: 1060;
    position: absolute;
    top: 0;
    right: 0;
}


/*Handle sidebar header menu*/
.mega-offcanvas-nav {
    margin: 8px 12px 0 12px
}

    .mega-offcanvas-nav .list-group-item {
        font-size: 15px
    }
/*Handle NavTab Scrool when bile*/
#navScrollTab {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overflow-y: hidden;
    /* Ẩn scrollbar cho tất cả trình duyệt */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE và Edge */
}

    /* Ẩn scrollbar cho Chrome, Safari và Opera */
    #navScrollTab::-webkit-scrollbar {
        display: none;
    }

    #navScrollTab .nav-item {
        flex: 0 0 auto;
    }

.btn.btn-logout:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem red;
}

.btn.btn-logout:active {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem red;
}

input:-webkit-autofill,
input:-webkit-autofill:focus {
    transition: background-color 600000s 0s, color 600000s 0s;
}

input[data-autocompleted] {
    background-color: transparent !important;
}

input:disabled:-webkit-autofill,
input:disabled:-webkit-autofill:hover,
input:disabled:-webkit-autofill:focus,
input[disabled]:-webkit-autofill,
input[disabled]:-webkit-autofill:hover,
input[disabled]:-webkit-autofill:focus,
fieldset[disabled] input:-webkit-autofill,
fieldset[disabled] input:-webkit-autofill:hover,
fieldset[disabled] input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #e9ecef inset !important;
    background-color: #e9ecef !important;
    transition: background-color 5000s ease-in-out 0s;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
    background-color: #ffffff !important;
    transition: background-color 5000s ease-in-out 0s;
}

.support-form input::placeholder {
    font-size: 15px;

}
.suggestion {
    background: white;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    margin-right: 12px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    z-index: 1000;
}

.suggestion li.keyboard-selected {
    background-color: #e9ecef;
    cursor: pointer;
}

.suggestion li:hover {
    background-color: #f8f9fa;
}

.suggestion strong {
    color: #198754;
    font-weight: 600;
}

.autocomplete-loading {
    padding: 10px;
    text-align: center;
    color: #6c757d;
    font-style: italic;
}

.autocomplete-no-results {
    padding: 10px;
    text-align: center;
    color: #dc3545;
}

.autocomplete-clear {
    position: absolute;
    right: 10px;
    top: 73%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6c757d;
    font-size: 20px;
    line-height: 1;
    padding: 5px;
    user-select: none;
}

.autocomplete-clear:hover {
    color: #dc3545;
}


.suggestion {
    scroll-behavior: smooth;
}

.suggestion ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.suggestion li {
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.logo-image {
    width: 80px;
    height: auto;
}
/*mega menu begin*/
.mega-menu-static {
    position: static !important;
}

.mega-menu-content {
    width: 100%;
    left: 0;
    right: 0;
    margin-top: 0;
    border: none;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-top: 1px solid #eee;
}

.mega-item {
    padding: 15px 10px;
    border-bottom: 1px solid #f0f0f0;
    font-weight: 500;
    color: #333;
    transition: all 0.3s ease;
}

.mega-item:hover {
    background-color: transparent;
    color: #4CAF50;
    padding-left: 15px;
}

@media (min-width: 992px) {
    .nav-item.dropdown:hover .dropdown-menu {
        display: block;
        opacity: 1;
        visibility: visible;
    }
}
/*mega menu end*/
