/* style/resources.css */

/* --- General Page Styling (Light Background) --- */
.page-resources {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background */
    background-color: var(--secondary-color); /* Matches body background: #FFFFFF */
}

.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: 36px;
    color: var(--primary-color); /* Brand green */
    margin-bottom: 20px;
    font-weight: bold;
}

.page-resources__section-description {
    font-size: 18px;
    color: #555555;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources__sub-title {
    font-size: 24px;
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

/* --- Hero Banner Section --- */
.page-resources__hero-banner {
    position: relative;
    padding-bottom: 40px; /* Adjust as needed */
    text-align: center;
    background-color: #f8f8f8; /* Light background for hero */
}

.page-resources__main-title {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.2;
}

.page-resources__intro-description {
    font-size: 20px;
    color: #555555;
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources__hero-image-wrapper {
    margin-bottom: 40px;
    display: inline-block; /* To center the image */
    max-width: 100%;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-resources__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 12px;
}

/* --- CTA Buttons --- */
.page-resources__cta-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap; /* For responsiveness */
}

.page-resources__cta-group--center {
    margin-top: 60px;
}

.page-resources__btn-primary,
.page-resources__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 35px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
}

.page-resources__btn-primary {
    background-color: var(--primary-color); /* #017439 */
    color: #ffffff;
    border: 2px solid var(--primary-color);
}

.page-resources__btn-primary:hover {
    background-color: #005a2e; /* Darker green */
    border-color: #005a2e;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-resources__btn-secondary {
    background-color: transparent;
    color: var(--primary-color); /* #017439 */
    border: 2px solid var(--primary-color);
}

.page-resources__btn-secondary:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Specific button colors from prompt */
.page-resources__btn-primary[href*="redirect?plink_id"] {
    background-color: #C30808; /* Red */
    color: #FFFF00; /* Yellow */
    border-color: #C30808;
}

.page-resources__btn-primary[href*="redirect?plink_id"]:hover {
    background-color: #9a0606; /* Darker red */
    border-color: #9a0606;
}

.page-resources__btn-small {
    padding: 10px 25px;
    font-size: 16px;
    border-radius: 6px;
}

/* --- Content Grid Layout --- */
.page-resources__content-grid {
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
    margin-top: 50px;
}

.page-resources__content-grid--reverse {
    flex-direction: row-reverse;
}

.page-resources__text-block {
    flex: 1;
    min-width: 300px;
}

.page-resources__image-block {
    flex: 1;
    min-width: 300px;
    max-width: 50%; /* Limit image block width */
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-resources__content-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
}

.page-resources__text-block p {
    margin-bottom: 15px;
    color: #333333;
}

.page-resources__list {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 20px;
    color: #333333;
}

.page-resources__list li {
    margin-bottom: 8px;
    color: #333333;
}

/* --- Dark Background Section Styling --- */
.page-resources__dark-bg {
    background-color: var(--primary-color); /* #017439 */
    color: #ffffff; /* Light text for dark background */
}

.page-resources__dark-bg .page-resources__section-title,
.page-resources__dark-bg .page-resources__sub-title {
    color: #ffffff;
}

.page-resources__dark-bg .page-resources__section-description,
.page-resources__dark-bg .page-resources__text-block p,
.page-resources__dark-bg .page-resources__list li {
    color: #f0f0f0;
}

/* --- FAQ Section --- */
.page-resources__faq-area {
    padding-bottom: 80px;
}

.page-resources__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-resources__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.3s ease;
  padding: 0 15px;
  opacity: 0;
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-resources__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-resources__faq-question:active {
  background: #eeeeee;
}

.page-resources__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--primary-color); /* Brand green for FAQ questions */
}

.page-resources__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
  color: var(--primary-color);
  transform: rotate(180deg); /* Rotate for minus sign if using same char */
}

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

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

.page-resources__news-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 25px;
    text-align: left;
    text-decoration: none;
    color: #333333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.page-resources__news-title {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-resources__news-excerpt {
    font-size: 15px;
    color: #555555;
    margin-bottom: 15px;
    flex-grow: 1;
}

.page-resources__news-date {
    font-size: 13px;
    color: #888888;
    text-align: right;
    display: block;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-resources__main-title {
        font-size: 40px;
    }
    .page-resources__section-title {
        font-size: 30px;
    }
    .page-resources__intro-description {
        font-size: 18px;
    }
    .page-resources__content-grid {
        flex-direction: column;
        gap: 30px;
    }
    .page-resources__content-grid--reverse {
        flex-direction: column-reverse;
    }
    .page-resources__image-block {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .page-resources__hero-banner {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 30px;
    }
    .page-resources__container {
        padding: 0 15px;
    }
    .page-resources__section {
        padding: 40px 0;
    }
    .page-resources__main-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
    .page-resources__intro-description {
        font-size: 16px;
        margin-bottom: 25px;
    }
    .page-resources__section-title {
        font-size: 26px;
        margin-bottom: 15px;
    }
    .page-resources__section-description {
        font-size: 15px;
        margin-bottom: 30px;
    }
    .page-resources__sub-title {
        font-size: 20px;
        margin-top: 25px;
        margin-bottom: 10px;
    }

    /* CTA Buttons Mobile */
    .page-resources__cta-group {
        flex-direction: column;
        gap: 15px;
        margin-top: 30px;
        padding: 0 15px; /* Added padding to group */
    }
    .page-resources__cta-group--center {
        margin-top: 40px;
    }
    .page-resources__btn-primary,
    .page-resources__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 16px;
        border-radius: 6px;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-resources__btn-small {
        padding: 10px 20px;
        font-size: 14px;
    }

    /* Images Mobile */
    .page-resources img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-resources__hero-image-wrapper,
    .page-resources__image-block {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0; /* Remove padding if any, relies on container padding */
    }

    /* FAQ Mobile */
    .page-resources__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-resources__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    .page-resources__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    .page-resources__faq-answer {
        padding: 0 15px;
    }
    .page-resources__faq-item.active .page-resources__faq-answer {
        padding: 15px !important;
    }

    /* News Mobile */
    .page-resources__news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }
    .page-resources__news-card {
        padding: 20px;
    }
    .page-resources__news-title {
        font-size: 18px;
    }
    .page-resources__news-excerpt {
        font-size: 14px;
    }
}

/* Ensure content area images don't go below 200px */
.page-resources__content-image {
    min-width: 200px;
    min-height: 200px;
}

/* No CSS filters for images */
.page-resources img {
    filter: none;
}