/* Hero Slider Styles */
.hero-slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hero-slider {
    width: 100%;
    height: 80vh;
}

.hero-slide {
    position: relative;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
}

.hero-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-slide-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    padding: 0 20px;
}

.hero-slide-inner {
    max-width: 700px;
    animation: fadeInUp 0.8s ease-out;
}

/* Horizontal Alignment Classes */
.hero-align-left .hero-slide-inner {
    margin-right: auto;
    margin-left: 0;
    text-align: left;
}

.hero-align-center .hero-slide-inner {
    margin: 0 auto;
    text-align: center;
}

.hero-align-right .hero-slide-inner {
    margin-left: auto;
    margin-right: 0;
    text-align: right;
}

/* Fade in animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-slide-subtitle {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 15px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-slide-title {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #ffffff;
    line-height: 1.2;
}

.hero-slide-description {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #ffffff;
}

.hero-slide-button {
    display: inline-block;
    padding: 15px 35px;
    background-color: #007bff;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.hero-slide-button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.hero-slider .swiper-button-prev,
.hero-slider .swiper-button-next {
    color: #ffffff;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.hero-slider .swiper-button-prev:hover,
.hero-slider .swiper-button-next:hover {
    background: rgba(255, 255, 255, 0.4);
}

.hero-slider .swiper-button-prev::after,
.hero-slider .swiper-button-next::after {
    font-size: 24px;
}

.hero-slider .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
}

.hero-slider .swiper-pagination-bullet-active {
    background: #ffffff;
    width: 30px;
    border-radius: 6px;
}

/* Responsive Hero Slider */
@media (max-width: 1024px) {
    .hero-slider-wrapper.hide-arrows-tablet .swiper-button-prev,
    .hero-slider-wrapper.hide-arrows-tablet .swiper-button-next {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-slide-title {
        font-size: 36px;
    }
    
    .hero-slide-subtitle {
        font-size: 14px;
    }
    
    .hero-slide-description {
        font-size: 16px;
    }
    
    .hero-slide-button {
        padding: 12px 28px;
        font-size: 14px;
    }
    
    .hero-slider-wrapper.hide-arrows-mobile .swiper-button-prev,
    .hero-slider-wrapper.hide-arrows-mobile .swiper-button-next {
        display: none;
    }
    
    .hero-slider-wrapper.force-center-mobile .hero-slide-inner {
        margin: 0 auto;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-slide-title {
        font-size: 28px;
    }
    
    .hero-slide-subtitle {
        font-size: 12px;
        margin-bottom: 10px;
    }
    
    .hero-slide-description {
        font-size: 14px;
        margin-bottom: 20px;
    }
}

/* Custom Carousel Styles */
.custom-carousel-wrapper {
    position: relative;
    width: 100%;
    padding: 40px 0;
}

.custom-carousel {
    width: 100%;
    padding: 0 50px;
}

.carousel-item {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

/* Image Position Styles */
.carousel-item.carousel-image-top {
    display: flex;
    flex-direction: column;
}

.carousel-item.carousel-image-left {
    display: flex;
    flex-direction: row;
}

.carousel-item.carousel-image-right {
    display: flex;
    flex-direction: row-reverse;
}

.carousel-item.carousel-image-left .carousel-item-image,
.carousel-item.carousel-image-right .carousel-item-image {
    flex: 0 0 40%;
    max-width: 40%;
}

.carousel-item.carousel-image-left .carousel-item-image img,
.carousel-item.carousel-image-right .carousel-item-image img {
    height: 100%;
    object-fit: cover;
}

.carousel-item.carousel-image-left .carousel-item-content,
.carousel-item.carousel-image-right .carousel-item-content {
    flex: 1;
}

/* Equal Height */
.custom-carousel-wrapper.equal-height .swiper-slide {
    height: auto;
}

.custom-carousel-wrapper.equal-height .carousel-item {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.custom-carousel-wrapper.equal-height .carousel-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.custom-carousel-wrapper.equal-height .carousel-item-description {
    flex: 1;
}

.carousel-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.carousel-item-image {
    width: 100%;
    overflow: hidden;
}

.carousel-item-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.carousel-item:hover .carousel-item-image img {
    transform: scale(1.05);
}

.carousel-item-content {
    padding: 25px;
}

.carousel-item-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333333;
    line-height: 1.3;
}

.carousel-item-description {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #666666;
}

.carousel-item-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: #007bff;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 14px;
}

.carousel-item-button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.custom-carousel .swiper-button-prev,
.custom-carousel .swiper-button-next {
    color: #007bff;
    width: 40px;
    height: 40px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.custom-carousel .swiper-button-prev:hover,
.custom-carousel .swiper-button-next:hover {
    background: #007bff;
    color: #ffffff;
}

.custom-carousel .swiper-button-prev::after,
.custom-carousel .swiper-button-next::after {
    font-size: 18px;
}

.custom-carousel .swiper-pagination {
    bottom: 0;
}

.custom-carousel .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #007bff;
    opacity: 0.3;
}

.custom-carousel .swiper-pagination-bullet-active {
    opacity: 1;
    width: 24px;
    border-radius: 5px;
}

/* Responsive Custom Carousel */
@media (max-width: 1024px) {
    .custom-carousel {
        padding: 0 40px;
    }
    
    /* Stack image position on tablet */
    .carousel-item.carousel-image-left,
    .carousel-item.carousel-image-right {
        flex-direction: column;
    }
    
    .carousel-item.carousel-image-left .carousel-item-image,
    .carousel-item.carousel-image-right .carousel-item-image {
        flex: 0 0 auto;
        max-width: 100%;
    }
    
    .carousel-item.carousel-image-left .carousel-item-image img,
    .carousel-item.carousel-image-right .carousel-item-image img {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .custom-carousel {
        padding: 0 30px;
    }
    
    .carousel-item-title {
        font-size: 20px;
    }
    
    .carousel-item-description {
        font-size: 14px;
    }
    
    .carousel-item-image img {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .custom-carousel {
        padding: 0 20px;
    }
    
    .carousel-item-content {
        padding: 20px;
    }
    
    .carousel-item-title {
        font-size: 18px;
    }
    
    .carousel-item-description {
        font-size: 13px;
    }
    
    .carousel-item-button {
        font-size: 13px;
        padding: 10px 24px;
    }
}
