Homepage Specific Styles

/* General Layout */
.home-page-content {
    overflow-x: hidden;
}

.row-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Service Cards Grid - Fix for Single Row */
.service-cards-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    margin-top: 40px;
    overflow-x: auto;
    /* Allow scroll on small screens if they don't fit */
    padding-bottom: 20px;
}

.service-cards-container .iconbox {
    flex: 1 1 calc(25% - 20px);
    height: auto;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-cards-container .iconbox:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.iconlist.style-features .iconlist-item-content h5 {
    text-align: center;
}

.iconlist.style-features .iconlist-item-content {
    text-align: center;
}

.service-cards-container .iconbox .box-title {
    font-size: 18px;
    margin-bottom: 20px;
    color: #231834;
}

.service-cards-container .iconbox .box-detail ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.service-cards-container .iconbox .box-detail ul li {
    font-size: 14px;
    margin-bottom: 8px;
    color: #9b9aad;
}

.service-cards-container .iconbox .box-icon {
    margin-top: auto;
    font-size: 32px;
    color: #554bb9;
    margin-bottom: 20px;
}

/* Premium Contact Form */
.contact-section-wrapper {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

.page-template-template-fullwidth .content .vc_row>.row-inner .vc_row,
.page-template-template-fullwidth .content .vc_section>.row-inner .vc_row {
    margin-top: 55px !important;
}

.contact-info-column {
    background: linear-gradient(135deg, #4b3da1 0%, #1e1b3a 100%);
    padding: 60px !important;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-title {
    font-weight: 700 !important;
    margin-bottom: 25px !important;
    font-size: 32px !important;
}

.contact-intro-text {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.8;
    margin-bottom: 30px;
}

.cta-button {
    background-color: #0d274d !important;
    color: #fff !important;
    border: none !important;
    padding: 15px 30px !important;
    border-radius: 30px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    display: inline-block;
    transition: background 0.3s ease;
    text-decoration: none;
    line-height: 30px;
}

.cta-button:hover {
    background-color: #091c38 !important;
}

.contact-form-column {
    padding: 60px !important;
    background: #f4f7f9;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.premium-form .row {
    margin: 0 -10px;
    display: flex;
    flex-wrap: wrap;
}

.premium-form .columns {
    padding: 0 10px;
    width: 100%;
}

.premium-form .columns-6 {
    width: 50%;
}

.premium-form input[type="text"],
.premium-form input[type="email"],
.premium-form input[type="tel"],
.premium-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #d1d9e0;
    border-radius: 4px;
    background: #fff;
    font-size: 14px;
    color: #333;
}

.premium-form input:focus,
.premium-form textarea:focus {
    border-color: #4b3da1;
    outline: none;
}

.premium-form .wpcf7-submit {
    background-color: #0d274d !important;
    color: #fff !important;
    width: 100%;
    padding: 15px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    border-radius: 4px !important;
    border: none !important;
    cursor: pointer;
    transition: background 0.3s ease;
    line-height: 30px;
}

.premium-form .wpcf7-submit:hover {
    background-color: #091c38 !important;
}

/* Insights Section */
.insights-grid {
    display: flex;
    gap: 30px;
    margin-top: 50px;
}

.insight-box {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    height: 100%;
}

.insight-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.insight-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #554bb9;
}

.insight-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.insight-list li {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f4f8;
}

.insight-list li:last-child {
    border-bottom: none;
}

.insight-list li a {
    display: block;
    font-weight: 600;
    color: #231834;
    line-height: 1.4;
    margin-bottom: 5px;
    text-decoration: none;
}

.insight-list li a:hover {
    color: #554bb9;
}

.insight-list li .date {
    font-size: 12px;
    color: #9b9aad;
}

.insight-list.categories li {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.insight-list.categories li a {
    font-weight: 500;
}

/* Company Info Footer Section */
.company-info-footer {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid #e1e8f0;
}

.company-links-large {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.link-col h5 {
    font-size: 18px;
    margin-bottom: 25px;
}

.link-col ul {
    list-style: none;
    padding: 0;
}

.link-col ul li {
    margin-bottom: 12px;
}

.link-col ul li a {
    color: #627792;
    text-decoration: none;
}

.link-col ul li a:hover {
    color: #554bb9;
}

.contact-col p {
    color: #627792;
    line-height: 1.6;
}

/* ===== WRAPPER ===== */
.blog-wrapper {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center;
    align-items: center;

}

/* ===== CARD ===== */
.blog-post-card {
    width: calc(33.333% - 30px) !important;
    margin: 15px;
    box-sizing: border-box;
    /* QUAN TRỌNG */

    background: #ffffff;
    border-radius: 22px;
    padding: 28px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-post-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.post-thumbnail {
    width: 100%;
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-post-card:hover .post-thumbnail img {
    transform: scale(1.08);
}

/* ===== DATE ===== */
.post-meta-date {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 6px 14px;
    background: #f3f5f8;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 15px;
    color: #555;
    align-self: flex-start;
}

/* ===== TITLE ===== */
.post-card-title {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

.post-card-title a {
    text-decoration: none;
    color: #111;
    transition: 0.3s ease;
}

.post-card-title a:hover {
    color: #0066ff;
}

/* ===== EXCERPT ===== */
.post-excerpt {
    font-size: 15px;
    line-height: 1.7;
    color: #666;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
    overflow: hidden;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
    .blog-post-card {
        width: calc(100% - 30px) !important;
        margin: 15px !important;
    }
}

@media (max-width: 767px) {
    .service-cards-container .iconbox {
        flex: 1 1 100%;
    }

    .contact-section-wrapper {
        flex-direction: column;
    }
}

#media_video-3 {
    display: none;
}

.main-sidebar {
    display: none;
}


/* ===== CTA SECTION CENTER FIX ===== */

/* ===== CĂN GIỮA TOÀN BỘ WRAP ===== */

.content-bottom-aside-wrap {
    display: flex;
    justify-content: center;
    /* căn giữa ngang */
    align-items: center;
    width: 100%;
}

/* ===== ASIDE ===== */

.content-bottom-aside-wrap aside {
    max-width: 850px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    padding: 0 !important;
}

/* ===== TITLE ===== */

.content-bottom-aside-wrap .widget-title {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #111;
}

/* ===== DESCRIPTION ===== */

.content-bottom-aside-wrap aside>div {
    font-size: 18px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 35px;
}

/* ===== BUTTON ===== */

.content-bottom-aside-wrap .button.accent {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    line-height: 30px;
}

.content-bottom-aside-wrap .button.accent:hover {
    transform: translateY(-4px);
}

/* ===== MOBILE ===== */

@media (max-width: 768px) {

    .content-bottom-aside-wrap .widget-title {
        font-size: 26px;
    }

    .content-bottom-aside-wrap aside>div {
        font-size: 16px;
    }
}



@media (max-width: 768px) {
    /* Contact Section Mobile */

    .contact-info-column,
    .contact-form-column {
        padding: 40px 20px !important;
    }

    .contact-info-column .style1 {
        font-size: 11px !important;
        text-align: center;
    }

    .contact-title {
        font-size: 26px !important;
        text-align: center;
        margin-bottom: 15px !important;
    }

    .contact-intro-text {
        font-size: 15px !important;
        text-align: center;
        line-height: 1.6;
    }

    .contact-info-column .cta-button {
        display: block !important;
        width: 100%;
        text-align: center;
        font-size: 13px !important;
        padding: 15px 20px !important;
    }

    /* Contact Form Mobile */
    .premium-form .columns-6 {
        width: 100% !important;
        /* Stack name/email/phone vertically */
    }

    .premium-form input[type="text"],
    .premium-form input[type="email"],
    .premium-form input[type="tel"],
    .premium-form textarea {
        font-size: 16px !important;
        /* Prevent iOS zoom, better readability */
        padding: 12px 15px !important;
        margin-bottom: 15px !important;
    }

    .premium-form .wpcf7-submit {
        padding: 18px !important;
        font-size: 16px !important;
        border-radius: 8px !important;
    }

    /* CTA Section Mobile */
    .content-bottom-aside-wrap .widget-title {
        font-size: 26px;
    }

    .content-bottom-aside-wrap aside>div {
        font-size: 16px;
    }

    /* Topbar Mobile: 3-column Layout */
    .site-topbar {
        padding: 0 !important;
    }

    .site-topbar-inner {
        flex-direction: column;
        align-items: center;
    }

    .topbar-text {
        width: 100%;
    }

    .list-info {
        display: flex !important;
        width: 100%;
        margin: 0 !important;
        padding: 0 !important;
        justify-content: center;
    }

    .list-info li {
        flex: 1;
        width: 33.333% !important;
        text-align: center;
        padding: 10px 5px !important;
        margin: 0 !important;
        border-right: 1px solid rgba(0, 0, 0, 0.05);
        /* Light divider */
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .list-info li:last-child {
        border-right: none;
    }

    .list-info li i {
        font-size: 18px !important;
        margin-bottom: 5px;
        margin-right: 0 !important;
    }

    .list-info li .text {
        display: none;
        /* Hide primary text to save space on mobile */
    }

    .list-info li .action {
        font-size: 10px;
        font-weight: 600;
        display: block;
        line-height: 1.2;
    }

    .list-info li.demo-cus {
        margin-top: 10px !important;
    }

    .calendly-badge-content-cus {
        font-size: 11px !important;
        padding: 8px 10px !important;
        border-radius: 6px !important;
        background-color: #0d274d !important;
        color: #fff !important;
        white-space: nowrap !important;
        display: inline-block !important;
    }

    .topbar-menu {
        display: none !important;
        /* Hide secondary menu on small screens */
    }
}

/* ===== MOBILE RESPONSIVE FIX - missing sections ===== */
@media (max-width: 768px) {

    /* General layout */
    .row-inner {
        padding: 0 15px;
    }

    /* Fullwidth template rows - giảm margin top để tránh bị đẩy lệch */
    .page-template-template-fullwidth .content .vc_row>.row-inner .vc_row,
    .page-template-template-fullwidth .content .vc_section>.row-inner .vc_row {
        margin-top: 30px !important;
    }

    /* ===== INSIGHTS GRID ===== */
    .insights-grid {
        flex-direction: column;
        gap: 20px;
        margin-top: 30px;
    }

    .insight-box {
        width: 100%;
        box-sizing: border-box;
        padding: 20px;
    }

    .insight-title {
        font-size: 17px;
        margin-bottom: 15px;
    }

    /* ===== COMPANY LINKS / FOOTER INFO ===== */
    .company-links-large {
        flex-direction: column;
        gap: 25px;
    }

    .link-col h5 {
        font-size: 16px;
        margin-bottom: 15px;
    }

    .company-info-footer {
        margin-top: 40px;
        padding-top: 30px;
    }

    /* ===== CONTACT SECTION ===== */
    .contact-section-wrapper {
        flex-direction: column;
    }

    .contact-info-column,
    .contact-form-column {
        width: 100% !important;
        box-sizing: border-box;
    }

    /* ===== SERVICE CARDS ===== */
    .service-cards-container .iconbox {
        min-width: 0;
        box-sizing: border-box;
    }

    /* ===== CTA / CONTENT BOTTOM ===== */
    .content-bottom-aside-wrap aside {
        padding: 0 15px !important;
    }
}

/* ===== Fix riêng cho mobile ===== */
@media (max-width: 767px) {
    .hero-main-text {
        font-size: 15px;
        /* giảm nhẹ */
        line-height: 1.4;
        max-width: 320px;
        /* giới hạn chiều ngang */
        margin: 0 auto;
        /* căn giữa */
        padding: 0 10px;
        text-align: center;
    }
}


/* ===== SOFTWARE THEO YÊU CẦU ===== */
@media (max-width: 767px) {

    /* Giảm chiều rộng tổng */
    .vc_column-inner {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    /* Giới hạn nội dung không quá dài */
    .wpb_wrapper {
        max-width: 380px;
        margin: 0 auto;
    }

    /* Title */
    .style-h2 {
        font-size: 22px;
        text-align: center;
    }

    /* Đoạn mô tả */
    .wpb_text_column p {
        font-size: 15px;
        line-height: 1.6;
        text-align: center;
    }

    /* 2 cột chuyển thành 1 cột */
    .vc_row.vc_inner {
        flex-direction: column !important;
    }

    .vc_col-sm-6 {
        width: 100% !important;
    }

    /* Button full width đẹp hơn mobile */
    .button.full {
        display: block;
        width: 100%;
        text-align: center;
    }

    /* Icon list căn giữa */
    .iconlist-item-content {
        text-align: center;
    }

}

/* ===== CANH ĐỀU H5 trong .style-features trên PC ===== */
@media (min-width: 768px) {
    .iconlist.style-features {
        display: flex;
        flex-wrap: wrap;
    }

    .iconlist.style-features>li {
        display: flex;
        flex-direction: column;
    }

    .iconlist.style-features>li>div {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        height: 100%;
    }

    /* Icon cố định chiều cao để h5 luôn bắt đầu cùng hàng */
    .iconlist.style-features .iconlist-item-icon {
        min-height: 70px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* H5 canh giữa */
    .iconlist.style-features .iconlist-item-content h5 {
        text-align: center;
    }

    .iconlist.style-features .iconlist-item-content {
        text-align: center;
    }
}