﻿.customer-priority-section {
    padding: 60px 0;
}

.customer-priority-section .custom-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 30px;
    position: relative;
}

.customer-carousel-wrapper {
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
    padding: 0 80px;
    box-sizing: border-box;
}

/* --- 2. Title & Badge Styling --- */
.customer-priority-section .section-header {
    margin-bottom: 40px;
}

.customer-priority-section .section-title {
    font-size: 48px;
    font-weight: 700;
    color: #000;
    line-height: 1.3;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px; /* Khoảng cách giữa chữ thường và badge */
}

/* Class mới: priority-badge */
.priority-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 40px;
    background-image: url('../images/frontend-pages/badge-our-top.png');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
    font-size: 48px;
    font-weight: 700;
    white-space: nowrap;
}

    .priority-badge .badge-label {
        display: inline-flex;
        align-items: center;
        transform: rotate(-0.48deg);
    }

/* --- 3. Carousel Image Styling --- */
.customer-gallery-carousel .gallery-item img {
    width: 100%;
    height: auto;
    max-height: 504px;
    border-radius: 24px; 
    object-fit: cover;
    display: block;
}

/* --- 4. Owl Carousel Navigation (Mũi tên đen 2 bên) --- */
.customer-gallery-carousel .owl-nav button.owl-prev,
.customer-gallery-carousel .owl-nav button.owl-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: 0.3s;
    opacity: 1;
    cursor: pointer;
    z-index: 10;
}

.customer-gallery-carousel .owl-nav button.owl-prev {
    left: -60px;
}

.customer-gallery-carousel .owl-nav button.owl-next {
    right: -60px;
}

.customer-gallery-carousel .owl-dots {
    text-align: center;
    margin-top: 30px;
}

.customer-gallery-carousel .owl-dots .owl-dot {
    display: inline-block;
}

    .customer-gallery-carousel .owl-dots .owl-dot span {
        width: 20px;
        height: 20px;
        margin: 5px 10px;
        background: #979797;
        display: block;
        border-radius: 50%;
        transition: all 0.3s ease;
    }

.customer-gallery-carousel .owl-dots .owl-dot.active span {
    background: #000; 
    transform: scale(1.3);
}

.customer-gallery-carousel .owl-carousel .owl-stage-outer {
    border-radius: 24px;
}

.trusted-nav-icon {
    height: 40px;
    width: 40px;
}

/* --- FAQ Section Layout --- */
.faq-section {
    padding: 60px 0;
    background-color: transparent; /* Không màu nền theo yêu cầu */
}

.faq-header {
    margin-bottom: 30px;
}

.faq-title {
    font-size: 48px;
    font-weight: 700;
    color: #000000;
}

.content-search {
    position: relative;
    max-width: 1100px;
    margin: 0 auto 40px auto;
    padding: 1px;
    border-radius: 24px;
    transition: background 0.2s;
    background: var(--linear-color);
}

.content-search-input {
    position: relative;
    display: block;
    width: 100%;
    height: 64px;
    padding: 15px 50px 15px 25px;
    border: none;
    outline: none;
    border-radius: 23px;
    background: var(--explore-search-bg, var(--light-mode-surface));
    background-clip: padding-box;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    transition: all 0.2s;
    box-sizing: border-box;
}

    .content-search-input::placeholder {
        color: var(--primary-color);
        opacity: 0.5;
    }

.content-search .search-icon {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
}

/* --- FAQ Item Styling --- */
.faq-list {
    max-width: 1100px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
}

.faq-question {
    background: #fff;
    border: 1px solid #979797;
    height: 64px;
    border-radius: 24px;
    padding: 12px 20px 12px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .faq-question:hover {
        border-color: #000;
    }

.question-text {
    font-size: 20px;
    font-weight: 600;
    color: #011212;
}

/* Icon tròn màu đen */
.toggle-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: transform 0.3s ease;
}

