@font-face {
    font-family: Inter;
    src: url(Fonts/Inter-VariableFont_slnt\,wght.ttf);
}

* {
    scroll-behavior: smooth;
}

html {
    font-size: 16px;
    font-style: normal;
    font-family: 'Inter';
    color: var(--text-color);
}

body {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    box-sizing: border-box;
    text-rendering: optimizeSpeed;
    background-color: var(--background-color);
}

:root {
    --primary-color: rgb(237, 28, 36);
    --primary-color--hover: rgba(246, 49, 51, 0.7);
    --white-color: rgb(255, 255, 255);
    --black-color: rgb(0, 0, 0);

    --background-color: rgb(245, 245, 245);
    --background-subColor: rgb(249, 249, 249);
    --background-ColorE8262D: rgb(232, 38, 45);
    --background-ColorE8262D--hover: rgba(232, 38, 45, 0.7);
    --background-ColorFAD4D5: rgb(250, 212, 213);

    --text-color: rgb(57, 62, 74);
    --subtext-color: rgb(95, 102, 119);
    --text-colorF63133: rgb(246, 49, 51);

    --underline-colorF1F1F2: rgb(241, 241, 242);

    --borderNews-color: rgba(95, 102, 119, 0.5);
    --borderNews-color--active: rgb(237, 28, 36);
}

.app {
    overflow: hidden;
}

/* Header */
.header,
.footer,
.copyright {
    height: auto;
}

.header__navbar {
    width: 86.666667%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px auto 19px;
    height: 36px;
}

.header__brand {
    color: var(--primary-color);
    line-height: 36px;
    font-size: 36px;
}

.header__list {
    line-height: 36px;
    display: flex;
    align-items: center;
}

.header__introduce {
    text-decoration: none;
    width: auto;
    font-size: 14px;
    line-height: 17px;
    font-weight: 400;
    margin-right: 25px;
    color: var(--text-color);
}

.header__login {
    width: 125px;
    height: 36px;
    font-weight: 500;
    font-size: 14px;
    line-height: 17px;
    background-color: var(--primary-color);
    padding: 0px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: var(--white-color);
    font-family: 'Inter';
}

.header__login:hover {
    background-color: var(--primary-color--hover);
}

.header__News {
    width: 134px;
    height: 54px;
    position: absolute;
    background-color: var(--white-color);
    box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.1);
}

