/* style/faq.css */

/* Root variables for colors */
:root {
    --page-faq-primary-color: #F2C14E;
    --page-faq-secondary-color: #FFD36B;
    --page-faq-card-bg: #111111;
    --page-faq-background: #0A0A0A;
    --page-faq-text-main: #FFF6D6;
    --page-faq-border-color: #3A2A12;
    --page-faq-glow-color: #FFD36B;
    --page-faq-button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

.page-faq {
    background-color: var(--page-faq-background);
    color: var(--page-faq-text-main);
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

.page-faq__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 20px 60px;
    text-align: center;
    background-color: var(--page-faq-background);
    position: relative;
    overflow: hidden;
}

.page-faq__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin-bottom: 40px;
}

.page-faq__main-title {
    font-size: 2.8em;
    font-weight: 700;
    color: var(--page-faq-primary-color);
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
}

.page-faq__description {
    font-size: 1.1em;
    color: var(--page-faq-text-main);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-faq__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.05em;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-faq__btn-primary {
    background: var(--page-faq-button-gradient);
    color: #ffffff; /* White text for contrast */
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-faq__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
}

.page-faq__btn-secondary {
    background-color: transparent;
    color: var(--page-faq-primary-color);
    border: 2px solid var(--page-faq-primary-color);
}

.page-faq__btn-secondary:hover {
    background-color: rgba(242, 193, 78, 0.1);
    transform: translateY(-3px);
}

.page-faq__hero-image {
    width: 100%;
    max-width: 1200px;
    height: auto;
    margin-top: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    display: block;
}

.page-faq__faq-section,
.page-faq__cta-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: var(--page-faq-background);
}

.page-faq__section-title {
    font-size: 2.2em;
    color: var(--page-faq-primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
}

.page-faq__faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.page-faq__faq-item {
    background-color: var(--page-faq-card-bg);
    border: 1px solid var(--page-faq-border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: rgba(17, 17, 17, 0.8);
    color: var(--page-faq-text-main);
    font-size: 1.1em;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.page-faq__faq-question:hover {
    background-color: rgba(17, 17, 17, 1);
}

.page-faq__faq-question h3 {
    margin: 0;
    color: inherit;
    flex-grow: 1;
    text-align: left;
}

.page-faq__faq-toggle {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--page-faq-primary-color);
    width: 30px;
    text-align: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.page-faq__faq-item.active .page-faq__faq-toggle {
    transform: rotate(45deg);
}

.page-faq__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--page-faq-text-main);
    background-color: var(--page-faq-card-bg);
}

.page-faq__faq-item.active .page-faq__faq-answer {
    max-height: 1000px !important; /* Sufficiently large value */
    padding: 15px 25px;
    padding-top: 0;
}

.page-faq__faq-answer p {
    margin-bottom: 15px;
    font-size: 1em;
    color: var(--page-faq-text-main);
}

.page-faq__faq-answer p:last-child {
    margin-bottom: 0;
}

.page-faq__faq-answer .page-faq__btn-primary,
.page-faq__faq-answer .page-faq__btn-secondary {
    margin-top: 15px;
    width: fit-content;
    min-width: 150px;
    padding: 10px 20px;
    font-size: 0.95em;
}

.page-faq__cta-section {
    text-align: center;
    padding-bottom: 80px;
}

.page-faq__cta-section .page-faq__description {
    margin-bottom: 40px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-faq__main-title {
        font-size: 2.4em;
    }
    .page-faq__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-faq__main-title {
        font-size: 2em;
    }
    .page-faq__description {
        font-size: 1em;
    }
    .page-faq__section-title {
        font-size: 1.8em;
    }
    .page-faq__hero-section,
    .page-faq__faq-section,
    .page-faq__cta-section {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-faq__hero-content {
        margin-bottom: 20px;
    }
    .page-faq__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-faq__btn-primary,
    .page-faq__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-faq__hero-image {
        margin-top: 20px;
    }
    .page-faq__faq-question {
        padding: 15px 20px;
    }
    .page-faq__faq-question h3 {
        font-size: 1em;
    }
    .page-faq__faq-toggle {
        font-size: 1.2em;
    }
    .page-faq__faq-answer {
        padding: 0 20px;
    }
    .page-faq__faq-item.active .page-faq__faq-answer {
        padding: 15px 20px;
        padding-top: 0;
    }
    .page-faq__faq-answer .page-faq__btn-primary,
    .page-faq__faq-answer .page-faq__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
    }
}

@media (max-width: 480px) {
    .page-faq__main-title {
        font-size: 1.6em;
    }
    .page-faq__section-title {
        font-size: 1.5em;
    }
    .page-faq__btn-primary,
    .page-faq__btn-secondary {
        font-size: 0.95em;
        padding: 12px 20px;
    }
}