/* faq-section.css — হোমপেজের "Got Questions? We've Solution" FAQ
   অ্যাকর্ডিয়ন সেকশন। core-features.css/advertisement-section.css এর
   কনভেনশনে: wrapper-স্কোপড CSS ভ্যারিয়েবল (var() দিয়ে), 'Anek Bangla'
   ফন্ট, ১৩০০px কন্টেইনার। সব ক্লাস-নাম `faq-` প্রিফিক্সড — অন্য কোনো
   সেকশনের CSS ক্লাসের সাথে সংঘর্ষ নেই।
   নোট: প্রজেক্টের বিদ্যমান assets/css ফাইলগুলোতে কোনো সাইটওয়াইড "ব্র্যান্ড-
   রেড" ভ্যারিয়েবল পাওয়া যায়নি (why-choose-us বেগুনি, video-section সবুজ
   থিমড, বাকিগুলোতে লাল নেই) — তাই নিচে --faq-red একটা নতুন ভ্যারিয়েবল,
   অ্যাডমিন/ডিজাইনার পরে চাইলে এক জায়গায় বদলাতে পারবেন। */

.faq-section-wrapper {
    --faq-text-dark: #1E1E2D;
    --faq-text-muted: #6B7280;
    --faq-red: #E63946;
    --faq-card-bg: #F3F4F8;
    --faq-item-bg: #FFFFFF;
    --faq-item-border: #E7E4F5;
    --faq-icon-bg: #ECECF4;
    --faq-icon-color: #6B7280;
    --faq-icon-bg-open: #E63946;
    --faq-icon-color-open: #FFFFFF;
    --faq-bg-page: #FFFFFF;

    background-color: var(--faq-bg-page);
    color: var(--faq-text-dark);
    padding: 60px 0;
    font-family: 'Anek Bangla', sans-serif;
}

.faq-section-wrapper * {
    box-sizing: border-box;
}

.faq-section-wrapper .container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- হেডার: দুই লাইনের হেডিং + সাব-টেক্সট --- */
.faq-section-wrapper .faq-header {
    text-align: center;
    margin-bottom: 40px;
}

.faq-section-wrapper .faq-heading {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--faq-text-dark);
    margin: 0 0 12px;
}

.faq-section-wrapper .faq-heading-red {
    color: var(--faq-red);
}

.faq-section-wrapper .faq-subtitle {
    color: var(--faq-text-muted);
    font-size: 16px;
    margin: 0;
}

/* --- ধূসর ব্যাকগ্রাউন্ড কন্টেইনার কার্ড --- */
.faq-section-wrapper .faq-panel {
    background-color: var(--faq-card-bg);
    border-radius: 20px;
    padding: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.faq-section-wrapper .faq-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* ৬+ আইটেম হলে কন্টেইনারের ভেতরেই স্ক্রল (JS/PHP থেকে .faq-list-scroll ক্লাস বসে) */
.faq-section-wrapper .faq-list.faq-list-scroll {
    max-height: 520px;
    overflow-y: auto;
    padding-right: 8px;
}

.faq-section-wrapper .faq-list.faq-list-scroll::-webkit-scrollbar {
    width: 6px;
}
.faq-section-wrapper .faq-list.faq-list-scroll::-webkit-scrollbar-track {
    background: transparent;
}
.faq-section-wrapper .faq-list.faq-list-scroll::-webkit-scrollbar-thumb {
    background-color: #CFCFE0;
    border-radius: 10px;
}
.faq-section-wrapper .faq-list.faq-list-scroll {
    scrollbar-width: thin;
    scrollbar-color: #CFCFE0 transparent;
}

/* --- প্রতিটা FAQ আইটেম (সাদা, রাউন্ডেড, হালকা shadow/বর্ডার) --- */
.faq-section-wrapper .faq-item {
    background-color: var(--faq-item-bg);
    border: 1px solid var(--faq-item-border);
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(30, 30, 45, 0.04);
    overflow: hidden;
}

.faq-section-wrapper .faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: none;
    border: 0;
    text-align: left;
    padding: 16px 20px;
    cursor: pointer;
    font-family: inherit;
}

.faq-section-wrapper .faq-question-text {
    font-weight: 600;
    font-size: 16px;
    color: var(--faq-text-dark);
}

.faq-section-wrapper .faq-toggle-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--faq-icon-bg);
    color: var(--faq-icon-color);
    transition: transform .25s ease, background-color .25s ease, color .25s ease;
}

.faq-section-wrapper .faq-item.faq-item-open .faq-toggle-icon {
    background-color: var(--faq-icon-bg-open);
    color: var(--faq-icon-color-open);
    transform: rotate(180deg);
}

/* --- এক্সপ্যান্ড/কোলাপ্স: max-height ট্রানজিশন, JS থেকে ইনলাইন max-height সেট হবে --- */
.faq-section-wrapper .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
}

.faq-section-wrapper .faq-answer-inner {
    padding: 0 20px 18px;
    color: var(--faq-text-muted);
    font-size: 15px;
    line-height: 1.7;
}

/* --- মোবাইল রেসপন্সিভ --- */
@media (max-width: 767.98px) {
    .faq-section-wrapper {
        padding: 40px 0;
    }
    .faq-section-wrapper .faq-heading {
        font-size: 26px;
    }
    .faq-section-wrapper .faq-subtitle {
        font-size: 14px;
    }
    .faq-section-wrapper .faq-panel {
        padding: 14px;
        border-radius: 16px;
    }
    .faq-section-wrapper .faq-question {
        padding: 13px 14px;
    }
    .faq-section-wrapper .faq-question-text {
        font-size: 14.5px;
    }
    .faq-section-wrapper .faq-toggle-icon {
        width: 28px;
        height: 28px;
        font-size: 13px;
    }
    .faq-section-wrapper .faq-answer-inner {
        padding: 0 14px 14px;
        font-size: 14px;
    }
    .faq-section-wrapper .faq-list.faq-list-scroll {
        max-height: 420px;
    }
}
