/* style/resources.css */
:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-color-light-bg: #333333;
    --text-color-dark-bg: #ffffff;
    --button-register-bg: #C30808;
    --button-login-bg: #C30808;
    --button-register-text: #FFFF00;
    --button-login-text: #FFFF00;
    --section-bg-light: #f9f9f9;
    --section-bg-dark: #017439;
    --card-bg: #ffffff;
    --card-border: #e0e0e0;
}

.page-resources {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color-light-bg);
    padding-top: var(--header-offset, 120px);
}

.page-resources__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #004d2c 100%); /* Slightly darker gradient for depth */
    color: var(--text-color-dark-bg);
    overflow: hidden;
}

.page-resources__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.page-resources__hero-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-resources__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: cover;
    border-radius: 12px;
}

.page-resources__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 800px;
}

.page-resources__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    font-weight: bold;
    color: var(--text-color-dark-bg);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-resources__hero-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}

.page-resources__cta-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.page-resources__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

.page-resources__btn-primary:hover {
    background: #a50707;
    border-color: #a50707;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-resources__btn-secondary {
    background: var(--button-login-bg);
    color: var(--button-login-text);
    border: 2px solid var(--button-login-bg);
}

.page-resources__btn-secondary:hover {
    background: #a50707;
    border-color: #a50707;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-resources__btn-tertiary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 12px 25px;
    font-size: 0.95em;
}

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

.page-resources__section {
    padding: 80px 20px;
    text-align: center;
    transition: background-color 0.3s ease;
}

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

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

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

.page-resources__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    font-weight: bold;
    color: var(--primary-color);
}

.page-resources__section-title--white {
    color: var(--text-color-dark-bg);
}

.page-resources__section-intro {
    font-size: 1.1em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-color-light-bg);
}

.page-resources__section-intro--white {
    color: rgba(255, 255, 255, 0.9);
}

.page-resources__content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
    margin-bottom: 40px;
}

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

.page-resources__image-wrapper {
    flex: 1;
    min-width: 300px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.page-resources__image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
}

.page-resources__text-content {
    flex: 1;
    min-width: 300px;
}

.page-resources__text-content p {
    margin-bottom: 15px;
    color: var(--text-color-light-bg);
}

.page-resources__text-content--white p,
.page-resources__text-content--white li {
    color: var(--text-color-dark-bg);
}

.page-resources__subsection-title {
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
    color: var(--primary-color);
}

.page-resources__subsection-title--white {
    color: var(--text-color-dark-bg);
}

.page-resources__ordered-list,
.page-resources__unordered-list {
    list-style-position: inside;
    margin-left: 20px;
    margin-bottom: 20px;
    color: var(--text-color-light-bg);
}

.page-resources__ordered-list--white,
.page-resources__unordered-list--white {
    color: var(--text-color-dark-bg);
}

.page-resources__ordered-list li,
.page-resources__unordered-list li {
    margin-bottom: 10px;
}

.page-resources__text-link {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-resources__text-link:hover {
    color: #004d2c;
}

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

.page-resources__game-card,
.page-resources__promo-card,
.page-resources__news-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-resources__game-card img,
.page-resources__promo-card img,
.page-resources__news-card img {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    min-width: 200px;
    min-height: 200px;
}

.page-resources__game-card-title,
.page-resources__promo-card-title,
.page-resources__news-card-title {
    font-size: 1.4em;
    font-weight: bold;
    margin: 15px 15px 10px;
    line-height: 1.4;
}

.page-resources__game-card-title a,
.page-resources__promo-card-title a,
.page-resources__news-card-title a {
    color: var(--primary-color);
    text-decoration: none;
}

.page-resources__game-card-title a:hover,
.page-resources__promo-card-title a:hover,
.page-resources__news-card-title a:hover {
    text-decoration: underline;
    color: #004d2c;
}

.page-resources__game-card p,
.page-resources__promo-card p,
.page-resources__news-card p {
    font-size: 0.95em;
    color: var(--text-color-light-bg);
    padding: 0 15px;
    margin-bottom: 15px;
    flex-grow: 1;
}

.page-resources__card-link {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 15px 15px;
    background: var(--primary-color);
    color: var(--text-color-dark-bg);
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-resources__card-link:hover {
    background: #004d2c;
}

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

.page-resources__strategy-item {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

.page-resources__strategy-title a:hover {
    text-decoration: underline;
    color: #004d2c;
}

.page-resources__strategy-item p {
    font-size: 0.95em;
    color: var(--text-color-light-bg);
    margin-bottom: 15px;
}

.page-resources__button-center {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 20px;
}

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

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

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

.page-resources__faq-item.active .page-resources__faq-question {
    border-radius: 8px 8px 0 0;
    border-bottom-color: transparent;
}

.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: 1.15em;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-color-light-bg);
    pointer-events: none;
}

.page-resources__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: var(--primary-color);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

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

.page-resources__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 25px;
    opacity: 0;
    background: #fcfcfc;
    border: 1px solid var(--card-border);
    border-top: none;
    border-radius: 0 0 8px 8px;
    color: var(--text-color-light-bg);
}

.page-resources__faq-item.active .page-resources__faq-answer {
    max-height: 2000px !important;
    padding: 20px 25px !important;
    opacity: 1;
    border-color: #d0d0d0;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-resources__hero-title {
        font-size: 2.8em;
    }
    .page-resources__hero-description {
        font-size: 1.1em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
    .page-resources__subsection-title {
        font-size: 1.5em;
    }
    .page-resources__content-wrapper {
        flex-direction: column;
        text-align: center;
    }
    .page-resources__content-wrapper--reverse {
        flex-direction: column;
    }
    .page-resources__text-content {
        order: 2; /* Ensure text content is below image on mobile for reverse layouts */
    }
    .page-resources__image-wrapper {
        order: 1;
        margin-bottom: 30px;
    }
    .page-resources__game-card img,
    .page-resources__promo-card img,
    .page-resources__news-card img {
        
    }
}

@media (max-width: 768px) {
    .page-resources {
        padding-top: var(--header-offset, 120px) !important;
        font-size: 16px;
        line-height: 1.6;
    }
    .page-resources__hero-section {
        padding: 40px 15px;
    }
    .page-resources__hero-title {
        font-size: 2em;
        margin-bottom: 15px;
    }
    .page-resources__hero-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-resources__cta-group {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    .page-resources__cta-button,
    .page-resources__btn-primary,
    .page-resources__btn-secondary,
    .page-resources a[class*="button"],
    .page-resources a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-resources__section {
        padding: 50px 15px;
    }
    .page-resources__section-title {
        font-size: 1.8em;
    }
    .page-resources__subsection-title {
        font-size: 1.3em;
    }
    .page-resources__image-wrapper img,
    .page-resources img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px;
        min-height: 200px;
    }
    .page-resources__section,
    .page-resources__card,
    .page-resources__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-resources__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-resources__faq-question h3 {
        font-size: 1em;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    .page-resources__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    .page-resources__faq-answer {
        padding: 0 15px;
    }
    .page-resources__faq-item.active .page-resources__faq-answer {
        padding: 15px !important;
    }
}