/* style/faq.css */

/* Variables for colors */
:root {
    --page-faq-primary-color: #FFD700; /* Gold */
    --page-faq-secondary-color: #1A1A1A; /* Dark Grey */
    --page-faq-text-light: #F0F0F0; /* Light text for dark backgrounds */
    --page-faq-text-dark: #333333; /* Dark text for light backgrounds */
    --page-faq-accent-color: #0028ff; /* Complementary accent */
    --page-faq-border-color: #444444;
    --page-faq-hover-color: #e6c200; /* Slightly darker gold for hover */
}

/* Base styles for the page-faq container */
.page-faq {
    font-family: 'Arial', sans-serif;
    color: var(--page-faq-text-light); /* Default text color for dark sections */
    background-color: var(--page-faq-secondary-color); /* Default background */
    line-height: 1.6;
}

/* Hero Section */
.page-faq__hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, var(--page-faq-secondary-color) 0%, #333333 50%, var(--page-faq-primary-color) 100%);
    color: var(--page-faq-text-light);
    position: relative;
    overflow: hidden;
}

.page-faq__hero-content {
    max-width: 800px;
    z-index: 1;
}

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

.page-faq__hero-subtitle {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: var(--page-faq-text-light);
}

.page-faq__hero-button {
    display: inline-block;
    background-color: var(--page-faq-primary-color);
    color: var(--page-faq-secondary-color);
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-faq__hero-button:hover {
    background-color: var(--page-faq-hover-color);
    transform: translateY(-2px);
}

.page-faq__hero-image-wrapper {
    margin-top: 40px;
    max-width: 100%;
    z-index: 0; /* Behind content */
}

.page-faq__hero-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Main Content Section */
.page-faq__main-content,
.page-faq__detail-pages,
.page-faq__cta {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.page-faq__section-title {
    font-size: 2.5em;
    color: var(--page-faq-primary-color);
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-faq__section-description {
    font-size: 1.1em;
    color: var(--page-faq-text-light);
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Accordion Styles */
.page-faq__accordion-container {
    background-color: #2a2a2a; /* Slightly lighter dark background for contrast */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    margin-top: 30px;
}

.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: #383838;
    color: var(--page-faq-primary-color);
    padding: 20px 25px;
    width: 100%;
    text-align: left;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.25em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-faq__accordion-header:hover {
    background-color: #4c4c4c;
}

.page-faq__accordion-header h3 {
    margin: 0;
    color: inherit; /* Inherit color from button */
}

.page-faq__accordion-icon {
    width: 20px;
    height: 20px;
    position: relative;
    flex-shrink: 0; /* Prevent icon from shrinking */
}

.page-faq__accordion-icon::before,
.page-faq__accordion-icon::after {
    content: '';
    position: absolute;
    background-color: var(--page-faq-primary-color);
    transition: transform 0.3s ease;
    border-radius: 2px; /* Slightly rounded ends for visual appeal */
}

.page-faq__accordion-icon::before {
    width: 100%;
    height: 2px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.page-faq__accordion-icon::after {
    width: 2px;
    height: 100%;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* When header is active, transform the vertical bar to make it a minus sign */
.page-faq__accordion-header.active .page-faq__accordion-icon::after {
    transform: translateX(-50%) rotate(90deg);
}

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

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

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

.page-faq__accordion-content a {
    color: var(--page-faq-primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-faq__accordion-content a:hover {
    color: var(--page-faq-hover-color);
    text-decoration: underline;
}

/* Detail Pages Section */
.page-faq__detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-faq__detail-item {
    background-color: #2a2a2a;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    padding-bottom: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-faq__detail-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-faq__detail-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 20px;
    border-bottom: 3px solid var(--page-faq-primary-color);
}

.page-faq__detail-title {
    font-size: 1.4em;
    color: var(--page-faq-primary-color);
    margin-bottom: 10px;
    padding: 0 20px;
}

.page-faq__detail-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-faq__detail-title a:hover {
    color: var(--page-faq-hover-color);
}

.page-faq__detail-description {
    font-size: 0.95em;
    color: var(--page-faq-text-light);
    margin-bottom: 20px;
    padding: 0 20px;
}

/* Call to Action Section */
.page-faq__cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 80px 20px;
    background-color: #333333;
    border-radius: 15px;
    margin-top: 60px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.page-faq__cta-content {
    max-width: 800px;
    z-index: 1;
}

.page-faq__cta-title {
    font-size: 2.8em;
    color: var(--page-faq-primary-color);
    margin-bottom: 15px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-faq__cta-description {
    font-size: 1.2em;
    color: var(--page-faq-text-light);
    margin-bottom: 30px;
}

.page-faq__cta-button {
    display: inline-block;
    background-color: var(--page-faq-primary-color);
    color: var(--page-faq-secondary-color);
    padding: 18px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-faq__cta-button:hover {
    background-color: var(--page-faq-hover-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-faq__cta-image-wrapper {
    margin-top: 40px;
    max-width: 100%;
    z-index: 0;
}

.page-faq__cta-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}


/* General Button Styles (for both primary and outline) */
.page-faq__button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

/* Primary Button */
.page-faq__button--primary {
    background-color: var(--page-faq-primary-color);
    color: var(--page-faq-secondary-color);
    border: 2px solid var(--page-faq-primary-color);
}

.page-faq__button--primary:hover {
    background-color: var(--page-faq-hover-color);
    border-color: var(--page-faq-hover-color);
    transform: translateY(-1px);
}

/* Outline Button */
.page-faq__button--outline {
    background-color: transparent;
    color: var(--page-faq-primary-color);
    border: 2px solid var(--page-faq-primary-color);
}

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

/* Small Button */
.page-faq__button--small {
    padding: 8px 15px;
    font-size: 0.9em;
    margin-top: 15px;
}


/* Responsive Design */
@media (min-width: 768px) {
    .page-faq__hero {
        flex-direction: row;
        text-align: left;
        justify-content: space-between;
        padding: 80px 40px;
    }

    .page-faq__hero-content {
        max-width: 50%;
        padding-right: 40px;
    }

    .page-faq__hero-title {
        font-size: 4em;
    }

    .page-faq__hero-subtitle {
        font-size: 1.5em;
    }

    .page-faq__hero-image-wrapper {
        margin-top: 0;
        max-width: 45%;
    }

    .page-faq__cta {
        flex-direction: row;
        text-align: left;
        justify-content: space-between;
        padding: 80px 40px;
    }

    .page-faq__cta-content {
        max-width: 55%;
        padding-right: 40px;
    }

    .page-faq__cta-image-wrapper {
        margin-top: 0;
        max-width: 40%;
    }
}

@media (max-width: 767px) {
    .page-faq__hero {
        padding: 40px 15px;
    }

    .page-faq__hero-title {
        font-size: 2.5em;
    }

    .page-faq__hero-subtitle {
        font-size: 1.1em;
    }

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

    .page-faq__section-description {
        font-size: 1em;
    }

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

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

    .page-faq__detail-grid {
        grid-template-columns: 1fr;
    }

    .page-faq__cta {
        padding: 50px 15px;
    }

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

    .page-faq__cta-description {
        font-size: 1em;
    }
}