:root {
    --primary-color: #0A2239; /* Deep Blue */
    --secondary-color: #FFD700; /* Gold */
    --text-light: #ffffff;
    --text-dark: #333333;
    --background-dark: #000; /* From shared.css body */
    --background-light: #f8f9fa;
    --border-color: #e0e0e0;
    --transition-speed: 0.3s;
}

/* Global page styles within main content */
.page-resources-gaming-guide {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-light); /* Default text color for dark body background */
    background-color: var(--background-dark); /* Ensure consistency with body background */
}

/* Container for consistent content width */
.page-resources-gaming-guide__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Section styling */
.page-resources-gaming-guide__hero-section,
.page-resources-gaming-guide__introduction-section,
.page-resources-gaming-guide__general-tips-section,
.page-resources-gaming-guide__game-specific-tips,
.page-resources-gaming-guide__advanced-strategies,
.page-resources-gaming-guide__responsible-gaming,
.page-resources-gaming-guide__faq-section,
.page-resources-gaming-guide__cta-section {
    padding: 80px 0;
    text-align: center;
    position: relative;
}

/* Background color variants */
.page-resources-gaming-guide__dark-bg {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-resources-gaming-guide__light-bg {
    background-color: var(--background-light);
    color: var(--text-dark);
}

/* Hero Section */
.page-resources-gaming-guide__hero-section {
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    overflow: hidden; /* Ensure image doesn't overflow */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-bottom: 40px; /* Adjust padding if image covers bottom */
}

.page-resources-gaming-guide__hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Dark overlay for text readability */
    z-index: 1;
}

.page-resources-gaming-guide__hero-section .page-resources-gaming-guide__container {
    position: relative;
    z-index: 2;
}

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

.page-resources-gaming-guide__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: var(--secondary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
}

.page-resources-gaming-guide__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: var(--text-light);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

/* CTA Buttons */
.page-resources-gaming-guide__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-resources-gaming-guide__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: none;
    cursor: pointer;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%;
}

.page-resources-gaming-guide__btn-primary {
    background: var(--secondary-color);
    color: var(--primary-color);
}

.page-resources-gaming-guide__btn-primary:hover {
    background: #e6c200; /* Slightly darker gold */
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-resources-gaming-guide__btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.page-resources-gaming-guide__btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Section Titles */
.page-resources-gaming-guide__section-title {
    font-size: 2.5em;
    margin-bottom: 40px;
    font-weight: bold;
    color: inherit; /* Inherit color from parent section */
}

/* Text blocks */
.page-resources-gaming-guide__text-block {
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Feature Grid */
.page-resources-gaming-guide__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources-gaming-guide__feature-item {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    color: var(--text-dark);
}

.page-resources-gaming-guide__feature-icon {
    width: 100%;
    max-width: 250px; /* Ensure image is not too small but not too large */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Min size constraint */
    min-height: 200px; /* Min size constraint */
}

.page-resources-gaming-guide__feature-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-resources-gaming-guide__feature-description {
    font-size: 1em;
    color: var(--text-dark);
}

/* List styles */
.page-resources-gaming-guide__list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.page-resources-gaming-guide__list-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-left: 5px solid var(--secondary-color);
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-resources-gaming-guide__list-item h3 {
    color: var(--secondary-color);
    font-size: 1.4em;
    margin-top: 0;
    margin-bottom: 10px;
}

.page-resources-gaming-guide__list-item p {
    color: var(--text-light);
    font-size: 1.05em;
}

.page-resources-gaming-guide__list--responsible .page-resources-gaming-guide__list-item {
    background-color: rgba(0, 0, 0, 0.05); /* Lighter background for light section */
    color: var(--text-dark);
}
.page-resources-gaming-guide__list--responsible .page-resources-gaming-guide__list-item h3 {
    color: var(--primary-color);
}
.page-resources-gaming-guide__list--responsible .page-resources-gaming-guide__list-item p {
    color: var(--text-dark);
}

/* Game Cards Grid */
.page-resources-gaming-guide__game-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources-gaming-guide__game-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: left;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
}

.page-resources-gaming-guide__game-card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    min-width: 200px; /* Min size constraint */
    min-height: 200px; /* Min size constraint */
}

.page-resources-gaming-guide__game-card-title {
    font-size: 1.4em;
    margin: 20px 20px 10px;
    color: var(--primary-color);
}

.page-resources-gaming-guide__game-card-title a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color var(--transition-speed) ease;
}

.page-resources-gaming-guide__game-card-title a:hover {
    color: var(--secondary-color);
}

.page-resources-gaming-guide__game-card-description {
    font-size: 0.95em;
    margin: 0 20px 20px;
    flex-grow: 1; /* Make description take available space */
}

.page-resources-gaming-guide__btn-text-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    margin: 0 20px 20px;
    transition: color var(--transition-speed) ease;
}

.page-resources-gaming-guide__btn-text-link:hover {
    color: var(--secondary-color);
}

.page-resources-gaming-guide__arrow {
    margin-left: 8px;
    font-size: 1.2em;
    transition: transform var(--transition-speed) ease;
}

.page-resources-gaming-guide__btn-text-link:hover .page-resources-gaming-guide__arrow {
    transform: translateX(5px);
}

/* Advanced Strategies Grid */
.page-resources-gaming-guide__strategy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources-gaming-guide__strategy-item {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    color: var(--text-light);
}

