/* =========================================================
   GLOBALTIME.IO
   FAQ EXPLORER
   ========================================================= */

.faq-section {
    position: relative;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto 32px;
    padding: 64px 32px;
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
    border-radius: var(--radius, 12px);
    box-shadow: var(--shadow, 0 8px 30px rgba(0, 0, 0, 0.06));
    overflow: hidden;
}


/* =========================================================
   HEADER
   ========================================================= */

.faq-header {
    max-width: 760px;
    margin: 0 auto 48px;
    text-align: center;
}

.faq-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    color: var(--gold, #d69a1d);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    line-height: 1.4;
    text-transform: uppercase;
}

.faq-header h2 {
    margin: 0;
    color: var(--text, #1f2937);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.025em;
}

.faq-intro {
    max-width: 680px;
    margin: 18px auto 0;
    color: var(--muted-text, #6b7280);
    font-size: 1rem;
    line-height: 1.75;
}


/* =========================================================
   FAQ EXPLORER
   ========================================================= */

.faq-explorer {
    position: relative;
    display: grid;
    width: 100%;
}


/*
 * CSS Grid keeps both views in the same visual space.
 * This prevents unnecessary page jumping during transitions.
 */

.faq-view {
    grid-area: 1 / 1;
    width: 100%;
}


/* =========================================================
   QUESTION VIEW
   ========================================================= */

.faq-question-view {
    display: flex;
    flex-direction: column;
    gap: 42px;
    opacity: 1;
    transform: translateX(0);
    transition:
        opacity 0.32s ease,
        transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-question-view.is-hidden {
    opacity: 0;
    transform: translateX(-28px);
    pointer-events: none;
}


/* =========================================================
   FAQ GROUP
   ========================================================= */

.faq-group {
    width: 100%;
}

.faq-group-heading {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.faq-group-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(214, 154, 29, 0.28);
    border-radius: 50%;
    color: var(--gold, #d69a1d);
    background: rgba(214, 154, 29, 0.08);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.faq-group-label {
    display: block;
    margin-top: 2px;
    color: var(--gold-dark, #b7791f);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1.4;
    text-transform: uppercase;
}

.faq-group-heading p {
    margin: 5px 0 0;
    color: var(--muted-text, #6b7280);
    font-size: 0.9rem;
    line-height: 1.5;
}


/* =========================================================
   QUESTION LIST
   ========================================================= */

.faq-question-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
}


/* =========================================================
   QUESTION BUTTON
   ========================================================= */

.faq-question {
    position: relative;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    align-items: center;
    gap: 18px;
    width: 100%;
    min-height: 78px;
    padding: 16px 8px 16px 0;
    border: 0;
    border-bottom: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
    font: inherit;
    transition:
        background-color 0.25s ease,
        padding-left 0.25s ease,
        padding-right 0.25s ease;
}

.faq-question:hover {
    padding-left: 12px;
    padding-right: 12px;
    background: rgba(214, 154, 29, 0.055);
}

.faq-question:focus-visible {
    z-index: 2;
    outline: 3px solid rgba(214, 154, 29, 0.28);
    outline-offset: -3px;
    border-radius: 8px;
}

.faq-question-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: var(--muted-text, #6b7280);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.faq-question-text {
    color: var(--text, #1f2937);
    font-size: 1rem;
    font-weight: 650;
    line-height: 1.55;
}

.faq-question-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
    border-radius: 50%;
    color: var(--gold-dark, #b7791f);
    background: var(--card-bg, #ffffff);
    transition:
        transform 0.3s ease,
        color 0.3s ease,
        background-color 0.3s ease,
        border-color 0.3s ease;
}

.faq-question:hover .faq-question-arrow {
    transform: translateX(4px);
    border-color: rgba(214, 154, 29, 0.4);
    color: #ffffff;
    background: var(--gold, #d69a1d);
}


/* =========================================================
   ANSWER VIEW
   ========================================================= */

.faq-answer-view {
    position: relative;
    min-height: 100%;
    opacity: 0;
    transform: translateX(28px);
    pointer-events: none;
    visibility: hidden;
    transition:
        opacity 0.35s ease,
        transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0s linear 0.42s;
}

.faq-answer-view.is-active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    visibility: visible;
    transition:
        opacity 0.35s ease 0.08s,
        transform 0.42s cubic-bezier(0.22, 1, 0.36, 1) 0.08s,
        visibility 0s linear 0s;
}


/* =========================================================
   BACK BUTTON
   ========================================================= */

.faq-back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    padding: 8px 0;
    border: 0;
    background: transparent;
    color: var(--muted-text, #6b7280);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition:
        color 0.25s ease,
        transform 0.25s ease;
}

.faq-back-button span:first-child {
    font-size: 1.15rem;
    line-height: 1;
}

.faq-back-button:hover {
    color: var(--gold-dark, #b7791f);
    transform: translateX(-4px);
}

.faq-back-button:focus-visible {
    outline: 3px solid rgba(214, 154, 29, 0.28);
    outline-offset: 4px;
    border-radius: 5px;
}


/* =========================================================
   ANSWER CARD
   ========================================================= */

.faq-answer-card {
    position: relative;
    width: 100%;
    padding: 42px 46px 44px;
    border: 1px solid rgba(214, 154, 29, 0.22);
    border-radius: 18px;
    background:
        linear-gradient(
            135deg,
            rgba(214, 154, 29, 0.075),
            transparent 42%
        ),
        var(--card-bg, #ffffff);
    box-shadow:
        0 18px 50px rgba(0, 0, 0, 0.07);
    overflow: hidden;
}


/*
 * Decorative gold line.
 */

.faq-answer-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(
        90deg,
        var(--gold-dark, #b7791f),
        var(--gold, #d69a1d),
        var(--gold-light, #e7b83f)
    );
}


/* =========================================================
   ANSWER CARD CONTENT
   ========================================================= */

.faq-answer-label {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--gold-dark, #b7791f);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    line-height: 1.4;
    text-transform: uppercase;
}

.faq-answer-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    border-radius: 50%;
    color: #ffffff;
    background: var(--gold, #d69a1d);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    box-shadow: 0 8px 20px rgba(214, 154, 29, 0.22);
}

.faq-answer-card h3 {
    max-width: 850px;
    margin: 0;
    color: var(--text, #1f2937);
    font-size: clamp(1.45rem, 3vw, 2rem);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.015em;
}

.faq-answer-content {
    max-width: 850px;
    margin-top: 22px;
}

.faq-answer-content p {
    margin: 0 0 15px;
    color: var(--muted-text, #6b7280);
    font-size: 1rem;
    line-height: 1.8;
}

.faq-answer-content p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   ANSWER CTA
   ========================================================= */

.faq-answer-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
    padding: 12px 18px;
    border: 1px solid rgba(214, 154, 29, 0.35);
    border-radius: 8px;
    color: var(--gold-dark, #b7791f);
    background: rgba(214, 154, 29, 0.08);
    font-size: 0.9rem;
    font-weight: 750;
    text-decoration: none;
    transition:
        color 0.25s ease,
        background-color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.faq-answer-link:hover {
    color: #ffffff;
    border-color: var(--gold, #d69a1d);
    background: var(--gold, #d69a1d);
    transform: translateY(-2px);
}

.faq-answer-link span {
    transition: transform 0.25s ease;
}

.faq-answer-link:hover span {
    transform: translateX(4px);
}

.faq-answer-link:focus-visible {
    outline: 3px solid rgba(214, 154, 29, 0.28);
    outline-offset: 3px;
}


/* =========================================================
   POPULAR SEARCHES
   ========================================================= */

.faq-popular {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px 20px;
    margin-top: 44px;
    padding-top: 28px;
    border-top: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
}

.faq-popular-label {
    color: var(--muted-text, #6b7280);
    font-size: 0.82rem;
    font-weight: 750;
}

.faq-popular-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.faq-popular-links a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 12px;
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
    border-radius: 999px;
    color: var(--muted-text, #6b7280);
    background: transparent;
    font-size: 0.78rem;
    font-weight: 650;
    text-decoration: none;
    transition:
        color 0.25s ease,
        border-color 0.25s ease,
        background-color 0.25s ease;
}

.faq-popular-links a:hover {
    border-color: rgba(214, 154, 29, 0.35);
    color: var(--gold-dark, #b7791f);
    background: rgba(214, 154, 29, 0.07);
}


/* =========================================================
   DARK MODE
   Modern Deep-Navy Theme
========================================================= */

.dark-mode .faq-section,
[data-theme="dark"] .faq-section {
    background:
        radial-gradient(
            circle at 85% 8%,
            rgba(214, 154, 29, 0.055),
            transparent 28%
        ),
        linear-gradient(
            145deg,
            #111827,
            #0f172a
        );

    border: 1px solid rgba(148, 163, 184, 0.30) !important;

    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

/* =========================================================
   DARK MODE — HEADER
========================================================= */

.dark-mode .faq-eyebrow,
[data-theme="dark"] .faq-eyebrow {
    color: #f0b429;
}


.dark-mode .faq-header h2,
[data-theme="dark"] .faq-header h2 {
    color: #f8fafc;
}


.dark-mode .faq-intro,
[data-theme="dark"] .faq-intro {
    color: #94a3b8;
}


/* =========================================================
   DARK MODE — GROUP HEADINGS
========================================================= */

.dark-mode .faq-group-number,
[data-theme="dark"] .faq-group-number {
    color: #f0b429;

    background:
        rgba(214, 154, 29, 0.08);

    border-color:
        rgba(214, 154, 29, 0.32);

    box-shadow:
        0 0 0 4px rgba(214, 154, 29, 0.025);
}


.dark-mode .faq-group-label,
[data-theme="dark"] .faq-group-label {
    color: #f0b429;
}


.dark-mode .faq-group-heading p,
[data-theme="dark"] .faq-group-heading p {
    color: #94a3b8;
}


/* =========================================================
   DARK MODE — QUESTION LIST
========================================================= */

.dark-mode .faq-question-list,
[data-theme="dark"] .faq-question-list {
    border-color:
        rgba(148, 163, 184, 0.30);
}


.dark-mode .faq-question,
[data-theme="dark"] .faq-question {
    border-color:
        rgba(148, 163, 184, 0.30);

    color: #e5e7eb;
}

/* Question text — important contrast fix */

.dark-mode .faq-question-text,
[data-theme="dark"] .faq-question-text {
    color: #e5e7eb;
}


/* Question number */

.dark-mode .faq-question-number,
[data-theme="dark"] .faq-question-number {
    color: #94a3b8;
}


/* =========================================================
   DARK MODE — QUESTION HOVER
========================================================= */

.dark-mode .faq-question:hover,
[data-theme="dark"] .faq-question:hover {
    background:
        linear-gradient(
            90deg,
            rgba(214, 154, 29, 0.075),
            rgba(214, 154, 29, 0.025),
            transparent
        );

    border-color:
        rgba(214, 154, 29, 0.30);
}


.dark-mode .faq-question:hover .faq-question-text,
[data-theme="dark"] .faq-question:hover .faq-question-text {
    color: #ffffff;
}


.dark-mode .faq-question:hover .faq-question-number,
[data-theme="dark"] .faq-question:hover .faq-question-number {
    color: #f0b429;
}


/* =========================================================
   DARK MODE — QUESTION ARROW
========================================================= */

.dark-mode .faq-question-arrow,
[data-theme="dark"] .faq-question-arrow {
    color: #f0b429;

    background:
        rgba(15, 23, 42, 0.72);

    border-color:
        rgba(148, 163, 184, 0.25);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.035);
}


.dark-mode .faq-question:hover .faq-question-arrow,
[data-theme="dark"] .faq-question:hover .faq-question-arrow {
    color: #ffffff;

    background: #d69a1d;

    border-color: #d69a1d;

    box-shadow:
        0 6px 18px rgba(214, 154, 29, 0.22);
}


/* =========================================================
   DARK MODE — FOCUS
========================================================= */

.dark-mode .faq-question:focus-visible,
[data-theme="dark"] .faq-question:focus-visible {
    outline-color:
        rgba(240, 180, 41, 0.45);
}


/* =========================================================
   DARK MODE — BACK BUTTON
========================================================= */

.dark-mode .faq-back-button,
[data-theme="dark"] .faq-back-button {
    color: #94a3b8;
}


.dark-mode .faq-back-button:hover,
[data-theme="dark"] .faq-back-button:hover {
    color: #f0b429;
}


/* =========================================================
   DARK MODE — ANSWER CARD
========================================================= */

.dark-mode .faq-answer-card,
[data-theme="dark"] .faq-answer-card {
    border-color:
        rgba(214, 154, 29, 0.24);

    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(214, 154, 29, 0.075),
            transparent 32%
        ),
        linear-gradient(
            145deg,
            #182235,
            #111827
        );

    box-shadow:
        0 24px 55px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.035);
}


/* Gold top line */

.dark-mode .faq-answer-card::before,
[data-theme="dark"] .faq-answer-card::before {
    background:
        linear-gradient(
            90deg,
            #b7791f,
            #f0b429,
            #e7b83f,
            #f0b429,
            #b7791f
        );
}


/* Answer label */

.dark-mode .faq-answer-label,
[data-theme="dark"] .faq-answer-label {
    color: #f0b429;
}


/* Answer number */

.dark-mode .faq-answer-number,
[data-theme="dark"] .faq-answer-number {
    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #d69a1d,
            #b7791f
        );

    box-shadow:
        0 10px 24px rgba(214, 154, 29, 0.24);
}


/* Answer heading */

.dark-mode .faq-answer-card h3,
[data-theme="dark"] .faq-answer-card h3 {
    color: #f8fafc;
}


/* Answer paragraphs */

.dark-mode .faq-answer-content p,
[data-theme="dark"] .faq-answer-content p {
    color: #cbd5e1;
}


/* =========================================================
   DARK MODE — ANSWER CTA
========================================================= */

.dark-mode .faq-answer-link,
[data-theme="dark"] .faq-answer-link {
    color: #f0b429;

    background:
        rgba(214, 154, 29, 0.08);

    border-color:
        rgba(214, 154, 29, 0.30);
}


.dark-mode .faq-answer-link:hover,
[data-theme="dark"] .faq-answer-link:hover {
    color: #111827;

    background: #f0b429;

    border-color: #f0b429;

    box-shadow:
        0 10px 24px rgba(214, 154, 29, 0.22);
}


/* =========================================================
   DARK MODE — POPULAR SEARCHES
========================================================= */

.dark-mode .faq-popular,
[data-theme="dark"] .faq-popular {
    border-color:
        rgba(148, 163, 184, 0.14);
}


.dark-mode .faq-popular-label,
[data-theme="dark"] .faq-popular-label {
    color: #94a3b8;
}


.dark-mode .faq-popular-links a,
[data-theme="dark"] .faq-popular-links a {
    color: #cbd5e1;

    background:
        rgba(15, 23, 42, 0.55);

    border-color:
        rgba(148, 163, 184, 0.18);
}


.dark-mode .faq-popular-links a:hover,
[data-theme="dark"] .faq-popular-links a:hover {
    color: #f0b429;

    background:
        rgba(214, 154, 29, 0.08);

    border-color:
        rgba(214, 154, 29, 0.35);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 768px) {

    .faq-section {
        margin: 0 auto 20px;
        padding: 48px 20px;
        border-radius: 10px;
    }

    .faq-header {
        margin-bottom: 36px;
    }

    .faq-header h2 {
        font-size: 2rem;
    }

    .faq-intro {
        font-size: 0.94rem;
        line-height: 1.7;
    }

    .faq-question-view {
        gap: 34px;
    }

    .faq-group-heading {
        gap: 12px;
    }

    .faq-group-number {
        width: 38px;
        height: 38px;
        font-size: 0.7rem;
    }

    .faq-group-heading p {
        font-size: 0.84rem;
    }

    .faq-question {
        grid-template-columns: 34px minmax(0, 1fr) 34px;
        gap: 12px;
        min-height: 72px;
    }

    .faq-question-number {
        width: 34px;
        height: 34px;
        font-size: 0.7rem;
    }

    .faq-question-text {
        font-size: 0.92rem;
        line-height: 1.5;
    }

    .faq-question-arrow {
        width: 32px;
        height: 32px;
    }

    .faq-answer-card {
        padding: 34px 24px 34px;
        border-radius: 14px;
    }

    .faq-answer-card h3 {
        font-size: 1.45rem;
    }

    .faq-answer-content p {
        font-size: 0.94rem;
        line-height: 1.75;
    }

    .faq-popular {
        align-items: flex-start;
        flex-direction: column;
        margin-top: 34px;
    }

    .faq-popular-links {
        justify-content: flex-start;
    }
}


@media (max-width: 480px) {

    .faq-section {
        padding: 40px 16px;
    }

    .faq-header h2 {
        font-size: 1.75rem;
    }

    .faq-question {
        grid-template-columns: 30px minmax(0, 1fr) 30px;
        gap: 9px;
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .faq-question-number {
        width: 30px;
        height: 30px;
    }

    .faq-question-text {
        font-size: 0.88rem;
    }

    .faq-question-arrow {
        width: 29px;
        height: 29px;
        font-size: 0.85rem;
    }

    .faq-answer-card {
        padding: 30px 20px;
    }

    .faq-answer-card h3 {
        font-size: 1.3rem;
    }

    .faq-answer-content p {
        font-size: 0.9rem;
    }

    .faq-answer-link {
        width: 100%;
        justify-content: center;
    }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .faq-question-view,
    .faq-answer-view,
    .faq-question,
    .faq-question-arrow,
    .faq-answer-link,
    .faq-answer-link span,
    .faq-back-button {
        transition: none !important;
    }
}