body {
      font-family: 'Segoe UI', sans-serif;
      background: #f1f4f9;
      margin: 0px;
      display: flex;
      flex-direction: column;
      align-items: center;
    }

* {
  box-sizing: border-box;
}
    /*HERO*/

    .hero-section {
      width: 100%;
      height: 360px;
      background-image: url('./images/latest-posts-bg2.jpg'); /* replace with your image */
      background-size: cover;
      background-position: center;
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
      text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);

    }

    .hero-overlay {
      background: linear-gradient(to right, rgba(0, 48, 124, 0.6), rgba(128, 0, 128, 0.6));
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 0 20px;
    }

    .hero-content {
      max-width: 700px;
      color: white;
      text-align: center; /* <-- center the text */
    }

    .hero-title {
      font-size: 44px;
      font-weight: bold;
      margin-top: -20px;
    }

    .hero-desc {
      font-size: 20px;
      line-height: 1.5;
      max-width: 700px;
    }

   

.latest-posts-section {
  position: relative;
  background-size: cover;
  background-position: center;
  color: white; /* or a light color for contrast */
  padding: 50px 1px;
}

.latest-posts-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
}

.latest-posts-section > .container {
  position: relative;
  z-index: 1;
}

.container {
  max-width: 85%;
  margin: 0 auto;
}

.latest-posts-section-title {
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 10px;
  text-align: center;
  color: white;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);

}

.latest-posts-section-description {
  font-size: 16px;
  margin-top: 30px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  color: white;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);

}



.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Default: 2 cards per row (mobile) */
  gap: 30px;
}

.latest-posts-image-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
  background-color: #f1f4f9;
}

.latest-posts-image-card:hover {
  transform: translateY(-5px);
}

.latest-posts-image-container {
  aspect-ratio: 1 / 1;
  overflow: hidden;

}

.latest-posts-image-container img {
  width: 100%;
  height: 100%; /* fill container */
  object-fit: cover;
  display: block;

}

.latest-posts-image-title {
  padding: 15px;
  font-weight: 600;
  font-size: 16px;
  color: #00307c;;
  text-align: center;
  text-decoration: none;
  line-height: 1.5;
  background-color: #f1f4f9;

}

.latest-posts-image-title a {
  text-decoration: none;
  color: #00307c;
}


.latest-posts-image-title a:hover {
  opacity: 0.8;
}

@media (min-width: 992px) {
  .posts-grid {
    grid-template-columns: repeat(4, 1fr); /* Desktop: 4 cards per row */
  }

  .latest-posts-section {
  position: relative;
  background-size: cover;
  background-position: center;
  color: white; /* or a light color for contrast */
  padding: 50px 20px;
}
  
}

 /* MOBILE VIEW */
    @media (max-width: 768px) {
      
      .hero-overlay {
        padding: 0 20px;
        text-align: center;
      }

      .hero-content {
        text-align: center;
      }

      .hero-title {
        font-size: 36px;
      }

      .hero-desc {
        font-size: 16px;
      }
      .container {
        max-width: 95%;
      }
    }