.header__NewsList {
    width: 134px;
    list-style: none;
    padding: 0px;
    height: auto;
    margin: 0px;
    padding: 0px;
    display: none;
    flex-direction: column;
    position: absolute;
    background-color: var(--white-color);
    box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.select--news:hover .header__NewsList {
    display: flex;
}

.header__NewsItem {
    width: 100%;
    border-top: 1px solid var(--borderNews-color);
}

.header__NewsItem:hover {
    border-color: var(--borderNews-color--active);
}

.header__NewsText {
    margin-left: 7px;
    width: auto;
    height: 27px;
    font-weight: 400;
    font-size: 12px;
    line-height: 27px;
    cursor: pointer;
    display: block;
}

/* serviceNews */

.serviceNews__area {
    width: 100%;
    overflow: hidden;
    margin: 19px auto 0px;
}

.serviceNewsTitle {
    width: 100%;
    font-weight: 400;
    text-align: left;
    font-size: 24px;
    line-height: 29px;
    margin: 0px;
}

.serviceNews__list {
    width: 100%;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    margin-left: -14px;
    margin-right: -14px;
    align-content: space-between;
    padding: 0px;
}

.serviceNews__item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.serviceNews__image {
    height: 162px;
}

.serviceNews--img {
    max-width: 100%;
    height: auto;
}

.serviceNews__title {
    margin-top: 6px;
    font-weight: 600;
    font-size: 16px;
    line-height: 19px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.serviceNews__date {
    margin-top: 9px;
    font-weight: 300;
    font-size: 14px;
    line-height: 17px;
}

.serviceNews__des {
    font-weight: 400;
    font-size: 16px;
    line-height: 19px;
}


/* Footer */
.footer__area {
    width: 100%;
    height: 115px;
    margin: 0px auto 16px;
    background-color: var(--white-color);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    
}

.footer__navbar {
    width: 100%;
    height: inherit;
    margin: 0px 47px 0px 3.416667%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-footer {
    font-size: 16px;
    cursor: pointer;
    width: 30%;
}

.footer__content {
    width: 69%;
    font-size: 16px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.footer__policy {
    font-weight: 500;
    font-size: 16px;
    line-height: 58px;
    text-align: center;
    border: none;
    padding: 0px;
    margin-right: 31px;
    border-radius: 7px;
    color: var(--text-color);
    cursor: pointer;
    background-color: var(--white-color);
}

.footer__condition {
    font-weight: 500;
    font-size: 16px;
    line-height: 58px;
    text-align: center;
    border: none;
    padding: 0px;
    margin-right: 31px;
    border-radius: 7px;
    color: var(--text-color);
    cursor: pointer;
    background-color: var(--white-color);
}

.footer__login {
    width: 121px;
    height: 35px;
    font-size: 16px;
    color: var(--background-color);
    background-color: var(--primary-color);
    padding: 0px;
    border: 1px solid var(--primary-color);
    border-radius: 7px;
    color: var(--white-color);
    font-family: 'Inter';
    cursor: pointer;
}

.footer__login:hover {
    background-color: var(--primary-color--hover);
}


/* Copyright */
.copyright__area {
    width: 100%;
    height: 58px;
    margin: 0px auto 0px;
    display: flex;
    justify-content: flex-start;
}

.copyright__vela {
    font-weight: 500;
    font-size: 16px;
    line-height: 58px;
    margin-left: 3.416667%;
    text-align: center;
    color: var(--text-color);
}

/* css Bonus */
.header__menu-mobile {
    height: 73px;
    width: 100px;
    font-size: 5rem;
    align-items: center;
    justify-content: center;
    border: none;
    color: var(--primary-color);
    background-color: var(--background-color);
    cursor: pointer;
    border-radius: 5px;
    padding: 16px;
    display: none;
}

.custom-iconBars {
    width: 100%;
    height: 50px;
    font-size: 50px;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: var(--white-color);
    z-index: 11;
    display: none;
}

.modal__body {
    width: 100%;
    height: auto;
}

.close {
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    display: block;
}

.close-x {
    width: 100%;
    height: 100%;
    font-size: 64px;
    text-align: center;
    color: var(--text-color);
    padding: 16px;
}

.header__list-mobile {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 80px;
    width: 100%;
    list-style: none;
    padding-left: 0;
}

.header__menu-item {
    color: var(--text-color);
    width: 100%;
    line-height: 32px;
    font-size: 32px;
    padding: 8px 0px 8px 48px;
    border-top: 1px solid var(--borderNews-color);
}

.border-bottom-mobile {
    border-bottom: 1px solid var(--borderNews-color);
}

.header__menu-link {
    text-decoration: none;
    color: var(--text-color);
}

.modal.open {
    display: flex;
}

/* CSS Global */

.grid {
    width: 100%;
    display: block;
}

.grid.wide {
    max-width: 1200px;
    margin: 0 auto;
}

.hide-on-pc {
    display: none;
}

@media (min-width: 1024px) and (max-width: 1239px) {
    .hide-on-smallPC {
        display: none;
    }
    .show-on-smallPC {
        display: inline-block;
    }
    .wide {
        width: 984px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hide-on-tablet {
        display: none;
    }
    .show-on-tablet {
        display: inline-block;
    }
    .wide {
        width: 672px;
    }
    .header__navbar {
        width: 100%;
    }
    .header__login {
        width: 108px;
    }
    .header__list {
        justify-content: flex-end;
    }
    .header__introduce {
        margin-right: 16px;
    }
    .footer__policy {
        font-size: 14px;
        margin-right: 16px;
    }
    .footer__condition {
        font-size: 14px;
        margin-right: 0px;
    }
}

@media (max-width: 768px) {
    .hide-on-mobile {
        display: none;
    }
    .show-on-tablet {
        display: inline-block;
    }
    .show-on-mobile {
        display: flex;
    }
    .header__menu-mobile {
        display: flex;
    }
    .header__navbar {
        width: 96%;
    }
    .footer__area {
        height: 80px;
    }
    .footer__navbar {
        margin-right: 16px;
    }
    .footer__policy {
        width: auto;
        height: auto;
        font-size: 16px;
        line-height: 16px;
        margin-right: 16px;
        margin-left: 16px;
    }
    .footer__condition {
        width: auto;
        height: auto;
        font-size: 16px;
        line-height: 16px;
        margin-right: 0px;
    }
    .ml-mr-16 {
        margin-left: 16px;
        margin-right: 16px;
    }
}