/* style/resources.css */

/* Base styles for the page content */
.page-resources {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light body background */
  background-color: #FFFFFF;
}

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

/* Hero Section */
.page-resources__hero-section {
  background: linear-gradient(135deg, #017439, #4d9e74);
  padding: 80px 0;
  text-align: center;
  color: #FFFFFF;
}

.page-resources__hero-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #FFFFFF;
  font-weight: bold;
}

.page-resources__hero-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto;
  color: #f0f0f0;
}

/* Intro Section */
.page-resources__intro-section {
    padding: 60px 0;
    background-color: #f9f9f9;
    border-bottom: 1px solid #eee;
}

.page-resources__intro-heading {
    font-size: 2.2em;
    color: #017439;
    text-align: center;
    margin-bottom: 30px;
}

.page-resources__intro-text {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

/* Articles Section */
.page-resources__articles-section {
  padding: 60px 0;
  background-color: #FFFFFF;
}

.page-resources__articles-heading {
  font-size: 2.2em;
  color: #017439;
  text-align: center;
  margin-bottom: 40px;
}

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

.page-resources__article-card {
  background-color: #f0f0f0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px 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(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-resources__article-image {
  width: 100%;
  height: 250px; /* Ensure images are large enough */
  object-fit: cover;
}

.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;
  font-weight: bold;
  line-height: 1.3;
}

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

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

.page-resources__article-summary {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-resources__button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  text-align: center;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin-top: auto; /* Pushes button to the bottom */
}

.page-resources__button--primary {
  background-color: #017439;
  color: #FFFFFF;
}

.page-resources__button--primary:hover {
  background-color: #005a2e;
}

.page-resources__button--secondary {
    background-color: #FFFFFF;
    color: #017439;
    border: 2px solid #017439;
}

.page-resources__button--secondary:hover {
    background-color: #017439;
    color: #FFFFFF;
}

.page-resources__button--register {
  background-color: #C30808;
  color: #FFFF00;
  font-size: 1.2em;
  padding: 15px 30px;
}

.page-resources__button--register:hover {
  background-color: #a00606;
}

/* Deep Content Section */
.page-resources__deep-content {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.page-resources__deep-content-heading {
    font-size: 2.5em;
    color: #017439;
    text-align: center;
    margin-bottom: 40px;
}

.page-resources__deep-content-subheading {
    font-size: 1.8em;
    color: #017439;
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 2px solid #4d9e74;
    padding-bottom: 10px;
}

.page-resources__deep-content-text {
    font-size: 1.1em;
    margin-bottom: 15px;
    text-align: justify;
}

.page-resources__deep-content-final-text {
    font-size: 1.1em;
    margin-top: 30px;
    text-align: center;
    font-style: italic;
    color: #555555;
}

.page-resources__deep-content ul {
    list-style: disc inside;
    margin-left: 20px;
    margin-bottom: 20px;
}

.page-resources__deep-content li {
    margin-bottom: 8px;
    font-size: 1em;
    color: #444444;
}

/* Call to Action Section */
.page-resources__cta-section {
  background-color: #017439; /* Main brand color */
  padding: 60px 0;
  text-align: center;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}

.page-resources__cta-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2; /* Slightly transparent overlay */
  z-index: 0;
}

.page-resources__cta-section > .page-resources__container {
  position: relative;
  z-index: 1;
}

.page-resources__cta-heading {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #FFFFFF;
  font-weight: bold;
}

.page-resources__cta-description {
  font-size: 1.1em;
  max-width: 700px;
  margin: 0 auto 30px auto;
  color: #f0f0f0;
}

/* Highlight text */
.page-resources__highlight {
  color: #FFFF00; /* Yellow for highlights */
  font-weight: bold;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .page-resources__hero-title {
    font-size: 2.2em;
  }
  .page-resources__articles-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-resources__article-title {
    font-size: 1.4em;
  }
  .page-resources__cta-heading {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-resources__hero-section,
  .page-resources__articles-section,
  .page-resources__cta-section,
  .page-resources__intro-section,
  .page-resources__deep-content {
    padding: 40px 0;
  }
  .page-resources__hero-title {
    font-size: 1.8em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__articles-heading,
  .page-resources__deep-content-heading,
  .page-resources__intro-heading {
    font-size: 1.8em;
  }
  .page-resources__deep-content-subheading {
    font-size: 1.5em;
  }
  .page-resources__article-image {
    height: 200px;
  }
  .page-resources__article-content {
    padding: 20px;
  }
  .page-resources__article-title {
    font-size: 1.2em;
  }
  .page-resources__button {
    padding: 10px 20px;
    font-size: 0.9em;
  }
  .page-resources__button--register {
    font-size: 1.1em;
    padding: 12px 25px;
  }
  .page-resources__cta-heading {
    font-size: 1.8em;
  }
  .page-resources__cta-description {
    font-size: 0.95em;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 1.5em;
  }
  .page-resources__articles-heading,
  .page-resources__deep-content-heading,
  .page-resources__intro-heading {
    font-size: 1.5em;
  }
  .page-resources__deep-content-subheading {
    font-size: 1.3em;
  }
  .page-resources__articles-grid {
    grid-template-columns: 1fr;
  }
  .page-resources__article-image {
    height: 180px;
  }
  .page-resources__article-title {
    font-size: 1.1em;
  }
  .page-resources__article-summary {
    font-size: 0.9em;
  }
  .page-resources__button--register {
    font-size: 1em;
    padding: 10px 20px;
  }
  .page-resources__cta-heading {
    font-size: 1.5em;
  }
  .page-resources__cta-description {
    font-size: 0.9em;
  }
}