/* style/faq.css */

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

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

/* Hero Section */
.page-faq__hero-section {
    position: relative;
    padding: 120px 0 80px;
    text-align: center;
    background-image: url('[GALLERY:hero_main:1920x1080:bắn cá kingfun,hero,ocean,vibrant,fishing]');
    background-size: cover;
    background-position: center;
    color: #ffffff;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

.page-faq__hero-title {
    font-size: 3.5em;
    font-weight: bold;
    margin-bottom: 20px;
    color: #FFFF00; /* Custom color for prominent title */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-faq__hero-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #ffffff;
}

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

/* Buttons */
.page-faq__btn-primary,
.page-faq__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* For mobile responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    text-align: center;
}

.page-faq__btn-primary {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

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

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

.page-faq__btn-secondary:hover {
    background-color: #ffffff;
    color: #017439;
}

/* Video Section */
.page-faq__video-section {
    padding: 60px 0;
    text-align: center;
    background-color: #0d0d0d; /* Slightly lighter dark background */
    color: #ffffff;
}

.page-faq__video-title {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: #ffffff;
}

.page-faq__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 0 auto 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.page-faq__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    cursor: pointer;
    display: block; /* Ensure video takes full width */
}

.page-faq__video-description {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto;
    color: #cccccc;
}

/* Main Content Area - FAQ List */
.page-faq__content-area {
    padding: 80px 0;
    background-color: #f8f8f8; /* Light background for main content */
    color: #333333; /* Dark text for light background */
}

.page-faq__section-title {
    font-size: 2.8em;
    text-align: center;
    margin-bottom: 50px;
    color: #017439; /* Brand color for main titles */
}

.page-faq__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-faq__faq-item {
    background-color: #ffffff;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

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

.page-faq__faq-question:hover {
    background-color: #02944b;
}

.page-faq__faq-question h3 {
    margin: 0;
    font-size: 1em; /* Adjust h3 size within question */
    color: #ffffff;
}

.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;
    background-color: #f0f0f0; /* Lighter background for answer */
    color: #333333; /* Dark text for answer */
}

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

.page-faq__faq-answer p {
    margin-bottom: 15px;
    color: #333333; /* Ensure paragraph text is dark */
}

.page-faq__faq-answer ul,
.page-faq__faq-answer ol {
    margin-bottom: 15px;
    padding-left: 25px;
    color: #333333; /* Ensure list text is dark */
}

.page-faq__faq-answer li {
    margin-bottom: 8px;
    color: #333333; /* Ensure list item text is dark */
}

.page-faq__content-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-faq__section-image-wrapper {
    margin: 40px auto;
    max-width: 900px;
    padding: 0 20px;
}

.page-faq__faq-question-image-wrapper {
    margin: 40px auto 0;
    max-width: 900px;
    padding: 0 20px;
}

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

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

.page-faq__cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #ffffff;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-faq__hero-title {
        font-size: 3em;
    }
    .page-faq__section-title,
    .page-faq__video-title,
    .page-faq__cta-title {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    .page-faq__hero-section {
        padding: 90px 0 60px;
    }
    .page-faq__hero-title {
        font-size: 2.2em;
    }
    .page-faq__hero-description {
        font-size: 1em;
        padding: 0 15px;
    }
    .page-faq__cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 0 15px;
    }
    .page-faq__btn-primary,
    .page-faq__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }

    .page-faq__video-section {
        padding: 40px 0;
        padding-top: var(--header-offset, 120px) !important; /* Ensure video section respects header offset on mobile */
    }
    .page-faq__video-title {
        font-size: 1.8em;
    }
    .page-faq__video-wrapper {
        margin: 0 15px 30px; /* Add horizontal padding for video wrapper */
    }

    .page-faq__content-area,
    .page-faq__cta-bottom {
        padding: 50px 0;
    }
    .page-faq__section-title,
    .page-faq__cta-title {
        font-size: 1.8em;
        padding: 0 15px;
    }
    .page-faq__faq-list {
        padding: 0 15px;
    }
    .page-faq__faq-item {
        margin-bottom: 15px;
    }
    .page-faq__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-faq__faq-question h3 {
        font-size: 0.95em;
    }
    .page-faq__faq-answer {
        padding: 0 20px;
    }
    .page-faq__faq-item.active .page-faq__faq-answer {
        padding: 15px 20px;
    }
    .page-faq__section-image-wrapper,
    .page-faq__faq-question-image-wrapper {
        padding: 0 15px;
        margin: 20px auto;
    }

    /* Mobile image responsiveness */
    .page-faq img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-faq__section,
    .page-faq__card,
    .page-faq__container,
    .page-faq__video-section,
    .page-faq__video-container,
    .page-faq__video-wrapper,
    .page-faq__cta-buttons,
    .page-faq__button-group,
    .page-faq__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }
    /* Specific for video wrapper padding-bottom trick, remove horizontal padding from wrapper itself */
    .page-faq__video-wrapper {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

@media (max-width: 480px) {
    .page-faq__hero-title {
        font-size: 1.8em;
    }
    .page-faq__section-title,
    .page-faq__video-title,
    .page-faq__cta-title {
        font-size: 1.6em;
    }
    .page-faq__hero-section {
      padding: 70px 0 40px;
    }
    .page-faq__video-section {
      padding: 30px 0;
    }
    .page-faq__content-area,
    .page-faq__cta-bottom {
      padding: 30px 0;
    }
}

/* Ensure no filter on images */
.page-faq img {
    filter: none;
}