/* style/resources.css */
.page-resources {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f8f8;
}

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

.page-resources__hero-section {
  background: linear-gradient(135deg, #1A237E 0%, #3f479d 100%); /* Darker blue to slightly lighter blue */
  color: #ffffff;
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-resources__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('[GALLERY:bg:abstract,geometric,patterns]');
  background-size: cover;
  background-position: center;
  opacity: 0.1;
  z-index: 0;
}

.page-resources__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #FFB300; /* Amber gold for title */
  position: relative;
  z-index: 1;
}

.page-resources__hero-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 40px;
  position: relative;
  z-index: 1;
}

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

.page-resources__cta-button--primary {
  background-color: #FFB300; /* Amber gold */
  color: #1A237E; /* Dark blue text */
  border: 2px solid #FFB300;
}

.page-resources__cta-button--primary:hover {
  background-color: #e59400; /* Slightly darker amber */
  border-color: #e59400;
}

.page-resources__introduction-section,
.page-resources__articles-grid,
.page-resources__faq-section {
  padding: 60px 0;
  background-color: #ffffff;
  border-bottom: 1px solid #eee;
}

.page-resources__section-title {
  font-size: 2.5em;
  color: #1A237E; /* Dark blue */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.page-resources__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #FFB300; /* Amber gold accent */
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-resources__text-content {
  font-size: 1.1em;
  color: #444;
  margin-bottom: 20px;
  text-align: justify;
}

.page-resources__image-text-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 40px 0;
  gap: 30px;
}

.page-resources__image-text-block:nth-of-type(odd) .page-resources__image {
  order: 1;
}

.page-resources__image-text-block:nth-of-type(even) .page-resources__image {
  order: 2;
}

.page-resources__image {
  flex: 1 1 45%;
  max-width: 500px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

.page-resources__text-block {
  flex: 1 1 45%;
}

.page-resources__sub-title {
  font-size: 1.8em;
  color: #1A237E;
  margin-bottom: 20px;
}

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

.page-resources__grid-item {
  background-color: #fefefe;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-resources__grid-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.page-resources__item-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid #eee;
}

.page-resources__grid-item h3 {
  padding: 20px 25px 10px;
  font-size: 1.4em;
  color: #1A237E;
  flex-grow: 1;
}

.page-resources__grid-item h3 a {
  color: #1A237E;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources__grid-item h3 a:hover {
  color: #FFB300;
}

.page-resources__item-description {
  padding: 0 25px 20px;
  color: #555;
  font-size: 0.95em;
  flex-grow: 1;
}

.page-resources__read-more-button {
  display: inline-block;
  background-color: #FFB300;
  color: #1A237E;
  padding: 10px 20px;
  margin: 0 25px 25px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

.page-resources__read-more-button:hover {
  background-color: #e59400;
}

.page-resources__cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: #1A237E; /* Dark blue background */
  color: #ffffff;
}

.page-resources__cta-section--alt-bg {
  background: linear-gradient(90deg, #1A237E, #4d57a5); /* Gradient from dark blue */
}

.page-resources__cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-resources__cta-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 30px;
  filter: invert(100%) sepia(99%) saturate(747%) hue-rotate(338deg) brightness(102%) contrast(105%); /* Makes icon amber */
}

.page-resources__section-title--light {
  color: #FFB300;
}

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

.page-resources__text-content--light {
  color: #e0e0e0;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources__cta-button--secondary {
  background-color: #ffffff;
  color: #1A237E;
  border: 2px solid #ffffff;
  margin-top: 30px;
}

.page-resources__cta-button--secondary:hover {
  background-color: #f0f0f0;
  color: #1A237E;
}

.page-resources__faq-section {
  background-color: #fefefe;
  padding: 60px 0;
}

.page-resources__faq-item {
  background-color: #ffffff;
  border: 1px solid #eee;
  border-radius: 8px;
  margin-bottom: 20px;
  padding: 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.page-resources__faq-question {
  font-size: 1.3em;
  color: #1A237E;
  margin-bottom: 10px;
}

.page-resources__faq-answer {
  font-size: 1em;
  color: #555;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-resources__hero-title {
    font-size: 2.5em;
  }

  .page-resources__section-title {
    font-size: 2em;
  }

  .page-resources__image-text-block {
    flex-direction: column;
  }

  .page-resources__image,
  .page-resources__text-block {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .page-resources__grid {
    grid-template-columns: 1fr;
  }

  .page-resources__grid-item h3 {
    font-size: 1.2em;
  }

  .page-resources__read-more-button {
    margin-left: 20px;
    margin-right: 20px;
  }

  .page-resources__cta-section {
    padding: 60px 0;
  }

  .page-resources__cta-icon {
    width: 60px;
    height: 60px;
  }

  .page-resources__faq-question {
    font-size: 1.1em;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 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;
  }

  .page-resources__text-content {
    font-size: 0.95em;
  }

  .page-resources__sub-title {
    font-size: 1.5em;
  }

  .page-resources__faq-item {
    padding: 20px;
  }
}