.page-resources__hero-section {
  position: relative;
  width: 100%;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--secondary-color);
  padding-top: var(--header-offset, 120px);
  overflow: hidden;
}

.page-resources__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-resources__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2;
}

.page-resources__hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 20px;
}

.page-resources__hero-title {
  font-size: 3.5rem;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--secondary-color);
}

.page-resources__hero-description {
  font-size: 1.3rem;
  margin-bottom: 30px;
  line-height: 1.5;
}

.page-resources__section {
  padding: 80px 20px;
  color: #333333; /* Default for light background */
}

.page-resources__dark-bg {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

.page-resources__light-bg {
  background-color: var(--secondary-color);
  color: #333333;
}

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

.page-resources__section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 50px;
  color: inherit;
}

.page-resources__text-block {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

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

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

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

.page-resources__card-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-resources__card-link {
  color: var(--primary-color);
  text-decoration: none;
}

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

.page-resources__list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  font-size: 1rem;
  line-height: 1.6;
}

.page-resources__list li {
  margin-bottom: 10px;
}

.page-resources__list li strong {
  color: var(--primary-color);
}

.page-resources__table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  margin-bottom: 20px;
  background: #f9f9f9;
  color: #333333;
}

.page-resources__table th,
.page-resources__table td {
  border: 1px solid #e0e0e0;
  padding: 12px 15px;
  text-align: left;
}

.page-resources__table th {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  font-weight: bold;
}

.page-resources__table tbody tr:nth-child(even) {
  background-color: #f0f0f0;
}

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

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

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  background: #f8f8f8;
  border-bottom: 1px solid #eee;
  color: var(--primary-color);
  list-style: none;
}

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

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

.page-resources__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
}

.page-resources__faq-answer {
  padding: 20px;
  font-size: 1.1rem;
  line-height: 1.6;
  background: #ffffff;
  color: #333333;
}

.page-resources__list-horizontal {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-resources__list-item-card {
  flex: 1 1 calc(33% - 20px);
  background: var(--secondary-color);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: left;
  color: #333333;
  min-width: 280px;
}

.page-resources__list-item-title {
  font-size: 1.6rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-resources__btn-primary,
.page-resources__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  margin: 10px;
  text-align: center;
}

.page-resources__btn-primary {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border: 2px solid var(--primary-color);
}

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

.page-resources__btn-secondary {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-resources__btn-secondary:hover {
  background-color: #e6e6e6;
  border-color: #005f2e;
}

.page-resources__cta-buttons {
  text-align: center;
  margin-top: 50px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 3rem;
  }
  .page-resources__hero-description {
    font-size: 1.1rem;
  }
  .page-resources__section-title {
    font-size: 2rem;
  }
  .page-resources__grid-container {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-resources__list-item-card {
    flex: 1 1 calc(50% - 15px);
  }
}

@media (max-width: 768px) {
  .page-resources__hero-section {
    min-height: 400px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-resources__hero-title {
    font-size: 2.2rem;
  }
  .page-resources__hero-description {
    font-size: 1rem;
  }
  .page-resources__section {
    padding: 60px 15px;
  }
  .page-resources__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }
  .page-resources__text-block,
  .page-resources__list,
  .page-resources__faq-answer {
    font-size: 1rem;
    line-height: 1.5;
  }
  .page-resources__card {
    padding: 20px;
  }
  .page-resources__card-image {
    height: 200px;
  }
  .page-resources__card-title {
    font-size: 1.3rem;
  }
  .page-resources__faq-question {
    font-size: 1.1rem;
    padding: 15px;
  }
  .page-resources__faq-toggle {
    font-size: 1.3rem;
  }
  .page-resources__list-horizontal {
    flex-direction: column;
    gap: 20px;
  }
  .page-resources__list-item-card {
    flex: 1 1 100%;
    padding: 20px;
  }
  .page-resources__list-item-title {
    font-size: 1.4rem;
  }
  .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;
    margin: 5px 0 !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-resources__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  /* Image and container responsive styles */
  .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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-resources__hero-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .page-resources__hero-content {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-resources__table {
    overflow-x: auto;
    display: block;
  }
  .page-resources__table thead, .page-resources__table tbody, .page-resources__table th, .page-resources__table td, .page-resources__table tr {
    display: block;
  }
  .page-resources__table th {
    text-align: right;
  }
  .page-resources__table td {
    text-align: right;
    position: relative;
    padding-left: 50%;
  }
  .page-resources__table td::before {
    content: attr(data-label);
    position: absolute;
    left: 6px;
    width: 45%;
    padding-right: 10px;
    white-space: nowrap;
    text-align: left;
    font-weight: bold;
  }
}