/* style/resources.css */

/* General styles for the page-resources scope */
.page-resources {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
}

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

.page-resources__section {
    padding: 60px 0;
    text-align: center;
}

.page-resources__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #26A9E0; /* Brand primary color for titles */
    font-weight: bold;
}

.page-resources__section-description {
    font-size: 1.1em;
    margin-bottom: 40px;
    color: #f0f0f0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    overflow: hidden;
    background-color: #0a0a0a; /* Ensure dark background for hero */
    color: #ffffff;
    text-align: center;
}

.page-resources__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.page-resources__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Subtle overlay for text readability */
}

.page-resources__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    border-radius: 10px;
}

.page-resources__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #ffffff;
    line-height: 1.2;
    font-weight: bold;
}

.page-resources__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-resources__hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

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

.page-resources__btn-primary {
    background-color: #26A9E0; /* Primary brand color */
    color: #ffffff;
    border: 2px solid #26A9E0;
}

.page-resources__btn-primary:hover {
    background-color: #1a7fb3;
    border-color: #1a7fb3;
}

.page-resources__btn-secondary {
    background-color: transparent;
    color: #26A9E0; /* Primary brand color for text */
    border: 2px solid #26A9E0;
}

.page-resources__btn-secondary:hover {
    background-color: #26A9E0;
    color: #ffffff;
}

/* Section Backgrounds */
.page-resources__dark-bg {
    background-color: #0a0a0a;
    color: #ffffff;
}

.page-resources__light-bg {
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.page-resources__dark-bg .page-resources__section-title {
    color: #26A9E0;
}

.page-resources__dark-bg .page-resources__section-description {
    color: #f0f0f0;
}

.page-resources__light-bg .page-resources__section-title {
    color: #ffffff;
}

.page-resources__light-bg .page-resources__section-description {
    color: #f0f0f0;
}


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

.page-resources__advantage-card {
    padding: 30px;
    border-radius: 10px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; /* Ensure cards have equal height */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.page-resources__advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.page-resources__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block; /* Ensure no extra space below image */
}

.page-resources__card-title {
    font-size: 1.5em;
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-resources__card-text {
    font-size: 1em;
    color: #f0f0f0;
    flex-grow: 1; /* Allow text to grow and push other elements down */
}

/* Registration Guide 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 {
    padding: 30px;
    border-radius: 10px;
    text-align: left;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.page-resources__step-image {
    width: 100%;
    height: 250px; /* Consistent image height */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-resources__step-title {
    font-size: 1.4em;
    color: #26A9E0;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-resources__step-text {
    font-size: 1em;
    color: #f0f0f0;
    flex-grow: 1;
}

.page-resources__button-group {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

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

.page-resources__promotion-card {
    padding: 30px;
    border-radius: 10px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.page-resources__promotion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.page-resources__promotion-card .page-resources__card-image {
    height: 200px; /* Consistent image height */
}

.page-resources__promotion-card .page-resources__card-title {
    color: #26A9E0;
}

.page-resources__promotion-card .page-resources__card-text {
    color: #f0f0f0;
    flex-grow: 1;
    margin-bottom: 20px; /* Space before button */
}

.page-resources__promotion-card .page-resources__btn-primary,
.page-resources__promotion-card .page-resources__btn-secondary {
    margin-top: auto; /* Push button to bottom */
    width: 100%;
    text-align: center;
}

.page-resources__note-text {
    margin-top: 40px;
    font-style: italic;
    color: #cccccc;
    font-size: 0.95em;
}

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

.page-resources__game-card {
    padding: 30px;
    border-radius: 10px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.page-resources__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.page-resources__game-card .page-resources__card-image {
    height: 200px;
}

.page-resources__game-card .page-resources__card-title {
    color: #26A9E0;
}

.page-resources__game-card .page-resources__card-title a {
    color: #26A9E0;
    text-decoration: none;
}

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

.page-resources__game-card .page-resources__card-text {
    color: #f0f0f0;
    flex-grow: 1;
}

/* FAQ Section */
.page-resources__faq-list {
    max-width: 800px;
    margin: 40px auto 0 auto;
    text-align: left;
}

.page-resources__faq-item {
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-resources__faq-question {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: #ffffff; /* Question text color */
    background-color: #26A9E0; /* Brand primary color for question background */
    border-radius: 10px;
    list-style: none; /* Hide default marker for details/summary */
}

.page-resources__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-resources__faq-qtext {
    flex-grow: 1;
}

.page-resources__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
}

.page-resources__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    color: #f0f0f0;
    background-color: rgba(255, 255, 255, 0.05); /* Lighter background for answer */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.page-resources__faq-answer p {
    margin: 0;
}

/* CTA Section */
.page-resources__cta {
    background-color: #26A9E0; /* Primary brand color for CTA background */
    color: #ffffff;
    padding: 80px 0;
}

.page-resources__cta-content {
    max-width: 900px;
    margin: 0 auto;
}

.page-resources__cta-title {
    font-size: 2.8em;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-resources__cta-description {
    font-size: 1.2em;
    color: #f0f0f0;
    margin-bottom: 40px;
}

.page-resources__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-resources__cta-buttons .page-resources__btn-primary {
    background-color: #EA7C07; /* Login color for primary CTA */
    border-color: #EA7C07;
}

.page-resources__cta-buttons .page-resources__btn-primary:hover {
    background-color: #d16e06;
    border-color: #d16e06;
}