/* style/resources.css */
:root {
    --primary-color: #007BFF;
    --secondary-color: #FFC107;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f4f7f6;
    --bg-dark: #0056b3;
    --card-bg: #ffffff;
    --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: 0 20px;
}

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

.page-resources .section-subtitle {
    font-size: 1.2em;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 30px;
}

.page-resources .cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: var(--secondary-color);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-resources .cta-button:hover {
    background: #e0a800;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.page-resources .cta-button.large {
    font-size: 1.3em;
    padding: 18px 40px;
}

/* Hero Banner */
.page-resources .hero-banner {
    position: relative;
    width: 100%;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    margin-bottom: 40px;
}

.page-resources .hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-resources .hero-overlay {
    position: relative;
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 40px 20px;
    border-radius: 10px;
    max-width: 800px;
}

.page-resources .hero-title {
    font-size: 3.5em;
    color: var(--text-light);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-resources .hero-subtitle {
    font-size: 1.5em;
    color: var(--text-light);
    margin-bottom: 30px;
}

.page-resources .hero-banner .cta-button {
    background: var(--secondary-color);
    color: var(--text-dark);
}

.page-resources .hero-banner .cta-button:hover {
    background: #e0a800;
}

/* Section Intro */
.page-resources .section-intro {
    padding: 40px 0;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

.page-resources .section-intro p {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
}

/* Guide Section */
.page-resources .section-guides {
    padding: 60px 0;
    background-color: var(--bg-light);
}

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

.page-resources .guide-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.page-resources .guide-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.page-resources .card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}

.page-resources .card-title {
    font-size: 1.6em;
    color: var(--primary-color);
    margin: 20px 15px 10px;
    font-weight: bold;
}

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

.page-resources .card-title a:hover {
    color: var(--secondary-color);
}

.page-resources .card-text {
    font-size: 1em;
    padding: 0 20px;
    margin-bottom: 20px;
    flex-grow: 1;
    text-align: justify;
}

.page-resources .card-button {
    display: inline-block;
    padding: 12px 25px;
    background: var(--primary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 50px;
    font-size: 0.95em;
    font-weight: bold;
    margin: 0 20px 20px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-resources .card-button:hover {
    background: var(--bg-dark);
    transform: translateY(-2px);
}

/* Game Section */
.page-resources .section-games {
    padding: 60px 0;
    background-color: var(--card-bg);
}

.page-resources .section-games p {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.1em;
}

.page-resources .game-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.page-resources .game-card {
    background-color: var(--bg-light);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-resources .game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.page-resources .game-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}

.page-resources .game-card-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin: 20px 20px 10px;
    font-weight: bold;
}

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

.page-resources .game-card-title a:hover {
    color: var(--secondary-color);
}

.page-resources .game-card p {
    font-size: 1em;
    padding: 0 20px;
    margin-bottom: 15px;
    text-align: justify;
}

.page-resources .game-card ul {
    list-style: none;
    padding: 0 20px 15px;
    margin: 0;
}

.page-resources .game-card ul li {
    margin-bottom: 8px;
}

.page-resources .game-card ul li a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.95em;
    transition: color 0.3s ease;
}

.page-resources .game-card ul li a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Optimize Section */
.page-resources .section-optimize {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.page-resources .section-optimize p {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.1em;
}

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

.page-resources .optimize-item {
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources .optimize-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.page-resources .optimize-icon {
    width: 150px; /* Increased size for content image, not icon */
    height: 150px;
    object-fit: contain;
    margin-bottom: 20px;
}

.page-resources .optimize-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

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

.page-resources .optimize-title a:hover {
    color: var(--secondary-color);
}

.page-resources .optimize-item p {
    font-size: 1em;
    margin-bottom: 20px;
    text-align: justify;
}

/* FAQ Section */
.page-resources .section-faq {
    padding: 60px 0;
    background-color: var(--card-bg);
}

.page-resources .faq-list {
    max-width: 800px;
    margin: 0 auto;
}

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

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

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

.faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: var(--primary-color);
    font-weight: bold;
}

.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);
    color: var(--primary-color);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 20px;
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
}

.faq-item.active .faq-answer {
    max-height: 500px; /* Adjust as needed */
    padding: 20px;
}

.faq-answer p {
    margin: 0;
    font-size: 1em;
    line-height: 1.7;
    color: var(--text-dark);
}

/* Blog Section */
.page-resources .section-blog {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.page-resources .section-blog p {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.1em;
}

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

.page-resources .blog-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-resources .blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.page-resources .blog-card .card-image {
    height: 200px; /* Fixed height for blog images */
}

/* Conclusion Section */
.page-resources .section-conclusion {
    padding: 60px 0 80px;
    text-align: center;
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-resources .section-conclusion .section-title {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.page-resources .section-conclusion p {
    font-size: 1.2em;
    line-height: 1.8;
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources .section-conclusion .cta-button {
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

.page-resources .section-conclusion .cta-button:hover {
    background-color: #e0a800;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources .hero-title {
        font-size: 3em;
    }
    .page-resources .hero-subtitle {
        font-size: 1.3em;
    }
    .page-resources .section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-resources .hero-banner {
        min-height: 350px;
    }
    .page-resources .hero-overlay {
        padding: 30px 15px;
    }
    .page-resources .hero-title {
        font-size: 2.5em;
    }
    .page-resources .hero-subtitle {
        font-size: 1.1em;
    }
    .page-resources .cta-button {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-resources .cta-button.large {
        font-size: 1.1em;
        padding: 15px 30px;
    }
    .page-resources .section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-resources .section-intro p,
    .page-resources .game-card p,
    .page-resources .optimize-item p,
    .page-resources .section-blog p,
    .page-resources .section-conclusion p {
        font-size: 0.95em;
    }
    .page-resources .guide-card,
    .page-resources .game-card,
    .page-resources .optimize-item,
    .page-resources .blog-card {
        margin-bottom: 20px;
    }
    .faq-question {
        padding: 12px 15px;
    }
    .faq-question h3 {
        font-size: 1.1em;
    }
    .faq-toggle {
        font-size: 20px;
    }
    .faq-answer {
        padding: 0 15px;
    }
    .faq-item.active .faq-answer {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .page-resources .hero-title {
        font-size: 2em;
    }
    .page-resources .hero-subtitle {
        font-size: 1em;
    }
    .page-resources .section-title {
        font-size: 1.5em;
    }
    .page-resources .guide-grid,
    .page-resources .game-cards,
    .page-resources .optimize-grid,
    .page-resources .blog-grid {
        grid-template-columns: 1fr;
    }
}