/* General page styling */
.page-game-guides {
    /* Assuming shared.css sets body background to a dark color #08160F */
    color: var(--text-main-color); /* #F2FFF6 */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: var(--background-color); /* #08160F */
}

.page-game-guides__section-spacing {
    padding-top: 60px;
    padding-bottom: 60px;
}

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

/* Hero Section */
.page-game-guides__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 60px;
    background-color: var(--background-color); /* #08160F */
}

.page-game-guides__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    margin-bottom: 40px;
}

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

.page-game-guides__hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-game-guides__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Flexible font size for H1 */
    color: var(--text-main-color); /* #F2FFF6 */
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-game-guides__intro-text {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary-color); /* #A7D9B8 */
    margin-bottom: 30px;
}

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

.page-game-guides__btn-primary,
.page-game-guides__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    width: auto;
    text-align: center;
}

.page-game-guides__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #ffffff;
    border: 2px solid transparent;
}

.page-game-guides__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

.page-game-guides__btn-secondary {
    background: transparent;
    color: var(--text-main-color); /* #F2FFF6 */
    border: 2px solid var(--border-color); /* #2E7A4E */
}

.page-game-guides__btn-secondary:hover {
    background-color: var(--border-color); /* #2E7A4E */
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 122, 78, 0.3);
}

/* Section Titles */
.page-game-guides__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    color: var(--text-main-color); /* #F2FFF6 */
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
    line-height: 1.3;
}

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

.page-game-guides__text-block {
    font-size: 1rem;
    color: var(--text-secondary-color); /* #A7D9B8 */
    margin-bottom: 20px;
    text-align: justify;
}

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

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

.page-game-guides__card {
    background-color: var(--card-bg-color); /* #11271B */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color); /* #2E7A4E */
}

.page-game-guides__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.page-game-guides__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-game-guides__card-title {
    font-size: 1.4rem;
    font-weight: bold;
    margin: 20px 20px 10px 20px;
    line-height: 1.3;
}

.page-game-guides__card-title a {
    color: var(--text-main-color); /* #F2FFF6 */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-game-guides__card-title a:hover {
    color: var(--gold-color); /* #F2C14E */
}

.page-game-guides__card-text {
    font-size: 0.95rem;
    color: var(--text-secondary-color); /* #A7D9B8 */
    padding: 0 20px;
    margin-bottom: 20px;
    flex-grow: 1; /* Ensures text block takes available space */
}

.page-game-guides__btn-text {
    display: inline-flex;
    align-items: center;
    color: var(--glow-color); /* #57E38D */
    text-decoration: none;
    font-weight: bold;
    padding: 0 20px 20px 20px;
    transition: color 0.3s ease;
}

.page-game-guides__btn-text:hover {
    color: var(--gold-color); /* #F2C14E */
}

.page-game-guides__icon-arrow {
    margin-left: 8px;
    font-size: 1.1em;
    transition: transform 0.3s ease;
}

.page-game-guides__btn-text:hover .page-game-guides__icon-arrow {
    transform: translateX(5px);
}

/* Ordered List (Effective Tips) */
.page-game-guides__ordered-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-game-guides__ordered-list li {
    background-color: var(--card-bg-color); /* #11271B */
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    border-left: 5px solid var(--main-color); /* #11A84E */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-game-guides__ordered-list li:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.page-game-guides__list-title {
    font-size: 1.3rem;
    color: var(--text-main-color); /* #F2FFF6 */
    margin-bottom: 10px;
    font-weight: bold;
}

.page-game-guides__list-text {
    font-size: 1rem;
    color: var(--text-secondary-color); /* #A7D9B8 */
}

/* Exclusive Tips Grid */
.page-game-guides__grid-2-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-game-guides__tip-item {
    background-color: var(--card-bg-color); /* #11271B */
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color); /* #2E7A4E */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-game-guides__tip-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
}

.page-game-guides__tip-title {
    font-size: 1.3rem;
    color: var(--text-main-color); /* #F2FFF6 */
    margin-bottom: 10px;
    font-weight: bold;
}

.page-game-guides__tip-text {
    font-size: 1rem;
    color: var(--text-secondary-color); /* #A7D9B8 */
}

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

.page-game-guides__faq-item {
    background-color: var(--card-bg-color); /* #11271B */
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color); /* #2E7A4E */
}

.page-game-guides__faq-item summary {
    list-style: none; /* Hide default marker */
    cursor: pointer;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--text-main-color); /* #F2FFF6 */
    transition: background-color 0.3s ease;
}

.page-game-guides__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-game-guides__faq-item summary:hover {
    background-color: var(--deep-green-color); /* #0A4B2C */
}

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

