/* style/game-guides.css */

/* Base styles for the game guides page */
.page-game-guides {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text on default white body background */
    background-color: #ffffff; /* Explicitly set for clarity, though shared.css might handle body */
}

/* Hero Section */
.page-game-guides__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
    background-color: #f0f0f0; /* Light background for hero */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden; /* To contain images */
}

.page-game-guides__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    margin-top: 20px;
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
}

.page-game-guides__hero-content {
    max-width: 900px;
    padding: 40px 20px;
    z-index: 1;
    position: relative;
}

.page-game-guides__hero-title {
    font-size: 2.8em;
    color: #017439; /* Brand primary color for title */
    margin-bottom: 20px;
    font-weight: bold;
}

.page-game-guides__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #333333;
}

.page-game-guides__hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* General Section Styles */
.page-game-guides__section {
    padding: 60px 20px;
    text-align: center;
}

.page-game-guides__section--introduction {
    background-color: #ffffff;
}

.page-game-guides__section--platform-overview {
    background-color: #f8f8f8; /* Light grey background */
}

.page-game-guides__section--detailed-guides {
    background-color: #ffffff;
}

.page-game-guides__section--general-tips {
    background-color: #f8f8f8; /* Light grey background */
}

.page-game-guides__section--conclusion {
    background-color: #ffffff;
}

.page-game-guides__dark-section {
    background-color: #017439; /* Brand primary color */
    color: #ffffff; /* White text for dark background */
}

.page-game-guides__dark-section .page-game-guides__section-title {
    color: #ffffff;
}

.page-game-guides__dark-section .page-game-guides__text-block {
    color: #ffffff;
}

.page-game-guides__dark-section .page-game-guides__list-item {
    color: #ffffff;
}

.page-game-guides__dark-section .page-game-guides__btn-text-link {
    color: #FFFFFF; /* White for text links on dark background for contrast */
}

.page-game-guides__dark-section .page-game-guides__btn-text-link:hover {
    color: #f0f0f0; /* Slightly lighter white on hover */
}

.page-game-guides__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.page-game-guides__section-title {
    font-size: 2.2em;
    color: #017439;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-game-guides__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #333333;
    text-align: left;
}

.page-game-guides__dark-section .page-game-guides__text-block {
    color: #ffffff;
}

.page-game-guides__text-block a {
    color: #017439;
    text-decoration: underline;
}

.page-game-guides__dark-section .page-game-guides__text-block a {
    color: #FFFFFF; /* White for links on dark background for contrast */
}

/* Call to Action Buttons */
.page-game-guides__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break words */
}

.page-game-guides__btn-primary {
    background-color: #C30808; /* Register/Login color */
    color: #FFFFFF; /* White text for contrast */
    border: 2px solid #C30808;
}

.page-game-guides__btn-primary:hover {
    background-color: #a00606;
    border-color: #a00606;
}

.page-game-guides__btn-secondary {
    background-color: #017439; /* Brand primary color */
    color: #FFFFFF;
    border: 2px solid #017439;
}

.page-game-guides__btn-secondary:hover {
    background-color: #005a2e;
    border-color: #005a2e;
}

.page-game-guides__btn-large {
    padding: 18px 35px;
    font-size: 1.2em;
}

/* Features Grid (Platform Overview) */
.page-game-guides__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: left;
}

.page-game-guides__feature-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.3s ease;
    min-height: 450px; /* Ensure cards have a minimum height */
}

.page-game-guides__feature-card:hover {
    transform: translateY(-5px);
}

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

.page-game-guides__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
}

.page-game-guides__card-description {
    font-size: 1em;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1; /* Allow description to take available space */
}

.page-game-guides__btn-text-link {
    color: #017439;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    align-self: flex-end; /* Align to bottom right */
}

.page-game-guides__btn-text-link:hover {
    color: #005a2e;
    text-decoration: underline;
}

/* Detailed Guides Section */
.page-game-guides__guide-block {
    background-color: #fefefe;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: left;
}

.page-game-guides__guide-title {
    font-size: 1.8em;
    color: #017439;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-game-guides__content-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin: 25px 0;
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
}

.page-game-guides__list {
    list-style-type: disc;
    padding-left: 25px;
    margin-bottom: 20px;
    color: #333333;
}

.page-game-guides__list-item {
    margin-bottom: 10px;
    font-size: 1.05em;
    color: #333333;
}

.page-game-guides__list-item strong {
    color: #017439;
}

.page-game-guides__list-item ul {
    list-style-type: circle;
    padding-left: 20px;
    margin-top: 5px;
}

.page-game-guides__list--checkmarks {
    list-style-type: none;
    padding-left: 0;
}

.page-game-guides__list--checkmarks .page-game-guides__list-item::before {
    content: '✅'; /* Checkmark icon */
    margin-right: 10px;
}

/* FAQ Section */
.page-game-guides__faq-section {
    background-color: #f0f0f0;
}

.page-game-guides__faq-list {
    margin-top: 30px;
}

.page-game-guides__faq-item {
    background-color: #ffffff;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.page-game-guides__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: #017439;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

.page-game-guides__faq-question:hover {
    background-color: #f5f5f5;
}

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

.page-game-guides__faq-item.active .page-game-guides__faq-toggle {
    transform: rotate(45deg); /* Change + to X or - */
}

.page-game-guides__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px; /* Initial padding 0 */
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    color: #555555;
    text-align: left;
}

.page-game-guides__faq-item.active .page-game-guides__faq-answer {
    max-height: 1000px !important; /* Sufficiently large value */
    padding: 15px 25px; /* Padding when active */
}

.page-game-guides__faq-answer p {
    margin-bottom: 0; /* Remove default paragraph margin */
}

.page-game-guides__faq-answer a {
    color: #017439;
    text-decoration: underline;
}

/* Conclusion Section */
.page-game-guides__text-center {
    text-align: center;
}

.page-game-guides__link-highlight {
    color: #FFFFFF; /* White for highlight link on dark background for contrast */
    font-weight: bold;
    text-decoration: underline;
}

.page-game-guides__link-highlight:hover {
    color: #f0f0f0; /* Slightly lighter white on hover */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-game-guides__hero-title {
        font-size: 2.2em;
    }
    .page-game-guides__section-title {
        font-size: 1.8em;
    }
    .page-game-guides__hero-image {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 768px) {
    .page-game-guides__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure space for fixed header on mobile */
    }
    .page-game-guides__hero-title {
        font-size: 1.8em;
    }
    .page-game-guides__hero-description {
        font-size: 1em;
    }
    .page-game-guides__hero-cta {
        flex-direction: column;
        gap: 15px;
    }
    .page-game-guides__cta-button,
    .page-game-guides__btn-primary,
    .page-game-guides__btn-secondary,
    .page-game-guides a[class*="button"],
    .page-game-guides 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; /* Add padding to prevent text touching edges */
        padding-right: 15px;
    }
    .page-game-guides__features-grid {
        grid-template-columns: 1fr;
    }
    .page-game-guides__section {
        padding: 40px 15px;
    }
    .page-game-guides__container {
        padding: 0 10px;
    }
    .page-game-guides__section-title {
        font-size: 1.5em;
        margin-bottom: 30px;
    }
    .page-game-guides__guide-title {
        font-size: 1.4em;
    }
}