.page-resources {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #ffffff; /* Default body background */
}

/* Header offset for main content */
.page-resources__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

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

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

.page-resources__section-title {
    font-size: 3em;
    color: #26A9E0;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

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

.page-resources__section-subtitle {
    font-size: 2em;
    color: #26A9E0;
    text-align: center;
    margin-bottom: 30px;
}

.page-resources__section-subtitle--white {
    color: #ffffff;
}

/* Hero Section */
.page-resources__hero-section {
    background-color: #26A9E0; /* Brand primary color */
    color: #ffffff;
    text-align: center;
    padding-bottom: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

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

.page-resources__intro-text {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

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

.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-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

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

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

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

.page-resources__btn-secondary:hover {
    background-color: #f0f8ff;
    color: #1e87c0;
    border-color: #1e87c0;
}

.page-resources__btn-link {
    display: inline-block;
    color: #26A9E0;
    text-decoration: none;
    font-weight: bold;
    margin-top: 20px;
    transition: color 0.3s ease;
}

.page-resources__btn-link:hover {
    color: #1e87c0;
    text-decoration: underline;
}

/* Content Wrapper & Grid */
.page-resources__content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
}

.page-resources__content-wrapper--reverse {
    flex-direction: row-reverse;
}

.page-resources__content-wrapper .page-resources__image-wrapper,
.page-resources__content-wrapper .page-resources__text-content {
    flex: 1;
}

.page-resources__text-content p {
    margin-bottom: 15px;
}

.page-resources__content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.page-resources__grid-item {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    color: #333333;
}

.page-resources__dark-section .page-resources__grid-item {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.page-resources__grid-title {
    font-size: 1.5em;
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-resources__dark-section .page-resources__grid-title {
    color: #ffffff;
}

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

.page-resources__feature-item {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    color: #333333;
}

.page-resources__feature-title {
    font-size: 1.3em;
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: 600;
}

/* Image styles */
.page-resources__image-wrapper {
    text-align: center;
}

.page-resources__image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    display: block; /* Ensure it behaves as a block element */
    margin: 0 auto; /* Center image if smaller than container */
}

/* Video styles */
.page-resources__video-section {
    padding: 60px 0;
    text-align: center;
}

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

.page-resources__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    max-width: 100%; /* Ensure video does not overflow */
    display: block;
    cursor: pointer;
}

.page-resources__video-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

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

/* FAQ Section */
.page-resources__faq-list {
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #ffffff;
}

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.15);
    transition: background-color 0.3s ease;
}

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

.page-resources__faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: #ffffff;
    font-weight: 600;
}

.page-resources__faq-toggle {
    font-size: 1.8em;
    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;
    background-color: rgba(255, 255, 255, 0.05);
}

.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;
}

.page-resources__faq-more-btn {
    margin-top: 40px;
}

/* Call to Action Section */
.page-resources__cta-section {
    background-color: #f0f8ff; /* Light background for contrast */
    text-align: center;
    padding: 80px 0;
}

.page-resources__cta-content {
    max-width: 900px;
}

.page-resources__cta-title {
    font-size: 2.5em;
    color: #26A9E0;
    margin-bottom: 20px;
    font-weight: bold;
}

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

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

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

    .page-resources__hero-section {
        min-height: 350px;
        padding-bottom: 40px;
    }

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

    .page-resources__intro-text {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-resources__cta-buttons {
        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;
    }

    .page-resources__content-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .page-resources__content-wrapper .page-resources__image-wrapper,
    .page-resources__content-wrapper .page-resources__text-content {
        flex: none;
        width: 100%;
    }

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

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

    .page-resources__section-title {
        font-size: 1.8em;
        margin-bottom: 25px;
    }

    .page-resources__section-subtitle {
        font-size: 1.3em;
        margin-bottom: 15px;
    }

    .page-resources__image {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-resources__image-wrapper,
    .page-resources__video-section,
    .page-resources__video-container,
    .page-resources__video-wrapper,
    .page-resources__cta-section,
    .page-resources__section,
    .page-resources__faq-list,
    .page-resources__faq-item,
    .page-resources__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    
    .page-resources__video-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure video section starts below header on mobile */
    }

    .page-resources__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

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

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

    .page-resources__faq-question {
        padding: 15px 20px;
    }

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

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

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

/* Ensure no filter on images */
.page-resources img {
    filter: none !important;
}