.page-game-guides__faq-toggle {
    font-size: 1.5rem;
    margin-left: 15px;
    color: var(--glow-color); /* #57E38D */
}

.page-game-guides__faq-item[open] .page-game-guides__faq-toggle {
    content: "−"; /* Change to minus when open */
}

.page-game-guides__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1rem;
    color: var(--text-secondary-color); /* #A7D9B8 */
}

/* Final CTA Section */
.page-game-guides__final-cta .page-game-guides__container {
    background-color: var(--deep-green-color); /* #0A4B2C */
    border-radius: 15px;
    padding: 50px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 2px solid var(--glow-color); /* #57E38D */
}

/* Custom Color Variables - Must be defined in :root or shared.css */
/* For this page, I will define them here to ensure they are used */
:root {
    --main-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient-start: #2AD16F;
    --button-gradient-end: #13994A;
    --card-bg-color: #11271B;
    --background-color: #08160F;
    --text-main-color: #F2FFF6;
    --text-secondary-color: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green-color: #0A4B2C;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-game-guides__hero-content {
        padding: 0 15px;
    }
    .page-game-guides__main-title {
        font-size: clamp(2rem, 4.5vw, 3.2rem);
    }
    .page-game-guides__section-title {
        font-size: clamp(1.6rem, 3.8vw, 2.5rem);
    }
    .page-game-guides__card-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    /* General responsive adjustments */
    .page-game-guides__section-spacing {
        padding-top: 40px;
        padding-bottom: 40px;
    }
    .page-game-guides__hero-section {
        padding-bottom: 40px;
    }
    .page-game-guides__container {
        padding: 0 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Images responsiveness */
    .page-game-guides img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    .page-game-guides__hero-image-wrapper,
    .page-game-guides__card,
    .page-game-guides__tip-item,
    .page-game-guides__faq-item,
    .page-game-guides__final-cta .page-game-guides__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0 !important; /* Container handles padding */
        padding-right: 0 !important; /* Container handles padding */
    }
    .page-game-guides__card-image {
        height: 180px; /* Adjust height for mobile cards */
    }

    /* Buttons responsiveness */
    .page-game-guides__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px;
    }
    .page-game-guides__btn-primary,
    .page-game-guides__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px !important;
        font-size: 0.95rem !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Text adjustments */
    .page-game-guides__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }
    .page-game-guides__intro-text {
        font-size: 0.95rem;
    }
    .page-game-guides__section-title {
        font-size: clamp(1.5rem, 5vw, 2.2rem);
    }
    .page-game-guides__card-title {
        font-size: 1.2rem;
    }
    .page-game-guides__list-title,
    .page-game-guides__tip-title {
        font-size: 1.15rem;
    }
    .page-game-guides__faq-item summary {
        font-size: 1rem;
        padding: 15px 20px;
    }
    .page-game-guides__faq-answer {
        padding: 0 20px 15px 20px;
    }
    
    /* Ensure no horizontal scroll */
    .page-game-guides {
        overflow-x: hidden;
    }
}

/* Ensure content area images are not too small in CSS */
/* This rule targets all img elements within .page-game-guides for content images */
.page-game-guides img:not(.page-game-guides__icon-arrow) {
    min-width: 200px;
    min-height: 200px;
}
.page-game-guides__card-image {
    min-width: unset; /* Allow card images to be smaller than 200px if their container is small, but still > 200px overall */
    min-height: unset;
}
/* Re-applying min-size for general content images, ensuring card images are handled by their specific rules */
.page-game-guides__content-area img,
.page-game-guides__effective-tips img,
.page-game-guides__exclusive-tips img {
    min-width: 200px;
    min-height: 200px;
}

/* Ensure color contrast for elements */
.page-game-guides p,
.page-game-guides li,
.page-game-guides__text-block,
.page-game-guides__list-text,
.page-game-guides__tip-text,
.page-game-guides__faq-answer p {
    color: var(--text-secondary-color); /* #A7D9B8 - for general text on dark background */
}

/* Specific elements that might need forced light text on dark brand colors */
.page-game-guides__dark-bg {
    background-color: var(--deep-green-color); /* #0A4B2C */
    color: #ffffff; /* Forced white text */
}

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

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

/* Ensure links are readable */
.page-game-guides a {
    color: var(--glow-color); /* #57E38D */
    text-decoration: none;
}
.page-game-guides a:hover {
    color: var(--gold-color); /* #F2C14E */
    text-decoration: underline;
}
.page-game-guides__card-title a {
    color: var(--text-main-color);
}
.page-game-guides__card-title a:hover {
    color: var(--gold-color);
}