/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/
/* Tùy chỉnh Footer */
.xc-footer h5.widget-title {
    margin-bottom: 20px;
}

.section.xc-footer,
.absolute-footer.dark {
    border-top: 1px solid #33343a;
}

.absolute-footer.dark {
    color: rgba(255, 255, 255, .5);
    padding: 20px;
}

/* Tiêu đề dùng chung cho các Section (Section Heading) */
.xc-heading {
    text-align: center;
    margin-bottom: 30px;
}
p.xc-sub-title {
    display: inline-block;
    background: rgba(254, 132, 35, 0.1);
    padding: 2px 10px;
    border: 1px solid #fe8423;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #fe8423;
    margin-bottom: 10px;
    position: relative;
    line-height: 1.5;
}
h2.xc-section-title {
    color: #1b1d21;
    font-family: "Inter", sans-serif;
    font-weight: 700;
    font-size: 2.24em; /* Tương đương 140% của 1.6em */
    line-height: 1.3;
    margin-top: 0;
    margin-bottom: 0;
    text-transform: uppercase;
}
h2.xc-section-title.c-white {
    color: #ffffff;
}
/* Gỡ bỏ viền chia cột mặc định của flatsome */
@media screen and (min-width: 850px) {
    .row-divided > .col + .col:not(.large-12) {
        border-left: none !important;
    }
}

/* Tùy chỉnh Archive Blog */
.blog-archive .archive-page-header,
.blog-single .archive-page-header {
    padding-top: 154px;
    padding-bottom: 154px;
    background-image: url('./assets/images/pheader-about-us.jpg'); /* Đổi URL ảnh nền nếu cần */
    background-size: cover;
    background-position: center;
    position: relative;
    color: #fff;
    margin-bottom: 30px;
}
.blog-archive .archive-page-header::before,
.blog-single .archive-page-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5); /* Lớp phủ mờ tối */
}
.blog-archive .archive-page-header .row,
.blog-single .archive-page-header .row {
    position: relative;
    z-index: 1;
}
.blog-archive .archive-page-header h1.page-title,
.blog-single .archive-page-header h1.page-title {
    color: #fff;
    text-transform: none;
    font-size: 2.5em;
    text-align: left;
}

/* Post List */
.blog-archive .box-text {
    text-align: left !important;
}
.blog-archive .box-blog-post .is-divider,
.xc-home-blog .box-blog-post .is-divider {
    margin-top: 0;
    margin-bottom: 15px;
    height: 1px;
    max-width: 100%;
}
.blog-archive .box-text a:not(.button), 
.blog-archive .box-text h5,
.xc-home-blog .box-text a:not(.button), 
.xc-home-blog .box-text h5 {
    font-size: 18px;
    line-height: 1.3;
    margin-bottom: 1.1em;
    margin-top: .1em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: calc(1.3em * 2);
}

