/* 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__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Hero Section */
.page-resources__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: #f8f8f8;
  padding: 80px 20px;
  padding-top: calc(var(--header-offset, 120px) + 40px); /* Adjust for header, plus some content padding */
  position: relative;
  overflow: hidden;
}

.page-resources__hero-content {
  z-index: 1;
  max-width: 800px;
}

.page-resources__hero-title {
  font-size: 2.8em;
  color: #26A9E0;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

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

.page-resources__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* General Section Styling */
.page-resources__section {
  padding: 60px 0;
  text-align: center;
}

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

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

/* Buttons */
.page-resources__btn-primary,
.page-resources__btn-secondary,
.page-resources__btn-link {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
}

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

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

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

.page-resources__btn-secondary:hover {
  background-color: #f0f8ff;
  color: #1a7fb0;
  border-color: #1a7fb0;
}

.page-resources__btn-link {
  background: none;
  border: none;
  color: #26A9E0;
  padding: 0;
  margin-top: 15px;
}

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

.page-resources__cta-wrapper {
  margin-top: 40px;
}

/* Card Grid */
.page-resources__card-grid,
.page-resources__article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-resources__card,
.page-resources__article-card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-resources__card:hover,
.page-resources__article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.page-resources__card-image,
.page-resources__article-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
}

.page-resources__card-title,
.page-resources__article-title {
  font-size: 1.4em;
  color: #26A9E0;
  margin: 20px 20px 10px 20px;
}

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

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

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

.page-resources__card .page-resources__btn-secondary,
.page-resources__article-card .page-resources__btn-link {
  margin: 20px;
  align-self: flex-start;
}

/* Strategy List */
.page-resources__strategy-list {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 40px auto;
  text-align: left;
}

.page-resources__strategy-item {
  background-color: #f9f9f9;
  border-left: 5px solid #26A9E0;
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 5px;
  font-size: 1.1em;
  color: #444444;
}

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

/* FAQ Section */
.page-resources__faq-list {
  max-width: 800px;
  margin: 40px auto;
  text-align: left;
}

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

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.1em;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  background-color: #f0f0f0;
  transition: background-color 0.3s ease;
}

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

.page-resources__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #26A9E0;
  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 20px;
  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; /* Sufficiently large value */
  padding: 20px;
}

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

/* App Download Section */
.page-resources__app-download-section {
  background-color: #26A9E0; /* Brand primary color */
  color: #ffffff; /* White text for dark background */
  padding: 80px 0;
}

.page-resources__app-download-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-around;
  text-align: left;
}

.page-resources__app-text-content {
  max-width: 50%;
  padding-right: 30px;
}

.page-resources__app-download-section .page-resources__section-title {
  color: #ffffff;
}

.page-resources__app-download-section .page-resources__section-description {
  color: #f0f0f0;
}

.page-resources__app-image-wrapper {
  max-width: 40%;
  text-align: center;
}

.page-resources__app-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Contact Section */
.page-resources__contact-section {
  background-color: #f8f8f8;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 2.5em;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
  .page-resources__app-download-content {
    flex-direction: column;
    text-align: center;
  }
  .page-resources__app-text-content {
    max-width: 100%;
    padding-right: 0;
    margin-bottom: 40px;
  }
  .page-resources__app-image-wrapper {
    max-width: 60%;
  }
}

@media (max-width: 768px) {
  .page-resources__hero-section {
    padding: 60px 15px;
    padding-top: calc(var(--header-offset, 120px) + 30px);
  }
  .page-resources__hero-title {
    font-size: 2em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__section {
    padding: 40px 0;
  }
  .page-resources__section-title {
    font-size: 1.8em;
  }
  .page-resources__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-resources__card-grid,
  .page-resources__article-grid {
    grid-template-columns: 1fr;
  }
  .page-resources__app-download-section .page-resources__container {
    padding: 0 15px;
  }
  .page-resources__app-image-wrapper {
    max-width: 80%;
  }

  /* Mobile image, video, button adaptations */
  .page-resources img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-resources__section,
  .page-resources__card,
  .page-resources__container,
  .page-resources__app-download-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important; /* Ensure no horizontal scroll */
  }
  .page-resources__btn-primary,
  .page-resources__btn-secondary,
  .page-resources__btn-link {
    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-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .page-resources__app-text-content {
    padding-right: 0;
    padding-left: 0;
  }
  .page-resources__faq-question {
    padding: 15px;
  }
  .page-resources__faq-answer {
    padding: 0 15px;
  }
  .page-resources__faq-item.active .page-resources__faq-answer {
    padding: 15px !important;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 1.8em;
  }
  .page-resources__section-title {
    font-size: 1.6em;
  }
  .page-resources__card-title,
  .page-resources__article-title {
    font-size: 1.2em;
  }
}

/* Color Contrast Specifics */
.page-resources__dark-bg {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-resources__dark-bg .page-resources__section-description {
  color: #f0f0f0;
}

.page-resources__dark-bg .page-resources__btn-primary {
  background-color: #EA7C07; /* Login button color for CTA */
  border-color: #EA7C07;
  color: #ffffff;
}

.page-resources__dark-bg .page-resources__btn-primary:hover {
  background-color: #d46f00;
  border-color: #d46f00;
}

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

.page-resources__dark-bg .page-resources__btn-secondary:hover {
  background-color: #f0f8ff;
  color: #26A9E0;
  border-color: #f0f8ff;
}

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