/* ===== Hero Carousel ===== */
.hero-carousel {
    position: relative;
    overflow: hidden;
    margin-top: -76px; /* اگر navbar ثابت دارید، این خط را تنظیم کنید */
}

.carousel-item {
    position: relative;
    height: 90vh;
    min-height: 400px;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1);
    transition: transform 8s ease;
}

.carousel-item.active .slide-bg {
    transform: scale(1.05);
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.1) 100%
    );
    z-index: 1;
}

/* ===== Carousel Caption ===== */
.carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    right: auto;
    bottom: auto;
    z-index: 2;
    padding: 0;
    width: 100%;
}

.carousel-caption .container {
    padding: 0 15px;
}

/* Badge */
.slide-badge {
    display: inline-block;
    padding: 0.5rem 2rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease;
}

/* Title */
.slide-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease;
}

.slide-title span {
    color: #f1c40f;
}

/* Subtitle */
.slide-subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-weight: 300;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1.2s ease;
}

/* Button */
.btn-slide {
    display: inline-block;
    padding: 1rem 3rem;
    background: linear-gradient(135deg, #f1c40f, #f39c12);
    color: #1a1a2e;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    border: none;
    box-shadow: 0 8px 30px rgba(241, 196, 15, 0.4);
    transition: all 0.4s ease;
    animation: fadeInUp 1.4s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-slide:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 40px rgba(241, 196, 15, 0.6);
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: #fff;
}

.btn-slide i {
    transition: transform 0.3s ease;
}

.btn-slide:hover i {
    transform: translateX(5px);
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Carousel Controls ===== */
.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    opacity: 0;
}

.hero-carousel:hover .carousel-control-prev,
.hero-carousel:hover .carousel-control-next {
    opacity: 1;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(241, 196, 15, 0.3);
    border-color: #f1c40f;
}

.carousel-control-prev {
    left: 30px;
}

.carousel-control-next {
    right: 30px;
}

/* ===== Indicators ===== */
.carousel-indicators {
    bottom: 30px;
    gap: 8px;
}

.carousel-indicators button {
    width: 40px !important;
    height: 4px !important;
    background: rgba(255, 255, 255, 0.5);
    border: none !important;
    border-radius: 2px;
    transition: all 0.4s ease;
}

.carousel-indicators button.active {
    background: #3d02e0;
    width: 60px !important;
}

/* ===== Responsive ===== */
@media (max-width: 991px) {
    .carousel-item {
        height: 70vh;
        min-height: 350px;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 45px;
        height: 45px;
    }
    
    .carousel-control-prev {
        left: 15px;
    }
    
    .carousel-control-next {
        right: 15px;
    }
}

@media (max-width: 768px) {
    .carousel-item {
        height: 60vh;
        min-height: 300px;
    }
    
    .slide-badge {
        font-size: 0.7rem;
        padding: 0.3rem 1.5rem;
    }
    
    .btn-slide {
        padding: 0.8rem 2rem;
        font-size: 0.9rem;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        display: none !important;
    }
}

@media (max-width: 576px) {
    .carousel-item {
        height: 50vh;
        min-height: 250px;
    }
    
    .slide-title {
        font-size: 1.8rem;
    }
    
    .slide-subtitle {
        font-size: 0.9rem;
    }
}

.hero-carousel {
    position: relative;
    overflow: hidden;
    /* padding-top: 110px;  */
    margin-top: 0;
}

/* اگر navbar شما 76px ارتفاع دارد */
.carousel-item {
    position: relative;
    height: calc(90vh - 76px); /* کم کردن ارتفاع navbar */
    min-height: calc(400px - 76px);
}