/* --- Active State (Khi mở) --- */
.faq-item.active .faq-question {
    border-color: #000; /* Viền đen khi đang mở */
}

/* Xoay icon lên trên khi mở */
.faq-item.active .toggle-icon {
    transform: rotate(180deg);
}

/* --- Answer Box Styling --- */
.faq-answer {
    display: none; /* Mặc định ẩn */
    margin-top: 10px;
}

.answer-content {
    background-color: #F5F5FA;
    padding: 20px 30px;
    border-radius: 24px;
    color: #011212;
    font-size: 20px;
    line-height: 1.6;
}

/* --- 1. Layout Section (Flexbox chia cột) --- */
.latest-insights-section {
    padding: 60px 0;
    overflow: hidden;
}

    .latest-insights-section .custom-container {
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 15px;
    }

.insights-layout {
    display: flex;
    align-items: center; /* Căn giữa theo chiều dọc */
    gap: 40px; /* Khoảng cách giữa Text và Slider */
    flex-wrap: wrap;
}


.insights-static-content {
    flex: 0 0 27%;
    max-width: 27%;
}

.insights-main-title {
    font-size: 48px;
    font-weight: 800;
    color: #8105BD;
    margin-bottom: 30px;
    line-height: 1.2;
    text-align: center;
    display: block;
}

.insights-subtext {
    font-size: 20px;
    color: #000000;
    line-height: 1.6;
    text-align: left;
}

.insights-gallery-wrapper {
    flex: 0 0 calc(73% - 40px);
    max-width: calc(73% - 40px);
    width: 100%;
    padding: 0px 60px;
    box-sizing: border-box;
    position: relative;
}

.insights-carousel .owl-stage-outer {
    padding: 10px 0 30px;
    background: transparent !important;
    box-shadow: none !important;
    overflow-x: hidden !important;
}

.article-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 16px 10px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s;
    height: 100%;
    display: flex;
    margin: 0 8px;
    flex-direction: column;
    box-sizing: border-box;
}

