:root {
    --primary-color: #F2C14E;
    --secondary-color: #FFD36B;
    --background-color: #0A0A0A;
    --card-background: #111111;
    --text-main-color: #FFF6D6;
    --border-color: #3A2A12;
    --glow-color: #FFD36B;
    --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

.page-game-guides {
    font-family: 'Arial', sans-serif;
    background-color: var(--background-color);
    color: var(--text-main-color); /* Main text color for dark background */
    line-height: 1.6;
    padding-bottom: 50px;
}

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

.page-game-guides__text-center {
    text-align: center;
}

/* Section Styling */
.page-game-guides__section {
    padding: 60px 0;
    position: relative;
}

.page-game-guides__section-title {
    font-size: clamp(28px, 3.5vw, 42px);
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-game-guides__section-description {
    font-size: 18px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
    color: var(--text-main-color);
}

/* HERO Section */
.page-game-guides__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding for visual separation, body handles header offset */
    background-color: var(--background-color);
}

.page-game-guides__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%; /* Ensure full width on desktop */
}

.page-game-guides__hero-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-game-guides__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: cover;
    border-radius: 12px; /* Apply border-radius to the image itself */
    min-width: 200px;
    min-height: 200px;
}

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

.page-game-guides__hero-content h1 {
    font-size: clamp(36px, 5vw, 56px);
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.1;
    text-shadow: 0 0 10px rgba(255, 211, 107, 0.5);
}

.page-game-guides__hero-content p {
    font-size: 20px;
    color: var(--text-main-color);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-game-guides__cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    width: 100%; /* Ensure container takes full width for responsive buttons */
    max-width: 100%;
    box-sizing: border-box;
}

.page-game-guides__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--button-gradient);
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--primary-color);
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
    max-width: 100%; /* Ensure button doesn't overflow */
    box-sizing: border-box;
}

.page-game-guides__cta-button:hover {
    opacity: 0.9;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-game-guides__cta-button--secondary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    box-shadow: none;
}

