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

.page-resources__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  background-color: #000000; /* Main color for hero background */
  color: #FFFFFF;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px; /* Minimum height for hero section */
}

.page-resources__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.6; /* Slightly dim the image to make text pop */
}

.page-resources__hero-container {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
}

.page-resources__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FCBC45; /* Highlight color for title */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.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;
}

.page-resources__hero-button {
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-resources__hero-button--register {
  background-color: #FCBC45; /* Login button color */
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-resources__hero-button--register:hover {
  background-color: #e0a53b;
  transform: translateY(-3px);
}

.page-resources__hero-button--login {
  background-color: #000000;
  color: #FFFFFF; /* Register button color */
  border: 2px solid #FFFFFF;
}

.page-resources__hero-button--login:hover {
  background-color: #333333;
  transform: translateY(-3px);
}

.page-resources__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  line-height: 1.8;
  background-color: #FFFFFF; /* Ensure content area has white background */
}

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

.page-resources__section-intro {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 60px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #555555;
}

.page-resources__subsection-title {
  font-size: 2em;
  color: #000000;
  margin-top: 40px;
  margin-bottom: 25px;
  border-left: 5px solid #FCBC45;
  padding-left: 15px;
}

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

.page-resources__article-card,
.page-resources__news-card {
  background-color: #f8f8f8;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-resources__article-card:hover,
.page-resources__news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-resources__article-image,
.page-resources__news-image {
  width: 100%;
  height: 225px; /* Fixed height for consistent card images */
  object-fit: cover;
  display: block;
}

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

.page-resources__article-title,
.page-resources__news-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-resources__article-title a,
.page-resources__news-title a {
  color: #000000;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources__article-title a:hover,
.page-resources__news-title a:hover {
  color: #FCBC45;
}

.page-resources__article-category,
.page-resources__news-date {
  font-size: 0.9em;
  color: #777777;
  margin-bottom: 15px;
}

.page-resources__article-summary,
.page-resources__news-summary {
  font-size: 1em;
  color: #555555;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-resources__article-button,
.page-resources__news-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #000000;
  color: #FFFFFF;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

.page-resources__article-button:hover,
.page-resources__news-button:hover {
  background-color: #333333;
}

.page-resources__cta-section {
  background-color: #000000;
  color: #FFFFFF;
  padding: 80px 20px;
  text-align: center;
  margin-top: 60px;
  border-radius: 10px;
}

.page-resources__cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #FCBC45;
}

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

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

.page-resources__cta-button {
  padding: 15px 35px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-resources__cta-button--join {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-resources__cta-button--join:hover {
  background-color: #e0a53b;
  transform: translateY(-3px);
}

.page-resources__cta-button--promo {
  background-color: #000000;
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
}

.page-resources__cta-button--promo:hover {
  background-color: #333333;
  transform: translateY(-3px);
}

.page-resources__text-block {
  font-size: 1em;
  line-height: 1.7;
  margin-bottom: 25px;
  color: #444444;
}

.page-resources__button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin-right: 15px;
  margin-bottom: 15px;
}

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

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

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

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

.page-resources__download-app-cta {
  background-color: #FCBC45;
  color: #000000;
  padding: 60px 20px;
  text-align: center;
  margin-top: 60px;
  border-radius: 10px;
}

.page-resources__download-title {
  font-size: 2.5em;
  margin-bottom: 15px;
}

.page-resources__download-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources__download-button {
  display: inline-block;
  padding: 15px 30px;
  background-color: #000000;
  color: #FFFFFF;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-resources__download-button:hover {
  background-color: #333333;
  transform: translateY(-3px);
}

.page-resources__latest-news-section {
  background-color: #f0f0f0;
  padding: 60px 0;
  margin-top: 60px;
}

.page-resources__news-archive-cta {
  text-align: center;
  margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 3em;
  }
  .page-resources__section-title {
    font-size: 2.2em;
  }
  .page-resources__subsection-title {
    font-size: 1.8em;
  }
}

@media (max-width: 768px) {
  .page-resources__hero-section {
    min-height: 500px;
    padding: 40px 15px;
  }
  .page-resources__hero-title {
    font-size: 2.5em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources__hero-button {
    width: 80%;
    max-width: 300px;
  }

  .page-resources__content-area {
    padding: 40px 15px;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
  .page-resources__section-intro {
    font-size: 1em;
  }
  .page-resources__articles-grid,
  .page-resources__news-grid {
    grid-template-columns: 1fr;
  }
  .page-resources__article-image,
  .page-resources__news-image {
    height: 200px;
  }

  .page-resources__cta-section {
    padding: 60px 15px;
  }
  .page-resources__cta-title {
    font-size: 2.2em;
  }
  .page-resources__cta-description {
    font-size: 1em;
  }
  .page-resources__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources__cta-button {
    width: 80%;
    max-width: 300px;
  }
  .page-resources__download-app-cta {
    padding: 40px 15px;
  }
  .page-resources__download-title {
    font-size: 2em;
  }
  .page-resources__download-button {
    width: 80%;
    max-width: 300px;
  }
  /* Ensure images in content area do not overflow */
  .page-resources img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 2em;
  }
  .page-resources__hero-description {
    font-size: 0.9em;
  }
  .page-resources__section-title {
    font-size: 1.8em;
  }
  .page-resources__subsection-title {
    font-size: 1.5em;
  }
  .page-resources__article-title,
  .page-resources__news-title {
    font-size: 1.2em;
  }
  .page-resources__cta-title {
    font-size: 1.8em;
  }
  .page-resources__download-title {
    font-size: 1.8em;
  }
}