/* Tùy chỉnh Blog Item và Button trong Home Blog */
.xc-home-blog .box-image {
    border-radius: 6%;
    overflow: hidden;
}
.xc-home-blog .button.primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0px 30px;
    background-color: #015fa9 !important;
    color: #ffffff !important;
    border: none !important;
    text-decoration: none;
    font-weight: bold;
    animation: bounce 1s infinite;
    transition: background-color 0.3s;
}
.xc-home-blog .button.primary:hover {
    background-color: #013f7f !important;
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Sidebar */
.blog-archive .large-3 {
    padding-left: 0;
}
span.widget-title {
    margin-bottom: 30px;
    font-size: 20px;
    font-family: "inter", sans-serif;
    letter-spacing: 0;
    text-transform: none;
    color: #272933;
    display: block;
    padding-bottom: 15px;
    border-bottom: 2px solid #e5e5e5;
    position: relative;
}
.widget .is-divider {
    margin-top: -32px;
    right: 29px;
    position: absolute;
    background: #ff892a;
    height: 2px;
    max-width: 52px;
}
.widget_search input {
    border-radius: 5px;
    box-shadow: none;
    height: 48px;
}
.widget .searchform .button.icon {
    border-radius: 5px !important;
    background: #ff892a;
    margin-left: -43px;
    color: #fff;
}
.widget_categories ul li {
    list-style: square;
    margin-left: 20px;
    color: #fe8322;
}
.widget_categories ul li a {
    text-transform: uppercase;
    font-weight: 500;
    font-size: 14px;
    color: #575757;
    font-family: "inter", sans-serif;
}
.widget .current-cat > a {
    color: #ff892a;
}
.flatsome_recent_posts .badge {
    width: 65px;
    height: 65px;
}
.flatsome_recent_posts .badge .badge-inner {
    border-radius: 6px;
}
.recent-blog-posts a {
    margin-bottom: 6px;
    font-family: "inter", sans-serif;
    color: black;
    font-weight: 500;
    font-size: 15px;
}
.recent-blog-posts a:hover {
    color: #fe8322;
}

/* Button phụ */
.secondary {
    background-color: #015196;
    border-radius: 10px;
}
.secondary:hover {
    background-color: red;
    transition: background-color 0.3s ease;
}


/* Blog Single */
.blog-single .large-3 {
    padding-left: 0;
}
.blog-single .entry-category {
    opacity: 1;
}
.blog-single .entry-category a {
    font-family: "Inter",sans-serif;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 700;
    display: inline-block;
    color: #fff;
    background: #fe8423;
    padding: 7px 12px 6px;
    margin-right: 6px;
    border-radius: 12px;
    letter-spacing: 0;
    position: absolute;
    margin-top: -37px;
    left: 47px;
}
.blog-single .entry-meta {
    display: block;
    margin-bottom: 17px;
    font-size: 15px;
    font-family: "inter", sans-serif;
    font-weight: 500;
    letter-spacing: 0;
    color: gray;
}
.blog-single .entry-title {
    font-size: 30px;
}
.blog-single .entry-divider {
    display: none;
}
.entry-content {
    padding-top: 0;
    padding-bottom: 0;
}
.blog-single .blog-share .is-divider {
    display: none;
}
.blog-single .entry-author {
    background: #f5f5f5;
    border-radius: 6px;
    padding: 15px;
}
.blog-single .entry-author .author-name {
    text-transform: none;
    letter-spacing: 0;
    font-size: 19px;
}
.blog-single .blog-share {
    text-align: left;
}
.blog-single .entry-image img {
    border-radius: 10px;
}
.blog-single .author-desc {
    font-size: 15px;
}

@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/
    .blog-archive .archive-page-header,
    .blog-single .archive-page-header {
        padding-top: 60px !important;
        padding-bottom: 60px !important;
    }
    
    .blog-archive .archive-page-header .col,
    .blog-single .archive-page-header .col {
        text-align: center;
    }
    .blog-archive .large-3 {
        padding-left: 15px;
    }
    .icon-search:before {
        color: #fe8322;
    }
    
    .blog-single .large-3 {
        padding-left: 15px;
    }
    .blog-single .author-desc {
        font-size: 15px;
    }
    
    h2.xc-section-title {
        font-size: 1.68em; /* Mobile size (140% của 1.2em) */
    }
}

/* Related Posts Slider (list-post1) */
.list-post1 .post-item .col-inner {
    border-radius: 6px;
    box-shadow: 8px 8px 30px 0 rgb(0 0 0 / 10%);
}
.list-post1 .post-item .box-image {
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}
.list-post1 .post-item .box-text {
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    padding: 0 0 50px 0px;
}
.list-post1 .post-item .button {
    margin: 0;
    position: absolute;
    bottom: 10px;
    right: 20px;
    background: #f2f2f2;
    border: none;
    border-radius: 5px;
    font-size: 13px;
    letter-spacing: 0;
    color: gray;
    line-height: inherit;
    padding: 5px 15px;
    min-height: auto;
}
.list-post1 .post-item .button:hover {
    background: #ff8e3e;
    color: white;
}
.list-post1 .post-item .cat-label {
    left: 20px;
    position: absolute;
    top: -10px;
    background: #ff8e3e;
    opacity: 1;
    font-family: "Inter", sans-serif;
    padding: 4px 17px;
    border-radius: 15px;
    color: white;
}
.list-post1 .post-item .post-title {
    margin: 0;
    margin-bottom: 0;
    padding: 10px 20px 20px 20px;
    color: #1b1d21;
    line-height: 32px;
    font-size: 24px;
}
.list-post1 .post-item .post-title:hover {
    color: #fe8322;
}
.list-post1 .post-item .is-divider {
    display: none;
}
.list-post1 .post-item .post-meta {
    font-weight: bold;
    font-family: "Inter", sans-serif;
    letter-spacing: 0;
    padding: 0 20px;
    color: gray;
    font-size: 14px;
    position: absolute;
    bottom: 15px;
    left: 0;
}

.phongvt-bai-viet-lien-quan .list-post1 .post-item .post-title {
    font-size: 18px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: calc(1.3em * 2 + 30px);
}

@media (max-width: 549px){
    .list-post1 .post-item .post-title {
        padding: 20px;
        color: #1b1d21;
        line-height: 27px;
        font-size: 18px;
        height: calc(27px * 2 + 40px);
    }
    .list-post1 .post-item .button {
        bottom: 13px;
        border: none;
        font-size: 11px;
    }
    .list-post1 .post-item .post-meta {
        font-size: 11px;
    }
}

/* ==========================================================================
   Contact Form (BEM: xc-contact-form)
   ========================================================================== */
