/* ── HSM FAQ Frontend Styles ── */

/*
 * Dynamic Background Color System
 * ─────────────────────────────────────────────────────────
 * .hsm-faq-wrapper ka background 3 levels se control hota hai:
 *   1. Per-shortcode: inline style (highest priority) — set from Shortcodes page
 *   2. Global default: get_option('hsm_global_faq_bg_color') — Settings page se
 *   3. CSS default: transparent (lowest priority)
 *
 * #faqsortcode section ka background: get_option('hsm_faqsortcode_bg_color')
 *   — hsm_global_faq_script() function dynamically inject karta hai (functions.php)
 *   — Settings page se change karne par functions.php automatically update ho jaata hai
 *   — Koi CSS edit nahi karna padta
 */

.hsm-faq-wrapper {
    max-width: 800px;
    margin: 0 auto 20px;
    background: transparent;
    border-radius: 0;
    padding: 0;
}
select#edit-display-style {
    display: none !important;
}
.heading-title-faq {
    font-family: "Lexend", Sans-serif;
    font-size: 44px;
    font-weight: 500;
    letter-spacing: 0.9px;
    color: #2B2B2B;
    text-align: center;
    margin-bottom: 12px;
    margin-top: 10px;
}

h2.heading-title-faq {
    font-family: "Lexend", Sans-serif;
    font-size: 44px;
    font-weight: 500;
    letter-spacing: 0.9px;
    color: #2B2B2B;
    text-align: center;
    padding-top: 17px;
}

.hs_cos_wrapper a,
p.hsm-read-more a { color: #ee334d; 
background: none !important;
}

.hs_cos_wrapper strong { font-weight: 500; line-height: 34px; }
.hs_cos_wrapper table { border: none !important; }

/* ── FAQ List ── */
.hsm-faq-list {
    display: flex;
    flex-direction: column;
}

/* ── FAQ Item ── */
.hsm-faq-item {
    border: none;
    border-bottom: 1px solid #d0cfc9;
    padding: 0 4px;
}
.hsm-faq-item:last-child { border-bottom: none; }

/* ── Question Button ── */
.hsm-faq-question {
    width: 100%;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 18px 4px;
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
    font-family: inherit;
    outline: none;
    color: #2B2B2B;
    transition: color 0.2s;
}
.hsm-faq-question:hover { color: #555; }

/* ── + / − Icon ── */
.hsm-faq-icon {
    font-size: 22px;
    font-weight: 400;
    color: #1a1a1a;
    flex-shrink: 0;
    width: 22px;
    line-height: 1;
}

/* ── Question Text ── */
.hsm-faq-question-text {
    flex: 1;
    font-size: 17px;
    font-family: "Lexend", Sans-serif;
    font-weight: 500;
    letter-spacing: 0.5px;
    line-height: 1.4;
    color: #2B2B2B;
}

/* ── Answer ── */
.hsm-faq-answer { overflow: hidden; max-width: 740px; }

.hsm-faq-answer-inner {
    padding: 0 4px 18px 36px;
    font-family: "Lexend", Sans-serif !important;
    font-size: 16px !important;
    font-weight: 300 !important;
    line-height: 26px !important;
    letter-spacing: 0.4px;
    color: #2B2B2B;
}
.hsm-faq-answer-inner * { line-height: 26px; }

.hsm-faq-answer-inner h1,
.hsm-faq-answer-inner h2,
.hsm-faq-answer-inner h3,
.hsm-faq-answer-inner h4 {
    font-family: "Lexend", Sans-serif !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    line-height: 26px !important;
    margin: 0.5rem 0 0.25rem;
    letter-spacing: 0.4px;
    text-transform: unset !important;
}
.hs_cos_wrapper p br {
    display: block !important;
}
ol li {
    list-style: auto;
    margin-left: 15px;
}
.hsm-faq-answer-inner p { margin: 0 0 8px; }
.hsm-faq-answer-inner ul,
.hsm-faq-answer-inner ol { margin: 4px 0 8px 18px; list-style-type: style !important; }
.hsm-faq-answer-inner li { margin-bottom: 4px; }

@media (max-width: 600px) {
    .hsm-faq-wrapper { padding: 0 8px; }
    .hsm-faq-answer-inner { padding-left: 20px; }
    .hsm-faq-question-text { font-size: 15px; }
}
