.page-resources {
    /* General styles for the resources page */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: #111111; /* Body background from shared.css */
}

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

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust height as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    box-sizing: border-box;
}

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

.page-resources__hero-video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.page-resources__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 1;
}

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

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

.page-resources__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-resources__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Ensure buttons wrap on small screens */
}

.page-resources__cta-buttons--center {
    justify-content: center;
}

.page-resources__btn-primary,
.page-resources__btn-secondary,
.page-resources__btn-tertiary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%; /* For responsiveness */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text break */
}

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

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

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

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

.page-resources__btn-tertiary {
    background-color: #017439; /* Main color */
    color: #ffffff;
    border: 2px solid #017439;
    padding: 10px 20px;
    font-size: 0.9em;
}

.page-resources__btn-tertiary:hover {
    background-color: #005a2e;
    border-color: #005a2e;
}


/* General Section Styles */
.page-resources__section {
    padding: 60px 0;
    text-align: center;
}

.page-resources__dark-bg {
    background-color: #1a1a1a; /* Slightly lighter than body for contrast */
    color: #ffffff;
}

.page-resources__light-bg {
    background-color: #f8f8f8;
    color: #333333;
}

.page-resources__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    font-weight: bold;
    color: inherit; /* Inherit color from parent section */
}

.page-resources__section-description {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: inherit;
}

.page-resources__text-block {
    max-width: 900px;
    margin: 20px auto;
    font-size: 1.05em;
    line-height: 1.7;
    text-align: justify;
    color: inherit;
}

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

.page-resources__guide-card,
.page-resources__resource-item {
    background-color: #2a2a2a; /* Card background for dark sections */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: left;
    display: flex;
    flex-direction: column;
    height: 100%;
    color: #ffffff; /* Text color for cards in dark sections */
}

.page-resources__light-bg .page-resources__guide-card,
.page-resources__light-bg .page-resources__resource-item {
    background-color: #ffffff; /* Card background for light sections */
    color: #333333; /* Text color for cards in light sections */
    border: 1px solid #e0e0e0;
}

.page-resources__card-image,
.page-resources__item-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-resources__card-title,
.page-resources__item-title {
    font-size: 1.5em;
    font-weight: bold;
    margin: 20px 20px 10px 20px;
    color: inherit;
}

.page-resources__card-title a,
.page-resources__item-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.page-resources__card-title a:hover,
.page-resources__item-title a:hover {
    color: #017439; /* Brand color on hover */
}

.page-resources__card-text,
.page-resources__item-text {
    font-size: 1em;
    padding: 0 20px;
    margin-bottom: 20px;
    flex-grow: 1; /* Make sure text blocks take available space */
    color: inherit;
}

.page-resources__guide-card .page-resources__btn-tertiary,
.page-resources__resource-item .page-resources__btn-tertiary {
    margin: 0 20px 20px 20px;
    align-self: flex-start;
    width: auto;
}

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

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

.page-resources__faq-item {
    background-color: #2a2a2a; /* FAQ item background */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: #ffffff; /* FAQ text color */
}

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    background-color: #017439; /* Question background with brand color */
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.page-resources__faq-question:hover {
    background-color: #005a2e;
}

.page-resources__faq-heading {
    font-size: 1.2em;
    margin: 0;
    color: #ffffff;
}

.page-resources__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #ffffff;
    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, padding 0.3s ease;
    color: #f0f0f0;
}

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

.page-resources__faq-answer p {
    margin-bottom: 10px;
    color: inherit;
}

.page-resources__faq-answer a {
    color: #FFFF00; /* Link color for FAQ answers */
    text-decoration: underline;
}

.page-resources__faq-answer a:hover {
    color: #e01010; /* Hover color for FAQ answers */
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 2.8em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
    .page-resources__guide-grid,
    .page-resources__resource-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

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

    .page-resources__container {
        padding: 0 15px; /* Adjust padding for mobile */
    }

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

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

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

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

    .page-resources__btn-primary,
    .page-resources__btn-secondary,
    .page-resources__btn-tertiary {
        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__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 {
        display: flex;
        flex-direction: column;
    }

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

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

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

    .page-resources__card-image,
    .page-resources__item-image {
        height: 200px; /* Adjust image height for mobile */
    }

    /* Mobile image and video responsiveness */
    .page-resources img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-resources__section,
    .page-resources__card,
    .page-resources__container,
    .page-resources__hero-section,
    .page-resources__guide-card,
    .page-resources__resource-item,
    .page-resources__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-resources__hero-video-wrapper {
        position: relative !important;
        height: 0 !important;
        padding-bottom: 56.25% !important; /* 16:9 aspect ratio */
        max-width: 100% !important;
        width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }
    .page-resources__hero-video {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        transform: none !important;
    }

    /* FAQ item padding for mobile */
    .page-resources__faq-question,
    .page-resources__faq-answer {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-resources__hero-title {
        font-size: 1.8em;
    }
    .page-resources__section-title {
        font-size: 1.5em;
    }
    .page-resources__hero-section {
        height: 400px;
    }
}

/* Ensure content area images are at least 200px */
.page-resources__guide-card img,
.page-resources__resource-item img {
    min-width: 200px;
    min-height: 200px;
}
/* Ensure no CSS filters are used */
.page-resources img {
    filter: none;
}