﻿* {
    line-height: 1.4em !important;
}

:root {
    --main-color: #e03c31;
    --grey-color: #f2f2f2;
    --text-color: #2c2c2c;
}

input::-ms-reveal,
input::-ms-clear {
    display: none;
}

input[type="password"]::-webkit-credentials-auto-fill-button,
input[type="password"]::-webkit-password-toggle-button {
    display: none;
    appearance: none;
}

input[type="password"] {
    -webkit-text-security: disc;
}

/* Ẩn spin buttons cho tất cả trình duyệt phổ biến */
input[type=number] {
    -moz-appearance: textfield; /* Firefox */
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none; /* Chrome, Safari, Edge */
    margin: 0;
}

.web-title {
    font-size: 28px;
    font-weight: 500;
    letter-spacing: -1.5px;
    margin: 0 0 0 5px;
    color: #046ca2;
}

.btn-danger {
    background-color: var(--main-color) !important;
    border-color: var(--main-color) !important;
}

.text-danger {
    color: var(--main-color) !important;
}

.btn-danger:hover {
    background-color: #cc261b !important;
    border-color: #cc261b !important;
}

.sub-header {
    padding: 8px 0px;
}

.lang-btn {
    border: 1px solid #ccc;
    padding: 6px 8px;
    border-radius: 6px;
    margin-left: 12px;
    background-color: transparent;
    text-transform: uppercase;
    display: flex;
    align-items: center;
}

    .lang-btn:hover {
        background-color: #ebebeb;
    }

    .lang-btn img {
        height: 22px;
        margin-right: 6px;
    }

.auth-action__text {
    color: white;
}

.auth-action__btn {
    color: white;
}

    .auth-action__btn:hover {
        color: #dfdddd;
    }

.main-header {
    box-shadow: 0 0 10px rgba(0, 0, 0, .1);
    padding: 15px;
    position: sticky;
    top: 0;
    left: 0;
    z-index: 5;
    background-color: white;
    border-top: 1px solid #eff1f5;
    border-bottom: 1px solid #eff1f5;
}

.header-logo {
    height: 70px;
}

.menu-container {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
}

.menu-container__item {
    margin-left: 12px;
    position: relative;
    padding: 5px 0px;
}

.menu-container__link {
    color: var(--text-color);
    font-size: 14px;
    font-weight: 500;
}

.menu-container__item:hover .sub-menu-container {
    top: 100%;
    pointer-events: auto;
    opacity: 1;
}

.menu-container__item:hover .menu-container__link {
    color: var(--main-color);
}

.menu-container__item.active .menu-container__link {
    color: var(--main-color);
}

.sub-menu-container {
    z-index: 6;
    transition: 0.3s;
    margin: 0;
    padding: 6px 0;
    list-style: none;
    position: absolute;
    top: 120%;
    pointer-events: none;
    opacity: 0;
    border-radius: 8px;
    box-shadow: 0px 0px 25px rgba(182, 182, 182, 0.5);
    background-color: white;
    min-width: 100%;
}

.btn-post-news {
    padding: 0px;
}

.btn-post-news {
    border: 1px solid #ccc;
    padding: 7px 8px;
    border-radius: 6px;
    margin-left: 12px;
    color: var(--text-color);
    font-weight: 500;
}

    .btn-post-news:hover {
        color: var(--text-color);
        background-color: #ebebeb;
    }

.sub-menu-container--left {
    left: 0;
}

.sub-menu-container--right {
    right: 0;
}

.sub-menu-container__link {
    padding: 6px 15px;
    white-space: nowrap;
    display: block;
    font-size: 14px;
    color: var(--text-color);
}

    .sub-menu-container__link:hover {
        background-color: var(--grey-color);
        color: var(--text-color);
    }

.main-body {
    min-height: calc(100vh - 80px); /*80px là height của header*/
    color: var(--text-color);
}

.home-banner {
    width: 100vw;
    height: 40vh;
}

    .home-banner img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

.news-nav {
    font-size: 18px;
    color: #999;
    border-radius: 0;
    outline: none;
    border: none;
    background-color: transparent;
    padding: 5px 8px;
}

    .news-nav:hover {
        color: var(--text-color);
    }

