.page-resources {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for light background */
  background: var(--secondary-color); /* White background from shared */
}

.page-resources__section {
  padding: 80px 0;
  text-align: center;
}

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

.page-resources__section-title {
  font-size: 36px;
  color: var(--primary-color);
  margin-bottom: 40px;
  font-weight: bold;
}

.page-resources__sub-title {
  font-size: 24px;
  color: var(--primary-color);
  margin-top: 30px;
  margin-bottom: 20px;
  font-weight: 600;
}

.page-resources__text-block {
  font-size: 17px;
  margin-bottom: 20px;
  line-height: 1.8;
}

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

.page-resources__text-block a {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-resources__highlight {
  font-weight: bold;
  color: var(--primary-color);
}

/* Hero Section */
.page-resources__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure space below fixed header */
  background-color: var(--primary-color);
  overflow: hidden; /* Prevent image overflow */
}

.page-resources__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.page-resources__hero-image-wrapper {
  width: 100%;
  margin-bottom: 30px;
}

.page-resources__hero-image-wrapper img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-resources__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  color: #ffffff;
}

.page-resources__main-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-resources__hero-description {
  font-size: 20px;
  margin-bottom: 40px;
  line-height: 1.5;
  color: #f0f0f0;
}

.page-resources__hero-description a {
  color: #FFFF00; /* Yellow for links in hero */
  text-decoration: underline;
}

.page-resources__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: #C30808; /* Register/Login button color */
  color: #FFFFFF; /* White text for contrast */
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  border: none;
}

.page-resources__cta-button:hover {
  background: #a30606;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Section Backgrounds */
.page-resources__light-bg {
  background-color: var(--secondary-color);
  color: #333333;
}

.page-resources__dark-bg {
  background-color: var(--primary-color);
  color: #ffffff;
}

.page-resources__dark-bg .page-resources__section-title,
.page-resources__dark-bg .page-resources__sub-title {
  color: #ffffff;
}

.page-resources__dark-bg .page-resources__text-block a {
  color: #FFFF00; /* Yellow for links on dark background */
}

.page-resources__dark-bg .page-resources__highlight {
  color: #FFFF00;
}

/* Content Grid */
.page-resources__content-grid {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
}

.page-resources__content-grid:nth-of-type(odd) {
  flex-direction: row-reverse;
}

.page-resources__content-grid .page-resources__text-block,
.page-resources__content-grid .page-resources__image-wrapper {
  flex: 1;
}

.page-resources__image-wrapper img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  object-fit: cover;
}

/* Lists */
.page-resources__list,
.page-resources__list-ordered {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  text-align: left;
  font-size: 17px;
}

.page-resources__list-ordered {
  list-style-type: decimal;
}

.page-resources__list li,
.page-resources__list-ordered li {
  margin-bottom: 10px;
}