/* ==========================================================================
   FAQ Page — css/faq.css
   All classes prefixed with faq-
   ========================================================================== */

/* ---------- Background Glows ---------- */
.faq-bg-glows {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

[dir="rtl"] .faq-arrow {
    transform: scaleX(-1);
}

.faq-bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    will-change: transform;
}

.faq-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);
}

.faq-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);
}

.faq-bg-glow--3 {
    width: 1367px;
    height: 706px;
    top: 1143px;
    left: 37px;
    background: radial-gradient(circle, rgba(var(--color-primary-rgb), 0.08) 0%, transparent 70%);
}

/* ---------- Page container ---------- */
.faq-page {
    position: relative;
    z-index: 1;
}

/* ---------- Entrance Animation ---------- */
@keyframes faqSlideUp {
    from {
        opacity: 0;
        transform: translateY(80px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-page--animate .faq-hero {
    animation: faqSlideUp 0.8s ease-out both;
}

.faq-page--animate .faq-categories {
    opacity: 0;
    animation: faqSlideUp 0.8s 0.15s ease-out both;
}

.faq-page--animate .faq-accordion {
    opacity: 0;
    animation: faqSlideUp 0.8s 0.3s ease-out both;
}

.faq-page--animate ~ .site-footer {
    opacity: 0;
    animation: faqSlideUp 0.8s 0.45s ease-out both;
}

@media (prefers-reduced-motion: reduce) {
    .faq-page--animate .faq-hero,
    .faq-page--animate .faq-categories,
    .faq-page--animate .faq-accordion,
    .faq-page--animate ~ .site-footer {
        animation: none;
        opacity: 1;
    }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.faq-hero {
    padding-top: 200px;
    padding-bottom: 0;
}

.faq-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    max-width: 1300px;
    margin: 0 auto;
}

.faq-hero-title {
    font-size: 86px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.43px;
    text-transform: uppercase;
    background: linear-gradient(71deg, #fff 3.96%, var(--color-secondary) 71.39%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    max-width: 597px;
    flex-shrink: 0;
}

.faq-hero-desc {
    font-size: 16px;
    line-height: 26px;
    letter-spacing: 0.024px;
    color: rgba(255, 255, 255, 0.5);
    max-width: 555px;
    margin: 0;
}

/* ==========================================================================
   CATEGORY CARDS CAROUSEL
   ========================================================================== */
.faq-categories {
    padding-top: 80px;
    padding-bottom: 0;
}

.faq-categories-track {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 2px;
}

    .faq-categories-track::-webkit-scrollbar {
        display: none;
    }

/* Grid view (toggled by "View all") */
.faq-categories-grid {
    flex-wrap: wrap;
    overflow-x: visible;
    scroll-snap-type: none;
}

    .faq-categories-grid .faq-category-card {
        flex: 0 0 calc((100% - 60px) / 3);
        scroll-snap-align: unset;
    }

/* --- Single card --- */
.faq-category-card {
    flex: 0 0 min(400px, 80vw);
    min-width: 0;
    min-height: 343px;
    scroll-snap-align: start;
    position: relative;
    overflow: hidden;
    color: #05131d;
    text-decoration: none;
    display: block;
    transition: transform 0.3s ease;
}

    .faq-category-card:hover {
        transform: translateY(-4px);
        color: #05131d;
    }

/* SVG background shape (absolutely fills the card) */
.faq-category-bg {
    position: absolute;
    inset: -7.89% -7.27% -14.3% -11.77%;
    width: 119.04%;
    height: 122.19%;
    pointer-events: none;
}

/* Card content positioned over the SVG shape */
.faq-category-content {
    position: relative;
    z-index: 1;
    padding: 42px 53px 31px 62px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    min-height: 100%;
    box-sizing: border-box;
}


/* Dark variant (first card) */
.faq-category-card--dark {
    color: #fff;
}

    .faq-category-card--dark:hover {
        color: #fff;
    }

/* Arrow icon (top-right) */
.faq-category-arrow {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 58px;
    height: 58px;
    pointer-events: none;
    transition: transform 0.3s ease;
}

.faq-category-card:hover .faq-category-arrow {
    transform: rotate(45deg);
}

[dir="rtl"] .faq-category-arrow {
    right: auto;
    left: 30px;
    transform: scaleX(-1);
}

.faq-category-title {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
    word-break: break-word;
    flex: 1;
    display: flex;
    align-items: center;
}

.faq-category-desc {
    display: none;
}

.faq-category-card--dark .faq-category-desc {
    color: rgba(255, 255, 255, 0.7);
}

.faq-category-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 400;
    text-decoration: underline;
    background: linear-gradient(195deg, var(--color-primary) 0.91%, var(--color-primary-light) 82.1%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: opacity 0.2s;
}

    .faq-category-link img {
        flex-shrink: 0;
        width: 10px;
        height: 10px;
        transform: scaleY(-1) rotate(-90deg);
    }

/* Dark card "Read more" is white, not gradient */
.faq-category-link--light {
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: #fff;
    background-clip: unset;
    color: #fff;
}

.faq-category-link:hover {
    opacity: 0.8;
}

/* --- Carousel navigation --- */
.faq-categories-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
}

.faq-nav-arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 0.5px solid var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    padding: 0;
}

    .faq-nav-arrow:hover {
        background: rgba(255, 255, 255, 0.2);
    }

    .faq-nav-arrow:disabled {
        opacity: 0.3;
        cursor: default;
    }

.faq-view-all {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 28px;
    border-radius: 32px;
    background: linear-gradient(204deg, var(--color-primary) 0.91%, var(--color-primary-light) 82.1%);
    color: #000050;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.2s;
}

[dir="rtl"] .faq-view-all {
    margin-left: 0;
    margin-right: auto;
}

.faq-view-all:hover {
    opacity: 0.9;
    color: #000050;
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */
.faq-accordion {
    padding-top: 100px;
    padding-bottom: 100px;
}

/* --- Section header --- */
.faq-accordion-header {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 60px;
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
}

.faq-accordion-icon {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
}

.faq-accordion-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: 8px;
}

.faq-accordion-desc {
    font-size: 20px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.5);
    max-width: 555px;
    margin: 0;
}

/* --- FAQ items --- */
.faq-accordion-items {
    display: flex;
    flex-direction: column;
    gap: 25px;
    max-width: 1300px;
    margin: 0 auto;
}

.faq-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 */
    .faq-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;
    }

    .faq-item.active {
        padding: 26px 32px;
    }

