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

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

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    background-color: #26A9E0; /* Brand main color for dark background */
    color: #ffffff; /* White text for dark background */
    text-align: center;
    overflow: hidden; /* For image positioning */
}

.page-resources__hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.page-resources__hero-title {
    font-size: 3em;
    margin-bottom: 20px;
    color: #ffffff;
}

.page-resources__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    line-height: 1.8;
}

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

.page-resources__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2; /* Subtle background image */
}

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

/* Section Styling */
.page-resources__section {
    padding: 60px 0;
}

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

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

.page-resources__text-block {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
    color: #333333;
}

.page-resources__text-block--white {
    color: #ffffff;
}

.page-resources__paragraph {
    margin-bottom: 20px;
    color: #333333;
}

.page-resources__paragraph--white {
    color: #ffffff;
}

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

.page-resources__card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease;
    color: #333333; /* Dark text for light background */
}

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

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

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

.page-resources__card-title a {
    color: #26A9E0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources__card-title a:hover {
    color: #1a7bb0;
}

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

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

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

/* Grid 2 Columns */
.page-resources__grid-2-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
}

.page-resources__grid-2-cols--reverse {
    grid-template-areas: "image text"; /* Default order */
}

.page-resources__grid-2-cols--reverse .page-resources__text-content {
    grid-area: text;
}

.page-resources__grid-2-cols--reverse .page-resources__image-wrapper {
    grid-area: image;
}


.page-resources__sub-title {
    font-size: 1.8em;
    color: #26A9E0;
    margin-top: 30px;
    margin-bottom: 15px;
}

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

.page-resources__image-wrapper {
    text-align: center;
}

.page-resources__image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
    object-fit: cover;
}

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

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

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

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

/* CTA Buttons */
.page-resources__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow wrapping 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;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Ensure padding is included in width */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
}

.page-resources__btn-primary {
    background-color: #EA7C07; /* Login/Register color */
    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;
    border: 2px solid #ffffff;
}

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

/* For light background sections, secondary button needs adjustment */
.page-resources__light-bg .page-resources__btn-secondary {
    background-color: transparent;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

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


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

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

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.15em;
    font-weight: bold;
    cursor: pointer;
    background-color: #f8f8f8;
    color: #26A9E0;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

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

.page-resources__faq-qtext {
    flex-grow: 1;
}

.page-resources__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    color: #26A9E0;
}

.page-resources__faq-answer {
    padding: 20px;
    font-size: 1em;
    line-height: 1.7;
    color: #555555;
    background-color: #ffffff;
}

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

.page-resources__faq-link {
    display: inline-block;
    margin-top: 10px;
    color: #26A9E0;
    text-decoration: underline;
    font-weight: bold;
}

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

.page-resources__cta-final {
    padding: 80px 20px;
    text-align: center;
    background-color: #f5f5f5; /* Light background for final CTA */
    color: #333333;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 2.5em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
    .page-resources__grid-2-cols {
        grid-template-columns: 1fr;
    }
    .page-resources__grid-2-cols--reverse {
        grid-template-areas: unset; /* Reset order */
    }
    .page-resources__grid-2-cols--reverse .page-resources__text-content {
        grid-area: unset;
    }
    .page-resources__grid-2-cols--reverse .page-resources__image-wrapper {
        grid-area: unset;
    }
}

@media (max-width: 768px) {
    .page-resources {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-resources__hero-section {
        padding: 60px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile padding-top */
    }
    .page-resources__hero-title {
        font-size: 2em;
    }
    .page-resources__hero-description {
        font-size: 1em;
    }
    .page-resources__section {
        padding: 40px 0;
    }
    .page-resources__section-title {
        font-size: 1.8em;
    }
    .page-resources__text-block {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-resources__cards-grid,
    .page-resources__features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-resources__card,
    .page-resources__feature-item {
        padding: 20px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1); /* Mobile specific shadow */
    }
    .page-resources__sub-title {
        font-size: 1.5em;
    }
    .page-resources__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-resources__btn-primary,
    .page-resources__btn-secondary {
        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;
    }

    /* Mobile image and video responsive rules */
    .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__cta-final {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden; /* Prevent horizontal scroll */
    }
    .page-resources__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }
    .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;
    }
}