/* Fixed Modern Slider Styles - slider.css */

.hero-slider {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.hero-slider .carousel {
    height: 100%;
}

.hero-slider .carousel-inner {
    height: 100%;
    position: relative;
}

/* Updated carousel-item for opacity transitions */
.hero-slider .carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    z-index: 1;
}

/* Active slide styling */
.hero-slider .carousel-item.active {
    opacity: 1;
    z-index: 2;
}

/* Non-active slides */
.hero-slider .carousel-item:not(.active) {
    opacity: 0;
    z-index: 1;
}

/* Removed the black overlay */
.hero-slider .carousel-item::before {
    display: none;
}

.hero-slider .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Content Container */
.slider-content-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    padding: 0 clamp(1.5rem, 4vw, 6rem);
    pointer-events: none;
}

/* Allow button clicks */
.slider-content-container .slider-button {
    pointer-events: auto;
}

/* Text Alignment Classes */
.text-left-align {
    justify-content: flex-start;
}

.text-center-align {
    justify-content: center;
    align-items: end;
}

.text-right-align {
    justify-content: flex-end;
}

/* Content Box */
.slider-content {
    max-width: 600px;
    width: 100%;
    padding: 2rem;
    background: transparent;
    backdrop-filter: none;
    border-radius: 0;
    animation: slideInContent 0.8s ease-out;
}

.slider-content.center {
    text-align: center;
    margin-top: 8rem !important;
    max-width: 800px;
}

.slider-content.left {
    margin-right: auto;
}

.slider-content.right {
    margin-left: auto;
}

/* Typography */
.slider-title {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    animation: slideInTitle 1s ease-out 0.2s both;
}

.slider-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: slideInSubtitle 1s ease-out 0.4s both;
}

/* Button Styles */
.slider-button {
    display: inline-block;
    padding: 12px 32px;
    background-color: #a99052;
    color: #6B2F1A;
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
    font-size: 14px;
    text-decoration: none;
    border: none;
    border-radius: 0;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    animation: slideInButton 1s ease-out 0.6s both;
    position: relative;
    overflow: hidden;
}

.slider-button:hover {
    background-color: rgba(169, 144, 82, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    color: #6B2F1A;
    text-decoration: none;
}

.slider-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(169, 144, 82, 0.3);
}

.slider-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.slider-button:hover::before {
    left: 100%;
}

/* FIXED: Custom Navigation - Complete fix for underline issue */
.carousel-control-custom {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 50;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    text-decoration: none !important; /* Force no text decoration */
    transition: all 0.3s ease;
    opacity: 1;
    cursor: pointer;
    /* FIXED: Remove all default link styling */
    outline: none !important;
    box-shadow: none;
}

/* FIXED: Remove underline on all states */
.carousel-control-custom:link,
.carousel-control-custom:visited,
.carousel-control-custom:hover,
.carousel-control-custom:active,
.carousel-control-custom:focus {
    text-decoration: none !important;
    outline: none !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    color: #333 !important;
}

.carousel-control-custom:hover {
    background: rgba(255, 255, 255, 1) !important;
    opacity: 1;
    color: #333 !important;
    text-decoration: none !important;
    transform: translateY(-50%) scale(1.1);
    /* FIXED: Better hover shadow instead of underline */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

/* FIXED: Ensure focus state doesn't show underline */
.carousel-control-custom:focus {
    background: rgba(255, 255, 255, 1) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(169, 144, 82, 0.3) !important;
    text-decoration: none !important;
}

/* FIXED: Active state styling */
.carousel-control-custom:active {
    background: rgba(245, 245, 245, 1) !important;
    transform: translateY(-50%) scale(0.95);
    text-decoration: none !important;
    outline: none !important;
}

.carousel-control-custom.left {
    left: clamp(0.5rem, 3vw, 1.5rem);
}

.carousel-control-custom.right {
    right: clamp(0.5rem, 3vw, 1.5rem);
}

/* FIXED: Icon styling to prevent underlines */
.carousel-control-custom i {
    font-size: 20px;
    display: block;
    line-height: 1;
    text-decoration: none !important;
    border: none !important;
    outline: none !important;
}

/* FIXED: Prevent any pseudo-elements from creating lines */
.carousel-control-custom::before,
.carousel-control-custom::after,
.carousel-control-custom i::before,
.carousel-control-custom i::after {
    text-decoration: none !important;
    border-bottom: none !important;
    border-top: none !important;
}

/* Progress Bar */
.progress-bar-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 20;
}