.news-nav--active:hover, .news-nav--active {
    border-bottom: 2px solid var(--main-color);
    color: var(--text-color);
}

.news-item {
    border-bottom: 1px solid var(--grey-color);
    padding-bottom: 10px;
}

.news-item__thumbnail {
    display: block;
    overflow: hidden;
    border-radius: 8px;
}

    .news-item__thumbnail img {
        width: 100%;
        height: 40vh;
        object-fit: cover;
        object-position: center;
        transition: 0.3s;
    }

    .news-item__thumbnail:hover img {
        transform: scale(1.1);
    }

.max-line-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Giới hạn 2 dòng */
    -webkit-box-orient: vertical;
    max-height: 2.8em;
    overflow: hidden;
    text-overflow: ellipsis;
}

.line-2 {
    height: 2.8em;
}

.max-line-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Giới hạn 2 dòng */
    -webkit-box-orient: vertical;
    max-height: 4.2em;
    overflow: hidden;
    text-overflow: ellipsis;
}

.line-3 {
    height: 4.2em;
}

.max-line-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1; /* Giới hạn 1 dòng */
    -webkit-box-orient: vertical;
    max-height: 1.4em;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-item__title {
    font-size: 20px;
    color: var(--text-color);
    margin: 10px 0;
    font-weight: 500;
}

    .news-item__title:hover {
        color: #999;
    }

.news-item__time {
    font-size: 14px;
    color: #999;
}

.new-sub-item {
    border-bottom: 1px solid var(--grey-color);
    padding-bottom: 10px;
    margin-bottom: 10px;
}

    .new-sub-item a {
        font-size: 16px;
        color: var(--text-color);
    }

    .new-sub-item:hover a {
        color: #999;
    }

    .new-sub-item span {
        font-size: 14px;
        display: block;
        margin-bottom: 5px;
        color: #5a6067;
        font-weight: 300;
    }

.news-big-item {
    display: block;
    height: 100%;
    position: relative;
}

    .news-big-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

.news-big-item__info {
    position: absolute;
    left: 0;
    bottom: 0;
}

    .news-big-item__info span {
        font-size: 14px;
        color: white;
        display: block;
        margin-bottom: 5px;
    }

    .news-big-item__info h3 {
        display: block;
        font-size: 20px;
        color: white;
    }

.see-more {
    display: block;
    margin: auto;
    font-size: 16px;
    font-style: italic;
    color: var(--main-color) !important;
}

    .see-more:hover {
        color: #c72c22 !important;
    }

.tool-container {
    background: linear-gradient(90deg, rgba(4, 108, 162, 1) 30%, rgba(2, 77, 122, 1) 100%);
    border-radius: 8px;
    padding: 10px;
    color: white;
}

.sologan {
    color: white;
    font-size: 20px;
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    text-transform: uppercase
}

    .sologan span {
        font-weight: 600;
        font-size: 26px;
        text-shadow: -3px 3px 3px #000000;
    }

.tool-container__title {
    font-size: 20px;
}

    .tool-container__title i {
        font-size: 18px;
    }

.tool-container__link {
    font-size: 16px;
    color: white;
}

    .tool-container__link:hover {
        color: #dfdddd;
    }

.bg-gray {
    background-color: #fafafa;
}

.article-title {
    font-size: 20px;
    margin: 0;
    color: #046ca2;
}

.article-nav__text {
    font-size: 18px;
    color: var(--text-color);
}

.article-nav {
    font-size: 18px;
    color: var(--text-color);
}

    .article-nav:hover, .article-nav:hover + span, .article-nav--active, .article-nav--active + span {
        color: var(--main-color);
    }

.article-item {
    display: block;
    border-radius: 8px;
    border: 1px solid #e1e1e1;
    box-shadow: 0px 4px 6px 0px rgba(44,44,44,0.04);
    overflow: hidden;
    height: 100%;
}

