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

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

/* Hero Section */
.page-resources__hero-section {
  position: relative;
  text-align: center;
  color: #FFFFFF;
  padding: 80px 0;
  overflow: hidden; /* Ensure content doesn't spill */
}

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

.page-resources__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.page-resources__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FCBC45; /* Login button color for emphasis */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  line-height: 1.2;
}

.page-resources__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #F0F0F0;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-resources__hero-actions {
  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;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 2px solid transparent;
}

.page-resources__button--register {
  background-color: #FFFFFF; /* Register color */
  color: #000000;
  border-color: #FFFFFF;
}

.page-resources__button--register:hover {
  background-color: transparent;
  color: #FFFFFF;
  border-color: #FFFFFF;
}

.page-resources__button--login {
  background-color: #FCBC45; /* Login color */
  color: #000000;
  border-color: #FCBC45;
}

.page-resources__button--login:hover {
  background-color: transparent;
  color: #FCBC45;
  border-color: #FCBC45;
}

/* Overview Section */
.page-resources__articles-overview,
.page-resources__security-tips,
.page-resources__cta-section {
  padding: 60px 0;
  background-color: #FFFFFF;
  text-align: center;
}

.page-resources__section-title {
  font-size: 2.5em;
  color: #000000;
  margin-bottom: 20px;
}

.page-resources__section-description {
  font-size: 1.1em;
  color: #555555;
  max-width: 900px;
  margin: 0 auto 40px auto;
  line-height: 1.8;
}

/* Article List Section */
.page-resources__article-list {
  padding: 60px 0;
  background-color: #F5F5F5;
}

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

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

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

.page-resources__card:hover {
  transform: translateY(-10px);
}

.page-resources__card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
}

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

.page-resources__card-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-resources__card-link {
  color: #000000;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources__card-link:hover {
  color: #FCBC45;
}

.page-resources__card-category {
  font-size: 0.9em;
  color: #888888;
  margin-bottom: 15px;
  text-transform: uppercase;
}

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

.page-resources__button--read-more {
  background-color: #000000;
  color: #FFFFFF;
  border-color: #000000;
  padding: 10px 20px;
  font-size: 0.95em;
  align-self: flex-start; /* Align button to start */
}

.page-resources__button--read-more:hover {
  background-color: #FCBC45;
  border-color: #FCBC45;
  color: #000000;
}

/* Security Tips Section */
.page-resources__security-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-resources__button--learn-security,
.page-resources__button--reset-password {
  background-color: #000000;
  color: #FFFFFF;
  border-color: #000000;
}

.page-resources__button--learn-security:hover,
.page-resources__button--reset-password:hover {
  background-color: #FCBC45;
  border-color: #FCBC45;
  color: #000000;
}

/* CTA Section */
.page-resources__cta-section {
  background-color: #000000;
  color: #FFFFFF;
}

.page-resources__cta-section .page-resources__section-title {
  color: #FCBC45;
}

.page-resources__cta-section .page-resources__section-description {
  color: #F0F0F0;
}

.page-resources__cta-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.page-resources__button--join-now {
  background-color: #FCBC45;
  color: #000000;
  border-color: #FCBC45;
}

.page-resources__button--join-now:hover {
  background-color: #FFFFFF;
  border-color: #FFFFFF;
  color: #000000;
}

.page-resources__button--explore {
  background-color: transparent;
  color: #FFFFFF;
  border-color: #FFFFFF;
}

.page-resources__button--explore:hover {
  background-color: #FFFFFF;
  color: #000000;
  border-color: #FFFFFF;
}

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

@media (max-width: 768px) {
  .page-resources {
    padding-top: var(--header-offset, 80px); /* Adjust for mobile header */
  }
  .page-resources__hero-section {
    padding: 60px 0;
  }
  .page-resources__hero-title {
    font-size: 2.2em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__hero-actions,
  .page-resources__security-actions,
  .page-resources__cta-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources__button {
    width: 80%;
    margin: 0 auto;
  }
  .page-resources__section-title,
  .page-resources__list-title {
    font-size: 1.8em;
  }
  .page-resources__section-description {
    font-size: 0.95em;
  }
  .page-resources__card-image {
    height: 200px;
  }
  .page-resources__card-title {
    font-size: 1.3em;
  }
  .page-resources__container img {
    max-width: 100%;
    height: auto;
  }
  /* Ensure all images within .page-resources are responsive and not smaller than 200px */
  .page-resources img {
    max-width: 100%;
    height: auto; /* Maintain aspect ratio */
    min-width: 200px; /* Enforce minimum display size for content images */
    min-height: 200px; /* Enforce minimum display size for content images */
    object-fit: cover;
  }
  /* Specific overrides for card images to ensure they meet minimums */
  .page-resources__card-image {
    min-width: 200px;
    min-height: 200px;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 1.8em;
  }
  .page-resources__hero-description {
    font-size: 0.9em;
  }
  .page-resources__button {
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-resources__section-title,
  .page-resources__list-title {
    font-size: 1.5em;
  }
}