/* Question row */
.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.faq-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;
}

.faq-arrow {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

/* Answer */
.faq-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;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    opacity: 1;
    margin-top: 8px;
}

.faq-answer p {
    font-size: 16px;
    line-height: 26px;
    letter-spacing: 0.024px;
    color: #fff;
    margin: 0;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* --- 1200px --- */
@media (max-width: 1200px) {
    .faq-hero-title {
        font-size: 64px;
    }

    .faq-hero-inner {
        gap: 40px;
    }

    .faq-category-card {
        flex: 0 0 min(340px, 80vw);
    }

    .faq-categories-grid .faq-category-card {
        flex: 0 0 calc((100% - 60px) / 3);
    }

    .faq-category-title {
        font-size: 40px;
    }
}

/* --- 991px --- */
@media (max-width: 991px) {
    .faq-hero {
        padding-top: 160px;
    }

    .faq-hero-inner {
        flex-direction: column;
        gap: 24px;
    }

    .faq-hero-title {
        font-size: 52px;
        max-width: 100%;
    }

    .faq-hero-desc {
        max-width: 100%;
    }

    .faq-category-card {
        flex: 0 0 min(340px, 80vw);
    }

    .faq-categories-grid .faq-category-card {
        flex: 0 0 calc((100% - 30px) / 2);
    }

    .faq-accordion-title {
        font-size: 32px;
    }

    .faq-accordion-desc {
        font-size: 18px;
    }
}

/* --- 768px --- */
@media (max-width: 768px) {
    .faq-hero {
        padding-top: 140px;
    }

    .faq-hero-title {
        font-size: 40px;
        line-height: 1.05;
    }

    .faq-categories {
        padding-top: 60px;
    }

    .faq-categories-track {
        gap: 16px;
        scroll-snap-type: x mandatory;
    }

    .faq-category-card {
        flex: 0 0 calc(100% - 4px);
        scroll-snap-align: start;
    }

    .faq-category-title {
        font-size: 32px;
    }

    .faq-category-desc {
        font-size: 16px;
    }

    .faq-accordion {
        padding-top: 80px;
        padding-bottom: 80px;
    }

    .faq-accordion-header {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 40px;
    }

    .faq-accordion-icon {
        width: 72px;
        height: 72px;
    }

    .faq-accordion-title {
        font-size: 28px;
    }

    .faq-item {
        padding: 14px 20px;
    }

        .faq-item.active {
            padding: 20px 20px;
        }

    .faq-question-title {
        font-size: 16px;
        white-space: normal;
    }

    .faq-arrow {
        width: 36px;
        height: 36px;
    }

    .faq-categories-grid .faq-category-card {
        flex: 0 0 calc((100% - 30px) / 2);
    }
}

/* --- 576px --- */
@media (max-width: 576px) {
    .faq-hero-title {
        font-size: 32px;
    }

    .faq-hero-desc {
        font-size: 14px;
        line-height: 22px;
    }

    .faq-category-title {
        font-size: 28px;
    }

    .faq-categories-nav {
        flex-wrap: wrap;
    }

    .faq-view-all {
        width: 100%;
        margin-left: 0;
        justify-content: center;
        margin-top: 8px;
    }

    .faq-categories-grid .faq-category-card {
        flex: 0 0 100%;
    }

    .faq-accordion-title {
        font-size: 24px;
    }

    .faq-accordion-desc {
        font-size: 16px;
    }
}

/* ==========================================================================
   RTL
   ========================================================================== */
[dir="rtl"] .faq-hero-title {
    line-height: 1.2;
}

[dir="rtl"] .faq-hero-desc {
    text-align: right;
}

[dir="rtl"] .faq-category-link img {
    transform: scaleY(-1) rotate(90deg);
}

[dir="rtl"] .faq-nav-arrow--prev img {
    transform: scaleX(-1);
}

[dir="rtl"] .faq-nav-arrow--next img {
    transform: scaleX(-1);
}

@media (max-width: 991px) {
    [dir="rtl"] .faq-hero-inner {
        flex-direction: column;
    }
}

.pd-faq {
    position: relative;
    z-index: 1;
    padding-top: 50px;
    padding-bottom: 50px;
}

.faq-header {
    display: flex;
    align-items: center;
    gap: 30px;
}

.faq-icon {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    object-fit: contain;
}

.faq-header-text {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.faq-title {
    font-weight: 700;
    font-size: 40px;
    line-height: 1.4;
    margin: 0;
    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;
    white-space: nowrap;
}

.faq-subtitle {
    font-weight: 400;
    font-size: 20px;
    line-height: 1.4;
    color: var(--color-white);
    opacity: 0.5;
    margin: 0;
    max-width: 555px;
}

.faq-items {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 60px;
    }

.faq-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;
}

    .faq-item::before {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: inherit;
        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: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        mask-composite: exclude;
        pointer-events: none;
        z-index: 0;
    }

    .faq-item > * {
        position: relative;
        z-index: 1;
    }

    .faq-item.active {
        padding: 26px 32px;
    }

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.faq-question-title {
    font-weight: 700;
    font-size: 18px;
    line-height: 22px;
    text-transform: uppercase;
    color: var(--color-white);
    margin: 0;
    white-space: nowrap;
}

.faq-arrow {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.faq-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;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    opacity: 1;
    margin-top: 8px;
}

.faq-answer p {
    font-weight: 400;
    font-size: 16px;
    line-height: 26px;
    color: var(--color-white);
    margin: 0;
}

/* ===========================
   Responsive — 768px
   =========================== */
@media (max-width: 768px) {
    .packages-hero {
        padding-top: 130px;
    }

    .packages-hero-title {
        font-size: 36px;
        line-height: 46px;
    }

    .packages-hero-desc {
        font-size: 14px;
    }

    .packages-hero-tags {
        gap: 16px;
    }

    .packages-slider-viewport {
        height: 400px;
    }

    .packages-slide-content {
        padding: 30px;
    }

    .packages-slide-title {
        font-size: 22px;
    }

    .packages-slide-icon {
        width: 60px;
        height: 60px;
    }

    .packages-slide-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .packages-slide-nav {
        align-self: flex-end;
    }

    .packages-factors-header {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .packages-factors-header-text {
        align-items: center;
    }

    .packages-factors-icon {
        width: 70px;
        height: 70px;
    }

    .faq-header {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .faq-header-text {
        align-items: center;
    }

    .faq-icon {
        width: 70px;
        height: 70px;
    }

    .faq-question-title {
        font-size: 15px;
    }

    .faq-arrow {
        width: 36px;
        height: 36px;
    }
}

/* ===========================
   Responsive — 576px
   =========================== */
@media (max-width: 576px) {
    .packages-hero {
        padding-top: 110px;
    }

    .packages-hero-title {
        font-size: 28px;
        line-height: 38px;
    }

    .packages-hero-tags {
        gap: 10px;
    }

    .packages-slider-viewport {
        height: 360px;
    }

    .packages-slide-content {
        padding: 24px;
        gap: 12px;
    }

    .packages-slide-title {
        font-size: 20px;
    }

    .packages-slide-icon {
        width: 50px;
        height: 50px;
    }

    .packages-slide-btn {
        font-size: 12px;
        padding: 8px 20px;
        height: 34px;
    }

    .packages-slide-arrow {
        width: 38px;
        height: 38px;
    }

    .packages-factors-viewport {
        overflow: hidden;
        width: 100%;
    }

    .packages-factors-grid {
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 16px;
        transition: margin 0.6s ease;
    }

    .packages-factor-card {
        flex-shrink: 0;
        width: auto;
    }

    .packages-factor-desc {
        font-size: 18px;
        max-width: none;
    }

    .packages-factors-dots {
        display: flex;
    }

    .faq-items {
        margin-top: 30px;
        gap: 16px;
    }

    .faq-item {
        padding: 12px 16px;
    }

        .faq-item.active {
            padding: 16px;
        }

    .faq-question-title {
        font-size: 14px;
    }

    .faq-arrow {
        width: 32px;
        height: 32px;
    }
}


/* ===========================
   Responsive — 991px
   =========================== */
@media (max-width: 991px) {
    .faq-title {
        font-size: 30px;
        white-space: normal;
    }

    .faq-subtitle {
        font-size: 16px;
    }

    .faq-question-title {
        white-space: normal;
    }
}