/* style/resources.css */

/* Base styles for the page-resources scope */
.page-resources {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light body background */
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  background-color: #f8f9fa; /* Light background for the page content area */
}

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

/* Hero Section */
.page-resources__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 80px 20px;
  background-color: #0A2463; /* Main brand color */
  color: #ffffff;
  position: relative;
  overflow: hidden; /* Ensure image doesn't overflow */
}

.page-resources__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-resources__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Cover the entire area */
  opacity: 0.3; /* Slightly transparent to allow text readability */
  display: block;
}

.page-resources__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.page-resources__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFD700; /* Auxiliary brand color for emphasis */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-resources__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-resources__cta-button {
  display: inline-block;
  background-color: #FFD700; /* Auxiliary brand color */
  color: #0A2463; /* Main brand color for text */
  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;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-resources__cta-button:hover {
  background-color: #e6c200; /* Slightly darker gold on hover */
  transform: translateY(-2px);
}

/* Section Titles */
.page-resources__section-title {
  font-size: 2.5em;
  color: #0A2463;
  text-align: center;
  margin-bottom: 40px;
  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__sub-section-title {
  font-size: 1.8em;
  color: #0A2463;
  margin-top: 40px;
  margin-bottom: 20px;
  border-left: 5px solid #FFD700;
  padding-left: 15px;
}

/* General Text Content */
.page-resources__text-content {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #444444;
}

.page-resources__highlight {
  font-weight: bold;
  color: #0A2463;
}

/* Articles List Section */
.page-resources__articles-list {
  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: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  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.15);
}

.page-resources__article-thumbnail {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

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

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

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

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

.page-resources__article-category {
  font-size: 0.9em;
  color: #777777;
  margin-bottom: 15px;
}

.page-resources__article-summary {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1; /* Allow summary to take available space */
}

.page-resources__read-more-button {
  display: inline-block;
  background-color: #0A2463; /* Main brand color */
  color: #ffffff;
  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; /* Align button to the start */
}

.page-resources__read-more-button:hover {
  background-color: #1a3a7c; /* Slightly lighter blue on hover */
}

/* In-depth Analysis Section */
.page-resources__in-depth-analysis {
  padding: 60px 0;
  background-color: #f0f4f7; /* Light grey background */
}

.page-resources__feature-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  margin-bottom: 30px;
}

.page-resources__list-item {
  background-color: #ffffff;
  border-left: 4px solid #FFD700;
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  font-size: 1.05em;
  color: #333333;
}

.page-resources__list-item strong {
  color: #0A2463;
}

/* CTA Section at the bottom */
.page-resources__cta-section {
  padding: 80px 20px;
  background: linear-gradient(135deg, #0A2463, #1a3a7c); /* Gradient using main color */
  color: #ffffff;
  text-align: center;
}

.page-resources__cta-section .page-resources__section-title {
  color: #FFD700; /* Gold title on dark background */
}

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

.page-resources__cta-section .page-resources__text-content {
  color: #f0f0f0;
  max-width: 800px;
  margin: 0 auto 30px auto;
  font-size: 1.2em;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 2.8em;
  }
  .page-resources__hero-description {
    font-size: 1.15em;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
  .page-resources__articles-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-resources {
    padding-top: var(--header-offset, 80px); /* Adjust for smaller mobile header if needed */
  }
  .page-resources__hero-section {
    padding: 60px 15px;
  }
  .page-resources__hero-title {
    font-size: 2.2em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-resources__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-resources__sub-section-title {
    font-size: 1.5em;
    margin-top: 30px;
  }
  .page-resources__text-content {
    font-size: 1em;
  }
  .page-resources__articles-grid {
    grid-template-columns: 1fr; /* Stack cards on mobile */
  }
  .page-resources__article-thumbnail {
    height: 180px;
  }
  .page-resources__article-title {
    font-size: 1.3em;
  }
  .page-resources__list-item {
    padding: 12px 15px;
    font-size: 0.95em;
  }
  .page-resources__cta-section {
    padding: 60px 15px;
  }
  .page-resources__cta-section .page-resources__text-content {
    font-size: 1.05em;
  }

  /* Crucial: Mobile content area images must not overflow */
  .page-resources img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 1.8em;
  }
  .page-resources__hero-description {
    font-size: 0.95em;
  }
  .page-resources__section-title {
    font-size: 1.5em;
  }
  .page-resources__sub-section-title {
    font-size: 1.3em;
  }
}