/* style/faq.css */

/* Base styles for the FAQ page content */
.page-faq {
    color: #ffffff; /* Light text on dark body background */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: transparent; /* Body background is handled by shared.css */
}

/* Hero Section */
.page-faq__hero-section {
    position: relative;
    width: 100%;
    height: 60vh; /* Adjust height as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    box-sizing: border-box;
}

.page-faq__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: none !important; /* Ensure no CSS filter is applied */
}

.page-faq__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
    z-index: 2;
}

.page-faq__hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 20px;
    box-sizing: border-box;
}

.page-faq__hero-title {
    font-size: 3.5em;
    color: #FFD700; /* Gold brand color for title */
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-faq__hero-description {
    font-size: 1.2em;
    color: #f0f0f0;
    margin-bottom: 30px;
}

/* General Section Styling */
.page-faq__section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    box-sizing: border-box;
}

.page-faq__section-title,
.page-faq__category-title,
.page-faq__cta-title {
    color: #FFD700; /* Gold brand color for titles */
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5em;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.page-faq__section-intro {
    text-align: center;
    max-width: 800px;
    margin: -20px auto 60px auto;
    font-size: 1.1em;
    color: #f0f0f0;
}

/* FAQ Categories */
.page-faq__faq-category {
    margin-bottom: 50px;
}

.page-faq__category-title {
    font-size: 2em;
    margin-bottom: 30px;
    color: #FFD700;
}

/* FAQ Item */
.page-faq__faq-item {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white card background */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15em;
    font-weight: bold;
    color: #ffffff;
    cursor: pointer;
    background-color: #8B0000; /* Dark red for question header */
    transition: background-color 0.3s ease;
}

.page-faq__faq-question:hover {
    background-color: #a00000; /* Slightly lighter red on hover */
}

.page-faq__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    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: #f0f0f0;
    background-color: rgba(255, 255, 255, 0.05); /* Lighter semi-transparent for answer background */
}

.page-faq__faq-item.active .page-faq__faq-answer {
    max-height: 1000px !important; /* Sufficiently large height for content */
    padding: 25px;
}

.page-faq__faq-answer p {
    margin-bottom: 15px;
}

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

.page-faq__faq-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
    filter: none !important; /* Ensure no CSS filter is applied */
}

/* Call to Action Section */
.page-faq__cta-section {
    background-color: #8B0000; /* Dark red background for CTA */
    text-align: center;
    padding: 80px 20px;
}

.page-faq__cta-title {
    color: #FFD700;
    font-size: 2.8em;
    margin-bottom: 20px;
}

.page-faq__cta-description {
    font-size: 1.2em;
    max-width: 700px;
    margin: 0 auto 40px auto;
    color: #f0f0f0;
}

/* Buttons */
.page-faq__btn-primary,
.page-faq__btn-secondary,
.page-faq__hero-button,
.page-faq__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none; /* Remove default button border */
    font-size: 1.1em;
    box-sizing: border-box; /* Ensure padding is included in width */
    text-align: center;
}

.page-faq__btn-primary,
.page-faq__hero-button {
    background-color: #FFD700; /* Gold button */
    color: #000000; /* Black text for contrast */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-faq__btn-primary:hover,
.page-faq__hero-button:hover {
    background-color: #e6c200; /* Slightly darker gold on hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-faq__btn-secondary,
.page-faq__cta-button {
    background-color: transparent;
    color: #FFD700; /* Gold text */
    border: 2px solid #FFD700; /* Gold border */
}

.page-faq__btn-secondary:hover,
.page-faq__cta-button:hover {
    background-color: #FFD700; /* Gold background on hover */
    color: #000000; /* Black text on hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Links within content */
.page-faq__link {
    color: #FFD700; /* Gold for links */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-faq__link:hover {
    color: #e6c200; /* Slightly darker gold on hover */
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-faq__hero-title {
        font-size: 3em;
    }
    .page-faq__section-title,
    .page-faq__cta-title {
        font-size: 2em;
    }
    .page-faq__category-title {
        font-size: 1.8em;
    }
}

@media (max-width: 768px) {
    .page-faq__hero-section {
        height: 50vh;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile offset is applied */
    }
    .page-faq__hero-title {
        font-size: 2em;
    }
    .page-faq__hero-description {
        font-size: 1em;
    }
    .page-faq__section {
        padding: 40px 15px;
    }
    .page-faq__section-title,
    .page-faq__cta-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-faq__section-intro {
        font-size: 0.95em;
        margin-bottom: 40px;
    }
    .page-faq__category-title {
        font-size: 1.5em;
        margin-bottom: 25px;
    }
    .page-faq__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-faq__faq-answer {
        padding: 15px 20px;
    }
    .page-faq__cta-section {
        padding: 60px 15px;
    }
    .page-faq__cta-title {
        font-size: 2em;
    }
    .page-faq__cta-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    /* Mobile image responsiveness */
    .page-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: unset !important; /* Allow images to scale down */
        min-height: unset !important;
        filter: none !important; /* Ensure no CSS filter is applied */
    }
    .page-faq__section,
    .page-faq__card,
    .page-faq__container,
    .page-faq__hero-content,
    .page-faq__cta-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    /* Button responsiveness */
    .page-faq__btn-primary,
    .page-faq__btn-secondary,
    .page-faq__hero-button,
    .page-faq__cta-button,
    .page-faq a[class*="button"],
    .page-faq a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
        margin-bottom: 10px; /* Add space between stacked buttons */
    }
    .page-faq__hero-button, .page-faq__cta-button {
        margin-left: auto;
        margin-right: auto;
    }
    .page-faq__cta-section .page-faq__cta-button {
        display: block; /* Ensure it takes full width */
    }
}

@media (max-width: 480px) {
    .page-faq__hero-title {
        font-size: 1.8em;
    }
    .page-faq__section-title,
    .page-faq__cta-title {
        font-size: 1.6em;
    }
}

/* Content area images should not be smaller than 200px on desktop */
.page-faq__content-area img {
    min-width: 200px;
    min-height: 200px;
}
/* Override for mobile to allow scaling down */
@media (max-width: 768px) {
    .page-faq__content-area img {
        min-width: unset !important;
        min-height: unset !important;
    }
}