/* style/resources.css */

/* --- General Page Styles --- */
.page-resources {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #f8f8f8; /* Light background for the page content */
}

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

.page-resources__section {
    padding: 60px 0;
    text-align: center;
}

.page-resources__section-title {
    font-size: 36px;
    color: #0A2463;
    margin-bottom: 20px;
    font-weight: bold;
}

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

.page-resources__section-description {
    font-size: 18px;
    color: #555555;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-resources__center-content {
    text-align: center;
}

/* --- 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); /* Fixed header spacing */
    overflow: hidden; /* Prevent image 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;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-resources__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: cover;
}

.page-resources__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text readability */
    border-radius: 8px;
    margin-top: -80px; /* Overlap with image slightly */
}

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

.page-resources__intro-description {
    font-size: 20px;
    color: #ffffff;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

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

.page-resources__cta-button--secondary {
    background: #0A2463; /* Primary color for secondary CTA */
    color: #FFD700; /* Gold text for contrast */
    border: 2px solid #FFD700;
}

.page-resources__cta-button--secondary:hover {
    background: #1a3a7c; /* Slightly darker blue on hover */
    border-color: #e6c200;
}

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

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

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

/* --- Card Styles --- */
.page-resources__card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 420px; /* Ensure consistent card height */
}

.page-resources__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-resources__card img {
    width: 100%;
    height: 200px; /* Fixed height for consistent image display */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-resources__card-title {
    font-size: 24px;
    color: #0A2463;
    margin-bottom: 15px;
    font-weight: bold;
}

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

.page-resources__card-title a:hover {
    color: #FFD700;
}

.page-resources__card-text {
    font-size: 16px;
    color: #555555;
    line-height: 1.7;
    flex-grow: 1; /* Allow text to take available space */
}

.page-resources__button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.page-resources__button--secondary {
    background: #FFD700;
    color: #0A2463;
    border: 2px solid transparent;
}

.page-resources__button--secondary:hover {
    background: #e6c200;
    color: #0A2463;
}

.page-resources__button--tertiary {
    background: none;
    color: #FFD700;
    border: 2px solid #FFD700;
}

.page-resources__button--tertiary:hover {
    background: #FFD700;
    color: #0A2463;
}

/* --- Dark Background Section Styles --- */
.page-resources__dark-bg {
    background: #0A2463;
    color: #ffffff;
}

/* --- Feature List (Security Section) --- */
.page-resources__feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: center;
}

.page-resources__feature-item {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 30px;
    transition: background-color 0.3s ease;
}

.page-resources__feature-item:hover {
    background: rgba(255, 255, 255, 0.15);
}

.page-resources__feature-item img {
    width: 200px; /* Minimum display size */
    height: 200px; /* Minimum display size */
    object-fit: contain;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%; /* Ensure responsiveness */
}

.page-resources__feature-title {
    font-size: 22px;
    color: #FFD700;
    margin-bottom: 15px;
}

.page-resources__feature-text {
    font-size: 16px;
    color: #f0f0f0;
    line-height: 1.7;
}

/* --- Responsible Gaming Section --- */
.page-resources__section--responsible-gaming .page-resources__grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    text-align: left;
}

.page-resources__text-block {
    padding-right: 30px;
}

.page-resources__text-block-title {
    font-size: 28px;
    color: #0A2463;
    margin-bottom: 20px;
}

.page-resources__text-block ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-resources__text-block li {
    margin-bottom: 15px;
    font-size: 17px;
    color: #555555;
    position: relative;
    padding-left: 25px;
}

.page-resources__text-block li::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: #FFD700;
    font-size: 18px;
    line-height: 1;
}

.page-resources__text-block li a {
    color: #0A2463;
    text-decoration: none;
    font-weight: 600;
}

.page-resources__text-block li a:hover {
    text-decoration: underline;
    color: #FFD700;
}

.page-resources__image-wrapper img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* --- FAQ Section --- */
.page-resources__section--faq {
    background-color: #f0f0f0;
}

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

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

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

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

.page-resources__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: #0A2463;
    pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-resources__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: #FFD700;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none; /* Prevent icon from blocking click event */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
    color: #0A2463;
    transform: rotate(180deg); /* Rotate for minus sign */
}

.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;
    text-align: left;
    color: #555555;
}

.page-resources__faq-item.active .page-resources__faq-answer {
    max-height: 2000px !important; /* Sufficiently large max-height */
    padding: 20px 25px !important;
    opacity: 1;
    background: #fcfcfc;
    border-top: 1px solid #e0e0e0;
}

