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

/* Header offset for the main content */
.page-resources__hero-section {
  padding-top: var(--header-offset, 120px);
}

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

/* Hero Section */
.page-resources__hero-section {
  background-color: #26A9E0; /* Brand primary color */
  color: #ffffff;
  padding: 80px 0;
  text-align: center;
}

.page-resources__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
}

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

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

.page-resources__btn-primary,
.page-resources__btn-secondary,
.page-resources__btn-link {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box; /* Crucial for responsive buttons */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

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

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

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

.page-resources__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #1e87b9;
  border-color: #1e87b9;
}

.page-resources__btn-link {
  background: none;
  border: none;
  color: #26A9E0;
  padding: 0;
  text-decoration: underline;
}

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

/* General Section Styling */
.page-resources__introduction-section,
.page-resources__tips-strategies-section,
.page-resources__video-section,
.page-resources__cta-section {
  padding: 60px 0;
  text-align: center;
}

.page-resources__guides-section,
.page-resources__news-updates-section,
.page-resources__faq-section {
  padding: 60px 0;
  text-align: center;
}

.page-resources__light-bg {
  background-color: #ffffff;
  color: #333333;
}

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

.page-resources__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  font-weight: bold;
}

.page-resources__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-resources__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
}

/* Grid for Guides/Cards */
.page-resources__grid,
.page-resources__feature-grid,
.page-resources__news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-resources__card {
  background-color: #ffffff;
  color: #333333;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-resources__card-image,
.page-resources__feature-image,
.page-resources__news-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency in cards */
  object-fit: cover;
  display: block;
}

.page-resources__card-title,
.page-resources__feature-title,
.page-resources__news-title {
  font-size: 1.5em;
  margin: 15px 15px 10px;
  font-weight: bold;
}

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

.page-resources__card-title a:hover,
.page-resources__news-title a:hover {
  color: #1e87b9;
}

.page-resources__card-description,
.page-resources__feature-description,
.page-resources__news-excerpt {
  font-size: 1em;
  margin: 0 15px 15px;
  flex-grow: 1;
}

.page-resources__news-meta {
  font-size: 0.9em;
  color: #666;
  margin: 0 15px 10px;
}

.page-resources__card .page-resources__btn-link,
.page-resources__news-card .page-resources__btn-link {
  margin: 0 15px 15px;
  align-self: flex-start;
}

.page-resources__feature-card {
  background-color: #ffffff;
  color: #333333;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  padding-bottom: 20px;
}

.page-resources__feature-title {
  color: #26A9E0;
}

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

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

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

/* FAQ Section */
.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.1); /* Light background for items in dark section */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.15);
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: #ffffff;
}

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

.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 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #ffffff; /* Text color for answers in dark section */
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 1000px !important;
  padding: 15px 20px;
}

.page-resources__faq-answer p {
  margin-bottom: 10px;
  text-align: left;
}

/* Responsive Design */
@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-title {
    font-size: 2.5em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__section-title {
    font-size: 1.8em;
  }
  .page-resources__paragraph {
    font-size: 1em;
    padding: 0 15px;
  }

  /* Buttons responsive */
  .page-resources__cta-group {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .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;
  }
  .page-resources__button-container {
    padding: 0 15px;
  }
  .page-resources__button-container .page-resources__btn-primary {
    max-width: 100% !important;
    width: 100% !important;
  }

  /* Image responsive */
  .page-resources img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-resources__image--full-width {
    padding: 0 15px;
  }

  /* Video responsive */
  .page-resources__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-resources__video-wrapper {
    margin: 40px 15px;
    padding-bottom: 56.25% !important;
    max-width: calc(100% - 30px) !important;
    width: calc(100% - 30px) !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-resources__video {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
  }

  /* Card/Grid responsive */
  .page-resources__grid,
  .page-resources__feature-grid,
  .page-resources__news-grid {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }
  .page-resources__card,
  .page-resources__feature-card,
  .page-resources__news-card {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  
  /* FAQ responsive */
  .page-resources__faq-list {
    padding: 0 15px;
  }
  .page-resources__faq-item {
    background-color: rgba(255, 255, 255, 0.15);
  }
  .page-resources__faq-question,
  .page-resources__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }
}

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