.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 from shared.css */
}

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

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

.page-resources__section:first-of-type {
    padding-top: var(--header-offset, 120px);
}

.page-resources__section-title {
    font-size: 36px;
    color: #26A9E0; /* Brand color for titles */
    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;
}

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

/* Dark background sections */
.page-resources__dark-bg {
    background-color: #26A9E0; /* Brand primary color */
    color: #ffffff;
}
.page-resources__dark-bg .page-resources__section-title,
.page-resources__dark-bg .page-resources__section-description,
.page-resources__dark-bg .page-resources__item-title,
.page-resources__dark-bg .page-resources__item-description,
.page-resources__dark-bg .page-resources__step-title,
.page-resources__dark-bg .page-resources__step-text,
.page-resources__dark-bg .page-resources__card-title,
.page-resources__dark-bg .page-resources__card-text,
.page-resources__dark-bg .page-resources__card-link,
.page-resources__dark-bg .page-resources__news-date {
    color: #ffffff;
}
.page-resources__dark-bg .page-resources__card-link:hover {
    color: #f0f0f0;
}


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

.page-resources__grid-item,
.page-resources__advantage-card,
.page-resources__promo-card,
.page-resources__news-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%; /* Ensure cards have equal height */
    box-sizing: border-box;
}

.page-resources__grid-item:hover,
.page-resources__advantage-card:hover,
.page-resources__promo-card:hover,
.page-resources__news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-resources__image {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 20px;
    object-fit: cover;
    display: block; /* Ensure no extra space below image */
    margin-left: auto;
    margin-right: auto;
    filter: none !important; /* Absolutely no filters */
    min-width: 200px;
    min-height: 200px;
}
.page-resources__grid-item .page-resources__image {
    height: 200px; /* Fixed height for grid item images */
    object-fit: cover;
}
.page-resources__advantage-card .page-resources__image {
    height: 180px; /* Fixed height for advantage card images */
    object-fit: cover;
}
.page-resources__promo-card .page-resources__image {
    height: 220px; /* Fixed height for promo card images */
    object-fit: cover;
}
.page-resources__news-card .page-resources__image {
    height: 250px; /* Fixed height for news card images */
    object-fit: cover;
}


.page-resources__item-title,
.page-resources__card-title {
    font-size: 22px;
    color: #26A9E0;
    margin-top: 15px;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-resources__item-description,
.page-resources__card-text {
    font-size: 16px;
    color: #555555;
    margin-bottom: 15px;
    flex-grow: 1; /* Allow text to take available space */
}

/* CTA Buttons */
.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;
    border: none;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
}

.page-resources__btn-primary {
    background: #EA7C07; /* Login color */
    color: #ffffff;
}

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

.page-resources__btn-secondary {
    background: #26A9E0; /* Brand primary color */
    color: #ffffff;
    margin-left: 15px;
}

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

.page-resources__button-center {
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 15px; /* Spacing between buttons if multiple */
    margin-top: 40px;
    flex-wrap: wrap;
}
.page-resources__cta-group {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    gap: 20px;
    margin-top: 40px;
}

/* Login Guide Section */
.page-resources__login-guide-section .page-resources__content-wrapper {
    display: flex;
    align-items: center;
    gap: 50px;
    text-align: left;
    margin-top: 40px;
}

.page-resources__step-by-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

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

.page-resources__step-title {
    font-size: 20px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 10px;
}

.page-resources__step-text {
    font-size: 16px;
    color: #f0f0f0;
}

.page-resources__image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-resources__image--right {
    border-radius: 8px;
}

/* Promotions Section */
.page-resources__promo-card {
    background-color: #ffffff;
    color: #333333;
}
.page-resources__promo-card .page-resources__card-title {
    color: #26A9E0;
}
.page-resources__promo-card .page-resources__card-link {
    display: inline-block;
    color: #EA7C07;
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
    transition: color 0.3s ease;
}
.page-resources__promo-card .page-resources__card-link:hover {
    color: #d46b06;
    text-decoration: underline;
}

/* News Section */
.page-resources__news-card {
    background-color: #ffffff;
    color: #333333;
    text-align: left;
    padding: 20px;
}
.page-resources__news-card .page-resources__card-title {
    font-size: 20px;
    color: #26A9E0;
    margin-bottom: 10px;
}
.page-resources__news-card .page-resources__card-title a {
    color: #26A9E0;
    text-decoration: none;
    transition: color 0.3s ease;
}
.page-resources__news-card .page-resources__card-title a:hover {
    color: #1e87b8;
    text-decoration: underline;
}
.page-resources__news-card .page-resources__card-text {
    font-size: 15px;
    color: #555555;
    margin-bottom: 10px;
}
.page-resources__news-date {
    font-size: 13px;
    color: #888888;
    display: block;
    margin-top: auto; /* Push date to bottom */
}

/* FAQ Section */
.page-resources__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  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;
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}