.page-resources__faq-answer p {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
}

/* --- Latest News Section --- */
.page-resources__news-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: flex-start;
    text-align: left;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources__news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-resources__news-card img {
    width: 250px; /* Fixed width for news thumbnail */
     /* Fixed height */
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 0; /* No border-radius here as it's part of a larger card */
}

.page-resources__news-content {
    padding: 20px;
    flex-grow: 1;
}

.page-resources__news-title {
    font-size: 20px;
    color: #0A2463;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-resources__news-title a {
    color: #0A2463;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources__news-title a:hover {
    color: #FFD700;
}

.page-resources__news-date {
    font-size: 14px;
    color: #777777;
    margin-bottom: 10px;
}

.page-resources__news-summary {
    font-size: 15px;
    color: #555555;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* --- CTA Section at Bottom --- */
.page-resources__section--cta {
    background: linear-gradient(135deg, #0A2463, #1a3a7c);
    color: #ffffff;
    padding: 80px 0;
}

.page-resources__section--cta .page-resources__section-title {
    color: #FFD700;
}

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

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

.page-resources__btn-primary {
    background: #FFD700;
    color: #0A2463;
    border: none;
}

.page-resources__btn-primary:hover {
    background: #e6c200;
    color: #0A2463;
}

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

.page-resources__btn-secondary:hover {
    background: #FFD700;
    color: #0A2463;
}


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

    .page-resources__container {
        padding: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

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

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

    /* Hero Section Mobile */
    .page-resources__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 30px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-resources__hero-image {
        margin-bottom: 20px;
        border-radius: 8px;
    }

    .page-resources__hero-content {
        margin-top: -60px; /* Adjust overlap */
        padding: 15px;
    }

    .page-resources__main-title {
        font-size: 32px;
        margin-bottom: 15px;
    }

    .page-resources__intro-description {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .page-resources__cta-button {
        padding: 12px 25px;
        font-size: 18px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    
    /* Image responsiveness */
    .page-resources img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    .page-resources__grid {
        grid-template-columns: 1fr; /* Single column for grids */
        gap: 20px;
    }

    .page-resources__card {
        padding: 20px;
        min-height: auto; /* Allow height to adjust */
    }

    .page-resources__card img {
         /* Adjust image height for mobile cards */
    }

    .page-resources__card-title {
        font-size: 20px;
    }

    .page-resources__feature-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-resources__feature-item {
        padding: 20px;
    }

    /* No specific width/height override for feature-item img, relying on max-width: 100% and container width */
    /* As per requirement, images should not display smaller than 200px. The grid ensures container is > 200px. */

    .page-resources__feature-title {
        font-size: 20px;
    }

    .page-resources__section--responsible-gaming .page-resources__grid {
        grid-template-columns: 1fr; /* Single column for responsive gaming section */
    }

    .page-resources__text-block {
        padding-right: 0;
        margin-bottom: 30px;
    }

    .page-resources__text-block-title {
        font-size: 24px;
    }

    /* FAQ Mobile */
    .page-resources__faq-question {
        padding: 15px 20px;
        flex-wrap: wrap;
    }
    
    .page-resources__faq-question h3 {
        font-size: 16px;
        width: calc(100% - 40px); /* Adjust width to make space for toggle */
    }
    
    .page-resources__faq-toggle {
        font-size: 24px;
        width: 28px;
        height: 28px;
        margin-left: 10px;
    }
    
    .page-resources__faq-answer {
        padding: 0 20px;
    }
    
    .page-resources__faq-item.active .page-resources__faq-answer {
        padding: 15px 20px !important;
    }

    /* News Card Mobile */
    .page-resources__news-card {
        flex-direction: column; /* Stack image and content */
    }

    .page-resources__news-card img {
        width: 100%;
        height: 200px;
        border-radius: 8px 8px 0 0;
    }

    .page-resources__news-content {
        padding: 15px;
    }

    .page-resources__news-title {
        font-size: 18px;
    }

    .page-resources__news-date {
        font-size: 13px;
    }

    .page-resources__news-summary {
        font-size: 14px;
    }

    /* CTA Button Group Mobile */
    .page-resources__button-group {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
    }

    .page-resources__button-group .page-resources__cta-button {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* Ensure no CSS filters are used for images */
.page-resources img {
    filter: none !important;
}