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

.page-resources .page-resources__hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, #0A2463 0%, #0A2463 70%, #FFD700 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
  min-height: 400px;
}

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

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

.page-resources .page-resources__hero-title .highlight {
  color: #FFD700;
}

.page-resources .page-resources__hero-subtitle {
  font-size: 1.4em;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
}

.page-resources .page-resources__hero-image-wrapper {
  position: absolute;
  bottom: 0;
  right: 0;
  opacity: 0.2;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.page-resources .page-resources__hero-image {
  width: 70%;
  height: auto;
  object-fit: cover;
}

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

.page-resources .page-resources__section-title {
  font-size: 2.5em;
  color: #0A2463;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-resources .page-resources__section-description {
  font-size: 1.1em;
  color: #555;
  text-align: center;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources .page-resources__intro {
  padding: 60px 0;
  background-color: #fff;
  text-align: center;
}

.page-resources .page-resources__intro .page-resources__text-block {
  font-size: 1.1em;
  color: #444;
  margin-bottom: 25px;
  line-height: 1.8;
  text-align: justify;
}

.page-resources .page-resources__intro .page-resources__text-block .keyword {
  font-weight: bold;
  color: #0A2463;
}

.page-resources .page-resources__intro-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  margin-top: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-resources .page-resources__articles {
  padding: 80px 0;
  background-color: #f0f2f5;
}

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

.page-resources .page-resources__article-card {
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-resources .page-resources__article-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

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

.page-resources .page-resources__article-card h3 {
  font-size: 1.5em;
  margin: 20px 20px 10px;
  color: #0A2463;
  min-height: 72px; /* Ensure consistent height */
}

.page-resources .page-resources__article-card h3 a {
  text-decoration: none;
  color: #0A2463;
  transition: color 0.3s ease;
}

.page-resources .page-resources__article-card h3 a:hover {
  color: #FFD700;
}

.page-resources .page-resources__article-card h3 .keyword {
  color: #FFD700;
}

.page-resources .page-resources__article-description {
  font-size: 1em;
  color: #666;
  padding: 0 20px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-resources .page-resources__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  margin-top: auto; /* Push button to bottom */
  margin-left: 20px;
  margin-right: 20px;
  margin-bottom: 20px;
  text-align: center;
}

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

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

.page-resources .page-resources__btn--secondary {
  background-color: #0A2463;
  color: #fff;
  border: 2px solid #0A2463;
}

.page-resources .page-resources__btn--secondary:hover {
  background-color: #071c4a;
  border-color: #071c4a;
  transform: translateY(-2px);
}

.page-resources .page-resources__cta {
  background: linear-gradient(90deg, #0A2463 0%, #0A2463 60%, #FFD700 100%);
  padding: 80px 20px;
  color: #fff;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.page-resources .page-resources__cta .page-resources__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  z-index: 1;
}

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

.page-resources .page-resources__cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  color: #fff;
}

.page-resources .page-resources__cta-title .highlight {
  color: #FFD700;
}

.page-resources .page-resources__cta-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
}

.page-resources .page-resources__cta-description .keyword {
  font-weight: bold;
  color: #FFD700;
}

.page-resources .page-resources__cta-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0.15;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.page-resources .page-resources__cta-image {
  width: 60%;
  height: auto;
  object-fit: contain;
  transform: translateX(-20%);
}

/* Responsive Design */
@media (min-width: 768px) {
  .page-resources .page-resources__hero {
    flex-direction: row;
    text-align: left;
    padding: 100px 40px;
  }

  .page-resources .page-resources__hero-content {
    text-align: left;
    max-width: 50%;
    padding-right: 40px;
  }

  .page-resources .page-resources__hero-title {
    font-size: 4em;
  }

  .page-resources .page-resources__hero-subtitle {
    font-size: 1.6em;
  }

  .page-resources .page-resources__hero-image-wrapper {
    position: relative;
    width: 50%;
    height: auto;
    opacity: 1;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .page-resources .page-resources__hero-image {
    width: 100%;
    max-width: 600px;
    transform: translateY(0);
  }

  .page-resources .page-resources__intro .page-resources__text-block {
    text-align: center;
  }

  .page-resources .page-resources__cta .page-resources__container {
    flex-direction: row;
    text-align: left;
    justify-content: space-between;
  }

  .page-resources .page-resources__cta-content {
    text-align: left;
    max-width: 60%;
  }

  .page-resources .page-resources__cta-image-wrapper {
    position: relative;
    width: 35%;
    height: auto;
    opacity: 1;
    transform: translateX(0);
  }

  .page-resources .page-resources__cta-image {
    width: 100%;
    max-width: 400px;
    transform: translateX(0);
  }
}

@media (max-width: 767px) {
  .page-resources .page-resources__hero {
    padding: 60px 15px;
  }
  .page-resources .page-resources__hero-title {
    font-size: 2.5em;
  }
  .page-resources .page-resources__hero-subtitle {
    font-size: 1.2em;
  }
  .page-resources .page-resources__hero-image-wrapper {
    justify-content: center;
  }
  .page-resources .page-resources__hero-image {
    width: 100%;
    max-width: 400px;
  }
  .page-resources .page-resources__section-title {
    font-size: 2em;
  }
  .page-resources .page-resources__article-card h3 {
    min-height: auto;
  }
  .page-resources .page-resources__cta {
    padding: 60px 15px;
  }
  .page-resources .page-resources__cta-title {
    font-size: 2em;
  }
  .page-resources .page-resources__cta-description {
    font-size: 1em;
  }
  .page-resources .page-resources__cta-image-wrapper {
    display: none; /* Hide image on small screens for CTA */
  }
}