:root {
    /* Colors */
    --primary-color: #990012;
    --secondary-color: #5BA33F;
    --text-color: #333333;
    --white-color: #ffffff;
    --black-color: #000000;
    --gray-color: #374957;
    --gray-color-secondary: #515151;
    --light-gray: #F8F9FA;
    --border-color: #e2e8f0;
    --color-fade: #A7B0B4;
    --color-text-light: #e6edf4;
    --background-color: #f8f9fa;

    /* background */
    --gradient-search-active: linear-gradient(to right, #11703A 0%, #2BA650 30%, #5BA33F 100%);
    --gradient-green: linear-gradient(to right, #11703A, #2BA650, #5BA33F);
    --primary-gradient-light: linear-gradient(135deg, #d52f34 0%, #dd8787 92%);
    --secondary-gradient-light: linear-gradient(135deg, #5BA33F, #a2d97b);

    /* width, height */ 
    --top-bar-height: 110px;
    --nav-bar-height: 64px;
    
    /* Border radius */
    --border-radius-full: 9999px;
    
    /* Box shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* font size */
.fs-7 {
    font-size: 0.75rem !important;
}

.fs-8 {
    font-size: 0.5rem !important;
}
/**/
html, body {
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
    background-color: var(--white-color);
    padding: 0 !important;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
}

ul, ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cursor-pointer {
    cursor: pointer;
}

.cursor-default {
    cursor: default;
}

/* button back to top, hotline, zalo */
.group-btn-fixed {
    position: fixed;
    right: 26px;
    bottom: 60px;
    justify-content: center;
    color: var(--white-color);
    z-index: 99;
    animation: slideUp 0.5s ease forwards;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: end;
    gap: 20px;
}

.btn-fixed {
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-back-to-top {
    background-color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
    color: var(--white-color);
    display: none;
    width: 40px;
    height: 40px;
    font-size: 16px;
    opacity: 0;
    max-height: 0;
    transition: opacity .5s ease;
    overflow: hidden;
}

    .btn-back-to-top.show {
        display: flex;
        opacity: 1;
        animation: heightKeyFrame .5s ease forwards .5s;
    }

.btn-messenger {
    width: 45px;
    height: 45px;
    box-shadow: 0 2px 4px 2px rgba(0, 0, 0, 0.15);
    transition: bottom .5s ease;
    background: transparent;
    border-radius: 50%;
    overflow: visible;
}

    .btn-messenger img {
        width: 50px;
        height: 50px;
        max-width: 50px;
    }

.btn-hotline {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    font-size: 22px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
    transition: bottom .5s ease;
}

@media (max-width: 992px) {
    .group-btn-fixed {
        right: 16px;
    }
    .btn-messenger {
        width: 45px;
        height: 35px;
    }
        .btn-hotline,
        .btn-messenger img {
            width: 45px;
            height: 45px;
            font-size: 18px;
        }
    .btn-back-to-top {
        width: 35px;
        height: 35px;
    }
}

@keyframes heightKeyFrame {
    0% {
        max-height: 0;
    }

    100% {
        max-height: 40px;
    }
}

@keyframes slideUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* text color */
.text {
    color: var(--text-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

.text-gray {
    color: var(--gray-color) !important;
}

.text-light-gray {
    color: var(--gray-color-secondary) !important;
}

/* text title, sub title */
.text-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 0;
}

.text-sub-title {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .text-title {
        font-size: 24px;
    }

    .text-sub-title {
        font-size: 15px;
    }
}

/* text underline */
.text-underline-primary {
    position: relative;
    width: fit-content;
}

    .text-underline-primary::before {
        content: '';
        background-color: var(--primary-color);
        width: 48%;
        max-width: 100px;
        height: 3px;
        position: absolute;
        bottom: -10px;
        right: 0;
    }

/* hover up */
.hover_up {
    transition: transform .2s, box-shadow .2s;
}

    .hover_up:hover {
        transform: translateY(-4px);
        box-shadow: 0 4px 8px #0000001a;
    }
/* hover underline */
.hover-underline {
    text-decoration: none;
    position: relative;
}

    .hover-underline::after {
        content: '';
        position: absolute;
        top: calc(100% + 6px);
        right: -8px;
        transform: translateX(50%) scaleX(0);
        bottom: 0;
        height: 3px;
        width: 47%;
        background: var(--primary-color);
        border-radius: 36px;
        transition: transform 0.3s ease;
    }

    .hover-underline-wrapper:hover .hover-underline::after,
    .hover-underline-wrapper.active .hover-underline::after,
    .hover-underline:hover::after,
    .hover-underline.active::after {
        transform: translateX(0) scaleX(1);
    }

@media (max-width: 768px) {
    .hover-underline::after {
        content: none;
    }
}

/* animation */
@keyframes fadeIn {
    from {
        display: none;
        opacity: 0;
    }

    to {
        display: flex;
        opacity: 1;
    }
}

/* section triangle */
.section-triangle {
    background: var(--white-color);
    position: absolute;
    top: 0;
    width: 100%;
    margin: 0;
    height: 38px;
    clip-path: polygon(0 0, 100% 0, 30% 100%);
    border-top: 1px solid var(--white-color);
}
.footer .section-triangle {
    height: 24px;
}
@media (max-width: 769px) {
    .footer .section-triangle {
        height: 16px;
    }
}

/* max line text */
.line-1 {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.line-2 {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.line-3 {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.line-4 {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.line-5 {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
}

/* custom bootstrap */
@media (max-width: 768px) {
    .mt-md-1 {
        margin-top: 4px;
    }

    .mt-md-2 {
        margin-top: 8px;
    }

    .mt-md-3 {
        margin-top: 16px;
    }

    .mt-md-4 {
        margin-top: 24px;
    }

    .mt-md-5 {
        margin-top: 32px;
    }
}

/* scroll bar */
html ::-webkit-scrollbar {
    border-radius: 0px;
    width: 8px;
}

html *::-webkit-scrollbar {
    border-radius: 0;
    width: 8px;
}

html ::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background-color: rgba(22, 24, 35, 0.2);
}

html *::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background-color: rgba(22, 24, 35, 0.2);
}

html ::-webkit-scrollbar-track {
    border-radius: 0px;
    background-color: rgba(0, 0, 0, 0);
}

html *::-webkit-scrollbar-track {
    border-radius: 0;
    background-color: rgba(0, 0, 0, 0);
}

/* pagination */
.pagination-disable {
    background-color: var(--color-fade) !important;
    border-color: #ccc !important;
    color: var(--color-text-light) !important;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.pagination-btn {
    color: #757F95;
    font-size: 20px;
    background-color: var(--white-color);
    border: 1px solid #ccc;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 38px;
    transition: .3s ease;
}

    .pagination-btn:hover {
        color: var(--white-color);
        background-color: var(--primary-color);
    }

.pagination-page {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-current {
    width: 60px;
    height: 38px;
    text-align: right;
    border: 1px solid #ccc;
    border-radius: 4px;
    outline: none;
    padding: 4px;
    color: var(--primary-color);
}

.pagination-page hr {
    width: 1px;
    height: 20px;
    background-color: #757F95;
    margin: 0;
    opacity: 1;
    transform: rotate(15deg);
}

.pagination-total {
    font-size: 16px;
    font-weight: 500;
    color: #757F95;
}


@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 300;
    src: local("Inter Light"), url("../../fonts/Inter-Light.woff2") format("woff2");
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 400;
    src: local("Inter Regular"), url("../../fonts/Inter-Regular.woff2") format("woff2");
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 500;
    src: local("Inter Medium"), url("../../fonts/Inter-Medium.woff2") format("woff2");
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 600;
    src: local("Inter SemiBold"), url("../../fonts/Inter-SemiBold.woff2") format("woff2");
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 700;
    src: local("Inter Bold"), url("../../fonts/Inter-Bold.woff2") format("woff2");
}
