.page-resources {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background */
    background-color: var(--secondary-color); /* #FFFFFF */
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

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

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

.page-resources__light-bg {
    background-color: #FFFFFF;
    color: #333333;
}

.page-resources__dark-bg {
    background-color: #26A9E0; /* Brand primary color */
    color: #FFFFFF;
}

.page-resources__section-title {
    font-size: 36px;
    color: #26A9E0; /* Brand primary color for titles */
    margin-bottom: 40px;
    font-weight: bold;
    text-align: center;
}
.page-resources__dark-bg .page-resources__section-title {
    color: #FFFFFF;
}

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

.page-resources__text-block a {
    color: #26A9E0;
    text-decoration: none;
    font-weight: bold;
}

.page-resources__text-block a:hover {
    text-decoration: underline;
}

/* --- Hero Section --- */
.page-resources__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    overflow: hidden; /* Ensure content doesn't overflow */
}

.page-resources__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.page-resources__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

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

.page-resources__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
}

.page-resources__main-title {
    font-size: 48px;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-resources__intro-text {
    font-size: 20px;
    color: #f0f0f0;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* --- CTA Button Styles --- */
.page-resources__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 30px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box; /* Ensure padding is included in width */
    max-width: 100%; /* Default for all buttons */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow long words to break */
}

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

.page-resources__btn-primary:hover {
    background: #d66b05;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.page-resources__btn-secondary:hover {
    background: #1e87bb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* --- Content Grids --- */
.page-resources__content-grid {
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
    margin-bottom: 40px;
}

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

.page-resources__image-wrapper {
    flex: 1;
    min-width: 300px;
}

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

.page-resources__text-content {
    flex: 2;
}

.page-resources__ordered-list,
.page-resources__bullet-list {
    list-style-position: inside;
    text-align: left;
    margin-bottom: 20px;
    padding-left: 0;
}

.page-resources__ordered-list li,
.page-resources__bullet-list li {
    margin-bottom: 10px;
    font-size: 17px;
}

.page-resources__ordered-list li strong {
    color: #26A9E0;
}

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

.page-resources__card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-resources__card img {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    border-bottom: 1px solid #e0e0e0;
}

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

.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: 15px;
    color: #555555;
    padding: 0 15px 15px;
    margin-bottom: 10px;
}

.page-resources__card-link {
    display: inline-block;
    padding: 10px 20px;
    background: #26A9E0;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 20px;
    transition: background-color 0.3s ease;
}

.page-resources__card-link:hover {
    background: #1e87bb;
}

.page-resources__button-group {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping for multiple buttons */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

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

.page-resources__news-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-resources__news-card img {
    width: 100%;
    height: 220px; /* Consistent height for news images */
    object-fit: cover;
    display: block;
    border-bottom: 1px solid #e0e0e0;
}

.page-resources__news-title {
    font-size: 20px;
    font-weight: bold;
    margin: 20px 15px 10px;
}

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

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

.page-resources__news-excerpt {
    font-size: 15px;
    color: #555555;
    padding: 0 15px 15px;
    margin-bottom: 10px;
}

.page-resources__news-link {
    display: inline-block;
    padding: 10px 20px;
    background: #26A9E0;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    margin: 0 15px 20px;
    transition: background-color 0.3s ease;
}

.page-resources__news-link:hover {
    background: #1e87bb;
}


/* --- FAQ Section --- */
.page-resources__faq-list {
  max-width: 800px;
  margin: 40px auto 0;
  text-align: left;
}

.page-resources__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.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.4s ease;
  padding: 0 15px;
  opacity: 0;
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 2000px !important; /* Ensure content can fully expand */
  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: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: #333333;
}

.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: #26A9E0; /* Brand color when active */
  transform: rotate(45deg); /* Visual change for minus */
}


/* --- Responsive Design (Mobile) --- */
@media (max-width: 1024px) {
    .page-resources__main-title {
        font-size: 40px;
    }
    .page-resources__intro-text {
        font-size: 18px;
    }
    .page-resources__section-title {
        font-size: 30px;
    }
    .page-resources__content-grid {
        flex-direction: column;
        gap: 30px;
    }
    .page-resources__content-grid--reverse {
        flex-direction: column-reverse;
    }
    .page-resources__text-content {
        flex: none;
        width: 100%;
    }
    .page-resources__image-wrapper {
        flex: none;
        width: 100%;
        min-width: unset;
    }
}

@media (max-width: 768px) {
    .page-resources {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-resources__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-resources__hero-image img {
        border-radius: 4px;
    }
    .page-resources__main-title {
        font-size: 32px;
    }
    .page-resources__intro-text {
        font-size: 16px;
    }
    .page-resources__cta-button {
        padding: 12px 30px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-left: auto;
        margin-right: auto;
    }
    .page-resources__button-group {
        flex-direction: column;
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-resources__section {
        padding: 40px 0;
    }
    .page-resources__section-title {
        font-size: 26px;
        margin-bottom: 30px;
    }
    .page-resources__text-block {
        font-size: 16px;
        text-align: left;
    }
    .page-resources__ordered-list li,
    .page-resources__bullet-list li {
        font-size: 16px;
    }

    /* Images */
    .page-resources img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }
    .page-resources__section,
    .page-resources__card,
    .page-resources__container,
    .page-resources__image-wrapper,
    .page-resources__cards-grid,
    .page-resources__news-grid,
    .page-resources__faq-list,
    .page-resources__button-group {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-resources__card img,
    .page-resources__news-card img {
         /* Adjust card image height for mobile */
    }

    /* FAQ Mobile */
    .page-resources__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-resources__faq-question h3 {
        font-size: 16px;
        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;
    }
}