/* style/resources.css */
.page-resources {
  font-family: 'Arial', sans-serif;
  color: #333;
  line-height: 1.6;
}

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

.page-resources__hero-section {
  background: linear-gradient(135deg, #B22222 0%, #FFD700 100%);
  color: #fff;
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-resources__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  z-index: 0;
}

.page-resources__hero-section > div {
  position: relative;
  z-index: 1;
}

.page-resources__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  color: #fff;
}

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

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

.page-resources__cta-button:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
}

.page-resources__cta-button--secondary {
  background-color: #B22222;
  color: #FFD700;
  border: 2px solid #FFD700;
  margin-left: 15px;
}

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

.page-resources__intro-section,
.page-resources__articles-list,
.page-resources__cta-banner {
  padding: 60px 0;
}

.page-resources__intro-section {
  background-color: #f9f9f9;
  color: #333;
  text-align: center;
}

.page-resources__section-title {
  font-size: 2.5em;
  color: #B22222;
  margin-bottom: 40px;
  text-align: center;
  font-weight: bold;
}

.page-resources__section-text {
  font-size: 1.1em;
  max-width: 900px;
  margin: 0 auto;
  color: #555;
}

.page-resources__articles-list {
  background-color: #fff;
}

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

.page-resources__article-card {
  background-color: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

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

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

.page-resources__article-title {
  font-size: 1.6em;
  color: #B22222;
  margin-top: 20px;
  margin-bottom: 15px;
  font-weight: bold;
}

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

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

.page-resources__article-description {
  font-size: 1em;
  color: #666;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-resources__read-more-button {
  display: inline-block;
  background-color: #B22222;
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95em;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

.page-resources__read-more-button:hover {
  background-color: #a01f1f;
}

.page-resources__cta-banner {
  background: linear-gradient(90deg, #B22222, #8d1c1c);
  color: #fff;
  text-align: center;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.page-resources__cta-banner-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
  z-index: 0;
}

.page-resources__cta-banner > div {
  position: relative;
  z-index: 1;
}

.page-resources__cta-banner .page-resources__section-title {
  color: #FFD700;
}

.page-resources__cta-banner .page-resources__section-text {
  color: #f0f0f0;
  margin-bottom: 40px;
}

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

.page-resources .highlight {
  color: #FFD700;
  font-weight: bold;
}

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

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

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

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

  .page-resources__cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .page-resources__cta-button--secondary {
    margin-left: 0;
    margin-top: 15px;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-section,
  .page-resources__intro-section,
  .page-resources__articles-list,
  .page-resources__cta-banner {
    padding: 40px 0;
  }

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

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

  .page-resources__cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
}