/* style/resources.css */
.page-resources {
    color: #333333; /* Dark text for light body background */
    line-height: 1.6;
    font-family: Arial, sans-serif;
}

.page-resources__hero-section {
    background-color: #f8f9fa; /* Light background for hero */
    padding: var(--header-offset, 120px) 20px 60px; /* Adjust padding for header offset */
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-resources__hero-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    padding-bottom: 30px;
}

.page-resources__hero-title {
    font-size: 2.8em;
    color: #007bff; /* Primary brand color */
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-resources__hero-description {
    font-size: 1.2em;
    color: #555555;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources__hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-resources__hero-button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-size: 1.1em;
}

.page-resources__hero-button--primary {
    background-color: #007bff; /* Primary brand color */
    color: #ffffff;
    border: 2px solid #007bff;
}

.page-resources__hero-button--primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-2px);
}

.page-resources__hero-button--secondary {
    background-color: transparent;
    color: #007bff; /* Primary brand color */
    border: 2px solid #007bff;
}

.page-resources__hero-button--secondary:hover {
    background-color: #e0f0ff;
    transform: translateY(-2px);
}

.page-resources__hero-image {
    width: 100%;
    max-width: 1200px; /* Limit image width */
    height: auto;
    display: block;
    margin: 40px auto 0;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

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

.page-resources__section-title {
    font-size: 2.2em;
    color: #007bff; /* Primary brand color */
    text-align: center;
    margin-bottom: 20px;
    padding-top: 60px;
    font-weight: bold;
}

.page-resources__section-description {
    font-size: 1.1em;
    color: #666666;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Featured Articles Section */
.page-resources__featured-articles {
    background-color: #ffffff;
    padding: 60px 0;
}

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

.page-resources__article-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 15px 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__article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.page-resources__article-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-resources__article-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-resources__article-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    line-height: 1.3;
    font-weight: bold;
}

.page-resources__article-title a {
    color: #007bff; /* Primary brand color */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources__article-title a:hover {
    color: #0056b3;
}

.page-resources__article-category {
    display: inline-block;
    background-color: #ffc107; /* Secondary brand color */
    color: #333333;
    font-size: 0.85em;
    padding: 5px 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-resources__article-summary {
    font-size: 1em;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-resources__article-button {
    display: inline-block;
    background-color: #007bff; /* Primary brand color */
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    align-self: flex-start;
}

.page-resources__article-button:hover {
    background-color: #0056b3;
}

/* Why Jili888 Section */
.page-resources__why-jili888 {
    background-color: #f0f8ff;
    padding: 60px 0;
}

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

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

.page-resources__feature-item:hover {
    transform: translateY(-5px);
}

.page-resources__feature-icon {
    width: 100px; /* Ensure images are not too small */
    height: 75px;
    object-fit: contain;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-resources__feature-title {
    font-size: 1.4em;
    color: #007bff; /* Primary brand color */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-resources__feature-description {
    font-size: 0.95em;
    color: #666666;
}

.page-resources__cta-bottom {
    text-align: center;
    margin-top: 50px;
}

/* Understanding Betting Section */
.page-resources__understanding-betting {
    padding: 60px 0;
    background-color: #ffffff;
}

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

.page-resources__content-block {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.page-resources__content-subtitle {
    font-size: 1.6em;
    color: #007bff; /* Primary brand color */
    margin-bottom: 20px;
    font-weight: bold;
}

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

.page-resources__content-text {
    font-size: 1em;
    color: #555555;
    margin-bottom: 25px;
    flex-grow: 1;
}

.page-resources__content-button {
    display: inline-block;
    background-color: #ffc107; /* Secondary brand color */
    color: #333333;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    align-self: flex-start;
}

.page-resources__content-button:hover {
    background-color: #e0a800;
}

/* Latest News Section */
.page-resources__latest-news {
    background-color: #f0f8ff;
    padding: 60px 0;
}

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

.page-resources__news-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 15px 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__news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

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

.page-resources__news-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-resources__news-title {
    font-size: 1.3em;
    margin-bottom: 10px;
    line-height: 1.3;
    font-weight: bold;
}

.page-resources__news-title a {
    color: #007bff; /* Primary brand color */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources__news-title a:hover {
    color: #0056b3;
}

.page-resources__news-date {
    font-size: 0.9em;
    color: #999999;
    margin-bottom: 10px;
}

.page-resources__news-summary {
    font-size: 0.95em;
    color: #555555;
    flex-grow: 1;
}

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

/* FAQ Section */
.page-resources__faq-section {
    padding: 60px 0;
    background-color: #ffffff;
}

.page-resources__faq-list {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.page-resources__faq-item {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.page-resources__faq-question {
    font-size: 1.2em;
    color: #007bff; /* Primary brand color */
    margin-bottom: 10px;
    font-weight: bold;
    cursor: pointer;
}

.page-resources__faq-answer {
    font-size: 1em;
    color: #555555;
    display: none; /* Hidden by default, toggled by JS */
}

.page-resources__faq-item.active .page-resources__faq-answer {
    display: block;
}

/* Call to Action Section */
.page-resources__cta-section {
    background-color: #007bff; /* Primary brand color */
    padding: 80px 20px;
    text-align: center;
    color: #ffffff;
}

.page-resources__cta-section .page-resources__section-title {
    color: #ffffff;
    padding-top: 0;
}

.page-resources__cta-section .page-resources__section-description {
    color: #e0e0e0;
    margin-bottom: 40px;
}

.page-resources__cta-section .page-resources__hero-button--primary {
    background-color: #ffc107; /* Secondary brand color */
    color: #333333;
    border-color: #ffc107;
    margin-right: 15px;
}

.page-resources__cta-section .page-resources__hero-button--primary:hover {
    background-color: #e0a800;
    border-color: #e0a800;
}

.page-resources__cta-section .page-resources__hero-button--secondary {
    background-color: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

.page-resources__cta-section .page-resources__hero-button--secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 2.5em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
    .page-resources__article-image,
    .page-resources__content-image,
    .page-resources__news-image {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .page-resources__hero-section {
        padding: var(--header-offset, 120px) 15px 40px;
    }
    .page-resources__hero-title {
        font-size: 2em;
    }
    .page-resources__hero-description {
        font-size: 1em;
    }
    .page-resources__hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-resources__hero-button {
        width: 80%;
        max-width: 300px;
    }
    .page-resources__container {
        padding: 0 15px;
    }
    .page-resources__section-title {
        font-size: 1.8em;
        padding-top: 40px;
    }
    .page-resources__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }
    .page-resources__article-grid,
    .page-resources__feature-grid,
    .page-resources__content-grid,
    .page-resources__news-grid {
        grid-template-columns: 1fr;
    }
    .page-resources__article-image,
    .page-resources__content-image,
    .page-resources__news-image {
        max-width: 100%;
        height: auto; /* Ensure images are responsive and don't overflow */
    }
    .page-resources__feature-icon {
        width: 80px;
        height: 60px;
    }
    .page-resources__news-card .page-resources__news-content {
        padding: 15px;
    }
    .page-resources__cta-section .page-resources__hero-button--primary,
    .page-resources__cta-section .page-resources__hero-button--secondary {
        margin-right: 0;
        margin-bottom: 15px;
        width: 80%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .page-resources__hero-title {
        font-size: 1.8em;
    }
    .page-resources__section-title {
        font-size: 1.6em;
    }
    .page-resources__hero-button {
        padding: 10px 20px;
        font-size: 1em;
    }
    .page-resources__article-title {
        font-size: 1.3em;
    }
    .page-resources__feature-title {
        font-size: 1.2em;
    }
    .page-resources__content-subtitle {
        font-size: 1.4em;
    }
    .page-resources__news-title {
        font-size: 1.1em;
    }
    .page-resources__faq-question {
        font-size: 1.1em;
    }
}