
#hero-3 {
  padding: 100px 0;
}
#hero-3 .hero-title {
  font-size: 48px;
  font-weight: 700;
  color: #333;
}
#hero-3 .hero-subtitle {
  font-size: 20px;
  color: #666;
  margin-bottom: 30px;
}
#hero-3 .hero-image {
  max-width: 100%;
  border-radius: 8px;
}



/* category-posts-3 Styles - Posts Carousel */
#category-posts-3 {
    padding-top: 3rem;
    padding-bottom: 3rem;
    background-color: #ffffff; /* Clean white background */
}

#category-posts-3 .section-header {
    margin-bottom: 2.5rem;
    text-align: center;
}

#category-posts-3 .section-header .section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #343a40;
    margin-bottom: 0.5rem;
}

#category-posts-3 .section-header .section-subtitle {
    font-size: 1.05rem;
    color: #6c757d;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

#category-posts-3 .posts-carousel .carousel-item {
    height: 450px; /* Fixed height for carousel items */
    background-size: cover;
    background-position: center center;
    border-radius: 0.5rem;
    overflow: hidden;
    position: relative;
}

#category-posts-3 .posts-carousel .carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay for text readability */
    z-index: 1;
}

#category-posts-3 .posts-carousel .carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 2rem; /* More padding for caption */
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%); /* Gradient for smoother text background */
    color: #ffffff;
    z-index: 2;
    text-align: left;
}

#category-posts-3 .posts-carousel .carousel-caption .post-category {
    display: inline-block;
    background-color: rgba(0, 123, 255, 0.8); /* Primary color with some transparency */
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


#category-posts-3 .posts-carousel .carousel-caption h5 { /* Post title */
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}
#category-posts-3 .posts-carousel .carousel-caption h5 a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}
#category-posts-3 .posts-carousel .carousel-caption h5 a:hover {
    color: #f0f0f0;
}


#category-posts-3 .posts-carousel .carousel-caption .post-excerpt {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limit to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

#category-posts-3 .posts-carousel .readmore-btn {
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    background-color: #fff;
    color: #007bff;
    border: 1px solid #fff;
}
#category-posts-3 .posts-carousel .readmore-btn:hover {
    background-color: #f8f9fa;
    color: #0056b3;
}

#category-posts-3 .posts-carousel .carousel-control-prev,
#category-posts-3 .posts-carousel .carousel-control-next {
    width: 5%;
    z-index: 3;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}
#category-posts-3 .posts-carousel .carousel-control-prev:hover,
#category-posts-3 .posts-carousel .carousel-control-next:hover {
    opacity: 1;
}

#category-posts-3 .posts-carousel .carousel-control-prev-icon,
#category-posts-3 .posts-carousel .carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    padding: 0.8rem; /* Make icons a bit larger */
    width: 2.5rem; /* Fixed width */
    height: 2.5rem; /* Fixed height */
}


#category-posts-3 .posts-carousel .carousel-indicators {
    z-index: 3;
    margin-bottom: 0.5rem; /* Adjust position of indicators */
}

#category-posts-3 .posts-carousel .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 100%;
    background-color: rgba(255, 255, 255, 0.7); /* Lighter indicators */
    border: none;
    margin: 0 4px;
}

#category-posts-3 .posts-carousel .carousel-indicators .active {
    background-color: #ffffff;
}

#category-posts-3 .more-post-button-wrapper {
    margin-top: 2rem;
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    #category-posts-3 .posts-carousel .carousel-item {
        height: 400px;
    }
    #category-posts-3 .posts-carousel .carousel-caption h5 {
        font-size: 1.5rem;
    }
    #category-posts-3 .posts-carousel .carousel-caption .post-excerpt {
        font-size: 0.9rem;
    }
}

@media (max-width: 767.98px) {
    #category-posts-3 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    #category-posts-3 .section-header .section-title {
        font-size: 1.8rem;
    }
     #category-posts-3 .section-header .section-subtitle {
        font-size: 1rem;
    }
    #category-posts-3 .posts-carousel .carousel-item {
        height: 350px;
    }
    #category-posts-3 .posts-carousel .carousel-caption {
        padding: 1.5rem;
    }
    #category-posts-3 .posts-carousel .carousel-caption h5 {
        font-size: 1.3rem;
    }
    #category-posts-3 .posts-carousel .carousel-caption .post-excerpt {
        font-size: 0.85rem;
        -webkit-line-clamp: 2;
    }
    #category-posts-3 .posts-carousel .readmore-btn {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
}



