/* style/resources.css */
:root {
    --primary-color: #FFD700; /* Gold */
    --secondary-color: #8B0000; /* Dark Red */
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f8f8f8;
    --bg-dark: #222222;
    --border-color: #e0e0e0;
}

.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: 20px;
}

.page-resources__section {
    padding: 60px 0;
    margin-bottom: 20px;
}

.page-resources__section:nth-of-type(even) {
    background-color: #f0f0f0; /* Slightly darker background for contrast */
}

.page-resources h1,
.page-resources h2,
.page-resources h3 {
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
}

.page-resources h1 {
    font-size: 2.8em;
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-resources h2 {
    font-size: 2.2em;
    color: var(--secondary-color);
}

.page-resources h3 {
    font-size: 1.6em;
    color: var(--secondary-color);
    text-align: left;
    margin-top: 40px;
    margin-bottom: 15px;
}

.page-resources p {
    font-size: 1.1em;
    margin-bottom: 15px;
    text-align: justify;
}

.page-resources ul,
.page-resources ol {
    margin-bottom: 15px;
    padding-left: 25px;
}

.page-resources li {
    margin-bottom: 8px;
    font-size: 1.05em;
}

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

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

/* Hero Section */
.page-resources__hero {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #a00000 100%); /* Dark Red gradient for hero background */
    color: var(--text-light);
}

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

.page-resources__hero-image {
    width: 100%;
    max-width: 800px; /* Adjust max-width for visual balance */
    height: auto;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

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

.page-resources__hero-content p {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: var(--text-light);
}

.page-resources__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary-color);
    color: var(--secondary-color); /* Dark text on gold button */
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.page-resources__cta-button:hover {
    background: #FFC107; /* Slightly darker gold on hover */
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

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

.page-resources__cta-button--large {
    padding: 18px 50px;
    font-size: 1.3em;
}

.page-resources__cta-button--final {
    background: var(--secondary-color);
    color: var(--text-light); /* Light text on dark red button */
}

.page-resources__cta-button--final:hover {
    background: #a00000;
}

/* Game Grid / Promo Grid / Blog Grid */
.page-resources__game-grid,
.page-resources__promo-grid,
.page-resources__blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources__game-card,
.page-resources__promo-card,
.page-resources__blog-card {
    background: var(--text-light);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    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__blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.page-resources__game-image,
.page-resources__promo-image,
.page-resources__blog-image {
    width: 100%;
    height: 220px; /* Fixed height for images */
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}

.page-resources__game-card h3,
.page-resources__promo-card h3,
.page-resources__blog-card h3 {
    font-size: 1.4em;
    margin: 20px 20px 10px 20px;
    text-align: left;
    color: var(--secondary-color);
}

.page-resources__game-card h3 a,
.page-resources__promo-card h3 a,
.page-resources__blog-card h3 a {
    color: var(--secondary-color);
}

.page-resources__game-card h3 a:hover,
.page-resources__promo-card h3 a:hover,
.page-resources__blog-card h3 a:hover {
    color: var(--primary-color);
}

.page-resources__game-card p,
.page-resources__promo-card p,
.page-resources__blog-card p {
    padding: 0 20px;
    font-size: 1em;
    flex-grow: 1;
    text-align: justify;
}

.page-resources__read-more {
    display: block;
    text-align: center;
    padding: 15px 20px;
    background: var(--primary-color);
    color: var(--secondary-color);
    font-weight: bold;
    border-radius: 0 0 10px 10px;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.page-resources__read-more:hover {
    background: #FFC107;
}

/* FAQ Section */
.page-resources__faq-list {
    margin-top: 30px;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background: var(--text-light);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: var(--text-light);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background: #f5f5f5;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.25em;
    color: var(--text-dark);
    text-align: left;
}

.faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: var(--secondary-color);
    transition: transform 0.3s ease;
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 25px;
    color: var(--text-dark);
}

.faq-item.active .faq-answer {
    max-height: 500px; /* Sufficient height for content */
    padding: 15px 25px 25px 25px;
    background: #f9f9f9;
}

.faq-item.active .faq-answer p {
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-resources__hero {
        padding: 60px 15px;
    }

    .page-resources h1 {
        font-size: 2.4em;
    }

    .page-resources h2 {
        font-size: 2em;
    }

    .page-resources h3 {
        font-size: 1.4em;
    }

    .page-resources__hero-content p {
        font-size: 1.1em;
    }

    .page-resources__cta-button {
        padding: 12px 30px;
        font-size: 1.1em;
    }

    .page-resources__game-grid,
    .page-resources__promo-grid,
    .page-resources__blog-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }

    .page-resources__game-card h3,
    .page-resources__promo-card h3,
    .page-resources__blog-card h3 {
        font-size: 1.3em;
    }

    .faq-question h3 {
        font-size: 1.15em;
    }
}

@media (max-width: 768px) {
    .page-resources__section {
        padding: 40px 0;
    }

    .page-resources__container {
        padding: 0 15px;
    }

    .page-resources h1 {
        font-size: 2em;
    }

    .page-resources h2 {
        font-size: 1.8em;
    }

    .page-resources h3 {
        font-size: 1.3em;
    }

    .page-resources p {
        font-size: 1em;
    }

    .page-resources__hero-image {
        border-radius: 8px;
        margin-bottom: 30px;
    }

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

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

    .page-resources__game-image,
    .page-resources__promo-image,
    .page-resources__blog-image {
        height: 180px;
    }

    .page-resources__game-card h3,
    .page-resources__promo-card h3,
    .page-resources__blog-card h3 {
        font-size: 1.2em;
    }

    .faq-question {
        padding: 15px 20px;
    }

    .faq-question h3 {
        font-size: 1.1em;
    }

    .faq-toggle {
        font-size: 20px;
    }

    .faq-answer {
        padding: 0 20px;
    }

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

@media (max-width: 480px) {
    .page-resources h1 {
        font-size: 1.8em;
    }

    .page-resources h2 {
        font-size: 1.6em;
    }

    .page-resources h3 {
        font-size: 1.2em;
    }

    .page-resources__cta-button {
        padding: 10px 25px;
        font-size: 1em;
    }

    .page-resources__cta-button--large {
        padding: 12px 30px;
        font-size: 1em;
    }

    .page-resources__game-grid,
    .page-resources__promo-grid,
    .page-resources__blog-grid {
        grid-template-columns: 1fr;
    }

    .page-resources__game-image,
    .page-resources__promo-image,
    .page-resources__blog-image {
        height: 160px;
    }

    .faq-question h3 {
        font-size: 1em;
    }

    .faq-toggle {
        font-size: 18px;
    }
}