/* style/resources.css */

/* Base styles for the page */
.page-resources {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #f0f0f0; /* Light text for dark body background */
    background-color: transparent; /* Body background is handled by shared.css (#000000) */
}

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

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

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

.page-resources__section-title {
    font-size: 2.8em;
    color: #26A9E0; /* Brand color for titles */
    margin-bottom: 30px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.page-resources__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #ffffff; /* Light text */
}

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 70vh;
    min-height: 500px;
    overflow: hidden;
    color: #ffffff;
    text-align: center;
}

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

.page-resources__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5); /* Darken image for text readability */
}

.page-resources__hero-section .page-resources__container {
    position: relative;
    z-index: 1;
}

.page-resources__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-resources__hero-description {
    font-size: 1.4em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* 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: 1.1em;
    text-align: center;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
}

.page-resources__btn-primary {
    background-color: #26A9E0; /* Brand primary color */
    color: #ffffff;
    border: 2px solid #26A9E0;
    margin: 10px;
}

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

.page-resources__btn-secondary {
    background-color: transparent;
    color: #26A9E0; /* Brand primary color for text */
    border: 2px solid #26A9E0;
    margin: 10px;
}

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

/* Introduction Section */
.page-resources__introduction .page-resources__text-block {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-resources__card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark background */
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #ffffff; /* Light text for card content */
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.page-resources__card-image {
    width: 100%;
    max-width: 400px; /* Ensure images don't stretch excessively */
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    min-height: 200px; /* Minimum size requirement */
}

.page-resources__card-title {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 15px;
    color: #26A9E0; /* Brand color for card titles */
    text-align: center;
}

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

.page-resources__card-title a:hover {
    color: #1a7fb3;
    text-decoration: underline;
}

.page-resources__card-description {
    font-size: 1em;
    color: #f0f0f0;
    margin-bottom: 20px;
    flex-grow: 1; /* Make description take available space */
    text-align: center;
}

.page-resources__card .page-resources__btn-secondary {
    margin-top: auto; /* Push button to the bottom */
}

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

.page-resources__benefit-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 25px;
    text-align: left;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-resources__benefit-title {
    font-size: 1.4em;
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-resources__image-full-width {
    width: 100%;
    max-width: 1000px;
    height: auto;
    border-radius: 12px;
    margin-top: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    min-height: 200px; /* Minimum size requirement */
}

/* Access Section */
.page-resources__numbered-list {
    list-style: none;
    counter-reset: list-counter;
    max-width: 800px;
    margin: 40px auto 0 auto;
    text-align: left;
}

.page-resources__list-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-resources__list-item::before {
    content: counter(list-counter);
    counter-increment: list-counter;
    position: absolute;
    left: 0;
    top: 0;
    background-color: #26A9E0;
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3em;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

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

.page-resources__list-item a {
    color: #EA7C07; /* Login color for emphasis */
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-resources__list-item a:hover {
    color: #d16b05;
}

/* Commitment Section */
.page-resources__commitment .page-resources__text-block {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources__image-centered {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 12px;
    margin: 40px auto 0 auto;
    display: block;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    min-height: 200px; /* Minimum size requirement */
}

/* FAQ Section */
.page-resources__faq {
    text-align: left;
}

.page-resources__faq-list {
    max-width: 900px;
    margin: 40px auto 0 auto;
}

.page-resources__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #26A9E0;
    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-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #ffffff;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
    transform: rotate(45deg); /* Change + to X or - */
}

.page-resources__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    color: #f0f0f0;
}

.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;
    font-size: 1em;
}

/* Call to Action Section */
.page-resources__cta {
    background-color: #26A9E0; /* Brand primary color */
    color: #ffffff;
    padding: 80px 0;
    text-align: center;
}

.page-resources__cta .page-resources__section-title {
    color: #ffffff;
    text-shadow: none;
}

.page-resources__cta .page-resources__text-block {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
    margin-bottom: 40px;
}

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

.page-resources__cta-buttons .page-resources__btn-primary {
    background-color: #EA7C07; /* Login color for CTA */
    border-color: #EA7C07;
}

.page-resources__cta-buttons .page-resources__btn-primary:hover {
    background-color: #d16b05;
    border-color: #d16b05;
}

.page-resources__cta-buttons .page-resources__btn-secondary {
    color: #ffffff;
    border-color: #ffffff;
}

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

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

@media (max-width: 768px) {
    .page-resources__hero-section {
        height: auto;
        min-height: 400px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile hero padding */
        padding-bottom: 40px;
    }

    .page-resources__hero-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }
    .page-resources__hero-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-resources__section {
        padding: 40px 0;
    }
    .page-resources__section-title {
        font-size: 1.8em;
    }
    .page-resources__text-block,
    .page-resources__card-description,
    .page-resources__faq-answer p {
        font-size: 0.95em;
    }
    .page-resources__grid,
    .page-resources__benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-resources__card,
    .page-resources__benefit-item {
        padding: 20px;
    }
    .page-resources__card-title {
        font-size: 1.3em;
    }
    .page-resources__list-item {
        padding-left: 50px;
    }
    .page-resources__list-item::before {
        width: 35px;
        height: 35px;
        font-size: 1.1em;
    }
    .page-resources__list-title {
        font-size: 1.2em;
    }
    .page-resources__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-resources__cta {
        padding: 60px 0;
    }
    .page-resources__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    .page-resources__btn-primary,
    .page-resources__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 20px !important;
        margin: 0 !important;
        font-size: 1em !important;
    }

    /* Image responsiveness */
    .page-resources img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-resources__section,
    .page-resources__card,
    .page-resources__container,
    .page-resources__cta-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow: hidden !important;
    }
    /* Specific overrides for images in cards to ensure they are not too small */
    .page-resources__card-image {
      min-height: 180px; /* Adjust min-height for mobile if needed, but ensure >= 200px overall */
      width: 100%;
      height: auto;
    }
    .page-resources__image-full-width,
    .page-resources__image-centered {
      min-height: 200px;
      width: 100%;
      height: auto;
    }
}

@media (max-width: 480px) {
    .page-resources__hero-title {
        font-size: 1.8em;
    }
    .page-resources__section-title {
        font-size: 1.5em;
    }
    .page-resources__btn-primary,
    .page-resources__btn-secondary {
        font-size: 0.9em;
        padding: 10px 15px;
    }
    .page-resources__faq-question {
        font-size: 1em;
    }
}