/* style/resources.css */

/* --- General Styles --- */
.page-resources {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light body background */
    background-color: #f9f9f9; /* Light background for the page content */
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

.page-resources__section-title {
    font-size: 36px;
    color: #000080; /* Dark blue for main titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-resources__section-description {
    font-size: 18px;
    color: #555555;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.page-resources__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #FFD700; /* Gold primary color */
    color: #000080; /* Dark blue text for contrast */
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-resources__cta-button:hover {
    background: #e6c200; /* Slightly darker gold on hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-resources__text-link {
    color: #000080; /* Dark blue for text links */
    text-decoration: underline;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-resources__text-link:hover {
    color: #FFD700; /* Gold on hover */
}

/* --- Color Contrast Classes --- */
.page-resources__light-bg {
    background-color: #ffffff; /* White background */
    color: #333333; /* Dark text */
}

.page-resources__dark-bg {
    background-color: #000080; /* Dark blue background */
    color: #ffffff; /* White text */
}

.page-resources__dark-bg .page-resources__section-title,
.page-resources__dark-bg .page-resources__section-description,
.page-resources__dark-bg h3 {
    color: #ffffff;
}

/* --- Hero Section --- */
.page-resources__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-bottom: 60px; /* Adjust padding-top handled by main element */
    background-color: #000080; /* Dark blue background for hero */
    color: #ffffff;
    overflow: hidden; /* Ensure image doesn't overflow */
}

.page-resources__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.page-resources__hero-image {
    width: 100%;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.page-resources__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-resources__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 0 20px;
}

.page-resources__hero-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #FFD700; /* Gold title for hero */
    line-height: 1.2;
}

.page-resources__hero-description {
    font-size: 22px;
    line-height: 1.5;
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

/* --- Intro Section --- */
.page-resources__intro-section {
    padding-top: 80px;
    padding-bottom: 80px;
}

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

.page-resources__feature-item {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.page-resources__feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-resources__feature-item img {
    max-width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    width: 100%; /* Ensure image takes full width of its container */
}

.page-resources__feature-item h3 {
    font-size: 24px;
    color: #000080;
    margin-bottom: 15px;
}

.page-resources__feature-item p {
    font-size: 16px;
    color: #555555;
}

/* --- Latest Updates Section --- */
.page-resources__latest-updates {
    padding-top: 80px;
    padding-bottom: 80px;
}

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

.page-resources__news-card {
    background: #1a1a51; /* Slightly lighter dark blue for cards */
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-resources__news-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.page-resources__news-content {
    padding: 25px;
    color: #ffffff;
}

.page-resources__news-title {
    font-size: 22px;
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-resources__news-title a {
    color: #FFD700; /* Gold for news titles */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources__news-title a:hover {
    color: #e6c200; /* Slightly darker gold on hover */
}

.page-resources__news-excerpt {
    font-size: 15px;
    color: #cccccc;
    margin-bottom: 15px;
}

.page-resources__news-date {
    font-size: 14px;
    color: #aaaaaa;
    display: block;
}

.page-resources__view-all-button-container {
    text-align: center;
    margin-top: 60px;
}

/* --- Strategy Guides Section --- */
.page-resources__strategy-guides {
    padding-top: 80px;
    padding-bottom: 80px;
}

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

.page-resources__guide-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources__guide-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-resources__guide-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.page-resources__guide-content {
    padding: 25px;
}

.page-resources__guide-title {
    font-size: 22px;
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-resources__guide-title a {
    color: #000080; /* Dark blue for guide titles */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources__guide-title a:hover {
    color: #FFD700; /* Gold on hover */
}

.page-resources__guide-content p {
    font-size: 15px;
    color: #555555;
}

/* --- Safe Gaming Section --- */
.page-resources__safe-gaming {
    padding-top: 80px;
    padding-bottom: 80px;
}

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

.page-resources__safety-item {
    background: #1a1a51; /* Slightly lighter dark blue for cards */
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    padding: 30px;
    text-align: center;
    color: #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-resources__safety-item img {
    max-width: 100%;
    
    object-fit: contain; /* Use contain for icons/logos */
    border-radius: 8px;
    margin-bottom: 20px;
    filter: brightness(1.1); /* Slightly brighten for visibility on dark blue */
}

.page-resources__safety-item h3 {
    font-size: 24px;
    color: #FFD700; /* Gold for safety feature titles */
    margin-bottom: 15px;
}

.page-resources__safety-item p {
    font-size: 16px;
    color: #cccccc;
    margin-bottom: 20px;
}

/* --- FAQ Section --- */
.page-resources__faq-section {
    padding-top: 80px;
    padding-bottom: 80px;
}

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

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

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-resources__faq-item.active .page-resources__faq-question {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    background-color: #f0f0f0;
}

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

.page-resources__faq-question:active {
    background: #eeeeee;
}

.page-resources__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: #000080; /* Dark blue for FAQ question titles */
    pointer-events: none;
}

.page-resources__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: #FFD700; /* Gold for toggle icon */
    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: 32px;
    height: 32px;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
    color: #000080; /* Dark blue when active */
    transform: rotate(45deg); /* Rotate for minus sign visual */
}

.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, opacity 0.4s ease;
    padding: 0 25px;
    opacity: 0;
    background: #fcfcfc;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.page-resources__faq-item.active .page-resources__faq-answer {
    max-height: 2000px !important;
    padding: 20px 25px !important;
    opacity: 1;
}

.page-resources__faq-answer p {
    margin: 0;
    font-size: 16px;
    color: #555555;
}

/* --- CTA Banner Section --- */
.page-resources__cta-banner {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(135deg, #000080, #1a1a51); /* Gradient dark blue */
    color: #ffffff;
}

.page-resources__cta-banner .page-resources__container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.page-resources__cta-content {
    flex: 1;
    text-align: left;
}

.page-resources__cta-title {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #FFD700; /* Gold title */
    line-height: 1.2;
}

.page-resources__cta-description {
    font-size: 20px;
    line-height: 1.5;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-resources__cta-image {
    flex: 0 0 auto; /* Don't grow or shrink */
    width: 400px; /* Fixed width for desktop */
    max-width: 100%;
}

.page-resources__cta-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-resources__section-title {
        font-size: 32px;
    }
    .page-resources__hero-title {
        font-size: 42px;
    }
    .page-resources__hero-description {
        font-size: 20px;
    }
    .page-resources__cta-title {
        font-size: 38px;
    }
    .page-resources__cta-description {
        font-size: 18px;
    }
    .page-resources__cta-banner .page-resources__container {
        flex-direction: column;
        text-align: center;
    }
    .page-resources__cta-content {
        text-align: center;
    }
    .page-resources__cta-image {
        width: 80%;
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .page-resources {
        font-size: 16px;
        line-height: 1.6;
        padding-top: var(--header-offset, 120px) !important; /* Ensure content is not hidden by fixed header on mobile */
    }
    .page-resources__container {
        padding: 30px 15px;
    }
    .page-resources__section-title {
        font-size: 28px;
        margin-bottom: 15px;
    }
    .page-resources__section-description {
        font-size: 16px;
        margin-bottom: 30px;
    }

    /* Hero */
    .page-resources__hero-section {
        padding-bottom: 40px;
    }
    .page-resources__hero-image {
        margin-bottom: 20px;
    }
    .page-resources__hero-image img {
        border-radius: 8px;
    }
    .page-resources__hero-content {
        padding: 0 15px;
    }
    .page-resources__hero-title {
        font-size: 34px;
        margin-bottom: 10px;
    }
    .page-resources__hero-description {
        font-size: 17px;
        margin-bottom: 20px;
    }
    .page-resources__cta-button {
        padding: 12px 30px;
        font-size: 16px;
        width: 100%;
        max-width: 300px; /* Limit button width for better appearance */
        box-sizing: border-box;
        white-space: normal;
        word-wrap: break-word;
    }

    /* All images and image containers must be responsive */
    .page-resources img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box;
    }
    .page-resources__feature-item img,
    .page-resources__news-card img,
    .page-resources__guide-card img,
    .page-resources__safety-item img,
    .page-resources__cta-image img {
        height: auto !important; /* Allow height to adjust */
        max-height: 250px; /* Max height for content images */
    }

    /* All content sections/cards/containers must be responsive */
    .page-resources__intro-section,
    .page-resources__latest-updates,
    .page-resources__strategy-guides,
    .page-resources__safe-gaming,
    .page-resources__faq-section,
    .page-resources__cta-banner {
        padding-left: 0;
        padding-right: 0;
    }
    .page-resources__feature-item,
    .page-resources__news-card,
    .page-resources__guide-card,
    .page-resources__safety-item {
        padding: 20px;
        margin: 0 15px 20px 15px; /* Add horizontal margin for spacing */
    }

    .page-resources__feature-grid,
    .page-resources__news-grid,
    .page-resources__guide-grid,
    .page-resources__safety-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 20px;
    }

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

    .page-resources__cta-banner .page-resources__container {
        gap: 20px;
    }
    .page-resources__cta-content {
        padding: 0 15px;
    }
    .page-resources__cta-title {
        font-size: 30px;
    }
    .page-resources__cta-description {
        font-size: 16px;
    }
    .page-resources__cta-image {
        width: 90%;
    }
}