
/* ล็อกฟอนต์ Prompt ให้ FAQ ทั้งหมด กันตัวหนังสือเบี้ยว/ธีมทับ */
.ion-faq-modern,
.ion-faq-modern * {
    font-family: 'Prompt', sans-serif !important;
    box-sizing: border-box;
}

.ion-faq-modern {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    background-color: #0c1524; /* กรมท่าเข้มลึก ไร้รอยต่อกับหน้าเว็บเดิม */
    padding: 60px 40px;
    position: relative;
}

/* หัวข้อหลัก + แถบสีเรืองแสง */
.ion-faq-main-heading {
    font-size: clamp(24px, 3.2vw, 34px);
    color: #ffffff;
    text-align: center;
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ion-faq-accent-bar {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #00e5ff, #0077ff);
    margin: 0 auto 50px auto;
    border-radius: 2px;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
}

/* การ์ดคำถามแบบโปร่งแสง (ไม่มี backdrop-filter — พื้นทึบไม่มีอะไรให้เบลอ) */
.faq-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.faq-item:last-child {
    margin-bottom: 0;
}

/* โฮเวอร์เรืองแสงแผ่วเบาสีฟ้า */
.faq-item:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(0, 229, 255, 0.25);
}

/* Open State */
.faq-item[open] {
    background: rgba(0, 0, 0, 0.2);
    border-color: #00e5ff;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 229, 255, 0.05);
}

/* แถบกดคำถาม */
.faq-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 30px;
    cursor: pointer;
    list-style: none;
}

.faq-head::-webkit-details-marker {
    display: none;
}

/* หัวข้อคำถาม */
.faq-title {
    margin: 0;
    font-size: 17px !important;
    color: #ffffff !important;
    font-weight: 500;
    transition: color 0.3s ease;
    line-height: 1.5;
    text-align: left;
}

.faq-item[open] .faq-title {
    color: #00e5ff !important;
}

/* ไอคอน + / − ด้วยเวคเตอร์บริสุทธิ์ */
.faq-icon {
    position: relative;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-left: 20px;
}

.faq-icon::before,
.faq-icon::after {
    content: "";
    position: absolute;
    background-color: #00e5ff;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    border-radius: 2px;
}

.faq-icon::before {
    top: 7px;
    left: 0;
    width: 16px;
    height: 2px;
}

.faq-icon::after {
    top: 0;
    left: 7px;
    width: 2px;
    height: 16px;
}

.faq-item[open] .faq-icon::after {
    transform: rotate(90deg) scale(0);
}
.faq-item[open] .faq-icon::before {
    transform: rotate(180deg);
}

/* กล่องคำตอบ */
.faq-content {
    padding: 0 30px 28px 30px;
    animation: fadeInFAQ 0.4s ease-out forwards;
}

.faq-content p {
    margin: 0;
    color: #cbd5e1 !important;
    font-size: 15.5px;
    line-height: 1.85;
    font-weight: 300;
    text-align: left;
}

/* ลิสต์ตัวเลขในคำตอบ */
.faq-list {
    margin: 15px 0 0 0;
    padding-left: 20px;
    color: #cbd5e1;
}

.faq-list li {
    margin-bottom: 10px;
    font-size: 15px;
    line-height: 1.7;
    font-weight: 300;
    text-align: left;
}

.faq-list li:last-child {
    margin-bottom: 0;
}

.faq-list li strong {
    color: #00e5ff;
    font-weight: 500;
}

/* เฟดสไลด์คำตอบ */
@keyframes fadeInFAQ {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .ion-faq-modern { padding: 40px 20px; }
    .faq-head { padding: 20px; }
    .faq-content { padding: 0 20px 20px 20px; }
    .faq-title { font-size: 16px !important; }
    .faq-content p, .faq-list li { font-size: 14.5px; line-height: 1.75; }
    .ion-faq-accent-bar { margin-bottom: 35px; }
}

@media (max-width: 480px) {
    .ion-faq-modern { padding: 35px 15px; }
    .faq-head { padding: 18px 15px; }
    .faq-content { padding: 0 15px 18px 15px; }
    .faq-title { font-size: 15px !important; }
}

/* Accessibility — ปิดการเคลื่อนไหวให้ผู้ตั้งค่า reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .faq-item, .faq-title, .faq-icon::before, .faq-icon::after { transition: none; }
    .faq-content { animation: none; }
}
