/* style/resources.css */

/* Base styles for the page */
.page-resources {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Light background -> dark text */
    background-color: #ffffff; /* Body background */
}

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

.page-resources__section-title {
    font-size: 2.5em;
    color: #ffffff; /* Default for dark sections, overridden for light */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-resources__section-description {
    font-size: 1.1em;
    color: #e0e0e0; /* Default for dark sections, overridden for light */
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.page-resources__text-block {
    margin-bottom: 20px;
    font-size: 1em;
    color: #333333;
}

.page-resources__text-block--center {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources__content-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-resources__content-image--center {
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.page-resources__btn-primary,
.page-resources__btn-secondary {
    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;
    text-align: center;
    box-sizing: border-box; /* Crucial for button responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    max-width: 100%; /* Ensure button doesn't exceed container */
}

.page-resources__btn-primary {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

.page-resources__btn-primary:hover {
    background-color: #a30606;
    border-color: #a30606;
}

.page-resources__btn-secondary {
    background-color: #017439; /* Main brand color */
    color: #ffffff;
    border: 2px solid #017439;
    margin-left: 15px;
}

.page-resources__btn-secondary:hover {
    background-color: #005c2e;
    border-color: #005c2e;
}

/* Hero Section */
.page-resources__hero-section {
    padding: 100px 0 60px;
    background: linear-gradient(135deg, #017439, #005c2e); /* Brand color gradient */
    color: #ffffff;
    text-align: center;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

.page-resources__hero-content {
    max-width: 900px;
    margin: 0 auto;
}

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

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

.page-resources__hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.page-resources__hero-image-wrapper {
    margin-top: 60px;
}

.page-resources__hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Video Section */
.page-resources__video-section {
    background-color: #0d0d0d; /* Dark background for video */
    color: #ffffff;
    padding: 80px 0;
    text-align: center;
}

.page-resources__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-resources__video-wrapper .page-resources__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    cursor: pointer;
}

.page-resources__video-link {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

/* Intro Section */
.page-resources__intro-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.page-resources__intro-section .page-resources__section-title,
.page-resources__intro-section .page-resources__section-description {
    color: #017439;
}

/* Guides Section */
.page-resources__guides-section {
    padding: 80px 0;
    background-color: #f5f5f5; /* Light grey background */
}

.page-resources__guides-section .page-resources__section-title,
.page-resources__guides-section .page-resources__section-description {
    color: #017439;
}

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

.page-resources__card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.page-resources__card-title {
    font-size: 1.5em;
    color: #017439;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-resources__card-text {
    font-size: 1em;
    color: #333333;
    flex-grow: 1; /* Make sure text takes available space */
    margin-bottom: 20px;
}

.page-resources__card-link {
    display: inline-block;
    color: #017439;
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
    transition: color 0.3s ease;
}

.page-resources__card-link:hover {
    color: #005c2e;
    text-decoration: underline;
}

/* News Section */
.page-resources__news-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.page-resources__news-section .page-resources__section-title,
.page-resources__news-section .page-resources__section-description {
    color: #017439;
}

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

.page-resources__news-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-resources__news-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-resources__news-card h3 {
    padding: 20px 20px 0;
    flex-grow: 1;
}

.page-resources__news-title {
    font-size: 1.3em;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-resources__news-title a {
    color: #017439;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources__news-title a:hover {
    color: #005c2e;
    text-decoration: underline;
}

.page-resources__news-excerpt {
    font-size: 0.95em;
    color: #555555;
    padding: 0 20px 15px;
}

.page-resources__news-readmore {
    display: inline-block;
    color: #017439;
    text-decoration: none;
    font-weight: bold;
    padding: 0 20px 20px;
    transition: color 0.3s ease;
}

.page-resources__news-readmore:hover {
    color: #005c2e;
    text-decoration: underline;
}

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

.page-resources__faq-list {
    max-width: 900px;
    margin: 40px auto 0;
}

.page-resources__faq-item {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white */
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.05); /* Slightly darker for summary */
    transition: background-color 0.3s ease;
    list-style: none; /* Remove default marker */
}

.page-resources__faq-question::-webkit-details-marker {
    display: none; /* Remove default marker for webkit browsers */
}

.page-resources__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-resources__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
}

.page-resources__faq-answer {
    padding: 0 20px 20px;
    font-size: 1em;
    color: #f0f0f0;
}

.page-resources__faq-answer p {
    margin-bottom: 10px;
}

.page-resources__faq-answer a {
    color: #FFFF00; /* Highlight links in FAQ */
    text-decoration: underline;
}

/* Responsible Gambling Section */
.page-resources__responsible-gambling-section {
    padding: 80px 0;
    background-color: #f0f0f0;
}

.page-resources__responsible-gambling-section .page-resources__section-title,
.page-resources__responsible-gambling-section .page-resources__section-description {
    color: #017439;
}

.page-resources__grid--2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.page-resources__card--no-bg {
    background-color: transparent;
    box-shadow: none;
    padding: 0;
}

.page-resources__card--no-bg ul {
    list-style: disc;
    padding-left: 20px;
    margin-top: 15px;
    color: #333333;
}

.page-resources__card--no-bg li {
    margin-bottom: 10px;
}

.page-resources__card--no-bg strong {
    color: #017439;
}

/* CTA Section */
.page-resources__cta-section {
    padding: 80px 0;
    background-color: #0d0d0d; /* Dark background */
    color: #ffffff;
    text-align: center;
}

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

.page-resources__cta-container {
    max-width: 900px;
    margin: 0 auto;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 3em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
    .page-resources__grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .page-resources__grid--2-col {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-resources {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-resources__hero-section {
        padding: 80px 0 40px;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-resources__hero-title {
        font-size: 2.5em;
    }
    .page-resources__hero-description {
        font-size: 1.1em;
    }
    .page-resources__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-resources__btn-primary,
    .page-resources__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important; /* Remove margin for stacked buttons */
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .page-resources__section-title {
        font-size: 1.8em;
    }
    .page-resources__section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    /* Image responsiveness */
    .page-resources img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-resources__container,
    .page-resources__hero-content,
    .page-resources__video-section,
    .page-resources__intro-section,
    .page-resources__guides-section,
    .page-resources__news-section,
    .page-resources__faq-section,
    .page-resources__responsible-gambling-section,
    .page-resources__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    /* Video responsiveness */
    .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: 0px !important; /* Video wrapper can be full width */
        padding-right: 0px !important;
        overflow: hidden !important;
    }
    .page-resources__video-wrapper {
        padding-bottom: 56.25% !important; /* Maintain aspect ratio */
        margin: 20px auto !important;
    }

    .page-resources__grid {
        grid-template-columns: 1fr;
    }
    .page-resources__news-image {
        height: auto; /* Allow image to scale */
    }
    .page-resources__card,
    .page-resources__news-card,
    .page-resources__faq-item {
        padding: 15px;
    }
    .page-resources__faq-question {
        font-size: 1em;
        padding: 15px;
    }
    .page-resources__faq-answer {
        padding: 0 15px 15px;
    }
    .page-resources__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
}