/* style/resources.css */

/* Base styles for the page-resources scope */
.page-resources {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: #121212; /* Inherited from shared, but explicit for clarity */
}

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

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px 40px; /* Adjust padding-top to account for header */
    min-height: 500px;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

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

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

.page-resources__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    color: #ffffff;
}

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

.page-resources__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

/* Video Section */
.page-resources__video-section {
    padding: 60px 20px;
    text-align: center;
    background-color: #0d0d0d; /* Slightly darker background for contrast */
}

.page-resources__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 0 auto;
    background-color: #000;
}

.page-resources__video,
.page-resources__video-link video { /* Target the video element directly */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    cursor: pointer;
}

/* General Content Sections */
.page-resources__content-section {
    padding: 60px 20px;
}

.page-resources__dark-bg {
    background-color: #121212;
    color: #ffffff;
}

.page-resources__light-bg {
    background-color: #ffffff;
    color: #333333; /* Dark text for light background */
}

.page-resources__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-align: center;
    color: #ffffff; /* Default for dark background */
}

.page-resources__light-bg .page-resources__section-title,
.page-resources__text-contrast-fix {
    color: #333333; /* Ensure dark text on light background */
}

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

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

.page-resources__sub-title {
    font-size: 1.8em;
    margin-top: 40px;
    margin-bottom: 15px;
    color: #017439; /* Brand color for sub-titles */
    text-align: center;
}

.page-resources__list {
    list-style: disc;
    margin: 20px auto;
    padding-left: 40px;
    max-width: 900px;
}

.page-resources__list-item {
    margin-bottom: 10px;
    font-size: 1em;
}

.page-resources__list-item strong {
    color: #017439; /* Brand color for emphasis */
}

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

.page-resources__card {
    background: #222222; /* Slightly lighter dark background for cards */
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #ffffff; /* Light text for dark card background */
}

.page-resources__light-bg .page-resources__card {
    background: #f8f8f8; /* Light background for cards in light section */
    color: #333333; /* Dark text for light card background */
}

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

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

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

.page-resources__card-title a {
    color: #017439; /* Brand color for card title links */
    text-decoration: none;
}

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

.page-resources__card-description {
    font-size: 0.95em;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Feature Grid (similar to cards but potentially different styling) */
.page-resources__feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources__feature-item {
    background: #222222;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

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

.page-resources__feature-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #017439;
}

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

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

.page-resources__feature-description {
    font-size: 0.95em;
    margin-bottom: 10px;
}

/* FAQ Section */
.page-resources__faq-section {
    padding: 60px 20px;
    background-color: #ffffff;
    color: #333333;
}

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

.page-resources__faq-item {
    background: #f0f0f0; /* Light background for FAQ items */
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    color: #333333; /* Dark text for light background */
}

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background-color: #e8e8e8; /* Slightly darker for summary */
    color: #333333;
}

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

.page-resources__faq-item[open] > .page-resources__faq-question {
    background-color: #e0e0e0;
}

.page-resources__faq-qtext {
    flex-grow: 1;
    color: #333333; /* Ensure dark text on light background */
}

.page-resources__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #017439; /* Brand color for toggle icon */
}

.page-resources__faq-answer {
    padding: 15px 25px 25px;
    font-size: 1em;
    color: #555555; /* Slightly lighter dark text for answer */
    border-top: 1px solid #ddd;
}

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

.page-resources__faq-answer a {
    color: #017439;
    text-decoration: none;
}

.page-resources__faq-answer a:hover {
    text-decoration: underline;
}

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


/* Call to Action Section */
.page-resources__cta-section {
    padding: 80px 20px;
    text-align: center;
    background-color: #017439; /* Brand color background for CTA */
    color: #ffffff;
}

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

/* Buttons */
.page-resources__btn-primary,
.page-resources__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Ensure padding doesn't push width */
    max-width: 100%; /* Ensure responsiveness */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-resources__btn-primary {
    background-color: #C30808; /* Custom color for register */
    color: #FFFF00; /* Custom font color for register */
    border: 2px solid #C30808;
}

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

