.page-resources {
  color: #ffffff; /* Light text on dark body background */
  padding-top: var(--header-offset, 120px);
}

.page-resources__hero-section {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px; /* Ensure hero section has a decent height */
}

.page-resources__hero-container {
  position: relative;
  width: 100%;
  max-width: 1400px; /* Limit max width for content inside hero */
  margin: 0 auto;
}

.page-resources__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  filter: brightness(0.5); /* Darken image slightly for text readability */
}

.page-resources__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 60px 20px;
  max-width: 900px;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for text */
  border-radius: 10px;
}

.page-resources__hero-title {
  font-size: 3.5em;
  color: #FFD700;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-resources__hero-description {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 30px;
  line-height: 1.6;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-resources__button--primary {
  background-color: #FFD700;
  color: #000000;
}

.page-resources__button--primary:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
}

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

.page-resources__button--secondary:hover {
  background-color: #FFD700;
  color: #000000;
  transform: translateY(-3px);
}

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

.page-resources__section-title {
  font-size: 2.8em;
  color: #FFD700;
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.page-resources__section-description {
  font-size: 1.1em;
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

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

.page-resources__article-card {
  background: rgba(255, 255, 255, 0.08); /* Slightly transparent white for cards */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: #ffffff;
}

.page-resources__article-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.6);
}

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

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

.page-resources__article-title {
  font-size: 1.6em;
  color: #FFD700;
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-resources__article-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources__article-title a:hover {
  color: #e6c200;
}

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

.page-resources__read-more {
  display: inline-block;
  background-color: #DC143C;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

.page-resources__read-more:hover {
  background-color: #b00f2e;
}

.page-resources__deep-dive-section {
  background: rgba(255, 255, 255, 0.05);
  padding: 60px 0;
  margin-top: 60px;
  border-radius: 12px;
}

.page-resources__sub-title {
  font-size: 2em;
  color: #FFD700;
  margin-top: 40px;
  margin-bottom: 20px;
  border-left: 5px solid #DC143C;
  padding-left: 15px;
}

.page-resources__text-block p {
  font-size: 1.05em;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #e0e0e0;
}

.page-resources__text-block p strong {
  color: #FFD700;
}

.page-resources__cta-block {
  text-align: center;
  background: linear-gradient(45deg, rgba(0,0,0,0.8), rgba(220,20,60,0.3), rgba(255,215,0,0.3));
  padding: 50px;
  border-radius: 15px;
  margin-top: 60px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.page-resources__cta-title {
  font-size: 2.5em;
  color: #FFD700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-resources__cta-description {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources__floating-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}

.page-resources__floating-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  font-size: 0.9em;
  font-weight: bold;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.page-resources__floating-button--register {
  background-color: #FFD700;
  color: #000000;
}

.page-resources__floating-button--register:hover {
  transform: scale(1.1);
  background-color: #e6c200;
}

.page-resources__floating-button--login {
  background-color: #DC143C;
}

.page-resources__floating-button--login:hover {
  transform: scale(1.1);
  background-color: #b00f2e;
}

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

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

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

@media (max-width: 768px) {
  .page-resources {
    padding-top: var(--header-offset, 120px); /* Ensure mobile also has header offset */
  }

  .page-resources__hero-section {
    min-height: 400px;
  }

  .page-resources__hero-content {
    padding: 40px 15px;
  }

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

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

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

  .page-resources__button {
    padding: 12px 25px;
    font-size: 1em;
    width: 100%;
    max-width: 300px;
  }

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

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

  .page-resources__section-description {
    font-size: 0.95em;
  }

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

  .page-resources__article-image {
    height: 180px;
  }

  .page-resources__article-title {
    font-size: 1.4em;
  }

  .page-resources__article-summary {
    font-size: 0.9em;
  }

  .page-resources__sub-title {
    font-size: 1.6em;
  }

  .page-resources__text-block p {
    font-size: 0.95em;
  }

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

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

  .page-resources__floating-buttons {
    flex-direction: row;
    bottom: 15px;
    right: 50%;
    transform: translateX(50%);
    gap: 15px;
  }
  
  .page-resources__floating-button {
    width: 50px;
    height: 50px;
    font-size: 0.8em;
  }

  /* Ensure content area images are responsive and do not overflow */
  .page-resources img {
    max-width: 100%;
    height: auto;
  }
  .page-resources__article-card img {
    max-width: 100%;
    height: auto;
  }
  .page-resources__hero-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__cta-title {
    font-size: 1.8em;
  }

  .page-resources__hero-content {
    padding: 30px 10px;
  }

  .page-resources__floating-buttons {
    bottom: 10px;
  }
}