/* ===== CSS Variables ===== */
:root {
    --red: #ef4850; --red-dark: #d43d45; --red-light: #fef0f0;
    --blue: #2c99d4; --blue-light: #eff6ff;
    --black: #1a1a1a; --gray-50: #f8fafb; --gray-100: #f5f5f5;
    --gray-200: #e5e5e5; --gray-300: #d4d4d4; --gray-400: #a3a3a3;
    --gray-500: #737373; --gray-600: #404040; --white: #fff;
    --green: #16a34a; --green-light: #f0fdf4;
    --purple: #8b5cf6; --orange: #f97316;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05); --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.1);
}

/* ===== HERO ===== */
.faq-hero {
    background: linear-gradient(135deg, var(--red-light) 0%, var(--blue-light) 100%);
    padding: 3.5rem 0 3rem; text-align: center; position: relative; overflow: hidden;
}
.faq-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-pattern { position: absolute; inset: 0; opacity: 0.03; background-image: radial-gradient(circle, #000 1px, transparent 1px); background-size: 20px 20px; }
.faq-hero-content { position: relative; z-index: 1; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1.25rem; background: var(--white); border-radius: 9999px; font-size: 0.8125rem; font-weight: 600; color: var(--blue); margin-bottom: 1rem; box-shadow: var(--shadow-sm); }
.faq-hero-title { font-size: 2.25rem; font-weight: 800; color: var(--black); margin-bottom: 0.75rem; }
@media(min-width:768px){.faq-hero-title{font-size:3rem}}
.text-gradient { background: linear-gradient(135deg, var(--red) 0%, var(--blue) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.faq-hero-subtitle { font-size: 1rem; color: var(--gray-500); max-width: 550px; margin: 0 auto; }

/* ===== SEARCH SECTION ===== */
.faq-search-section { background: var(--white); border-bottom: 1px solid var(--gray-200); padding: 2rem 0; position: sticky; top: 76px; z-index: 40; }
.search-wrapper { max-width: 500px; margin: 0 auto; }
.search-box { position: relative; }
.search-box svg { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--gray-400); pointer-events: none; }
.search-input {
    width: 100%; padding: 0.875rem 1rem 0.875rem 2.75rem; 
    font-size: 1rem; border: 2px solid var(--gray-200); 
    border-radius: 12px; transition: all 0.3s; 
    font-family: inherit;
}
.search-input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-light); }
.search-input::placeholder { color: var(--gray-400); }

/* ===== CONTENT SECTION ===== */
.faq-content-section { padding: 3rem 0 5rem; background: var(--gray-50); }
.faq-content { max-width: 800px; margin: 0 auto; }

/* ===== CATEGORY ===== */
.faq-category { margin-bottom: 2.5rem; }
.category-header { margin-bottom: 1.5rem; }
.category-title { font-size: 1.5rem; font-weight: 700; color: var(--black); margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.75rem; }
.category-title:before { content: ""; width: 4px; height: 28px; background: linear-gradient(135deg, var(--red) 0%, var(--blue) 100%); border-radius: 2px; }
.category-desc { font-size: 0.9375rem; color: var(--gray-500); }

/* ===== FAQ ITEMS ===== */
.faq-items { display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item { }

/* ===== FAQ QUESTION ===== */
.faq-question {
    width: 100%; padding: 1.25rem;
    background: var(--white); border: 2px solid var(--gray-200);
    border-radius: 14px; text-align: left;
    cursor: pointer; transition: all 0.3s;
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; font-size: 0.9375rem; font-weight: 600;
    color: var(--black); font-family: inherit;
}
.faq-question:hover { border-color: var(--red); background: var(--red-light); }
.faq-question span { flex: 1; }
.faq-icon {
    width: 24px; height: 24px; color: var(--red); flex-shrink: 0;
    transition: transform 0.3s;
}
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(180deg); }
.faq-question[aria-expanded="true"] { border-color: var(--red); background: var(--red-light); }

/* ===== FAQ ANSWER ===== */
.faq-answer {
    background: var(--gray-50); border: 1px solid var(--gray-200);
    border-top: none; border-radius: 0 0 14px 14px;
    padding: 1.5rem; font-size: 0.9375rem; color: var(--gray-600);
    line-height: 1.7; margin-top: -2px;
    animation: slideDown 0.3s ease-out;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.faq-answer p { margin-bottom: 1rem; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer a { color: var(--red); text-decoration: none; font-weight: 500; transition: color 0.2s; }
.faq-answer a:hover { color: var(--red-dark); text-decoration: underline; }

/* ===== ANSWER LISTS ===== */
.answer-list { list-style: none; margin: 0.75rem 0; padding-left: 0; }
.answer-list li { margin-bottom: 0.5rem; padding-left: 1.75rem; position: relative; }
.answer-list li:before { content: "→"; position: absolute; left: 0; color: var(--red); font-weight: bold; }

/* ===== CTA SECTION ===== */
.faq-cta {
    background: linear-gradient(135deg, var(--red-light) 0%, var(--blue-light) 100%);
    border: 2px solid var(--red); border-radius: 20px; padding: 2rem;
    text-align: center; margin-top: 3rem;
}
.faq-cta h3 { font-size: 1.5rem; font-weight: 700; color: var(--black); margin-bottom: 0.5rem; }
.faq-cta p { font-size: 0.9375rem; color: var(--gray-600); margin-bottom: 1.5rem; }

/* ===== CTA BUTTONS ===== */
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn { padding: 0.75rem 1.5rem; border-radius: 10px; font-size: 0.9375rem; font-weight: 600; 
    text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem;
    transition: all 0.3s; border: none; cursor: pointer; }
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--white); color: var(--red); border: 2px solid var(--red); }
.btn-secondary:hover { background: var(--red-light); }

/* ===== RESPONSIVE ===== */
@media(max-width:640px){
    .faq-hero-title { font-size: 1.75rem; }
    .category-title { font-size: 1.25rem; }
    .faq-question { padding: 1rem; font-size: 0.875rem; }
    .faq-answer { padding: 1rem; font-size: 0.875rem; }
    .faq-cta { padding: 1.5rem; }
    .cta-buttons { flex-direction: column; }
    .btn { width: 100%; justify-content: center; }
}