.progress-bar {
    height: 100%;
    background: white;
    width: 0%;
    transition: width 0.1s ease-out;
}

/* Custom Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    z-index: 30;
    display: flex;
    list-style: none;
    padding: 0;
}

.carousel-indicators li {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    margin: 0 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    /* FIXED: Remove any default styling that might cause lines */
    outline: none !important;
    text-decoration: none !important;
}

.carousel-indicators li:hover,
.carousel-indicators li:focus,
.carousel-indicators li:active {
    outline: none !important;
    text-decoration: none !important;
    border: none !important;
}

.carousel-indicators li.active {
    background: white;
    transform: scale(1.2);
}

/* Override Bootstrap's default carousel transitions */
.carousel-item.carousel-item-next,
.carousel-item.carousel-item-prev,
.carousel-item.carousel-item-left,
.carousel-item.carousel-item-right {
    transform: none !important;
}

.carousel-item.carousel-item-next:not(.carousel-item-left),
.carousel-item.carousel-item-prev:not(.carousel-item-right) {
    opacity: 0;
}

/* Ensure smooth hardware acceleration */
.hero-slider .carousel-item {
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    -ms-transform: translateZ(0);
    -o-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    -ms-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Loading State */
.slider-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 600px;
    background: linear-gradient(to right, #e5e7eb, #d1d5db);
    animation: pulse 2s infinite;
}

.slider-loading img {
    width: 160px;
    height: 160px;
    object-fit: contain;
    margin-bottom: 24px;
}

.slider-loading-text {
    color: #6b7280;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
}

/* Animations */
@keyframes slideInContent {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInTitle {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInSubtitle {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInButton {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* No Sliders State */
.no-sliders-content {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 600px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    text-align: center;
    padding: 0 1.5rem;
}

.no-sliders-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: bold;
    color: #333;
    margin-bottom: 1rem;
}

.no-sliders-content p {
    font-family: 'Poppins', sans-serif;
    font-size: 1.125rem;
    color: #666;
    margin-bottom: 2rem;
    max-width: 600px;
}

/* FIXED: Global override to prevent any underlines on navigation elements */
a.carousel-control-custom,
button.carousel-control-custom,
.carousel-control-custom {
    text-decoration: none !important;
    border-bottom: none !important;
    text-underline-offset: unset !important;
    text-decoration-line: none !important;
    text-decoration-style: none !important;
    text-decoration-color: transparent !important;
}

/* Additional fix for WebKit browsers */
.carousel-control-custom::-webkit-any-link {
    text-decoration: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-slider {
        height: 500px;
    }
    
    .slider-content {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .slider-content.center {
        margin-top: 4rem;
    }
    
    .slider-title {
        font-size: 2.5rem;
    }
    
    .slider-subtitle {
        font-size: 1rem;
    }
    
    .carousel-control-custom {
        width: 40px;
        height: 40px;
        opacity: 0.9;
    }
    
    .carousel-control-custom i {
        font-size: 16px;
    }
    
    .slider-button {
        padding: 10px 24px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 400px;
    }
    
    .slider-content {
        padding: 1rem;
        margin: 0.5rem;
    }
    
    .slider-title {
        margin-bottom: 1rem;
        font-size: 2rem;
    }
    
    .slider-subtitle {
        margin-bottom: 1.5rem;
        font-size: 0.875rem;
    }
    
    .carousel-control-custom {
        width: 36px;
        height: 36px;
    }
    
    .carousel-control-custom.left {
        left: 10px;
    }
    
    .carousel-control-custom.right {
        right: 10px;
    }
}

/* Fallback for older browsers */
@supports not (backdrop-filter: blur(4px)) {
    .carousel-control-custom {
        background: rgba(255, 255, 255, 0.9);
    }
}