/* journal */
.all-post-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

#all-post-list .post-item {
    flex: 1 1 calc(50% - 16px);
}

#all-post-list .post-item:nth-child(1),
#all-post-list .post-item:nth-child(2) {
    text-align: center;
    margin-bottom: 10%;
    margin-top: 5%;
}

.all-post-list .post-item:nth-child(1) .post-content .post-title a,
.all-post-list .post-item:nth-child(2) .post-content .post-title a {
    font-size: 48px;
    line-height: 130%;
    font-weight: 600;
}

#all-post-list .post-item:nth-child(n+3) {
    flex: 1 1 calc(25% - 16px);
    /* Từ bài viết thứ 3: bốn bài viết mỗi hàng */
}

@media screen and (max-width: 1023px) {
    #all-post-list .post-item {
        flex: 1 1 calc(50% - 16px);
        /* Mặc định: Hai bài viết mỗi hàng */
    }

    #all-post-list .post-item:nth-child(n+3) {
        flex: 1 1 calc(50% - 16px);
        /* Từ bài viết thứ 3: bốn bài viết mỗi hàng */
    }
}

@media screen and (max-width: 767px) {
    #all-post-list .post-item {
        flex: 1 1 calc(100%);
        /* Mặc định: Hai bài viết mỗi hàng */
    }

    #all-post-list .post-item:nth-child(n+3) {
        flex: 1 1 calc(100%);
        /* Từ bài viết thứ 3: bốn bài viết mỗi hàng */
    }
    

    .all-post-list .post-item:nth-child(1) .post-content .post-title a,
    .all-post-list .post-item:nth-child(2) .post-content .post-title a {
        font-size: 26px;
    }
}

.all-post-list .post-item .post-content .post-title a {
    font-weight: 500;
    display: -webkit-box;
    /* Dùng cho line-clamp */
    -webkit-line-clamp: 2;
    /* Hiển thị tối đa 2 dòng */
    -webkit-box-orient: vertical;
    /* Định hướng khối box */
    overflow: hidden;
    /* Ẩn phần nội dung vượt quá */
    text-overflow: ellipsis;
    /* Thêm dấu "..." nếu vượt quá */
    font-size: 24px;
}

.all-post-list .post-item .post-content .post-title a:hover {
    color: #144374;
}

.all-post-list .post-item .post-content .post-excerpt {
    display: -webkit-box;
    /* Dùng cho line-clamp */
    -webkit-line-clamp: 2;
    /* Hiển thị tối đa 2 dòng */
    -webkit-box-orient: vertical;
    /* Định hướng khối box */
    overflow: hidden;
    /* Ẩn phần nội dung vượt quá */
    text-overflow: ellipsis;
    /* Thêm dấu "..." nếu vượt quá */
    font-size: 17px;
}

#all-post-list .post-item .read-more a {
    font-weight: 600;
    font-size: 17px;
}

#all-post-list .post-item .read-more:hover a {
    color: #144374;
}

#all-post-list .post-item .read-more svg {
    font-weight: 600;
    margin: 0px 0px 0 5px;
    fill: none;
    stroke: currentColor;
}

#all-post-list .post-item .read-more:hover svg {
    fill: none;
    stroke: #144374;
}

.all-post-list .post-item.col-item .post-content .post-meta span:first-child {
    width: 100px;
    height: 24px;
    background-color: white;
    padding: 0 0 0 10px;
}

.all-post-list .post-item {
    width: calc(100% / 3);
    padding: 0 15px;
    margin-bottom: 30px;
    position: relative;
}

