.page-resources {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --register-button-bg: #C30808;
  --login-button-bg: #C30808;
  --button-text-color: #FFFF00;
  --light-bg: #FFFFFF;
  --dark-bg-text: #ffffff;
  --light-bg-text: #333333;
  --card-bg: rgba(255, 255, 255, 0.9);
}

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

.page-resources__light-bg {
  background: var(--light-bg);
  color: var(--light-bg-text);
}

.page-resources__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px);
  overflow: hidden;
}

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

.page-resources__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6);
}

.page-resources__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

.page-resources__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--dark-bg-text);
}

.page-resources__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  line-height: 1.6;
  color: var(--dark-bg-text);
}

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

.page-resources__btn-primary,
.page-resources__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  min-width: 180px;
  text-align: center;
  box-sizing: border-box;
}

.page-resources__btn-primary {
  background-color: var(--register-button-bg);
  color: var(--button-text-color);
  border: 2px solid var(--register-button-bg);
}

.page-resources__btn-primary:hover {
  background-color: darken(var(--register-button-bg), 10%);
  border-color: darken(var(--register-button-bg), 10%);
  transform: translateY(-2px);
}

.page-resources__btn-secondary {
  background-color: transparent;
  color: var(--dark-bg-text);
  border: 2px solid var(--dark-bg-text);
}

.page-resources__btn-secondary:hover {
  background-color: var(--dark-bg-text);
  color: var(--primary-color);
  transform: translateY(-2px);
}

.page-resources__section {
  padding: 60px 20px;
}

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

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

.page-resources__section-description {
  font-size: 1.1em;
  line-height: 1.7;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: inherit;
}

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

.page-resources__card {
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--light-bg-text);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources__card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

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

.page-resources__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  line-height: 1.3;
  color: var(--light-bg-text);
}

.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: 1em;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-resources__card-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.page-resources__card-actions .page-resources__btn-primary {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border: 2px solid var(--primary-color);
  padding: 10px 20px;
  font-size: 0.95em;
  min-width: unset;
}

.page-resources__card-actions .page-resources__btn-primary:hover {
  background-color: darken(var(--primary-color), 10%);
  border-color: darken(var(--primary-color), 10%);
}

.page-resources__text-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

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

.page-resources__news-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 40px;
}

.page-resources__news-item {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  color: var(--light-bg-text);
}

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

.page-resources__news-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.page-resources__news-title {
  font-size: 1.6em;
  margin-bottom: 10px;
  line-height: 1.3;
  color: var(--light-bg-text);
}

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

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

.page-resources__news-excerpt {
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-resources__news-readmore {
  display: inline-block;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  margin-top: auto;
}

.page-resources__news-readmore:hover {
  text-decoration: underline;
}

.page-resources__cta-single {
  text-align: center;
  margin-top: 40px;
}

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

.page-resources__faq-item {
  background: var(--card-bg);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: var(--light-bg-text);
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background: var(--secondary-color);
  border-bottom: 1px solid #eee;
  color: var(--light-bg-text);
}

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

.page-resources__faq-title {
  margin: 0;
  font-size: 1em;
  color: inherit;
}

.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-out, padding 0.3s ease-out;
}

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

.page-resources__faq-answer p {
  margin: 0;
  line-height: 1.6;
  font-size: 0.95em;
}

.page-resources__contact-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 40px auto 0 auto;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Responsive styles */
@media (min-width: 769px) {
  .page-resources__news-item {
    flex-direction: row;
    text-align: left;
  }

  .page-resources__news-image {
    width: 350px;
    height: auto;
    flex-shrink: 0;
  }

  .page-resources__news-content {
    padding: 25px;
  }
}

@media (min-width: 1024px) {
  .page-resources__news-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .page-resources__hero-title {
    font-size: 2.2em;
  }

  .page-resources__hero-description {
    font-size: 1em;
  }

  .page-resources__section-title {
    font-size: 2em;
  }

  .page-resources__section-description {
    font-size: 0.95em;
  }

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

  .page-resources__cta-group,
  .page-resources__card-actions {
    flex-direction: column;
    gap: 10px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .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__news-item,
  .page-resources__faq-item,
  .page-resources__contact {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-resources__news-image {
    height: 200px;
  }

  .page-resources__news-item {
    flex-direction: column;
  }
  
  .page-resources__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }
}