/* style/faq.css */

/* Global page styles within .page-faq scope */
.page-faq {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Assuming body is dark from var(--black-color) */
    background-color: var(--black-color); /* Inherit from shared if applicable, or default dark */
}

/* Hero Section */
.page-faq__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding as per instruction, body handles main offset */
    background-color: #26A9E0; /* Brand primary color for hero background */
    color: #ffffff;
    overflow: hidden; /* Ensure content doesn't overflow */
    box-sizing: border-box;
}

.page-faq__hero-content {
    max-width: 900px;
    margin-bottom: 30px;
    z-index: 1; /* Ensure text is above image if positioned */
    position: relative;
}

.page-faq__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size for H1 */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #ffffff;
}

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

.page-faq__hero-image {
    width: 100%;
    max-width: 1200px; /* Ensure image fits within typical content width */
    height: auto;
    display: block;
    object-fit: cover;
    margin-top: 30px; /* Space between content and image */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-width: 200px; /* Min size requirement */
    min-height: 200px; /* Min size requirement */
}

/* Call-to-Action Buttons */
.page-faq__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
    width: 100%; /* Ensure container takes full width for wrapping */
    max-width: 100%; /* Ensure container takes full width for wrapping */
    box-sizing: border-box;
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break words */
    min-width: 200px; /* Min size requirement for buttons */
    min-height: 48px; /* Standard button height */
}

.page-faq__btn-primary {
    background-color: #26A9E0; /* Brand primary color */
    color: #ffffff;
    border: 2px solid #26A9E0;
}

.page-faq__btn-primary:hover {
    background-color: #1a8cc7; /* Darker shade on hover */
    border-color: #1a8cc7;
}

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

.page-faq__btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* Content Area */
.page-faq__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    color: #ffffff; /* Text color for content on dark background */
    background-color: var(--black-color); /* Ensure content background is dark */
    box-sizing: border-box;
}

.page-faq__section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #26A9E0; /* Brand primary color for section titles */
    margin-bottom: 30px;
    text-align: center;
}

.page-faq__sub-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    color: #ffffff;
    margin-top: 40px;
    margin-bottom: 15px;
}

.page-faq__text-block p {
    margin-bottom: 15px;
    font-size: 1.05rem;
    color: #f0f0f0;
}

.page-faq__text-block a {
    color: #26A9E0;
    text-decoration: underline;
}

.page-faq__text-block a:hover {
    color: #1a8cc7;
}

.page-faq__content-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    max-width: 1000px; /* Max width for content images */
    min-width: 200px; /* Min size requirement */
    min-height: 200px; /* Min size requirement */
    object-fit: cover;
}

/* FAQ Section */
.page-faq__faq-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for contrast */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: #ffffff;
    box-sizing: border-box;
}

.page-faq__faq-list {
    margin-top: 30px;
}

.page-faq__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    background-color: #26A9E0; /* Primary color for question background */
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

.page-faq__faq-item[open] .page-faq__faq-question {
    background-color: #1a8cc7; /* Darker on open */
}

.page-faq__faq-question:hover {
    background-color: #1a8cc7;
}

.page-faq__faq-toggle {
    font-size: 1.5rem;
    font-weight: 700;
    margin-left: 15px;
}

/* Hide default details marker */
.page-faq__faq-item summary {
    list-style: none;
}
.page-faq__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-faq__faq-answer {
    padding: 20px;
    font-size: 1.05rem;
    color: #f0f0f0;
    background-color: rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.page-faq__faq-answer a {
    color: #26A9E0;
    text-decoration: underline;
}

.page-faq__faq-answer a:hover {
    color: #1a8cc7;
}

/* CTA Section at the bottom */
.page-faq__cta-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    background-color: #26A9E0; /* Brand primary color for CTA background */
    color: #ffffff;
    overflow: hidden;
    box-sizing: border-box;
}

.page-faq__cta-section .page-faq__section-title {
    color: #ffffff; /* White title on brand color background */
}

.page-faq__cta-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 800px;
    color: #f0f0f0;
}

.page-faq__cta-section .page-faq__content-image {
    margin-top: 40px;
    max-width: 900px;
    min-width: 200px;
    min-height: 200px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-faq {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-faq__hero-section,
    .page-faq__content-area,
    .page-faq__faq-section,
    .page-faq__cta-section {
        padding: 30px 15px;
        padding-top: 10px !important; /* Small top padding for hero/first section */
    }

    .page-faq__main-title {
        font-size: 2rem;
    }

    .page-faq__section-title {
        font-size: 1.8rem;
    }

    .page-faq__sub-title {
        font-size: 1.3rem;
    }

    /* Images responsive */
    .page-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Enforce min size even on mobile */
        min-height: 200px !important; /* Enforce min size even on mobile */
    }

    /* Containers for images, videos, buttons */
    .page-faq__hero-section,
    .page-faq__content-area,
    .page-faq__faq-section,
    .page-faq__cta-section,
    .page-faq__cta-buttons,
    .page-faq__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    
    /* Buttons responsive */
    .page-faq__cta-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 10px;
    }

    .page-faq__btn-primary,
    .page-faq__btn-secondary {
        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;
        min-width: 200px !important; /* Enforce min size even on mobile */
        min-height: 48px !important; /* Enforce min size even on mobile */
    }

    .page-faq__faq-question {
        font-size: 1rem;
        padding: 15px;
    }

    .page-faq__faq-answer {
        font-size: 0.95rem;
        padding: 15px;
    }
}

/* Ensure content area images adhere to min size even if their natural size is smaller */
.page-faq__content-area img {
    min-width: 200px;
    min-height: 200px;
}
/* Ensure card images adhere to min size */
.page-faq__faq-item img {
    min-width: 200px;
    min-height: 200px;
}
/* Ensure button min width/height */
.page-faq__btn-primary, .page-faq__btn-secondary {
    min-width: 200px;
    min-height: 48px;
}

/* Placeholder for video section, if it were present - as per instructions */
.page-faq__video-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding */
  background-color: var(--black-color);
  color: #ffffff;
  overflow: hidden;
  box-sizing: border-box;
}

.page-faq__video-container {
  width: 100%; /* Desktop width */
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
  overflow: hidden;
}

.page-faq video,
.page-faq__video {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .page-faq video,
  .page-faq__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-faq__video-section,
  .page-faq__video-container,
  .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;
  }
  
  .page-faq__video-section {
    padding-top: 10px !important;
  }
  
  .page-faq__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}