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

.page-resources__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  background-color: #26A9E0; /* Primary brand color */
  color: #ffffff;
  overflow: hidden;
}

.page-resources__hero-content {
  max-width: 900px;
  margin-bottom: 30px;
  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;
  color: #ffffff;
}

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

.page-resources__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%); /* Example of non-color changing filter */
}

.page-resources__content-area,
.page-resources__platform-advantages,
.page-resources__faq-section,
.page-resources__cta-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

.page-resources__section-header {
  text-align: center;
  margin-bottom: 40px;
}

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

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

.page-resources__section-subtitle {
  font-size: 1.1em;
  color: #555555;
  max-width: 800px;
  margin: 0 auto;
}

.page-resources__section-subtitle--white {
  color: #f0f0f0;
}

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

.page-resources__card {
  background: #ffffff;
  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;
  border: 1px solid #e0e0e0;
}

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

.page-resources__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  padding: 0 20px;
  color: #26A9E0;
}

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

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

.page-resources__card-text {
  font-size: 1em;
  color: #555555;
  padding: 0 20px 20px;
  flex-grow: 1;
}

.page-resources__card-link {
  display: inline-block;
  background-color: #26A9E0;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-resources__card-link:hover {
  background-color: #1a8cc7;
}

.page-resources__platform-advantages {
  background-color: #26A9E0;
  color: #ffffff;
  text-align: center;
}

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

.page-resources__advantage-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-resources__advantage-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-resources__advantage-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-resources__advantage-description {
  font-size: 1em;
  color: #f0f0f0;
}

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

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

.page-resources__faq-item {
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-resources__faq-item summary {
  list-style: none;
}

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

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

.page-resources__faq-item[open] .page-resources__faq-question {
  background-color: #f0f0f0;
}

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

.page-resources__faq-item[open] .page-resources__faq-toggle {
  transform: rotate(45deg);
}

.page-resources__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: #555555;
  border-top: 1px solid #e0e0e0;
}

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

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

.page-resources__cta-title {
  font-size: 3em;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-resources__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #f0f0f0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-resources__btn-primary {
  background-color: #EA7C07; /* Login color */
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: 2px solid transparent;
}

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

.page-resources__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  border: 2px solid #26A9E0;
}

.page-resources__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
  transform: translateY(-2px);
}

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

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

/* Mobile responsiveness */
@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__card-grid {
    grid-template-columns: 1fr;
  }

  .page-resources__advantages-grid {
    grid-template-columns: 1fr;
  }

  .page-resources__cta-title {
    font-size: 2.5em;
  }

  .page-resources__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-resources__btn-primary,
  .page-resources__btn-secondary {
    width: 100%;
    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__cta-buttons,
  .page-resources__button-group,
  .page-resources__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-resources__hero-section,
  .page-resources__content-area,
  .page-resources__platform-advantages,
  .page-resources__faq-section,
  .page-resources__cta-section {
    padding: 40px 15px;
  }

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

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

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

  .page-resources__section,
  .page-resources__card,
  .page-resources__container,
  .page-resources__hero-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }

  .page-resources__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure space for fixed header on mobile */
  }
}

/* Ensure min image size in content area */
.page-resources__card-image,
.page-resources__advantage-icon {
  min-width: 200px;
  min-height: 200px;
}

@media (max-width: 768px) {
  .page-resources__card-image,
  .page-resources__advantage-icon {
    min-width: unset;
    min-height: unset;
  }
}

/* Enforce content area image size for CSS selectors that might apply */
.page-resources img:not(.page-resources__hero-image) {
  /* This specifically targets images within the content, excluding the hero image if it has a different layout */
  min-width: 200px;
  min-height: 200px;
}

/* Override for mobile if needed, but the general img rule should handle it */
@media (max-width: 768px) {
  .page-resources img:not(.page-resources__hero-image) {
    min-width: unset;
    min-height: unset;
  }
}