/* style/resources.css */
.page-resources {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #ffffff; /* Default background for the page */
}

/* Header offset for main content to prevent overlap with fixed header */
.page-resources__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px);
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-bottom: 60px;
}

.page-resources__hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    z-index: 1;
}

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

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

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

.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;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

.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: #ffffff;
    color: #017439;
    border: 2px solid #017439;
}

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

.page-resources__hero-image-wrapper {
    width: 100%;
    margin-top: 40px;
    overflow: hidden;
    box-sizing: border-box;
}

.page-resources__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 400px;
    max-height: 600px;
}

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

.page-resources__container--center {
    text-align: center;
}

.page-resources__section-title {
    font-size: 2.5em;
    margin-bottom: 30px;
    text-align: center;
    color: #017439;
}

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

.page-resources__text-block {
    margin-bottom: 20px;
    font-size: 1.1em;
    line-height: 1.8;
}

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

.page-resources__introduction-section {
    padding: 60px 0;
    background-color: #ffffff;
    color: #333333;
}

.page-resources__image-full-width {
    width: 100%;
    height: auto;
    display: block;
    margin-top: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    min-width: 200px;
    min-height: 200px;
}

.page-resources__guides-section {
    padding: 60px 0;
    background-color: #017439;
    color: #ffffff;
}

.page-resources__guide-item {
    margin-bottom: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.page-resources__guide-item:last-child {
    margin-bottom: 0;
}

.page-resources__guide-title {
    font-size: 2em;
    margin-bottom: 20px;
    color: #FFFF00;
    text-align: center;
}

.page-resources__guide-subtitle {
    font-size: 1.5em;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #ffffff;
}

.page-resources__ordered-list,
.page-resources__unordered-list {
    list-style-position: inside;
    margin-bottom: 20px;
    padding-left: 20px;
}

.page-resources__ordered-list--white,
.page-resources__unordered-list--white {
    color: #f0f0f0;
}

.page-resources__ordered-list li,
.page-resources__unordered-list li {
    margin-bottom: 10px;
    font-size: 1.05em;
}

.page-resources__image-centered {
    width: 80%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    min-width: 200px;
    min-height: 200px;
}

.page-resources__faq-section {
    padding: 60px 0;
    background-color: #ffffff;
    color: #333333;
}

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

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

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #017439;
    cursor: pointer;
    background-color: #e8f5e9;
    border-bottom: 1px solid #e0e0e0;
    list-style: none;
}

.page-resources__faq-item[open] > .page-resources__faq-question {
    border-bottom: 1px solid #d0d0d0;
}

.page-resources__faq-question::-webkit-details-marker {
    display: none;
}

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

.page-resources__faq-answer {
    padding: 20px 25px;
    font-size: 1.05em;
    color: #555555;
    background-color: #ffffff;
}

.page-resources__tips-section {
    padding: 60px 0;
    background-color: #017439;
    color: #ffffff;
}

.page-resources__cta-section {
    padding: 80px 0;
    background-color: #ffffff;
    color: #333333;
    text-align: center;
}

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

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 2.5em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
    .page-resources__guide-title {
        font-size: 1.8em;
    }
    .page-resources__hero-image {
        min-height: 300px;
        max-height: 500px;
    }
}

@media (max-width: 768px) {
    .page-resources {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-resources__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
    }

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

    .page-resources__hero-description {
        font-size: 1em;
    }

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

    .page-resources__btn-primary,
    .page-resources__btn-secondary,
    .page-resources a[class*="button"],
    .page-resources a[class*="btn"] {
        max-width: 100% !important;
        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__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;
      flex-direction: column;
    }

    .page-resources__container {
        padding: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-resources__section-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }

    .page-resources__guide-title {
        font-size: 1.5em;
    }

    .page-resources__guide-subtitle {
        font-size: 1.3em;
    }

    .page-resources p,
    .page-resources li {
        font-size: 1em;
    }

    /* Images responsiveness */
    .page-resources img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }
    
    .page-resources__image-full-width,
    .page-resources__image-centered {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .page-resources__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }

    .page-resources__faq-answer {
        padding: 15px 20px;
    }
    
    /* Ensure all image/content containers also adapt */
    .page-resources__hero-image-wrapper,
    .page-resources__introduction-section,
    .page-resources__guides-section,
    .page-resources__faq-section,
    .page-resources__tips-section,
    .page-resources__cta-section,
    .page-resources__guide-item {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      overflow: hidden !important;
    }
}