/* style/resources.css */

/* Base styles for the page content, ensuring it's below the fixed header */
.page-resources {
    padding-top: var(--header-offset, 120px); /* Ensures content starts below the fixed header */
    background-color: #FFFFFF; /* Light background as per body background info */
    color: #333333; /* Dark text for contrast on light background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    text-align: center;
    overflow: hidden; /* Ensure image doesn't overflow */
    padding: 80px 0 60px; /* Adjusted padding, header offset is already on main */
    background-color: #000000; /* Dark background for hero to contrast with content */
    color: #FFFFFF; /* Light text for contrast */
}

.page-resources__hero-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
}

.page-resources__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.5); /* Darken image to make text readable, NOT changing color */
    max-height: 600px; /* Limit hero image height */
}

.page-resources__hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 800px;
    z-index: 10;
    color: #FFFFFF;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-resources__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #FCBC45; /* Login button color for emphasis */
    line-height: 1.2;
}

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

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

.page-resources__button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    min-width: 150px; /* Ensure buttons are not too small */
    text-align: center;
    font-size: 1em;
}

.page-resources__button--register {
    background-color: #FFFFFF; /* Register button color */
    color: #000000;
    border: 2px solid #FFFFFF;
}

.page-resources__button--register:hover {
    background-color: transparent;
    color: #FFFFFF;
    border-color: #FFFFFF;
}

.page-resources__button--login {
    background-color: #FCBC45; /* Login button color */
    color: #000000;
    border: 2px solid #FCBC45;
}

.page-resources__button--login:hover {
    background-color: transparent;
    color: #FCBC45;
    border-color: #FCBC45;
}

/* Section Titles and Intros */
.page-resources__section-title {
    font-size: 2.5em;
    color: #000000;
    text-align: center;
    margin-bottom: 20px;
    padding-top: 40px;
}

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

/* Articles Grid Section */
.page-resources__articles-section {
    padding: 60px 0;
    background-color: #f8f8f8;
}

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

.page-resources__article-card {
    background-color: #FFFFFF;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    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-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    /* Ensure image is at least 200x200 */
    min-width: 200px; 
    min-height: 200px;
}

.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;
    color: #000000;
    line-height: 1.3;
    flex-grow: 1; /* Allow title to take available space */
}

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

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

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

.page-resources__button--read-more {
    background-color: #000000;
    color: #FFFFFF;
    border: 2px solid #000000;
    align-self: flex-start; /* Align to the start of the flex container */
    padding: 10px 20px;
    font-size: 0.9em;
}

.page-resources__button--read-more:hover {
    background-color: #FCBC45;
    border-color: #FCBC45;
    color: #000000;
}

/* Call to Action Section */
.page-resources__cta-section {
    background-color: #000000;
    color: #FFFFFF;
    padding: 80px 20px;
    text-align: center;
}

.page-resources__cta-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #FCBC45;
}

.page-resources__cta-description {
    font-size: 1.2em;
    max-width: 900px;
    margin: 0 auto 40px;
}

.page-resources__cta-actions {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-resources__button--register-large {
    background-color: #FFFFFF;
    color: #000000;
    border: 2px solid #FFFFFF;
    padding: 15px 35px;
    font-size: 1.1em;
}

.page-resources__button--register-large:hover {
    background-color: transparent;
    color: #FFFFFF;
    border-color: #FFFFFF;
}

.page-resources__button--download-app {
    background-color: #FCBC45;
    color: #000000;
    border: 2px solid #FCBC45;
    padding: 15px 35px;
    font-size: 1.1em;
}

.page-resources__button--download-app:hover {
    background-color: transparent;
    color: #FCBC45;
    border-color: #FCBC45;
}

/* About bet 365 Section */
.page-resources__about-bet365 {
    padding: 60px 0;
    background-color: #FFFFFF;
    color: #333333;
}

.page-resources__about-bet365 p {
    margin-bottom: 20px;
    font-size: 1em;
    color: #555555;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 2.8em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
    .page-resources__cta-title {
        font-size: 2.5em;
    }
}

@media (max-width: 768px) {
    .page-resources__hero-section {
        padding: 60px 0 40px;
    }
    .page-resources__hero-title {
        font-size: 2.2em;
    }
    .page-resources__hero-description {
        font-size: 1em;
    }
    .page-resources__hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-resources__button {
        width: 80%;
        max-width: 250px;
        margin: 0 auto;
    }

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

    .page-resources__article-card {
        margin: 0 10px;
    }

    .page-resources__section-title {
        font-size: 1.8em;
    }
    .page-resources__section-intro {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-resources__cta-title {
        font-size: 2em;
    }
    .page-resources__cta-description {
        font-size: 1em;
    }
    .page-resources__cta-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-resources__button--register-large,
    .page-resources__button--download-app {
        width: 80%;
        max-width: 280px;
        margin: 0 auto;
        font-size: 1em;
        padding: 12px 25px;
    }

    /* Mobile content image constraint */
    .page-resources img {
        max-width: 100%;
        height: auto;
    }
    .page-resources__article-image {
        height: auto; /* Allow image height to adjust for mobile */
        max-height: 300px; /* Optional: limit max height for article images */
    }
}

@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.6em;
    }
    .page-resources__cta-title {
        font-size: 1.8em;
    }
}

/* Ensure all content images are at least 200px wide/high */
.page-resources__article-image,
.page-resources__hero-image {
    min-width: 200px;
    min-height: 200px;
}
/* Ensure any img within page-resources is not scaled down below 200px by CSS. */
/* This rule is broad to cover all img elements within the main content area */
.page-resources img:not(.shared-logo):not(.shared-icon) { 
    /* The HTML width/height attributes are the primary source for layout slot dimensions */
    /* The max-width: 100%; height: auto; in media queries ensures responsiveness without shrinking below 200px if original is larger */
}