/* Hero Slider Styles */
.hero-slider {
    position: relative;
    height: 800px;
    min-height: 500px;
    overflow: hidden;
    padding: 0;
}

/* Mobile header adjustment */
@media (max-width: 768px) {
    .hero-slider {
        /* Remove margin-top to eliminate gap */
    }
}

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

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateX(30px); /* Starting position off-screen */
    transition: all 1s ease;
    z-index: 0;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
    transform: translateX(0); /* Move to center when active */
}

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

.slide-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3));
}

.slide-content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 5%;
    color: white;
    z-index: 2;
}

.slide-text {
    max-width: 700px;
    margin-bottom: 8rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease 0.5s;
}

.slide.active .slide-text {
    opacity: 1;
    transform: translateY(0);
}

.slide-text h1 {
    font-size: 5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 30px;
    color: white;
}

.slide-text h1 .highlight {
    color: #FFC107; /* Yellow */
    display: inline;
}

.slide-text h1 .secondary-text {
    font-size: 0.5em; /* Half the size of the parent h1 */
    display: block;
    font-weight: 600;
}

.slide-text h1 .dark {
    color: #232323; /* Dark gray/black */
}

.hero-buttons {
    margin-top: 30px;
}

.hero-buttons .primary-btn,
.slide-text .btn.primary-btn {
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    background-color: #FFC107;
    border-color: #FFC107;
    color: #232323;
    display: inline-block;
}

.hero-buttons .primary-btn:hover,
.slide-text .btn.primary-btn:hover {
    background-color: #FFB000;
    border-color: #FFB000;
}

.hero-caption {
    position: absolute;
    bottom: 160px;
    right: 5%;
    text-align: right;
    z-index: 2;
    padding: 0;
    width: auto;
    opacity: 0;
    transform: translateX(30px);
    transition: all 1s ease 0.7s;
}

.slide.active .hero-caption {
    opacity: 1;
    transform: translateX(0);
}

.hero-caption p {
    color: white;
    background-color: rgba(0, 0, 0, 0.25);
    display: inline-block;
    padding: 15px 30px;
    border-radius: 4px;
    margin: 0;
    /*max-width: 800px;*/
    line-height: 1.5;
    text-align: center;
    font-size: 1.5rem;
    float: right;
}

.slider-nav {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.slider-prev,
.slider-next {
    background: rgba(0, 0, 0, 0.3);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.slider-prev:hover,
.slider-next:hover {
    background: rgba(0, 0, 0, 0.5);
}

.slider-dots {
    display: flex;
    gap: 10px;
    margin: 0 15px;
}

.slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
    border: none;
    padding: 0;
}

.slider-dots .dot.active {
    background-color: white;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .slide-text h1 {
        font-size: 4.5rem;
    }
    
    .hero-caption {
        bottom: 160px;
        right: 5%;
    }
    
    .hero-caption p {
        max-width: 400px;
        padding: 12px 25px;
    }
}

@media (max-width: 1024px) {
    .hero-slider {
        height: 700px;
    }

    .slide-text h1 {
        font-size: 4rem;
    }
    
    .hero-caption p {
        font-size: 1rem;
        padding: 12px 25px;
        max-width: 350px;
    }
    
    .hero-buttons .primary-btn, 
    .slide-text .btn.primary-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .hero-caption {
        bottom: 140px;
        right: 5%;
    }
}

@media (max-width: 992px) {
    .hero-slider {
        height: 650px;
    }

    .slide-text h1 {
        font-size: 3.5rem;
    }
    
    .hero-caption {
        bottom: 130px;
        right: 5%;
    }
    
    .hero-caption p {
        max-width: 320px;
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .hero-slider {
        height: 600px;
    }
    
    .slide-text h1 {
        font-size: 3rem;
    }
    
    .hero-caption p {
        font-size: 0.9rem;
        padding: 10px 20px;
        max-width: 280px;
    }
    
    .hero-caption {
        bottom: 120px;
        right: 5%;
    }
    
    .slider-dots .dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 576px) {
    .hero-slider {
        height: 550px;
    }
    
    .slide-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-caption {
        bottom: 100px;
        right: 5%;
    }
    
    .hero-caption p {
        font-size: 0.85rem;
        padding: 8px 15px;
        max-width: 250px;
    }
    
    .hero-buttons .primary-btn, 
    .slide-text .btn.primary-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .slider-prev,
    .slider-next {
        width: 32px;
        height: 32px;
    }
    
    .slider-dots {
        gap: 8px;
        margin: 0 10px;
    }
    
    .slider-dots .dot {
        width: 8px;
        height: 8px;
    }
}