/* style/resources.css */

/* Base container for the page content, ensuring header offset */
.page-resources {
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    background-color: #f8f9fa; /* Light background to ensure dark text contrast */
    color: #333333; /* Dark text for readability on light background */
    line-height: 1.6;
    font-family: Arial, sans-serif;
}

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

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    overflow: hidden;
    color: #ffffff; /* White text on potentially dark hero image */
    text-align: center;
    padding: 80px 20px; /* Adjusted padding for content above image */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 500px; /* Minimum height for hero section */
}

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

.page-resources__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the entire area */
    display: block;
}

.page-resources__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
    padding: 30px;
    border-radius: 8px;
}

.page-resources__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #ffc107; /* Auxiliary color for emphasis */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
}

.page-resources__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: #f0f0f0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

.page-resources__hero-button {
    display: inline-block;
    background-color: #007bff; /* Primary color */
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: 2px solid #007bff;
}

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

/* Section Titles */
.page-resources__section-title {
    font-size: 2.5em;
    color: #007bff; /* Primary color */
    text-align: center;
    margin-top: 60px;
    margin-bottom: 30px;
    font-weight: bold;
}

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

.page-resources__subsection-title {
    font-size: 1.8em;
    color: #007bff;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-resources__text-content {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
    color: #333333;
}

/* Article Grid Section */
.page-resources__articles-section {
    padding: 60px 0;
    background-color: #ffffff; /* White background for article cards */
}

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

.page-resources__article-card {
    background-color: #fdfdfd;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    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 25px rgba(0, 0, 0, 0.15);
}

.page-resources__article-thumbnail {
    width: 100%;
    height: 250px; /* Fixed height for consistency, ensures >= 200px */
    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;
    line-height: 1.3;
}

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

.page-resources__article-title a:hover {
    color: #0056b3; /* Darker primary on hover */
}

.page-resources__article-abstract {
    font-size: 1em;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1; /* Allows abstract to take available space */
}

.page-resources__read-more-button {
    display: inline-block;
    background-color: #ffc107; /* Auxiliary color */
    color: #333333;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    align-self: flex-start; /* Align button to start of content */
}

.page-resources__read-more-button:hover {
    background-color: #e0a800; /* Darker auxiliary on hover */
    transform: translateY(-1px);
}

/* Value Section */
.page-resources__value-section {
    padding: 60px 0;
    background-color: #f0f4f8; /* Slightly different background for visual separation */
}

.page-resources__value-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-resources__value-item {
    font-size: 1.1em;
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
    color: #333333;
}

.page-resources__value-item::before {
    content: '✅'; /* Checkmark icon */
    position: absolute;
    left: 0;
    color: #007bff; /* Primary color for checkmark */
    font-size: 1.2em;
}

.page-resources__value-item strong {
    color: #007bff; /* Primary color for strong text */
}

/* Beyond Section */
.page-resources__beyond-section {
    padding: 60px 0;
}

/* Responsible Gaming Section */
.page-resources__responsible-gaming-section {
    padding: 60px 0;
    background-color: #f0f4f8; /* Same as value section for consistency */
}

.page-resources__responsible-gaming-link {
    display: inline-block;
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
    margin-top: 20px;
    transition: color 0.3s ease;
}

.page-resources__responsible-gaming-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Conclusion Section & CTA */
.page-resources__conclusion-section {
    padding: 60px 0;
    text-align: center;
    background-color: #ffffff;
}

.page-resources__cta-wrapper {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-resources__cta-wrapper--center {
    text-align: center;
}

.page-resources__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease, border-color 0.3s ease;
    min-width: 200px;
    text-align: center;
}

.page-resources__cta-button--primary {
    background-color: #007bff;
    color: #ffffff;
    border: 2px solid #007bff;
}

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

.page-resources__cta-button--secondary {
    background-color: transparent;
    color: #007bff;
    border: 2px solid #007bff;
}

.page-resources__cta-button--secondary:hover {
    background-color: #007bff;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-resources__hero-title {
        font-size: 3em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
    .page-resources__article-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .page-resources__article-title {
        font-size: 1.4em;
    }
    .page-resources__article-thumbnail {
        height: 220px; /* Slightly reduce height but keep above 200px */
    }
}

@media (max-width: 768px) {
    .page-resources {
        padding-top: var(--header-offset, 80px); /* Adjust for smaller header on mobile */
    }
    .page-resources__hero-section {
        padding: 60px 15px;
        min-height: 350px; /* Further reduce min-height for mobile */
    }
    .page-resources__hero-title {
        font-size: 2.2em;
    }
    .page-resources__hero-description {
        font-size: 1em;
    }
    .page-resources__hero-button {
        padding: 10px 20px;
        font-size: 0.95em;
    }
    .page-resources__section-title {
        font-size: 1.6em;
        margin-top: 30px;
        margin-bottom: 20px;
    }
    .page-resources__subsection-title {
        font-size: 1.3em;
    }
    .page-resources__text-content,
    .page-resources__value-item,
    .page-resources__article-abstract {
        font-size: 0.9em;
    }
    .page-resources__article-thumbnail {
        height: auto; /* Allow auto height for proportional scaling */
        max-width: 100%;
    }
    .page-resources__article-grid {
        gap: 15px;
    }
    .page-resources__cta-wrapper {
        flex-direction: column;
        gap: 15px;
    }
    .page-resources__cta-button {
        width: 100%;
        max-width: 280px; /* Constrain button width on mobile */
        margin: 0 auto;
    }
    /* Mobile content area image constraint for all images */
    .page-resources img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .page-resources__hero-title {
        font-size: 1.8em;
    }
    .page-resources__hero-content {
        padding: 15px;
    }
    .page-resources__section-title {
        font-size: 1.4em;
    }
    .page-resources__article-title {
        font-size: 1.1em;
    }
    .page-resources__read-more-button {
        padding: 8px 15px;
        font-size: 0.9em;
    }
}