/* style/resources.css */
.page-resources {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  background-color: #0A0A0A; /* Deep black background */
  color: #f0f0f0; /* Light text for contrast */
  font-family: 'Arial', sans-serif;
}

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

.page-resources__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 80px 20px;
  background-color: #1a1a1a;
  border-bottom: 2px solid #FFD700;
}

.page-resources__hero-content {
  max-width: 900px;
  margin-bottom: 40px;
}

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

.page-resources__hero-description {
  font-size: 1.2em;
  color: #e0e0e0;
  margin-bottom: 30px;
  line-height: 1.6;
}

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

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

.page-resources__btn--primary {
  background-color: #FFD700;
  color: #0A0A0A;
  border: 2px solid #FFD700;
}

.page-resources__btn--primary:hover {
  background-color: #e6c200;
  color: #000000;
}

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

.page-resources__btn--secondary:hover {
  background-color: #FFD700;
  color: #0A0A0A;
}

.page-resources__hero-image {
  width: 100%;
  max-width: 1000px;
}

.page-resources__hero-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  min-width: 200px;
  min-height: 200px; /* Ensure minimum size */
}

.page-resources__articles-section,
.page-resources__in-depth-content {
  padding: 60px 0;
}

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

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

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

.page-resources__article-card {
  background-color: #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-resources__article-card img {
  width: 100%;
  height: 225px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px; /* Ensure minimum size */
}

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

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

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

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

.page-resources__card-summary {
  font-size: 0.95em;
  color: #b0b0b0;
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-resources__btn--small {
  padding: 10px 20px;
  font-size: 0.9em;
  align-self: flex-start;
  background-color: #FFD700;
  color: #0A0A0A;
  border: 2px solid #FFD700;
}

.page-resources__btn--small:hover {
  background-color: #e6c200;
  color: #000000;
}

.page-resources__in-depth-content h2,
.page-resources__in-depth-content h3 {
  color: #FFD700;
  margin-top: 40px;
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-resources__in-depth-content h2 {
  font-size: 2.5em;
}

.page-resources__in-depth-content h3 {
  font-size: 2em;
}

.page-resources__in-depth-content p {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #d0d0d0;
}

.page-resources__in-depth-content ul {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
}

.page-resources__in-depth-content li {
  font-size: 1.1em;
  line-height: 1.6;
  color: #d0d0d0;
  margin-bottom: 10px;
}

.page-resources__cta-section {
  background-color: #1a1a1a;
  padding: 60px 20px;
  text-align: center;
  border-radius: 12px;
  margin-top: 60px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-resources__cta-title {
  font-size: 2.5em;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-resources__cta-description {
  font-size: 1.2em;
  color: #e0e0e0;
  margin-bottom: 30px;
  line-height: 1.6;
}

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

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

  .page-resources__in-depth-content h2 {
    font-size: 2em;
  }

  .page-resources__in-depth-content h3 {
    font-size: 1.8em;
  }
}

@media (max-width: 768px) {
  .page-resources__hero-section {
    flex-direction: column;
    padding: 60px 15px;
  }

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

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

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

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

  .page-resources__container {
    padding: 0 15px;
  }

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

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

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

  .page-resources__in-depth-content h2 {
    font-size: 1.8em;
  }

  .page-resources__in-depth-content h3 {
    font-size: 1.6em;
  }

  .page-resources__in-depth-content p,
  .page-resources__in-depth-content li {
    font-size: 0.95em;
  }

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

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

  /* Ensure images are responsive and do not overflow */
  .page-resources img {
    max-width: 100%;
    height: auto;
    min-width: 200px;
    min-height: 200px; /* Ensure minimum size */
  }
  .page-resources__hero-image img,
  .page-resources__article-card img {
    max-width: 100%;
    height: auto;
  }
}

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

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

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