.page-resources {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: #1a1a2e; /* Inherit from shared or specify if needed, ensure contrast */
}

.page-resources__hero-section {
    padding-top: var(--header-offset, 120px);
}

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

.page-resources__section-title {
    font-size: 2.5em;
    color: #ffffff;
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
    line-height: 1.2;
}

.page-resources__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #f0f0f0;
}

.page-resources__highlight {
    color: #FFFF00; /* Yellow for highlights */
    font-weight: bold;
}

.page-resources__code {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
    color: #FFFF00;
}

.page-resources a {
    color: #FFFF00; /* Links in content */
    text-decoration: underline;
}

.page-resources a:hover {
    color: #ffffff;
    text-decoration: none;
}

.page-resources__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 80px 20px;
    background-color: #017439;
    color: #ffffff;
}

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

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

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

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

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

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

.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);
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-resources__btn-primary {
    background-color: #C30808;
    color: #FFFF00;
    border: 2px solid #C30808;
}

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

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

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

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

.page-resources__dark-section {
    background-color: #1a1a2e;
    color: #ffffff;
}

.page-resources__light-bg .page-resources__section-title,
.page-resources__light-bg .page-resources__card-title,
.page-resources__light-bg .page-resources__text-block,
.page-resources__light-bg .page-resources__list li {
    color: #333333;
}

.page-resources__light-bg .page-resources__highlight {
    color: #017439;
}

.page-resources__light-bg .page-resources__code {
    background-color: rgba(0, 0, 0, 0.05);
    color: #C30808;
}

.page-resources__light-bg a {
    color: #017439;
}

.page-resources__light-bg a:hover {
    color: #333333;
}

.page-resources__video-section {
    padding: 60px 20px;
    text-align: center;
}

.page-resources__video-wrapper {
    max-width: 1000px;
    margin: 30px auto;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-resources__video-player {
    width: 100%;
    height: auto;
    display: block;
}

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

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

.page-resources__card {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: #f0f0f0;
}

.page-resources__light-bg .page-resources__card {
    background-color: #f8f8f8;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: #333333;
}

.page-resources__card:hover {
    transform: translateY(-5px);
}

.page-resources__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px;
    min-height: 200px;
}

.page-resources__card-title {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #FFFF00;
    font-weight: bold;
}

.page-resources__light-bg .page-resources__card-title {
    color: #017439;
}

.page-resources__card-text {
    font-size: 1em;
    margin-bottom: 15px;
}

.page-resources__list {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 15px;
    color: #f0f0f0;
}

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

.page-resources__list li {
    margin-bottom: 8px;
}

.page-resources__cta-buttons-inline {
    display: flex;
    gap: 10px;
    margin-top: auto;
    width: 100%;
    flex-wrap: wrap;
}

.page-resources__cta-buttons-inline .page-resources__btn-primary,
.page-resources__cta-buttons-inline .page-resources__btn-secondary {
    padding: 10px 20px;
    font-size: 0.95em;
    flex-grow: 1;
    text-align: center;
}

.page-resources__faq-list {
    margin-top: 30px;
}

.page-resources__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

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

.page-resources__faq-question:hover {
    background-color: #028e4a;
}

.page-resources__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #ffffff;
}

.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;
    padding: 15px 25px;
}

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

.page-resources__cta-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background-color: #017439;
    color: #ffffff;
    gap: 40px;
    flex-wrap: wrap;
}

.page-resources__cta-content {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.page-resources__cta-image-wrapper {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    text-align: center;
}

.page-resources__cta-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    min-width: 200px;
    min-height: 200px;
}

@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__card-title {
        font-size: 1.6em;
    }
}

@media (max-width: 768px) {
    .page-resources img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-resources video,
    .page-resources__video-player {
        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__introduction-section,
    .page-resources__methods-section,
    .page-resources__safety-section,
    .page-resources__faq-section,
    .page-resources__cta-section,
    .page-resources__video-section,
    .page-resources__video-container,
    .page-resources__video-wrapper,
    .page-resources__method-card,
    .page-resources__safety-card,
    .page-resources__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-resources__hero-section {
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-resources__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-resources__hero-title {
        font-size: 2.5em;
    }
    .page-resources__hero-description {
        font-size: 1em;
    }
    .page-resources__section-title {
        font-size: 1.8em;
    }
    .page-resources__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-resources__btn-primary,
    .page-resources__btn-secondary {
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }

    .page-resources__cta-buttons-inline {
        flex-direction: column;
        gap: 10px;
    }
    .page-resources__cta-buttons-inline .page-resources__btn-primary,
    .page-resources__cta-buttons-inline .page-resources__btn-secondary {
        width: 100% !important;
    }

    .page-resources__method-grid,
    .page-resources__safety-grid {
        grid-template-columns: 1fr;
    }

    .page-resources__cta-section {
        flex-direction: column;
        gap: 20px;
    }
    .page-resources__cta-content,
    .page-resources__cta-image-wrapper {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .page-resources__hero-title {
        font-size: 2em;
    }
    .page-resources__section-title {
        font-size: 1.5em;
    }
    .page-resources__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-resources__faq-answer {
        padding: 0 20px;
    }
    .page-resources__faq-item.active .page-resources__faq-answer {
        padding: 10px 20px;
    }
}