.page-resources {
  color: #ffffff; /* Body background is dark, so text should be light */
}

.page-resources__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  min-height: 600px;
  overflow: hidden;
  background: linear-gradient(135deg, #017439, #005f2e);
}

.page-resources__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin-bottom: 40px;
}

.page-resources__main-title {
  font-size: 3.5rem;
  color: #FFFF00; /* Register and Login font color for main title */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-resources__intro-text {
  font-size: 1.25rem;
  color: #ffffff;
  margin-bottom: 30px;
  line-height: 1.6;
}

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

.page-resources__btn-primary,
.page-resources__btn-secondary,
.page-resources__btn-card {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, transform 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.page-resources__btn-primary {
  background: #C30808; /* Register color */
  color: #FFFF00; /* Register and Login font color */
  border: 2px solid #C30808;
}

.page-resources__btn-primary:hover {
  background-color: #a00606;
  transform: translateY(-2px);
}

.page-resources__btn-secondary {
  background: transparent;
  color: #FFFF00; /* Login font color */
  border: 2px solid #FFFF00; /* Login font color for border */
}

.page-resources__btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

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

.page-resources__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

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

.page-resources__section-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
  text-align: center;
  color: #FFFF00; /* Use for titles in dark sections */
  line-height: 1.3;
}

.page-resources__light-bg .page-resources__section-title {
  color: #017439; /* Use for titles in light sections */
}

.page-resources__section-description {
  font-size: 1.1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
  color: #f0f0f0;
  line-height: 1.6;
}

.page-resources__light-bg .page-resources__section-description {
  color: #333333;
}

.page-resources__about-section,
.page-resources__strategies-section,
.page-resources__faq-section {
  background: #ffffff; /* White background */
  color: #333333; /* Dark text for light background */
  padding: 60px 0;
}

.page-resources__guides-section,
.page-resources__news-section,
.page-resources__contact-section {
  background: #0a0a0a; /* Dark background */
  color: #ffffff; /* Light text for dark background */
  padding: 60px 0;
}

.page-resources__dark-section {
  background: #0a0a0a;
  color: #ffffff;
}

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

.page-resources__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-resources__text-block h3 {
  font-size: 1.8rem;
  color: #017439;
  margin-bottom: 15px;
}

.page-resources__text-block p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 15px;
}

.page-resources__image-block img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

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

.page-resources__card {
  background: rgba(255, 255, 255, 0.05); /* Slightly transparent white for dark sections */
  color: #ffffff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources__light-bg .page-resources__card {
  background: #f8f8f8;
  color: #333333;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

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

.page-resources__card-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #FFFF00; /* Yellow for card titles */
  line-height: 1.4;
}

.page-resources__light-bg .page-resources__card-title {
  color: #017439;
}

.page-resources__card-title a {
  color: inherit;
  text-decoration: none;
}

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

.page-resources__card-text {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-resources__btn-card {
  background: #017439;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95rem;
  align-self: center;
}

.page-resources__btn-card:hover {
  background-color: #005f2e;
}

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

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

.page-resources__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2rem;
  font-weight: bold;
  color: #017439;
  cursor: pointer;
  outline: none;
  list-style: none;
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none;   /* Safari */
  -khtml-user-select: none;    /* Konqueror HTML */
  -moz-user-select: none;      /* Old versions of Firefox */
  -ms-user-select: none;       /* Internet Explorer/Edge */
  user-select: none;           /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
}

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

.page-resources__faq-qtext {
  flex-grow: 1;
}

.page-resources__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  width: 20px;
  text-align: center;
}

.page-resources__faq-answer {
  padding: 0 20px 20px;
  font-size: 1rem;
  line-height: 1.7;
  color: #555555;
}

.page-resources__inline-link {
  color: #017439;
  text-decoration: none;
  font-weight: bold;
}

.page-resources__inline-link:hover {
  text-decoration: underline;
}

.page-resources__dark-section .page-resources__inline-link {
  color: #FFFF00;
}

.page-resources__dark-section .page-resources__inline-link:hover {
  color: #ffffff;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-resources__main-title {
    font-size: 2.8rem;
  }
  .page-resources__section-title {
    font-size: 2rem;
  }
  .page-resources__content-grid {
    grid-template-columns: 1fr;
  }
  .page-resources__image-block {
    order: -1; /* Image appears above text on smaller screens */
  }
}

@media (max-width: 768px) {
  .page-resources__hero-section {
    padding-left: 15px;
    padding-right: 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure space for fixed header on mobile */
  }

  .page-resources__main-title {
    font-size: 2rem;
  }

  .page-resources__intro-text {
    font-size: 1rem;
  }

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

  .page-resources__btn-primary,
  .page-resources__btn-secondary,
  .page-resources__btn-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px;
    font-size: 1rem;
  }

  .page-resources__container {
    padding: 30px 15px;
  }

  .page-resources__section-title {
    font-size: 1.8rem;
  }

  .page-resources__section-description {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

  .page-resources__card {
    padding: 20px;
  }

  .page-resources__card-title {
    font-size: 1.3rem;
  }

  .page-resources__card-image {
    height: 180px;
  }

  .page-resources__guide-cards,
  .page-resources__news-cards,
  .page-resources__contact-options {
    grid-template-columns: 1fr;
  }

  .page-resources__faq-item summary {
    font-size: 1.05rem;
    padding: 15px;
  }

  .page-resources__faq-answer {
    font-size: 0.9rem;
    padding: 0 15px 15px;
  }

  /* Image responsive rules */
  .page-resources img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-resources__image-block,
  .page-resources__hero-image-wrapper,
  .page-resources__card-image {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  
  /* Content area image size enforcement */
  .page-resources__image-block img,
  .page-resources__card-image {
    min-width: 200px; /* Ensure images are not too small */
    min-height: 200px;
  }
  
  /* Video responsive rules (no video element in current HTML, but for future proofing) */
  .page-resources video,
  .page-resources__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-resources__video-section,
  .page-resources__video-container,
  .page-resources__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}