.page-resources__btn-secondary {
    background-color: #ffffff;
    color: #017439; /* Brand color for text */
    border: 2px solid #017439;
}

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

/* Links within text blocks */
.page-resources__text-block a,
.page-resources__list-item a,
.page-resources__feature-description a {
    color: #017439; /* Brand color for links */
    text-decoration: none;
    font-weight: bold;
}

.page-resources__text-block a:hover,
.page-resources__list-item a:hover,
.page-resources__feature-description a:hover {
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 2.8em;
    }
    .page-resources__hero-description {
        font-size: 1.1em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
    .page-resources__sub-title {
        font-size: 1.6em;
    }
    .page-resources__card-title {
        font-size: 1.3em;
    }
    .page-resources__faq-question {
        font-size: 1.1em;
    }
}

@media (max-width: 768px) {
    .page-resources__hero-section {
        padding: 60px 15px 30px;
        padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
    }
    .page-resources__hero-title {
        font-size: 2em;
    }
    .page-resources__hero-description {
        font-size: 1em;
    }
    .page-resources__video-section,
    .page-resources__content-section,
    .page-resources__faq-section,
    .page-resources__cta-section {
        padding: 40px 15px;
    }
    .page-resources__section-title {
        font-size: 1.8em;
    }
    .page-resources__sub-title {
        font-size: 1.4em;
    }
    .page-resources__list {
        padding-left: 20px;
    }
    .page-resources__card-grid,
    .page-resources__feature-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .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: 12px 20px;
        font-size: 1em;
    }

    /* Mobile image responsiveness */
    .page-resources img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    /* Mobile video responsiveness */
    .page-resources video,
    .page-resources__video {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    /* Video container mobile adaptation */
    .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;
    }

    /* General container/section padding and width for mobile */
    .page-resources__container,
    .page-resources__hero-section,
    .page-resources__video-section,
    .page-resources__content-section,
    .page-resources__faq-section,
    .page-resources__cta-section,
    .page-resources__card,
    .page-resources__feature-item {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      /* Add horizontal padding if needed, but container already has it */
    }
    .page-resources__faq-item {
        padding: 0; /* Remove padding if any, handled by summary/answer */
    }
    .page-resources__faq-question {
        padding: 15px 20px;
    }
    .page-resources__faq-answer {
        padding: 10px 20px 20px;
    }

    /* Content area images minimum size check */
    /* This rule applies to any img within .page-resources, ensuring they are not small icons */
    .page-resources__card-image,
    .page-resources__feature-image {
        min-width: 200px !important;
        min-height: 200px !important;
    }
}

/* Ensure no filter on images */
.page-resources img {
    filter: none;
}
/* Specific brightness filter for hero image for readability, not color change */
.page-resources__hero-image {
    filter: brightness(0.5);
}

/* Links within text blocks should maintain contrast */
.page-resources__dark-bg a,
.page-resources__dark-bg .page-resources__card a,
.page-resources__dark-bg .page-resources__feature-item a {
    color: #017439; /* Brand color */
}

.page-resources__light-bg a,
.page-resources__light-bg .page-resources__card a,
.page-resources__light-bg .page-resources__feature-item a {
    color: #017439; /* Brand color */
}

/* Ensure all text content in light background sections (like FAQ) is dark */
.page-resources__light-bg .page-resources__text-block,
.page-resources__light-bg .page-resources__section-description,
.page-resources__light-bg .page-resources__list-item,
.page-resources__light-bg .page-resources__card-description,
.page-resources__light-bg .page-resources__feature-description,
.page-resources__faq-answer {
    color: #333333;
}

/* Ensure all headings in light background sections are dark */
.page-resources__light-bg h1,
.page-resources__light-bg h2,
.page-resources__light-bg h3,
.page-resources__light-bg h4,
.page-resources__light-bg h5,
.page-resources__light-bg h6 {
    color: #333333;
}