/* Hero Carousel Styles */
.hero-carousel-section {
    position: relative;
    height: 70vh;
    min-height: 500px;
    overflow: hidden;
    margin-bottom: 2rem;
}

/* Top News Banner - Updated positioning and styling */
.top-news-banner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    padding: 12px 2rem;
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 1rem;
    white-space: nowrap;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.top-news-banner::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    animation: blink 1.5s infinite;
    flex-shrink: 0;
}

.banner-category {
    color: #fff;
    font-weight: 700;
    flex-shrink: 0;
}

.banner-divider {
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0.5rem;
    flex-shrink: 0;
}

.banner-title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
}

.hero-carousel .carousel-item {
    height: 90vh;
    min-height: 500px;
    position: relative;
    /* margin-top: 60px; */
    /* Space for top banner */
    height: calc(90vh - 60px);
    min-height: calc(500px - 60px);
}

.hero-carousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-single {
    height: calc(90vh - 60px);
    min-height: calc(500px - 60px);
    position: relative;
    margin-top: 60px;
}

.hero-single img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(0, 0, 0, 0.8) 0%,
            rgba(0, 0, 0, 0.6) 50%,
            rgba(0, 0, 0, 0.4) 100%);
    display: flex;
    align-items: end;
    padding: 2rem;
}

.hero-content {
    color: white;
    max-width: 600px;
    z-index: 2;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.category-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    display: inline-block;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: slideInUp 0.8s ease-out;
}

.hero-excerpt {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    animation: slideInUp 0.8s ease-out 0.2s both;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
    animation: slideInUp 0.8s ease-out 0.4s both;
    flex-wrap: wrap;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.8rem;
    overflow: hidden;
}

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

.read-more-btn {
    background: transparent;
    border: 2px solid white;
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 1rem;
    display: inline-block;
}

.read-more-btn:hover {
    background: white;
    color: #333;
    transform: translateY(-2px);
    text-decoration: none;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.carousel-control-prev {
    left: 30px;
}

.carousel-control-next {
    right: 30px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 24px;
    height: 24px;
}

.carousel-indicators {
    bottom: 30px;
    margin-bottom: 0;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.carousel-indicators .active {
    background: white;
    transform: scale(1.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-carousel-section {
        height: 60vh;
        min-height: 400px;
    }

    .hero-carousel .carousel-item,
    .hero-single {
        height: calc(60vh - 50px);
        min-height: calc(400px - 50px);
        margin-top: 50px;
    }

    .top-news-banner {
        padding: 10px 1.5rem;
        font-size: 0.8rem;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-excerpt {
        font-size: 1rem;
    }

    .hero-overlay {
        padding: 1.5rem;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 50px;
        height: 50px;
    }

    .carousel-control-prev {
        left: 15px;
    }

    .carousel-control-next {
        right: 15px;
    }

    .hero-meta {
        gap: 0.5rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-excerpt {
        font-size: 0.9rem;
    }

    .category-badge {
        font-size: 0.75rem;
        padding: 4px 12px;
    }

    .top-news-banner {
        padding: 8px 1rem;
        font-size: 0.75rem;
    }

    .banner-title {
        font-size: 0.75rem;
    }
}

.carousel-item {
    transition: transform 0.6s ease-in-out;
}

.carousel-item.active .hero-content>* {
    animation-delay: 0.3s;
}