/* style/resources.css */
.page-resources {
    color: #ffffff; /* Default text color for dark body background */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

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

.page-resources__section-title {
    font-size: 2.5rem;
    color: #26A9E0;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-resources__text-block {
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensures content starts below fixed header */
    background-color: #0d0d0d; /* Assuming a dark background for hero */
    overflow: hidden;
}

.page-resources__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #ffffff;
    max-width: 800px;
}

.page-resources__hero-title {
    font-size: 3.8rem;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #FFFFFF;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

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

.page-resources__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.page-resources__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

/* Buttons */
.page-resources__btn-primary,
.page-resources__btn-secondary,
.page-resources__btn-link {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

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

.page-resources__btn-secondary {
    background-color: transparent;
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
}

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

.page-resources__btn-link {
    background-color: transparent;
    color: #26A9E0;
    border: none;
    padding: 0;
    font-size: 1rem;
    text-align: left;
}

.page-resources__btn-link:hover {
    text-decoration: underline;
}

/* Intro Section */
.page-resources__intro-section {
    padding: 80px 0;
    background-color: #f8f9fa; /* Light background for contrast */
    color: #333333;
}

/* Analysis Section */
.page-resources__analysis-section {
    padding: 80px 0;
    background-color: var(--dark-bg-1); /* Use shared dark background */
    color: #ffffff;
}

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

.page-resources__card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    color: #ffffff;
    display: flex;
    flex-direction: column;
}

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

.page-resources__card-image {
    width: 100%;
    height: 225px;
    object-fit: cover;
    display: block;
}

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

.page-resources__card-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #26A9E0;
}

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

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

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

/* Guides Section */
.page-resources__guides-section {
    padding: 80px 0;
    background-color: #26A9E0;
    color: #ffffff;
}

.page-resources__dark-section .page-resources__section-title {
    color: #ffffff;
}

.page-resources__dark-section .page-resources__text-block {
    color: #f0f0f0;
}

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

.page-resources__feature-item {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    color: #ffffff;
}

.page-resources__feature-title {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: #FFFFFF;
}

.page-resources__feature-description {
    font-size: 1rem;
    color: #f0f0f0;
}

.page-resources__button-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 50px;
    flex-wrap: wrap;
}

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

.page-resources__news-section .page-resources__section-title {
    color: #26A9E0;
}

.page-resources__news-section .page-resources__text-block {
    color: #555555;
}

.page-resources__news-section .page-resources__card {
    background-color: #ffffff;
    color: #333333;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.page-resources__news-section .page-resources__card-text {
    color: #555555;
}

/* Responsible Gaming Section */
.page-resources__responsible-gaming-section {
    padding: 80px 0;
    background-color: var(--dark-bg-1);
    color: #ffffff;
}

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

.page-resources__info-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    color: #ffffff;
}

.page-resources__info-title {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: #26A9E0;
}

.page-resources__info-description {
    font-size: 1rem;
    color: #e0e0e0;
    margin-bottom: 20px;
}

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

.page-resources__faq-section .page-resources__section-title {
    color: #26A9E0;
}

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

.page-resources__faq-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    color: #333333;
    background-color: #ffffff;
    transition: background-color 0.3s ease;
}

.page-resources__faq-question:hover {
    background-color: #f0f0f0;
}

.page-resources__faq-heading {
    margin: 0;
    font-size: 1.2rem;
    color: #333333;
}

.page-resources__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #26A9E0;
}

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

.page-resources__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #555555;
    font-size: 1rem;
    background-color: #fdfdfd;
}

.page-resources__faq-item.active .page-resources__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 25px;
}

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

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

.page-resources__cta-section .page-resources__section-title {
    color: #ffffff;
}

.page-resources__cta-section .page-resources__text-block {
    color: #f0f0f0;
    margin-bottom: 40px;
}

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

@media (max-width: 768px) {
    .page-resources__hero-section {
        flex-direction: column;
        text-align: center;
        padding: 40px 15px;
        min-height: 500px;
        padding-top: var(--header-offset, 120px) !important; /* Adjust for mobile header */
    }

    .page-resources__hero-content {
        order: 2;
        margin-top: 30px;
    }

    .page-resources__hero-image-wrapper {
        order: 1;
        position: relative;
        height: 250px;
        margin-bottom: 20px;
    }

    .page-resources__hero-title {
        font-size: 2.5rem;
    }

    .page-resources__hero-description {
        font-size: 1rem;
    }

    .page-resources__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    /* Mobile image responsiveness */
    .page-resources img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-resources__card-image {
        height: auto !important;
    }

    /* Mobile video responsiveness - no videos in this page, but keeping the rule */
    .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 button responsiveness */
    .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__cta-buttons,
    .page-resources__button-group,
    .page-resources__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
        flex-direction: column;
    }

    .page-resources__container,
    .page-resources__section,
    .page-resources__card,
    .page-resources__feature-item,
    .page-resources__info-item,
    .page-resources__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-resources__section-title {
        font-size: 1.8rem;
    }

    .page-resources__text-block,
    .page-resources__card-text,
    .page-resources__feature-description,
    .page-resources__info-description,
    .page-resources__faq-answer p {
        font-size: 0.95rem;
    }

    .page-resources__faq-question {
        padding: 15px 20px;
        font-size: 1.1rem;
    }

    .page-resources__faq-heading {
        font-size: 1.1rem;
    }

    .page-resources__faq-answer {
        padding: 0 20px;
    }

    .page-resources__faq-item.active .page-resources__faq-answer {
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    .page-resources__hero-title {
        font-size: 2rem;
    }
    .page-resources__section-title {
        font-size: 1.5rem;
    }
}