.page-resources-gaming-guide__strategy-icon {
    width: 100%;
    max-width: 250px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Min size constraint */
    min-height: 200px; /* Min size constraint */
}

.page-resources-gaming-guide__strategy-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.page-resources-gaming-guide__strategy-description {
    font-size: 1em;
    color: var(--text-light);
}

/* FAQ Section */
.page-resources-gaming-guide__faq-section {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-resources-gaming-guide__faq-list {
    max-width: 900px;
    margin: 40px auto 0;
    text-align: left;
}

/* FAQ item styling */
.page-resources-gaming-guide__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for FAQ item */
}

/* FAQ default state - answer hidden */
.page-resources-gaming-guide__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 20px;
    opacity: 0;
    color: var(--text-light);
}

/* FAQ expanded state - ⚠️ Use!important and sufficiently large max-height */
.page-resources-gaming-guide__faq-item.active .page-resources-gaming-guide__faq-answer {
    max-height: 2000px !important; /* ⚠️ Use!important to ensure priority, value large enough for content */
    padding: 20px !important;
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0 0 5px 5px;
}

/* Question style */
.page-resources-gaming-guide__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color var(--transition-speed) ease, border-color var(--transition-speed) ease;
    position: relative;
    color: var(--text-light);
}

.page-resources-gaming-guide__faq-question:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.page-resources-gaming-guide__faq-question:active {
    background: rgba(255, 255, 255, 0.2);
}

/* Question title style */
.page-resources-gaming-guide__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 1.1em;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none; /* Prevent h3 tag from blocking click event */
    color: var(--text-light);
}

/* Toggle icon */
.page-resources-gaming-guide__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: var(--secondary-color);
    transition: transform var(--transition-speed) ease, color var(--transition-speed) ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none; /* Prevent icon from blocking click event */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-resources-gaming-guide__faq-item.active .page-resources-gaming-guide__faq-toggle {
    color: var(--secondary-color);
    transform: rotate(45deg); /* Rotate to form an 'X' or simply change to '-' in JS */
}

/* Call to Action Section */
.page-resources-gaming-guide__cta-section {
    background-color: var(--background-light);
    color: var(--text-dark);
}

/* Images: Global styles for content images */
.page-resources-gaming-guide img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Default for most content images */
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-resources-gaming-guide__main-title {
        font-size: 2.8em;
    }
    .page-resources-gaming-guide__hero-description {
        font-size: 1.2em;
    }
    .page-resources-gaming-guide__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-resources-gaming-guide__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 20px;
    }
    .page-resources-gaming-guide__main-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }
    .page-resources-gaming-guide__hero-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-resources-gaming-guide__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    .page-resources-gaming-guide__cta-button {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }

    .page-resources-gaming-guide__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-resources-gaming-guide__text-block {
        font-size: 1em;
    }
    .page-resources-gaming-guide__container {
        padding: 0 15px;
    }
    .page-resources-gaming-guide__features-grid,
    .page-resources-gaming-guide__game-cards-grid,
    .page-resources-gaming-guide__strategy-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-resources-gaming-guide__feature-item,
    .page-resources-gaming-guide__game-card,
    .page-resources-gaming-guide__strategy-item {
        padding: 20px;
    }
    .page-resources-gaming-guide__list-item {
        padding: 20px;
    }
    .page-resources-gaming-guide__list-item h3 {
        font-size: 1.2em;
    }
    .page-resources-gaming-guide__game-card-image {
        height: 180px;
    }
    .page-resources-gaming-guide__game-card-title {
        font-size: 1.2em;
        margin: 15px 15px 8px;
    }
    .page-resources-gaming-guide__game-card-description {
        margin: 0 15px 15px;
    }
    .page-resources-gaming-guide__btn-text-link {
        margin: 0 15px 15px;
    }

    /* FAQ mobile */
    .page-resources-gaming-guide__faq-question {
        padding: 15px;
    }
    .page-resources-gaming-guide__faq-question h3 {
        font-size: 1em;
    }
    .page-resources-gaming-guide__faq-toggle {
        font-size: 20px;
        width: 24px;
        height: 24px;
    }
    .page-resources-gaming-guide__faq-item.active .page-resources-gaming-guide__faq-answer {
        padding: 15px !important;
    }

    /* Ensure all images and containers do not overflow */
    .page-resources-gaming-guide img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-resources-gaming-guide__section,
    .page-resources-gaming-guide__card,
    .page-resources-gaming-guide__container,
    .page-resources-gaming-guide__features-grid,
    .page-resources-gaming-guide__game-cards-grid,
    .page-resources-gaming-guide__strategy-grid,
    .page-resources-gaming-guide__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
        overflow: hidden !important;
    }
    .page-resources-gaming-guide__hero-section .page-resources-gaming-guide__container {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-resources-gaming-guide__hero-image {
      min-width: unset; /* Allow it to scale down further if needed */
      min-height: unset;
    }
    .page-resources-gaming-guide__feature-icon,
    .page-resources-gaming-guide__game-card-image,
    .page-resources-gaming-guide__strategy-icon {
      min-width: 200px !important; /* Enforce min 200px for content images */
      min-height: 200px !important;
      width: 100% !important;
      height: auto !important;
    }
}

/* Content area images min size */
.page-resources-gaming-guide__feature-icon,
.page-resources-gaming-guide__game-card-image,
.page-resources-gaming-guide__strategy-icon {
    min-width: 200px;
    min-height: 200px;
}