/* style/resources.css */

/* Base Styles for the Resources Page */
.page-resources {
    background-color: var(--background-color, #FFFFFF); /* Default to white if not set by shared */
    color: var(--text-color, #333333); /* Dark text for light background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px); /* Ensure content clears fixed header */
}

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

.page-resources__section-title {
    color: var(--primary-color, #000000); /* Main color for titles */
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-resources__section-intro,
.page-resources__section-text {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: #555555; /* Slightly lighter text for intros */
}

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px; /* Minimum height for hero */
    color: #FFFFFF; /* White text for hero overlay */
    text-align: center;
    padding: 60px 20px; /* Adjust padding for content */
}

.page-resources__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

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

.page-resources__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    padding: 40px;
    border-radius: 10px;
}

.page-resources__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFFFFF;
    line-height: 1.2;
}

.page-resources__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: #F0F0F0;
}

.page-resources__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-resources__cta-button--register {
    background-color: #FCBC45; /* Login color for Register button */
    color: #000000; /* Black text for contrast */
}

.page-resources__cta-button--register:hover {
    background-color: #e0a53b;
}

/* Articles Overview Section */
.page-resources__articles-overview-section {
    padding: 80px 0;
    background-color: #F8F8F8; /* Light background for contrast */
}

/* Featured Articles Section */
.page-resources__featured-articles-section {
    padding: 80px 0;
}

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

.page-resources__article-card {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.page-resources__article-card:hover {
    transform: translateY(-5px);
}

.page-resources__article-image-wrapper {
    width: 100%;
    height: 250px; /* Fixed height for consistent card images */
    overflow: hidden;
}

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

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

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

.page-resources__article-title a {
    color: var(--primary-color, #000000);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources__article-title a:hover {
    color: #FCBC45; /* Highlight on hover */
}

.page-resources__article-summary {
    font-size: 1em;
    color: #666666;
    margin-bottom: 20px;
    flex-grow: 1; /* Allow summary to take up space */
}

.page-resources__read-more-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #FCBC45;
    color: #000000;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    align-self: flex-start;
}

.page-resources__read-more-button:hover {
    background-color: #e0a53b;
}

/* Why jilibet Section */
.page-resources__why-jilibet-section {
    padding: 80px 0;
    background-color: #F8F8F8;
}

.page-resources__why-jilibet-content {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 50px;
}

.page-resources__why-jilibet-text {
    flex: 1;
    font-size: 1.1em;
    color: #333333;
    text-align: left;
}

.page-resources__why-jilibet-text p {
    margin-bottom: 20px;
}

.page-resources__why-jilibet-image-wrapper {
    flex: 1;
    min-width: 200px; /* Ensure image wrapper isn't too small */
}

.page-resources__why-jilibet-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}

.page-resources__cta-button--explore {
    background-color: #000000; /* Black button */
    color: #FFFFFF; /* White text */
    margin-top: 20px;
}

.page-resources__cta-button--explore:hover {
    background-color: #333333;
}

/* Responsible Gaming Section */
.page-resources__responsible-gaming-section {
    padding: 80px 0;
}

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

.page-resources__feature-item {
    background-color: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.page-resources__feature-item:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-resources__feature-title {
    font-size: 1.4em;
    color: var(--primary-color, #000000);
    margin-bottom: 15px;
}

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

.page-resources__cta-button--support {
    background-color: #000000;
    color: #FFFFFF;
    margin-top: 40px;
}

.page-resources__cta-button--support:hover {
    background-color: #333333;
}

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

.page-resources__faq-list {
    margin-top: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources__faq-item {
    background-color: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
}

.page-resources__faq-question {
    font-size: 1.3em;
    color: var(--primary-color, #000000);
    padding: 20px 25px;
    cursor: pointer;
    position: relative;
    margin: 0;
    background-color: #FDFDFD;
    transition: background-color 0.3s ease;
}

.page-resources__faq-question:hover {
    background-color: #F0F0F0;
}

.page-resources__faq-question::after {
    content: '+';
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5em;
    transition: transform 0.3s ease;
}

.page-resources__faq-question.active::after {
    content: '-';
    transform: translateY(-50%) rotate(180deg);
}

.page-resources__faq-answer {
    font-size: 1em;
    color: #666666;
    padding: 0 25px 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding-top 0.5s ease-out;
    margin: 0;
}

.page-resources__faq-answer.active {
    max-height: 300px; /* Max height to allow transition */
    padding-top: 10px;
}


.page-resources__quick-links {
    text-align: center;
    margin-top: 60px;
}

.page-resources__quick-links-title {
    font-size: 1.5em;
    color: var(--primary-color, #000000);
    margin-bottom: 20px;
}

.page-resources__quick-link {
    display: inline-block;
    margin: 0 15px 15px;
    padding: 10px 25px;
    background-color: #000000;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-resources__quick-link:hover {
    background-color: #333333;
}

/* Final CTA Section */
.page-resources__cta-section {
    padding: 80px 0;
    background-color: #000000; /* Dark background for strong CTA */
    color: #FFFFFF;
    text-align: center;
}

.page-resources__cta-section .page-resources__section-title {
    color: #FFFFFF;
}

.page-resources__cta-section .page-resources__section-intro {
    color: #F0F0F0;
}

.page-resources__cta-buttons {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-resources__cta-button--join {
    background-color: #FCBC45;
    color: #000000;
}

.page-resources__cta-button--join:hover {
    background-color: #e0a53b;
}

.page-resources__cta-button--download {
    background-color: #FFFFFF;
    color: #000000;
    border: 1px solid #FFFFFF;
}

.page-resources__cta-button--download:hover {
    background-color: #E0E0E0;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-resources__hero-title {
        font-size: 2.8em;
    }
    .page-resources__hero-description {
        font-size: 1.1em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
    .page-resources__why-jilibet-content {
        flex-direction: column;
        text-align: center;
    }
    .page-resources__why-jilibet-image-wrapper {
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .page-resources {
        padding-top: var(--header-offset, 80px); /* Adjust for smaller header on mobile */
    }
    .page-resources__hero-title {
        font-size: 2.2em;
    }
    .page-resources__hero-description {
        font-size: 1em;
    }
    .page-resources__hero-content {
        padding: 30px 20px;
    }
    .page-resources__article-grid {
        grid-template-columns: 1fr;
    }
    .page-resources__why-jilibet-text,
    .page-resources__section-intro,
    .page-resources__section-text {
        text-align: left; /* Align text left on mobile for readability */
    }
    .page-resources__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-resources__cta-button {
        width: 100%;
        max-width: 300px;
    }
    .page-resources__feature-item {
        padding: 20px;
    }
    .page-resources__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-resources__faq-question::after {
        right: 20px;
    }
    .page-resources__faq-answer {
        padding: 0 20px 15px;
    }
    /* Ensure content images are responsive and do not overflow */
    .page-resources img {
        max-width: 100%;
        height: auto;
    }
    /* Specific override for content images to ensure min-size is respected by max-width: 100% */
    .page-resources__article-image,
    .page-resources__why-jilibet-image {
        min-width: 200px;
        min-height: 200px;
        max-width: 100%;
        height: auto;
    }
    .page-resources__article-image-wrapper {
        height: auto; /* Allow height to adjust with max-width: 100% */
    }
}

/* Ensure no images smaller than 200px are generated in the content area */
/* This is a general rule, specific image classes should also adhere */
.page-resources img:not(.shared-header__logo):not(.shared-footer__payment-icon):not(.shared-footer__social-icon) {
    min-width: 200px;
    min-height: 200px;
}