/* ==========================================================================
   FAQ Details Page — css/faq-details.css
   All classes prefixed with faqd-
   ========================================================================== */

/* ---------- Background Glows ---------- */
.faqd-bg-glows {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

[dir="rtl"] .faq-arrow {
    transform: scaleX(-1);
}

.faqd-bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    will-change: transform;
}

.faqd-bg-glow--1 {
    width: 868px;
    height: 626px;
    top: 67px;
    left: 29px;
    background: radial-gradient(circle, rgba(var(--color-secondary-rgb), 0.25) 0%, transparent 70%);
    transform: rotate(90deg);
}

.faqd-bg-glow--2 {
    width: 514px;
    height: 371px;
    top: 310px;
    right: 0;
    background: radial-gradient(circle, rgba(var(--color-primary-rgb), 0.2) 0%, transparent 70%);
    transform: rotate(100deg);
}

.faqd-bg-glow--3 {
    width: 1367px;
    height: 706px;
    top: 818px;
    left: 37px;
    background: radial-gradient(circle, rgba(var(--color-primary-rgb), 0.08) 0%, transparent 70%);
}

/* ---------- Page container ---------- */
.faqd-page {
    position: relative;
    z-index: 1;
}

/* ---------- Entrance Animation ---------- */
@keyframes faqdSlideUp {
    from {
        opacity: 0;
        transform: translateY(80px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faqd-page--animate .faqd-hero {
    animation: faqdSlideUp 0.8s ease-out both;
}

.faqd-page--animate .faqd-accordion {
    opacity: 0;
    animation: faqdSlideUp 0.8s 0.15s ease-out both;
}

.faqd-page--animate ~ .site-footer {
    opacity: 0;
    animation: faqdSlideUp 0.8s 0.3s ease-out both;
}

@media (prefers-reduced-motion: reduce) {
    .faqd-page--animate .faqd-hero,
    .faqd-page--animate .faqd-accordion,
    .faqd-page--animate ~ .site-footer {
        animation: none;
        opacity: 1;
    }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.faqd-hero {
    padding-top: 200px;
    padding-bottom: 0;
    overflow: hidden;
}

.faqd-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    max-width: 1300px;
    margin: 0 auto;
}

/* Left side: icon + text */
.faqd-hero-left {
    display: flex;
    align-items: center;
    gap: 30px;
    flex: 1;
}

.faqd-hero-icon {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
}

.faqd-hero-title {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.4;
    background: linear-gradient(186deg, var(--color-primary) 0.91%, var(--color-primary-light) 82.1%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 24px;
}

.faqd-hero-desc {
    font-size: 20px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.5);
    max-width: 555px;
    margin: 0;
}

/* Right side: mini category card */
.faqd-hero-card {
    position: relative;
    width: 188px;
    height: 161px;
    flex-shrink: 0;
}

.faqd-hero-card-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.faqd-hero-card-content {
    position: relative;
    z-index: 1;
    padding: 18px 20px 14px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #fff;
    height: 100%;
    box-sizing: border-box;
}

.faqd-hero-card-title {
    font-size: 13px;
    font-weight: 700;
    line-height: normal;
    margin: 0;
    padding-top: 34px;
}

.faqd-hero-card-desc {
    font-size: 12px;
    line-height: 15px;
    margin: 0;
    color: #fff;
}

.faqd-hero-card-arrow {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    pointer-events: none;
    z-index: 1;
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */
.faqd-accordion {
    padding-top: 60px;
    padding-bottom: 100px;
}

.faqd-accordion-items {
    display: flex;
    flex-direction: column;
    gap: 25px;
    max-width: 1300px;
    margin: 0 auto;
}

.faqd-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 16px 32px;
    cursor: pointer;
    transition: padding 0.3s ease;
    position: relative;
    overflow: hidden;
}

    /* Gradient border using ::before + mask-composite */
    .faqd-item::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 10px;
        padding: 1px;
        background: linear-gradient(184deg, var(--color-primary) 0.91%, var(--color-primary-light) 82.1%);
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        pointer-events: none;
    }

    .faqd-item.active {
        padding: 26px 32px;
    }

/* Question row */
.faqd-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.faqd-question-title {
    font-weight: 700;
    font-size: 18px;
    line-height: 22px;
    letter-spacing: -0.09px;
    text-transform: uppercase;
    color: var(--color-white, #fff);
    margin: 0;
}

.faqd-arrow {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

/* Answer */
.faqd-answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.3s ease;
    margin-top: 0;
    position: relative;
    z-index: 1;
}

.faqd-item.active .faqd-answer {
    max-height: 500px;
    opacity: 1;
    margin-top: 8px;
}

.faqd-answer p {
    font-size: 16px;
    line-height: 26px;
    letter-spacing: 0.024px;
    color: #fff;
    margin: 0;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* --- 1200px --- */
@media (max-width: 1200px) {
    .faqd-hero-title {
        font-size: 32px;
    }

    .faqd-hero-desc {
        font-size: 18px;
    }
}

/* --- 991px --- */
@media (max-width: 991px) {
    .faqd-hero {
        padding-top: 160px;
    }

    .faqd-hero-inner {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        gap: 20px 24px;
        align-items: start;
    }

    .faqd-hero-left {
        display: contents;
    }

    .faqd-hero-icon {
        grid-row: 1;
        grid-column: 1;
    }

    .faqd-hero-left .faqd-hero-text {
        grid-row: 2;
        grid-column: 1 / -1;
    }

    .faqd-hero-card {
        grid-row: 1;
        grid-column: 2;
        justify-self: end;
    }

    .faqd-hero-title {
        font-size: 28px;
    }

    .faqd-hero-desc {
        max-width: 100%;
        font-size: 16px;
    }
}

/* --- 768px --- */
@media (max-width: 768px) {
    .faqd-hero {
        padding-top: 140px;
    }

    .faqd-hero-icon {
        width: 72px;
        height: 72px;
    }

    .faqd-accordion {
        padding-top: 40px;
        padding-bottom: 80px;
    }

    .faqd-item {
        padding: 14px 20px;
    }

        .faqd-item.active {
            padding: 20px 20px;
        }

    .faqd-question-title {
        font-size: 16px;
        white-space: normal;
    }

    .faqd-arrow {
        width: 36px;
        height: 36px;
    }

    .faqd-hero-card {
        width: 150px;
        height: 128px;
    }

    .faqd-hero-card-title {
        font-size: 36px;
    }
}

/* --- 576px --- */
@media (max-width: 576px) {
    .faqd-hero-title {
        font-size: 24px;
    }

    .faqd-hero-desc {
        font-size: 14px;
        line-height: 22px;
    }

    .faqd-hero-card {
        width: 120px;
        height: 103px;
        display: none;
    }

    .faqd-hero-card-title {
        font-size: 28px;
    }

    .faqd-hero-card-desc {
        font-size: 10px;
        line-height: 12px;
    }
}

/* ==========================================================================
   RTL
   ========================================================================== */
[dir="rtl"] .faqd-hero-text {
    text-align: right;
}

[dir="rtl"] .faqd-hero-card-arrow {
    right: auto;
    left: 7.59%;
    transform: scaleX(-1);
}

@media (max-width: 991px) {
    [dir="rtl"] .faqd-hero-inner {
        flex-direction: column;
        align-items: flex-end;
    }

    [dir="rtl"] .faqd-hero-left {
        flex-direction: column;
        align-items: flex-end;
    }
}