.article-item__thumbnail {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: center;
    overflow: hidden;
    display: block;
}

    .article-item__thumbnail img {
        transition: 0.3s;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

        .article-item__thumbnail img:hover {
            transform: scale(1.1);
        }

.article-item__body {
    padding: 10px;
}

.article-item__title {
    font-size: 18px;
    color: var(--text-color);
}

.article-item__description {
    font-size: 14px;
    font-weight: 400;
    color: #1c1f22;
}

.article-info {
    margin: 10px 0;
}

    .article-info ion-icon {
        min-width: 20px;
        font-size: 20px;
        margin-right: 5px;
        color: #046ca2;
    }

.article-info__text {
    font-size: 14px;
    color: var(--text-color);
}

    .article-info__text b {
        font-size: 14px;
    }

.article-time {
    font-size: 14px;
    color: #999;
}

.transition-section {
    transition: 0.5s;
    transform: translateY(50px);
    opacity: 0;
    pointer-events: none;
}

    .transition-section.show {
        transform: none;
        opacity: 1;
        pointer-events: auto;
    }

/*.contact-banner {
    background-color: var(--grey-color);
}*/

.footer {
    background-color: var(--grey-color);
    color: var(--text-color);
}

.footer__logo {
    height: 70px;
    width: auto;
}

.footer_title {
    font-size: 16px;
}

.footer-company__item {
    display: flex;
    font-size: 14px;
    margin-top: 10px;
}

    .footer-company__item ion-icon {
        min-width: 22px;
        min-height: 22px;
        margin-right: 4px;
    }

.footer-contact__item {
    display: flex;
    align-items: center;
}

    .footer-contact__item ion-icon {
        min-width: 30px;
        min-height: 30px;
        margin-right: 10px;
    }

.footer-contact__title {
    font-size: 14px;
    color: #505050;
    margin-bottom: 0px;
}

.footer-contact__value {
    margin: 0;
    font-size: 14px;
    color: var(--text-color);
}

.footer-bottom__item p {
    text-transform: uppercase;
    font-size: 16px;
    color: var(--text-color);
    font-weight: 500;
}

.footer-bottom__item a {
    display: block;
    margin-top: 5px;
    font-size: 14px;
    color: var(--text-color)
}

.form-filter input, .form-filter select, .form-filter button {
    font-size: 16px;
}

.border-bottom-grey {
    width: 100%;
    height: 1px;
    background-color: var(--grey-color);
}

.page-link {
    font-size: 14px;
}

.page-title {
    font-size: 22px;
    color: var(--text-color);
}

.news-sologan {
    width: 100%;
    font-size: 16px;
    display: block;
    text-align: center;
    font-weight: 400;
    margin: 0 auto;
}

.most-news {
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #eff1f5;
}

.most-news__item {
    padding: 12px 0;
    display: flex;
    align-items: start;
    border-top: 1px solid #eff1f5;
}

    .most-news__item span {
        font-size: 14px;
        display: block;
        margin-right: 10px;
        border-radius: 50%;
        padding: 4px 10px;
        background: #ffeceb;
        color: #961b12;
    }

    .most-news__item a {
        font-size: 16px;
        color: var(--text-color);
        font-weight: 300;
    }

        .most-news__item a:hover {
            color: #999;
        }

    .most-news__item:last-child {
        padding-bottom: 0;
    }

.news-article {
    display: flex;
    flex-direction: column;
    padding-bottom: 10px;
    border-bottom: 1px solid #eff1f5;
    margin-top: 20px;
}

    .news-article img {
        height: auto;
        width: 100%;
        object-fit: cover;
        object-position: center;
        border-radius: 8px;
        margin-bottom: 10px;
    }

.news-article__info {
    flex: 1;
}

    .news-article__info span {
        font-size: 14px;
        display: block;
        margin-bottom: 5px;
        color: #5a6067;
        font-weight: 300;
    }

    .news-article__info h3 {
        font-size: 20px;
        color: var(--text-color);
    }

    .news-article__info p {
        font-size: 16px;
        margin-top: 20px;
        margin-bottom: 0px;
        color: #5a6067;
        font-weight: 300;
    }

.btn-apply {
    border-radius: 20px;
}

.news-author {
    display: flex;
    align-items: start;
    margin-bottom: 30px;
}

.new-author__name {
    font-size: 16px;
    margin-bottom: 4px;
    font-weight: 400;
}

    .new-author__name b {
        font-size: 16px;
    }

.new-author__time {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 0px;
}

.news-content {
    font-size: 16px;
}

    .news-content li, .news-content p, .news-content strong, .news-content a, .news-content span {
        font-size: 16px;
        text-align: justify;
        margin-bottom: 5px;
    }

.content-style, .content-style li {
    font-size: 15px;
}

.news-content ul {
    list-style: none;
}

.news-content img {
    width: 100%;
}

.card-authen {
    box-shadow: 0px 4px 6px 0px rgba(44,44,44,0.04);
    border-radius: 8px;
    border: 1px solid #ccc;
    overflow: hidden;
}

.card-authen__header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    padding: 10px 10px 30px 10px;
    background-color: #cbe4ff7d;
    border-bottom-left-radius: 45%;
    border-bottom-right-radius: 30%;
}

    .card-authen__header img {
        width: 120px;
        height: auto;
    }

