/* style/resources.css */

/* Base styles for the page content */
.page-resources {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default dark text for light body background */
    background-color: #FFFFFF; /* Explicitly set for content area */
}

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    background-color: #E0F2F7; /* Lighter shade of brand color for hero background */
    color: #333333;
    padding-top: var(--header-offset, 120px); /* Fixed header offset for desktop */
    overflow: hidden; /* Prevent image overflow */
}

.page-resources__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin-bottom: 30px;
}

.page-resources__hero-title {
    font-size: 2.8em;
    color: #26A9E0; /* Brand color for main title */
    margin-bottom: 20px;
    line-height: 1.2;
}

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

.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%;
    z-index: 1;
    opacity: 0.1; /* Subtle background image */
}

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

/* General Section Styles */
.page-resources__section {
    padding: 60px 20px;
    text-align: center;
    border-bottom: 1px solid #eeeeee;
}

.page-resources__section:last-of-type {
    border-bottom: none;
}

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

.page-resources__section-title {
    font-size: 2.2em;
    color: #26A9E0; /* Brand color for section titles */
    margin-bottom: 30px;
}

.page-resources__sub-title {
    font-size: 1.6em;
    color: #000000;
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-resources__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #333333;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.page-resources__text-block strong {
    color: #26A9E0; /* Highlight important keywords */
}

/* Image Grid */
.page-resources__image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
    justify-content: center;
}

.page-resources__image-item {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    min-height: 200px; /* Enforce minimum size */
}

.page-resources__image-full-width {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    margin-top: 30px;
    min-height: 400px; /* Enforce minimum size for large image */
}

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

.page-resources__card {
    background-color: #FFFFFF; /* Light background for cards */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px; /* Ensure cards have some minimum height */
    color: #333333;
}

.page-resources__card-title {
    font-size: 1.4em;
    color: #26A9E0; /* Brand color for card titles */
    margin-bottom: 15px;
}

.page-resources__card p {
    font-size: 1em;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Buttons */
.page-resources__btn-primary,
.page-resources__btn-secondary,
.page-resources__btn-link {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow word breaking */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    max-width: 100%; /* Ensure buttons don't overflow */
}

.page-resources__btn-primary {
    background-color: #26A9E0; /* Brand color */
    color: #FFFFFF;
    border: 2px solid #26A9E0;
}

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

.page-resources__btn-secondary {
    background-color: #FFFFFF;
    color: #26A9E0; /* Brand color text */
    border: 2px solid #26A9E0;
}

.page-resources__btn-secondary:hover {
    background-color: #F0F8FF;
    color: #1F8FC4;
    border-color: #1F8FC4;
}

.page-resources__btn-link {
    background: none;
    border: none;
    color: #26A9E0;
    padding: 0;
    text-decoration: underline;
    font-size: 1em;
    margin-top: 10px;
    display: block; /* Make link a block for better spacing in cards */
}

.page-resources__btn-link:hover {
    color: #1F8FC4;
}

/* Betting Info Section */
.page-resources__betting-info {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 50px;
    text-align: left;
}

.page-resources__betting-info--reverse {
    flex-direction: row-reverse;
}

.page-resources__betting-text {
    flex: 1;
}

.page-resources__betting-image-wrapper {
    flex: 1;
    min-width: 300px; /* Ensure image doesn't get too small */
}

.page-resources__betting-image-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    min-height: 250px; /* Enforce minimum size */
}

.page-resources__list {
    list-style: disc;
    padding-left: 25px;
    margin-top: 15px;
    color: #333333;
}

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

.page-resources__list li strong {
    color: #26A9E0;
}

/* Rules Section */
.page-resources__rules-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: left;
}

.page-resources__rules-item {
    background-color: #F8F8F8;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    color: #333333;
}

.page-resources__rules-item h3 {
    color: #26A9E0;
    margin-bottom: 15px;
}

/* FAQ Section */
.page-resources__faq-list {
    max-width: 900px;
    margin: 40px auto 0 auto;
    text-align: left;
}

.page-resources__faq-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    background-color: #FFFFFF;
    color: #333333;
}

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15em;
    font-weight: bold;
    cursor: pointer;
    background-color: #F9F9F9;
    color: #000000;
    transition: background-color 0.3s ease;
}

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

.page-resources__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    width: 24px;
    text-align: center;
    transition: transform 0.3s ease;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
    transform: rotate(45deg); /* Change + to X or similar */
}

.page-resources__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.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 {
    font-size: 1em;
    line-height: 1.5;
    color: #555555;
    margin-bottom: 10px;
}

/* Call to Action Section */
.page-resources__cta {
    background-color: #26A9E0; /* Brand color for CTA background */
    color: #FFFFFF;
    padding: 80px 20px;
}

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

.page-resources__cta .page-resources__text-block {
    color: #E0F2F7; /* Lighter text for contrast */
}

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

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

.page-resources__cta-buttons .page-resources__btn-primary {
    background-color: #EA7C07; /* Login/Register button color */
    border-color: #EA7C07;
}

.page-resources__cta-buttons .page-resources__btn-primary:hover {
    background-color: #D36A00;
    border-color: #D36A00;
}

.page-resources__cta-buttons .page-resources__btn-secondary {
    background-color: #FFFFFF;
    color: #26A9E0;
    border-color: #FFFFFF;
}

.page-resources__cta-buttons .page-resources__btn-secondary:hover {
    background-color: #F0F8FF;
    color: #1F8FC4;
    border-color: #F0F8FF;
}

.page-resources__cta-buttons .page-resources__btn-link {
    color: #FFFFFF;
    text-decoration: underline;
}

.page-resources__cta-buttons .page-resources__btn-link:hover {
    color: #E0F2F7;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 2.5em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
    .page-resources__betting-info {
        flex-direction: column;
        text-align: center;
    }
    .page-resources__betting-info--reverse {
        flex-direction: column;
    }
    .page-resources__betting-text,
    .page-resources__betting-image-wrapper {
        flex: none;
        width: 100%;
    }
    .page-resources__betting-text {
        order: 2; /* Reset order for text below image */
    }
    .page-resources__betting-image-wrapper {
        order: 1;
    }
    .page-resources__rules-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-resources__hero-section {
        padding: 60px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
    }

    .page-resources__hero-title {
        font-size: 1.8em;
    }

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

    .page-resources__section {
        padding: 40px 15px;
    }

    .page-resources__section-title {
        font-size: 1.6em;
    }

    .page-resources__sub-title {
        font-size: 1.3em;
    }

    .page-resources__text-block,
    .page-resources__card p,
    .page-resources__list li,
    .page-resources__faq-answer p {
        font-size: 0.95em;
        text-align: left;
    }

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

    .page-resources__image-item,
    .page-resources__image-full-width,
    .page-resources__betting-image-wrapper img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-resources__hero-image-wrapper,
    .page-resources__container,
    .page-resources__card,
    .page-resources__betting-info,
    .page-resources__rules-item,
    .page-resources__faq-item,
    .page-resources__cta-content,
    .page-resources__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-resources__hero-buttons,
    .page-resources__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
    }

    .page-resources__btn-primary,
    .page-resources__btn-secondary,
    .page-resources__btn-link {
        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__faq-question {
        padding: 15px 20px;
        font-size: 1.05em;
    }

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