/* style/resources.css */
.page-resources {
  color: #333333;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

/* Hero Section */
.page-resources__hero-section {
  position: relative;
  overflow: hidden;
  background-color: #003366; /* Fallback for image loading */
  color: #ffffff;
  padding: 80px 0;
  text-align: center;
}

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

.page-resources__hero-container {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

.page-resources__hero-content {
  position: relative;
  z-index: 2;
}

.page-resources__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFD700;
  line-height: 1.2;
}

.page-resources__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

/* General Section Styling */
.page-resources__section-title {
  font-size: 2.5em;
  color: #003366;
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.page-resources__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #FFD700;
  border-radius: 2px;
}

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

.page-resources__articles-section,
.page-resources__deep-content-section,
.page-resources__cta-section {
  padding: 60px 0;
}

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

.page-resources__article-card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  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 25px rgba(0, 0, 0, 0.15);
}

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

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

.page-resources__article-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #003366;
  line-height: 1.3;
}

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

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

.page-resources__article-category {
  display: inline-block;
  background-color: #FFD700;
  color: #003366;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.85em;
  font-weight: bold;
  margin-bottom: 15px;
}

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

/* Deep Content Section */
.page-resources__deep-content-section {
  background-color: #f9f9f9;
  padding: 80px 0;
}

.page-resources__intro-paragraph {
  font-size: 1.15em;
  color: #333333;
  margin-bottom: 40px;
  text-align: justify;
}

.page-resources__sub-title {
  font-size: 2em;
  color: #003366;
  margin-top: 40px;
  margin-bottom: 20px;
}

.page-resources__deep-content-section p {
  margin-bottom: 20px;
  color: #444444;
  text-align: justify;
}

.page-resources__ordered-list,
.page-resources__unordered-list {
  margin-bottom: 20px;
  padding-left: 25px;
  color: #444444;
}

.page-resources__ordered-list li,
.page-resources__unordered-list li {
  margin-bottom: 10px;
}

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

/* Call to Action Section */
.page-resources__cta-section {
  background-color: #003366;
  color: #ffffff;
  text-align: center;
  padding: 80px 0;
}

.page-resources__cta-container {
  max-width: 900px;
}

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

.page-resources__cta-section .page-resources__section-title::after {
  background-color: #ffffff;
}

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

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

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

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

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

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

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

.page-resources__btn--text {
  background-color: transparent;
  color: #003366;
  padding: 0;
  border: none;
  font-size: 1em;
  text-decoration: underline;
  font-weight: normal;
}

.page-resources__btn--text:hover {
  color: #FFD700;
  text-decoration: none;
  transform: none;
}

/* 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;
  }
}

@media (max-width: 768px) {
  .page-resources {
    padding-top: var(--header-offset, 80px);
  }
  .page-resources__hero-section {
    padding: 60px 0;
  }
  .page-resources__hero-title {
    font-size: 2.2em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources__btn {
    width: 80%;
    margin: 0 auto;
  }
  .page-resources__section-title {
    font-size: 1.8em;
  }
  .page-resources__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-resources__articles-section,
  .page-resources__deep-content-section,
  .page-resources__cta-section {
    padding: 40px 0;
  }
  .page-resources__article-grid {
    grid-template-columns: 1fr;
  }
  .page-resources__article-image {
    height: 200px;
  }
  .page-resources__article-title {
    font-size: 1.3em;
  }
  .page-resources__sub-title {
    font-size: 1.5em;
  }
  .page-resources__content-image,
  .page-resources__article-image {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Ensure content images are not too small */
    min-height: 200px; /* Ensure content images are not too small */
  }
  .page-resources__deep-content-section p,
  .page-resources__ordered-list,
  .page-resources__unordered-list {
    font-size: 0.95em;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 1.8em;
  }
  .page-resources__btn {
    padding: 12px 20px;
    font-size: 1em;
    width: 90%;
  }
  .page-resources__section-title {
    font-size: 1.5em;
  }
  .page-resources__sub-title {
    font-size: 1.3em;
  }
  .page-resources__container {
    padding: 0 15px;
  }
}