/* style/resources.css */
.page-resources {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Main text color for dark body background */
  background-color: transparent; /* Body background is #121212 from shared.css */
}

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

/* Hero Section */
.page-resources__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  padding-bottom: 60px;
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
  text-align: center;
}

.page-resources__hero-section .page-resources__container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  text-align: left;
}

.page-resources__hero-content {
  flex: 1;
  min-width: 300px;
  padding-right: 40px;
}

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

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

.page-resources__hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.page-resources__hero-media {
  flex: 1;
  min-width: 400px;
  text-align: right;
}

.page-resources__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-resources__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: #017439; /* Default for light background */
}

.page-resources__dark-bg .page-resources__section-title {
  color: #ffffff; /* White for dark background */
}

.page-resources__text-block {
  margin-bottom: 20px;
  font-size: 1.1em;
  color: #ffffff; /* Default for dark background */
}

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

/* Background color variations */
.page-resources__dark-bg {
  background-color: #1a1a1a; /* Slightly lighter than body for contrast */
  color: #ffffff;
}

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

/* Buttons */
.page-resources__btn-primary,
.page-resources__btn-secondary,
.page-resources__btn-register,
.page-resources__btn-login,
.page-resources__btn-link {
  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;
  word-wrap: normal;
  box-sizing: border-box;
  text-align: center;
}

.page-resources__btn-primary {
  background-color: #017439; /* Brand primary */
  color: #ffffff; /* White text for contrast */
  border: 2px solid #017439;
}

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

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

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

.page-resources__btn-register {
  background-color: #C00000; /* Adjusted red for contrast */
  color: #FFFF00; /* Yellow text as per requirement */
  border: 2px solid #C00000;
}

.page-resources__btn-register:hover {
  background-color: #A00000;
  border-color: #A00000;
}

.page-resources__btn-login {
  background-color: #C00000; /* Adjusted red for contrast */
  color: #FFFF00; /* Yellow text as per requirement */
  border: 2px solid #C00000;
}

.page-resources__btn-login:hover {
  background-color: #A00000;
  border-color: #A00000;
}

.page-resources__btn-link {
  background-color: transparent;
  color: #017439;
  border: 1px solid #017439;
  padding: 8px 15px;
  font-size: 0.9em;
}

.page-resources__dark-bg .page-resources__btn-link {
  color: #ffffff;
  border-color: #ffffff;
}

.page-resources__btn-link:hover {
  background-color: #017439;
  color: #ffffff;
}

.page-resources__dark-bg .page-resources__btn-link:hover {
  background-color: #ffffff;
  color: #017439;
}

/* Grid Cards */
.page-resources__grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-resources__card {
  background-color: #1a1a1a; /* Dark background for cards on dark section */
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  color: #ffffff;
}

.page-resources__light-bg .page-resources__card {
  background-color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  color: #333333;
}

.page-resources__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 15px;
}

.page-resources__card-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  padding: 0 15px;
  color: #ffffff;
}

.page-resources__light-bg .page-resources__card-title {
  color: #017439;
}

.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: 0.95em;
  color: #f0f0f0;
  padding: 0 15px;
  margin-bottom: 20px;
}

.page-resources__light-bg .page-resources__card-description {
  color: #666666;
}

/* News Grid */
.page-resources__news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

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

.page-resources__news-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.page-resources__news-title {
  font-size: 1.3em;
  margin: 15px 15px 10px;
  color: #017439;
}

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

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

.page-resources__news-excerpt {
  font-size: 0.9em;
  color: #666666;
  padding: 0 15px 15px;
}