/* style/index-game-guide.css */

/* Base styles for the page content */
.page-index-game-guide {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #f8f8f8; /* Light background for the main content area */
}

/* Fixed header offset - apply to the first content section */
.page-index-game-guide__hero-section {
    padding-top: var(--header-offset, 120px);
    position: relative;
    overflow: hidden; /* Ensure content doesn't overflow */
}

/* Hero Section */
.page-index-game-guide__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust height as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff; /* White text for dark background */
}

.page-index-game-guide__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-index-game-guide__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 2;
}

.page-index-game-guide__hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 20px;
}

.page-index-game-guide__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #FFD700; /* Gold for emphasis */
}

.page-index-game-guide__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
}

.page-index-game-guide__hero-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* General Section Styling */
.page-index-game-guide__section-title {
    font-size: 2.5em;
    color: #8B0000; /* Main brand color for titles */
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-index-game-guide__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #FFD700; /* Gold accent */
    border-radius: 2px;
}

.page-index-game-guide__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

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

/* Card Styling */
.page-index-game-guide__feature-cards,
.page-index-game-guide__game-grid,
.page-index-game-guide__steps-grid,
.page-index-game-guide__strategy-grid {
    display: grid;
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 40px;
}

.page-index-game-guide__feature-cards {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.page-index-game-guide__game-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.page-index-game-guide__steps-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.page-index-game-guide__strategy-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.page-index-game-guide__card,
.page-index-game-guide__game-card,
.page-index-game-guide__step-card,
.page-index-game-guide__strategy-item {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #333333; /* Dark text for light card background */
}

.page-index-game-guide__card:hover,
.page-index-game-guide__game-card:hover,
.page-index-game-guide__step-card:hover,
.page-index-game-guide__strategy-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-index-game-guide__card-title,
.page-index-game-guide__game-title,
.page-index-game-guide__step-title,
.page-index-game-guide__strategy-title {
    font-size: 1.4em;
    margin-bottom: 15px;
    color: #8B0000; /* Brand color for card titles */
}

.page-index-game-guide__card-title a,
.page-index-game-guide__game-title a {
    color: inherit;
    text-decoration: none;
}

.page-index-game-guide__card-title a:hover,
.page-index-game-guide__game-title a:hover {
    text-decoration: underline;
}

.page-index-game-guide__game-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Button Styling */
.page-index-game-guide__btn-primary,
.page-index-game-guide__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1.1em;
    text-align: center;
    box-sizing: border-box; /* Ensure padding is included in width */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
}

.page-index-game-guide__btn-primary {
    background-color: #8B0000; /* Main brand color */
    color: #ffffff;
    border: 2px solid #8B0000;
}

.page-index-game-guide__btn-primary:hover {
    background-color: #6a0000; /* Darker red on hover */
    border-color: #6a0000;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.page-index-game-guide__btn-secondary {
    background-color: transparent;
    color: #8B0000; /* Main brand color for text */
    border: 2px solid #8B0000;
}

.page-index-game-guide__btn-secondary:hover {
    background-color: #8B0000; /* Main brand color on hover */
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.page-index-game-guide__cta-buttons--center {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* Dark background sections */
.page-index-game-guide__dark-bg {
    background-color: #8B0000; /* Main brand color for dark sections */
    color: #ffffff;
}

.page-index-game-guide__dark-bg .page-index-game-guide__section-title {
    color: #FFD700; /* Gold for titles on dark background */
}

.page-index-game-guide__dark-bg .page-index-game-guide__section-title::after {
    background-color: #ffffff; /* White accent on dark background */
}

.page-index-game-guide__dark-bg .page-index-game-guide__text-block {
    color: #f0f0f0; /* Lighter text for dark background */
}

/* Light background sections */
.page-index-game-guide__light-bg {
    background-color: #f8f8f8; /* Light background */
    color: #333333;
}

/* Security Section */
.page-index-game-guide__security-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    margin-top: 30px;
}

.page-index-game-guide__security-image {
    flex: 1;
    min-width: 300px;
    max-width: 50%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
}

.page-index-game-guide__security-details {
    flex: 1;
    min-width: 300px;
}

.page-index-game-guide__security-subtitle {
    font-size: 1.8em;
    color: #8B0000;
    margin-bottom: 15px;
}

.page-index-game-guide__security-details ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

.page-index-game-guide__security-details ul li {
    margin-bottom: 10px;
}

/* FAQ Section */
.page-index-game-guide__faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.page-index-game-guide__faq-item {
    background-color: #ffffff;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    color: #333333; /* Dark text for light background */
}

.page-index-game-guide__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    cursor: pointer;
    background-color: #FFD700; /* Gold background for questions */
    color: #8B0000; /* Dark red text on gold background */
    font-weight: bold;
    font-size: 1.2em;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.page-index-game-guide__faq-question:hover {
    background-color: #e6c200; /* Slightly darker gold on hover */
}

.page-index-game-guide__faq-question h3 {
    margin: 0;
    color: inherit; /* Inherit color from parent */
}

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

.page-index-game-guide__faq-item.active .page-index-game-guide__faq-toggle {
    transform: rotate(45deg);
}

.page-index-game-guide__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 30px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    background-color: #fefefe;
    color: #333333; /* Dark text for light answer background */
}

