.carousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  background-color: blue;
}
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.slide.active {
  opacity: 1;
}
.overlay {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.8) 40%,
    rgba(0, 0, 0, 0)
  );
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 5%;
  z-index: 1;
}
.overlay h2 {
  font-size: 5rem;
  margin: 0;
  margin-top: -110px;
  font-family: "Georgia", serif;
  color: #fff;
  -webkit-animation: focus-in-expand 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94)
    both;
  animation: focus-in-expand 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}
.overlay p {
  font-size: 1.2rem;
  max-width: 500px;
  margin-bottom: 20px;
}
.overlay button {
  background: red;
  border: none;
  padding: 12px 25px;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
}
.dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}
.dot {
  width: 15px;
  height: 15px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
}
.dot.active {
  background: #fff;
}

/* FEATURED ARTICLES */
.featuredArticles, 
.newArticles {
  padding: 60px 10%;
}

.featuredArticles h2,
.newArticles h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  font-weight: 600;
}
.articlesGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}
.articleCard {
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-align: left;
}
.articleCard:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}
.articleCard img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.articleCard h3 {
  font-size: 1.25rem;
  margin: 15px 20px 10px;
}
.articleCard p {
  font-size: 0.95rem;
  color: grey;
  margin: 0 20px 20px;
  line-height: 1.5;
}

/* Read more link */
.articleCard a {
  display: inline-block;
  margin: 0 20px 20px;
  padding: 8px 14px;
  background: #222;
  color: #fff;
  border-radius: 8px;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.2s ease;
}

.articleCard a:hover {
  background: #444;
}

@media (max-width: 768px) {
  .featuredArticles {
    padding: 40px 5%;
  }
  .articleCard img {
    height: 180px;
  }
}

.exploreAllBtn {
  width: 100%;
}