/* style/resources.css */

/* Base styles for the page */
.page-resources {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background */
    background-color: #FFFFFF;
}

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

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

.page-resources__section-title {
    font-size: 2.5em;
    color: #26A9E0; /* Brand color for titles */
    margin-bottom: 30px;
    font-weight: bold;
}

.page-resources__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.page-resources__text-block a {
    color: #26A9E0;
    text-decoration: underline;
}

.page-resources__text-block a:hover {
    color: #1a7bbd;
}

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    padding: 100px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    background: linear-gradient(135deg, #26A9E0, #4ac3f7); /* Gradient background with brand color */
    color: #FFFFFF;
}

.page-resources__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    text-align: center;
    padding: 20px;
}

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

.page-resources__hero-description {
    font-size: 1.4em;
    margin-bottom: 40px;
    color: #f0f0f0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

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

.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-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

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

.page-resources__btn-secondary {
    background: #FFFFFF;
    color: #26A9E0; /* Brand color */
    border: 2px solid #FFFFFF;
}

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

.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 */
}

/* Introduction Section */
.page-resources__introduction-section {
    background-color: #f8f8f8;
    color: #333333;
}

/* Resource Types Section */
.page-resources__resource-types-section {
    background-color: #FFFFFF;
}

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

.page-resources__card {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    color: #333333;
}

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

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

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

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

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

.page-resources__card-text {
    font-size: 1em;
    color: #555555;
    flex-grow: 1; /* Ensures text fills space */
}

/* Support Section (Dark Background) */
.page-resources__dark-bg {
    background-color: #26A9E0; /* Brand primary color */
    color: #FFFFFF;
}

.page-resources__dark-bg .page-resources__section-title {
    color: #FFFFFF;
}

.page-resources__dark-bg .page-resources__text-block {
    color: #f0f0f0;
}

.page-resources__dark-bg .page-resources__list-item {
    color: #f0f0f0;
}

.page-resources__dark-bg .page-resources__list-item a {
    color: #FFFFFF;
    text-decoration: underline;
}

.page-resources__dark-bg .page-resources__list-item a:hover {
    color: #e0e0e0;
}

.page-resources__list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.page-resources__list-item {
    font-size: 1.1em;
    margin-bottom: 15px;
    position: relative;
    padding-left: 30px;
}

.page-resources__list-item::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: #FFFFFF;
    font-size: 1.2em;
}

/* Featured Resources Section */
.page-resources__featured-resources-section {
    background-color: #f8f8f8;
}

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

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

.page-resources__featured-item:hover {
    transform: translateY(-5px);
}

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

.page-resources__featured-title a {
    color: #26A9E0;
    text-decoration: none;
}

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

.page-resources__featured-text {
    font-size: 1em;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-resources__featured-image {
    width: 100%;
    height: 250px; /* Consistent height */
    object-fit: cover;
    border-radius: 8px;
    margin-top: auto; /* Push image to bottom if content above is shorter */
}

/* Video Section */
.page-resources__video-section {
    background-color: #26A9E0; /* Brand color */
    color: #FFFFFF;
}

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

.page-resources__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
    display: block; /* Ensure it behaves as a block element */
}

.page-resources__video-caption {
    font-size: 1em;
    color: #f0f0f0;
    margin-top: 10px;
}

/* Benefits Section */
.page-resources__benefits-section {
    background-color: #FFFFFF;
}

.page-resources__benefits-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.page-resources__benefits-list .page-resources__list-item {
    font-size: 1.1em;
    margin-bottom: 15px;
    position: relative;
    padding-left: 30px;
    color: #333333;
}

.page-resources__benefits-list .page-resources__list-item::before {
    content: '✔️';
    position: absolute;
    left: 0;
    color: #26A9E0;
    font-size: 1.2em;
}

.page-resources__benefits-list .page-resources__list-item a {
    color: #26A9E0;
    text-decoration: underline;
}

.page-resources__benefits-list .page-resources__list-item a:hover {
    color: #1a7bbd;
}

/* CTA Section */
.page-resources__cta-section {
    background-color: #f0f0f0; /* Light background */
    padding: 80px 0;
    color: #333333;
}

.page-resources__cta-container {
    max-width: 800px;
}

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

/* FAQ Section */
.page-resources__faq-section {
    background-color: #FFFFFF;
}

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

.page-resources__faq-item {
    background-color: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-resources__faq-item[open] {
    background-color: #eaf7fd; /* Lighter brand color background when open */
    border-color: #26A9E0;
}

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #333333;
    cursor: pointer;
    background-color: transparent;
    border: none;
    width: 100%;
    text-align: left;
    transition: color 0.3s ease;
    list-style: none; /* For details/summary */
}

.page-resources__faq-question:hover {
    color: #26A9E0;
}

.page-resources__faq-item[open] .page-resources__faq-question {
    color: #26A9E0;
}

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

.page-resources__faq-item[open] .page-resources__faq-toggle {
    transform: rotate(45deg); /* Change + to X or similar */
    content: '−'; /* Change + to - when open for details/summary */
}

.page-resources__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1.05em;
    color: #555555;
    text-align: left;
}

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

/* Hide default marker for details/summary */
.page-resources__faq-item summary::-webkit-details-marker {
    display: none;
}
.page-resources__faq-item summary {
    list-style: none;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 2.8em;
    }
    .page-resources__hero-description {
        font-size: 1.2em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
    .page-resources__cards-grid,
    .page-resources__featured-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-resources__hero-section {
        padding: 80px 0;
        padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
    }
    .page-resources__hero-title {
        font-size: 2.2em;
    }
    .page-resources__hero-description {
        font-size: 1em;
    }
    .page-resources__hero-cta {
        flex-direction: column;
        gap: 15px;
    }
    .page-resources__btn-primary,
    .page-resources__btn-secondary {
        width: 100% !important;
        max-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__section {
        padding: 40px 0;
    }
    .page-resources__section-title {
        font-size: 1.8em;
    }
    .page-resources__text-block,
    .page-resources__list-item,
    .page-resources__card-text,
    .page-resources__featured-text,
    .page-resources__faq-answer {
        font-size: 0.95em;
    }
    .page-resources__card-title,
    .page-resources__featured-title {
        font-size: 1.3em;
    }

    /* Mobile image adaptation */
    .page-resources img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-resources__hero-image-wrapper,
    .page-resources__card,
    .page-resources__featured-item,
    .page-resources__container,
    .page-resources__cta-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-resources__video-section {
        padding-top: var(--header-offset, 120px) !important; /* Video section also needs padding-top */
    }
    /* Mobile video adaptation */
    .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;
    }

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

@media (max-width: 480px) {
    .page-resources__hero-title {
        font-size: 1.8em;
    }
    .page-resources__hero-description {
        font-size: 0.9em;
    }
    .page-resources__section-title {
        font-size: 1.5em;
    }
    .page-resources__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-resources__faq-answer {
        padding: 0 20px 15px 20px;
    }
}

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

/* Color contrast enforcement */
.page-resources__dark-section {
  background: #26A9E0;
  color: #ffffff;
}
.page-resources__light-bg {
  background: #f0f0f0;
  color: #333333;
}
.page-resources__section,
.page-resources__box {
  color: #333333;
}
.page-resources p,
.page-resources li {
  color: #333333;
}