.article-thumb-placeholder {
    width: 100%;
    height: 208px;
    background-color: #EEE3F8;
    border-radius: 8px;
    margin-bottom: 20px;
    background-image: linear-gradient(135deg, #EEE3F8 0%, #d8b4fe 100%);
}

/* Article thumbnail image */
.article-thumb-wrapper {
    width: 100%;
    height: 208px;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
}

.article-thumb-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.article-meta-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.meta-data {
    display: flex;
    align-items: center;
    gap: 8px;
}

.meta-icon {
    width: 24px;
    height: 24px;
}

.meta-value {
    font-size: 14px;
    color: #2E2E2E;
    font-weight: 500;
}

/* Title & Desc */
.article-heading {
    font-size: 20px;
    font-weight: 600;
    color: #2E2E2E;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-desc {
    font-size: 14px;
    color: #2E2E2E;
    line-height: 1.5;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Button Support */
.article-action {
    text-align: right; /* Căn nút sang phải */
}

.article-btn {
    background-color: #EEE3F8;
    color: #2E2E2E;
    border: none;
    padding: 6px 48px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s;
}

    .article-btn:hover {
        background-color: #d8b4fe;
    }

.insights-carousel .owl-nav button.owl-prev,
.insights-carousel .owl-nav button.owl-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
}

.insights-carousel .owl-nav button img {
    width: 24px;
}

.insights-carousel .owl-nav button.owl-prev {
    left: -60px;
}

.insights-carousel .owl-nav button.owl-next {
    right: -60px;
}

.no-results-message{
    font-size: 20px;
}

@media (max-width: 1200px) {
    .customer-carousel-wrapper {
        padding: 0 60px;
        max-width: 100%;
    }
}

@media (max-width: 1024px) {
    .insights-static-content {
        flex: 0 0 100%;
        max-width: 100%;
        text-align: center;
    }

    .insights-gallery-wrapper {
        flex: 0 0 100%;
        max-width: 100%;
        margin-top: 30px;
        padding: 0;
    }

    .insights-carousel .owl-nav button {
        display: none !important;
    }

    .insights-layout{
        gap: 0;
    }
}

@media (max-width: 992px) {
    .customer-priority-section {
        padding: 20px 0;
    }

    .customer-carousel-wrapper {
        padding: 0;
    }

    .customer-gallery-carousel .owl-nav button.owl-prev,
    .customer-gallery-carousel .owl-nav button.owl-next {
        display: none !important;
    }

    .customer-gallery-carousel .owl-dots .owl-dot span {
        width: 14px;
        height: 14px;
    }

    /* --- FAQ Section --- */
    .faq-title {
        font-size: 48px;
    }

    .content-search {
        margin-bottom: 30px;
    }

    .question-text,
    .answer-content,
    .content-search-input {
        font-size: 18px;
    }

    .latest-insights-section {
        padding: 30px 0;
    }

    .insights-layout {
        gap: 0;
    }

    .insights-main-title {
        margin-bottom: 20px;
    }

    .insights-subtext {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .insights-carousel .owl-nav button {
        display: none !important;
    }

    .faq-question {
        padding-right: 15px; 
    }
}

@media (max-width: 576px) {
    .customer-priority-section {
        padding: 20px 0;
    }

    .customer-gallery-carousel .gallery-item img {
        border-radius: 16px;
        max-height: 250px;
    }

    .priority-badge {
        font-size: 24px; 
        padding: 5px 20px;
    }

    .customer-priority-section .section-title {
        font-size: 28px;
        flex-direction: column;
        gap: 10px;
    }

    .customer-gallery-carousel .owl-dots {
        margin-top: 20px;
    }

    .customer-gallery-carousel .owl-dots .owl-dot span {
        width: 10px;
        height: 10px;
    }

    /* --- FAQ Section (MỚI THÊM) --- */
    .faq-section {
        padding: 20px 0;
    }

    .faq-title {
        font-size: 28px; /* Đồng bộ với section-title mobile */
    }

    .lang-vi .faq-title {
        font-size: 23px; 
    }

    .faq-header {
        margin-bottom: 20px;
    }

    /* Input Search nhỏ lại */
    .content-search-input {
        height: 50px; /* Giảm chiều cao từ 64px xuống 50px */
        font-size: 16px;
        padding: 10px 45px 10px 20px;
    }

    .content-search .search-icon {
        width: 24px;
        height: 24px;
        right: 15px;
    }

    /* FAQ Item nhỏ lại */
    .faq-item {
        margin-bottom: 10px;
    }

    .faq-question {
        height: auto; /* Để text dài có thể xuống dòng */
        min-height: 50px; /* Chiều cao tối thiểu */
        padding: 10px 15px;
        border-radius: 16px;
    }

    .question-text {
        font-size: 16px; /* Giảm font chữ câu hỏi */
        padding-right: 10px; /* Tránh đè lên icon */
        line-height: 1.4;
    }

    .toggle-icon {
        width: 24px;
        height: 24px;
        font-size: 14px;
        flex-shrink: 0; /* Không cho icon bị méo */
    }

    /* Answer box */
    .answer-content {
        font-size: 16px;
        padding: 15px 20px;
        border-radius: 16px;
    }

    .latest-insights-section {
        padding: 20px 0 0;
    }

    .insights-subtext{
        margin-bottom: 0;
        font-size: 16px;
    }

    .insights-layout{
        gap: 0;
    }

    .article-card {
        margin: 0 2px;
    }

    .insights-main-title{
        font-size: 28px;
        margin-bottom: 10px;
    }

    .insights-gallery-wrapper {
        margin-top: 20px;
    }

    .no-results-message {
        font-size: 14px;
    }
}


@media (max-width: 380px) {
    .faq-title{
        font-size: 24px;
    }

    .lang-vi .faq-title {
        font-size: 20px;
    }
}

