/* style/game-strategies-tips.css */

/* Base styles and variables */
:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #FFFFFF;
    --button-login-color: #EA7C07;
    --border-color: #e0e0e0;
}

.page-game-strategies-tips {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark); /* Default text color for light backgrounds */
    background-color: var(--secondary-color); /* Default light background */
}

/* Fixed header offset handling */
.page-game-strategies-tips__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Ensure content is not covered by fixed header */
    padding-bottom: 60px;
    background-color: var(--primary-color); /* Dark background */
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden; /* For hero image */
}

.page-game-strategies-tips__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.3; /* Overlay to ensure text readability */
}

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

.page-game-strategies-tips__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: var(--text-light);
}

.page-game-strategies-tips__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-light);
}

.page-game-strategies-tips__hero-cta-buttons,
.page-game-strategies-tips__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.page-game-strategies-tips__btn-primary,
.page-game-strategies-tips__btn-secondary,
.page-game-strategies-tips__btn-link {
    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;
    text-align: center;
    max-width: 100%; /* Button responsiveness */
    box-sizing: border-box; /* Button responsiveness */
    white-space: normal; /* Button responsiveness */
    word-wrap: break-word; /* Button responsiveness */
}

.page-game-strategies-tips__btn-primary {
    background-color: var(--button-login-color); /* Use login color for primary action */
    color: var(--text-light);
    border: 2px solid var(--button-login-color);
}

.page-game-strategies-tips__btn-primary:hover {
    background-color: #d16e00; /* Manual darken */
    border-color: #d16e00;
}

.page-game-strategies-tips__btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.page-game-strategies-tips__btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
}

.page-game-strategies-tips__btn-link {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: 2px solid var(--primary-color);
    padding: 10px 20px;
    font-size: 0.9em;
}

.page-game-strategies-tips__btn-link:hover {
    background-color: #2087c2; /* Manual darken */
    border-color: #2087c2;
}


/* Section styles */
.page-game-strategies-tips__intro-section,
.page-game-strategies-tips__strategies-overview,
.page-game-strategies-tips__why-qh88,
.page-game-strategies-tips__final-cta-section {
    padding: 60px 0;
    background-color: var(--secondary-color); /* Light background */
    color: var(--text-dark);
}

.page-game-strategies-tips__dark-bg {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-game-strategies-tips__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color); /* Default for light sections */
}

.page-game-strategies-tips__section-title--white {
    color: var(--text-light); /* For dark sections */
}

.page-game-strategies-tips__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

.page-game-strategies-tips__text-block--white {
    color: var(--text-light);
}

/* Video Section */
.page-game-strategies-tips__video-section {
    padding: 60px 0;
    text-align: center;
}

.page-game-strategies-tips__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 900px; /* Max width for the video */
    margin: 40px auto;
    background-color: #000;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    width: 100%; /* Video container responsiveness */
    box-sizing: border-box; /* Video container responsiveness */
}

.page-game-strategies-tips__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    max-width: 100%; /* Video responsiveness */
    display: block; /* Video responsiveness */
    cursor: pointer;
}

.page-game-strategies-tips__video-caption {
    margin-top: 20px;
    font-style: italic;
    font-size: 0.95em;
    color: var(--text-light);
}

/* Strategy Grid */
.page-game-strategies-tips__strategy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-game-strategies-tips__card {
    background-color: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--text-dark); /* Ensure text color is dark on light card */
}

.page-game-strategies-tips__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.page-game-strategies-tips__card-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-game-strategies-tips__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-game-strategies-tips__card-text {
    font-size: 1em;
    margin-bottom: 20px;
    flex-grow: 1; /* Ensure text takes up available space */
}

/* General Tips */
.page-game-strategies-tips__general-tips {
    padding: 60px 0;
    text-align: center;
}

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

