/* style/resources.css */
.page-resources {
  color: #ffffff; /* Light text for dark body background */
  background-color: #1A1A1A; /* Auxiliary dark background */
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

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

/* Hero Section */
.page-resources__hero-section {
  position: relative;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 0;
  background-color: #000000; /* Ensures dark background for hero */
}

.page-resources__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.3; /* Subtle overlay for text readability */
}

.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;
  color: #FFD700; /* Gold primary color */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

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

.page-resources__hero-cta {
  display: inline-block;
  background-color: #FFD700; /* Gold primary color */
  color: #1A1A1A; /* Dark text for gold button */
  padding: 15px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

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

/* General Section Styling */
.page-resources__introduction-section, .page-resources__articles-section, .page-resources__latest-news-section, .page-resources__faq-section, .page-resources__cta-section {
  padding: 80px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-resources__introduction-section {
  background-color: #1a1a1a;
}

.page-resources__section-title {
  font-size: 2.8em;
  color: #FFD700;
  text-align: center;
  margin-bottom: 40px;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
}

.page-resources__section-text {
  font-size: 1.1em;
  line-height: 1.8;
  color: #e0e0e0;
  margin-bottom: 20px;
  text-align: justify;
}

/* 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: rgba(255, 255, 255, 0.08); /* Semi-transparent white for cards */
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-resources__article-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
}

.page-resources__article-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.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: #FFD700; /* Gold primary color for titles */
  text-decoration: none;
  transition: color 0.3s ease;
}

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

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

.page-resources__article-cta {
  display: inline-block;
  background-color: #FF4500; /* Red accent color */
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9em;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

.page-resources__article-cta:hover {
  background-color: #cc3700;
}

/* Pagination */
.page-resources__pagination {
  display: flex;
  justify-content: center;
  margin-top: 50px;
  gap: 15px;
}

.page-resources__pagination-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-resources__pagination-link:hover {
  background-color: #FFD700;
  color: #1A1A1A;
}

.page-resources__pagination-link--active {
  background-color: #FFD700;
  color: #1A1A1A;
}

/* Latest News & FAQ CTA buttons */
.page-resources__cta-button {
  display: inline-block;
  background-color: #FFD700; /* Gold primary color */
  color: #1A1A1A;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  margin-top: 30px;
  text-align: center;
}

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

.page-resources__latest-news-section .page-resources__container,
.page-resources__faq-section .page-resources__container {
  text-align: center;
}

/* Final CTA Section */
.page-resources__cta-section {
  background-color: #000000;
  text-align: center;
  padding: 100px 0;
}

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

.page-resources__cta-title {
  font-size: 3em;
  color: #FFD700;
  margin-bottom: 25px;
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.6);
}

.page-resources__cta-description {
  font-size: 1.2em;
  color: #e0e0e0;
  line-height: 1.7;
  margin-bottom: 40px;
}

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

.page-resources__cta-button--primary {
  background-color: #FFD700;
  color: #1A1A1A;
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
}

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

.page-resources__cta-button--secondary {
  background-color: transparent;
  border: 2px solid #FFD700;
  color: #FFD700;
  box-shadow: none;
}

.page-resources__cta-button--secondary:hover {
  background-color: #FFD700;
  color: #1A1A1A;
  transform: translateY(-4px);
}

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

@media (max-width: 768px) {
  .page-resources {
    padding-top: var(--header-offset, 80px); /* Adjust for smaller header on mobile */
  }
  .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-cta {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-resources__introduction-section, .page-resources__articles-section, .page-resources__latest-news-section, .page-resources__faq-section, .page-resources__cta-section {
    padding: 60px 0;
  }
  .page-resources__section-title {
    font-size: 1.8em;
  }
  .page-resources__section-text {
    font-size: 0.95em;
  }
  .page-resources__article-grid {
    grid-template-columns: 1fr;
  }
  .page-resources__article-image {
    height: 200px;
  }
  .page-resources__article-card img {
    max-width: 100%;
    height: auto; /* Ensure images are responsive and don't overflow */
  }
  .page-resources__cta-title {
    font-size: 2em;
  }
  .page-resources__cta-description {
    font-size: 1em;
  }
  .page-resources__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  /* Content area images must not cause horizontal scrolling */
  .page-resources img {
    max-width: 100%;
    height: auto; 
  }
  .page-resources__container {
    padding: 0 15px;
  }
}

@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.5em;
  }
  .page-resources__article-title {
    font-size: 1.2em;
  }
  .page-resources__cta-title {
    font-size: 1.8em;
  }
  .page-resources__hero-cta, .page-resources__cta-button {
    width: 100%;
    box-sizing: border-box;
  }
}