/* style/resources.css */
.page-resources {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Dark text for light body background */
  background-color: #f5f5f5;
  padding-top: var(--header-offset, 120px); /* Desktop padding for fixed header */
}

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

.page-resources__hero-section {
  position: relative;
  overflow: hidden;
  background-color: #8B0000; /* Auxiliary color for a rich base */
  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.6;
}

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

.page-resources__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFD700; /* Primary color for title */
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

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

.page-resources__button {
  display: inline-block;
  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__button--primary {
  background-color: #FFD700; /* Primary color */
  color: #8B0000; /* Auxiliary color for text */
}

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

.page-resources__button--secondary {
  background-color: #8B0000; /* Auxiliary color */
  color: #FFD700; /* Primary color for text */
  border: 2px solid #FFD700;
}

.page-resources__button--secondary:hover {
  background-color: #a00000;
  transform: translateY(-3px);
}

.page-resources__button--tertiary {
  background-color: #FFD700;
  color: #333333;
  padding: 10px 20px;
  font-size: 1em;
  border-radius: 5px;
}

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

.page-resources__section-title {
  font-size: 2.8em;
  color: #8B0000; /* Auxiliary color for main titles */
  text-align: center;
  margin-bottom: 20px;
  margin-top: 60px;
}

.page-resources__section-subtitle {
  font-size: 1.2em;
  color: #555555;
  text-align: center;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-resources__article-card {
  background-color: #fcfcfc;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px 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(-8px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.page-resources__article-image {
  width: 100%;
  height: 250px; /* Ensure images are large enough */
  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.6em;
  margin-bottom: 15px;
  line-height: 1.4;
}

.page-resources__article-title a {
  color: #8B0000; /* Auxiliary color for link title */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources__article-title a:hover {
  color: #FFD700; /* Primary color on hover */
}

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

.page-resources__download-cta-section,
.page-resources__contact-support-section {
  background-color: #8B0000; /* Auxiliary color */
  color: #ffffff;
  padding: 80px 0;
  text-align: center;
  margin-top: 60px;
}

.page-resources__download-cta-section .page-resources__section-title,
.page-resources__contact-support-section .page-resources__section-title {
  color: #FFD700; /* Primary color for titles in dark sections */
}

.page-resources__download-cta-section .page-resources__section-subtitle,
.page-resources__contact-support-section .page-resources__section-subtitle {
  color: #f0f0f0;
}

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

.page-resources__about-section {
  padding: 60px 0;
  background-color: #fcfcfc;
}

.page-resources__text-content {
  font-size: 1.1em;
  line-height: 1.8;
  color: #444444;
  text-align: justify;
}

.page-resources__copyright {
  text-align: center;
  padding: 30px 20px;
  background-color: #333333;
  color: #cccccc;
  font-size: 0.9em;
  margin-top: 60px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 2.8em;
  }
  .page-resources__hero-description {
    font-size: 1.1em;
  }
  .page-resources__section-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-resources {
    padding-top: var(--header-offset, 80px); /* Mobile padding for fixed header */
  }
  .page-resources__hero-title {
    font-size: 2.2em;
  }
  .page-resources__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-resources__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources__button {
    width: 80%;
    max-width: 300px;
    margin: 0 auto;
  }
  .page-resources__section-title {
    font-size: 1.8em;
    margin-top: 40px;
  }
  .page-resources__section-subtitle {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-resources__articles-grid {
    grid-template-columns: 1fr;
  }
  .page-resources__article-image {
    height: 200px; /* Min height for mobile article images */
  }
  .page-resources__article-title {
    font-size: 1.4em;
  }
  .page-resources__article-abstract {
    font-size: 0.95em;
  }
  .page-resources__download-cta-section,
  .page-resources__contact-support-section {
    padding: 60px 0;
  }
  .page-resources__cta-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources__container img {
    max-width: 100%;
    height: auto;
  }
  /* Ensure all content images within .page-resources are responsive and don't overflow */
  .page-resources img {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Enforce minimum size for content images */
    min-height: 200px;
  }
  .page-resources__article-card img {
    min-width: unset; /* Override for article card images to fit card width */
    min-height: unset;
  }
  .page-resources__articles-grid img {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Re-apply min-width for grid images */
    min-height: 200px;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 1.8em;
  }
  .page-resources__hero-description {
    font-size: 0.9em;
  }
  .page-resources__section-title {
    font-size: 1.6em;
  }
  .page-resources__button {
    padding: 12px 20px;
    font-size: 1em;
  }
}