.all-post-list .post-item .post-content {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.all-post-list .post-item .post-content * {
    margin: 0px;
    font-weight: 400;
}

.all-post-list .post-item.col-item .post-content .post-meta {
    position: absolute;
    top: 28px;
    left: -23px;
    transform: rotate(90deg);
    background: white;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    margin: 10px 0 0 0;
}

.all-post-list .post-item:nth-child(n+3) .post-thumbnail a img {
    max-height: 195px;
}

.pagination {
    text-align: center;
    margin: 20px 0;
}

/* .pagination .prev,
.pagination .next {
    display: none !important;
} */

/* .pagination .page-numbers {
    display: inline-block;
    position: relative;
    width: 18px;
    height: 18px;
    line-height: 18px;
    border: 2px solid #174370;
    border-radius: 100%;
    text-indent: -9999px;
}

.pagination .page-numbers.current::after {
    position: absolute;
    display: block;
    content: '';
    width: 10px;
    height: 10px;
    background: #144374;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
} */

.pagination .page-numbers {
    padding: 8px 15px;
    background: transparent;
    border: 2px solid #632B18;
    color: #632B18;
    margin: 0 5px;
}

.pagination .page-numbers:hover {
    color: #ffffff;
    background: #174370;
    border-color: #174370;
}

.page-numbers.current {
    background: #632B18;
    color: #ffffff;
}


/* .elementor-shortcode .load-more-button {
    background-color: #632A18;
    border: 1px solid #632A18;
    border-radius: 10px;
    margin: 1% 44%;
    padding: 5px 20px;
    color: white;
    font-size: 17px;
    font-weight: 600;
    font-family: 'Poppins';
}

@media screen and (max-width: 1023px) {
    .elementor-shortcode .load-more-button {
        margin: 1% 42% !important;
    }
}

.elementor-shortcode .load-more-button:hover {
    background-color: #0E4474;
    border: 1px solid #0E4474;
}

@media screen and (max-width: 1023px) {
    .elementor-shortcode .load-more-button {
        margin: 5% 45%;
    }
}

@media screen and (max-width: 767px) {
    .elementor-shortcode .load-more-button {
        margin: 5% 45%;
    }
} */

/* portfolio */
.qodef-button.qodef-layout--filled.qodef-html--link {
    background-color: #632A18;
    border-radius: 10px;
    padding: 5px 20px;
    margin: 10% 0;
    color: white;
    font-size: 17px;
    font-weight: 600;
    font-family: 'Poppins';
}

.qodef-button.qodef-layout--filled.qodef-html--link:hover {
    background-color: #0E4474;
}

.qodef-button.qodef-layout--filled.qodef-html--link .qodef-m-text:before {
    display: none;
}

.qodef-item-layout--info-below.qodef-hover-animation--overlay .qodef-e-media-image>a:after {
    background-color: rgb(255 255 255 / 30%);
}

.qodef-portfolio-list .qodef-e-media-image img {
    aspect-ratio: 556 / 343;
    object-fit: cover;
    height: 300px;
}

.qodef-portfolio-list .qodef-e-media-image{
        
}
/* portfolio trang con*/

.qodef-portfolio-single-item {
    display: none;
}


/*phân trang porfolio*/
.qodef-m-pagination {
    margin-top: 0px;
}

/* .qodef-m-pagination .qodef-m-pagination-inner .qodef-m-pagination-items .qodef--next,
.qodef-m-pagination .qodef-m-pagination-inner .qodef-m-pagination-items .qodef--prev {
    display: none !important;
} */

/* .qodef-m-pagination-item {
    width: 18px !important;
    height: 18px !important;
    text-align: center;
    border-radius: 50%;
    border: 2px solid #174370 !important;
    margin: 5px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    text-indent: -9999px;
} */

/* .qodef-m-pagination .qodef-m-pagination-inner .qodef-m-pagination-items .qodef--active {
    color: #144374;
    border-radius: 50%;
    border: 3px solid #144374;
    position: relative;
}

.qodef-m-pagination .qodef-m-pagination-inner .qodef-m-pagination-items .qodef--active::after {
    position: absolute;
    display: block;
    content: '';
    width: 10px;
    height: 10px;
    background: #144374;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
} */

/* .qodef-m-pagination.qodef--standard .qodef-m-pagination-item:hover {
    color: white;
} */

.qodef-m-pagination.qodef--standard .qodef-m-pagination-item {
    border: 2px solid #632B18;
    border-radius: unset;
    padding: 8px 15px;
    background: transparent;
    width: auto !important;
    height: auto !important;
    line-height: 1.4em;
    font-size: 15px;
    margin: 0 5px;
}

.qodef-m-pagination.qodef--standard .qodef-m-pagination-item.qodef--prev {
    margin-right: 5px;
    min-height: 41px;
    padding: 8px 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid #632B18 !important;
}

.qodef-m-pagination.qodef--standard .qodef-m-pagination-item.qodef--next {
    margin-left: 5px;
    min-height: 41px;
    padding: 8px 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid #632B18 !important;
}

.qodef-m-pagination.qodef--standard .qodef-m-pagination-item.qodef--prev:hover,
.qodef-m-pagination.qodef--standard .qodef-m-pagination-item.qodef--next:hover {
    border-color: #174370 !important;
}

.qodef-m-pagination.qodef--standard .qodef-m-pagination-item.qodef--prev:hover svg,
.qodef-m-pagination.qodef--standard .qodef-m-pagination-item.qodef--next:hover svg {
    transform: none !important;
}

.qodef-m-pagination.qodef--standard .qodef-m-pagination-item.qodef--active {
    border: 2px solid #632B18;
    color: #ffffff;
    border-radius: unset !important;
    background: #632B18;
}

.qodef-m-pagination.qodef--standard .qodef-m-pagination-item:hover {
    border: 2px solid #174370;
    color: #ffffff;
    border-radius: unset !important;
    background: #174370;
}

.qodef-shortcode .qodef-portfolio-list .qodef-e-inner .qodef-e-bottom-holder a {
    font-size: 17px;
    color: #000000;
    line-height: 27px;
    font-weight: 300;
}

.qodef-portfolio-list .qodef-e-bottom-holder {
    margin-top: 20px;
}

.widget .tagcloud,
.widget .wp-block-tag-cloud {
    display: grid;
    align-content: center;
    justify-content: start;
}

.widget .tagcloud a:after,
.widget .wp-block-tag-cloud a:after {
    position: absolute;
    display: inline-block;
    content: "" !important;
    margin: 0 0 0 8px;
}

.widget .wc-block-product-categories .wc-block-product-categories-list-item-count {
    display: none;
}

/* journal trang con*/
.breadcrumb-journal-single {
    padding: 150px 0px 50px 0px;
    font-size: 25px;
    max-width: 1600px;
    width: calc(100% - 80px);
    margin: 0 auto;
}

.breadcrumb-journal-single a {
    margin: 0 20px 0 0;
}

.container-journal-single {
    display: flex;
    max-width: 1600px;
    width: calc(100% - 80px);
    margin: 0 auto;
    padding: 0;
}

.container-journal-single .title-related-posts{
    color: #0E4474;
    font-family: "PoppinSVN", Sans-serif;
    font-size: 60px;
    font-weight: 700;
    line-height: 130%;
}


.container-journal-single .title-related-posts::after {
    content: "";
    display: block;
    width: 200px;
    height: 5px;
    background-color: #174370;
    margin: 0 0 20px 0;
}

.container-journal-single article {
    flex: 8;
    padding: 0px 20px 0px 0px;
}

.container-journal-single article .title h2 {
    font-size: 60px;
    color: #174370;
    font-weight: bold;
    padding: 0;
    margin: 0;
}

.container-journal-single article .thumbnail {
    margin: 20px 0;
}

.container-journal-single .related-posts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.container-journal-single .related-post {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 10px;
    background-color: #f9f9f9;
}

.container-journal-single .related-post .content {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 17px;
    text-align: start;
    font-weight: 200;
}

.container-journal-single .related-thumbnail {
    width: 100%;
}

.container-journal-single .related-thumbnail img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    margin-bottom: 15px;
}