.xc-contact-section {
    margin-top: -100px;
    margin-bottom: -100px;
}
.xc-contact-form {
    padding: 60px;
    background-color: #FFF;
    border-radius: 5px;
    box-shadow: 0 0 30px 0 rgba(0, 0, 0, 0.12);
}
.xc-contact-form__title {
    font-size: 30px;
    color: #1b1d21;
    font-family: "Inter", sans-serif;
    font-weight: 700;
    margin-bottom: 20px;
}
.xc-contact-form__row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}
.xc-contact-form__col {
    width: 50%;
    padding: 0 10px;
}
.xc-contact-form input.xc-contact-form__input,
.xc-contact-form textarea.xc-contact-form__textarea {
    width: 100%;
    font-size: 15px;
    border-radius: 5px;
    box-shadow: none !important;
    border: 1px solid #ddd;
    margin-bottom: 20px;
}
.xc-contact-form input.xc-contact-form__input {
    height: 45px;
    padding: 0 15px;
}
.xc-contact-form textarea.xc-contact-form__textarea {
    height: 120px;
    padding: 15px;
}
.xc-contact-form input.xc-contact-form__submit {
    font-family: "Inter", sans-serif;
    font-weight: 500;
    letter-spacing: 0;
    margin-bottom: 0;
    border-radius: 5px;
    background-color: #ff8e3e !important;
    color: #fff !important;
    padding: 10px 30px;
    border: none !important;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.xc-contact-form input.xc-contact-form__submit:hover {
    background-color: #e67528 !important;
}

@media (max-width: 549px) {
    .xc-contact-section {
        margin-top: 0;
        margin-bottom: 0;
    }
    .xc-contact-form {
        padding: 20px;
    }
    .xc-contact-form__title {
        font-size: 25px;
    }
    .xc-contact-form__col {
        width: 100%;
    }
}

/* ==========================================================================
   Contact Page Info (xc-page-contact-info)
   ========================================================================== */
.xc-page-contact-info .icon-box {
    margin-bottom: 35px;
}
.xc-page-contact-info .icon-box:last-child {
    margin-bottom: 0;
}
.xc-page-contact-info .icon-box-img {
    width: 45px !important;
}
.xc-page-contact-info .icon-box-img img {
    border-radius: 50%;
    object-fit: cover;
}

/* ==========================================================================
   Home Strength (xc-home-strength)
   ========================================================================== */
.xc-home-strength {
    z-index: 2;
}
.xc-home-strength .icon-box {
    padding: 25px 25px 35px;
    background-color: #ffffff;
    border-radius: 5px;
    box-shadow: 0px 0px 30px 0px rgba(0, 0, 0, 0.12);
    transition: 0.3s;
}
.xc-home-strength .icon-box h3 {
    margin-bottom: 5px;
    font-size: 18px;
    font-weight: 600;
}
.xc-home-strength .icon-box .icon-box-text {
    padding-top: 13px;
}
.xc-home-strength .icon-box .icon img {
    transition: transform 0.3s;
    border-radius: 15px;
}
.xc-home-strength .icon-box:hover .icon img {
    transform: translateY(-4px);
}
@media (max-width: 549px) {
    .xc-home-strength .icon-box {
        padding: 15px;
    }
}

/* ==========================================================================
   Global Button (xc-button)
   ========================================================================== */
.xc-button {
    display: inline-block;
    padding: 0px 20px;
    background-color: #015fa9;
    color: #ffffff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    animation: bounce 1s infinite;
    transition: background-color 0.3s;
}

/* ==========================================================================
   Home Process (row-process)
   ========================================================================== */
.xc-home-process .row-process {
    background-image: url('https://solar5.mauthemewp.com/wp-content/uploads/2025/05/a06b301d-de2e-4f3c-842a-c6588bd3d86e.png');
    background-size: cover;
    background-position: 63% 11%;
    background-repeat: no-repeat;
    overflow: hidden;
}

/* Loại bỏ padding mặc định của cột để các khối liền mạch (như row-collapse) */
.xc-home-process .row-process > .col {
    padding: 0 !important;
}

.row-process .col-inner {
    padding: 50px;
    min-height: 745px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: flex-end;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    z-index: 1;
}

.row-process .col:last-child .col-inner {
    border-right: none;
}

/* Lớp phủ màu đen xuất hiện khi hover */
.row-process .col-inner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(38, 40, 50, 0.85);
    z-index: -1;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s linear;
}
.row-process .col-inner:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Khối Tiêu đề (BƯỚC + Heading) */
.row-process .features-service-title {
    transform: translateY(105px);
    transition: transform 0.5s ease;
}
.row-process .col-inner:hover .features-service-title {
    transform: translateY(-22px);
}

.row-process .features-service-number {
    font-size: 20px;
    font-weight: bold;
    color: #ff8f3e;
    display: block;
    margin-bottom: 5px;
}

