/* style/resources.css */

/* --- General Styles for page-resources --- */
.page-resources {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: var(--dark-bg-lighter); /* Inherited from shared.css */
}

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

.page-resources__section-title {
    font-size: 2.5em;
    color: #26A9E0; /* Brand color for titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-resources__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #f0f0f0; /* Slightly lighter white for description */
}

/* --- Hero Section --- */
.page-resources__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    color: #ffffff;
    text-align: center;
    padding: 100px 20px 60px 20px; /* Adjust padding for fixed header */
    padding-top: var(--header-offset, 120px); /* Ensure content is below header */
    overflow: hidden; /* For image */
}

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

.page-resources__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5); /* Darken background image for text readability */
}

.page-resources__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.page-resources__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #FFFFFF;
    line-height: 1.2;
}

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

.page-resources__hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* --- Buttons --- */
.page-resources__btn-primary,
.page-resources__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

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

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

.page-resources__btn-secondary:hover {
    background-color: #26A9E0;
    color: #ffffff;
}

/* Specific button for login/register (promo link) */
a.page-resources__btn-primary[href*="plink_id"] {
    background-color: #EA7C07; /* Login color */
    border-color: #EA7C07;
}
a.page-resources__btn-primary[href*="plink_id"]:hover {
    background-color: #d16e06;
    border-color: #d16e06;
}
a.page-resources__btn-secondary[href*="plink_id"] {
    color: #EA7C07; /* Login color */
    border-color: #EA7C07;
}
a.page-resources__btn-secondary[href*="plink_id"]:hover {
    background-color: #EA7C07;
    color: #ffffff;
}

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

.page-resources__dark-section {
    background-color: #1a1a1a; /* Darker background for contrast, manually chosen to be dark */
    color: #ffffff;
}

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

.page-resources__card {
    background-color: #2a2a2a; /* Card background, dark to contrast with text */
    border-radius: 12px;
    overflow: hidden;
    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;
    color: #ffffff;
}

.page-resources__card:hover {
    transform: translateY(-10px);
    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;
    display: block;
}

.page-resources__card-title {
    font-size: 1.5em;
    padding: 20px 25px 10px 25px;
    font-weight: bold;
    color: #26A9E0; /* Brand color for card titles */
}

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

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

.page-resources__card-text {
    padding: 0 25px 15px 25px;
    color: #e0e0e0;
    flex-grow: 1; /* Make text take available space */
}

.page-resources__card-link {
    display: inline-block;
    padding: 10px 25px 20px 25px;
    color: #26A9E0;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-resources__card-link:hover {
    color: #4ac6ff;
    text-decoration: underline;
}

/* --- Video Section --- */
.page-resources__video-section {
    padding: 80px 0;
    background-color: var(--dark-bg-lighter); /* Keep consistent with body */
}

.page-resources__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin-bottom: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.page-resources__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    cursor: pointer;
    display: block; /* Ensure no extra space below video */
}

.page-resources__video-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2; /* Make clickable overlay above video controls */
    cursor: pointer;
}

.page-resources__video-cta {
    margin-top: 20px;
}

/* --- Responsible Gambling Section --- */
.page-resources__responsible-gambling-section {
    padding: 80px 0;
    background-color: #1a1a1a; /* Darker background */
    color: #ffffff;
}

.page-resources__responsible-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    margin-top: 50px;
}

.page-resources__responsible-image {
    flex: 1;
    min-width: 300px;
    max-width: 50%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-resources__responsible-text {
    flex: 1;
    min-width: 300px;
    max-width: 50%;
}

.page-resources__responsible-text h3 {
    font-size: 2em;
    color: #26A9E0;
    margin-bottom: 20px;
}

.page-resources__responsible-text ul {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.page-resources__responsible-text li {
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 10px;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 1.1em;
    color: #e0e0e0;
}

.page-resources__responsible-text li a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s ease;
}
.page-resources__responsible-text li a:hover {
    color: #26A9E0;
}

/* --- FAQ Section --- */
.page-resources__faq-section {
    padding: 80px 0;
    background-color: var(--dark-bg-lighter); /* Keep consistent with body */
}

.page-resources__faq-list {
    max-width: 900px;
    margin: 50px auto 0 auto;
    border-radius: 12px;
    overflow: hidden;
}

.page-resources__faq-item {
    background-color: #2a2a2a; /* Card background */
    margin-bottom: 15px;
    border-radius: 8px;
    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;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: #26A9E0;
    background-color: #3a3a3a; /* Slightly lighter than card background */
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

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

.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: #e0e0e0;
}

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

.page-resources__faq-answer p {
    margin-bottom: 0;
}

.page-resources__faq-cta {
    margin-top: 40px;
    text-align: center;
}

/* --- Explore More Section --- */
.page-resources__explore-more {
    padding: 80px 0;
    background-color: #1a1a1a; /* Darker background */
}

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

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 3em;
    }
    .page-resources__hero-description {
        font-size: 1.2em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
    .page-resources__section-description {
        font-size: 1em;
    }
    .page-resources__responsible-image,
    .page-resources__responsible-text {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .page-resources {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-resources__hero-section {
        min-height: 450px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }
    .page-resources__hero-title {
        font-size: 2.5em;
    }
    .page-resources__hero-description {
        font-size: 1em;
    }
    .page-resources__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-resources__btn-primary,
    .page-resources__btn-secondary,
    .page-resources a[class*="button"],
    .page-resources a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px; /* Adjust padding for smaller buttons */
    }
    .page-resources__cta-buttons,
    .page-resources__button-group,
    .page-resources__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }
    .page-resources__cta-buttons {
        flex-direction: column;
    }

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

    .page-resources__intro-section,
    .page-resources__video-section,
    .page-resources__responsible-gambling-section,
    .page-resources__faq-section,
    .page-resources__explore-more {
        padding: 60px 0;
    }

    .page-resources__card {
        margin: 0 15px; /* Add some side padding for cards */
    }

    /* Images responsiveness */
    .page-resources img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-resources__hero-image-wrapper,
    .page-resources__card,
    .page-resources__responsible-content,
    .page-resources__video-wrapper,
    .page-resources__faq-list,
    .page-resources__explore-cards {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-resources__card-image {
        height: 200px; /* Adjust card image height for mobile */
    }

    /* Video responsiveness */
    .page-resources video,
    .page-resources__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-resources__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-resources__video-wrapper {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .page-resources__video-link-overlay {
        position: absolute; /* Re-apply absolute positioning for overlay */
    }

    .page-resources__responsible-image {
        max-width: 100%;
        margin-bottom: 20px;
    }
    .page-resources__responsible-text {
        max-width: 100%;
    }
    .page-resources__responsible-text ul {
        padding-left: 0;
    }
    .page-resources__responsible-text li {
        padding: 12px 15px;
        font-size: 1em;
    }

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

@media (max-width: 480px) {
    .page-resources__hero-title {
        font-size: 2em;
    }
    .page-resources__hero-description {
        font-size: 0.9em;
    }
    .page-resources__hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
    .page-resources__btn-primary,
    .page-resources__btn-secondary {
        padding: 10px 15px;
    }
    .page-resources__section-title {
        font-size: 1.5em;
    }
    .page-resources__card-title {
        font-size: 1.3em;
    }
}