.container-journal-single .related-content {
    text-align: center;
}

.container-journal-single .related-content h3 {
    font-size: 18px;
    margin: 10px 0;
    text-align: start;
}

.container-journal-single .related-content h3 a {
    /* display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical; */
    text-decoration: none;
    color: #174370;
    font-size: 24px;
}

.container-journal-single .related-content a:hover {
    text-decoration: underline;
}

.container-journal-single .related-category p {
    font-size: 17px;
    color: #555;
    text-align: start;
}

.container-journal-single aside {
    flex: 2;
    padding: 0px 0px 0px 20px;
}

.container-journal-single aside section h2 {
    font-size: 36px;
    font-weight: 600;
    padding: 0;
    margin: 0;
    color: #632B18;
}

.container-journal-single aside section ul li {
    list-style: none;
    font-size: 17px;
    font-weight: 400;
    line-height: 250%;
}

.container-journal-single aside section ul li a:hover {
    color: #174370;
}

.container-journal-single aside .search-container {
    position: relative;
}

.container-journal-single aside #search-results {
    display: none;
    position: absolute;
    top: 80%;
    left: 0;
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #ddd;
    background-color: #fff;
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.1);
}

.container-journal-single aside .search-result-item {
    margin-bottom: 10px;
}

.container-journal-single aside .search-result-item img {
    max-width: 50px;
    margin-right: 10px;
    vertical-align: middle;
}

.container-journal-single aside .search-result-item a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
}

