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

/* Sections */
.page-resources__hero-section,
.page-resources__video-section,
.page-resources__content-section,
.page-resources__faq-section,
.page-resources__cta-section {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
}

.page-resources__hero-section {
    text-align: center;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    background: linear-gradient(135deg, #26A9E0 0%, #000000 100%);
    color: #ffffff;
}

.page-resources__video-section {
    text-align: center;
    background-color: #000000;
    color: #ffffff;
    padding-top: 40px; /* Adjusted to not double header offset if hero already has it */
}

.page-resources__content-section {
    background-color: #000000; /* Dark background */
    color: #ffffff; /* Light text */
}

.page-resources__light-bg {
    background-color: #ffffff; /* Explicitly light background for some sections */
    color: #333333; /* Dark text for light background */
}

.page-resources__dark-bg {
    background-color: #000000; /* Explicitly dark background */
    color: #ffffff; /* Light text for dark background */
}

.page-resources__faq-section {
    background-color: #ffffff; /* Light background for FAQ */
    color: #333333; /* Dark text for light background */
}

.page-resources__cta-section {
    text-align: center;
    background: linear-gradient(45deg, #26A9E0 0%, #000000 100%);
    color: #ffffff;
}

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

/* Titles and Descriptions */
.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;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

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

.page-resources__light-bg .page-resources__section-title,
.page-resources__faq-section .page-resources__section-title {
    color: #26A9E0; /* Brand color on light background */
}
.page-resources__dark-bg .page-resources__section-title {
    color: #ffffff; /* White title on dark background */
}


.page-resources__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #cccccc; /* Lighter shade for description on dark background */
}
.page-resources__light-bg .page-resources__section-description {
    color: #555555; /* Darker shade for description on light background */
}


/* Buttons */
.page-resources__cta-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-resources__cta-single {
    text-align: center;
    margin-top: 40px;
}

.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;
    cursor: pointer;
    border: 2px solid;
    text-align: center;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-resources__btn-primary {
    background-color: #EA7C07; /* Login color */
    color: #ffffff;
    border-color: #EA7C07;
}

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

.page-resources__btn-secondary {
    background-color: transparent;
    color: #26A9E0; /* Primary brand color */
    border-color: #26A9E0;
}

.page-resources__btn-secondary:hover {
    background-color: #26A9E0;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Images */
.page-resources__hero-image,
.page-resources__cta-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.2; /* Subtle background image */
}

.page-resources__card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px 8px 0 0;
    margin-bottom: 15px;
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
}

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

.page-resources__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: 100%; /* Ensure video fits container */
    height: auto;
    display: block;
    cursor: pointer;
}

.page-resources__video-caption {
    font-size: 0.9em;
    color: #cccccc;
    margin-top: 10px;
}


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

/* Cards */
.page-resources__card {
    background-color: #222222; /* Dark card background */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    padding-bottom: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #ffffff; /* Light text for dark card */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-resources__light-bg .page-resources__card {
    background-color: #ffffff; /* Light card background */
    color: #333333; /* Dark text for light card */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
}

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

.page-resources__card-title {
    font-size: 1.5em;
    margin: 15px 15px 10px;
    font-weight: bold;
    color: #26A9E0; /* Brand color for card titles */
}
.page-resources__light-bg .page-resources__card-title {
    color: #26A9E0; /* Brand color for card titles on light background */
}
.page-resources__dark-bg .page-resources__card-title {
    color: #ffffff; /* White title on dark card */
}

.page-resources__card-text {
    font-size: 1em;
    margin: 0 15px 20px;
    flex-grow: 1;
    color: #cccccc; /* Lighter text for card content */
}
.page-resources__light-bg .page-resources__card-text {
    color: #555555; /* Darker text for card content on light background */
}

.page-resources__card-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: #26A9E0;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px;
    transition: background-color 0.3s ease;
    font-weight: bold;
}

.page-resources__card-link:hover {
    background-color: #1a7fb3;
}

/* FAQ Section */
.page-resources__faq-list {
    max-width: 900px;
    margin: 0 auto;
    border-top: 1px solid #eee;
}

.page-resources__faq-item {
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
}

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

.page-resources__faq-question:hover {
    color: #26A9E0;
}

.page-resources__faq-toggle {
    font-size: 1.5em;
    font-weight: normal;
    transition: transform 0.3s ease;
    color: #26A9E0;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
    transform: rotate(45deg);
}

.page-resources__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 15px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #555555;
}

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

.page-resources__faq-answer p {
    margin-bottom: 10px;
    font-size: 1em;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 2.8em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
    .page-resources__hero-description,
    .page-resources__section-description {
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    .page-resources__hero-section {
        padding: 60px 20px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile offset */
    }
    .page-resources__video-section {
        padding: 30px 20px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure video section has padding-top on mobile */
    }
    .page-resources__content-section,
    .page-resources__faq-section,
    .page-resources__cta-section {
        padding: 40px 15px;
    }

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

    /* Images responsive */
    .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 {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-resources__card-image {
        height: auto; /* Allow height to adjust for mobile */
    }

    /* Video responsive */
    .page-resources video,
    .page-resources__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-resources__video-section,
    .page-resources__video-container,
    .page-resources__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-resources__video-wrapper {
        padding-bottom: 56.25% !important; /* Maintain aspect ratio */
        height: 0 !important;
    }

    .page-resources__faq-question {
        font-size: 1.1em;
    }
}

@media (max-width: 480px) {
    .page-resources__hero-title {
        font-size: 1.8em;
    }
    .page-resources__section-title {
        font-size: 1.5em;
    }
    .page-resources__hero-description {
        font-size: 0.9em;
    }
    .page-resources__card-title {
        font-size: 1.3em;
    }
}