#blog-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  width: 100%;
  margin-bottom: 50px;
}

#read-more {
  font-size: 24px;
  font-weight: 800;
  color: white;
  background-color: #ff7347;
  width: 130px;
  padding: 0 15px;
  border-radius: 15px;
  -webkit-text-stroke: 0.1px black;
}

#read-more:hover {
  cursor: pointer;
}

.blog-post {
  display: flex;
  flex-direction: column;
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 400px;
  transition: transform 0.3s ease-in-out;
}

.blog-post:hover {
  transform: scale(1.05);
}

.blog-post h2 {
  color: #ff7347;
  font-size: 28px;
  margin-bottom: 10px;
  -webkit-text-stroke: 0.5px black;
}

.blog-post img {
  max-width: 100%;
  max-height: 400px;
  border-radius: 8px;
  margin: 10px 0;
}

.blog-post p {
  font-size: 18px;
  line-height: 1.5;
  color: #333;
}

.tags {
  margin-top: 20px;
  font-size: 16px;
  color: white;
  background-color: #ff7347;
  padding: 5px 10px;
  border-radius: 8px;
  display: inline-block;
  -webkit-text-stroke: 0.5px black;
}
.author-info {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

/* Carousel Container */
.carousel {
  position: relative;
  width: 80%;
  max-width: 1200px;
  margin: 50px auto;
  overflow: hidden; /* Hide overflow to ensure smooth sliding */
  border-radius: 12px;
}

/* Carousel Items */
.carousel-container {
  display: flex;
  transition: transform 0.3s ease-in-out; /* Smooth sliding transition */
  gap: 20px;
}

/* Individual Carousel Item */
.carousel-item {
  min-width: 100%;
  position: relative;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

/* Carousel Item Image */
.carousel-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
}

/* Carousel Caption */
.carousel-caption {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 10px;
  border-radius: 0 0 12px 12px;
}

.carousel-caption > h2 {
  -webkit-text-stroke: 0.5px black;
  font-size: 50px;
  margin: 0;
}

/* Carousel Buttons */
.carousel-buttons {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
}

.carousel-button {
  background: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  transition: background 0.3s ease;
}

.carousel-button:hover {
  background: rgba(0, 0, 0, 0.8);
}

#prev-button {
  left: 10px;
}

#next-button {
  right: 10px;
}

.pagination-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 150px;
}

.pagination-button {
  background: none;
  border: none;
  font-size: 50px;
  font-family: inherit;
  -webkit-text-stroke: 0.5px white;
}
.pagination-button.active {
  background-color: #ff7347;
  border-radius: 100%;
  padding: 0 20px;
}

.pagination-button:hover {
  background-color: #ff7347;
  border: 1px solid black;
  border-radius: 100%;
  padding: 0 20px;
}

@media (max-width: 768px) {
  .carousel-caption > h2 {
    font-size: 36px;
  }

  .pagination-button {
    font-size: 30px;
  }

  #read-more {
    font-size: 20px;
    width: 110px;
  }
}