.authen-sub-title {
    font-size: 16px;
}

.auth-group {
    display: flex;
    align-items: center;
    border: 1px solid rgb(204, 204, 204);
    border-radius: 8px;
    padding: 12px;
}

    .auth-group ion-icon {
        font-size: 18px;
        margin-right: 10px;
    }

.auth-input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 14px;
    font-weight: 400;
}

.auth-input--has-suffix {
    padding-right: 25px;
}

.btn {
    border-radius: 8px !important;
}

.password-suffix {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

    .password-suffix ion-icon {
        font-size: 20px;
        margin: 0px;
        position: absolute;
        right: 10px;
    }

.auth-divider {
    display: flex;
    align-items: center;
}

    .auth-divider span {
        font-size: 14px;
        color: #999999;
        margin: 0 10px;
        font-weight: 400;
    }

    .auth-divider div {
        width: 100%;
        height: 1px;
        background-color: #999999;
    }

.third-party-login {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgb(204, 204, 204);
    border-radius: 8px;
    padding: 12px;
}

    .third-party-login:hover {
        background-color: #f2f2f2;
    }

    .third-party-login img {
        height: 25px;
        margin-right: 10px;
    }

    .third-party-login span {
        color: var(--text-color);
        font-weight: 500;
        font-size: 14px;
    }

#btn-menu-mobile {
    display: none;
}

.menu-web {
    justify-content: center;
}

.fw-500 {
    font-weight: 500;
}

.quantity-group {
    display: flex;
    align-items: center;
}

    .quantity-group button {
        background: #fff;
        outline: none;
        border: 1px solid #ccc;
        border-radius: 0;
        text-align: center;
        padding: 5px 8px;
    }

    .quantity-group input {
        outline: none;
        padding: 4px 6px;
        font-size: 16px;
        font-weight: 500;
        width: 60px;
        border: none;
        border-top: 1px solid #ccc;
        border-bottom: 1px solid #ccc;
        text-align: center;
    }

.title-wrapper {
    padding: 8px 12px;
    width: 100%;
    display: flex;
    align-items: center;
    background-color: rgba(161, 199, 223, 0.35);
    background-repeat: no-repeat;
    background-image: url('../../img/background-title.png');
}

    .title-wrapper i {
        font-size: 14px;
        color: white;
        background-color: #046ca2;
        padding: 4px 6px;
        border-radius: 6px;
        margin-right: 8px;
    }

.zalo-icon {
    width: 40px;
}

.overlay-menu {
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    z-index: 10;
    background-color: #00000085;
    display: none;
    pointer-events: none;
}

    .overlay-menu.show {
        display: block;
        pointer-events: auto;
    }

