/* style/resources.css */

/* Base styles for the page content, ensuring contrast with dark body background */
.page-resources {
    color: #ffffff; /* Light text for dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: transparent; /* Assuming body handles the background */
}

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure space below fixed header */
    background: linear-gradient(135deg, #4A148C, #6A1B9A); /* Brand primary color gradient */
    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: 3.5em;
    color: #FFC107; /* Brand auxiliary color for emphasis */
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

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

.page-resources__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Subtle background image */
    filter: none; /* No color filters */
}

/* General Section Styling */
.page-resources__section {
    padding: 80px 20px;
    text-align: center;
    background-color: #1a1a1a; /* Dark background for sections */
    color: #ffffff;
}

.page-resources__dark-section {
    background-color: #0d0d0d; /* Even darker for contrast */
}

.page-resources__section-title {
    font-size: 2.8em;
    color: #FFC107;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.page-resources__section-description {
    font-size: 1.1em;
    color: #f0f0f0;
    max-width: 800px;
    margin: 0 auto 50px auto;
}

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

.page-resources__text-block {
    max-width: 800px;
    margin: 40px auto;
    text-align: left;
    font-size: 1.1em;
    color: #e0e0e0;
}

.page-resources__text-block a {
    color: #FFC107;
    text-decoration: underline;
}

/* Guide Cards */
.page-resources__guide-cards {
    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.05); /* Slightly transparent white for cards on dark bg */
    border-radius: 10px;
    padding: 25px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #ffffff; /* Card text color */
}

.page-resources__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-resources__card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    filter: none; /* No color filters */
}

.page-resources__card-title {
    font-size: 1.6em;
    color: #FFC107;
    margin-bottom: 15px;
    line-height: 1.3;
}

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

.page-resources__card-title a:hover {
    color: #FFD700; /* Lighter gold on hover */
}

.page-resources__card-text {
    font-size: 1em;
    color: #e0e0e0;
    margin-bottom: 20px;
    flex-grow: 1; /* Allows text to take up available space */
}

.page-resources__card-link {
    display: inline-block;
    background-color: #4A148C;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.page-resources__card-link:hover {
    background-color: #6A1B9A;
    transform: translateY(-2px);
}

/* Call to Action Buttons */
.page-resources__cta-button {
    display: inline-block;
    background-color: #FFC107; /* Auxiliary color for primary CTA */
    color: #4A148C; /* Dark text for light button */
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
    margin: 10px;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-resources__cta-button:hover {
    background-color: #FFD700; /* Lighter gold on hover */
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.page-resources__btn-primary {
    background-color: #4A148C; /* Primary brand color */
    color: #ffffff;
}

.page-resources__btn-primary:hover {
    background-color: #6A1B9A;
}

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

.page-resources__btn-secondary:hover {
    background-color: #FFC107;
    color: #4A148C;
}

.page-resources__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

/* FAQ Section */
.page-resources__faq-section {
    background-color: #4A148C; /* Primary brand color for FAQ section */
    color: #ffffff;
}

.page-resources__faq-list {
    max-width: 900px;
    margin: 50px auto 0 auto;
    text-align: left;
}

.page-resources__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 20px;
    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;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    color: #FFC107;
    background-color: rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

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

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

.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-out, padding 0.3s ease-out;
    color: #f0f0f0;
}

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

.page-resources__faq-answer p {
    margin-bottom: 15px;
    font-size: 1em;
    color: #e0e0e0;
}

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

.page-resources__faq-link:hover {
    color: #FFD700;
}


/* Responsible Gaming Section */
.page-resources__responsible-gaming {
    background-color: #1a1a1a;
}

.page-resources__responsible-gaming .page-resources__section-title {
    color: #FFC107;
}

.page-resources__responsible-gaming .page-resources__section-description {
    color: #f0f0f0;
}

.page-resources__responsible-gaming .page-resources__content-block {
    max-width: 900px;
    margin: 40px auto;
    text-align: left;
    font-size: 1.1em;
    color: #e0e0e0;
}

.page-resources__responsible-gaming .page-resources__content-block a {
    color: #FFC107;
    text-decoration: underline;
}

/* Call to Action at the bottom */
.page-resources__call-to-action {
    background: linear-gradient(135deg, #4A148C, #6A1B9A);
    padding: 80px 20px;
}

.page-resources__call-to-action .page-resources__section-title {
    color: #FFC107;
}

.page-resources__call-to-action .page-resources__section-description {
    color: #ffffff;
}

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

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

    .page-resources__guide-cards {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

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

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

    .page-resources__hero-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }

    .page-resources__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

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

    .page-resources__section-title {
        font-size: 2em;
        margin-bottom: 15px;
    }

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

    .page-resources__guide-cards {
        grid-template-columns: 1fr; /* Stack cards vertically */
        gap: 20px;
    }

    .page-resources__card {
        padding: 20px;
    }

    .page-resources__card-image {
        height: 200px;
    }

    .page-resources__card-title {
        font-size: 1.4em;
    }

    .page-resources__cta-button {
        font-size: 1.1em;
        padding: 12px 25px;
        width: 100% !important; /* Ensure buttons fit screen */
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin: 5px 0;
    }

    .page-resources__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

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

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

    /* Mobile image responsiveness */
    .page-resources img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-resources__section,
    .page-resources__card,
    .page-resources__container,
    .page-resources__hero-section,
    .page-resources__betting-guides,
    .page-resources__casino-tips,
    .page-resources__promotions-analysis,
    .page-resources__faq-section,
    .page-resources__responsible-gaming,
    .page-resources__call-to-action,
    .page-resources__hero-content,
    .page-resources__hero-image-wrapper,
    .page-resources__guide-cards,
    .page-resources__faq-list,
    .page-resources__content-block {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Specific padding for container on mobile to prevent content touching edges */
    .page-resources__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}