:root {
    --primary-color: #cb2926;
    --secondary-color: #000000;
    --primary-hover-color: #af2220;
    --hover-primary-bg-color: #f6fbff;
    --black-color: #212529;
    --header-height: 72px;
    --gray-color: #6c757d;
    --hover-gray-bg: #f8f9fa;
    --site-background-color: #f6f9fe;
    --company-color: #cb2926;
    --footer-dark-bg-color: #0b0d17;
    --footer-dark-text-color: #d9dbe1;
}

*::-webkit-scrollbar {
    width: 16px;
}

*::-webkit-scrollbar-thumb {
    height: 20px;
    border-radius: 8px;
    border: 4px solid transparent;
    background-clip: content-box;
    background-color: hsl(0, 0%, 67%);
}

header {
    z-index: 1000 !important;
}

a:hover {
    color: var(--company-color);
    cursor: pointer;
}

a:hover span {
    color: var(--company-color) !important;
    cursor: pointer;
    transition: all 0.2s ease;
}

body {
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-size: 100%;
    overflow-x: hidden;
}

p {
    line-height: 1.4rem;
    font-size: 1rem;
    letter-spacing: 0em;
    text-align: justify;
}

/* Btn */
.btn {
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn:active,
.btn:focus {
    outline: none !important;
    box-shadow: none !important;
}

.btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-loading .spinner-border {
    display: none;
}

.btn.is-loading > .iconify {
    display: none !important;
}

.btn-loading.is-loading .spinner-border {
    display: block;
}

.btn-primary {
    background-color: var(--company-color);
    border-color: var(--company-color);
}

.btn-primary.shadow {
    box-shadow: 0px 5px 30px rgba(65, 84, 241, 0.4);
}

.btn-primary:disabled {
    background-color: var(--company-color);
    border: none;
}

.btn-primary:hover {
    background-color: var(--company-color);
    border-color: var(--company-color);
}

.btn-primary.small {
    padding: 6px 16px;
}

.btn-primary.medium {
    padding: 10px 20px;
}

.btn-primary.large {
    padding: 10px 24px;
    border-radius: 24px;
    font-size: 1.1rem;
    font-weight: 500;
}

.btn-primary:active,
.btn-primary:focus {
    background-color: var(--company-color);
    border-color: var(--company-color);
}

.btn-link {
    text-decoration: none !important;
    display: inline-block;
    color: var(--company-color);
    border: none;
    outline: none;
    background-color: white;
    padding: 4px 12px;
    border-radius: 4px;
    background-color: var(--hover-primary-bg-color);
}

.btn-link:hover {
    color: var(--primary-hover-color);
    text-decoration: underline !important;
}

.btn-primary-reverse {
    background-color: #61b5ff;
    color: white;
}

.btn-primary-reverse:hover {
    background-color: white;
    color: var(--company-color);
}

/* Background */
.bg-primary {
    background-color: var(--company-color) !important;
}

.bg-secondary {
    background-color: var(--secondary-color) !important;
}

/* Text */
.text-primary {
    color: var(--company-color) !important;
}

.text-company {
    color: var(--company-color) !important;
}

.bg-company {
    background-color: var(--company-color) !important;
}

.text-active {
    color: var(--company-color);
}

.text-black {
    color: var(--black-color);
}

.bg-white-40 {
    background-color: rgba(255, 255, 255, 0.4);
}

.bg-white-50 {
    background-color: rgba(255, 255, 255, 0.5);
}

.bg-white-60 {
    background-color: rgba(255, 255, 255, 0.6);
}

.bg-white-70 {
    background-color: rgba(255, 255, 255, 0.7);
}

.bg-white-80 {
    background-color: rgba(255, 255, 255, 0.8);
}

.bg-white-90 {
    background-color: rgba(255, 255, 255, 0.9);
}

.bg-white-layer-0::before {
    background-color: transparent !important;
}

.bg-white-layer-20::before {
    background-color: rgba(255, 255, 255, 0.2) !important;
}

.bg-white-layer-30::before {
    background-color: rgba(255, 255, 255, 0.3) !important;
}

.bg-white-layer-40::before {
    background-color: rgba(255, 255, 255, 0.4) !important;
}

.bg-white-layer-50::before {
    background-color: rgba(255, 255, 255, 0.5) !important;
}

.bg-white-layer-60::before {
    background-color: rgba(255, 255, 255, 0.6) !important;
}

.bg-white-layer-70::before {
    background-color: rgba(255, 255, 255, 0.7) !important;
}

.bg-white-layer-80::before {
    background-color: rgba(255, 255, 255, 0.8) !important;
}

.position-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Dropdown */
.dropdown-item {
    transition: all 0.15s ease;
}

.dropdown-item:active {
    background-color: var(--hover-gray-bg) !important;
    color: var(--company-color);
}

.dropdown-item:hover {
    background-color: var(--hover-gray-bg) !important;
    color: var(--company-color) !important;
}

.dropdown[data-trigger-event='hover']:hover .dropdown-menu {
    display: block;
    margin-top: -1px;
    cursor: pointer;
}

.dropdown-menu.dropdown-menu-hover {
    top: 32px;
}

.header-nav-dropdown .dropdown-menu {
    top: 42px;
    left: -47px;
}

.dropdown-menu.dropdown-menu-hover::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    right: 50%;
    height: 20px;
    background-color: transparent;
}

.hover-shadow {
    transition: all 0.2s ease;
}

.hover-shadow:hover {
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px !important;
}

