/* style/resources.css */

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

/* Header offset - applied to the first main content section */
.page-resources__hero-section {
    padding-top: var(--header-offset, 120px);
}

/* Section styling */
.page-resources__section {
    padding: 60px 20px;
    text-align: center;
}

.page-resources__dark-section {
    background-color: #017439; /* Brand primary color */
    color: #ffffff; /* White text for dark background */
}

.page-resources__light-bg {
    background-color: #ffffff; /* Auxiliary color */
    color: #333333;
}

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

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

.page-resources__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources__section-title {
    font-size: 2.2em;
    margin-bottom: 25px;
    color: #017439;
    line-height: 1.3;
}

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

.page-resources__text-block {
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #333333;
}

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

/* Buttons */
.page-resources__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

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

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

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

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

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

/* Image styling */
.page-resources__hero-image {
    width: 100%;
    height: auto;
    display: block;
    margin-top: 40px;
    border-radius: 10px;
    object-fit: cover;
    max-width: 100%;
}

.page-resources__card-image,
.page-resources__faq-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    display: block;
    max-width: 100%;
}

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

.page-resources__card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0; /* Added for better contrast */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: left;
    transition: transform 0.3s ease;
    color: #333333;
}

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

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

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

.page-resources__card-title a:hover {
    color: #005f2e;
}

.page-resources__card-description {
    font-size: 1em;
    margin-bottom: 15px;
    color: #555555;
}

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

.page-resources__card-link:hover {
    color: #005f2e;
    text-decoration: underline;
}

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

.page-resources__feature-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 25px;
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

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

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

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

.page-resources__faq-list {
    margin-top: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources__faq-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #333333;
}

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    background-color: #f9f9f9;
    color: #017439;
    transition: background-color 0.3s ease;
}

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

.page-resources__faq-title {
    margin: 0;
    color: #017439;
}

.page-resources__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #017439;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
    transform: rotate(45deg);
}

.page-resources__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #ffffff;
    color: #555555;
}

.page-resources__faq-item.active .page-resources__faq-answer {
    max-height: 1000px !important;
    padding: 15px 25px;
}

.page-resources__faq-answer p {
    margin: 0;
    padding-bottom: 10px;
    color: #555555;
}

.page-resources__faq-image {
    margin-top: 40px;
    margin-left: auto;
    margin-right: auto;
    display: block;
    max-width: 800px;
    width: 100%;
    height: auto;
}


/* CTA Section */
.page-resources__cta-section {
    padding: 80px 20px;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources__main-title {
        font-size: 2.5em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-resources__hero-section {
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-resources__main-title {
        font-size: 2em;
    }
    .page-resources__hero-description {
        font-size: 1em;
    }
    .page-resources__section-title {
        font-size: 1.8em;
    }
    .page-resources__text-block {
        font-size: 0.95em;
    }

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

    .page-resources__btn-primary,
    .page-resources__btn-secondary {
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    
    .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;
    }

    .page-resources__grid-cards {
        grid-template-columns: 1fr;
    }

    .page-resources__feature-item {
        padding: 20px;
    }

    .page-resources img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-resources__section,
    .page-resources__card,
    .page-resources__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;
    }

    .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__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 480px) {
    .page-resources__main-title {
        font-size: 1.8em;
    }
    .page-resources__section-title {
        font-size: 1.5em;
    }
    .page-resources__card-title {
        font-size: 1.2em;
    }
    .page-resources__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-resources__faq-answer {
        padding: 0 20px;
    }
    .page-resources__faq-item.active .page-resources__faq-answer {
        padding: 15px 20px;
    }
}