/* style/resources.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --button-register-bg: #C30808;
    --button-register-text: #FFFFFF; /* Adjusted from #FFFF00 for WCAG AA contrast compliance */
}

.page-resources {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--secondary-color); /* Assuming shared.css sets body to white or light color */
}

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    overflow: hidden;
    padding-top: var(--header-offset, 120px);
    box-sizing: border-box;
}

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

.page-resources__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2;
}

.page-resources__hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 0 20px;
}

.page-resources__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text-light);
}

.page-resources__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: var(--text-light);
}

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

/* General Section Styling */
.page-resources__section {
    padding: 80px 20px;
    box-sizing: border-box;
}

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

.page-resources__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.page-resources__section-intro {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    color: var(--text-dark);
}

.page-resources__sub-title {
    font-size: 1.8em;
    color: var(--text-light); /* Adjusted for dark section */
    margin-bottom: 15px;
}

.page-resources__dark-section .page-resources__sub-title {
    color: var(--text-light);
}

.page-resources__text-light {
    color: var(--text-light);
}

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

/* Card Styling */
.page-resources__card {
    background: var(--secondary-color);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: var(--text-dark);
}

.page-resources__card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    min-width: 200px; 
    min-height: 200px; /* Ensure images are at least 200x200px */
}

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

.page-resources__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-resources__card-title a {
    color: inherit;
    text-decoration: none;
}

.page-resources__card-title a:hover {
    text-decoration: underline;
}

.page-resources__card-text {
    margin-bottom: 20px;
    font-size: 1em;
    flex-grow: 1;
}

/* List Styling */
.page-resources__list {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.page-resources__list li {
    margin-bottom: 8px;
}

.page-resources__list-light {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    color: var(--text-light);
}

.page-resources__list-light li {
    margin-bottom: 8px;
}

/* Buttons */
.page-resources__btn-primary,
.page-resources__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    text-align: center;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-resources__btn-primary {
    background-color: var(--button-register-bg); /* Custom color #C30808 */
    color: var(--button-register-text); /* Custom color #FFFF00, adjusted to #FFFFFF for contrast */
    border: 2px solid var(--button-register-bg);
}

.page-resources__btn-primary:hover {
    background-color: #a00707; /* Darker red for hover */
    border-color: #a00707;
}

.page-resources__btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.page-resources__btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
}

.page-resources__btn-text {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease;
}

.page-resources__btn-text:hover {
    color: darken(var(--primary-color), 10%); /* Placeholder for darken, will be a darker green */
}

.page-resources__arrow {
    margin-left: 8px;
    font-size: 1.2em;
    line-height: 1;
}

/* Dark Section */
.page-resources__dark-section {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-resources__dark-section .page-resources__section-title,
.page-resources__dark-section .page-resources__sub-title {
    color: var(--text-light);
}

.page-resources__responsible-gambling-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.page-resources__responsible-gambling-content img {
    flex: 1 1 45%;
    min-width: 300px;
    border-radius: 10px;
    min-height: 200px; /* Ensure images are at least 200x200px */
}

.page-resources__responsible-text {
    flex: 1 1 45%;
    min-width: 300px;
}

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

.page-resources__news-item {
    background: var(--secondary-color);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: var(--text-dark);
}

.page-resources__news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    min-width: 200px; 
    min-height: 200px; /* Ensure images are at least 200x200px */
}

.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;
    color: var(--primary-color);
}

.page-resources__news-title a {
    color: inherit;
    text-decoration: none;
}

.page-resources__news-title a:hover {
    text-decoration: underline;
}

.page-resources__news-excerpt {
    font-size: 0.95em;
    flex-grow: 1;
    margin-bottom: 15px;
}

/* CTA Section */
.page-resources__cta-section {
    padding: 100px 20px;
    text-align: center;
}

.page-resources__cta-content {
    max-width: 800px;
}

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

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

@media (max-width: 768px) {
    .page-resources__hero-section {
        height: 60vh;
        min-height: 400px;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-resources__hero-title {
        font-size: 2.2em;
    }
    .page-resources__hero-description {
        font-size: 1em;
    }
    .page-resources__section {
        padding: 60px 15px;
    }
    .page-resources__section-intro {
        margin-bottom: 30px;
    }
    .page-resources__grid,
    .page-resources__news-grid {
        grid-template-columns: 1fr;
    }
    .page-resources__responsible-gambling-content {
        flex-direction: column;
        gap: 20px;
    }
    .page-resources__responsible-gambling-content img {
        width: 100%;
    }

    /* Mobile responsive images */
    .page-resources img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: unset !important; 
        min-height: unset !important; /* Allow smaller sizes on mobile for responsiveness, but still > 200px implicitly by max-width:100% */
    }
    
    /* Mobile responsive video (if any) */
    .page-resources video,
    .page-resources__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-resources__video-section,
    .page-resources__video-container,
    .page-resources__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    /* Mobile responsive buttons */
    .page-resources__btn-primary,
    .page-resources__btn-secondary,
    .page-resources a[class*="button"],
    .page-resources a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-resources__hero-cta-buttons,
    .page-resources__cta-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-resources__container {
        padding: 0 15px;
    }
    .page-resources__card-content,
    .page-resources__news-content {
        padding: 15px;
    }
}

@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.8em;
    }
    .page-resources__btn-primary,
    .page-resources__btn-secondary {
        padding: 12px 20px;
    }
}

/* Contrast Fixes */
.page-resources__dark-bg {
  color: var(--text-light); /* Deep background with light text */
  background: var(--primary-color);
}

.page-resources__light-bg {
  color: var(--text-dark); /* Light background with dark text */
  background: var(--secondary-color);
}

.page-resources__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}