/* style/faq.css */

/* Base styles for the FAQ page */
.page-faq {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: #0d0d0d; /* Matching body background from shared.css */
}

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

/* Hero Section */
.page-faq__hero-section {
    position: relative;
    padding: 80px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    min-height: 500px;
    padding-top: var(--header-offset, 120px); /* Apply header offset */
}

.page-faq__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.3; /* Slightly dim the background image */
}

.page-faq__hero-section .page-faq__container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.page-faq__hero-title {
    font-size: 3.2em;
    color: #FFD700; /* Gold for main title */
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: bold;
}

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

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

.page-faq__dark-bg {
    background-color: #1A2B4C; /* Main brand color for dark sections */
    color: #ffffff;
}

.page-faq__light-bg {
    background-color: #ffffff;
    color: #333333; /* Dark text for light background */
}

.page-faq__dark-text {
    color: #333333;
}

.page-faq__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    color: #FFD700; /* Gold for section titles in dark sections */
}

.page-faq__light-bg .page-faq__section-title {
    color: #1A2B4C; /* Dark blue for section titles in light sections */
}


/* FAQ List Styles */
.page-faq__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-faq__faq-item {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for items on dark bg */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-faq__light-bg .page-faq__faq-item {
    background-color: #f9f9f9; /* Light background for items on light bg */
    border: 1px solid #e0e0e0;
}


.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: #ffffff; /* White text for questions on dark item bg */
    transition: background-color 0.3s ease;
}

.page-faq__light-bg .page-faq__faq-question {
    color: #1A2B4C; /* Dark blue text for questions on light item bg */
}

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

.page-faq__light-bg .page-faq__faq-question:hover {
    background-color: #e8f0fe; /* Light blue hover for light item bg */
}

.page-faq__faq-question h3 {
    margin: 0;
    flex-grow: 1;
    color: inherit; /* Inherit color from parent */
}

.page-faq__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #FFD700; /* Gold for toggle icon */
}

.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; /* Light text for answers on dark item bg */
}

.page-faq__light-bg .page-faq__faq-answer {
    color: #555555; /* Darker text for answers on light item bg */
}

/* Crucial: Active state for FAQ answer */
.page-faq__faq-item.active .page-faq__faq-answer {
    max-height: 1000px !important; /* Ensure it's large enough for content */
    padding: 15px 25px 25px;
}

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

/* Image styles within content sections */
.page-faq__content-image {
    display: block;
    margin: 40px auto 0;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    width: 800px; /* Example desktop width */
    height: 600px; /* Example desktop height */
    max-width: 100%; /* Ensure responsiveness */
    height: auto;
}

/* CTA Section */
.page-faq__cta-section {
    text-align: center;
    padding: 80px 0;
    background-color: #ffffff; /* Light background for CTA */
}

.page-faq__cta-title {
    font-size: 2.5em;
    color: #1A2B4C;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-faq__cta-description {
    font-size: 1.1em;
    color: #555555;
    max-width: 700px;
    margin: 0 auto 30px;
}

.page-faq__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* Button Styles */
.page-faq__btn-primary,
.page-faq__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    max-width: 100%;
}

.page-faq__btn-primary {
    background-color: #FFD700; /* Gold for primary action */
    color: #1A2B4C;
    border: 2px solid #FFD700;
}

.page-faq__btn-primary:hover {
    background-color: #e6c200;
    border-color: #e6c200;
}

.page-faq__btn-secondary {
    background-color: transparent;
    color: #FFD700;
    border: 2px solid #FFD700;
}

.page-faq__light-bg .page-faq__btn-secondary {
    color: #1A2B4C; /* Dark blue for secondary on light bg */
    border-color: #1A2B4C;
}

.page-faq__btn-secondary:hover {
    background-color: #FFD700;
    color: #1A2B4C;
}

.page-faq__light-bg .page-faq__btn-secondary:hover {
    background-color: #1A2B4C;
    color: #ffffff;
}

/* Video specific styles */
.page-faq__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 900px;
    width: 100%;
    background: #000;
    margin: 30px auto 0;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-faq__video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .page-faq__hero-section {
        padding: 60px 0;
        min-height: 400px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }

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

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

    .page-faq__section {
        padding: 40px 0;
    }

    .page-faq__section-title {
        font-size: 2em;
        margin-bottom: 30px;
    }

    .page-faq__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }

    .page-faq__faq-answer {
        padding: 0 20px;
    }

    .page-faq__faq-item.active .page-faq__faq-answer {
        padding: 10px 20px 20px;
    }

    .page-faq__cta-section {
        padding: 60px 0;
    }

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

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

    .page-faq__cta-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 15px;
        padding: 0 15px; /* Add padding to button container */
    }

    /* Mobile button responsiveness */
    .page-faq__cta-button,
    .page-faq__btn-primary,
    .page-faq__btn-secondary,
    .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;
    }

    /* All images must be responsive on mobile */
    .page-faq img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    .page-faq__section,
    .page-faq__card,
    .page-faq__container {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
    }

    /* Video responsive styles for mobile */
    .page-faq video,
    .page-faq__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-faq__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
        padding-bottom: 56.25% !important; /* Maintain aspect ratio */
    }
}

/* Ensure content area images are not too small (global min-size) */
.page-faq img:not([alt*="logo"]):not([alt*="icon"]) {
    min-width: 200px;
    min-height: 200px;
}

/* Specific content image overrides for mobile to prevent overflow */
@media (max-width: 768px) {
  .page-faq__content-image {
    width: 100% !important; /* Override fixed desktop width */
    height: auto !important;
    min-width: unset !important; /* Allow shrinking below 200px if needed for 100% width, but still follow global min-size */
    min-height: unset !important;
  }
}