.page-resources {
  color: #333333;
}

.page-resources__hero-section {
  background-color: #1A1A1A;
  padding: 80px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--header-offset, 120px);
}

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

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

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

.page-resources__hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  object-fit: cover;
  z-index: 0;
}

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

.page-resources__articles-section {
  padding: 60px 0;
  background-color: #f4f4f4;
}

.page-resources__section-title {
  font-size: 2.8em;
  color: #1A1A1A;
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
}

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

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

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

.page-resources__article-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

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

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

.page-resources__card-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  font-weight: 600;
}

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

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

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

.page-resources__read-more-button {
  display: inline-block;
  background-color: #FFD700;
  color: #1A1A1A;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  align-self: flex-start;
}

.page-resources__read-more-button:hover {
  background-color: #DAA520;
  transform: translateY(-2px);
}

.page-resources__deep-dive {
  padding: 80px 0;
  background-color: #fcfcfc;
}

.page-resources__intro-text {
  font-size: 1.15em;
  line-height: 1.8;
  color: #444444;
  margin-bottom: 40px;
  text-align: justify;
}

.page-resources__sub-title {
  font-size: 2.2em;
  color: #1A1A1A;
  margin-top: 50px;
  margin-bottom: 25px;
  font-weight: 700;
  border-left: 5px solid #FFD700;
  padding-left: 15px;
}

.page-resources__deep-dive p {
  font-size: 1.05em;
  line-height: 1.7;
  color: #555555;
  margin-bottom: 25px;
  text-align: justify;
}

.page-resources__deep-dive p a {
  color: #FFD700;
  text-decoration: none;
  font-weight: 600;
}

.page-resources__deep-dive p a:hover {
  text-decoration: underline;
}

.page-resources__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-resources__deep-dive-cta {
  text-align: center;
  margin-top: 60px;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-resources__cta-button {
  display: inline-block;
  background-color: #FFD700;
  color: #1A1A1A;
  padding: 15px 35px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
  white-space: nowrap;
}

.page-resources__cta-button:hover {
  background-color: #DAA520;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.6);
}

.page-resources__cta-button--dark {
  background-color: #1A1A1A;
  color: #FFD700;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.6);
}

.page-resources__cta-button--dark:hover {
  background-color: #333333;
  color: #FFD700;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.8);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 2.8em;
  }
  .page-resources__section-title {
    font-size: 2.2em;
  }
  .page-resources__sub-title {
    font-size: 1.8em;
  }
  .page-resources__article-card img {
    height: 220px;
  }
}

@media (max-width: 768px) {
  .page-resources__hero-section {
    padding: 60px 15px;
  }
  .page-resources__hero-title {
    font-size: 2.2em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__articles-section, .page-resources__deep-dive {
    padding: 40px 0;
  }
  .page-resources__section-title {
    font-size: 1.8em;
  }
  .page-resources__section-description {
    font-size: 0.9em;
    margin-bottom: 30px;
  }
  .page-resources__article-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-resources__article-card img {
    height: 200px; /* Ensure min 200px height */
  }
  .page-resources__card-title {
    font-size: 1.4em;
  }
  .page-resources__card-summary {
    font-size: 0.9em;
  }
  .page-resources__read-more-button {
    padding: 10px 20px;
    font-size: 0.9em;
  }
  .page-resources__intro-text, .page-resources__deep-dive p {
    font-size: 0.95em;
  }
  .page-resources__sub-title {
    font-size: 1.6em;
    margin-top: 40px;
    margin-bottom: 20px;
  }
  .page-resources__cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-resources__deep-dive-cta {
    flex-direction: column;
    gap: 15px;
  }

  /* Ensure images do not overflow on mobile */
  .page-resources img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 1.8em;
  }
  .page-resources__section-title {
    font-size: 1.6em;
  }
  .page-resources__sub-title {
    font-size: 1.4em;
  }
  .page-resources__cta-button {
    width: 100%;
    max-width: 300px;
  }
}