/* style/resources.css */

/* Base styles for the resources page */
.page-resources {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: transparent; /* Body background handled by shared.css */
}

/* Fixed Header Offset */
.page-resources__hero-section {
    padding-top: var(--header-offset, 120px);
}

/* General container for content sections */
.page-resources__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* Section styling */
.page-resources__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 60px;
    background: linear-gradient(135deg, #26A9E0, #1a1a2e); /* Blend brand color with body bg */
    color: #ffffff;
}

.page-resources__hero-content {
    max-width: 800px;
    margin-bottom: 40px;
}

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

.page-resources__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    opacity: 0.9;
}

.page-resources__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Constrain image width */
    margin-top: 20px;
}

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

.page-resources__intro-section,
.page-resources__tips-section,
.page-resources__responsible-gaming-section,
.page-resources__cta-section {
    padding: 80px 0;
}

.page-resources__dark-bg {
    background-color: #1a1a2e; /* Matches body background for consistency */
    color: #ffffff;
}

.page-resources__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 50px;
    color: #26A9E0; /* Brand color for titles */
    position: relative;
    padding-bottom: 15px;
}

.page-resources__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #26A9E0;
    border-radius: 2px;
}

.page-resources__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
    color: #f0f0f0; /* Slightly off-white for readability */
}

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

.page-resources__grid-2-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
    align-items: center;
}

/* Card styles */
.page-resources__card {
    background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white on dark bg */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    box-sizing: border-box;
}

.page-resources__card-image {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-resources__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #26A9E0; /* Brand color for card titles */
    min-height: 3em; /* Ensure consistent height for titles */
}

.page-resources__card-title a {
    color: #26A9E0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources__card-title a:hover {
    color: #ffffff;
}

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

/* Button styles */
.page-resources__btn-primary,
.page-resources__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-resources__btn-primary {
    background-color: #26A9E0;
    color: #ffffff;
    border: 2px solid #26A9E0;
    margin: 0 10px 10px 0;
}

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

.page-resources__btn-secondary {
    background-color: transparent;
    color: #26A9E0;
    border: 2px solid #26A9E0;
    margin: 0 10px 10px 0;
}

.page-resources__btn-secondary:hover {
    background-color: #26A9E0;
    color: #ffffff;
}

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

/* Content blocks for 2-column layout */
.page-resources__content-block {
    padding: 20px;
}

.page-resources__image-block {
    padding: 20px;
    text-align: center;
}

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

.page-resources__content-subtitle {
    font-size: 1.8em;
    color: #ffffff;
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-resources__content-subtitle a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources__content-subtitle a:hover {
    color: #26A9E0;
}

/* FAQ Section */
.page-resources__faq-list {
    margin-top: 30px;
}

.page-resources__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: #26A9E0;
    background-color: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    list-style: none;
}

.page-resources__faq-item summary::-webkit-details-marker {
    display: none;
}
.page-resources__faq-item summary::marker {
    display: none;
}

.page-resources__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: #ffffff;
    transition: transform 0.3s ease;
}

.page-resources__faq-item[open] .page-resources__faq-toggle {
    transform: rotate(45deg);
}

.page-resources__faq-answer {
    padding: 20px 25px;
    font-size: 1.1em;
    color: #e0e0e0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

/* --- Responsive Design --- */

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

/* Mobile devices */
@media (max-width: 768px) {
    .page-resources {
        font-size: 16px;
        line-height: 1.6;
    }

    /* Fixed header offset for mobile */
    .page-resources__hero-section {
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-resources__container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-resources__hero-section {
        flex-direction: column;
        padding-top: var(--header-offset, 120px);
        padding-bottom: 40px;
    }
}