/* style/resources.css */

/* Base Styles for the Page Content */
.page-resources {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Dark body background #121212, so light text */
    background-color: #121212; /* Ensure consistency with body background */
}

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    overflow: hidden; /* Prevent content overflow */
    background: linear-gradient(135deg, #017439 0%, #004d26 100%); /* Green gradient */
}

.page-resources__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin-bottom: 40px;
}

.page-resources__hero-title {
    font-size: 3.2em;
    color: #FFFF00; /* Register/Login font color */
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.page-resources__hero-description {
    font-size: 1.2em;
    color: #ffffff;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-resources__btn-primary,
.page-resources__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
}

.page-resources__btn-primary {
    background-color: #C30808; /* Register button color */
    color: #FFFF00; /* Register font color */
}

.page-resources__btn-primary:hover {
    background-color: #a00606;
    transform: translateY(-2px);
}

.page-resources__btn-secondary {
    background-color: #C30808; /* Login button color */
    color: #FFFF00; /* Login font color */
    border: 2px solid #FFFF00;
}

.page-resources__btn-secondary:hover {
    background-color: #a00606;
    border-color: #FFFF00;
    transform: translateY(-2px);
}

.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.2; /* Subtle background */
    filter: brightness(0.7); /* Adjust brightness without changing color */
}

/* Content Area */
.page-resources__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: #1a1a1a; /* Slightly lighter dark background for content sections */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.page-resources__content-area:last-of-type {
    border-bottom: none;
}

.page-resources__section-title {
    font-size: 2.5em;
    color: #FFFF00;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-resources__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #017439;
    border-radius: 2px;
}

.page-resources__sub-title {
    font-size: 1.8em;
    color: #017439;
    margin-top: 40px;
    margin-bottom: 20px;
    text-align: left;
}

.page-resources__text-block {
    font-size: 1.1em;
    color: #f0f0f0;
    margin-bottom: 25px;
    line-height: 1.8;
}

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

.page-resources__text-block a:hover {
    color: #017439;
}

.page-resources__highlight {
    color: #FFFF00;
    font-weight: bold;
}

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

.page-resources__list-item {
    font-size: 1.1em;
    color: #f0f0f0;
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
}

.page-resources__list-item::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: #017439;
    font-size: 1.2em;
    top: 0;
}

/* Image Cards */
.page-resources__image-card {
    background-color: #2a2a2a;
    border-radius: 10px;
    overflow: hidden;
    margin: 40px auto;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    max-width: 900px;
}

.page-resources__image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 200px; /* Ensure minimum size */
}

.page-resources__image-caption {
    padding: 15px 20px;
    font-size: 0.95em;
    color: #cccccc;
    text-align: center;
}

/* Call to Action Buttons within content */
.page-resources__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

/* FAQ Section */
.page-resources__faq {
    background-color: #121212;
    padding-bottom: 80px;
}

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

.page-resources__faq-item {
    background-color: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #017439; /* Primary brand color for question background */
    color: #ffffff;
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-resources__faq-question:hover {
    background-color: #004d26;
}

.page-resources__faq-question h3 {
    margin: 0;
    color: inherit; /* Inherit color from parent */
    flex-grow: 1;
}

.page-resources__faq-toggle {
    font-size: 1.8em;
    line-height: 1;
    margin-left: 20px;
    transition: transform 0.3s ease;
    color: #FFFF00; /* Yellow toggle icon */
}

.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;
    background-color: #2a2a2a; /* Slightly lighter background for answer */
    color: #cccccc;
}

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

.page-resources__faq-answer p {
    margin: 0;
    font-size: 1.05em;
    color: #cccccc;
}

.page-resources__faq-answer a {
    color: #FFFF00;
    text-decoration: underline;
}

.page-resources__faq-answer a:hover {
    color: #017439;
}

/* Final CTA Section */
.page-resources__cta-section {
    background: url('[GALLERY:bg_cta:1920x400:online_betting,action,link_bong_88_cta_bg]') no-repeat center center / cover;
    padding: 80px 20px;
    text-align: center;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.page-resources__cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Dark overlay */
    z-index: 1;
}

.page-resources__cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.page-resources__cta-title {
    font-size: 2.8em;
    color: #FFFF00;
    margin-bottom: 25px;
    line-height: 1.2;
}

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

.page-resources__btn-large {
    padding: 18px 40px;
    font-size: 1.3em;
    border-radius: 10px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 2.8em;
    }
    .page-resources__section-title {
        font-size: 2.2em;
    }
    .page-resources__sub-title {
        font-size: 1.6em;
    }
    .page-resources__cta-title {
        font-size: 2.4em;
    }
}

@media (max-width: 768px) {
    .page-resources__hero-section {
        padding: 60px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header spacing */
    }
    .page-resources__hero-title {
        font-size: 2.2em;
    }
    .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__btn-large {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-resources__content-area {
        padding: 40px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-resources__section-title {
        font-size: 2em;
        margin-bottom: 30px;
    }
    .page-resources__sub-title {
        font-size: 1.4em;
        margin-top: 30px;
    }
    .page-resources__text-block,
    .page-resources__list-item,
    .page-resources__image-caption {
        font-size: 0.95em;
    }

    /* Mobile image responsiveness */
    .page-resources img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-resources__image-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        margin-left: 0;
        margin-right: 0;
    }

    .page-resources__cta-section {
        padding: 60px 15px;
    }
    .page-resources__cta-title {
        font-size: 2em;
    }
    .page-resources__cta-description {
        font-size: 1em;
    }

    .page-resources__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-resources__faq-toggle {
        font-size: 1.5em;
    }
    .page-resources__faq-answer {
        padding: 15px 20px;
    }
    .page-resources__faq-item.active .page-resources__faq-answer {
        padding: 15px 20px !important;
    }
    .page-resources__faq-list {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .page-resources__hero-title {
        font-size: 1.8em;
    }
    .page-resources__section-title {
        font-size: 1.8em;
    }
    .page-resources__sub-title {
        font-size: 1.2em;
    }
    .page-resources__cta-title {
        font-size: 1.8em;
    }
    .page-resources__btn-primary,
    .page-resources__btn-secondary,
    .page-resources__btn-large {
        padding: 12px 20px;
        font-size: 1em;
    }
}