/* css cho phần footer */

#footer {
    background-color: #ecf2f6;
    padding: 50px 30px;
}

#footer .footer_asfy {
    display: flex;
    flex-direction: row;
    padding-left: 0;
    padding-right: 0;
    margin: 0 12px;
    justify-content: space-between;
}


#footer .footer_asfy .footer__item {
    flex-basis: 25%;
}


#footer .footer_asfy .asfy__footer__two {
    flex-basis: 15%;
}

#footer .footer_asfy .asfy__footer__four {
    flex-basis: 18%;
}

.fb_iframe_widget iframe {
    border-radius: 10px;
}

#footer .footer_asfy .asfy__footer__five {
    flex-basis: 32%;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.footer__asfy__map {
    display: none;
}

.asfy__footer__one h2.name_bb {
    font-size: 15px;
    margin-bottom: 5px !important;
}

@media screen and (max-width: 768px) {
    #footer .footer_asfy .asfy__footer__five {
        justify-content: start;
        overflow: visible;
    }

    #footer .footer_asfy .footer__item {
        width: 100%;
    }

    .asfy__footer__five iframe {
        width: 96%;
    }

    .fb_iframe_widget iframe {
        width: 300px !important;
    }

    #footer .footer_asfy .asfy__footer__four {
        margin-bottom: 20px;
    }
}

@media screen and (min-width: 800px) and (max-width: 1024px) {
    #footer .footer_asfy .asfy__footer__five {
        display: none;
    }

    .footer__asfy__map {
        display: block;
    }

    #footer .footer_asfy .footer__item {
        flex-basis: 25%;
    }

    .footer__asfy__map iframe {
        width: 100%;
    }
}

.asfy__footer__one h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #213b55;
    margin-bottom: unset;
}

.asfy__footer__one .logo_name {
    display: flex;

}

.asfy__footer__one .logo_name h2 {
    margin-left: 4px;
    color: #4285f4;
}

.asfy__footer__one .info_contact {
    margin-left: 4px;
    margin-top: 19px;
    color: #213b55;
}

.asfy__footer__one .info_contact a {
    color: #213b55;
    text-decoration: none;
    padding-bottom: 5px;
}

.asfy__footer__one .info_contact a:hover {
    text-decoration: underline;
}



.footer__item h2 {
    font-size: 1rem;
    font-weight: 700;
    color: #213b55;
    font-optical-sizing: auto;
    font-style: normal;
    margin-top: 10px !important;

}

.asfy__footer__two .info__footer {
    margin-top: 27px;
    padding: 0;

}

.asfy__footer__two .info__footer li {
    list-style: none;
}

.asfy__footer__two .info__footer li a {

    color: rgb(33, 59, 85);
    text-decoration: none;
}

.asfy__footer__three ul {
    margin-top: 27px;
    padding: 0;
}

.asfy__footer__three li {
    list-style: none;
}

.asfy__footer__three b {
    color: #213b55;
}


.asfy__footer__three,
.asfy__footer__two {
    display: flex;
    justify-content: center;
}


#footer b {
    font-weight: 500;
}


.asfy_copyright span {
    font-weight: 500;
}

.asfy_copyright p {

    margin: 0 !important;
    padding: 5px 20px;
    text-align: center;
    background-color: #e1e8ed;
    color: #213b55;
    font-size: 14px;
}


@media screen and (max-width: 756px) {

    #footer {
        padding: 30px 20px;
    }

    #footer .footer_asfy {
        flex-direction: column;
    }

    .asfy__footer__three,
    .asfy__footer__two {
        display: block;
    }

}

#scroll_btn {
    display: none;
    position: fixed;
    right: 23px;
    bottom: 28px;
    z-index: 1000;
    padding: 5px 10px;
    /* background-color: #24A0FE; */
    background-color: rgb(0, 120, 200);
    height: 50px;
    width: 50px;
    border-radius: 50%;
    border: none;
    outline: none;
    font-size: 20px;
    color: white;
}

#scroll_btn img {
    transform: rotate(180deg);
    width: 30px;
}

/* css cho modal contact  */

body {
    position: relative;
}

.asfy__modal__contact {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    /* Ẩn modal mặc định */
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.4s ease forwards;
    /* Hiệu ứng mờ khi hiện modal */
}

.asfy__modal__contact .modal__overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    /* Nền đen mờ */
    opacity: 0;
    animation: fadeInOverlay 0.4s ease forwards;
    /* Hiệu ứng fade cho overlay */
}

