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

.page-resources__hero-section {
  position: relative;
  background-color: #1a1a2e; /* Inherit from body or specific dark color */
  background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)); /* Dark overlay for text readability */
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  min-height: 600px;
  overflow: hidden;
}

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

.page-resources__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Slightly dim the background image for text contrast */
}

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

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

.page-resources__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: #f0f0f0;
  line-height: 1.6;
}

.page-resources__hero-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;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-resources__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-resources__btn-primary:hover {
  background-color: #1f8bc0;
  border-color: #1f8bc0;
}

.page-resources__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-resources__btn-secondary:hover {
  background-color: #ffffff;
  color: #26A9E0;
}

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

.page-resources__overview-section {
  background-color: #1a1a2e;
  color: #ffffff;
}

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

.page-resources__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  color: #26A9E0;
}

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

.page-resources__features-section {
  background-color: #1a1a2e;
  color: #ffffff;
}

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

.page-resources__feature-card {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for dark background */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  box-sizing: border-box;
}

.page-resources__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.page-resources__feature-image {
  width: 100%;
  max-width: 400px; /* Constrain image width within card */
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-resources__feature-card-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-resources__feature-card-text {
  font-size: 1em;
  line-height: 1.6;
  color: #f0f0f0;
}

.page-resources__how-to-use-section {
  background-color: #1a1a2e;
  color: #ffffff;
}

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

.page-resources__step-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}

.page-resources__step-title {
  font-size: 1.4em;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-resources__step-text {
  font-size: 1em;
  line-height: 1.6;
  color: #f0f0f0;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-resources__btn-link {
  display: inline-block;
  margin-top: auto; /* Push button to bottom */
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
  border-bottom: 2px solid #26A9E0;
  padding-bottom: 5px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.page-resources__btn-link:hover {
  color: #1f8bc0;
  border-color: #1f8bc0;
}

.page-resources__faq-section {
  background-color: #1a1a2e;
  color: #ffffff;
}

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

.page-resources__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
}

.page-resources__faq-item summary {
  list-style: none; /* Hide default marker */
  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(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

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

.page-resources__faq-item summary:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-resources__faq-qtext {
  flex-grow: 1;
  color: #26A9E0;
}

.page-resources__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  margin-left: 20px;
  color: #ffffff;
}

.page-resources__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1em;
  line-height: 1.6;
  color: #f0f0f0;
}

.page-resources__news-updates-section {
  background-color: #1a1a2e;
  color: #ffffff;
}

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

.page-resources__news-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  text-align: left;
  text-decoration: none;
  color: #ffffff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}

.page-resources__news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.page-resources__news-image {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
}

.page-resources__news-title {
  font-size: 1.4em;
  color: #26A9E0;
  padding: 15px 20px 10px;
  flex-grow: 1;
}

.page-resources__news-excerpt {
  font-size: 0.95em;
  line-height: 1.5;
  color: #f0f0f0;
  padding: 0 20px 20px;
}

.page-resources__view-all-button-wrapper {
  margin-top: 40px;
}

.page-resources__download-cta-section,
.page-resources__contact-cta-section {
  background-color: #1a1a2e;
  color: #ffffff;
  padding: 80px 20px;
}

.page-resources__btn-large {
  padding: 18px 40px;
  font-size: 1.2em;
  border-radius: 10px;
}

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

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

@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.2em;
  }

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

  .page-resources__hero-cta-group {
    flex-direction: column;
    gap: 15px;
  }

  .page-resources__btn-primary,
  .page-resources__btn-secondary,
  .page-resources__btn-large {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    margin-left: auto; /* Center buttons when full width */
    margin-right: auto;
  }

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

  .page-resources__container {
    padding: 0 15px !important;
    width: 100% !important;
    max-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__feature-card,
  .page-resources__step-item,
  .page-resources__news-card {
    padding: 20px;
  }

  .page-resources__feature-card-title,
  .page-resources__step-title,
  .page-resources__news-title {
    font-size: 1.2em;
  }

  .page-resources__faq-item summary {
    font-size: 1em;
    padding: 15px 20px;
  }

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

  /* Images responsive */
  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-resources__news-image {
    height: 180px; /* Adjust fixed height for mobile */
  }
}

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

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

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

/* Ensure images in content areas are not too small */
.page-resources__feature-image,
.page-resources__news-image {
  min-width: 200px;
  min-height: 200px;
}

/* No filter on images */
.page-resources img {
  filter: none; /* Ensure no CSS filter is applied */
}