/* style/resources.css */
.page-resources {
    color: #333333; /* Dark text for light body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
}

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

.page-resources__hero-section {
    background-color: #000000; /* Main color as background */
    color: #FFFFFF;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-resources__hero-container {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.page-resources__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #FCBC45; /* Login color for emphasis */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

.page-resources__hero-button {
    display: inline-block;
    background-color: #FFFFFF; /* Register button background */
    color: #000000; /* Register button text */
    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;
    min-width: 200px; /* Ensure button minimum size */
}

.page-resources__hero-button:hover {
    background-color: #FCBC45;
    color: #000000;
}

.page-resources__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    z-index: 0;
}

.page-resources__section-title {
    font-size: 2.5em;
    color: #000000;
    text-align: center;
    margin-bottom: 40px;
    padding-top: 40px;
}

.page-resources__introduction, .page-resources__gaming-guides, .page-resources__responsible-gaming, .page-resources__payment-vip {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.page-resources__introduction .page-resources__text-content, 
.page-resources__gaming-guides .page-resources__text-content, 
.page-resources__responsible-gaming .page-resources__text-content, 
.page-resources__payment-vip .page-resources__text-content {
    font-size: 1.1em;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto 30px auto;
    text-align: justify;
}

.page-resources__articles-section {
    padding: 60px 0;
    background-color: #FFFFFF;
}

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

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

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

.page-resources__article-image {
    width: 100%;
    height: 250px; /* Fixed height for consistent card image display */
    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.6em;
    margin-bottom: 15px;
    color: #000000;
}

.page-resources__article-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

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

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

.page-resources__read-more-button {
    display: inline-block;
    background-color: #000000;
    color: #FFFFFF;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95em;
    transition: background-color 0.3s ease, color 0.3s ease;
    align-self: flex-start;
    min-width: 150px; /* Ensure button minimum size */
}

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

.page-resources__list-group {
    list-style: none;
    padding: 0;
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.page-resources__list-item {
    background-color: #FFFFFF;
    padding: 15px 20px;
    border-left: 5px solid #FCBC45;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-radius: 5px;
    transition: transform 0.2s ease;
}

.page-resources__list-item:hover {
    transform: translateX(5px);
}

.page-resources__list-item a {
    text-decoration: none;
    color: #000000;
    font-weight: bold;
    display: block;
}

.page-resources__list-item a:hover {
    color: #FCBC45;
}

.page-resources__cta-bottom {
    background-color: #000000; /* Main color as background */
    color: #FFFFFF;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-resources__cta-bottom .page-resources__section-title {
    color: #FCBC45;
}

.page-resources__cta-bottom .page-resources__text-content {
    color: #f0f0f0;
}

.page-resources__cta-button {
    display: inline-block;
    background-color: #FCBC45; /* Login color for button */
    color: #000000;
    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;
    min-width: 200px; /* Ensure button minimum size */
}

.page-resources__cta-button:hover {
    background-color: #FFFFFF;
    color: #000000;
}

.page-resources__cta-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    z-index: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-resources__hero-title {
        font-size: 2.2em;
    }

    .page-resources__hero-description {
        font-size: 1em;
    }

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

    .page-resources__introduction, .page-resources__articles-section, 
    .page-resources__gaming-guides, .page-resources__responsible-gaming, 
    .page-resources__payment-vip, .page-resources__cta-bottom {
        padding: 40px 0;
    }

    .page-resources__articles-grid {
        grid-template-columns: 1fr;
    }

    .page-resources__article-image, 
    .page-resources__hero-image, 
    .page-resources__cta-image {
        max-width: 100%;
        height: auto;
    }

    .page-resources__list-group {
        grid-template-columns: 1fr;
    }

    .page-resources__hero-button, .page-resources__read-more-button, .page-resources__cta-button {
        width: 100%;
        box-sizing: border-box;
    }

    /* Ensure content area images are not smaller than 200px */
    .page-resources img {
        min-width: 200px;
        min-height: 200px;
    }
}

@media (max-width: 480px) {
    .page-resources__hero-title {
        font-size: 1.8em;
    }

    .page-resources__hero-description {
        font-size: 0.9em;
    }

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