/* style/faq.css */
/* Reset & Base Styles - scoped to .page-faq */
.page-faq {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-main); /* Default text color for the page */
    background-color: var(--bg-primary); /* Default background for the page */
    padding-top: 0; /* Handled by body in shared.css */
}

/* Custom CSS Variables for Colors */
.page-faq {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --bg-primary: #08160F;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green-color: #0A4B2C;
}

/* Hero Section */
.page-faq__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    background-color: var(--bg-primary);
    overflow: hidden;
}

.page-faq__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.page-faq__hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin-top: 30px; /* Space between image and content */
    padding: 0 20px;
}

.page-faq__main-title {
    font-size: clamp(2em, 5vw, 3.2em); /* Responsive font size */
    color: var(--text-main);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5); /* Glow effect */
}

.page-faq__hero-description {
    font-size: 1.1em;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.page-faq__cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.page-faq__btn-primary,
.page-faq__btn-secondary,
.page-faq__btn-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap; /* Prevent text wrapping by default */
    word-wrap: break-word; /* Allow word wrap for long text */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    max-width: 100%; /* Ensure buttons don't exceed container width */
}

.page-faq__btn-primary {
    background: var(--btn-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-faq__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

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

.page-faq__btn-secondary:hover {
    background: rgba(17, 168, 78, 0.1);
    color: #ffffff;
    border-color: #ffffff;
}

/* General Section Styling */
.page-faq__section {
    padding: 60px 0;
    background-color: var(--bg-primary);
}

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

.page-faq__section-title {
    font-size: 2.5em;
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
}

.page-faq__section-description {
    font-size: 1.1em;
    color: var(--text-secondary);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

/* FAQ List Section */
.page-faq__faq-list-section {
    background-color: var(--deep-green-color); /* Use deep green for contrast */
}

.page-faq__faq-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.page-faq__faq-item {
    background-color: var(--card-bg);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.page-faq__faq-item details { /* Style for details element */
    width: 100%;
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--text-main);
    cursor: pointer;
    background-color: var(--card-bg);
    transition: background-color 0.3s ease;
}

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

.page-faq__faq-item details > summary { /* For details element */
    list-style: none; /* Remove default marker */
}

.page-faq__faq-item details > summary::-webkit-details-marker { /* For Webkit browsers */
    display: none;
}

.page-faq__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: var(--gold-color);
}

.page-faq__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: var(--text-secondary);
    border-top: 1px solid var(--divider-color);
}

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

.page-faq__faq-answer ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 15px;
}

.page-faq__faq-answer li {
    margin-bottom: 5px;
}

.page-faq__btn-inline {
    background: var(--btn-gradient);
    color: #ffffff;
    border: none;
    padding: 8px 15px;
    font-size: 0.9em;
    border-radius: 5px;
    margin-top: 10px;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
}

.page-faq__btn-inline:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(42, 209, 111, 0.3);
}

/* Game Guide Section */
.page-faq__game-guide-section {
    background-color: var(--bg-primary);
}

.page-faq__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-faq__card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

.page-faq__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-faq__card-title {
    font-size: 1.3em;
    font-weight: bold;
    margin: 15px 20px 10px 20px;
}

