/* style/resources.css */

/* Base styles for the page content */
.page-resources {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #FFFFFF; /* Explicitly set for contrast rules */
}

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

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    padding: 80px 0;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    min-height: 600px;
    background-color: #26A9E0; /* Brand primary color for dark background */
    color: #FFFFFF; /* White text for dark background */
}

.page-resources__hero-section .page-resources__container {
    position: relative;
    z-index: 2;
}

.page-resources__main-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #FFFFFF;
}

.page-resources__intro-text {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #FFFFFF;
}

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

.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;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-resources__btn-primary {
    background-color: #EA7C07; /* Login color for primary action */
    color: #FFFFFF;
    border: 2px solid transparent;
}

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

.page-resources__btn-secondary {
    background-color: transparent;
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
}

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

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

.page-resources__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Subtle background */
    display: block;
}

/* General Section Styling */
.page-resources__about-section,
.page-resources__game-guides-section,
.page-resources__download-section,
.page-resources__security-section,
.page-resources__promotions-section,
.page-resources__faq-section,
.page-resources__contact-section {
    padding: 60px 0;
}

.page-resources__light-bg {
    background-color: #FFFFFF;
    color: #333333;
}

.page-resources__dark-bg {
    background-color: #26A9E0;
    color: #FFFFFF;
}

.page-resources__dark-bg .page-resources__section-title,
.page-resources__dark-bg .page-resources__section-description,
.page-resources__dark-bg .page-resources__card-title a,
.page-resources__dark-bg .page-resources__card-text,
.page-resources__dark-bg .page-resources__faq-qtext {
    color: #FFFFFF;
}

.page-resources__dark-bg .page-resources__card-button {
    color: #FFFFFF;
    border-color: #FFFFFF;
}

.page-resources__dark-bg .page-resources__card-button:hover {
    background-color: #FFFFFF;
    color: #26A9E0;
}

.page-resources__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    color: #26A9E0; /* Primary color for titles on light background */
}

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

/* Content Wrapper with Image */
.page-resources__content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.page-resources__content-wrapper--reverse {
    flex-direction: row-reverse;
}

.page-resources__image-left,
.page-resources__image-right {
    flex: 1;
    max-width: 50%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    display: block;
}

.page-resources__text-content {
    flex: 1;
    max-width: 50%;
}

.page-resources__text-content p {
    margin-bottom: 15px;
    font-size: 1.05em;
}

.page-resources__btn-small {
    padding: 10px 20px;
    font-size: 1em;
    margin-top: 20px;
}

/* Grid Layouts */
.page-resources__guide-grid,
.page-resources__promo-grid,
.page-resources__contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources__card {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 450px; /* Ensure cards have similar height */
}

.page-resources__card:hover {
    transform: translateY(-5px);
}

.page-resources__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-resources__card-icon {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin: 0 auto 20px auto;
    display: block;
}

.page-resources__card-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-resources__card-title a {
    text-decoration: none;
    color: #26A9E0; /* Primary color for card titles */
}

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

.page-resources__dark-bg .page-resources__card {
    background-color: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
}

.page-resources__dark-bg .page-resources__card-title a {
    color: #FFFFFF;
}

.page-resources__card-text {
    font-size: 0.95em;
    color: #555555;
    flex-grow: 1;
    margin-bottom: 20px;
}

.page-resources__dark-bg .page-resources__card-text {
    color: #E0E0E0;
}

.page-resources__card-button {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em;
    transition: background-color 0.3s ease, color 0.3s ease;
    background-color: #26A9E0; /* Primary color for card buttons */
    color: #FFFFFF;
}

.page-resources__card-button:hover {
    background-color: #1e87b7;
}

/* Download Steps */
.page-resources__download-steps {
    display: flex;
    justify-content: space-around;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-resources__step-item {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    background-color: #F8F8F8;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-resources__step-icon {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

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

.page-resources__step-text {
    font-size: 0.95em;
    color: #555555;
}

.page-resources__step-text a {
    color: #26A9E0;
    text-decoration: none;
}

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

/* Full width CTA */
.page-resources__cta-full-width {
    text-align: center;
    margin-top: 50px;
}

/* FAQ Section */
.page-resources__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources__faq-item {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #FFFFFF; /* Text color for dark background */
}

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15em;
    font-weight: bold;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

.page-resources__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.page-resources__faq-qtext {
    color: #FFFFFF;
}

.page-resources__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #FFFFFF;
}

.page-resources__faq-item[open] .page-resources__faq-toggle {
    content: "−";
}

.page-resources__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: #E0E0E0; /* Lighter text for answer on dark background */
}

.page-resources__faq-answer p {
    margin-bottom: 10px;
}

/* Contact Section specific styling */
.page-resources__card--contact .page-resources__card-title {
    color: #26A9E0;
}

.page-resources__card--contact .page-resources__card-button {
    background-color: #26A9E0;
    color: #FFFFFF;
}
.page-resources__card--contact .page-resources__card-button:hover {
    background-color: #1e87b7;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources__main-title {
        font-size: 3em;
    }
    .page-resources__intro-text {
        font-size: 1.2em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
    .page-resources__content-wrapper {
        flex-direction: column;
        gap: 30px;
    }
    .page-resources__image-left,
    .page-resources__image-right,
    .page-resources__text-content {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .page-resources__hero-section {
        padding: 60px 0;
        min-height: 400px;
    }
    .page-resources__hero-section .page-resources__container {
        padding: 0 15px;
    }
    .page-resources__main-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }
    .page-resources__intro-text {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-resources__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-resources__btn-primary,
    .page-resources__btn-secondary {
        width: 100%;
        padding: 12px 20px;
        font-size: 1em;
    }

    .page-resources__about-section,
    .page-resources__game-guides-section,
    .page-resources__download-section,
    .page-resources__security-section,
    .page-resources__promotions-section,
    .page-resources__faq-section,
    .page-resources__contact-section {
        padding: 40px 0;
    }
    .page-resources__section-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }
    .page-resources__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    /* Images responsiveness */
    .page-resources img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        object-fit: cover !important; /* Ensure images fill space without distortion */
    }
    
    /* Image containers responsiveness */
    .page-resources__content-wrapper,
    .page-resources__guide-grid,
    .page-resources__promo-grid,
    .page-resources__contact-methods,
    .page-resources__download-steps {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    /* Card specific adjustments */
    .page-resources__card {
        min-height: auto; /* Allow height to adjust */
        padding: 20px;
    }
    .page-resources__card-image {
        height: 180px;
    }
    .page-resources__card-title {
        font-size: 1.3em;
    }
    .page-resources__card-text {
        font-size: 0.9em;
    }

    /* Step icons adjustment */
    .page-resources__step-item {
        max-width: 100%;
        flex-basis: 100%;
    }
    .page-resources__step-icon {
        width: 100px;
        height: 100px;
    }

    /* FAQ adjustments */
    .page-resources__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-resources__faq-answer {
        padding: 0 20px 15px;
        font-size: 0.9em;
    }

    /* Video section padding for mobile (even if no video, for robustness) */
    .page-resources__video-section {
      padding-top: var(--header-offset, 120px) !important;
    }

    /* Ensure all containers containing buttons/images are properly constrained */
    .page-resources__section,
    .page-resources__card,
    .page-resources__container,
    .page-resources__cta-buttons,
    .page-resources__button-group,
    .page-resources__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-resources__cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
}