/* faq.php — moved from its inline <style> block (loaded at the same position). */
:root {
    --green: #067647;
    --deep: #062f25;
    --mint: #dff8ec;
    --lime: #a9edc5;
    --ink: #10231d;
    --muted: #62756d;
    --line: #dceae3;
    --gold: #e5b84b;
}

* { box-sizing: border-box; }

body {
    font-family: 'IBM Plex Sans Thai', sans-serif;
    background: #fbfdfc;
    color: var(--ink);
    min-height: 100vh;
    line-height: 1.7;
    padding-bottom: 2rem;
}

.wrap {
    width: min(1160px, calc(100% - 40px));
    margin: auto;
}

.eyebrow {
    color: var(--green);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
}

/* Breadcrumb */
.breadcrumb-section { padding: 22px 0 0; }
.breadcrumb { margin: 0; }

/* Page hero */
.faq-hero { padding: 18px 0 30px; }
.faq-hero h1 {
    font-family: Inter, 'IBM Plex Sans Thai', sans-serif;
    font-size: clamp(32px, 4vw, 46px);
    letter-spacing: -.02em;
    margin: 12px 0 10px;
}
.faq-hero h1 i { color: var(--green); margin-right: 10px; }
.faq-hero p { color: var(--muted); font-size: 17px; max-width: 640px; margin: 0; }

.faq-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    padding: 0 0 36px;
}
.stat-item {
    padding: 23px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    text-align: center;
}
.stat-number { font: 800 32px Inter, sans-serif; color: var(--green); display: block; margin-bottom: 4px; }
.stat-label { font-size: 15px; color: var(--muted); }

.content-section { padding: 0 0 20px; }

/* Search */
.search-box {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 1.4rem 1.6rem;
    margin-bottom: 2rem;
}
.search-input {
    border: 1px solid var(--line);
    border-radius: 25px;
    padding: .8rem 1.5rem;
    font-size: 1.05rem;
    transition: all .2s ease;
}
.search-input:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 .2rem rgba(6, 118, 71, .14);
    outline: none;
}

/* Section cards */
.section-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    margin-bottom: 24px;
    overflow: hidden;
    transition: .25s;
    animation: fadeInUp .5s ease-out;
}
.section-card:hover { transform: translateY(-4px); box-shadow: 0 18px 35px #12553616; }
.section-card:nth-child(2) { animation-delay: .05s; }
.section-card:nth-child(3) { animation-delay: .1s; }
.section-card:nth-child(4) { animation-delay: .15s; }
.section-card:nth-child(5) { animation-delay: .2s; }
.section-card:nth-child(6) { animation-delay: .25s; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-header {
    background: var(--deep);
    color: #fff;
    padding: 1.3rem 1.8rem;
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
}
.section-header i { font-size: 1.4rem; margin-right: .9rem; color: var(--lime); }
.section-header .faq-count {
    margin-left: auto;
    font-size: .78rem;
    font-weight: 700;
    background: rgba(255,255,255,.14);
    padding: .3rem .7rem;
    border-radius: 20px;
}

.section-body { padding: 1.2rem 1.8rem 1.6rem; }

/* Accordion restyle */
.accordion-item {
    border: none;
    border-bottom: 1px solid var(--line);
}
.accordion-item:last-child { border-bottom: none; }

.accordion-button {
    font-weight: 600;
    color: var(--ink);
    background: #fff;
    padding: 1rem .2rem;
    box-shadow: none !important;
}
.accordion-button i { color: var(--green); margin-right: .7rem; }
.accordion-button:not(.collapsed) {
    color: var(--green);
    background: var(--mint);
    border-radius: 12px 12px 0 0;
    padding-left: .8rem;
    padding-right: .8rem;
}
.accordion-button:focus { box-shadow: none; border-color: var(--line); }
.accordion-button::after {
    background-size: 1.1rem;
}

.accordion-body {
    color: var(--muted);
    padding: 1rem 1.4rem 1.3rem;
    background: var(--mint);
    border-radius: 0 0 12px 12px;
    line-height: 1.8;
}
.accordion-body i { color: var(--gold); margin-right: .5rem; }

/* CTA card */
.faq-cta { text-align: center; }
.faq-cta h5 i { color: var(--green); }
.faq-cta .btn { min-width: 200px; }

@media (max-width: 768px) {
    .faq-hero h1 { font-size: 1.8rem; }
    .faq-stats { grid-template-columns: 1fr; }
    .section-body { padding: 1rem 1.1rem 1.3rem; }
    .section-header .faq-count { display: none; }
}

/* Print styles */
@media print {
    body { background: #fff; }
    .btn-back-to-top,
    .search-box,
    .breadcrumb-section { display: none !important; }
    .section-card { page-break-inside: avoid; box-shadow: none; }
}

/* was style="display: none;"; the search script shows it via element.style */
#noResults {
    display: none;
}
