/* style/resources.css */
.page-resources {
  font-family: Arial, sans-serif;
  color: #333333; /* Dark text for light body background */
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

/* Hero Section */
.page-resources__hero-section {
  position: relative;
  background-color: #000000; /* Dark background for hero */
  color: #FFFFFF;
  text-align: center;
  padding: 80px 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px; /* Minimum height for hero section */
}

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

.page-resources__hero-container {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

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

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

.page-resources__hero-button {
  display: inline-block;
  background-color: #FCBC45; /* Login button color for hero CTA */
  color: #000000;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-resources__hero-button:hover {
  background-color: #e0a53a;
}

/* Articles Section */
.page-resources__articles-section {
  padding: 60px 0;
  background-color: #FFFFFF;
}

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

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

.page-resources__article-card {
  background-color: #f9f9f9;
  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 {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-resources__article-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block; /* Ensure no extra space below image */
}

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

.page-resources__article-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #000000;
}

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

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

.page-resources__article-summary {
  font-size: 0.95em;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

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

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

/* Call to Action Section */
.page-resources__cta-section {
  background-color: #000000;
  color: #FFFFFF;
  padding: 80px 20px;
  text-align: center;
}

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

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

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

.page-resources__cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

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

.page-resources__cta-button--register:hover {
  background-color: transparent;
  color: #FFFFFF;
}

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

.page-resources__cta-button--login:hover {
  background-color: transparent;
  color: #FCBC45;
}

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

.page-resources__floating-button {
  display: block;
  padding: 12px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.page-resources__floating-button:hover {
  transform: translateY(-3px);
}

.page-resources__floating-button--register {
  background-color: #FFFFFF;
  color: #000000;
  border: 1px solid #FFFFFF;
}

.page-resources__floating-button--login {
  background-color: #FCBC45;
  color: #000000;
  border: 1px solid #FCBC45;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-resources__hero-title {
    font-size: 2.5em;
  }

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

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

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

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

  .page-resources__cta-buttons {
    flex-direction: column;
  }

  .page-resources__cta-button {
    width: 100%;
    max-width: 300px;
  }

  .page-resources__floating-buttons {
    flex-direction: row;
    bottom: 15px;
    right: 15px;
    left: 15px;
    justify-content: center;
  }

  .page-resources__floating-button {
    flex: 1;
    padding: 10px 15px;
  }

  .page-resources__hero-image {
    max-width: 100%;
    height: auto;
  }

  .page-resources__article-image {
    max-width: 100%;
    height: auto;
  }

  /* Ensure content area images are responsive and not too small */
  .page-resources__articles-section img {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Minimum width for content images */
    min-height: 200px; /* Minimum height for content images */
  }
}

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

  .page-resources__hero-section {
    padding: 60px 15px;
  }

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

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