/* 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); /* Ensure content is not hidden by fixed header */
}

.page-resources__hero-section {
  background-color: #f8f8f8;
  padding: 80px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.page-resources__hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-resources__hero-title {
  font-size: 3.2em;
  color: #000000;
  margin-bottom: 20px;
  font-weight: bold;
}

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

.page-resources__hero-button {
  display: inline-block;
  background-color: #FCBC45; /* Login color for primary CTA */
  color: #000000; /* Dark text for bright button */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: 2px solid #FCBC45;
}

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

.page-resources__hero-image-wrapper {
  width: 100%;
  max-width: 1000px; /* Limit image width */
  margin-top: 30px;
}

.page-resources__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-resources__articles-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
  text-align: center;
}

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

.page-resources__articles-intro {
  font-size: 1.1em;
  color: #555555;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-resources__article-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: left;
  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.12);
}

.page-resources__card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

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

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

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

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

.page-resources__card-category {
  font-size: 0.9em;
  color: #777777;
  margin-bottom: 15px;
  font-style: italic;
}

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

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

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

.page-resources__deep-dive-section {
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 20px;
  text-align: center;
}

.page-resources__deep-dive-title {
  font-size: 2.8em;
  color: #000000;
  margin-bottom: 25px;
}

.page-resources__deep-dive-intro {
  font-size: 1.1em;
  color: #555555;
  margin-bottom: 60px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources__deep-dive-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
}

.page-resources__deep-dive-item {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: center; /* Center content for single column */
}

.page-resources__deep-dive-item img {
  width: 100%;
  max-width: 600px; /* Limit image width */
  height: auto;
  border-radius: 8px;
  margin-bottom: 25px;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-resources__item-title {
  font-size: 2em;
  color: #000000;
  margin-bottom: 15px;
  text-align: center;
}

.page-resources__item-text {
  font-size: 1em;
  color: #444444;
  text-align: justify;
}

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

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

.page-resources__cta-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #f0f0f0;
}

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

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

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

.page-resources__cta-button--register:hover {
  background-color: #e0e0e0;
  border-color: #e0e0e0;
}

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

.page-resources__cta-button--login:hover {
  background-color: #e0a53b;
  border-color: #e0a53b;
}

/* Responsive adjustments */
@media (min-width: 769px) {
  .page-resources__deep-dive-content {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-resources__deep-dive-item {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
    gap: 30px;
  }
  .page-resources__deep-dive-item img {
    width: 40%;
    max-width: none;
    margin-bottom: 0;
  }
  .page-resources__item-title {
    text-align: left;
  }
}

@media (max-width: 768px) {
  .page-resources {
    padding-top: var(--header-offset, 80px); /* Adjust for mobile header height if needed */
  }
  .page-resources__hero-section {
    padding: 60px 15px;
    gap: 20px;
  }
  .page-resources__hero-title {
    font-size: 2.2em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__articles-section,
  .page-resources__deep-dive-section,
  .page-resources__cta-section {
    padding: 0 15px;
  }
  .page-resources__articles-title,
  .page-resources__deep-dive-title,
  .page-resources__cta-title {
    font-size: 2em;
  }
  .page-resources__articles-intro,
  .page-resources__cta-description {
    font-size: 1em;
  }
  .page-resources__articles-grid {
    grid-template-columns: 1fr;
  }
  .page-resources__hero-image,
  .page-resources__card-image,
  .page-resources__deep-dive-item img {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Ensure images are not too small */
    min-height: 200px; /* Ensure images are not too small */
  }
  .page-resources__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources__cta-button {
    width: 100%;
    max-width: 300px;
  }
  .page-resources__deep-dive-item {
    padding: 20px;
  }
  .page-resources__deep-dive-item img {
    width: 100%;
  }
  .page-resources__item-title {
    font-size: 1.6em;
  }
}