/* style/resources.css */
:root {
    --primary-color: #FFD700;
    --secondary-color: #1A1A1A;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light-grey: #f1f3f5;
    --border-grey: #e0e0e0;
}

.page-resources {
    font-family: 'Arial', sans-serif;
    color: var(--text-light); /* Default text color for body background */
    background-color: var(--secondary-color); /* Body background is dark */
    line-height: 1.6;
    padding-top: 120px; /* Adjust for fixed header */
}

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

.page-resources__hero-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, #FFC107 100%); /* Bright gold gradient */
    padding: 80px 0;
    text-align: center;
    color: var(--text-dark);
    padding-top: 180px; /* Desktop: Adjust for fixed header */
}

.page-resources__hero-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-resources__hero-title {
    font-size: 3.2em;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--secondary-color);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

.page-resources__hero-subtitle {
    font-size: 1.4em;
    margin-bottom: 40px;
    color: var(--secondary-color);
}

.page-resources__hero-cta {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 18px 45px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.page-resources__hero-cta:hover {
    background-color: #000000;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.3);
}

.page-resources__section-title {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    padding-top: 40px;
}

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

.page-resources__intro-section, .page-resources__guides-section, .page-resources__games-section, .page-resources__promotions-section, .page-resources__news-section, .page-resources__faq-section {
    padding: 60px 0;
}

.page-resources__card {
    background-color: var(--text-light);
    color: var(--text-dark);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 30px;
    margin-bottom: 30px;
}

.page-resources__card p {
    margin-bottom: 15px;
}

.page-resources__image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-resources__image--large {
    max-height: 400px;
    object-fit: cover;
    width: 100%;
}

.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: #FFC107;
    text-decoration: underline;
}

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

.page-resources__card-title {
    font-size: 1.6em;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.page-resources__card-title a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources__card-title a:hover {
    color: var(--primary-color);
}

.page-resources__btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-top: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.page-resources__btn-primary:hover {
    background-color: #FFC107;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

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

.page-resources__game-card, .page-resources__promo-card, .page-resources__news-card {
    background-color: var(--text-light);
    color: var(--text-dark);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease;
}

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

.page-resources__game-img, .page-resources__promo-img, .page-resources__news-img {
    max-width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-resources__game-title, .page-resources__promo-title, .page-resources__news-title {
    font-size: 1.4em;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.page-resources__game-title a, .page-resources__promo-title a, .page-resources__news-title a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources__game-title a:hover, .page-resources__promo-title a:hover, .page-resources__news-title a:hover {
    color: var(--primary-color);
}

.page-resources__btn-secondary, .page-resources__btn-promo, .page-resources__btn-link {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.page-resources__btn-secondary:hover, .page-resources__btn-promo:hover, .page-resources__btn-link:hover {
    background-color: #000000;
    color: var(--primary-color);
    transform: translateY(-2px);
}

.page-resources__btn-link {
    background: none;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

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

.page-resources__promo-cta-text {
    text-align: center;
    margin-top: 40px;
    font-size: 1.1em;
    color: var(--text-light);
}

.page-resources__news-excerpt {
    font-size: 0.95em;
    color: #666666;
    margin-bottom: 15px;
}

.page-resources__view-all-news {
    text-align: center;
    margin-top: 40px;
}

/* FAQ Section */
.page-resources__faq-section {
    background-color: var(--bg-light-grey);
    padding: 60px 0;
    color: var(--text-dark);
}

.page-resources__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

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

.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 15px;
    opacity: 0;
}

.page-resources__faq-item.active .page-resources__faq-answer {
    max-height: 2000px !important;
    padding: 20px 15px !important;
    opacity: 1;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
}

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

.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: 16px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: var(--text-dark);
}

.page-resources__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #666;
    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: 28px;
    height: 28px;
}

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

.page-resources__faq-answer p {
    color: var(--text-dark);
    margin-bottom: 0;
}

.page-resources__cta-section {
    background: linear-gradient(90deg, var(--secondary-color) 0%, #333333 100%);
    padding: 80px 0;
    text-align: center;
    color: var(--text-light);
}

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

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

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

.page-resources__cta-button--large {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 20px 50px;
    border-radius: 50px;
    font-size: 1.3em;
    font-weight: bold;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.page-resources__cta-button--large:hover {
    background-color: #FFC107;
    transform: translateY(-4px);
    box-shadow: 0 15px 25px rgba(0,0,0,0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 2.8em;
    }
    .page-resources__hero-subtitle {
        font-size: 1.2em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
    .page-resources__sub-section-title {
        font-size: 1.6em;
    }
    .page-resources__card-title {
        font-size: 1.4em;
    }
    .page-resources__game-title, .page-resources__promo-title, .page-resources__news-title {
        font-size: 1.2em;
    }
    .page-resources__cta-title {
        font-size: 2.2em;
    }
    .page-resources__cta-text {
        font-size: 1.1em;
    }
}

@media (max-width: 768px) {
    .page-resources {
        padding-top: 100px !important; /* Mobile: Adjust for fixed header */
        font-size: 16px;
        line-height: 1.6;
    }
    .page-resources__hero-banner {
        padding-top: 160px !important; /* Mobile: Adjust for fixed header */
        padding-bottom: 50px;
    }
    .page-resources__hero-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }
    .page-resources__hero-subtitle {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-resources__hero-cta {
        padding: 15px 35px;
        font-size: 1em;
    }
    .page-resources__container {
        padding: 0 15px;
    }
    .page-resources__intro-section, .page-resources__guides-section, .page-resources__games-section, .page-resources__promotions-section, .page-resources__news-section, .page-resources__faq-section {
        padding: 40px 0;
    }
    .page-resources__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
        padding-top: 20px;
    }
    .page-resources__sub-section-title {
        font-size: 1.4em;
    }
    .page-resources__card {
        padding: 25px;
        margin-bottom: 20px;
    }
    .page-resources__grid, .page-resources__games-grid, .page-resources__promo-grid, .page-resources__news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-resources__game-img, .page-resources__promo-img, .page-resources__news-img {
        height: 180px;
    }
    .page-resources__card-title, .page-resources__game-title, .page-resources__promo-title, .page-resources__news-title {
        font-size: 1.2em;
    }
    .page-resources__btn-primary, .page-resources__btn-secondary, .page-resources__btn-promo, .page-resources__btn-link {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    .page-resources__news-excerpt {
        font-size: 0.9em;
    }
    .page-resources__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-resources__faq-question h3 {
        font-size: 15px;
        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;
    }
    .page-resources__cta-section {
        padding: 50px 0;
    }
    .page-resources__cta-title {
        font-size: 2em;
    }
    .page-resources__cta-text {
        font-size: 1em;
    }
    .page-resources__cta-button--large {
        padding: 15px 30px;
        font-size: 1.1em;
    }

    /* Ensure all images and containers are responsive */
    .page-resources img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    .page-resources__section,
    .page-resources__card,
    .page-resources__container,
    .page-resources__hero-banner,
    .page-resources__hero-container,
    .page-resources__intro-section,
    .page-resources__guides-section,
    .page-resources__games-section,
    .page-resources__promotions-section,
    .page-resources__news-section,
    .page-resources__faq-section,
    .page-resources__cta-section
    {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-resources__cta-section {
        padding-left: 0;
        padding-right: 0;
    }
    .page-resources__cta-content {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-resources__hero-title {
        font-size: 1.8em;
    }
    .page-resources__section-title {
        font-size: 1.6em;
    }
    .page-resources__cta-title {
        font-size: 1.8em;
    }
}