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

/* Base Styles */
.page-resources-game-tips {
    font-family: 'Arial', sans-serif;
    color: #ffffff; /* Light text for dark body background */
    background-color: #0a0a0a; /* Ensure consistency with body background */
    line-height: 1.6;
    font-size: 16px;
}

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

.page-resources-game-tips__section-title {
    font-size: 2.5em;
    color: #FF4500; /* Primary brand color for titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
}

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

/* Buttons */
.page-resources-game-tips__btn-primary,
.page-resources-game-tips__btn-secondary,
.page-resources-game-tips__btn-tertiary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-resources-game-tips__btn-primary {
    background-color: #FF4500; /* Primary brand color */
    color: #ffffff;
    border: 2px solid #FF4500;
}

.page-resources-game-tips__btn-primary:hover {
    background-color: #e03c00;
    border-color: #e03c00;
}

.page-resources-game-tips__btn-secondary {
    background-color: transparent;
    color: #1E90FF; /* Auxiliary brand color */
    border: 2px solid #1E90FF;
}

.page-resources-game-tips__btn-secondary:hover {
    background-color: #1E90FF;
    color: #ffffff;
}

.page-resources-game-tips__btn-tertiary {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    font-size: 1em;
}

.page-resources-game-tips__btn-tertiary:hover {
    background-color: #1E90FF;
    border-color: #1E90FF;
    color: #ffffff;
}

/* Hero Section */
.page-resources-game-tips__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, #0a0a0a, #1a1a1a);
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-resources-game-tips__hero-content {
    max-width: 800px;
    z-index: 1;
    margin-bottom: 40px;
}

.page-resources-game-tips__hero-title {
    font-size: 3.5em;
    color: #FF4500;
    margin-bottom: 20px;
    line-height: 1.1;
    font-weight: bold;
}

.page-resources-game-tips__hero-description {
    font-size: 1.3em;
    color: #f0f0f0;
    margin-bottom: 40px;
}

.page-resources-game-tips__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%; /* Ensure container takes full width */
    max-width: 600px; /* Limit button group width */
    margin: 0 auto;
}

.page-resources-game-tips__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.page-resources-game-tips__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
    filter: brightness(0.7); /* Only brightness, not color-changing filters */
}


/* Video Section */
.page-resources-game-tips__video-section {
    padding: 60px 20px;
    background-color: #1a1a1a;
    text-align: center;
}

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

.page-resources-game-tips__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    max-width: 100%; /* Ensure video is responsive */
    height: auto; /* Ensure video is responsive */
    display: block; /* Remove extra space below video */
}

.page-resources-game-tips__video-caption {
    font-size: 1em;
    color: #cccccc;
    margin-top: 10px;
}


/* About and Tips Overview Sections */
.page-resources-game-tips__about-section,
.page-resources-game-tips__tips-overview,
.page-resources-game-tips__download-guide-section,
.page-resources-game-tips__final-cta {
    padding: 60px 20px;
    text-align: center;
}

.page-resources-game-tips__dark-bg {
    background-color: #1a1a1a;
    color: #ffffff;
}

/* Benefits Grid */
.page-resources-game-tips__benefits-section {
    padding: 60px 20px;
    background-color: #0d0d0d;
}

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

.page-resources-game-tips__benefit-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-resources-game-tips__benefit-card:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.1);
}

.page-resources-game-tips__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    max-width: 100%; /* Responsive image */
    display: block;
}

.page-resources-game-tips__card-title {
    font-size: 1.5em;
    color: #FF4500;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-resources-game-tips__card-text {
    font-size: 1em;
    color: #cccccc;
}

/* Game Tips Sections */
.page-resources-game-tips__game-tips-sections {
    padding: 60px 20px;
    background-color: #0a0a0a;
}

.page-resources-game-tips__tip-category {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
}

.page-resources-game-tips__category-title {
    font-size: 2em;
    color: #1E90FF; /* Auxiliary brand color for sub-titles */
    margin-bottom: 25px;
    font-weight: bold;
    text-align: center;
}

.page-resources-game-tips__category-image {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 30px;
    display: block;
}

.page-resources-game-tips__tip-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.page-resources-game-tips__list-item {
    font-size: 1.1em;
    color: #f0f0f0;
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
}

.page-resources-game-tips__list-item::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: #FF4500;
}

/* Download Guide */
.page-resources-game-tips__download-steps {
    list-style: decimal;
    padding-left: 20px;
    margin-top: 30px;
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources-game-tips__download-steps .page-resources-game-tips__list-item {
    margin-bottom: 15px;
    font-size: 1.1em;
    color: #f0f0f0;
    padding-left: 0; /* Remove custom bullet */
}

.page-resources-game-tips__download-steps .page-resources-game-tips__list-item::before {
    content: none; /* Remove custom bullet */
}

/* FAQ Section */
.page-resources-game-tips__faq-section {
    padding: 60px 20px;
    background-color: #0d0d0d;
}

.page-resources-game-tips__faq-list {
    max-width: 800px;
    margin: 0 auto;
    margin-top: 40px;
}

.page-resources-game-tips__faq-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-resources-game-tips__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

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

.page-resources-game-tips__faq-item.active .page-resources-game-tips__faq-toggle {
    transform: rotate(45deg); /* Change + to X or - */
    color: #1E90FF;
}

.page-resources-game-tips__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    color: #cccccc;
    font-size: 1em;
    text-align: justify;
}

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

.page-resources-game-tips__faq-answer p {
    margin: 0;
    padding-bottom: 10px; /* Add some space below paragraph */
}

/* Final CTA */
.page-resources-game-tips__final-cta {
    padding-bottom: 80px;
}

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

@media (max-width: 768px) {
    .page-resources-game-tips {
        font-size: 16px;
        line-height: 1.6;
    }

    /* Fixed header offset for hero section in mobile */
    .page-resources-game-tips__hero-section {
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-resources-game-tips__hero-section {
        flex-direction: column;
        padding: 60px 15px;
    }

    .page-resources-game-tips__hero-content {
        margin-bottom: 30px;
    }

    .page-resources-game-tips__hero-title {
        font-size: 2.5em;
    }

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

    .page-resources-game-tips__cta-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: 100% !important; /* Ensure container takes full width */
        padding: 0 15px;
        box-sizing: border-box !important;
    }

    .page-resources-game-tips__btn-primary,
    .page-resources-game-tips__btn-secondary,
    .page-resources-game-tips__btn-tertiary {
        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-resources-game-tips__video-section,
    .page-resources-game-tips__about-section,
    .page-resources-game-tips__benefits-section,
    .page-resources-game-tips__tips-overview,
    .page-resources-game-tips__game-tips-sections,
    .page-resources-game-tips__download-guide-section,
    .page-resources-game-tips__faq-section,
    .page-resources-game-tips__final-cta {
        padding: 40px 15px !important; /* Adjust padding for mobile */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important; /* Prevent horizontal scrolling */
    }

    .page-resources-game-tips__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-resources-game-tips__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-resources-game-tips img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-resources-game-tips__card-image,
    .page-resources-game-tips__category-image {
        height: auto;
    }

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

    .page-resources-game-tips__card-title {
        font-size: 1.3em;
    }

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

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

    .page-resources-game-tips__faq-item.active .page-resources-game-tips__faq-answer {
        padding: 10px 20px 20px;
    }

    .page-resources-game-tips__download-steps,
    .page-resources-game-tips__faq-list {
        padding: 0;
    }

    .page-resources-game-tips__list-item {
        font-size: 1em;
    }
}