.asfy__modal__contact .modal__body {
    position: relative;
    width: 800px;
    height: 620px;
    background-color: #fff;
    margin: auto;
    z-index: 1;
    border-radius: 8px;
    /* Bo góc lớn hơn cho mềm mại */
    overflow: hidden;
    transform: scale(0.8);
    /* Bắt đầu từ kích thước nhỏ */
    opacity: 0;
    animation: popUp 0.4s ease-out forwards;
    /* Hiệu ứng nổi lên từ từ */
}

@media screen and (min-width: 1920px) {
    .asfy__modal__contact .modal__body {
        height: 643px;
    }
}

.asfy__modal__contact .modal__body .modal__inner {
    min-height: 500px;
    height: 100%;
}

.asfy__modal__contact .modal__inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.asfy__modal__contact .modal__body .remove-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    color: #5f6368;
    cursor: pointer;
    transition: color 0.3s ease;
    /* Hiệu ứng hover */
}

.asfy__modal__contact .modal__body .remove-modal:hover {
    color: red;
}

.asfy__modal__contact .modal__body .modal__inner .box__form__input h2 {
    font-size: 1.5rem;
    position: relative;
    display: inline-block;
    color: #213b55;
}

.asfy__modal__contact .modal__body .modal__inner .box__form__input .form__contact {
    padding: 0 12px;
}

/* .asfy__modal__contact .modal__body .modal__inner .box__form__input h2::after {
    content: "";
    width: 100%;
    height: 2px;
    background-color: #3A4F66;
    position: absolute;
    left: 0;
    bottom: -5px;
} */

.asfy__modal__contact .modal__body .modal__inner .box__form__input {
    margin-left: 0;
    /* Căn chỉnh lại margin */
    margin-top: 25px;
    color: #213b55;
}

