/* style/faq.css */

/* Variables from custom palette */
:root {
    --tiphu88-primary: #11A84E;
    --tiphu88-secondary: #22C768;
    --tiphu88-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --tiphu88-card-bg: #11271B;
    --tiphu88-background: #08160F;
    --tiphu88-text-main: #F2FFF6;
    --tiphu88-text-secondary: #A7D9B8;
    --tiphu88-border: #2E7A4E;
    --tiphu88-glow: #57E38D;
    --tiphu88-gold: #F2C14E;
    --tiphu88-divider: #1E3A2A;
    --tiphu88-deep-green: #0A4B2C;
}

/* Base styles for the FAQ page */
.page-faq {
    font-family: 'Arial', sans-serif;
    color: var(--tiphu88-text-main); /* Default text color for the page */
    background-color: var(--tiphu88-background);
}

.page-faq__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    text-align: center;
    background-color: var(--tiphu88-deep-green);
    color: var(--tiphu88-text-main);
}

.page-faq__hero-content {
    max-width: 900px;
    margin-bottom: 40px;
    z-index: 1;
}

.page-faq__main-title {
    font-size: clamp(2em, 5vw, 3.5em);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--tiphu88-gold);
}

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

.page-faq__hero-image-wrapper {
    width: 100%;
    max-width: 1200px;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-faq__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.page-faq__section-title {
    font-size: clamp(1.8em, 4vw, 2.8em);
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
    color: var(--tiphu88-gold);
}

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

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

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

.page-faq__faq-item summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-weight: 600;
    font-size: 1.15em;
    cursor: pointer;
    background-color: var(--tiphu88-deep-green);
    color: var(--tiphu88-text-main);
    transition: background-color 0.3s ease;
}

.page-faq__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-faq__faq-item summary:hover {
    background-color: var(--tiphu88-primary);
}

.page-faq__faq-qtext {
    flex-grow: 1;
    color: var(--tiphu88-text-main);
}

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

.page-faq__faq-item[open] .page-faq__faq-toggle {
    content: '−';
}

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

.page-faq__faq-answer p {
    margin-bottom: 15px;
    color: var(--tiphu88-text-secondary);
}

.page-faq__faq-answer ul,
.page-faq__faq-answer ol {
    margin-left: 20px;
    margin-bottom: 15px;
    color: var(--tiphu88-text-secondary);
}

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

.page-faq__image-in-content {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin-top: 20px;
    margin-bottom: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Button Styles */
.page-faq__btn-primary,
.page-faq__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05em;
    transition: all 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
    box-sizing: border-box;
}

.page-faq__btn-primary {
    background: var(--tiphu88-button-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-faq__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

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

.page-faq__btn-secondary:hover {
    background-color: var(--tiphu88-gold);
    color: var(--tiphu88-background);
}

/* Section specific styles */
.page-faq__questions-section,
.page-faq__transactions-section,
.page-faq__support-section,
.page-faq__cta-section {
    padding: 60px 20px;
    background-color: var(--tiphu88-background);
    color: var(--tiphu88-text-main);
}

.page-faq__account-section,
.page-faq__bonuses-section,
.page-faq__app-section {
    padding: 60px 20px;
    background-color: var(--tiphu88-deep-green);
    color: var(--tiphu88-text-main);
}

.page-faq__cta-section {
    text-align: center;
    padding-bottom: 80px;
}

.page-faq__cta-content p {
    max-width: 800px;
    margin: 0 auto 30px auto;
    font-size: 1.1em;
    color: var(--tiphu88-text-secondary);
}

.page-faq__cta-content .page-faq__btn-primary {
    margin-top: 20px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-faq__hero-content {
        margin-bottom: 30px;
    }
    .page-faq__main-title {
        font-size: clamp(1.8em, 4.5vw, 3em);
    }
    .page-faq__hero-description {
        font-size: 1em;
    }
    .page-faq__section-title {
        font-size: clamp(1.6em, 3.5vw, 2.5em);
    }
    .page-faq__faq-item summary {
        font-size: 1.05em;
        padding: 18px 20px;
    }
    .page-faq__faq-answer {
        padding: 18px 20px;
    }
}

@media (max-width: 768px) {
    .page-faq__hero-section,
    .page-faq__questions-section,
    .page-faq__account-section,
    .page-faq__transactions-section,
    .page-faq__bonuses-section,
    .page-faq__support-section,
    .page-faq__app-section,
    .page-faq__cta-section {
        padding: 40px 15px;
    }
    .page-faq__hero-content {
        margin-bottom: 20px;
    }
    .page-faq__main-title {
        font-size: clamp(1.5em, 6vw, 2.5em);
    }
    .page-faq__hero-description {
        font-size: 0.95em;
    }
    .page-faq__section-title {
        font-size: clamp(1.4em, 5vw, 2em);
        margin-bottom: 30px;
    }
    .page-faq__container {
        padding: 0;
    }
    .page-faq__faq-item summary {
        font-size: 1em;
        padding: 15px;
    }
    .page-faq__faq-answer {
        padding: 15px;
    }
    .page-faq__image-in-content {
        margin-top: 15px;
        margin-bottom: 10px;
    }

    /* Mobile image responsive styles */
    .page-faq img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }

    .page-faq__hero-image-wrapper,
    .page-faq__image-in-content,
    .page-faq__container,
    .page-faq__hero-section,
    .page-faq__questions-section,
    .page-faq__account-section,
    .page-faq__transactions-section,
    .page-faq__bonuses-section,
    .page-faq__support-section,
    .page-faq__app-section,
    .page-faq__cta-section {
        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 */
    }

    /* Mobile button responsive styles */
    .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;
    }

    .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;
        flex-wrap: wrap !important;
        gap: 10px;
    }

    .page-faq__cta-buttons {
        display: flex;
        flex-direction: column; /* Stack buttons vertically on mobile */
    }

    .page-faq__hero-section {
        padding-top: 10px !important;
    }
}

/* Color Contrast & Accessibility */
.page-faq__dark-section {
    background-color: var(--tiphu88-deep-green);
    color: var(--tiphu88-text-main); /* White text on dark green */
}

.page-faq__light-bg {
    background-color: var(--tiphu88-background);
    color: var(--tiphu88-text-main); /* Light green text on dark background */
}

.page-faq__faq-item summary {
    background-color: var(--tiphu88-deep-green);
    color: var(--tiphu88-text-main);
}

.page-faq__faq-answer {
    background-color: var(--tiphu88-card-bg);
    color: var(--tiphu88-text-secondary);
}

.page-faq__btn-primary {
    background: var(--tiphu88-button-gradient);
    color: #ffffff;
}

.page-faq__btn-secondary {
    color: var(--tiphu88-gold);
    border-color: var(--tiphu88-gold);
}

.page-faq__btn-secondary:hover {
    background-color: var(--tiphu88-gold);
    color: var(--tiphu88-background);
}

/* Ensure all text has sufficient contrast */
.page-faq p,
.page-faq li,
.page-faq__faq-qtext {
    color: var(--tiphu88-text-secondary);
}
.page-faq__main-title,
.page-faq__section-title,
.page-faq__faq-toggle {
    color: var(--tiphu88-gold);
}