.page-resources {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Dark body background #0a0a0a requires light text */
  background-color: #0a0a0a; /* Ensure consistency with body background */
  line-height: 1.6;
}

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

.page-resources__hero-section {
  position: relative;
  padding-top: var(--header-offset, 120px); /* Ensure space below fixed header */
  padding-bottom: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background-color: #017439; /* Brand primary color for hero background */
  color: #ffffff;
}

.page-resources__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.2;
}

.page-resources__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  color: #FFFF00; /* Register/Login font color for emphasis */
}

.page-resources__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #FFFF00; /* Consistent emphasis color for main titles */
}

.page-resources__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 60px auto;
  color: #f0f0f0;
}

.page-resources__content-section {
  padding: 80px 0;
  background-color: #0a0a0a; /* Body background */
  color: #ffffff;
}

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

.page-resources__card {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white for cards on dark background */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure cards have equal height */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-resources__card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-resources__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
  object-fit: cover;
}

.page-resources__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  font-weight: bold;
  color: #FFFF00; /* Consistent emphasis color */
}

.page-resources__card-title a {
  color: inherit;
  text-decoration: none;
}

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

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

.page-resources__card-link {
  display: inline-block;
  background-color: #017439; /* Brand primary color */
  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: #02944b; /* Slightly darker green on hover */
}

.page-resources__video-section {
  position: relative;
  padding: 80px 0;
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
  text-align: center;
}

.page-resources__video-intro {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 1000px; /* Max width for video container */
  margin: 0 auto 30px auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-resources__video-link {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.page-resources__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  object-fit: cover;
}

.page-resources__video-description {
  font-size: 1em;
  color: #f0f0f0;
  max-width: 800px;
  margin: 0 auto;
}

.page-resources__get-started-section {
  padding: 80px 0;
  background-color: #0a0a0a; /* Body background */
  color: #ffffff;
}

.page-resources__step-grid {
  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);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-resources__step-icon {
  font-size: 2.5em;
  font-weight: bold;
  color: #FFFF00; /* Emphasis color */
  margin-bottom: 20px;
  width: 60px;
  height: 60px;
  line-height: 60px;
  border: 2px solid #FFFF00;
  border-radius: 50%;
  margin-left: auto;
  margin-right: auto;
}

.page-resources__step-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #FFFF00;
}

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

.page-resources__app-showcase-image {
  display: block;
  max-width: 800px;
  width: 100%;
  height: auto;
  margin: 60px auto 0 auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
  object-fit: cover;
}

.page-resources__community-support-section {
  padding: 80px 0;
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
}

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

.page-resources__info-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-resources__info-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #FFFF00;
}

.page-resources__info-title a {
  color: inherit;
  text-decoration: none;
}

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

.page-resources__info-description {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 20px;
}

.page-resources__faq-section {
  padding: 80px 0;
  background-color: #0a0a0a; /* Body background */
  color: #ffffff;
}

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

.page-resources__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  margin-bottom: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: #FFFF00;
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

.page-resources__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-resources__faq-question h3 {
  margin: 0;
  color: inherit;
}

.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);
}

.page-resources__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 30px;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  color: #f0f0f0;
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 20px 30px;
}

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

.page-resources__cta-section {
  padding: 80px 0;
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
  text-align: center;
}

/* Buttons */
.page-resources__btn-primary {
  display: inline-block;
  background-color: #C30808; /* Register/Login button color */
  color: #FFFF00; /* Register/Login font color */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
}

.page-resources__btn-primary:hover {
  background-color: #e02020; /* Slightly darker red on hover */
  transform: translateY(-2px);
}

.page-resources__btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: #FFFF00;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  border: 2px solid #FFFF00; /* Yellow border */
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  cursor: pointer;
}

.page-resources__btn-secondary:hover {
  background-color: #FFFF00; /* Yellow background on hover */
  color: #017439; /* Green text on hover */
  transform: translateY(-2px);
}

.page-resources__btn-large {
  padding: 18px 40px;
  font-size: 1.3em;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 2.8em;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
  .page-resources__info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-resources__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure space below fixed header on mobile */
    padding-bottom: 60px;
  }
  .page-resources__hero-title {
    font-size: 2.2em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-resources__section-intro {
    font-size: 1em;
    margin-bottom: 40px;
  }
  .page-resources__content-section,
  .page-resources__video-section,
  .page-resources__get-started-section,
  .page-resources__community-support-section,
  .page-resources__faq-section,
  .page-resources__cta-section {
    padding: 60px 0;
  }

  .page-resources__container {
    padding: 0 15px;
  }

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

  .page-resources__card,
  .page-resources__step-item,
  .page-resources__info-card {
    padding: 20px;
  }

  /* Mobile Images */
  .page-resources img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important;
    min-height: 200px !important;
    object-fit: cover !important;
  }
  .page-resources__card-image,
  .page-resources__app-showcase-image {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Mobile Videos */
  .page-resources__video-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure space below fixed header on mobile */
  }
  .page-resources__video-wrapper {
    padding-bottom: 56.25% !important; /* 16:9 Aspect Ratio */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-resources__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Mobile Buttons */
  .page-resources__btn-primary,
  .page-resources__btn-secondary,
  .page-resources a[class*="button"],
  .page-resources a[class*="btn"] {
    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;
    margin-bottom: 10px; /* Add space between stacked buttons */
  }
  .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;
    display: flex;
    flex-direction: column; /* Stack buttons vertically */
  }

  .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;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 1.8em;
  }
  .page-resources__section-title {
    font-size: 1.5em;
  }
  .page-resources__btn-large {
    padding: 15px 30px;
    font-size: 1.1em;
  }
}