/* Mobile-Optimized Slider Design */

/* Add colorful underlines for all main text elements */
h2,
h4,
h5,
p {
    text-decoration: underline;
    text-decoration-color: blue; /* Default color */
}

h2:hover,
h4:hover,
 {
    text-decoration-color: pink; /* Change color on hover */
}

h2:active,
h4:active,
 {
    text-decoration-color: red; /* Change color on active */
}
.package-card h5,
.notice-card h5,
.carousel-caption h2,
.carousel-caption p {
    text-decoration: underline;
    text-decoration-color: blue; /* Default color */
}

.package-card h5:hover,
.notice-card h5:hover,
.carousel-caption h2:hover,
.carousel-caption p:hover {
    text-decoration-color: pink; /* Change color on hover */
}

.package-card h5:active,
.notice-card h5:active,
.carousel-caption h2:active,
.carousel-caption p:active {
    text-decoration-color: red; /* Change color on active */
}
.hero-slider {
    position: relative;
    overflow: hidden;
    margin-top: 62px; /* Adjusted margin for better positioning */
}

#heroCarousel {
    position: relative;
    width: calc(100% - 20px);
    height: 50vh;
    max-height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
}

#heroCarousel .carousel-inner {
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
}

#heroCarousel .carousel-item {
    height: 100%;
    position: relative;
    transition: transform 0.5s ease;
}

#heroCarousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8);
}

#heroCarousel .carousel-item.active img {
    filter: brightness(0.9);
}

/* Mobile-Optimized Caption */
#heroCarousel .carousel-caption {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    padding: 1rem 0.8rem;
    border-radius: 12px;
    text-align: center;
    max-width: 95%;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    bottom: 15px;
}

#heroCarousel .carousel-caption h2 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
}

#heroCarousel .carousel-caption p {
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
    color: #f8f9fa;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#heroCarousel .carousel-caption .btn {
    font-size: 0.85rem;
    padding: 0.7rem 1.8rem;
    border-radius: 35px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    font-weight: 600;
    transition: all 0.2s ease;
}

#heroCarousel .carousel-caption .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

/* Mobile Navigation Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    border: 2px solid rgba(255, 255, 255, 0.2);
    opacity: 0.9;
}

.carousel-control-prev {
    left: 8px;
}

.carousel-control-next {
    right: 8px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 18px;
    height: 18px;
    filter: invert(1);
}

/* Mobile Indicators */
.carousel-indicators {
    bottom: 12px;
    margin-bottom: 0;
}

.carousel-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.3);
    margin: 0 4px;
}

.carousel-indicators [data-bs-target].active {
    background-color: #ffffff;
    border-color: #ffffff;
    transform: scale(1.2);
}

/* Responsive Adjustments */
@media (max-width: 576px) {
    #heroCarousel {
        height: 45vh;
        max-height: 350px;
        border-radius: 10px;
    }
    
    #heroCarousel .carousel-caption {
        padding: 0.9rem 0.7rem;
        bottom: 12px;
    }
    
    #heroCarousel .carousel-caption h2 {
        font-size: 1.3rem;
    }
    
    #heroCarousel .carousel-caption p {
        font-size: 0.85rem;
    }
    
    #heroCarousel .carousel-caption .btn {
        font-size: 0.8rem;
        padding: 0.6rem 1.6rem;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    #heroCarousel {
        height: 40vh;
        max-height: 300px;
    }
    
    #heroCarousel .carousel-caption {
        padding: 0.8rem 0.6rem;
        bottom: 10px;
    }
    
    #heroCarousel .carousel-caption h2 {
        font-size: 1.2rem;
    }
    
    #heroCarousel .carousel-caption p {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
    }
    
    #heroCarousel .carousel-caption .btn {
        font-size: 0.75rem;
        padding: 0.5rem 1.4rem;
    }
    
    .carousel-indicators {
        bottom: 10px;
    }
}

@media (max-width: 360px) {
    #heroCarousel {
        height: 35vh;
        max-height: 250px;
    }
    
    #heroCarousel .carousel-caption {
        padding: 0.7rem 0.5rem;
        bottom: 8px;
    }
    
    #heroCarousel .carousel-caption h2 {
        font-size: 1.1rem;
    }
    
    #heroCarousel .carousel-caption p {
        font-size: 0.75rem;
        -webkit-line-clamp: 1;
    }
    
    #heroCarousel .carousel-caption .btn {
        font-size: 0.7rem;
        padding: 0.4rem 1.2rem;
    }
}

/* Touch-friendly enhancements */
@media (hover: none) and (pointer: coarse) {
    .carousel-control-prev,
    .carousel-control-next {
        opacity: 1;
        background: rgba(255, 255, 255, 0.9);
    }
    
    #heroCarousel .carousel-caption .btn {
        padding: 0.9rem 2.2rem;
        min-height: 44px; /* Minimum touch target size */
    }
}

/* Performance optimizations */
.hero-slider {
    will-change: transform;
    backface-visibility: hidden;
}

#heroCarousel img {
    will-change: transform;
    backface-visibility: hidden;
}

/* Loading state */
.hero-slider.loading {
    background: linear-gradient(90deg, #f8f9fa 25%, #e9ecef 50%, #f8f9fa 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .hero-slider * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
