/* ========================================
   FAQ PAGE STYLES
   ======================================== */

/* ---------------------------------------- 1. PAGE CANVAS OVERRIDES ---------------------------------------- */
/* Force full width on OceanWP default page template */
.page-header,
.entry-header {
    display: none !important;
}

.page-header {
    display: none !important;
}

#content-wrap,
#primary,
.content-area,
.entry-content {
    max-width: none !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

#primary {
    border: 0 !important;
}

.faq-page {
    background: #f8faf9;
    font-family: var(--font-body);
    overflow: hidden;
}

.faq-page *,
.faq-page *::before,
.faq-page *::after {
    box-sizing: border-box;
}

/* ----------------------------------------
   ANIMATION KEYFRAMES
   ---------------------------------------- */
@keyframes faq-fade-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes faq-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ---------------------------------------- 2. HERO ---------------------------------------- */
.faq-hero {
    background: linear-gradient(135deg, #0f261a 0%, #1e4030 40%, #3F6A54 100%);
    color: #fff;
    padding: 70px 30px 60px;
    text-align: center;
    position: relative;
}

.faq-hero::after {
    animation: faq-fade-in 0.8s 0.8s ease 1 both;
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #FFD700, rgba(255, 215, 0, 0.2), transparent);
}

.faq-hero h1 {
    animation: faq-fade-up 0.7s 0.2s ease both;
    color: #fff;
    font-size: 44px;
    font-weight: 800;
    margin: 0 auto 18px;
    max-width: 800px;
    line-height: 1.15;
}

.faq-hero-lede {
    animation: faq-fade-up 0.7s 0.4s ease both;
    color: rgba(255, 255, 255, 0.88);
    font-size: 17px;
    line-height: 1.6;
    max-width: 680px;
    margin: 0 auto 28px;
}

.faq-hero-actions {
    animation: faq-fade-up 0.7s 0.6s ease both;
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.faq-hero-btn-primary {
    background: linear-gradient(135deg, #ffe566, #FFD700, #e6a800);
    color: #1a1a1a !important;
    font-weight: 800;
    font-size: 15px;
    padding: 13px 28px;
    border-radius: 8px;
    text-decoration: none !important;
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.28);
    transition: transform .2s, box-shadow .2s;
}

.faq-hero-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(255, 180, 0, 0.36);
}

.faq-hero-btn-secondary {
    background: rgba(255, 255, 255, 0.12);
    border: 1.5px solid rgba(255, 255, 255, 0.7);
    color: #fff !important;
    font-weight: 700;
    font-size: 15px;
    padding: 13px 28px;
    border-radius: 8px;
    text-decoration: none !important;
    transition: background .2s;
}

.faq-hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ---------------------------------------- 2. QUICK NAV ---------------------------------------- */
.faq-quick-nav {
    background: #fff;
    border-bottom: 1px solid #e8ede9;
    padding: 18px 30px;
    overflow-x: auto;
}

.faq-quick-nav-inner {
    display: flex;
    gap: 10px;
    max-width: 1180px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.faq-nav-btn {
    background: #f8faf9;
    border: 1px solid #dfe8df;
    border-radius: 30px;
    color: #3F6A54;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 18px;
    text-decoration: none !important;
    white-space: nowrap;
    transition: all .2s;
}

.faq-nav-btn:hover {
    background: #3F6A54;
    color: #fff !important;
    border-color: #3F6A54;
}

/* ---------------------------------------- 3. MAIN LAYOUT ---------------------------------------- */
.faq-main {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 50px 30px 70px;
    align-items: start;
}

.faq-content {
    min-width: 0;
}

/* Category heading */
.faq-category-heading {
    font-size: 22px;
    font-weight: 800;
    color: #1a1a1a;
    padding: 0 0 12px 0;
    margin: 40px 0 20px 0;
    border-bottom: 3px solid #FFD700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-category-heading:first-child {
    margin-top: 0;
}

.faq-category-heading span {
    font-size: 20px;
}

/* Accordion — reuse taxonomy-series-faq.css classes: .faq-item .faq-question .faq-icon .faq-answer */
.faq-answer {
    display: none;
}

.faq-answer.is-open {
    display: block;
}

/* ---------------------------------------- 4. STICKY SIDEBAR ---------------------------------------- */
.faq-sidebar {
    position: sticky;
    top: 100px;
}

.faq-help-box {
    background: #fff;
    border: 1px solid #e8ede9;
    border-top: 5px solid #3F6A54;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(15, 38, 26, 0.08);
    padding: 28px 24px;
}

.faq-help-box h3 {
    font-size: 18px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 12px 0;
}

.faq-help-box p {
    font-size: 14px;
    color: #5a6b62;
    line-height: 1.6;
    margin: 0 0 20px 0;
}

.faq-help-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.faq-help-contact a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
    color: #3d4f46 !important;
    font-size: 14px;
    font-weight: 600;
}

.faq-help-contact a:hover {
    color: #3F6A54 !important;
}

.faq-help-contact .faq-contact-icon {
    background: #f0f5f2;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.faq-help-box .faq-wa-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #25D366, #1fb855);
    color: #fff !important;
    font-weight: 800;
    font-size: 14px;
    padding: 13px;
    border-radius: 8px;
    text-decoration: none !important;
    width: 100%;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.25);
    transition: transform .2s, box-shadow .2s;
}

.faq-help-box .faq-wa-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(37, 211, 102, 0.32);
}

.faq-help-box .faq-contact-btn {
    display: block;
    text-align: center;
    margin-top: 10px;
    padding: 11px;
    border: 1.5px solid #3F6A54;
    border-radius: 8px;
    color: #3F6A54 !important;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none !important;
    transition: all .2s;
}

.faq-help-box .faq-contact-btn:hover {
    background: #3F6A54;
    color: #fff !important;
}


/* ---------------------------------------- 6. FINAL CTA ---------------------------------------- */
.faq-cta-section {
    background: linear-gradient(135deg, #1e4030, #3F6A54);
    color: #fff;
    text-align: center;
    padding: 65px 30px;
    position: relative;
}

.faq-cta-section h2 {
    color: #fff;
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 14px 0;
}

.faq-cta-section p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
    line-height: 1.6;
    max-width: 640px;
    margin: 0 auto 28px;
}

.faq-cta-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------------------------------------- 7. RESPONSIVE ---------------------------------------- */
@media (max-width: 1024px) {
    .faq-cat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .faq-hero h1 {
        font-size: 30px;
    }

    .faq-main {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px 20px 50px;
    }

    .faq-sidebar {
        position: static;
    }

    .faq-cat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .faq-categories-section,
    .faq-cta-section {
        padding: 45px 20px;
    }

    .faq-quick-nav {
        padding: 14px 20px;
    }
}

@media (max-width: 480px) {
    .faq-cat-grid {
        grid-template-columns: 1fr 1fr;
    }
}