.page-index-game-guide__faq-item.active .page-index-game-guide__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to contain content */
    padding: 20px 30px;
}

.page-index-game-guide__faq-answer p {
    margin: 0;
}

/* Final CTA Section */
.page-index-game-guide__cta-final-section {
    padding: 80px 20px;
    text-align: center;
}

.page-index-game-guide__cta-final-content {
    background-color: #ffffff;
    border-radius: 15px;
    padding: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Image styling for responsive and no filter */
.page-index-game-guide img {
    filter: none; /* Ensure no filter is applied */
    -webkit-filter: none; /* For webkit browsers */
}

/* Ensure content area images are not smaller than 200px */
.page-index-game-guide img:not(.page-index-game-guide__hero-image) {
  min-width: 200px;
  min-height: 200px;
}

/* Special rule for game images to ensure they are not too small */
.page-index-game-guide__game-image {
    width: 100%; /* Take full width of its container */
    height: 200px; /* Fixed height for consistency in grid */
    object-fit: cover;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-index-game-guide__hero-title {
        font-size: 2.8em;
    }
    .page-index-game-guide__section-title {
        font-size: 2em;
    }
    .page-index-game-guide__hero-section {
        height: 500px;
    }
}

@media (max-width: 768px) {
    /* Mobile header offset and content padding */
    .page-index-game-guide__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        height: 400px;
    }

    .page-index-game-guide__container {
        padding: 40px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-index-game-guide__hero-title {
        font-size: 2em;
    }
    .page-index-game-guide__hero-description {
        font-size: 1em;
    }
    .page-index-game-guide__section-title {
        font-size: 1.8em;
    }

    /* Images responsiveness */
    .page-index-game-guide img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Content area containers responsiveness */
    .page-index-game-guide__section,
    .page-index-game-guide__card,
    .page-index-game-guide__container,
    .page-index-game-guide__game-card,
    .page-index-game-guide__step-card,
    .page-index-game-guide__strategy-item,
    .page-index-game-guide__security-content,
    .page-index-game-guide__security-details,
    .page-index-game-guide__cta-final-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Buttons responsiveness */
    .page-index-game-guide__btn-primary,
    .page-index-game-guide__btn-secondary,
    .page-index-game-guide a[class*="button"],
    .page-index-game-guide 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: 12px 20px; /* Adjust padding for mobile buttons */
        font-size: 1em;
    }

    .page-index-game-guide__hero-cta-buttons,
    .page-index-game-guide__cta-buttons--center {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-index-game-guide__security-image {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 auto 20px;
    }

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

    .page-index-game-guide__faq-answer {
        padding: 0 20px;
    }

    .page-index-game-guide__faq-item.active .page-index-game-guide__faq-answer {
        padding: 15px 20px;
    }

    .page-index-game-guide__game-image {
        width: 100% !important;
        height: 200px !important; /* Maintain minimum height for content images */
    }
}

@media (max-width: 480px) {
    .page-index-game-guide__hero-title {
        font-size: 1.8em;
    }
    .page-index-game-guide__section-title {
        font-size: 1.5em;
    }
    .page-index-game-guide__hero-section {
        height: 350px;
    }
}