.page-resources {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: transparent; /* Body background is handled by shared.css (#1a1a1a) */
}

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

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 700px;
    padding: 80px 0;
    text-align: center;
    background-color: #017439; /* Brand color as background */
    color: #ffffff;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
    overflow: hidden;
}

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

.page-resources__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

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

.page-resources__hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-resources__btn-primary,
.page-resources__btn-secondary,
.page-resources__card-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

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

.page-resources__btn-primary:hover {
    background-color: #e02020;
    border-color: #e02020;
    color: #ffffff;
}

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

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

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

.page-resources__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Subtle overlay */
}

/* General Sections */
.page-resources__intro-section,
.page-resources__guides-section,
.page-resources__security-section,
.page-resources__promotions-section,
.page-resources__faq-section,
.page-resources__cta-section {
    padding: 60px 0;
    text-align: center;
}

.page-resources__dark-section {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter dark background for contrast */
    color: #ffffff;
}

.page-resources__section-title {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: #ffffff;
    font-weight: bold;
}

.page-resources__intro-section .page-resources__section-title {
    color: #ffffff;
}
.page-resources__guides-section .page-resources__section-title,
.page-resources__promotions-section .page-resources__section-title,
.page-resources__cta-section .page-resources__section-title {
    color: #017439; /* Use brand color for titles on light/transparent background */
}

.page-resources__text-block {
    font-size: 1.1em;
    max-width: 900px;
    margin: 0 auto 30px auto;
    color: #f0f0f0;
}
.page-resources__guides-section .page-resources__text-block,
.page-resources__promotions-section .page-resources__text-block,
.page-resources__cta-section .page-resources__text-block {
    color: #333333; /* Dark text for light/transparent background */
}

/* Guide Cards */
.page-resources__guide-cards,
.page-resources__promo-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources__card {
    background-color: #ffffff; /* White background for cards */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: left;
    text-decoration: none;
    color: #333333; /* Dark text for white cards */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 450px; /* Ensure cards have consistent height */
    box-sizing: border-box;
}

.page-resources__card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

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

.page-resources__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #017439; /* Brand color for card titles */
    font-weight: bold;
}

.page-resources__card-description {
    font-size: 1em;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1; /* Make description take available space */
}

.page-resources__card-link,
.page-resources__card-button {
    color: #C30808; /* Action color */
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    display: inline-block;
    margin-top: auto; /* Push link/button to bottom */
}

.page-resources__card-link:hover,
.page-resources__card-button:hover {
    text-decoration: underline;
}

/* Security Section */
.page-resources__security-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources__security-item {
    background-color: rgba(255, 255, 255, 0.1); /* Dark background for security items */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-resources__security-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
    filter: brightness(0) invert(1); /* Ensure icons are white on dark background if they are originally dark */
}

.page-resources__security-subtitle {
    font-size: 1.6em;
    margin-bottom: 15px;
    color: #ffffff;
    font-weight: bold;
}

.page-resources__security-section .page-resources__text-block {
    color: #f0f0f0;
}

.page-resources__btn-center {
    margin-top: 40px;
    display: inline-block;
}

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

.page-resources__faq-item {
    background-color: rgba(255, 255, 255, 0.08); /* Dark background for FAQ items */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 5px 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: #ffffff;
    background-color: rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
}

.page-resources__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

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

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

.page-resources__faq-answer p {
    margin: 0;
    color: #f0f0f0;
}

/* CTA Section */
.page-resources__cta-section {
    background-color: #017439; /* Brand color as background */
    color: #ffffff;
    padding: 80px 0;
}

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

.page-resources__cta-section .page-resources__text-block {
    color: #f0f0f0;
}

.page-resources__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 3em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-resources {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-resources__container {
        padding: 0 15px;
    }

    .page-resources__hero-section {
        min-height: 500px;
        padding: 60px 0;
        padding-top: var(--header-offset, 120px) !important; /* Ensure space for fixed header on mobile */
    }

    .page-resources__hero-title {
        font-size: 2.2em;
    }

    .page-resources__hero-description {
        font-size: 1.1em;
    }

    .page-resources__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-resources__btn-primary,
    .page-resources__btn-secondary,
    .page-resources__card-button {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-resources__section-title {
        font-size: 1.8em;
    }

    .page-resources__text-block {
        font-size: 1em;
    }

    .page-resources__guide-cards,
    .page-resources__promo-cards {
        grid-template-columns: 1fr;
    }

    .page-resources__card {
        padding: 20px;
        min-height: auto;
    }

    .page-resources__card-image {
        height: 180px;
    }

    .page-resources__card-title {
        font-size: 1.3em;
    }

    .page-resources__security-content {
        grid-template-columns: 1fr;
    }

    .page-resources__security-item {
        padding: 25px;
    }

    .page-resources__security-icon {
        width: 80px;
        height: 80px;
    }

    .page-resources__security-subtitle {
        font-size: 1.4em;
    }

    .page-resources__faq-question {
        font-size: 1.1em;
        padding: 18px 20px;
    }

    .page-resources__faq-answer {
        padding: 0 20px;
    }

    .page-resources__faq-item.active .page-resources__faq-answer {
        padding: 15px 20px 20px 20px;
    }

    /* Mobile image responsiveness */
    .page-resources img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-resources__hero-image-wrapper,
    .page-resources__guide-cards,
    .page-resources__promo-cards,
    .page-resources__security-content,
    .page-resources__faq-list,
    .page-resources__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Prevent horizontal scroll */
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-resources__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-resources__card {
        margin-left: 0;
        margin-right: 0;
    }
}