.page-resources {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: var(--background-color, #ffffff); /* Inherit from shared, default to white */
}

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height */
    min-height: 500px; /* Minimum height for smaller screens */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-resources__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

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

.page-resources__hero-content {
    position: relative;
    z-index: 3;
    color: #ffffff;
    max-width: 900px;
    padding: 0 20px;
}

.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.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-resources__hero-cta {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

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

.page-resources__dark-bg {
    background-color: #26A9E0; /* Main brand color */
    color: #ffffff;
}

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

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

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

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

/* Buttons */
.page-resources__btn-primary,
.page-resources__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1em;
    box-sizing: border-box; /* Ensure padding doesn't affect total width */
    text-align: center;
}

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

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

.page-resources__btn-secondary {
    background-color: transparent;
    color: #ffffff; /* White text for dark hero, #26A9E0 for light background */
    border: 2px solid #ffffff; /* White border for dark hero */
}

.page-resources__dark-bg .page-resources__btn-secondary {
    color: #ffffff;
    border-color: #ffffff;
}
.page-resources__light-bg .page-resources__btn-secondary {
    color: #26A9E0;
    border-color: #26A9E0;
}


.page-resources__btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}
.page-resources__light-bg .page-resources__btn-secondary:hover {
    background-color: #26A9E0;
    color: #ffffff;
}

.page-resources__btn-center {
    margin-top: 20px;
    margin-left: auto;
    margin-right: auto;
    display: block; /* Make it a block element to center with margin auto */
    max-width: 250px; /* Limit width for centering */
}


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

.page-resources__intro-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    text-align: left;
    transition: transform 0.3s ease;
    height: 100%; /* Ensure cards are same height */
    display: flex;
    flex-direction: column;
}

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

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

.page-resources__intro-card .page-resources__card-title {
    font-size: 1.5em;
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-resources__intro-card .page-resources__card-text {
    font-size: 1em;
    color: #555555;
    flex-grow: 1; /* Make text take available space */
}

/* Content Wrapper for Text & Image */
.page-resources__content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
    margin-top: 50px;
}

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

.page-resources__text-content {
    flex: 1;
    min-width: 300px;
}

.page-resources__image-content {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-resources__content-image {
    width: 100%;
    height: auto;
    max-width: 800px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.page-resources__text-content p {
    margin-bottom: 15px;
    font-size: 1.1em;
    color: inherit; /* Inherit from section */
}

.page-resources__text-content .page-resources__btn-primary {
    margin-top: 20px;
}

.page-resources__list {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    color: inherit;
}

.page-resources__list li {
    margin-bottom: 10px;
    font-size: 1.05em;
}

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

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

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #ffffff;
    border-bottom: 1px solid #eeeeee;
    transition: background-color 0.3s ease;
}

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

.page-resources__faq-heading {
    margin: 0;
    font-size: 1.2em;
    color: #26A9E0;
    font-weight: bold;
}

.page-resources__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: #26A9E0;
    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, padding 0.3s ease;
    background-color: #f8f8f8;
    color: #555555;
}

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

.page-resources__faq-answer p {
    margin: 0;
    font-size: 1em;
    color: #555555;
}

/* Other Resources Grid */
.page-resources__resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.page-resources__resource-card {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: left;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.page-resources__resource-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.page-resources__resource-card .page-resources__card-title {
    font-size: 1.4em;
    color: #26A9E0;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-resources__resource-card .page-resources__card-text {
    font-size: 0.95em;
    color: #666666;
    flex-grow: 1;
}

/* CTA Section */
.page-resources__cta-section {
    padding: 60px 0;
    text-align: center;
    background-color: #26A9E0; /* Brand color background */
    color: #ffffff;
}

.page-resources__cta-section .page-resources__section-title {
    color: #ffffff;
    margin-bottom: 15px;
}

.page-resources__cta-section .page-resources__section-description {
    color: #f0f0f0;
    margin-bottom: 30px;
}

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

/* Links within text */
.page-resources p a,
.page-resources li a,
.page-resources__faq-answer a {
    color: #EA7C07; /* Login color for text links */
    text-decoration: underline;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-resources p a:hover,
.page-resources li a:hover,
.page-resources__faq-answer a:hover {
    color: #d16b06;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 3em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
    .page-resources__content-wrapper {
        flex-direction: column;
        text-align: center;
    }
    .page-resources__content-wrapper--reverse {
        flex-direction: column; /* Revert for small screens */
    }
    .page-resources__text-content,
    .page-resources__image-content {
        min-width: unset;
        width: 100%;
    }
    .page-resources__list {
        text-align: left;
        margin-left: 0; /* Remove left margin for better mobile layout */
        padding-left: 20px; /* Add padding for bullet points */
    }
}

@media (max-width: 768px) {
    .page-resources {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-resources__hero-section {
        height: auto;
        padding-top: var(--header-offset, 120px);
        min-height: 400px;
    }
    .page-resources__hero-title {
        font-size: 2.2em;
    }
    .page-resources__hero-description {
        font-size: 1em;
    }
    .page-resources__hero-cta {
        flex-direction: column;
        align-items: center;
    }
    .page-resources__btn-primary,
    .page-resources__btn-secondary {
        width: 100% !important;
        max-width: 300px !important; /* Constrain max width for buttons */
        padding: 12px 20px !important;
        font-size: 0.95em !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }
    .page-resources__section {
        padding: 40px 0;
    }
    .page-resources__section-title {
        font-size: 1.8em;
    }
    .page-resources__section-description {
        font-size: 0.95em;
    }
    .page-resources__container {
        padding: 0 15px;
    }

    /* Images 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__intro-card,
    .page-resources__content-wrapper,
    .page-resources__text-content,
    .page-resources__image-content,
    .page-resources__faq-item,
    .page-resources__resource-card,
    .page-resources__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-resources__hero-section {
        padding-left: 0 !important; /* Hero should stretch full width */
        padding-right: 0 !important;
    }
    .page-resources__hero-content {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-resources__intro-grid,
    .page-resources__resource-grid {
        grid-template-columns: 1fr;
    }
    .page-resources__faq-question {
        padding: 15px 20px;
    }
    .page-resources__faq-heading {
        font-size: 1.1em;
    }
    .page-resources__faq-answer {
        padding: 0 20px;
    }
    .page-resources__faq-item.active .page-resources__faq-answer {
        padding: 15px 20px;
    }
    .page-resources__cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    .page-resources__btn-center {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

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