
#hero-8 {
  padding: 100px 20px;
  background-color: #fff;
  text-align: center;
}
#hero-8 .hero-title {
  font-size: 48px;
  font-weight: 700;
  color: #333;
  margin-bottom: 20px;
}
#hero-8 .hero-subtitle {
  font-size: 20px;
  color: #666;
  margin-bottom: 40px;
}
.registration-form {
  max-width: 500px;
  margin: 0 auto;
}
.registration-form input {
  width: 100%;
  padding: 15px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}
.registration-form button {
  width: 100%;
  padding: 15px;
  font-size: 18px;
  background-color: #2575fc;
  color: #fff;
  border: none;
  border-radius: 4px;
}



/* style.css for category-posts-1 */

#category-posts-1 {
  padding-top: 0; /* No top padding as hero image takes full width */
  padding-bottom: 60px;
  background-color: #f8f9fa; /* A light background for the posts area */
}

#category-posts-1 .section-hero {
  position: relative;
  background-size: cover;
  background-position: center center;
  height: 40vh; /* Adjust height as needed */
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  margin-bottom: 50px;
}

#category-posts-1 .section-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5); /* Dark overlay for text readability */
}

#category-posts-1 .hero-content {
  position: relative; /* To be on top of the overlay */
  z-index: 1;
  padding: 20px;
}

#category-posts-1 .hero-content h2 {
  font-size: 2.8rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

#category-posts-1 .hero-content p {
  font-size: 1.2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

#category-posts-1 .post-card-item {
  margin-bottom: 30px;
  display: flex; /* For equal height cards if content varies */
  flex-direction: column;
}

#category-posts-1 .card {
  border: none;
  border-radius: 0.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  height: 100%; /* Ensure cards in a row take same height */
  display: flex;
  flex-direction: column;
}

#category-posts-1 .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

#category-posts-1 .card-img-top-wrapper {
  width: 100%;
  height: 200px; /* Fixed height for image container */
  overflow: hidden;
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
  background-color: #e9ecef; /* Placeholder background for image area */
}

#category-posts-1 .card-img-top {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures image covers the area, might crop */
  transition: transform 0.3s ease;
}

#category-posts-1 .card:hover .card-img-top {
  transform: scale(1.05);
}

#category-posts-1 .card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1; /* Allows card body to grow and push footer down */
}

#category-posts-1 .card-title {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 0.75rem;
  color: #333;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* Limit to 2 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 2.5em; /* Approximately 2 lines height */
}

#category-posts-1 .card-text {
  font-size: 0.9rem;
  color: #666;
  flex-grow: 1; /* Allows text to take available space */
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Limit to 3 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 4.05em; /* Approximately 3 lines height */
}

#category-posts-1 .post-meta {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 1rem;
}

#category-posts-1 .post-meta span {
  margin-right: 10px;
}

#category-posts-1 .post-meta i {
  margin-right: 5px;
}

#category-posts-1 .readmore-btn {
  background-color: #007bff;
  border-color: #007bff;
  color: #fff;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  border-radius: 0.25rem;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
  align-self: flex-start; /* Align button to the start of the flex container */
}

#category-posts-1 .readmore-btn i {
  margin-left: 5px;
  transition: transform 0.2s ease-in-out;
}

#category-posts-1 .readmore-btn:hover {
  background-color: #0056b3;
  border-color: #0056b3;
}

#category-posts-1 .readmore-btn:hover i {
  transform: translateX(3px);
}

#category-posts-1 .pagination-wrapper {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

#category-posts-1 .no-posts-message {
  text-align: center;
  font-size: 1.1rem;
  color: #555;
  padding: 40px 0;
}

#category-posts-1 .more-post-button-container {
  text-align: center;
  margin-top: 40px;
}

#category-posts-1 .btn-view-all-posts {
  padding: 10px 25px;
  font-size: 1rem;
}
#category-posts-1 .btn-view-all-posts i {
  margin-right: 8px;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
  #category-posts-1 .hero-content h2 {
    font-size: 2.2rem;
  }
  #category-posts-1 .hero-content p {
    font-size: 1rem;
  }
  #category-posts-1 .card-img-top-wrapper {
    height: 180px; /* Adjust image height for tablets */
  }
}

@media (max-width: 767.98px) {
  #category-posts-1 .section-hero {
    height: 35vh;
    min-height: 250px;
  }
  #category-posts-1 .hero-content h2 {
    font-size: 1.8rem;
  }
  #category-posts-1 .card-img-top-wrapper {
    height: 160px; /* Adjust image height for mobile */
  }
  #category-posts-1 .card-title {
    font-size: 1.1rem;
  }
  #category-posts-1 .card-text {
    font-size: 0.85rem;
    -webkit-line-clamp: 2; /* Shorter excerpt on mobile */
    min-height: 2.55em;
  }
}