.asfy__modal__contact.active {
    display: flex;
    /* Hiển thị modal khi có class 'active' */
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes fadeInOverlay {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes popUp {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@media screen and (max-width: 800px) {
    .asfy__modal__contact {
        padding: 0 20px;
    }

    .asfy__modal__contact .form__contact {
        padding: 0 30px;
    }
}

@media screen and (min-width: 900px) {
    .box__form__input {
        margin-left: -15px !important;
    }
}

.asfy__modal__contact .logo-modal {
    position: absolute;
    top: 3px;
    left: 5px;
}

.asfy__modal__contact .logo-modal img {
    width: 44px;
}

.modal-btn-send {
    width: 100%;
    border-radius: 5px;
    padding: 5px 10px;
    font-weight: 700;
    background-color: #50dcaa;
    border: none;
    box-sizing: border-box;
    box-shadow: none;
    font-family: inherit;
    font-size: 16px !important;
    line-height: 2rem;
    color: rgb(33, 59, 85);
    pointer-events: auto;
    transition: text 0.05s cubic-bezier(0.25, 0.46, 0.45, 0.94), background-color 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.info-req {
    display: none;
}

.user__login {
    position: relative;
    z-index: 99;
}

.user__login .choose_user {
    position: absolute;
    width: 243px;
    border: 1px solid transparent;
    top: 61px;
    right: -5px;
    border-radius: 10px;
    opacity: 0;
    /* Bắt đầu ở trạng thái ẩn */
    transform: translateY(20px);
    /* Đưa phần tử xuống 20px */
    transition: opacity 0.3s ease, transform 0.3s ease;
    /* Hiệu ứng chuyển tiếp */
    pointer-events: none;
    /* Ngăn chặn sự kiện chuột khi ẩn */
}

.user__login .choose_user ul {
    margin: 0;
    padding: 10px 10px;
}

.user__login .choose_user ul li {
    list-style: none;
    color: rgb(0, 120, 200);
    padding: 5px 10px;
}

.user__login .choose_user ul li:hover {
    cursor: pointer;
}

.user__login .choose_user ul li svg {
    width: 18px;
    fill: rgb(0, 120, 200);
}

.user__login .choose_user::before {
    content: "";
    border-width: 20px 25px;
    border-style: solid;
    border-color: transparent transparent rgb(248, 249, 250) transparent;
    position: absolute;
    right: 2px;
    top: -35px;
}

.user__login img:hover {
    cursor: pointer;
}

.user__login:hover .choose_user {
    opacity: 1;
    /* Hiện dần */
    transform: translateY(0);
    /* Trở về vị trí ban đầu */
    pointer-events: auto;
    /* Cho phép sự kiện chuột khi hiển thị */
}


.user__login .choose_user ul::before {
    content: "";
    width: 100%;
    height: 50px;
    position: absolute;
    right: 2px;
    top: -40px;
}

@media screen and (max-width: 992px) {
    .user__login {
        display: none;
    }
}

.user__login__mobi ul {
    margin: 0;
    padding: 0;

}

.user__login__mobi ul li {
    list-style: none;
    display: inline-block;
    padding: 10px 11px;

}

.user__login__mobi ul li:hover {
    cursor: pointer;
}

.user__login__mobi {
    text-align: center;
    margin-top: 20px;
}

.user__login__mobi img {
    width: 40px;
    border-radius: 30px;
    margin-left: 41px;
}

@media screen and (max-width: 360px) {
    .user__login__mobi ul {
        text-align: justify;
        margin-left: -10px;
    }
}


@media screen and (max-width: 480px) {
    .login-redirect {
        text-align: left !important;
    }
}


.loader {
    width: 24px;
    height: 24px;
    /* line-height: 10px; */
    border-radius: 50%;
    display: inline-block;
    border-top: 3px solid #FFF;
    border-right: 3px solid transparent;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
    padding-right: 10px;
    margin: -7px 13px;
}

.loader::after {
    content: '';
    box-sizing: border-box;
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    /* Kích thước nhỏ hơn */
    height: 24px;
    /* Kích thước nhỏ hơn */
    border-radius: 50%;
    border-bottom: 3px solid #FF3D00;
    /* Giảm độ dày */
    border-left: 3px solid transparent;
    /* Giảm độ dày */
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.submit-contact .loader {
    display: none;
}



/* style cho khối đối tác của asfy  */


.asfy__love__partner {
    width: 100%;
    height: 100%;
    background-color: rgb(244, 180, 0);
    padding: 30px 0;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.asfy__love__partner .partner__head h2 {
    font-family: "AffirmPosition", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
    padding: 10px 0px;
    font-size: 40px;
    position: relative;
    color: #FFFFFF;
    text-align: center;
}

.asfy__love__partner .partner__head p {
    width: 833px;
    color: #FFFFFF;
    font-family: "AffirmPosition", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    padding: 10px 0px;
    font-size: 18px;
    text-align: center;
}


.partner__body {
    padding: 20px;
    max-width: 100%;
}

.we-partner .slick-slide {
    display: flex !important;
    justify-content: center;
    /* Căn giữa nội dung slide */
    align-items: center;
    border: 2px solid #FFFFFF;
    padding: 5px 0px;
    margin: 0 15px;
    height: 130px;
    border-radius: 10px;
    background-color: #FFFFFF;
}

.we-partner .slick-slide:hover {
    cursor: grab;
}

.we-partner img {
    /* padding: 5px 20px; */
    max-width: 40%;
    /* Đặt kích thước cố định cho logo */
    max-height: 60px;
    object-fit: contain;
    /* Đảm bảo ảnh giữ đúng tỷ lệ */
    /* border: 1px solid #FFFFFF !important; */
}

.asfy__love__partner .view_quick {
    margin-top: 15px;
    box-sizing: border-box;
    box-shadow: none;
    border-radius: 30px;
    font-family: inherit;
    font-weight: bold;
    line-height: 2rem;
    background-color: white;
    border: none;
    color: rgb(33, 59, 85);
    padding: 5px 50px;
    pointer-events: auto;
    transition: text 0.05s cubic-bezier(0.25, 0.46, 0.45, 0.94), background-color 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}


@keyframes pop_partner {
    0% {
        transform: scale(1);
        /* Bắt đầu ở kích thước ban đầu */
    }

    100% {
        transform: scale(1.5);
        /* Phóng to 1.5 lần */
    }
}

.we-partner img {
    width: 300px;
    /* Chiều rộng ảnh */
}

/* Lớp animation */
.animate {
    animation: pop_partner 1s ease-in-out forwards;
    /* Áp dụng animation */
    animation-delay: 0.5s;
    /* Thời gian trễ */
}


@media screen and (max-width: 800px) {
    .asfy__love__partner .partner__head h2 {
        font-size: 32px;
        line-height: 44px;
    }

    .asfy__love__partner .partner__head p {
        font-size: 16px;
        width: 100%;
        text-align: justify;
    }
}


.post_content__asfy {
    border-bottom: 1px dashed #bdc3c7;
}


/* style thêm header  */

/* #header .header_item__left #logo_site::before {
    position: absolute;
    content: "ASFY TECH";
    right: -56px;
    top: 29%;
    width: 100px;
    color: #4285f4;
    font-weight: 700;
    font-size: 1rem;
} */

@media screen and (max-width: 1024px) {
    #header .header_item__left #logo_site::before {
        right: -115px;
    }
}


@media screen and (max-width: 431px) {
    #header .header_item__left #logo_site::before {
        right: -128px !important;
    }
}

/* // style bài viết liên quan  */

.post__relate__to {
    margin-top: 33px;
    padding-left: 30px;
    position: relative;
    transition: all 0.3s;
    max-width: 388.8px;
}

.post__asfy__relate__item img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: cover;
}

.post__asfy__relate__item .relate__img {
    height: 250px;
    border: 10px;
}

.post__relate__head {
    padding: 0.2rem 1.875rem;
    background-color: #213b55;
    color: #FFFFFF;
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 25px;
    border-radius: 3px;
    position: relative;
}

.post__relate__head .arrow__white {
    position: absolute;
    right: 6px;
}

.post__relate__head .arrow__white svg {
    fill: rgba(255, 255, 255, 0.675);
    width: 30px;
    height: 30px;
    margin-bottom: 5px;
}


.post__relate__title {
    line-height: 20px;
    margin: 15px 0;
}

.post__relate__title a {
    text-decoration: none;
    font-size: 20px;
    font-weight: 700;
    color: rgb(17, 24, 39);
}

.slick-dots {
    padding-left: unset;
    display: flex;
    justify-content: center;
}

.slick-dots li {
    list-style: none;
}

.slick-dots li button {
    background-color: #ccc;
    /* Màu nền của dot */
    border: none;
    /* Xóa viền button */
    border-radius: 50%;
    /* Biến button thành hình tròn */
    width: 10px;
    /* Kích thước dot */
    height: 10px;
    /* Kích thước dot */
    padding: 0;
    /* Xóa padding của button */
    margin: 0 5px;
    /* Khoảng cách giữa các dot */
    cursor: pointer;
}

.slick-dots li.slick-active button {
    background-color: #333;
    /* Màu dot khi đang active */
}


.slick-dots li button {
    color: transparent;
    /* Ẩn số bằng cách làm cho màu văn bản trở nên trong suốt */
    font-size: 0;
    /* Đặt kích thước chữ thành 0 để không chiếm diện tích */
}

.slick-dots li button::before {
    content: '';
    /* Đặt nội dung là rỗng */
    display: block;
    background-color: #ccc;
    /* Màu của dot */
    width: 10px;
    height: 10px;
    border-radius: 50%;
    /* Làm dot thành hình tròn */
    margin: 0 auto;
    /* Căn giữa dot */
}

.slick-dots li.slick-active button::before {
    background-color: #333;
    /* Màu của dot khi active */
}

.post__relate__to {
    box-sizing: border-box;
    /* Đảm bảo padding và border nằm trong chiều rộng */
}

.post__relate__fixed {
    position: fixed;
    top: 0;
    left: 0;
    /* Đặt left về 0 nếu bạn muốn nó luôn bám vào bên trái */
    z-index: 1000;
    margin-top: 5px;
}

@media screen and (max-width: 1024px) {
    .post__relate__head {
        font-size: 1.1rem;
    }
}

.list__blog__relate .slick-slide {
    margin: 0 10px;
    /* Thay đổi 10px thành giá trị bạn mong muốn */
}

#list__blog .avatar__post img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

#list__blog .my_flex {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.list__blog__ft .slick-list {
    padding-bottom: 20px;
}

#list__blog .title__feature {
    padding-right: 15px;
}

#list__blog .avatar__post {
    padding-right: 15px;
}