/* Site Mobile Drawer */
.custom-accordion .accordion-item {
    border: none;
}

.custom-accordion .accordion-button {
    padding: 16px 10px;
    font-size: 14px;
    font-weight: 500;
}

.custom-accordion .accordion-button:hover {
    background-color: rgb(250, 250, 250) !important;
    color: var(--company-color) !important;
    transition: 0.2 ease all;
}

.custom-accordion .accordion-button:not(.collapse) {
    box-shadow: none;
    background-color: transparent;
    color: var(--text-gray-color);
}

.custom-accordion .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='%23212529'%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");
}

.custom-accordion .accordion-button.none-arrow::after {
    display: none;
}

.footer-background {
    background-color: var(--footer-dark-bg-color);
    color: var(--footer-dark-text-color)
}

.footer-hiring-text {
    color: var(--company-color) !important;
    font-family: 'Nanum-Pen-Script', cursive !important
}

.footer-text {
    color: var(--footer-dark-text-color);
}

.footer-accordion .accordion-item {
    border: none;
    background-color: transparent;
}

.footer-accordion .accordion-button {
    padding: 0;
}

.footer-accordion .accordion-button:hover {
    color: var(--company-color) !important;
}

.footer-accordion .accordion-button {
    box-shadow: none !important;
}

.footer-accordion .accordion-button:not(.collapsed) {
    box-shadow: none;
    background-color: transparent;
    color: var(--company-color) !important;
}

.footer-accordion .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='%23212529'%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");
}

.footer-accordion .accordion-button.none-arrow::after {
    display: none;
}

.site-drawer-item {
    display: block;
    text-decoration: none;
}

.site-drawer-item:hover {
    color: var(--company-color) !important;
    background-color: #f1f1f1 !important;
}

/* Infinite Scroll */
.infinite-scroll-box {
    display: flex;
    flex-direction: column;
    gap: var(--infinite-gap);
    margin: auto;
    max-width: 100vw;
}

.infinite-scroll {
    display: flex;
    overflow: hidden;
    user-select: none;
    gap: var(--infinite-gap);
    mask-image: linear-gradient(var(--mask-direction, to right), hsl(0 0% 0% / 0), hsl(0 0% 0% / 1) 20%, hsl(0 0% 0% / 1) 80%, hsl(0 0% 0% / 0));
    position: relative;
}

.infinite-scroll-group {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: var(--infinite-gap);
    min-width: 100%;
    animation: scroll-x var(--infinite-duration) linear infinite;
}

.infinite-scroll.reverse .infinite-scroll-group {
    animation-direction: reverse;
    animation-delay: -3s;
}

@keyframes scroll-x {
    from {
        transform: translateX(var(--infinite-scroll-start));
    }
    to {
        transform: translateX(var(--infinite-scroll-end));
    }
}

/* Element styles */
.size-12 {
    width: 12px;
    height: 12px;
}

.size-16 {
    width: 16px;
    height: 16px;
}

.size-20 {
    width: 20px;
    height: 20px;
}

.size-24 {
    width: 24px;
    height: 24px;
}

.size-32 {
    width: 32px;
    height: 32px;
}

.size-36 {
    width: 36px;
    height: 36px;
}

.size-40 {
    width: 40px;
    height: 40px;
}

.size-48 {
    width: 48px;
    height: 48px;
}

.size-52 {
    width: 52px;
    height: 52px;
    min-width: 52px;
}

.infinite-scroll img {
    display: grid;
    place-items: center;
    border-radius: 0.5rem;
    width: 111px;
    height: 111px;
}

/* Toggle direction button */
/* Header */

.site-header {
    height: var(--header-height);
    z-index: 1000;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: white;
}

.header-nav-link {
    font-weight: 500;
    padding: 8px 0;
    font-size: 0.9rem;
}

.header-nav-link:hover {
    color: var(--company-color) !important;
}

.header-nav-dropdown {
    padding: 8px 0;
}

.header-nav-dropdown:hover .header-nav-link {
    color: var(--company-color) !important;
}

.header-nav-link.active {
    color: var(--company-color) !important;
}

.page-link {
    color: var(--primary-color);
}

.page-link:hover {
    color: var(--primary-hover-color);
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.page-link:focus,
.page-link:active {
    box-shadow: none !important;
    color: var(--primary-hover-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--company-color);
    font-weight: 500;
}

/* Footer */
.site-footer-link {
    text-decoration: none;
    color: white;
    display: block;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.site-footer-link:hover {
    cursor: pointer;
    color: var(--secondary-color);
}

.footer-icon-box {
    background-color: var(--company-color);
    border-radius: 100%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.footer-icon-contact {
    color: var(--company-color);
    width: 24px !important;
    height: 24px !important;
    display: flex;
    font-size: 24px;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.footer-icon-box:hover {
    background-color: #3383ec;
}

::placeholder {
    font-size: 1rem !important;
}

:-ms-input-placeholder {
    font-size: 1rem !important;
}

@media (min-width: 576px) {
    .container,
    .container-sm {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container,
    .container-md,
    .container-sm {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container,
    .container-lg,
    .container-md,
    .container-sm {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container,
    .container-lg,
    .container-md,
    .container-sm,
    .container-xl {
        max-width: 1200px;
    }
}

@media (min-width: 1400px) {
    .container,
    .container-lg,
    .container-md,
    .container-sm,
    .container-xl,
    .container-xxl {
        max-width: 1200px;
    }
}
