﻿/* ═══════════════════════════════════════
   FAQ PAGE — NEW LAYOUT STYLES
═══════════════════════════════════════ */

/* ─── Hero ─── */
.faq-main { background: #eef2f7; }

.faq-hero {
    background: linear-gradient(rgba(0,0,0,0.70), rgba(0,0,0,0.70)),
                url('../images/illustrations/faqs hero section.png') center/cover no-repeat;
    padding: 70px 20px 60px;
    text-align: center;
    border-bottom: 3px solid #2563eb;
}
.faq-hero-inner { max-width: 720px; margin: 0 auto; }
.faq-hero-badge {
    display: inline-block;
    background: rgba(37, 99, 235, 0.12);
    color: #2563eb; border: 1px solid #2563eb;
    font-size: 11px; font-weight: 700;
    letter-spacing: 2px; padding: 6px 18px;
    border-radius: 50px; margin-bottom: 22px;
    text-transform: uppercase;
}
.faq-hero-title { font-size: 40px; font-weight: 800; color: #ffffff; line-height: 1.2; margin-bottom: 16px; }
.faq-hero-sub { font-size: 15px; color: rgba(255,255,255,0.90); line-height: 1.8; margin-bottom: 36px; }
.faq-hero-sub a { color: #2563eb; font-weight: 600; text-decoration: none; }
.faq-stats { display: flex; justify-content: center; gap: 50px; flex-wrap: wrap; }
.faq-stat span { display: block; font-size: 28px; font-weight: 800; color: #2563eb; }
.faq-stat small { display: block; font-size: 12px; color: rgba(255,255,255,0.80); text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }

/* ─── Container ─── */
.faq-container { max-width: 860px; margin: 0 auto; padding: 40px 20px 60px; }

/* ─── Category Filter Pills ─── */
.faq-filters {
    display: flex; gap: 8px; flex-wrap: wrap;
    margin-bottom: 28px; justify-content: center;
}
.faq-filter {
    padding: 8px 18px; border-radius: 50px;
    border: 2px solid #cbd5e1; background: #fff;
    font-size: 13px; font-weight: 600; color: #475569;
    cursor: pointer; transition: all 0.2s;
}
.faq-filter:hover { border-color: #0f172a; color: #0f172a; }
.faq-filter.active { background: #f8fafc; color: #2563eb; border-color: #f8fafc; }

/* ─── Accordion ─── */
.faq-accordion { display: flex; flex-direction: column; gap: 10px; }

.faq-item {
    background: #fff; border-radius: 12px;
    border: 1px solid #dbe4ef;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: box-shadow 0.2s;
}
.faq-item:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.faq-item.active { border-color: #0f172a; }

.faq-question {
    padding: 20px 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    user-select: none;
    transition: background 0.2s;
}
.faq-question:hover { background: #fafafa; }
.faq-item.active .faq-question { background: #fafafa; border-bottom: 1px solid #e2e8f0; }

.faq-q-left { display: flex; align-items: center; gap: 12px; flex: 1; }
.faq-question-text { font-size: 15px; font-weight: 700; color: #0f172a; line-height: 1.4; }

/* Category Badges */
.faq-cat-badge {
    display: inline-block; flex-shrink: 0;
    font-size: 10px; font-weight: 700;
    letter-spacing: 1px; text-transform: uppercase;
    padding: 4px 10px; border-radius: 50px;
}
.faq-cat-badge.general  { background: #e2e8f0; color: #475569; }
.faq-cat-badge.security { background: #fff0e0; color: #d97706; }
.faq-cat-badge.pricing  { background: #dbeafe; color: #1d4ed8; }
.faq-cat-badge.shipping { background: #e0f0ff; color: #2563eb; }
.faq-cat-badge.payment  { background: #f5e0ff; color: #9333ea; }
.faq-cat-badge.privacy  { background: #ffe0e0; color: #dc2626; }

.faq-toggle {
    width: 32px; height: 32px; border-radius: 50%;
    background: #e2e8f0; color: #475569;
    font-size: 20px; font-weight: 300;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; transition: all 0.3s;
}
.faq-item.active .faq-toggle { background: #f8fafc; color: #2563eb; transform: rotate(45deg); }

.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-item.active .faq-answer { max-height: 800px; }
.faq-answer-content {
    padding: 20px 24px 24px;
    font-size: 14px; color: #334155; line-height: 1.8;
}
.faq-answer-content p { margin-bottom: 12px; }
.faq-answer-content p:last-child { margin-bottom: 0; }
.faq-answer-content ul { list-style: none; padding: 0; margin: 12px 0; }
.faq-answer-content ul li { padding-left: 20px; position: relative; margin-bottom: 8px; }
.faq-answer-content ul li::before { content: "→"; position: absolute; left: 0; color: #2563eb; font-weight: 700; }
.faq-answer-content strong { font-weight: 700; color: #0f172a; }
.faq-answer-content a { color: #0f172a; font-weight: 600; }

/* ─── Bottom CTA Banner ─── */
.faq-cta-banner {
    background: linear-gradient(135deg, #f8fafc, #eef6ff);
    border-radius: 14px; padding: 44px 40px;
    text-align: center; margin-top: 36px;
}
.faq-cta-inner h3 { font-size: 24px; font-weight: 800; color: #0f172a; margin-bottom: 10px; }
.faq-cta-inner p { font-size: 14px; color: #64748b; margin-bottom: 26px; }
.faq-cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.faq-cta-btn {
    padding: 13px 30px; border-radius: 50px;
    font-size: 14px; font-weight: 700;
    text-decoration: none; transition: opacity 0.2s, transform 0.2s;
}
.faq-cta-btn:hover { opacity: 0.88; transform: translateY(-2px); }
.faq-wa { background: #10b981; color: #ffffff; }
.faq-contact { background: #2563eb; color: #ffffff; }

/* ─── Responsive ─── */
@media (max-width: 640px) {
    .faq-hero { padding: 52px 16px 44px; min-height: 270px; background-position: center top; }
    .faq-hero-title { font-size: 26px; }
    .faq-stats { gap: 24px; }
    .faq-question { padding: 16px 18px; }
    .faq-question-text { font-size: 14px; }
    .faq-cat-badge { display: none; }
    .faq-cta-banner { padding: 32px 20px; }
    .faq-cta-btns { flex-direction: column; align-items: center; }
}
@media (max-width: 400px) {
    .faq-hero-title { font-size: 22px; }
    .faq-filters { gap: 6px; }
    .faq-filter { padding: 6px 12px; font-size: 12px; }
}

/* Footer */
.footer {
    background-color: #f8fafc;
    color: #0f172a;
    padding: 60px 20px 30px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #0f172a;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: rgba(100, 116, 139, 0.6);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: #0f172a;
}

.footer-column p {
    color: rgba(100, 116, 139, 0.6);
    font-size: 14px;
    margin-bottom: 8px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #ffffff;
}

.footer-bottom p {
    color: #64748b;
    font-size: 13px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .faq-title {
        font-size: 32px;
        margin-bottom: 40px;
    }

    .faq-question {
        font-size: 15px;
        padding: 20px 40px 20px 0;
    }

    .faq-answer-content {
        font-size: 13px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .faq-main {
        padding: 40px 15px 60px;
    }

    .faq-title {
        font-size: 28px;
    }

    .faq-question {
        font-size: 14px;
        padding: 18px 35px 18px 0;
    }

    .faq-toggle {
        width: 20px;
        height: 20px;
        font-size: 18px;
    }

    .faq-answer-content {
        font-size: 12px;
    }
}

