/* style/resources.css */

:root {
    --primary-color: #336699; /* new8 Blue */
    --secondary-color: #FFCC00; /* Wealth Gold */
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f4f7f6;
    --bg-dark: #2a2a2a;
    --border-color: #e0e0e0;
}

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

/* General Section Styling */
.page-resources section {
    padding: 60px 0;
}

.page-resources section:nth-of-type(even) {
    background-color: #ffffff;
}

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

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

.page-resources h1 {
    font-size: 3.2em;
    color: var(--text-light);
}

.page-resources h2 {
    font-size: 2.5em;
    margin-top: 40px;
}

.page-resources h3 {
    font-size: 1.8em;
    margin-top: 20px;
}

.page-resources p {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources .button {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--secondary-color);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin-top: 15px;
    font-size: 1em;
}

.page-resources .button:hover {
    background-color: #e6b800;
    transform: translateY(-2px);
}

.page-resources .text-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-resources .text-link:hover {
    text-decoration: underline;
}

/* Hero Section */
.page-resources .hero-section {
    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(--primary-color), #2a4e72);
    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%;
    margin-bottom: 30px;
}

.page-resources .hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    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 {
    color: var(--text-light);
    font-size: 1.2em;
}

.page-resources .cta-button {
    display: inline-block;
    padding: 18px 45px;
    background: var(--secondary-color);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.3em;
    font-weight: bold;
    margin-top: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-resources .cta-button:hover {
    background: #e6b800;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Guide Section */
.page-resources .section-guide .guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources .guide-item {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources .guide-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.page-resources .guide-image {
    width: 100%;
    max-width: 400px;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-resources .guide-item h3 {
    color: var(--primary-color);
    font-size: 1.6em;
    margin-top: 0;
    margin-bottom: 15px;
}

.page-resources .guide-item h3 a {
    color: var(--primary-color);
    text-decoration: none;
}

.page-resources .guide-item h3 a:hover {
    text-decoration: underline;
}

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

/* Tips Section */
.page-resources .section-tips {
    background-color: var(--bg-light);
}

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

.page-resources .tip-item {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources .tip-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.page-resources .tip-image {
    width: 100%;
    max-width: 400px;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-resources .tip-item h3 {
    color: var(--primary-color);
    font-size: 1.6em;
    margin-top: 0;
    margin-bottom: 15px;
}

.page-resources .tip-item h3 a {
    color: var(--primary-color);
    text-decoration: none;
}

.page-resources .tip-item h3 a:hover {
    text-decoration: underline;
}

.page-resources .tip-item p {
    text-align: left;
    font-size: 1em;
    margin-bottom: 0;
}

/* Games Section */
.page-resources .section-games .games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources .game-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources .game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.page-resources .game-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

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

.page-resources .game-card h3 a {
    color: var(--primary-color);
    text-decoration: none;
}

.page-resources .game-card h3 a:hover {
    text-decoration: underline;
}

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

/* Safety Section */
.page-resources .section-safety {
    background-color: var(--bg-light);
}

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

.page-resources .safety-item {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources .safety-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.page-resources .safety-image {
    width: 100%;
    max-width: 250px;
    height: 180px;
    object-fit: contain;
    margin-bottom: 20px;
}

.page-resources .safety-item h3 {
    color: var(--primary-color);
    font-size: 1.6em;
    margin-top: 0;
    margin-bottom: 15px;
}

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

/* FAQ Section */
.page-resources .section-faq .faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-resources .faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: #ffffff;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

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

.page-resources .faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: var(--primary-color);
    text-align: left;
}

.page-resources .faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--secondary-color);
    transition: transform 0.3s ease;
}

.page-resources .faq-item.active .faq-toggle {
    transform: rotate(45deg);
    color: var(--primary-color);
}

.page-resources .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 25px;
    background-color: #f9f9f9;
}

.page-resources .faq-item.active .faq-answer {
    max-height: 500px; /* Sufficient height to contain content */
    padding: 20px 25px;
    border-top: 1px solid var(--border-color);
}

.page-resources .faq-answer p {
    text-align: left;
    font-size: 1em;
    margin-bottom: 0;
}

/* Blog/News Section */
.page-resources .section-blog-news {
    background-color: var(--bg-light);
}

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

.page-resources .blog-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources .blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.page-resources .blog-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.page-resources .blog-card h3 {
    font-size: 1.4em;
    margin: 20px 15px 10px;
    text-align: left;
    color: var(--primary-color);
}

.page-resources .blog-card h3 a {
    color: var(--primary-color);
    text-decoration: none;
}

.page-resources .blog-card h3 a:hover {
    text-decoration: underline;
}

.page-resources .blog-card p {
    font-size: 0.95em;
    padding: 0 15px;
    text-align: left;
    margin-bottom: 15px;
}

.page-resources .blog-date {
    display: block;
    font-size: 0.85em;
    color: #888;
    padding: 0 15px 20px;
    text-align: left;
}

.page-resources .view-all-button {
    text-align: center;
    margin-top: 50px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources h1 {
        font-size: 2.8em;
    }
    .page-resources h2 {
        font-size: 2em;
    }
    .page-resources h3 {
        font-size: 1.5em;
    }
    .page-resources .hero-content p {
        font-size: 1.1em;
    }
    .page-resources .cta-button {
        font-size: 1.2em;
        padding: 15px 35px;
    }
}

@media (max-width: 768px) {
    .page-resources section {
        padding: 40px 0;
    }
    .page-resources h1 {
        font-size: 2.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 {
        margin-bottom: 20px;
    }
    .page-resources .hero-image img {
        border-radius: 4px;
    }
    .page-resources .cta-button {
        font-size: 1em;
        padding: 12px 30px;
        margin-top: 20px;
    }
    .page-resources .guide-item, .page-resources .tip-item, .page-resources .game-card, .page-resources .safety-item, .page-resources .blog-card {
        padding: 20px;
    }
    .page-resources .guide-image, .page-resources .tip-image {
        height: 200px;
    }
    .page-resources .game-image {
        height: 180px;
    }
    .page-resources .safety-image {
        max-width: 200px;
        height: 150px;
    }
    .page-resources .faq-question {
        padding: 15px 20px;
    }
    .page-resources .faq-question h3 {
        font-size: 1.1em;
    }
    .page-resources .faq-toggle {
        font-size: 1.5em;
    }
    .page-resources .faq-answer {
        padding: 0 20px;
    }
    .page-resources .faq-item.active .faq-answer {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .page-resources h1 {
        font-size: 1.8em;
    }
    .page-resources h2 {
        font-size: 1.5em;
    }
    .page-resources h3 {
        font-size: 1.2em;
    }
    .page-resources .hero-content p {
        font-size: 0.95em;
    }
    .page-resources .cta-button {
        font-size: 0.9em;
        padding: 10px 25px;
    }
    .page-resources .guide-grid, .page-resources .tips-grid, .page-resources .games-grid, .page-resources .safety-content, .page-resources .blog-grid {
        grid-template-columns: 1fr;
    }
    .page-resources .guide-image, .page-resources .tip-image {
        height: 180px;
    }
    .page-resources .game-image {
        height: 160px;
    }
    .page-resources .safety-image {
        max-width: 180px;
        height: 120px;
    }
}