/* style/resources.css */
.page-resources {
  color: #333333; /* Default text color for light body background */
}

.page-resources__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  background-color: #0A1F3B; /* Dark blue background for hero */
  color: #ffffff;
  position: relative;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure header offset */
}

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

.page-resources__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFD700;
  font-weight: bold;
  line-height: 1.2;
}

.page-resources__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  line-height: 1.6;
}

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

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

.page-resources__hero-button--primary {
  background-color: #FFD700;
  color: #0A1F3B;
  border: 2px solid #FFD700;
}

.page-resources__hero-button--primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
}

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

.page-resources__hero-button--secondary:hover {
  background-color: #FFD700;
  color: #0A1F3B;
}

.page-resources__hero-image {
  margin-top: 40px;
  width: 100%;
  max-width: 1200px;
  z-index: 0;
}

.page-resources__hero-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-resources__articles-section {
  padding: 80px 20px;
  background-color: #f8f8f8;
}

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

.page-resources__section-title {
  font-size: 2.8em;
  color: #0A1F3B;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-resources__section-description {
  font-size: 1.1em;
  color: #555555;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px auto;
  line-height: 1.6;
}

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

.page-resources__article-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 20px 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(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.page-resources__article-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.page-resources__article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

.page-resources__article-category {
  display: inline-block;
  background-color: #FFD700;
  color: #0A1F3B;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.85em;
  font-weight: bold;
  margin-bottom: 15px;
}

.page-resources__article-title {
  font-size: 1.7em;
  color: #0A1F3B;
  margin-bottom: 15px;
  line-height: 1.3;
  font-weight: bold;
}

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

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

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

.page-resources__article-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #0A1F3B;
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  font-size: 0.95em;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

.page-resources__article-button:hover {
  background-color: #FFD700;
  color: #0A1F3B;
}

.page-resources__cta-section {
  background-color: #0A1F3B;
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
}

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

.page-resources__cta-description {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

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

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

.page-resources__cta-button--primary {
  background-color: #FFD700;
  color: #0A1F3B;
  border: 2px solid #FFD700;
}

.page-resources__cta-button--primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
}

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

.page-resources__cta-button--secondary:hover {
  background-color: #FFD700;
  color: #0A1F3B;
}

.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: none; /* Hidden by default, shown on mobile */
  padding: 12px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

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

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

.page-resources__floating-button--login {
  background-color: #0A1F3B;
  color: #FFD700;
  border: 1px solid #FFD700;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 2.8em;
  }
  .page-resources__section-title {
    font-size: 2.2em;
  }
  .page-resources__cta-title {
    font-size: 2.2em;
  }
  .page-resources__articles-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-resources__hero-section {
    flex-direction: column;
    padding: 40px 15px;
  }
  .page-resources__hero-image {
    margin-top: 30px;
  }
  .page-resources__hero-title {
    font-size: 2.2em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources__hero-button {
    width: 100%;
  }
  .page-resources__articles-section {
    padding: 60px 15px;
  }
  .page-resources__section-title {
    font-size: 1.8em;
  }
  .page-resources__section-description {
    font-size: 0.95em;
  }
  .page-resources__cta-section {
    padding: 60px 15px;
  }
  .page-resources__cta-title {
    font-size: 1.8em;
  }
  .page-resources__cta-description {
    font-size: 0.95em;
  }
  .page-resources__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources__cta-button {
    width: 100%;
  }
  .page-resources__floating-buttons {
    display: flex; /* Show floating buttons on mobile */
    flex-direction: row;
    bottom: 15px;
    left: 15px;
    right: 15px;
    width: auto;
    justify-content: space-around;
  }
  .page-resources__floating-button {
    display: block;
    flex: 1;
    margin: 0 5px;
    font-size: 0.9em;
  }
  /* Ensure content images are responsive and don't overflow */
  .page-resources__hero-image img,
  .page-resources__article-image img,
  .page-resources__container img,
  .page-resources__articles-grid img,
  .page-resources__article-card img,
  .page-resources__cta-section img {
    max-width: 100%;
    height: auto;
  }
  .page-resources__article-image {
    height: 200px; /* Adjust card image height for mobile */
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 1.8em;
  }
  .page-resources__section-title {
    font-size: 1.5em;
  }
  .page-resources__cta-title {
    font-size: 1.5em;
  }
  .page-resources__article-title {
    font-size: 1.4em;
  }
  .page-resources__floating-button {
    padding: 10px 15px;
  }
}