.page-resources {
  color: #ffffff; /* Default text color for dark body background */
}

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

.page-resources__hero-section {
  position: relative;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  padding-bottom: 80px;
  background-color: #1a1a2e; /* Matches body background for seamless look */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.page-resources__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-resources__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image for text readability */
}

.page-resources__hero-section .page-resources__container {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

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

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

.page-resources__content-section {
  padding: 80px 0;
  background-color: #ffffff;
  color: #333333; /* Dark text on light background */
}

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

.page-resources__section-intro {
  font-size: 1.1em;
  line-height: 1.6;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 60px auto;
}

.page-resources__section-text {
  font-size: 1em;
  line-height: 1.6;
  margin-top: 20px;
  margin-bottom: 20px;
}

.page-resources__section-text a {
  color: #26A9E0;
  text-decoration: underline;
}

.page-resources__card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.page-resources__card {
  background-color: #f8f8f8;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #333333;
}

.page-resources__card-image {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-resources__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  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: 1em;
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-resources__info-block {
  background-color: #f8f8f8;
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 40px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  color: #333333;
}

.page-resources__info-title {
  font-size: 1.8em;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-resources__info-text {
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 20px;
}

.page-resources__info-text a {
  color: #26A9E0;
  text-decoration: underline;
}

.page-resources__info-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 20px;
}

.page-resources__payment-methods {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 60px;
}

.page-resources__payment-item {
  background-color: #f8f8f8;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  width: 280px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  color: #333333;
}

.page-resources__payment-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 15px;
}

.page-resources__payment-name {
  font-size: 1.3em;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-resources__payment-desc {
  font-size: 0.95em;
  line-height: 1.5;
}

.page-resources__faq-list {
  margin-top: 40px;
  margin-bottom: 60px;
}

.page-resources__faq-item {
  background-color: #f8f8f8;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  color: #333333;
}

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

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

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

.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;
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show all content */
  padding: 15px 25px 25px 25px;
}

.page-resources__faq-answer p {
  margin-bottom: 0;
  line-height: 1.6;
}

.page-resources__faq-answer a {
  color: #26A9E0;
  text-decoration: underline;
}

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

.page-resources__news-item {
  background-color: #f8f8f8;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  color: #333333;
}

.page-resources__news-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.page-resources__news-item h3 {
  padding: 20px 20px 0 20px;
  font-size: 1.3em;
  color: #26A9E0;
}

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

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

.page-resources__news-excerpt {
  padding: 10px 20px 20px 20px;
  font-size: 0.95em;
  line-height: 1.5;
}

.page-resources__news-item .page-resources__btn-secondary {
  margin: 0 20px 20px 20px;
  display: inline-block;
  width: auto;
  max-width: calc(100% - 40px);
}

.page-resources__contact-info {
  background-color: #f8f8f8;
  border-radius: 10px;
  padding: 30px;
  margin-top: 40px;
  margin-bottom: 60px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  color: #333333;
}

.page-resources__contact-info p {
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 15px;
}

.page-resources__contact-info ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 25px;
}

.page-resources__contact-info li {
  margin-bottom: 10px;
  font-size: 1.05em;
}

.page-resources__contact-info li strong {
  color: #26A9E0;
}

.page-resources__contact-info li a {
  color: #26A9E0;
  text-decoration: none;
}

.page-resources__contact-info li a:hover {
  text-decoration: underline;
}

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

.page-resources__cta-content {
  max-width: 800px;
}

.page-resources__cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #ffffff;
}

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

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

/* Buttons */
.page-resources__btn-primary, .page-resources__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
}

.page-resources__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

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

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

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

.page-resources__btn-center {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: fit-content;
}

/* Mobile responsiveness */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 3em;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-resources {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-resources__hero-section {
    padding-bottom: 60px;
  }
  .page-resources__hero-title {
    font-size: 2.2em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__content-section {
    padding: 60px 0;
  }
  .page-resources__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-resources__section-intro {
    margin-bottom: 40px;
  }
  .page-resources__card-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-resources__card, .page-resources__info-block, .page-resources__payment-item, .page-resources__faq-item, .page-resources__news-item, .page-resources__contact-info {
    padding: 20px;
  }
  .page-resources__payment-methods {
    flex-direction: column;
    align-items: center;
  }
  .page-resources__payment-item {
    width: 100%;
    max-width: 300px;
  }
  .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: 10px 20px 20px 20px;
  }
  .page-resources__news-preview {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-resources__cta-section {
    padding: 60px 0;
  }
  .page-resources__cta-title {
    font-size: 2em;
  }
  .page-resources__cta-description {
    font-size: 1em;
  }
  .page-resources__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources__btn-primary, .page-resources__btn-secondary {
    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;
  }
  /* Mobile image responsiveness */
  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-resources__section,
  .page-resources__card,
  .page-resources__container,
  .page-resources__hero-section,
  .page-resources__info-block,
  .page-resources__payment-item,
  .page-resources__faq-item,
  .page-resources__news-item,
  .page-resources__contact-info,
  .page-resources__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}

/* Ensure links within sections are visible */
.page-resources__content-section a {
  color: #26A9E0;
  text-decoration: none;
}

.page-resources__content-section a:hover {
  text-decoration: underline;
}