.row-process .features-service-title h3 {
    font-weight: 600;
    font-size: 24px;
    line-height: 1.3;
    color: #ffffff;
    margin: 0;
}

/* Khối Mô tả */
.row-process .features-service-desc {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20%);
    transition: transform 0s 0.2s, opacity 0.2s;
}
.row-process .col-inner:hover .features-service-desc {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.4s cubic-bezier(.33,.02,0,.93) 0.1s, transform 0.2s cubic-bezier(.645,.045,.355,1) 0.1s;
}

.row-process .features-service-desc p {
    color: #e5e5e5;
    font-size: 15px;
    margin: 0;
}

@media (max-width: 849px) {
    .row-process .col-inner {
        min-height: 350px;
        padding: 30px 20px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }
}

@media (max-width: 549px) {
    .row-process .features-service-desc {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        position: relative;
        bottom: 0;
        margin-top: 15px;
    }
    .row-process .features-service-title {
        transform: translateY(0);
    }
    .row-process .col-inner:hover .features-service-title {
        transform: translateY(0);
    }
    .row-process .col-inner {
        min-height: auto;
    }
    /* Mặc định luôn hiện lớp phủ trên mobile cho dễ đọc chữ */
    .row-process .col-inner::before {
        opacity: 1;
        visibility: visible;
        background-color: rgba(38, 40, 50, 0.6); 
    }
}

/* ==========================================================================
   Home Testimonials (xc-home-testimonials)
   ========================================================================== */
.xc-home-testimonials .row-xc-slider {
    padding-bottom: 50px; /* Nhường chỗ cho nút chuyển slide (dots) */
}
.xc-home-testimonials .row-xc-slider .col {
    padding-top: 30px; 
}
.xc-home-testimonials .row-xc-slider .col-inner {
    padding: 30px;
    box-shadow: 8px 8px 30px 0 rgba(0,0,0,0.12);
    background: #ffffff;
    border-radius: 7px;
    height: 100%;
}

/* Nội dung bình luận */
.xc-home-testimonials .row-xc-slider .col-inner > p {
    font-size: 18px;
    line-height: 36px;
    text-align: left;
    padding-bottom: 25px; /* Giữ khoảng cách với viền dưới */
    border-bottom: 1px solid #dbdbdb;
    margin: 0 0 25px 0; /* Khoảng cách với icon box ở dưới */
}

/* Khu vực thông tin khách hàng */
.xc-home-testimonials .icon-box {
    padding: 0;
}
.xc-home-testimonials .icon-box .icon-box-text {
    padding-top: 20px;
}
.xc-home-testimonials .icon-box h3 {
    line-height: 18px;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 2px;
}
.xc-home-testimonials .icon-box p {
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    color: #fe8423;
    font-family: "Inter", sans-serif;
    padding: 0;
    margin: 0;
    border: none;
}
.xc-home-testimonials .icon-box-img {
    position: relative;
}
.xc-home-testimonials .icon-box img {
    border-radius: 50%; /* Bo tròn avatar giống ảnh minh họa */
}
.xc-home-testimonials .icon-box .icon-box-img::before {
    content: "";
    position: absolute;
    width: 36px;
    height: 36px;
    background-image: url('https://solar5.mauthemewp.com/wp-content/uploads/2022/03/nhan-xet-iocn.png');
    z-index: 9;
    background-size: 36px;
    top: -6px;
    right: -1px;
}

/* Tùy chỉnh nút chuyển slide (Flickity Dots) */
.xc-home-testimonials .flickity-page-dots {
    transform: none;
    bottom: -10px;
}
.xc-home-testimonials .flickity-page-dots .dot {
    position: relative;
    width: 8px;
    height: 8px;
    margin: 0 15px;
    opacity: 1;
    background-color: #111;
}
.xc-home-testimonials .flickity-page-dots .dot.is-selected {
    background-color: #ff9800;
    border: 2px solid #ff9800;
}
.xc-home-testimonials .flickity-page-dots .dot.is-selected::before {
    position: absolute;
    content: '';
    width: 30px;
    height: 30px;
    background: transparent;
    border-radius: 50%;
    border: 1px solid #f28124;
    margin-top: -13px;
    margin-left: -14px;
}

/* Responsive Mobile */
@media (max-width: 549px) {
    .xc-home-testimonials {
        padding-top: 50px !important;
        padding-bottom: 50px !important;
    }
    .xc-home-testimonials .row-xc-slider .col-inner {
        padding: 20px;
    }
    .xc-home-testimonials .row-xc-slider .col-inner > p {
        font-size: 16px;
        padding-bottom: 15px;
        margin-bottom: 15px;
    }
    .xc-home-testimonials .icon-box {
        padding: 0;
    }
    .xc-home-testimonials .icon-box h3 {
        font-size: 17px;
    }
    .xc-home-testimonials .icon-box p {
        font-size: 12px;
    }
}