/* style/faq.css */

/* Variables */
:root {
    --page-faq-primary-color: #1A1A2E;
    --page-faq-secondary-color: #E0B95B;
    --page-faq-text-light: #F0F0F0; /* High contrast with primary */
    --page-faq-text-dark: #1A1A2E;  /* High contrast with secondary */
    --page-faq-background-dark: #1A1A2E;
    --page-faq-background-light: #F8F8F8;
    --page-faq-border-color: #33334F;
    --page-faq-hover-primary: #2B2B4D;
    --page-faq-hover-secondary: #D4A947;
}

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

.page-faq__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-faq__hero {
    background: linear-gradient(135deg, var(--page-faq-primary-color) 0%, #2A2A4A 100%);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 2px solid var(--page-faq-secondary-color);
}

.page-faq__hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('[GALLERY:bg:abstract,geometric,pattern]') no-repeat center center/cover;
    opacity: 0.1;
    z-index: 0;
}

.page-faq__hero > .page-faq__container {
    position: relative;
    z-index: 1;
}

.page-faq__title {
    font-size: 3.2em;
    color: var(--page-faq-secondary-color);
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-faq__subtitle {
    font-size: 1.3em;
    color: var(--page-faq-text-light);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-faq__section-heading {
    font-size: 2.5em;
    color: var(--page-faq-secondary-color);
    text-align: center;
    margin-bottom: 50px;
    padding-top: 60px;
    position: relative;
}

.page-faq__section-heading::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--page-faq-secondary-color);
    border-radius: 2px;
}

.page-faq__accordion-section {
    padding: 60px 0;
    background-color: var(--page-faq-background-dark);
}

.page-faq__accordion {
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid var(--page-faq-border-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-faq__accordion-item {
    border-bottom: 1px solid var(--page-faq-border-color);
}

.page-faq__accordion-item:last-child {
    border-bottom: none;
}

.page-faq__accordion-header {
    background-color: var(--page-faq-primary-color);
    color: var(--page-faq-text-light);
    padding: 20px 25px;
    width: 100%;
    text-align: left;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-faq__accordion-header:hover {
    background-color: var(--page-faq-hover-primary);
}

.page-faq__accordion-header.active .page-faq__icon {
    transform: rotate(45deg);
}

.page-faq__question-title {
    margin: 0;
    color: var(--page-faq-text-light); /* Ensure high contrast */
}

.page-faq__icon {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: var(--page-faq-secondary-color);
}

.page-faq__accordion-content {
    background-color: #2A2A4A;
    color: var(--page-faq-text-light);
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.page-faq__accordion-content p {
    padding-bottom: 20px;
    margin-top: 15px;
}

.page-faq__accordion-content.active {
    max-height: 500px; /* Adjust as needed */
    padding: 20px 25px;
}

.page-faq__accordion-content .page-faq__btn--secondary {
    display: inline-block;
    margin-top: 15px;
    margin-bottom: 15px;
}

.page-faq__btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    white-space: nowrap;
    cursor: pointer;
    border: none;
    font-size: 1em;
}

.page-faq__btn--primary {
    background-color: var(--page-faq-secondary-color);
    color: var(--page-faq-text-dark);
}

.page-faq__btn--primary:hover {
    background-color: var(--page-faq-hover-secondary);
    transform: translateY(-2px);
}

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

.page-faq__btn--secondary:hover {
    background-color: var(--page-faq-secondary-color);
    color: var(--page-faq-primary-color);
    transform: translateY(-2px);
}

.page-faq__btn--tertiary {
    background-color: transparent;
    color: var(--page-faq-secondary-color);
    border: 1px solid var(--page-faq-secondary-color);
    padding: 8px 20px;
    font-size: 0.9em;
}

.page-faq__btn--tertiary:hover {
    background-color: var(--page-faq-secondary-color);
    color: var(--page-faq-primary-color);
    transform: translateY(-1px);
}

.page-faq__related-faqs {
    background-color: #1A1A2E;
    padding-bottom: 80px;
}

.page-faq__detail-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-faq__detail-item {
    background-color: #2A2A4A;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
}

.page-faq__detail-item:hover {
    transform: translateY(-5px);
}

.page-faq__detail-title {
    font-size: 1.5em;
    color: var(--page-faq-secondary-color);
    margin-bottom: 15px;
}

.page-faq__detail-title a {
    color: var(--page-faq-secondary-color);
    text-decoration: none;
}

.page-faq__detail-title a:hover {
    text-decoration: underline;
}

.page-faq__detail-description {
    color: var(--page-faq-text-light);
    margin-bottom: 25px;
    flex-grow: 1;
}

.page-faq__cta-bottom {
    background-color: #2A2A4A;
    padding: 80px 0;
    text-align: center;
    border-top: 2px solid var(--page-faq-secondary-color);
}

.page-faq__cta-title {
    font-size: 2.5em;
    color: var(--page-faq-secondary-color);
    margin-bottom: 20px;
}

.page-faq__cta-description {
    font-size: 1.2em;
    color: var(--page-faq-text-light);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-faq__title {
        font-size: 2.5em;
    }

    .page-faq__subtitle,
    .page-faq__cta-description {
        font-size: 1.1em;
    }

    .page-faq__section-heading,
    .page-faq__cta-title {
        font-size: 2em;
    }

    .page-faq__accordion-header {
        font-size: 1.1em;
        padding: 15px 20px;
    }

    .page-faq__accordion-content {
        padding: 15px 20px;
    }

    .page-faq__detail-item {
        padding: 25px;
    }

    .page-faq__detail-title {
        font-size: 1.3em;
    }

    .page-faq__btn {
        padding: 10px 20px;
        font-size: 0.95em;
    }
}

@media (max-width: 480px) {
    .page-faq__title {
        font-size: 2em;
    }

    .page-faq__subtitle {
        font-size: 1em;
    }

    .page-faq__section-heading,
    .page-faq__cta-title {
        font-size: 1.8em;
    }

    .page-faq__accordion-header {
        font-size: 1em;
        padding: 12px 15px;
    }

    .page-faq__accordion-content {
        padding: 12px 15px;
    }

    .page-faq__btn {
        padding: 8px 15px;
        font-size: 0.9em;
    }
}