.page-resources {
  color: #ffffff; /* Body background is dark (#1a1a2e), so text should be light */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

.page-resources__hero-section {
  position: relative;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
  background: linear-gradient(135deg, #26A9E0 0%, #1a1a2e 100%);
  text-align: center;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

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

.page-resources__main-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-resources__intro-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  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,
.page-resources__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
  text-align: center;
  box-sizing: border-box;
}

.page-resources__btn-primary {
  background: #EA7C07; /* Login color */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

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

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

.page-resources__btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.page-resources__content-section {
  padding: 60px 20px;
}

.page-resources__section-title {
  font-size: 2.2em;
  margin-bottom: 30px;
  text-align: center;
  font-weight: bold;
  color: #26A9E0;
}

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

.page-resources__paragraph {
  font-size: 1.1em;
  margin-bottom: 30px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #333333; /* Dark text on light background */
}

.page-resources__paragraph--white {
  color: #ffffff;
}

.page-resources__inline-link {
  color: #26A9E0;
  text-decoration: underline;
}

.page-resources__inline-link--white {
  color: #ffffff;
}

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

.page-resources__card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
  display: flex;
  flex-direction: column;
}

.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: 250px;
  object-fit: cover;
  display: block;
}

.page-resources__card-title {
  font-size: 1.4em;
  font-weight: bold;
  margin: 20px 15px 10px;
  flex-grow: 1;
}

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

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

.page-resources__card-description {
  font-size: 0.95em;
  color: #555555;
  margin: 0 15px 20px;
}

.page-resources__read-more {
  display: inline-block;
  padding: 10px 20px;
  background: #26A9E0;
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  margin-bottom: 20px;
  transition: background-color 0.3s ease;
}

.page-resources__read-more:hover {
  background: #1e87b8;
}

.page-resources__video-section {
  background: #1a1a2e;
  padding: 60px 20px;
  text-align: center;
}

.page-resources__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000000;
  border-radius: 12px;
  margin-top: 40px;
}

.page-resources__video,
.page-resources__video-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
}

.page-resources__feature-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.page-resources__feature-item {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease;
  color: #333333;
}

.page-resources__feature-item:hover {
  transform: translateY(-5px);
}

.page-resources__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: none; /* Ensure no color filter */
}

.page-resources__feature-title {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 10px;
}

.page-resources__feature-link {
  color: #26A9E0;
  text-decoration: none;
}

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

.page-resources__feature-description {
  font-size: 0.95em;
  color: #555555;
}

.page-resources__news-section {
  background: #1a1a2e;
  padding: 60px 20px;
}

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

.page-resources__card--news {
  background: #2a2a4a;
  color: #ffffff;
}

.page-resources__card--news .page-resources__card-title a {
  color: #ffffff;
}

.page-resources__card--news .page-resources__card-description {
  color: #cccccc;
}

.page-resources__card--news .page-resources__read-more {
  background: #EA7C07;
}

.page-resources__card--news .page-resources__read-more:hover {
  background: #d66f06;
}

.page-resources__button-group {
  margin-top: 40px;
  text-align: center;
}

.page-resources__faq-section {
  padding: 60px 20px;
}

.page-resources__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources__faq-item {
  background: #ffffff;
  border-radius: 10px;
  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 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  background: #f8f8f8;
  border-bottom: 1px solid #eeeeee;
  transition: background-color 0.3s ease;
}

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

.page-resources__faq-heading {
  margin: 0;
  color: #333333;
}

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

.page-resources__faq-item.active .page-resources__faq-toggle {
  transform: rotate(0deg); /* '+' to '-' rotation is handled by JS textContent */
}

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

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 1000px !important; /* Ensure enough height for content */
  padding: 20px 25px;
}

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

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-resources__main-title {
    font-size: 2.5em;
  }

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

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

@media (max-width: 768px) {
  .page-resources__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }

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

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

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

  .page-resources__btn-primary,
  .page-resources__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 0.95em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-resources__content-section,
  .page-resources__video-section,
  .page-resources__news-section,
  .page-resources__faq-section,
  .page-resources__cta-section {
    padding: 40px 15px;
  }

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

  .page-resources__paragraph {
    font-size: 1em;
  }

  .page-resources__grid,
  .page-resources__feature-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

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

  .page-resources__feature-icon {
    width: 80px;
    height: 80px;
  }

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

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

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

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

  .page-resources__container,
  .page-resources__video-wrapper,
  .page-resources__cta-buttons,
  .page-resources__button-group,
  .page-resources__grid,
  .page-resources__feature-list,
  .page-resources__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Mobile video responsiveness */
  .page-resources video,
  .page-resources__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  .page-resources__video-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure video section respects header offset */
  }
}

/* General image sizing to prevent small icons */
.page-resources img:not(.page-resources__feature-icon) {
  min-width: 200px;
  min-height: 200px;
}

.page-resources__feature-icon {
  min-width: 100px; /* Smallest allowed for icon-like but not tiny */
  min-height: 100px;
}

/* Ensure images maintain original color */
.page-resources img {
  filter: none; 
}