:root {
    --primary-color: #1A2B4C;
    --secondary-color: #FFD700;
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-dark: #121212; /* From shared.css body background */
    --card-bg-dark: rgba(255, 255, 255, 0.08); /* Slightly transparent white on dark bg */
    --card-bg-light: #ffffff;
    --border-color: rgba(255, 255, 255, 0.15);
}

.page-resources {
    background-color: var(--bg-dark); /* Ensure consistency with body background */
    color: var(--text-light); /* Light text on dark body background */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

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

.page-resources__container--center {
    text-align: center;
}

/* --- Hero Section --- */
.page-resources__hero-section {
    position: relative;
    padding: 80px 0;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
    background-color: var(--primary-color); /* Dark blue background */
    text-align: center;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.page-resources__hero-section .page-resources__container {
    z-index: 1;
}

.page-resources__main-title {
    font-size: 3.2em;
    font-weight: 700;
    color: var(--secondary-color); /* Gold title for prominence */
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-resources__hero-description {
    font-size: 1.2em;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto 40px auto;
    line-height: 1.5;
}

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

.page-resources__cta-button {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    text-align: center;
}

.page-resources__btn-primary {
    background-color: var(--secondary-color); /* Gold button */
    color: var(--primary-color); /* Dark blue text on gold */
    border: 2px solid var(--secondary-color);
}

.page-resources__btn-primary:hover {
    background-color: #e6c200; /* Darker gold */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.page-resources__btn-secondary {
    background-color: transparent;
    color: var(--secondary-color); /* Gold text */
    border: 2px solid var(--secondary-color);
}

.page-resources__btn-secondary:hover {
    background-color: var(--secondary-color); /* Gold background on hover */
    color: var(--primary-color); /* Dark blue text on gold */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

/* --- General Section Styles --- */
.page-resources__guides-section,
.page-resources__news-section,
.page-resources__faq-section {
    padding: 60px 0;
    background-color: var(--bg-dark); /* Consistent dark background */
    color: var(--text-light);
}

.page-resources__strategy-section,
.page-resources__responsible-gaming-section,
.page-resources__call-to-action-section {
    padding: 60px 0;
    background-color: var(--primary-color); /* Dark blue background for contrast sections */
    color: var(--text-light);
}

.page-resources__section-title {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 25px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.page-resources__section-intro {
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px auto;
}

/* --- Grid Layouts --- */
.page-resources__grid {
    display: grid;
    gap: 30px;
    margin-top: 40px;
}

.page-resources__grid--3-cols {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

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

/* --- Card Styles --- */
.page-resources__card {
    background-color: var(--card-bg-light); /* White background for cards on dark sections */
    color: var(--text-dark); /* Dark text on white card background */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-resources__card--dark {
    background-color: var(--card-bg-dark); /* Slightly transparent white on dark blue sections */
    color: var(--text-light); /* Light text on dark card background */
    border: 1px solid var(--border-color);
}

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

.page-resources__card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistent card image display */
    object-fit: cover;
    display: block;
    border-bottom: 1px solid var(--border-color);
}

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

.page-resources__card-title {
    font-size: 1.4em;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-resources__card-title .page-resources__card-link {
    color: var(--text-dark); /* Dark text for links on light cards */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources__card--dark .page-resources__card-title .page-resources__card-link {
    color: var(--text-light); /* Light text for links on dark cards */
}

.page-resources__card-title .page-resources__card-link:hover {
    color: var(--secondary-color); /* Gold on hover */
}

.page-resources__card-text {
    font-size: 0.95em;
    margin-bottom: 20px;
    line-height: 1.5;
    flex-grow: 1;
    color: rgba(0, 0, 0, 0.7); /* Slightly muted dark text */
}

.page-resources__card--dark .page-resources__card-text {
    color: rgba(255, 255, 255, 0.7); /* Slightly muted light text */
}

.page-resources__card-button {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    background-color: var(--primary-color); /* Dark blue button */
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
    align-self: flex-start;
}

.page-resources__card--dark .page-resources__card-button {
    background-color: var(--secondary-color); /* Gold button on dark cards */
    color: var(--primary-color); /* Dark blue text on gold */
}

.page-resources__card-button:hover {
    background-color: var(--secondary-color); /* Gold on hover */
    color: var(--primary-color);
    transform: translateY(-1px);
}

.page-resources__card--dark .page-resources__card-button:hover {
    background-color: #e6c200; /* Darker gold on hover */
    color: var(--primary-color);
}

/* --- Content Blocks (for Responsible Gaming) --- */
.page-resources__content-block {
    background-color: var(--card-bg-dark);
    color: var(--text-light);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid var(--border-color);
}

.page-resources__content-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-resources__content-subtitle {
    font-size: 1.8em;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.page-resources__content-text {
    font-size: 1em;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 25px;
}

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

.page-resources__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--card-bg-light); /* White background for FAQ items */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background-color: var(--card-bg-light);
    color: var(--text-dark); /* Dark text on light background */
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

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

.page-resources__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 1.15em;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: var(--primary-color); /* Dark blue for question titles */
}

.page-resources__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: var(--primary-color);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
    color: var(--secondary-color); /* Gold when active */
    transform: rotate(45deg); /* Rotate plus to cross */
}

.page-resources__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
    padding: 0 25px;
    opacity: 0;
    background-color: #f9f9f9;
    color: var(--text-dark);
}

.page-resources__faq-item.active .page-resources__faq-answer {
    max-height: 2000px !important; /* Sufficiently large to contain any content */
    padding: 20px 25px !important;
    opacity: 1;
    border-top: 1px solid #e0e0e0;
    border-radius: 0 0 8px 8px;
}

.page-resources__faq-answer p {
    margin: 0;
    font-size: 1em;
    line-height: 1.6;
    color: var(--text-dark);
}

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

@media (max-width: 768px) {
    .page-resources__hero-section {
        padding: 60px 0;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-resources__main-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }
    .page-resources__hero-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-resources__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px; /* Add padding to prevent buttons from touching edges */
    }
    .page-resources__cta-button {
        width: 100%;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 25px;
        font-size: 1em;
    }

    .page-resources__section-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }
    .page-resources__section-intro {
        font-size: 0.95em;
        margin-bottom: 30px;
        padding: 0 15px;
    }

    .page-resources__grid {
        gap: 20px;
        padding: 0 15px;
    }
    .page-resources__grid--3-cols,
    .page-resources__grid--2-cols {
        grid-template-columns: 1fr; /* Single column on mobile */
    }

    .page-resources__card-image {
        height: 200px;
    }
    .page-resources__card-content {
        padding: 20px;
    }
    .page-resources__card-title {
        font-size: 1.2em;
    }
    .page-resources__card-text {
        font-size: 0.9em;
    }
    .page-resources__card-button {
        padding: 8px 15px;
        font-size: 0.9em;
    }

    .page-resources__content-block {
        padding: 25px;
    }
    .page-resources__content-image {
        margin-bottom: 20px;
    }
    .page-resources__content-subtitle {
        font-size: 1.5em;
    }
    .page-resources__content-text {
        font-size: 0.95em;
    }

    .page-resources__faq-list {
        padding: 0 15px;
    }
    .page-resources__faq-question {
        padding: 15px 20px;
    }
    .page-resources__faq-question h3 {
        font-size: 1em;
    }
    .page-resources__faq-toggle {
        font-size: 24px;
        width: 25px;
        height: 25px;
    }
    .page-resources__faq-answer {
        padding: 0 20px;
    }
    .page-resources__faq-item.active .page-resources__faq-answer {
        padding: 15px 20px !important;
    }

    /* Mobile image/video/button adaptation */
    .page-resources img,
    .page-resources video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-resources__section,
    .page-resources__card,
    .page-resources__container,
    .page-resources__content-block,
    .page-resources__faq-item,
    .page-resources__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Ensure no overflow */
        /* Padding handled by specific sections or .page-resources__grid */
    }
}