#list__blog .title__feature h2 {
    font-size: 1rem;
    line-height: 20px;
}


#list__blog .title__feature h2 a {
    text-decoration: none;
}


.blog__relate__mobi {
    display: none;
}



@media screen and (max-width: 992px) {

    .blog__relate__mobi {
        display: block;
    }

    .post__relate__to {
        display: none !important;
    }

    .post__asfy {
        width: 100% !important;
    }


    .list__blog__relate .slick-slide {
        width: 100%;
        max-width: 100%;
        /* Đảm bảo không vượt quá 100% */
        overflow: hidden;
        /* Ẩn cuộn ngang nếu cần */
    }


    .list__blog__relate .slick-slide {
        width: 100%;
        /* Đảm bảo mỗi slide chiếm 100% chiều rộng của carousel */
        box-sizing: border-box;
        /* Đảm bảo padding/margin không ảnh hưởng đến kích thước */
    }

}

@media (max-width: 768px) {
    .list__blog__relate .slick-slide {
        width: 100%;
        /* Đảm bảo mỗi slide chiếm 100% chiều rộng */
    }
}


.featured_article__relate {
    width: 100%;
}

.list__blog__relate .slick-list {
    margin-left: 8px;
}


@media screen and (max-width: 567px) {
    /* .affirm_position__content button {
        margin-left: -10px;
    } */
}


