/* style/resources.css */

/* Base Styles */
.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 handled by shared.css */
}

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

.page-resources__dark-bg {
    background-color: #1a1a2e; /* From body background color */
    color: #ffffff;
}

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

.page-resources__main-title {
    font-size: 3.2em;
    font-weight: bold;
    color: #26A9E0;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-resources__section-title {
    font-size: 2.5em;
    font-weight: bold;
    color: #26A9E0;
    text-align: center;
    margin: 60px 0 30px;
    line-height: 1.3;
}

.page-resources__sub-title {
    font-size: 1.8em;
    font-weight: bold;
    color: #26A9E0;
    margin: 30px 0 15px;
}

.page-resources__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    line-height: 1.7;
}

.page-resources__paragraph--centered {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources__paragraph a {
    color: #26A9E0;
    text-decoration: none;
    font-weight: bold;
}

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

.page-resources__list {
    list-style: disc inside;
    margin-bottom: 20px;
    padding-left: 20px;
}

.page-resources__list-item {
    margin-bottom: 10px;
    font-size: 1.1em;
}

/* Hero Section */
.page-resources__hero-section {
    padding: 100px 20px 60px; /* Adjusted padding-top for header offset if shared.css doesn't apply to body */
    text-align: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--header-offset, 120px);
}

.page-resources__intro-text {
    font-size: 1.3em;
    color: #ffffff;
    max-width: 900px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

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

.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;
}

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

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

.page-resources__btn-secondary {
    background-color: #ffffff;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-resources__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #1e87c0;
    border-color: #1e87c0;
}

.page-resources__btn-primary--large {
    padding: 18px 40px;
    font-size: 1.3em;
}

/* Content Section */
.page-resources__content-section,
.page-resources__guide-section,
.page-resources__app-section,
.page-resources__games-section,
.page-resources__promotions-section,
.page-resources__support-section,
.page-resources__final-cta-section {
    padding: 60px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-resources__content-section:last-of-type,
.page-resources__final-cta-section:last-of-type {
    border-bottom: none;
}

.page-resources__image {
    display: block;
    margin: 40px auto;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-resources__grid-3-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources__grid-2-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
    align-items: center;
}

.page-resources__card {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

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

.page-resources__card-text {
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-resources__card-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 20px;
}

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

.page-resources__game-card {
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease;
}

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

.page-resources__game-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}

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

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

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

.page-resources__game-description {
    font-size: 0.95em;
    line-height: 1.5;
}

.page-resources__promo-card {
    background-color: rgba(255, 255, 255, 0.95);
    color: #333333;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.page-resources__promo-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px auto;
}

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

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

.page-resources__contact-info {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-resources__contact-info .page-resources__list {
    list-style: none;
    padding-left: 0;
}

.page-resources__contact-info .page-resources__list-item {
    margin-bottom: 15px;
    font-size: 1.1em;
}

.page-resources__contact-info .page-resources__list-item a {
    color: #26A9E0;
    text-decoration: none;
}

.page-resources__contact-info .page-resources__list-item a:hover {
    text-decoration: underline;
}

/* FAQ Section */
.page-resources__faq {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-resources__faq-item {
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 15px;
}

.page-resources__faq-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2em;
    font-weight: bold;
    color: #ffffff;
    cursor: pointer;
    padding: 10px 0;
    transition: color 0.3s ease;
}

.page-resources__faq-question:hover {
    color: #26A9E0;
}

.page-resources__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
    transform: rotate(45deg);
}

.page-resources__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 15px;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-resources__faq-item.active .page-resources__faq-answer {
    max-height: 1000px !important; /* Ensure it expands sufficiently */
    padding: 15px 15px 0;
}

.page-resources__faq-answer p {
    margin-top: 10px;
    font-size: 1em;
    line-height: 1.6;
    color: #f0f0f0;
}

.page-resources__faq-answer a {
    color: #26A9E0;
    text-decoration: none;
    font-weight: bold;
}

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

/* Images responsiveness */
.page-resources img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .page-resources {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-resources__hero-section {
        padding: 80px 20px 40px;
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-resources__main-title {
        font-size: 2.2em;
    }

    .page-resources__intro-text {
        font-size: 1.1em;
    }

    .page-resources__section-title {
        font-size: 1.8em;
        margin: 40px 0 20px;
    }

    .page-resources__sub-title {
        font-size: 1.5em;
    }

    .page-resources__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-resources__btn-primary,
    .page-resources__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }

    .page-resources__grid-3-columns,
    .page-resources__grid-2-columns,
    .page-resources__game-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-resources__card,
    .page-resources__game-card,
    .page-resources__promo-card,
    .page-resources__contact-info,
    .page-resources__faq {
        padding: 20px;
    }

    /* Ensure all images are responsive and do not overflow */
    .page-resources img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-resources__section,
    .page-resources__card,
    .page-resources__container,
    .page-resources__image-wrapper,
    .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;
        overflow: hidden !important;
    }
    
    .page-resources__faq-answer {
        padding-left: 5px;
        padding-right: 5px;
    }
}