.page-resources {
  color: #333333; /* Dark text for default light body background */
}

.page-resources__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
  background-color: #003366; /* Main brand color for hero background */
}

.page-resources__hero-container {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  flex-wrap: wrap;
}

.page-resources__hero-image {
  display: block;
  width: 100%;
  height: auto;
  max-width: 800px; /* Adjust as needed for layout */
  border-radius: 10px;
  object-fit: cover;
}

.page-resources__hero-content {
  text-align: center;
  padding: 30px;
  color: #ffffff;
  max-width: 600px;
}

.page-resources__hero-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #FFCC00; /* Accent color for title */
  line-height: 1.2;
}

.page-resources__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  line-height: 1.6;
}

.page-resources__hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

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

.page-resources__section-title {
  font-size: 2.5em;
  color: #003366;
  text-align: center;
  margin-bottom: 20px;
}

.page-resources__section-intro {
  font-size: 1.1em;
  line-height: 1.7;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  color: #555555;
}

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

.page-resources__card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px 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 {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

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

.page-resources__card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-resources__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  line-height: 1.4;
}

.page-resources__card-title a {
  color: #003366;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources__card-title a:hover {
  color: #FFCC00;
}

.page-resources__card-summary {
  font-size: 1em;
  line-height: 1.6;
  color: #666666;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-resources__button {
  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;
  white-space: nowrap;
}

.page-resources__button--primary {
  background-color: #FFCC00;
  color: #003366;
  border: 2px solid #FFCC00;
}

.page-resources__button--primary:hover {
  background-color: #e6b800;
  border-color: #e6b800;
}

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

.page-resources__button--secondary:hover {
  background-color: #FFCC00;
  color: #003366;
}

.page-resources__button--tertiary {
  background-color: #003366;
  color: #ffffff;
  border: 2px solid #003366;
}

.page-resources__button--tertiary:hover {
  background-color: #004488;
  border-color: #004488;
}

.page-resources__section {
  margin-bottom: 60px;
}

.page-resources__section-subtitle {
  font-size: 2em;
  color: #003366;
  text-align: center;
  margin-bottom: 30px;
}

.page-resources__text-block {
  font-size: 1.1em;
  line-height: 1.8;
  color: #444444;
  margin-bottom: 20px;
  text-align: justify;
}

.page-resources__section--cta {
  background-color: #003366;
  color: #ffffff;
  padding: 60px 20px;
  text-align: center;
  border-radius: 10px;
}

.page-resources__section--cta .page-resources__section-subtitle {
  color: #FFCC00;
}

.page-resources__section--cta .page-resources__text-block {
  color: #f0f0f0;
  max-width: 900px;
  margin: 0 auto 30px auto;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .page-resources__hero-container {
    flex-direction: column;
    padding: 30px 15px;
  }

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

  .page-resources__hero-description {
    font-size: 1em;
  }

  .page-resources__hero-actions {
    flex-direction: column;
    gap: 15px;
  }

  .page-resources__button {
    width: 100%;
    text-align: center;
  }

  .page-resources__content-area {
    padding: 40px 15px;
  }

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

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

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

  .page-resources__card-image {
    height: 200px;
  }

  .page-resources__card-title {
    font-size: 1.3em;
  }

  .page-resources__card-summary {
    font-size: 0.95em;
  }

  /* Ensure images in content area do not overflow */
  .page-resources__content-area img {
    max-width: 100%;
    height: auto;
  }
  .page-resources__card-image {
    max-width: 100%;
    height: auto;
  }
}

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

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

  .page-resources__section-subtitle {
    font-size: 1.5em;
  }

  .page-resources__button {
    padding: 10px 20px;
  }
}