/* style/resources.css */
:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --register-login-btn-bg: #C30808;
    --register-login-font-color: #FFFF00;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #ffffff;
    --bg-dark: #017439;
}

.page-resources {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

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

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    padding: 100px 0;
    padding-top: var(--header-offset, 120px);
    text-align: center;
    background: var(--bg-dark);
    color: var(--text-light);
}

.page-resources__hero-title {
    font-size: 3em;
    margin-bottom: 20px;
    color: var(--text-light);
}

.page-resources__hero-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

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

.page-resources__btn-primary {
    background-color: var(--register-login-btn-bg);
    color: var(--register-login-font-color);
    border: 2px solid var(--register-login-btn-bg);
}

.page-resources__btn-primary:hover {
    background-color: darken(var(--register-login-btn-bg), 10%);
    border-color: darken(var(--register-login-btn-bg), 10%);
}

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

.page-resources__btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
}

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

.page-resources__btn-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    margin-top: 15px;
    transition: color 0.3s ease;
}

.page-resources__btn-link:hover {
    color: darken(var(--primary-color), 10%);
}

/* Section General */
.page-resources__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-color);
}

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

.page-resources__sub-title {
    font-size: 2em;
    margin-top: 50px;
    margin-bottom: 25px;
    color: var(--primary-color);
}

.page-resources__text-block {
    margin-bottom: 20px;
    font-size: 1.05em;
}

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

.page-resources__dark-section {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.page-resources__dark-section .page-resources__section-title,
.page-resources__dark-section .page-resources__sub-title {
    color: var(--text-light);
}

/* Video Section */
.page-resources__video-section {
    padding: 60px 0;
}

.page-resources__video-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
}

.page-resources__video,
.page-resources__video-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    cursor: pointer;
}

.page-resources__video-link {
    display: block;
}

/* Image Text Blocks */
.page-resources__image-text-block {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
}

.page-resources__image-text-block--reverse {
    flex-direction: row-reverse;
}

.page-resources__image {
    flex: 1;
    min-width: 200px;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: block;
}

.page-resources__text-content {
    flex: 1;
}

.page-resources__text-content p {
    margin-bottom: 20px;
}

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

.page-resources__card {
    background-color: var(--secondary-color);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-dark);
    border: 1px solid #e0e0e0;
    box-sizing: border-box;
}

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

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

.page-resources__card-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-resources__card-description {
    font-size: 0.95em;
    color: #555;
    margin-bottom: 20px;
}

.page-resources__info-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.page-resources__text-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-resources__text-link:hover {
    color: darken(var(--primary-color), 10%);
}

/* FAQ Section */
.page-resources__faq-section {
    padding: 60px 0;
}

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

.page-resources__faq-item {
    background-color: var(--secondary-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    color: var(--text-dark);
    border: 1px solid #e0e0e0;
}

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

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

.page-resources__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    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 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #fcfcfc;
    font-size: 1em;
    color: #555;
}

.page-resources__faq-item.active .page-resources__faq-answer {
    max-height: 1000px !important;
    padding: 15px 25px 25px;
}

/* CTA Banner */
.page-resources__cta-banner {
    text-align: center;
    padding: 80px 20px;
}

.page-resources__cta-title {
    font-size: 2.8em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.page-resources__cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 2.5em;
    }

    .page-resources__section-title {
        font-size: 2em;
    }

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

    .page-resources__image-text-block {
        flex-direction: column;
        text-align: center;
    }

    .page-resources__image-text-block--reverse {
        flex-direction: column;
    }

    .page-resources__image,
    .page-resources__text-content {
        flex: none;
        width: 100%;
    }

    .page-resources__card-image {
        height: 180px;
    }
}

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

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

    .page-resources__hero-title {
        font-size: 2em;
    }

    .page-resources__hero-description {
        font-size: 1em;
    }

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

    .page-resources__btn-primary,
    .page-resources__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 15px;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-resources__btn-primary--large {
        padding: 15px 15px;
        font-size: 1.05em;
    }

    .page-resources__section-title {
        font-size: 1.8em;
    }

    .page-resources__section-description {
        font-size: 0.95em;
    }

    .page-resources__sub-title {
        font-size: 1.5em;
        margin-top: 40px;
    }

    .page-resources__text-block {
        font-size: 0.95em;
    }

    .page-resources__image-text-block {
        gap: 20px;
        margin-bottom: 40px;
    }

    .page-resources__image,
    .page-resources__video,
    .page-resources__video-link,
    .page-resources__card-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-resources__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-resources__game-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-resources__card {
        padding: 20px;
    }

    .page-resources__card-image {
        height: auto;
        min-height: 200px;
    }

    .page-resources__info-links {
        flex-direction: column;
        gap: 10px;
    }

    .page-resources__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }

    .page-resources__faq-answer {
        padding: 0 20px;
    }

    .page-resources__faq-item.active .page-resources__faq-answer {
        padding: 15px 20px 20px;
    }

    .page-resources__cta-title {
        font-size: 2em;
    }

    .page-resources__cta-description {
        font-size: 1em;
    }
    
    /* Ensure all content containers are responsive */
    .page-resources__container,
    .page-resources__content-section,
    .page-resources__video-section,
    .page-resources__faq-section,
    .page-resources__cta-banner {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}