.page-resources {
  color: #ffffff; /* Default text color for dark body background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

.page-resources__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
  overflow: hidden;
  padding-top: var(--header-offset, 120px);
}

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

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

.page-resources__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  opacity: 0.9;
}

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

.page-resources__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0.3; /* Slightly transparent overlay */
  z-index: 0;
}

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

.page-resources__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  text-align: center;
  color: #017439; /* Primary color for titles */
}

.page-resources__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: #333333; /* Dark text for light backgrounds */
}

.page-resources__overview-section {
  padding: 60px 20px;
  background-color: #ffffff;
  color: #333333;
}

.page-resources__overview-section .page-resources__section-title {
  color: #017439;
}

.page-resources__overview-section .page-resources__section-description {
  color: #333333;
}

.page-resources__guides-section {
  padding: 60px 20px;
  background-color: #017439;
  color: #ffffff;
}

.page-resources__guides-section .page-resources__section-title {
  color: #ffffff;
}

.page-resources__guides-section .page-resources__section-description {
  color: #f0f0f0;
}

.page-resources__guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 40px auto 0 auto;
}

.page-resources__guide-card {
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #333333;
}

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

.page-resources__card-title {
  font-size: 1.5em;
  margin: 0 15px 10px 15px;
  color: #017439;
}

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

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

.page-resources__card-text {
  font-size: 1em;
  margin: 0 15px 20px 15px;
  flex-grow: 1;
}

.page-resources__strategy-section {
  padding: 60px 20px;
  background-color: #ffffff;
  color: #333333;
}

.page-resources__strategy-section .page-resources__section-title {
  color: #017439;
}

.page-resources__strategy-section .page-resources__section-description {
  color: #333333;
}

.page-resources__strategy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 40px auto;
}

.page-resources__strategy-item {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid #e0e0e0;
}

.page-resources__cta-banner {
  display: flex;
  align-items: center;
  background-color: #017439;
  color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 60px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-resources__cta-banner-image {
  width: 50%;
  height: auto;
  object-fit: cover;
}

.page-resources__cta-banner-content {
  width: 50%;
  padding: 40px;
  text-align: left;
}

.page-resources__cta-banner-title {
  font-size: 2em;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-resources__cta-banner-text {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-resources__security-section {
  padding: 60px 20px;
  background-color: #017439;
  color: #ffffff;
}

.page-resources__security-section .page-resources__section-title {
  color: #ffffff;
}

.page-resources__security-section .page-resources__section-description {
  color: #f0f0f0;
}

.page-resources__security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 40px auto;
}

.page-resources__security-item {
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  color: #333333;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-resources__security-item .page-resources__card-title {
  font-size: 1.3em;
  color: #017439;
}

.page-resources__security-item .page-resources__card-title a {
  color: #017439;
  text-decoration: none;
}

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

.page-resources__security-item .page-resources__card-text {
  font-size: 0.95em;
}

.page-resources__security-image {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 60px auto 0 auto;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-resources__news-section {
  padding: 60px 20px;
  background-color: #ffffff;
  color: #333333;
}

.page-resources__news-section .page-resources__section-title {
  color: #017439;
}

.page-resources__news-section .page-resources__section-description {
  color: #333333;
}

.page-resources__news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 40px auto;
}

.page-resources__news-item {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  padding: 30px;
  text-align: center;
  border: 1px solid #e0e0e0;
}

.page-resources__news-item .page-resources__card-title {
  font-size: 1.3em;
  color: #017439;
}

.page-resources__news-item .page-resources__card-title a {
  color: #017439;
  text-decoration: none;
}

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

.page-resources__faq-section {
  padding: 60px 20px;
  background-color: #017439;
  color: #ffffff;
}

.page-resources__faq-section .page-resources__section-title {
  color: #ffffff;
}

.page-resources__faq-section .page-resources__section-description {
  color: #f0f0f0;
}

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

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

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: #ffffff;
  border-bottom: 1px solid #eee;
  color: #017439;
}

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

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

.page-resources__faq-item.active .page-resources__faq-toggle {
  transform: rotate(45deg);
  content: '−';
}

.page-resources__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #fdfdfd;
  color: #333333;
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 1000px !important; /* Sufficiently large value */
  padding: 20px;
}

.page-resources__faq-answer p {
  margin: 0;
  padding-bottom: 10px;
}

.page-resources__cta-final-section {
  padding: 80px 20px;
  background-color: #ffffff;
  color: #333333;
  text-align: center;
}

.page-resources__cta-final-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-resources__cta-final-section .page-resources__section-title {
  color: #017439;
}

.page-resources__cta-final-section .page-resources__section-description {
  color: #333333;
  margin-bottom: 40px;
}

/* Common button styles */
.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;
  box-sizing: border-box;
}

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

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

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

.page-resources__btn-secondary:hover {
  background-color: #f0f0f0;
  border-color: #005f2c;
  transform: translateY(-2px);
}

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

.page-resources__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .page-resources__hero-title {
    font-size: 2.8em;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
  .page-resources__cta-banner-image {
    width: 40%;
  }
  .page-resources__cta-banner-content {
    width: 60%;
  }
}

@media (max-width: 992px) {
  .page-resources__hero-title {
    font-size: 2.5em;
  }
  .page-resources__hero-description {
    font-size: 1.1em;
  }
  .page-resources__cta-banner {
    flex-direction: column;
    text-align: center;
  }
  .page-resources__cta-banner-image,
  .page-resources__cta-banner-content {
    width: 100%;
    padding: 30px;
  }
  .page-resources__cta-banner-content {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .page-resources__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile padding-top */
  }
  .page-resources__hero-title {
    font-size: 2em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources__btn-primary,
  .page-resources__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-resources__section-title {
    font-size: 1.8em;
  }
  .page-resources__section-description {
    font-size: 0.95em;
  }
  .page-resources__guide-grid,
  .page-resources__strategy-grid,
  .page-resources__security-grid,
  .page-resources__news-grid {
    grid-template-columns: 1fr;
  }
  .page-resources__card-image {
    height: 180px;
  }
  .page-resources__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }
  .page-resources__faq-answer {
    padding: 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-image-wrapper,
  .page-resources__cta-banner,
  .page-resources__cta-banner-image,
  .page-resources__cta-banner-content,
  .page-resources__security-image {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent content overflow */
  }

  /* Mobile video responsiveness (if any video is added) */
  .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;
  }
}