.container-journal-single aside .search-result-item a:hover {
    color: #0073e6;
}

@media screen and (max-width: 1200px) {
    .container-journal-single {
        padding: 0 20px;
    }

    .container-journal-single article {
        flex: 7;
    }

    .container-journal-single aside {
        flex: 3;
    }
}

@media screen and (min-width: 1440px) {
    .container-journal-single article {
        flex: 8;
    }

    .container-journal-single aside {
        flex: 2;
    }

    .related-posts {
        grid-template-columns: 1fr 1fr;
    }

    .container-journal-single article .title h2 {
        font-size: 56px;
    }

    .container-journal-single aside section h2 {
        font-size: 32px;
    }

    .related-thumbnail img {
        height: 250px;
    }
}

@media screen and (max-width: 768px) {
    .container-journal-single {
        flex-direction: column;
        padding: 0;
        width: calc(100% - 30px);
    }

    .container-journal-single article {
        flex: 1;
        margin-bottom: 20px;
        padding: 0;
    }

    .container-journal-single aside {
        flex: 1;
        padding: 0;
    }

    .container-journal-single .related-posts {
        grid-template-columns: 1fr;
    }

    .related-thumbnail img {
        height: 250px;
    }

    .container-journal-single article .title h2 {
        font-size: 32px;
    }

    .container-journal-single aside section h2 {
        font-size: 28px;
    }
}

@media screen and (max-width: 480px) {
    .breadcrumb-journal-single {
        padding: 96px 0 10px 0;
        font-size: 14px;
        width: calc(100% - 30px);
    }

    .container-journal-single article .title h2 {
        font-size: 24px;
    }

    .container-journal-single .related-thumbnail img {
        height: 200px;
    }

    .container-journal-single .related-content h3 {
        font-size: 16px;
    }

    .container-journal-single .related-category p {
        font-size: 12px;
    }
}

@media only screen and (max-width: 1440px) {
    .qodef-grid.qodef-gutter--huge {
        width: 100%;
        padding: 100px 40px;
        --qode-columns-col-gap: 60px;
    }
}

@media only screen and (max-width: 768px) {
    .qodef-grid.qodef-gutter--huge {
        padding: 100px 15px;
        --qode-columns-col-gap: 30px;
    }
}

.widget .tagcloud a {
    font-size: 15px !important;
    font-family: Poppins, sans-serif;
    font-weight: 400;
    line-height: 1;
}

.follow-us {
    padding: 5px 10px !important;
    background: #632B18;
    color: #ffffff;
    border-radius: 0;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    font-family: Poppins, sans-serif;
    font-size: 15px;
}

.follow-us:hover {
    background: #174370;
}

.follow-us::after {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23fff' stroke-width='2'%3E%3Cpath d='M21.0815 7.84375H0.910156V9.84375H21.0815V7.84375Z'%3E%3C/path%3E%3Cpath d='M14.4541 17.0293L13.0898 15.5645L20.3135 8.85156L13.0898 2.13672L14.4541 0.671875L23.2501 8.85156L14.4541 17.0293Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E");
    margin: 4px 0 0 10px;
    width: 16px;
    height: 16px;
}

/*End journal trang con*/

/* Agency */
.container_the_team .list_icon_the_team {
    display: none;
    background-color: white;
}

/*.container_the_team .the_team_title{*/
/*     display: none;*/
/*}*/

.container_the_team:hover .list_icon_the_team {
    display: block;
    background-color: white;
}

.container_the_team:hover .the_team_title {
    display: block;
}

/*End Agency */

/* contact us css form */
.contact-form {
    font-family: "Poppins", Sans-serif;
    max-width: 600px;
    margin: 0 auto;
}

.contact-form label {
    display: block;
    font-weight: 600;
    font-family: "Poppins", Sans-serif;
    font-size: 17px;
    color: #000;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: "Poppins", Sans-serif;
    font-size: 1rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    padding: 10px 15px !important;
}

.contact-form button {
    background-color: #632A18 !important;
    color: white;
    padding: 0.5rem 1.25rem;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-family: "Poppins", Sans-serif;
    font-weight: bold;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.contact-form-group label {
    margin-bottom: 5px;
}

.contact-form button {
    background-color: #007bff;
    color: white;
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: "Poppins", Sans-serif;
    font-weight: bold;
    font-size: 1rem;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
}

.contact-form button::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23fff' stroke-width='2'%3E%3Cpath d='M21.0815 7.84375H0.910156V9.84375H21.0815V7.84375Z'%3E%3C/path%3E%3Cpath d='M14.4541 17.0293L13.0898 15.5645L20.3135 8.85156L13.0898 2.13672L14.4541 0.671875L23.2501 8.85156L14.4541 17.0293Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    margin: 4px 0 0 0;
}


