/* Custom Hero Slider Styles */
.hero-slider {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slides-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.slide-content {
    position: relative;
    z-index: 10;
    width: 100%;
    padding: 0 50px; /* Controls distance from screen edge */
}

.content-wrapper {
    max-width: 600px; /* Control content width */
    /* Content aligns to the left of the screen, not parent */
}

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

.slide-description {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 30px;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    animation: slideInUp 1s ease-out 0.3s both;
}

.slide-button {
    display: inline-block;
    padding: 15px 40px;
    background: #333;
    color: #fff !important;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border-radius: 5px;
    animation: slideInUp 1s ease-out 0.6s both;
}

.slide-button:hover {
    background: #555;
    color: #fff !important;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Navigation arrows */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 20;
    border-radius: 5px;
}

.slider-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.slider-nav:focus {
    outline: none;
    color: #fff;
}

.slider-nav.prev {
    left: 30px;
}

.slider-nav.next {
    right: 30px;
}

/* Dots indicator */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50px; /* Align with content */
    display: flex;
    gap: 10px;
    z-index: 20;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot:focus {
    outline: none;
}

.dot.active,
.dot:hover {
    background: #fff;
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .slide-content {
        padding: 0 20px;
    }

    .slide-title {
        font-size: 2.5rem;
    }

    .slide-description {
        font-size: 1.2rem;
    }

    .slider-nav {
        display: none; /* Hide arrows on mobile */
    }

    .slider-dots {
        left: 50%;
        transform: translateX(-50%);
        bottom: 20px;
    }

    .hero-slider {
        height: 70vh;
        min-height: 500px;
    }
}

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

    .slide-description {
        font-size: 1rem;
    }

    .slide-button {
        padding: 12px 25px;
        font-size: 0.9rem;
    }

    .hero-slider {
        height: 60vh;
        min-height: 450px;
    }
}

/* Additional responsive adjustments */
@media (min-width: 1200px) {
    .slide-content {
        padding: 0 100px; /* More padding on larger screens */
    }
    
    .content-wrapper {
        max-width: 700px;
    }
}

/* Animation delays for better staggered effect */
.slide.active .slide-title {
    animation-delay: 0.2s;
}

.slide.active .slide-description {
    animation-delay: 0.5s;
}

.slide.active .slide-button {
    animation-delay: 0.8s;
}