.page-faq__card-title a {
    color: var(--gold-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-faq__card-title a:hover {
    color: var(--glow-color);
}

.page-faq__card-text {
    font-size: 0.95em;
    color: var(--text-secondary);
    padding: 0 20px 15px 20px;
    flex-grow: 1; /* Pushes button to bottom */
}

.page-faq__card .page-faq__btn-inline {
    margin: 0 20px 20px 20px;
    align-self: flex-start; /* Align button to start of flex item */
}

.page-faq__view-all {
    text-align: center;
    margin-top: 50px;
}

/* Security Section */
.page-faq__security-section {
    background-color: var(--deep-green-color);
}

.page-faq__content-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.page-faq__text-content {
    flex: 1;
    min-width: 300px;
}

.page-faq__security-features {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.page-faq__security-features li {
    font-size: 1.1em;
    color: var(--text-main);
    margin-bottom: 10px;
    position: relative;
    padding-left: 30px;
}

.page-faq__security-features li::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: var(--glow-color);
}

.page-faq__image-content {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.page-faq__security-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Benefits Section */
.page-faq__benefits-section {
    background-color: var(--bg-primary);
}

.page-faq__benefits-grid {
    margin-top: 40px;
}

.page-faq__benefit-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

.page-faq__benefit-icon {
    width: 100px; /* Example size for benefit icons */
    height: auto;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-faq__benefit-title {
    font-size: 1.4em;
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-faq__benefit-text {
    color: var(--text-secondary);
    font-size: 1em;
}

.page-faq__cta-buttons--center {
    margin-top: 50px;
}

/* Conclusion Section */
.page-faq__conclusion-section {
    background-color: var(--deep-green-color);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-faq__main-title {
        font-size: clamp(1.8em, 6vw, 2.8em);
    }
    .page-faq__section-title {
        font-size: 2.2em;
    }
    .page-faq__hero-description,
    .page-faq__section-description {
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    .page-faq__hero-section {
        padding-bottom: 40px;
    }
    .page-faq__hero-content {
        margin-top: 20px;
    }
    .page-faq__main-title {
        font-size: clamp(1.5em, 7vw, 2.5em);
    }
    .page-faq__section-title {
        font-size: 2em;
    }
    .page-faq__section {
        padding: 40px 0;
    }
    .page-faq__cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 0 15px; /* Add padding to prevent buttons from touching edges */
    }
    .page-faq__btn-primary,
    .page-faq__btn-secondary,
    .page-faq__btn-inline {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 15px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Mobile image and video responsiveness */
    .page-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-faq video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-faq__section,
    .page-faq__card,
    .page-faq__container,
    .page-faq__content-wrapper,
    .page-faq__image-content,
    .page-faq__faq-item,
    .page-faq__cta-buttons,
    .page-faq__button-group,
    .page-faq__btn-container,
    .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; /* Ensure no horizontal scroll */
    }
    .page-faq__video-section {
        padding-top: 10px !important; /* body handles --header-offset, this is decorative */
    }
    .page-faq__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-faq__faq-answer {
        padding: 0 20px 15px 20px;
    }
    .page-faq__content-wrapper {
        flex-direction: column;
    }
    .page-faq__text-content,
    .page-faq__image-content {
        min-width: unset;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .page-faq__main-title {
        font-size: clamp(1.2em, 8vw, 2em);
    }
    .page-faq__section-title {
        font-size: 1.8em;
    }
    .page-faq__faq-question {
        font-size: 1em;
    }
    .page-faq__faq-answer p,
    .page-faq__faq-answer ul {
        font-size: 0.9em;
    }
}

/* Color Contrast Enforcement */
/* Assuming body background is dark (var(--dark-bg)) from shared.css */
.page-faq {
    color: var(--text-main); /* #F2FFF6 */
    background-color: var(--bg-primary); /* #08160F */
}

.page-faq__card {
    background-color: var(--card-bg); /* #11271B */
    color: var(--text-main); /* #F2FFF6 */
}

.page-faq__section-title,
.page-faq__card-title a,
.page-faq__benefit-title {
    color: var(--gold-color); /* #F2C14E */
}

.page-faq__hero-description,
.page-faq__section-description,
.page-faq__card-text,
.page-faq__benefit-text,
.page-faq__faq-answer {
    color: var(--text-secondary); /* #A7D9B8 */
}

.page-faq__security-features li {
    color: var(--text-main); /* #F2FFF6 */
}

/* Button text is white for primary, and primary-color for secondary - already handled */
.page-faq__btn-primary {
    color: #ffffff;
}
.page-faq__btn-secondary {
    color: var(--primary-color); /* #11A84E */
}