.page-resources {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: var(--black-color); /* Assuming shared.css defines --black-color as dark */
}

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

/* Hero Section */
.page-resources__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 70vh;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  overflow: hidden;
  background-color: #26A9E0; /* Primary brand color for hero background */
  color: #ffffff;
}

.page-resources__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin-bottom: 40px;
}

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

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

.page-resources__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap 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;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-sizing: border-box; /* Ensure padding and border are included in width */
}

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

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

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

.page-resources__btn-secondary:hover {
  background-color: #ffffff;
  color: #26A9E0;
}

.page-resources__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.3; /* Subtle background image */
  overflow: hidden;
}

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

/* General Section Styling */
.page-resources__section {
  padding: 80px 0;
}

.page-resources__dark-bg {
  background-color: var(--black-color); /* Assuming --black-color is dark */
  color: #ffffff;
}

.page-resources__light-bg {
  background-color: #ffffff;
  color: #333333; /* Dark text for light background */
}

.page-resources__heading {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 50px;
  color: inherit; /* Inherit color from section */
}

.page-resources__sub-heading {
  font-size: 1.8em;
  margin-bottom: 20px;
  color: inherit;
}

.page-resources__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
  color: inherit;
}

.page-resources__paragraph a {
  color: #26A9E0;
  text-decoration: underline;
}

.page-resources__paragraph a:hover {
  color: #1a7bbd;
}

.page-resources__highlight-text {
  color: #EA7C07; /* Orange for highlights */
  font-weight: bold;
}

/* Card Grid */
.page-resources__card-grid {
  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.1); /* Slightly transparent white for dark sections */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff; /* Text for cards on dark background */
}

.page-resources__light-bg .page-resources__card {
  background-color: #f8f8f8; /* Light background for cards on light sections */
  color: #333333; /* Dark text for cards on light background */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-resources__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-resources__light-bg .page-resources__card-image {
  border-bottom: 1px solid #e0e0e0;
}

.page-resources__card-title {
  font-size: 1.5em;
  padding: 20px 25px 10px;
  margin: 0;
  line-height: 1.3;
}

.page-resources__card-title a {
  color: inherit; /* Inherit color from card */
  text-decoration: none;
}

.page-resources__card-title a:hover {
  color: #26A9E0; /* Primary color on hover */
}

.page-resources__card-description {
  font-size: 1em;
  padding: 0 25px 20px;
  flex-grow: 1;
  text-align: justify;
}

.page-resources__btn-link {
  display: inline-block;
  padding: 10px 25px 20px;
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
}

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

/* Content Block (for Trends section) */
.page-resources__content-block {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
}

.page-resources__content-block--reverse {
  flex-direction: row-reverse;
}

.page-resources__content-image {
  flex: 1;
  min-width: 400px; /* Ensure image doesn't get too small */
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  width: 100%; /* For display width/height */
  height: auto; /* For display width/height */
}

.page-resources__text-content {
  flex: 1;
}

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

.page-resources__faq-item {
  background-color: rgba(255, 255, 255, 0.1); /* Light background on dark section */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-resources__light-bg .page-resources__faq-item {
  background-color: #f8f8f8; /* Darker background on light section */
  color: #333333;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}