/* style/resources.css */
.page-resources {
  color: #ffffff; /* Dark body background #0a0a0a, so light text */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-resources__hero-section {
  position: relative;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Apply header offset */
  background-color: #0a0a0a; /* Match body background for seamless transition */
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 500px;
  overflow: hidden;
}

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

.page-resources__hero-title {
  font-size: 3.2em;
  color: #FFFFFF;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

.page-resources__hero-video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  margin-bottom: 30px;
  background-color: #000;
  border-radius: 8px;
  overflow: hidden;
}

.page-resources__hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.page-resources__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  margin: 10px;
  cursor: pointer;
}

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

.page-resources__cta-button--primary:hover {
  background-color: #e00b0b;
  transform: translateY(-2px);
}

.page-resources__cta-button--secondary {
  background-color: #017439;
  color: #FFFFFF;
  border: 2px solid #017439;
}

.page-resources__cta-button--secondary:hover {
  background-color: #005a2d;
  transform: translateY(-2px);
}

.page-resources__section {
  padding: 60px 20px;
  background-color: #0a0a0a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-resources__section--introduction {
  background-color: #0a0a0a;
}

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

.page-resources__container--flex {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

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

.page-resources__section-text {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 20px;
  text-align: justify;
}

.page-resources__card-grid {
  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.08); /* Semi-transparent white background for contrast */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: #ffffff;
}

.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: 225px; /* Fixed height for consistency, maintain aspect ratio */
  object-fit: cover;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

.page-resources__card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-resources__card-title {
  font-size: 1.4em;
  margin-bottom: 15px;
  color: #FFFFFF;
}

.page-resources__card-title a {
  color: #FFFFFF;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources__card-title a:hover {
  color: #017439; /* Brand color on hover */
}

.page-resources__card-description {
  font-size: 1em;
  color: #cccccc;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-resources__card-link {
  display: inline-block;
  color: #FFFF00; /* Register/Login font color for emphasis */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-resources__card-link:hover {
  color: #C30808; /* Register/Login color on hover */
}

.page-resources__responsible-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  text-align: left;
}

.page-resources__responsible-item {
  background: rgba(1, 116, 57, 0.15); /* Main color with transparency */
  border-left: 5px solid #017439;
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  color: #f0f0f0;
  font-size: 1.1em;
}

.page-resources__responsible-item strong {
  color: #FFFFFF;
}

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

.page-resources__faq-item {
  background: rgba(255, 255, 255, 0.08); /* Semi-transparent white background */
  border-radius: 12px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #FFFFFF;
  cursor: pointer;
  background-color: rgba(1, 116, 57, 0.3); /* Main color with transparency */
  transition: background-color 0.3s ease;
}

.page-resources__faq-question:hover {
  background-color: rgba(1, 116, 57, 0.5);
}

.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); /* Plus sign rotates to form an X or minus */
}

.page-resources__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #cccccc;
  font-size: 1em;
}

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

.page-resources__faq-answer p {
  margin: 0;
  color: #cccccc;
}

.page-resources__button-group {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 2.8em;
  }

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

  .page-resources__card-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-resources {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-resources__hero-section {
    padding: 40px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile offset */
    min-height: 400px;
  }

  .page-resources__hero-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }

  .page-resources__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-resources__cta-button {
    padding: 12px 25px;
    font-size: 0.9em;
    margin: 5px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-resources__hero-video-wrapper {
    padding-bottom: 65%; /* Adjust aspect ratio for mobile if needed */
    margin-bottom: 20px;
  }

  .page-resources__hero-video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-resources__section {
    padding: 40px 15px;
  }

  .page-resources__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-resources__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

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

  .page-resources__card-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-resources__card-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px;
    min-height: 112px; /* 16:9 aspect for 200px width */
  }

  .page-resources__card-content {
    padding: 20px;
  }

  .page-resources__card-title {
    font-size: 1.2em;
  }

  .page-resources__card-description {
    font-size: 0.9em;
  }

  .page-resources__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }

  .page-resources__faq-answer {
    padding: 0 20px;
  }

  .page-resources__faq-item.active .page-resources__faq-answer {
    padding: 15px 20px;
  }

  .page-resources__button-group {
    flex-direction: column;
    gap: 10px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }

  .page-resources__responsible-item {
    padding: 12px 15px;
    font-size: 1em;
  }
}

/* Ensure all images in content area are responsive and not too small */
.page-resources img {
  max-width: 100%;
  height: auto;
  display: block;
  /* Enforce minimum display size for content images */
  min-width: 200px;
  min- /* For 16:9 aspect ratio */
}

/* Specific override for card images to ensure they meet minimum size requirement */
.page-resources__card-image {
  min-width: 200px;
  min-height: 112px; /* Assuming 16:9 for card images as a common ratio */
}

/* No filter on images */
.page-resources img {
  filter: none; /* Explicitly remove any potential filters */
}