/* style/resources.css */
.page-resources {
  font-family: 'Arial', sans-serif;
  color: #e5d1bb; /* Light text for dark background */
  background-color: #1A2E44; /* Main dark background */
}

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

.page-resources__hero {
  background: linear-gradient(135deg, #1A2E44 0%, #304a6e 100%);
  padding: 100px 0;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.page-resources__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFD700; /* Gold accent for title */
  font-weight: bold;
  line-height: 1.2;
}

.page-resources__hero-subtitle {
  font-size: 1.5em;
  margin-bottom: 40px;
  color: #e5d1bb;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-resources__btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  font-size: 1.1em;
  cursor: pointer;
  border: none;
}

.page-resources__btn--primary {
  background-color: #FFD700; /* Gold */
  color: #1A2E44; /* Dark text */
}

.page-resources__btn--primary:hover {
  background-color: #e5c100;
  transform: translateY(-2px);
}

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

.page-resources__btn--secondary:hover {
  background-color: #FFD700;
  color: #1A2E44;
  transform: translateY(-2px);
}

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

.page-resources__intro, .page-resources__categories, .page-resources__article-list, .page-resources__more-resources, .page-resources__cta {
  padding: 60px 0;
}

.page-resources__text-block {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 25px;
  color: #e5d1bb;
  text-align: justify;
}

.page-resources__category-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
  margin-bottom: 40px;
}

.page-resources__category-list li {
  background-color: #304a6e;
  border-radius: 25px;
  padding: 10px 25px;
  transition: background-color 0.3s ease;
}

.page-resources__category-list li:hover {
  background-color: #FFD700;
}

.page-resources__category-link {
  color: #e5d1bb;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.05em;
}

.page-resources__category-list li:hover .page-resources__category-link {
  color: #1A2E44;
}

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

.page-resources__article-card {
  background-color: #2a415a;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  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 8px 20px rgba(0, 0, 0, 0.4);
}

.page-resources__article-thumbnail {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid #3d5a80;
}

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

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

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

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

.page-resources__article-meta {
  font-size: 0.9em;
  color: #99aabf;
  margin-bottom: 10px;
}

.page-resources__article-summary {
  font-size: 1em;
  line-height: 1.6;
  color: #e5d1bb;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-resources__btn--link {
  background-color: transparent;
  color: #FFD700;
  border: 1px solid #FFD700;
  padding: 10px 20px;
  font-size: 0.95em;
  align-self: flex-start;
  margin-top: auto; /* Push button to bottom */
}

.page-resources__btn--link:hover {
  background-color: #FFD700;
  color: #1A2E44;
}

.page-resources__cta {
  background-color: #304a6e;
  padding: 80px 0;
  text-align: center;
  color: #fff;
}

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

.page-resources__cta-subtitle {
  font-size: 1.3em;
  color: #e5d1bb;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Responsive adjustments */
@media (max-width: 992px) {
  .page-resources__hero-title {
    font-size: 2.8em;
  }
  .page-resources__hero-subtitle {
    font-size: 1.3em;
  }
  .page-resources__section-title, .page-resources__cta-title {
    font-size: 2em;
  }
  .page-resources__article-title {
    font-size: 1.4em;
  }
  .page-resources__category-list {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
  }
  .page-resources__category-list::-webkit-scrollbar {
    height: 8px;
  }
  .page-resources__category-list::-webkit-scrollbar-thumb {
    background: #FFD700;
    border-radius: 10px;
  }
  .page-resources__category-list::-webkit-scrollbar-track {
    background: #304a6e;
  }
}

@media (max-width: 768px) {
  .page-resources__hero {
    padding: 80px 0;
  }
  .page-resources__hero-title {
    font-size: 2.2em;
  }
  .page-resources__hero-subtitle {
    font-size: 1.1em;
  }
  .page-resources__hero-actions, .page-resources__cta-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources__btn {
    width: 80%;
    margin: 0 auto;
  }
  .page-resources__section-title, .page-resources__cta-title {
    font-size: 1.8em;
  }
  .page-resources__text-block {
    font-size: 1em;
  }
  .page-resources__article-card {
    margin-bottom: 20px;
  }
  .page-resources__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .page-resources__hero {
    padding: 60px 0;
  }
  .page-resources__hero-title {
    font-size: 1.8em;
  }
  .page-resources__hero-subtitle {
    font-size: 1em;
  }
  .page-resources__btn {
    width: 90%;
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-resources__section-title, .page-resources__cta-title {
    font-size: 1.5em;
  }
  .page-resources__article-title {
    font-size: 1.2em;
  }
  .page-resources__article-thumbnail {
    height: 150px;
  }
}