/* ===========================
   SSS PAGE STYLES
   =========================== */

/* Page Hero */
.page-hero {
    padding: 160px 0 80px;
    background: linear-gradient(135deg, #1a1a2e 0%, #2d1f3d 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(182, 39, 39, 0.1) 0%, transparent 60%);
    animation: heroGlow 8s ease-in-out infinite;
}

@keyframes heroGlow {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(5%, 5%); }
}

.page-hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
    position: relative;
}

.page-hero p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.7);
    position: relative;
}

/* Search Section */
.faq-search-section {
    padding: 48px 0 32px;
    background: #f8f9fa;
    border-bottom: 1px solid #e8e8ee;
}

.faq-search-wrapper {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
}

.faq-search-wrapper > i {
    position: absolute;
    left: 20px;
    color: #9ca3af;
    font-size: 1.1rem;
    pointer-events: none;
}

.faq-search-wrapper input {
    width: 100%;
    padding: 18px 50px 18px 52px;
    border: 2px solid #e8e8ee;
    border-radius: 14px;
    font-size: 1rem;
    font-family: var(--font-primary);
    background: #fff;
    color: #1a1a2e;
    transition: all 0.3s ease;
    outline: none;
}

.faq-search-wrapper input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(182, 39, 39, 0.1);
}

.faq-search-wrapper input::placeholder {
    color: #9ca3af;
}

.search-clear {
    position: absolute;
    right: 18px;
    cursor: pointer;
    color: #9ca3af;
    font-size: 1rem;
    display: none;
    transition: color 0.2s;
}

.search-clear:hover {
    color: var(--color-primary);
}

.search-hint {
    text-align: center;
    margin-top: 12px;
    font-size: 0.82rem;
    color: #9ca3af;
}

/* FAQ Content */
.faq-content {
    padding: 60px 0 100px;
    background: #f8f9fa;
}

/* Category */
.faq-category {
    margin-bottom: 48px;
}

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

.faq-category-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e8e8ee;
}

.faq-category-title i {
    color: var(--color-primary);
    font-size: 1.1rem;
}

/* FAQ Item */
.faq-item {
    background: #fff;
    border: 1px solid #e8e8ee;
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(182, 39, 39, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.faq-item.active {
    border-color: rgba(182, 39, 39, 0.3);
    box-shadow: 0 4px 16px rgba(182, 39, 39, 0.08);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-primary);
    transition: background 0.2s ease;
}

.faq-question:hover {
    background: rgba(182, 39, 39, 0.03);
}

.faq-question span {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a2e;
    line-height: 1.5;
}

.faq-question i {
    color: var(--color-primary);
    font-size: 0.85rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding: 0 24px 20px;
}

.faq-answer p {
    font-size: 0.92rem;
    line-height: 1.8;
    color: #4a4a5a;
    padding-top: 12px;
    border-top: 1px solid #f0f0f5;
}

/* Search Highlight */
.search-highlight {
    background: rgba(182, 39, 39, 0.15);
    color: var(--color-primary);
    padding: 2px 4px;
    border-radius: 4px;
    font-weight: 600;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 768px) {
    .page-hero {
        padding: 130px 0 60px;
    }

    .faq-search-section {
        padding: 32px 0 24px;
    }

    .faq-search-wrapper input {
        padding: 16px 44px 16px 48px;
        font-size: 0.95rem;
    }

    .faq-content {
        padding: 40px 0 60px;
    }

    .faq-category-title {
        font-size: 1.05rem;
    }

    .faq-question {
        padding: 16px 18px;
    }

    .faq-question span {
        font-size: 0.9rem;
    }

    .faq-answer {
        padding: 0 18px 16px;
    }

    .faq-answer p {
        font-size: 0.88rem;
    }
}

@media (max-width: 420px) {
    .page-hero {
        padding: 120px 0 50px;
    }

    .page-hero h1 {
        font-size: 1.8rem;
    }

    .faq-category {
        margin-bottom: 32px;
    }

    .faq-category-title {
        font-size: 0.95rem;
        gap: 8px;
    }

    .faq-item {
        margin-bottom: 10px;
        border-radius: 10px;
    }

    .faq-question {
        padding: 14px 16px;
        gap: 12px;
    }

    .faq-question span {
        font-size: 0.85rem;
    }
}
