.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, assuming body is white */
}

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

/* Hero Section */
.page-resources__hero-section {
  padding: 80px 0;
  text-align: center;
  background-color: #f8f8f8; /* Light background for hero */
  color: #333333;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

.page-resources__hero-title {
  font-size: 3em;
  color: #26A9E0; /* Brand color for title */
  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-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-resources__btn-primary,
.page-resources__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  max-width: 100%; /* Ensure button doesn't overflow */
  box-sizing: border-box;
}

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

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

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

.page-resources__btn-secondary:hover {
  background-color: #e0f4ff;
}

/* General Section Styling */
.page-resources__section-title {
  font-size: 2.5em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

.page-resources__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

/* About Section */
.page-resources__about-section {
  padding: 60px 0;
  background-color: #ffffff;
  color: #333333;
}

.page-resources__grid-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-resources__text-content p {
  margin-bottom: 15px;
}

.page-resources__image-wrapper {
  text-align: center;
}

.page-resources__image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: block; /* Ensure it behaves as a block element for max-width */
}

/* Guides Section */
.page-resources__guides-section {
  padding: 60px 0;
  background-color: #26A9E0; /* Dark background */
  color: #ffffff; /* White text */
}

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

.page-resources__card {
  background-color: #ffffff;
  color: #333333;
  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;
}

.page-resources__card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-resources__card-title {
  font-size: 1.5em;
  margin: 20px 15px 10px;
  color: #26A9E0;
  font-weight: bold;
}

.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: 0.95em;
  padding: 0 15px;
  margin-bottom: 20px;
  flex-grow: 1; /* Allow text to grow and push link to bottom */
}

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

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

/* News Section */
.page-resources__news-section {
  padding: 60px 0;
  background-color: #f8f8f8;
  color: #333333;
}

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

.page-resources__article-item {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

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

.page-resources__article-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-resources__article-title {
  font-size: 1.3em;
  margin-top: 0;
  margin-bottom: 10px;
  color: #26A9E0;
  font-weight: bold;
}

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

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

.page-resources__article-meta {
  font-size: 0.85em;
  color: #777777;
  margin-bottom: 15px;
}

.page-resources__article-excerpt {
  font-size: 0.95em;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-resources__read-more {
  display: inline-block;
  color: #EA7C07; /* Login color for action */
  text-decoration: none;
  font-weight: bold;
  align-self: flex-start;
}

.page-resources__read-more:hover {
  text-decoration: underline;
}

.page-resources__view-all-button {
  text-align: center;
}

/* FAQ Section */
.page-resources__faq-section {
  padding: 60px 0;
  background-color: #ffffff;
  color: #333333;
}

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

.page-resources__faq-item {
  background-color: #f0f8ff; /* Light blue background for FAQ item */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: #26A9E0;
  cursor: pointer;
  background-color: #e0f4ff; /* Lighter brand blue */
  border-bottom: 1px solid transparent; /* default */
  transition: background-color 0.3s ease;
  list-style: none; /* Remove default marker for details */
}

.page-resources__faq-question::-webkit-details-marker {
  display: none; /* Remove default marker for details */
}

.page-resources__faq-item[open] .page-resources__faq-question {
  background-color: #26A9E0;
  color: #ffffff;
  border-bottom-color: #26A9E0;
}

.page-resources__faq-qtext {
  flex-grow: 1;
}

.page-resources__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
}

.page-resources__faq-item[open] .page-resources__faq-toggle {
  color: #ffffff; /* White toggle when open */
}

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

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

/* Bottom CTA Section */
.page-resources__cta-bottom-section {
  padding: 60px 0;
  background-color: #26A9E0; /* Brand color */
  color: #ffffff;
  text-align: center;
}

.page-resources__cta-buttons--center {
  margin-top: 30px;
}

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

/* Responsive Styles */
@media (max-width: 992px) {
  .page-resources__hero-title {
    font-size: 2.5em;
  }

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

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

  .page-resources__image-wrapper {
    order: -1; /* Image appears above text on smaller screens */
    margin-bottom: 30px;
  }

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

@media (max-width: 768px) {
  .page-resources__container {
    padding: 0 15px;
  }

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

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

  .page-resources__hero-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-left: 15px !important;
    padding-right: 15px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

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

  .page-resources__section-description {
    font-size: 0.95em;
  }

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

  .page-resources__section,
  .page-resources__card,
  .page-resources__container,
  .page-resources__image-wrapper,
  .page-resources__card-grid,
  .page-resources__article-list,
  .page-resources__article-item,
  .page-resources__faq-list,
  .page-resources__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* Adding padding to prevent content from touching screen edges */
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-resources__hero-section,
  .page-resources__about-section,
  .page-resources__guides-section,
  .page-resources__news-section,
  .page-resources__faq-section,
  .page-resources__cta-bottom-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .page-resources__card-image,
  .page-resources__article-image {
    height: auto !important; /* Allow height to adjust naturally */
  }

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

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

  .page-resources__btn-primary--large {
    font-size: 1.1em;
  }
}