.page-game-guides__cta-button--secondary:hover {
    background: rgba(242, 193, 78, 0.1);
    color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Image in content */
.page-game-guides__image {
    width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    object-fit: cover;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

.page-game-guides__image--left {
    float: left;
    margin-right: 40px;
    margin-bottom: 20px;
    max-width: 40%;
    border-radius: 8px;
}

/* Game Categories */
.page-game-guides__game-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-game-guides__game-card {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.page-game-guides__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    border-bottom: 1px solid var(--border-color);
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

.page-game-guides__card-title {
    font-size: 24px;
    color: var(--secondary-color);
    padding: 20px 20px 10px;
    margin: 0;
    font-weight: bold;
    line-height: 1.3;
}

.page-game-guides__card-title a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-game-guides__card-title a:hover {
    color: var(--primary-color);
}

.page-game-guides__card-text {
    font-size: 16px;
    color: var(--text-main-color);
    padding: 0 20px 20px;
    flex-grow: 1;
}

.page-game-guides__card-link {
    display: inline-block;
    background-color: var(--primary-color);
    color: #ffffff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 6px;
    margin: 0 20px 20px;
    align-self: flex-start;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-weight: bold;
}

.page-game-guides__card-link:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Player Tips */
.page-game-guides__player-tips .page-game-guides__section-description {
    margin-bottom: 60px;
}

.page-game-guides__tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-game-guides__tip-item {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-game-guides__tip-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

.page-game-guides__tip-title {
    font-size: 22px;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-game-guides__tip-text {
    font-size: 16px;
    color: var(--text-main-color);
}

/* Responsible Gaming */
.page-game-guides__responsible-gaming {
    background-color: #0d0d0d; /* Slightly different dark background */
    padding: 80px 0;
}

.page-game-guides__responsible-content {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    margin-top: 40px;
}

.page-game-guides__responsible-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
}

.page-game-guides__responsible-list li {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    font-size: 17px;
    color: var(--text-main-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-game-guides__responsible-list li strong {
    color: var(--secondary-color);
}

/* FAQ Section */
.page-game-guides__faq-section {
    padding-bottom: 80px;
}

details.page-game-guides__faq-item {
    margin-bottom: 15px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    background: var(--card-background);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
details.page-game-guides__faq-item summary.page-game-guides__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
    color: var(--secondary-color);
    font-weight: bold;
}
details.page-game-guides__faq-item summary.page-game-guides__faq-question::-webkit-details-marker {
    display: none;
}
details.page-game-guides__faq-item summary.page-game-guides__faq-question:hover {
    background: rgba(242, 193, 78, 0.05); /* Slight hover effect */
}
.page-game-guides__faq-qtext {
    flex: 1;
    font-size: 18px;
    line-height: 1.5;
    text-align: left;
    color: var(--secondary-color);
}
.page-game-guides__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-left: 20px;
    width: 30px;
    text-align: center;
}
details.page-game-guides__faq-item .page-game-guides__faq-answer {
    padding: 0 25px 25px;
    background: rgba(17, 17, 17, 0.8); /* Slightly lighter card background for answer */
    border-radius: 0 0 12px 12px;
    color: var(--text-main-color);
    font-size: 16px;
}
details.page-game-guides__faq-item .page-game-guides__faq-answer p {
    margin: 0;
}

/* Bottom CTA */
.page-game-guides__cta-bottom {
    background-color: var(--primary-color);
    padding: 80px 0;
    text-align: center;
    color: #ffffff;
}

.page-game-guides__cta-bottom .page-game-guides__section-title {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

.page-game-guides__cta-bottom .page-game-guides__section-description {
    color: #ffffff;
    margin-bottom: 40px;
}

.page-game-guides__cta-bottom .page-game-guides__cta-button {
    background: #ffffff;
    color: var(--primary-color);
    border: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.page-game-guides__cta-bottom .page-game-guides__cta-button:hover {
    background: var(--secondary-color);
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}


/* Responsive Styles */
@media (max-width: 1024px) {
    .page-game-guides__image--left {
        max-width: 100%;
        float: none;
        margin: 40px auto;
    }
    .page-game-guides__responsible-content {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .page-game-guides__hero-section {
        padding-top: 10px !important; /* body already has padding-top */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-game-guides__hero-image img {
        border-radius: 8px;
    }

    .page-game-guides__hero-content h1 {
        font-size: clamp(30px, 8vw, 40px);
        margin-bottom: 15px;
    }

    .page-game-guides__hero-content p {
        font-size: 17px;
        margin-bottom: 25px;
    }

    .page-game-guides__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px; /* Add padding to button container */
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-game-guides__cta-button {
        padding: 12px 30px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-game-guides__section {
        padding: 40px 0;
    }

    .page-game-guides__section-title {
        font-size: clamp(24px, 6vw, 36px);
        margin-bottom: 15px;
    }

    .page-game-guides__section-description {
        font-size: 16px;
        margin-bottom: 30px;
        padding: 0 15px;
    }

    .page-game-guides__game-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-game-guides__card-image {
        height: 180px;
    }

    .page-game-guides__card-title {
        font-size: 20px;
        padding: 15px 15px 5px;
    }

    .page-game-guides__card-text {
        font-size: 15px;
        padding: 0 15px 15px;
    }

    .page-game-guides__card-link {
        margin: 0 15px 15px;
    }

    .page-game-guides__tips-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-game-guides__tip-item {
        padding: 20px;
    }

    .page-game-guides__tip-image {
        height: 180px;
    }

    .page-game-guides__tip-title {
        font-size: 20px;
    }

    .page-game-guides__tip-text {
        font-size: 15px;
    }

    .page-game-guides__responsible-gaming {
        padding: 60px 0;
    }

    .page-game-guides__responsible-list li {
        padding: 15px;
        font-size: 15px;
    }

    details.page-game-guides__faq-item summary.page-game-guides__faq-question {
        padding: 15px 20px;
    }
    .page-game-guides__faq-qtext {
        font-size: 16px;
    }
    .page-game-guides__faq-toggle {
        font-size: 24px;
        margin-left: 15px;
        width: 25px;
    }
    details.page-game-guides__faq-item .page-game-guides__faq-answer {
        padding: 0 20px 20px;
        font-size: 15px;
    }

    .page-game-guides__cta-bottom {
        padding: 60px 0;
    }

    /* Global image responsiveness for content area */
    .page-game-guides img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
        min-width: 200px !important; /* Ensure min size on mobile too */
        min-height: 200px !important;
    }

    .page-game-guides__section,
    .page-game-guides__card,
    .page-game-guides__container,
    .page-game-guides__game-card,
    .page-game-guides__tip-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-game-guides__image--left {
        margin-right: 0;
        float: none;
    }
}

@media (max-width: 480px) {
    .page-game-guides__hero-content h1 {
        font-size: clamp(28px, 9vw, 38px);
    }
    .page-game-guides__hero-content p {
        font-size: 16px;
    }
    .page-game-guides__cta-button {
        font-size: 15px;
        padding: 10px 25px;
    }
    .page-game-guides__section-title {
        font-size: clamp(22px, 7vw, 32px);
    }
    .page-game-guides__section-description {
        font-size: 14px;
    }
    .page-game-guides__card-title {
        font-size: 18px;
    }
    .page-game-guides__card-text, .page-game-guides__tip-text {
        font-size: 14px;
    }
    .page-game-guides__responsible-list li {
        font-size: 14px;
    }
    .page-game-guides__faq-qtext {
        font-size: 15px;
    }
    .page-game-guides__faq-toggle {
        font-size: 22px;
    }
}