/* style/faq.css */
.page-faq {
    --primary-color: #0A2463; /* Deep Royal Blue */
    --secondary-color: #FFD700; /* Luxury Gold */
    --text-color-dark: #333333;
    --text-color-light: #FFFFFF;
    --background-light: #F8F8F8;
    --border-color: #E0E0E0;
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color-dark);
}

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

/* Hero Section */
.page-faq__hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0A2463 70%, #1A3C8A 100%);
    color: var(--text-color-light);
    padding: 80px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

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

.page-faq__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: var(--secondary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-faq__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

.page-faq__hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
}

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

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

.page-faq__btn--primary:hover {
    background-color: #E6C200; /* Manually darkened gold */
    transform: translateY(-2px);
}

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

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

.page-faq__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.15; /* Subtly blend background image */
    overflow: hidden;
    z-index: 0;
}

.page-faq__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) brightness(50%); /* Make it subtle and dark */
}

/* Accordion Section */
.page-faq__section {
    padding: 60px 0;
}

.page-faq__section--accordion {
    background-color: var(--background-light);
}

.page-faq__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.page-faq__section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

.page-faq__accordion-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.page-faq__accordion-item {
    background-color: var(--text-color-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.page-faq__details {
    width: 100%;
}

.page-faq__summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: var(--text-color-light);
    color: var(--primary-color);
    font-size: 1.3em;
    font-weight: bold;
    outline: none;
    user-select: none;
    transition: background-color 0.3s ease;
}

.page-faq__summary:hover {
    background-color: #F0F0F0;
}

.page-faq__summary::-webkit-details-marker {
    display: none;
}

.page-faq__question {
    margin: 0;
    flex-grow: 1;
    text-align: left;
    color: var(--primary-color);
    font-size: 1.1em; /* Adjust for better readability within summary */
}

.page-faq__icon {
    width: 24px;
    height: 24px;
    position: relative;
    transition: transform 0.3s ease;
}

.page-faq__icon::before,
.page-faq__icon::after {
    content: '';
    position: absolute;
    background-color: var(--secondary-color);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.page-faq__icon::before {
    width: 2px;
    height: 16px;
}

.page-faq__icon::after {
    width: 16px;
    height: 2px;
}

.page-faq__details[open] .page-faq__icon::before {
    transform: translate(-50%, -50%) rotate(90deg); /* Rotate vertical bar to become horizontal */
}
.page-faq__details[open] .page-faq__icon::after {
    transform: translate(-50%, -50%) rotate(0deg); /* Keep horizontal bar as is */
    opacity: 0; /* Hide the horizontal bar to show only a minus sign */
}

.page-faq__details[open] .page-faq__summary {
    background-color: #F0F0F0;
    border-bottom: 1px solid var(--border-color);
}

.page-faq__answer-content {
    padding: 20px 25px 25px;
    background-color: #fcfcfc;
    border-top: 1px solid var(--border-color);
    color: var(--text-color-dark);
    font-size: 1.05em;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

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

.page-faq__answer-image {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-top: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Call to Action Bottom Section */
.page-faq__section--cta-bottom {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 60px 0;
}

.page-faq__cta-content {
    z-index: 1;
    position: relative;
}

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

.page-faq__cta-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

.page-faq__cta-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.1;
    filter: grayscale(100%) brightness(50%);
    z-index: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-faq__hero {
        padding: 60px 0;
    }
    .page-faq__hero-title {
        font-size: 2.5em;
    }
    .page-faq__hero-description {
        font-size: 1em;
    }
    .page-faq__hero-cta {
        flex-direction: column;
        gap: 15px;
    }
    .page-faq__btn {
        padding: 10px 20px;
        width: 80%; /* Make buttons wider on small screens */
        margin: 0 auto;
    }
    .page-faq__section {
        padding: 40px 0;
    }
    .page-faq__section-title {
        font-size: 2em;
    }
    .page-faq__summary {
        padding: 15px 20px;
        font-size: 1.1em;
    }
    .page-faq__question {
        font-size: 1em;
    }
    .page-faq__answer-content {
        padding: 15px 20px 20px;
        font-size: 0.95em;
    }
    .page-faq__cta-title {
        font-size: 2em;
    }
    .page-faq__cta-description {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .page-faq__hero-title {
        font-size: 2em;
    }
    .page-faq__section-title {
        font-size: 1.8em;
    }
    .page-faq__btn {
        width: 90%;
    }
    .page-faq__summary {
        font-size: 1em;
    }
    .page-faq__question {
        font-size: 0.95em;
    }
    .page-faq__cta-title {
        font-size: 1.8em;
    }
}