/* style/resources.css */
:root {
    --primary-color: #007BFF;
    --secondary-color: #FFC107;
    --text-color-dark: #333333;
    --text-color-light: #ffffff;
    --background-light: #f4f7f6;
    --background-dark: #1a1a1a;
    --card-background: #ffffff;
    --border-color: #e0e0e0;
}

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

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

.page-resources section {
    padding: 60px 0;
    text-align: center;
}

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

.page-resources .main-title {
    font-size: 3.2em;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.page-resources .section-title {
    font-size: 2.5em;
    color: var(--text-color-dark);
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
}

.page-resources .section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

.page-resources .description-text, .page-resources .section-description {
    font-size: 1.1em;
    color: #555555;
    max-width: 900px;
    margin: 0 auto 40px auto;
}

.page-resources .section-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

/* Buttons */
.page-resources .btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 1.05em;
    cursor: pointer;
}

.page-resources .btn-primary {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    border: 2px solid var(--primary-color);
}

.page-resources .btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-resources .btn-secondary {
    background-color: var(--secondary-color);
    color: var(--text-color-dark);
    border: 2px solid var(--secondary-color);
}

.page-resources .btn-secondary:hover {
    background-color: #e0a800;
    border-color: #e0a800;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Resource Cards */
.page-resources .resource-card-grid, .page-resources .game-category-grid, .page-resources .blog-post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources .resource-card, .page-resources .game-category-card, .page-resources .blog-post-card {
    background-color: var(--card-background);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-resources .resource-card:hover, .page-resources .game-category-card:hover, .page-resources .blog-post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-resources .card-image, .page-resources .category-image, .page-resources .post-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-resources .card-title, .page-resources .category-title, .page-resources .post-title {
    font-size: 1.4em;
    color: var(--primary-color);
    margin-bottom: 15px;
    min-height: 60px; /* Ensure consistent height */
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.page-resources .card-title a:hover, .page-resources .category-title a:hover, .page-resources .post-title a:hover {
    color: #0056b3;
}

.page-resources .card-text, .page-resources .category-text, .page-resources .post-excerpt {
    font-size: 0.95em;
    color: #666666;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-resources .read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-resources .read-more:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Mobile Experience Section */
.page-resources .mobile-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 40px;
}

.page-resources .mobile-text {
    background-color: var(--card-background);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    flex: 1 1 calc(50% - 15px);
    max-width: 500px;
    text-align: center;
}

.page-resources .mobile-app-image, .page-resources .mobile-tips-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-resources .sub-title {
    font-size: 1.8em;
    color: var(--text-color-dark);
    margin-bottom: 15px;
}

/* Promotions List */
.page-resources .promotion-list {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 40px auto;
    text-align: left;
}

.page-resources .promotion-list li {
    background-color: var(--card-background);
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    font-size: 1.1em;
    color: var(--text-color-dark);
    transition: transform 0.2s ease;
}

.page-resources .promotion-list li:hover {
    transform: translateX(5px);
}

.page-resources .promotion-list li a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-resources .promotion-list li a:hover {
    text-decoration: underline;
}

.page-resources .view-all-btn {
    margin-top: 20px;
}

/* Safety & Support */
.page-resources .support-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

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

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

.page-resources .support-icon {
    width: 100%;
    max-width: 250px;
    height: auto;
    margin-bottom: 20px;
}

.page-resources .support-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

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

.page-resources .support-title a:hover {
    text-decoration: underline;
}

.page-resources .support-text {
    font-size: 1em;
    color: #666666;
}

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

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

.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.15em;
    color: var(--text-color-dark);
}

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

.page-resources .faq-item.active .faq-toggle {
    transform: rotate(45deg);
    color: var(--secondary-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: #f9f9f9;
    color: #555555;
}

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

.page-resources .faq-answer p {
    margin: 0;
    padding-bottom: 10px;
}

/* Latest Blog Section */
.page-resources .blog-post-grid {
    margin-top: 40px;
}

.page-resources .blog-post-card {
    text-align: left;
    padding: 20px;
}

.page-resources .post-image {
    height: 220px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-resources .main-title {
        font-size: 2.5em;
    }

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

    .page-resources .resource-card-grid, .page-resources .game-category-grid, .page-resources .blog-post-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }

    .page-resources .mobile-text {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

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

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

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

    .page-resources .description-text, .page-resources .section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-resources .btn {
        padding: 10px 20px;
        font-size: 0.95em;
    }

    .page-resources .card-image, .page-resources .category-image, .page-resources .post-image {
        height: 180px;
    }

    .page-resources .card-title, .page-resources .category-title, .page-resources .post-title {
        font-size: 1.2em;
        min-height: 50px;
    }

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

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

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

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

    .page-resources .faq-item.active .faq-answer {
        padding: 12px 20px;
    }
}

@media (max-width: 480px) {
    .page-resources .container {
        padding: 0 15px;
    }

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

    .page-resources .section-title {
        font-size: 1.5em;
    }

    .page-resources .resource-card-grid, .page-resources .game-category-grid, .page-resources .blog-post-grid {
        grid-template-columns: 1fr;
    }

    .page-resources .mobile-text {
        padding: 20px;
    }

    .page-resources .promotion-list li {
        font-size: 0.95em;
        padding: 15px;
    }
}