/* style/resources.css */
.page-resources {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

.page-resources__section-title {
    font-size: 2.5em;
    color: #ffffff; /* Ensure titles are light */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-resources__section-description {
    font-size: 1.1em;
    color: #f0f0f0; /* Slightly off-white for description */
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-resources__hero-section {
    background: linear-gradient(rgba(1, 116, 57, 0.8), rgba(1, 116, 57, 0.8)), url('[GALLERY:hero:1920x1080:f88 recruitment banner,career opportunities,green theme]') center/cover no-repeat;
    padding: 100px 0;
    text-align: center;
    color: #ffffff;
    padding-top: calc(100px + var(--header-offset, 120px)); /* Add header offset to hero */
}

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

.page-resources__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #ffffff;
}

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

.page-resources__cta-buttons--center {
    justify-content: center;
    margin-top: 30px;
}

.page-resources__btn-primary,
.page-resources__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    max-width: 100%; /* Ensure buttons are responsive */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

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

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

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

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

.page-resources__btn-primary--large {
    font-size: 1.2em;
    padding: 18px 35px;
}

/* About Section */
.page-resources__about-section,
.page-resources__careers-section,
.page-resources__stories-section,
.page-resources__cta-final {
    background-color: #ffffff; /* Light background */
    color: #333333; /* Dark text for light background */
    padding: 80px 0;
}

.page-resources__light-bg .page-resources__section-title {
    color: #017439; /* Brand color for titles on light background */
}

.page-resources__light-bg .page-resources__section-description {
    color: #555555;
}

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

.page-resources__dark-section {
    background-color: #017439; /* Brand main color for dark sections */
    color: #ffffff; /* Light text for dark sections */
    padding: 80px 0;
}

.page-resources__grid {
    display: grid;
    gap: 30px;
    margin-top: 40px;
}

.page-resources__grid--2-cols {
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

.page-resources__grid--3-cols {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.page-resources__image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-resources__image,
.page-resources__card-image,
.page-resources__story-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px; /* Ensure minimum size */
}

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

.page-resources__step-card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for cards on dark background */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.page-resources__step-title {
    font-size: 1.5em;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-resources__step-text {
    color: #f0f0f0;
    font-size: 1em;
}

/* Careers Section */
.page-resources__career-card {
    background-color: #f9f9f9; /* Light background for career cards */
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    color: #333333;
}

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

.page-resources__career-card .page-resources__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
    min-width: 200px;
    min-height: 200px;
}

.page-resources__card-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    font-weight: bold;
    color: #017439; /* Brand color for card titles */
}

.page-resources__card-title a {
    color: #017439;
    text-decoration: none;
}

.page-resources__card-title a:hover {
    text-decoration: underline;
}

.page-resources__card-text {
    color: #555555;
    font-size: 0.95em;
    flex-grow: 1; /* Ensure text takes up available space */
}

/* Benefits Section */
.page-resources__benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-resources__benefit-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    border-left: 5px solid #ffffff;
    color: #ffffff;
    font-size: 1.1em;
}

.page-resources__benefit-item strong {
    color: #ffffff;
}

/* Stories Section */
.page-resources__story-card {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    text-align: center;
    color: #333333;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-resources__story-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px auto;
    border: 4px solid #017439;
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px; /* Ensure minimum size */
}

.page-resources__story-name {
    font-size: 1.3em;
    font-weight: bold;
    color: #017439;
    margin-bottom: 10px;
}

.page-resources__story-quote {
    font-style: italic;
    color: #555555;
    flex-grow: 1;
}

/* FAQ Section */
.page-resources__faq-list {
    margin-top: 40px;
}

.page-resources__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.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.05);
    transition: background-color 0.3s ease;
}

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

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

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

.page-resources__faq-item.active .page-resources__faq-toggle {
    transform: rotate(45deg); /* Plus sign rotates to X, or could be a minus sign */
}

.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; /* Sufficiently large to show content */
    padding: 15px 25px 25px;
}

.page-resources__faq-answer p {
    margin: 0;
    color: #f0f0f0;
}

/* Final CTA Section */
.page-resources__cta-final {
    text-align: center;
    padding: 100px 0;
}

.page-resources__container--center {
    max-width: 800px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-resources__grid--2-cols {
        grid-template-columns: 1fr;
    }
    .page-resources__grid--2-cols .page-resources__image-wrapper {
        order: -1; /* Image appears above text on mobile */
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .page-resources {
        font-size: 16px;
        line-height: 1.6;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile padding-top */
    }

    .page-resources__container {
        padding: 0 15px !important; /* Add mobile padding to container */
    }

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

    .page-resources__hero-title {
        font-size: 2.5em;
    }

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

    .page-resources__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-resources__btn-primary,
    .page-resources__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 15px 15px !important; /* Adjust padding for full-width buttons */
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Images responsiveness */
    .page-resources img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Enforce min size even on mobile */
        min-height: 200px !important; /* Enforce min size even on mobile */
    }

    .page-resources__image-wrapper,
    .page-resources__career-card,
    .page-resources__story-card,
    .page-resources__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-resources__career-card .page-resources__card-image {
        height: auto;
        min-height: 200px !important;
    }

    .page-resources__story-image {
        width: 100% !important;
        height: auto !important;
        max-width: 200px !important;
        margin-bottom: 20px;
    }
    
    .page-resources__process-steps {
        grid-template-columns: 1fr;
    }
}