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

.page-game-guides {
    color: var(--color-text-main); /* Default text color for the page */
    background-color: var(--color-background);
}

.page-game-guides__section {
    padding: 60px 20px;
    text-align: center;
}

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

/* Hero Section */
.page-game-guides__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 20px 60px; /* Small top padding, body handles header offset */
    overflow: hidden;
}

.page-game-guides__hero-image-wrapper {
    width: 100%;
    max-height: 700px; /* Max height for hero image */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

.page-game-guides__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.page-game-guides__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin-top: 20px;
}

.page-game-guides__main-title {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    color: var(--color-gold);
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

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

/* General Titles and Text */
.page-game-guides__section-title {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--color-text-main);
    position: relative;
    padding-bottom: 15px;
}

.page-game-guides__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--color-primary);
    border-radius: 2px;
}

.page-game-guides__sub-title {
    font-size: 1.8em;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 20px;
    color: var(--color-gold);
}

.page-game-guides__text-block {
    font-size: 1em;
    line-height: 1.7;
    color: var(--color-text-secondary);
    margin-bottom: 15px;
}

/* Buttons */
.page-game-guides__btn-primary,
.page-game-guides__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-game-guides__btn-primary {
    background: var(--color-button-gradient);
    color: var(--color-text-main);
    border: none;
    box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

.page-game-guides__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(17, 168, 78, 0.6);
}

.page-game-guides__btn-secondary {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.page-game-guides__btn-secondary:hover {
    background: var(--color-primary);
    color: var(--color-text-main);
    transform: translateY(-2px);
}

.page-game-guides__btn-center {
    margin-top: 30px;
    margin-left: auto;
    margin-right: auto;
    display: block;
    width: fit-content;
}

/* Dark Background Sections */
.page-game-guides__dark-section {
    background-color: var(--color-card-bg);
}

/* Game Types Grid */
.page-game-guides__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-game-guides__game-card {
    background-color: var(--color-background);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-game-guides__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

.page-game-guides__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block; /* Ensure it respects width/height */
}

.page-game-guides__card-title {
    font-size: 1.4em;
    font-weight: 700;
    color: var(--color-text-main);
    margin-bottom: 10px;
}

.page-game-guides__card-text {
    font-size: 0.95em;
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Two Column Grid */
.page-game-guides__grid-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    text-align: left;
}

.page-game-guides__text-content {
    display: flex;
    flex-direction: column;
}

.page-game-guides__image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-game-guides__content-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    display: block;
}

/* Strategy Grid */
.page-game-guides__grid-strategy {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
    text-align: left;
}

.page-game-guides__strategy-item {
    background-color: var(--color-background);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--color-border);
}

/* FAQ Section */
.page-game-guides__faq-list {
    margin-top: 40px;
    text-align: left;
}

.page-game-guides__faq-item {
    background-color: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-game-guides__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    color: var(--color-text-main);
    background-color: var(--color-card-bg);
    border-bottom: 1px solid transparent;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    list-style: none; /* For details/summary */
}

.page-game-guides__faq-question::-webkit-details-marker {
    display: none;
}

.page-game-guides__faq-item[open] > .page-game-guides__faq-question {
    border-color: var(--color-border);
    background-color: var(--color-background);
}

.page-game-guides__faq-qtext {
    flex-grow: 1;
}

.page-game-guides__faq-toggle {
    font-size: 1.5em;
    font-weight: 300;
    margin-left: 20px;
    color: var(--color-primary);
}

.page-game-guides__faq-answer {
    padding: 0 25px 20px;
    font-size: 0.95em;
    line-height: 1.6;
    color: var(--color-text-secondary);
}

/* Conclusion Section */
.page-game-guides__conclusion {
    padding-bottom: 80px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-game-guides__grid-two-col {
        grid-template-columns: 1fr;
    }
    .page-game-guides__image-wrapper {
        order: -1; /* Image first on smaller screens */
        margin-bottom: 30px;
    }
    .page-game-guides__hero-image-wrapper {
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    .page-game-guides__section {
        padding: 40px 15px;
    }
    .page-game-guides__hero-section {
        padding: 10px 15px 40px;
    }
    .page-game-guides__main-title {
        font-size: 2em;
    }
    .page-game-guides__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-game-guides__sub-title {
        font-size: 1.4em;
    }
    .page-game-guides p,
    .page-game-guides li {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-game-guides__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-game-guides__card-image,
    .page-game-guides__content-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-game-guides__game-card,
    .page-game-guides__strategy-item,
    .page-game-guides__faq-item,
    .page-game-guides__container,
    .page-game-guides__grid-two-col,
    .page-game-guides__grid,
    .page-game-guides__grid-strategy {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .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;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .page-game-guides__btn-center {
        width: 100% !important;
    }
    .page-game-guides__hero-content .page-game-guides__btn-primary {
        margin-top: 20px;
    }
    .page-game-guides__cta-buttons,
    .page-game-guides__button-group,
    .page-game-guides__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-game-guides__game-card .page-game-guides__btn-secondary {
        margin-top: auto; /* Push button to bottom */
    }
}