.mobile-menu {
    position: fixed;
    width: 275px;
    height: 100vh;
    top: 0;
    right: 0;
    z-index: 12;
    background-color: white;
    transition: 0.3s;
    transform: translateX(100%);
    pointer-events: none;
    opacity: 0;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    .mobile-menu::-webkit-scrollbar {
        display: none;
    }

.overlay-menu.show + .mobile-menu {
    transform: none;
    pointer-events: auto;
    opacity: 1;
}

.mobile-menu .auth-container a {
    border: 1px solid #ccc;
    padding: 8px;
    width: 100%;
    text-align: center;
    color: var(--text-color);
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    display: block;
}

    .mobile-menu .auth-container a.primary {
        color: white;
        background-color: var(--main-color);
        border: 1px solid var(--main-color);
    }

    .mobile-menu .auth-container a:hover {
        color: var(--text-color);
        background-color: rgb(235, 235, 235);
    }

    .mobile-menu .auth-container a.primary:hover {
        color: white;
        background-color: #bd2318;
    }

.sidebar {
    list-style: none;
}

.sidebar-link {
    position: relative;
    display: flex;
    align-items: center;
    padding: 8px 1rem;
    color: var(--text-color);
    font-size: 14px;
    font-weight: 400;
}

.sidebar .sub {
    margin-top: 5px;
    display: none;
    list-style: none;
}

    .sidebar .sub .sidebar-link {
        padding: 8px 1rem 8px 45px;
    }

.sidebar-link.has-child:before {
    position: absolute;
    content: '>';
    right: 1rem;
    top: 50%;
    transform: translateY(-50%) rotateZ(90deg);
    font-size: 18px;
    transition: 0.25s;
}

.sidebar-link.active, .sidebar-link:hover {
    color: var(--text-color);
    background-color: rgb(235, 235, 235);
}

    .sidebar-link.active.has-child:before {
        transform: translateY(-50%) rotateZ(-90deg);
    }

.sidebar-link i {
    font-size: 18px;
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/*responsive web menu*/
@media (max-width: 1515px) {
    #btn-menu-mobile {
        display: block;
    }

    .menu-web .menu-container__item:nth-child(11) {
        display: none;
    }
}

@media (max-width: 1415px) {
    .menu-web .menu-container__item:nth-child(10) {
        display: none;
    }
}

@media (max-width: 1300px) {
    .menu-web .menu-container__item:nth-child(9) {
        display: none;
    }
}

@media (max-width: 1200px) {
    .menu-web .menu-container__item:nth-child(8) {
        display: none;
    }
}

@media (max-width: 1015px) {
    .menu-web .menu-container__item:nth-child(7) {
        display: none;
    }
}

@media (max-width: 915px) {
    .menu-web .menu-container__item:nth-child(6) {
        display: none;
    }
}

@media (max-width: 715px) {
    .menu-web .menu-container__item:nth-child(5) {
        display: none;
    }
}

@media (max-width: 450px) {
    .menu-web {
        justify-content: space-evenly;
    }

        .menu-web .menu-container__item:nth-child(4) {
            display: none;
        }
}

@media (max-width: 768px) {
    #action-auth {
        display: none;
    }
}

@media (max-width: 535px) {
    .web-title {
        display: none;
    }
}

@media (max-width: 1000px) {
    #news-nav-container {
        display: none !important;
    }
}

/*sm*/
@media (min-width: 576px) {
    .article-item__thumbnail {
        height: 200px;
    }

    .news-sologan {
        width: 80%;
    }
}

/*md*/
@media (min-width: 768px) {
    .article-item__thumbnail {
        height: 180px;
    }

    .news-article {
        flex-direction: row;
    }

        .news-article img {
            height: 160px;
            max-width: 25%;
            width: 25%;
            margin-right: 10px;
            margin-bottom: 0;
        }
}

/*lg*/
@media (min-width: 992px) {
    .news-item {
        border: none;
        padding: 0;
    }

    .article-item__thumbnail {
        height: 180px;
    }
}


.circle-avatar {
    margin-right: 8px;
    background-color: #f7dcdc;
    color: #e72a1a;
    font-weight: bold;
    font-size: 22px;
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

    .circle-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

.VCSortableInPreviewMode img {
    max-width: 100%;
    height: auto;
    display: block;
}

button.close span {
    font-size: 25px !important;
}