.page-game-strategies-tips__tip-item {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
    border-radius: 10px;
    padding: 25px;
    text-align: left;
    color: var(--text-light);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-game-strategies-tips__tip-title {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: var(--text-light);
}

.page-game-strategies-tips__tip-description {
    font-size: 1em;
}

.page-game-strategies-tips__cta-center {
    margin-top: 40px;
}

/* Why qh88.com */
.page-game-strategies-tips__advantage-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.page-game-strategies-tips__advantage-item {
    font-size: 1.1em;
    margin-bottom: 10px;
    position: relative;
    padding-left: 30px;
    text-align: left;
}

.page-game-strategies-tips__advantage-item::before {
    content: '✓';
    color: var(--text-light);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

/* FAQ Section */
.page-game-strategies-tips__faq-section {
    padding: 60px 0;
}

.page-game-strategies-tips__faq-list {
    max-width: 900px;
    margin: 40px auto 0 auto;
}

.page-game-strategies-tips__faq-item {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-light);
}

.page-game-strategies-tips__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

.page-game-strategies-tips__faq-question:hover {
    background-color: rgba(0, 0, 0, 0.2);
}

.page-game-strategies-tips__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-game-strategies-tips__faq-item.active .page-game-strategies-tips__faq-toggle {
    transform: rotate(45deg); /* Plus to Minus */
}

.page-game-strategies-tips__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

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

.page-game-strategies-tips__faq-answer p {
    margin-bottom: 15px;
    font-size: 1em;
    color: var(--text-light);
}

.page-game-strategies-tips__faq-answer p:last-child {
    margin-bottom: 0;
}

/* Final CTA Section */
.page-game-strategies-tips__final-cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--secondary-color);
}

.page-game-strategies-tips__cta-box {
    background-color: #f8f8f8; /* Slightly off-white for contrast */
    border-radius: 15px;
    padding: 50px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-game-strategies-tips__hero-title {
        font-size: 3em;
    }
}

@media (max-width: 768px) {
    .page-game-strategies-tips__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
        padding-bottom: 40px;
    }

    .page-game-strategies-tips__hero-title {
        font-size: 2.2em;
    }

    .page-game-strategies-tips__hero-description {
        font-size: 1.1em;
    }

    .page-game-strategies-tips__hero-cta-buttons,
    .page-game-strategies-tips__cta-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px;
        margin-left: auto;
        margin-right: auto;
        overflow: hidden !important;
    }

    .page-game-strategies-tips__btn-primary,
    .page-game-strategies-tips__btn-secondary,
    .page-game-strategies-tips__btn-link {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

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

    .page-game-strategies-tips__intro-section,
    .page-game-strategies-tips__strategies-overview,
    .page-game-strategies-tips__why-qh88,
    .page-game-strategies-tips__final-cta-section,
    .page-game-strategies-tips__general-tips,
    .page-game-strategies-tips__faq-section,
    .page-game-strategies-tips__video-section {
        padding: 40px 0;
    }

    .page-game-strategies-tips__container {
        padding: 0 15px;
    }

    /* Image responsiveness */
    .page-game-strategies-tips img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Image container responsiveness */
    .page-game-strategies-tips__section,
    .page-game-strategies-tips__card,
    .page-game-strategies-tips__container,
    .page-game-strategies-tips__strategy-grid,
    .page-game-strategies-tips__tips-grid {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Video responsiveness */
    .page-game-strategies-tips video,
    .page-game-strategies-tips__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Video container responsiveness */
    .page-game-strategies-tips__video-section,
    .page-game-strategies-tips__video-container,
    .page-game-strategies-tips__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-game-strategies-tips__video-wrapper {
        padding-bottom: 56.25% !important; /* Ensure aspect ratio */
    }

    .page-game-strategies-tips__cta-box {
        padding: 30px 20px;
    }

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

    .page-game-strategies-tips__faq-answer {
        padding: 0 20px;
    }

    .page-game-strategies-tips__faq-item.active .page-game-strategies-tips__faq-answer {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .page-game-strategies-tips__hero-title {
        font-size: 1.8em;
    }

    .page-game-strategies-tips__section-title {
        font-size: 1.8em;
    }
}

/* Ensure light text on dark background for advantage items */
.page-game-strategies-tips__advantage-item::before {
    color: var(--text-light); /* Changed to text-light for consistency on dark sections */
}