.contact-form button:hover {
    background-color: #0E4474 !important;
    ;
}

.contact-form .full-width {
    width: 100%;
}

.contact-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.qodef-qi-contact-form-7 form div {
    margin: 5px 0;
}

.contact-form-group {
    flex: 1;
    min-width: 200px;
}

.contact-form-group.full-width {
    width: 100%;
    padding: 5px 0;
}

.contact-form input,
.contact-form textarea {
    margin-bottom: 1rem;
}

.wpcf7-validates-as-required {
    border-color: #28a745;
}

.wpcf7-not-valid {
    border-color: #dc3545;
}

.contact-form .wpcf7-response-output {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    display: none;
}

.contact-form button[type=submit]:not(.qodef-layout--textual) .qodef-m-text:before {
    display: none;
}

/*end contact us css form */
/* Agency */

.mission-reputyze {
    display: flex;
    width: 100%;
    justify-content: space-around;
}

.mission-reputyze .item {
    flex: 1;
}

.mission-reputyze .item:nth-child(1) {
    z-index: 5;
}

.mission-reputyze .item:nth-child(2) {
    z-index: 4;
}

.mission-reputyze .item:nth-child(3) {
    z-index: 3;
}

.mission-reputyze .item:nth-child(4) {
    z-index: 2;
}

.mission-reputyze .item:nth-child(5) {
    z-index: 1;
}

.mission-reputyze .item svg {
    width: 107%;
    height: auto;
}

.mission-reputyze .item p {
    font-family: "PoppinSVN", Sans-serif;
    padding: 0;
    margin: 0 10px;
    color: #0e4474;
    font-size: 25px;
    text-align: center;
    font-weight: 100;
}

.mission-reputyze .item p .mission-number {
    font-size: 27px;
    font-weight: bold;
}

@media screen and (max-width: 1024px) {
    .mission-reputyze {
        flex-wrap: wrap;
        justify-content: center;
    }

    .mission-reputyze .item {
        width: 45%;
        margin-bottom: 20px;
    }

    .mission-reputyze .item p {
        font-size: 18px;
    }
}

@media screen and (max-width: 768px) {
    .mission-reputyze {
        flex-direction: column;
        align-items: center;
    }

    .mission-reputyze .item {
        width: 90%;
        margin-bottom: 15px;
    }

    .mission-reputyze .item p {
        font-size: 16px;
    }
}

/*end Agency */

/* search  */

#ajax-search-container {
    margin: 0 50px;
    display: flex;
    flex-direction: column;
}

#ajax-search-container .input {
    position: relative;
    display: flex;
    align-items: center;
    height: 95px;
}

#ajax-search-container .input input {
    font-size: 20px;
    padding: 18px 20px;
    margin: 0px;
    border: 1px solid #e8e8e9;
    font-family: "PoppinSVN", Sans-serif;
    height: 100%;
}

#ajax-search-container .ajax-search-results {
    width: 100%;
    margin-top: 15px; 
    display: flex;
    flex-direction: column;
    max-height: 500px;
    overflow-y: auto;
}

#ajax-search-container .search-result-item {
    /* margin-bottom: 10px;  */
}

#ajax-search-container .search-result-item img {
    max-width: 100px;
    margin-right: 10px;
}

#ajax-search-container .search-result-item h3 {
    margin: 0;
    font-size: 16px;
}

#ajax-search-container #ajax-search-close {
    position: absolute;
    background-color: #622916;
    height: 100%;
    padding: 0 41px;
    color: white;
    font-size: 20px;
    font-weight: 600;
    right: 0;
    top: 0;
}

#ajax-search-container #ajax-search-close:hover {
    background-color: #174370;
}

.elementor-popup-modal .dialog-close-button svg{
    display: none;
}


.qodef-e-info>:not(.qodef-e-tags){
    font-family: "PoppinSVN", Sans-serif;   
}

h4.qodef-e-title.entry-title{
    margin: 0 0 10px 0;
}

h4.qodef-e-title.entry-title a:hover{
    color: #174370;
}