/* style cho phần tìm kiến nội dung  */


#overlay__main__asfy {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(101, 108, 133, .8);
    display: none;
}

#overlay__main__asfy:hover {
    cursor: pointer;
}

#search__main__asfy {
    position: absolute;
    top: 2%;
    left: 0;
    bottom: 0;
    right: 0;
    display: none;
    z-index: 1000;
}

#search__main__asfy:hover {
    cursor: pointer;
}


#search__main__asfy .sM__asfy {
    position: relative;
    width: 560px;
    height: auto;
    background-color: rgb(245, 246, 247);
    margin: auto;
    z-index: 1;
    border-radius: 5px;
    padding: 10px 0;
}

.sM__asfy .form_search {
    display: flex;
    justify-content: center;
}

.sM__asfy .form_search button {
    border: none;
    outline: none;
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 2;
    background: none;
}

#search__main__asfy .sM__asfy .min-480px {
    height: 480px;
    overflow: auto;
    padding-right: 10px;
}

.sM__asfy .form_search input {
    border: 3px solid #4285f4;
    padding: 10px 40px;
    width: 95%;
    position: relative;
    border-radius: 5px;
    color: #3A4F66;
}

@media screen and (max-width: 430px) {
    .sM__asfy .form_search input {
        padding: 10px 50px !important;
    }

}

.sM__asfy .form_search input:focus {
    outline: none;
}

.sM__asfy .list_recent {
    padding: 10px 17px;
    margin-bottom: 15px;
}


.sM__asfy .list_recent .title {
    font-weight: 600;
    color: #213b55;
    margin-bottom: 10px;
}

.sM__asfy #show__search {
    display: none;
}

.sM__asfy .list_recent .recent__item {
    padding: 15px 10px;
    background-color: rgb(255, 255, 255);
    color: #444950;
    display: flex;
    flex-direction: row;
    align-items: center;
    border-radius: 5px;
    margin-bottom: 10px;
}

.sM__asfy .list_recent .recent__item span {
    padding-right: 5px;
}

.sM__asfy .list_recent .recent__item:hover {
    cursor: pointer;
    background-color: #0078c8;
    color: #FFFFFF;
}



.sM__asfy .form_search button svg {
    fill: #4285f4;
}


.add__info {
    background-color: rgb(255, 255, 255);
    padding: 10px 20px;
    box-shadow: rgba(9, 30, 66, 0.25) 0px 4px 8px -2px, rgba(9, 30, 66, 0.08) 0px 0px 0px 1px;
    margin-bottom: -10px;
    border-radius: 5px;
}

.add__info:hover {
    cursor: grab;
}

.add__info .search__by {
    width: 30px;
}

.add__info span.info__author {
    margin-top: 5px;
    padding-right: 10px;
    font-weight: 500;
    font-size: 13px;
}

.add__info .info_auth {
    /* display: flex;
    justify-content: end; */
    background-color: #FFFFFF !important;
}

.add__info button {
    border: none;
    border-radius: 6px;
    background-color: #e1e5eb;
    color: #969faf;
    padding-bottom: 3px;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 3px 6px;
}

.add__info .note__method {
    margin-top: 5px;
    padding-left: 5px;
    font-weight: 500;
    font-size: 13px;
}


@media screen and (max-width: 992px) {
    #search__main__asfy .sM__asfy {
        width: 100%;
    }

    .add__info .info__mt {
        display: none;
    }

    #search__main__asfy {
        padding: 0 10px;
    }
}

.info_auth .auth__container {
    display: flex;
    flex-direction: row;
    justify-content: end;
}

.asfy__modal__contact .image-container{
    background-color:  #FFFFFF !important;
}