/* style/resources.css */

/* Custom properties for colors */
:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --login-color: #EA7C07;
    --text-dark: #333333;
    --text-light: #FFFFFF;
    --bg-light: #F8F8F8; /* A light grey for sections, ensuring contrast */
    --border-color: #e0e0e0;
}

/* Base styles for the page content */
.page-resources {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark); /* Default text color for light body background */
    background: var(--secondary-color); /* Default white background */
}

/* Container for content sections */
.page-resources__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px; /* Added padding for smaller screens */
    box-sizing: border-box; /* Ensure padding is included in width */
}

/* Section styling */
.page-resources__section {
    padding: 60px 0;
    border-bottom: 1px solid var(--border-color);
}

.page-resources__section:last-of-type {
    border-bottom: none;
}

.page-resources__section--intro,
.page-resources__section--guide,
.page-resources__section--responsibility {
    background: var(--secondary-color); /* White background */
}

.page-resources__section--games,
.page-resources__section--advantages,
.page-resources__section--faq {
    background: var(--bg-light); /* Light grey background for alternating sections */
}

/* Headings */
.page-resources__heading {
    font-size: 36px;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-resources__sub-heading {
    font-size: 24px;
    color: var(--text-dark);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

/* Paragraphs */
.page-resources__paragraph {
    margin-bottom: 15px;
    font-size: 17px;
}

/* Keywords highlighting */
.page-resources__keyword {
    color: var(--primary-color);
    font-weight: bold;
}

/* CTA Buttons */
.page-resources__cta-button,
.page-resources__btn-primary,
.page-resources__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    margin-right: 15px; /* For multiple buttons */
    box-sizing: border-box; /* Ensure padding is included in width */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-resources__cta-button:last-child,
.page-resources__btn-primary:last-child,
.page-resources__btn-secondary:last-child {
    margin-right: 0;
}

.page-resources__btn-primary {
    background: var(--primary-color);
    color: var(--text-light);
    border: 2px solid var(--primary-color);
}

.page-resources__btn-primary:hover {
    background: #1f8ec4; /* Slightly darker primary color */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.page-resources__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Hero Banner Section */
.page-resources__hero-banner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    padding-bottom: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #aedfe9 100%); /* Lighter gradient */
    color: var(--text-light); /* Light text for dark background */
}

.page-resources__hero-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-resources__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 15px;
}

.page-resources__hero-title {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-resources__hero-description {
    font-size: 20px;
    margin-bottom: 30px;
    color: var(--text-light);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

/* Image styling within content */
.page-resources__content-image {
    width: 100%;
    height: auto;
    max-width: 800px; /* Constrain max width for content images */
    display: block;
    margin: 40px auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

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

.page-resources__game-card {
    background: var(--secondary-color);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-resources__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

.page-resources__card-title {
    font-size: 20px;
    font-weight: bold;
    margin: 20px 20px 10px;
    color: var(--primary-color);
}

.page-resources__card-title a {
    color: var(--primary-color);
    text-decoration: none;
}

.page-resources__card-title a:hover {
    text-decoration: underline;
}

.page-resources__card-description {
    font-size: 15px;
    padding: 0 20px;
    margin-bottom: 15px;
    flex-grow: 1; /* Make description take available space */
}

.page-resources__game-card .page-resources__btn-secondary {
    margin: 0 20px 20px;
    align-self: flex-start; /* Align button to start */
    padding: 10px 20px;
    font-size: 16px;
}

/* Feature List Section */
.page-resources__feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources__feature-item {
    background: var(--secondary-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
}

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

.page-resources__feature-description {
    font-size: 16px;
    flex-grow: 1;
}

/* Guide Steps Section */
.page-resources__guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources__step-item {
    background: var(--secondary-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
}

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

.page-resources__step-description {
    font-size: 16px;
    flex-grow: 1;
    margin-bottom: 20px;
}

.page-resources__step-item .page-resources__btn-primary,
.page-resources__step-item .page-resources__btn-secondary {
    margin-right: 10px;
    margin-top: 10px;
    align-self: flex-start;
    white-space: nowrap; /* Keep buttons from wrapping text if possible, but allow full button to wrap */
}

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

.page-resources__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    background: var(--secondary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-resources__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-resources__faq-question:active {
    background: #eeeeee;
}

.page-resources__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px; /* Increased font size for better readability */
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-dark);
    pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-resources__faq-toggle {
    font-size: 28px; /* Increased size for better visibility */
    font-weight: bold;
    line-height: 1;
    color: var(--primary-color); /* Use primary color for toggle */
    transition: transform 0.3s ease, color 0.3s 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: 32px; /* Increased size */
    height: 32px; /* Increased size */
}

.page-resources__faq-item.active .page-resources__faq-toggle {
    color: var(--primary-color);
    transform: rotate(45deg); /* Rotate for 'x' effect, or just change text to '−' */
}