@import "./theme.css";

.homepage-swiper {
    width: 100%;
    max-width: 1920px;
    height: 550px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.swiper-slide {
    width: 100%;
    height: 100%;
    opacity: 0 !important; /* Start with hidden slides */
    transition: opacity 1s ease-in-out !important; /* Fade transition */
}

.swiper-slide-active {
    opacity: 1 !important; /* Only active slide is visible */
}

.slider-item {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Align content to left */
    color: white;
    position: relative;
    padding-left: 10%; /* Add left padding */
}

/* Gradient overlay from left */
.slider-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slider-content {
    max-width: 800px;
    padding: 40px;
    position: relative;
    z-index: 2;
    text-align: left; /* Ensure text is left-aligned */
    animation: fadeIn 2s ease-in-out; /* Fade animation for content */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.slider-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px; 
    font-weight: 700;
    color: #fff;
    text-transform: capitalize;
}

.slider-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    line-height: 1.6;
    color: #fff;
}

.slider-buttons {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    z-index: 3;
}

.slider-buttons a {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 1rem;
    min-width: 150px;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(-28deg, #0000FF 0%, #ED1C24 180%);
    color: white;
    border: none; 
    position: relative;
    z-index: 1;
    overflow: hidden;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary:hover {
    color: #0000FF;
    background:#fff;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border-radius: 12px;
    border: 1px solid white;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: white;
    color: #333;
}

/* Pagination styling */
.swiper-pagination {
    bottom: 30px !important;
}

.swiper-pagination-bullet {
    width: 6px;
    height: 6px;
    background: white;
    opacity: 0.7;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--ln-button-color);
    transform: scale(1.3);
}

/* Navigation buttons */
.swiper-button-next,
.swiper-button-prev {
    color: white;
    padding: 50px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 14px;
    font-weight: bold;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .slider-content {
        max-width: 600px;
        padding: 30px;
    }
    
    .slider-content h2 {
        font-size: 2.5rem;
    }
    
    .slider-content p {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .homepage-swiper {
        height: 500px;
    }
    
    .slider-item {
        padding-left: 5%;
        justify-content: center;
        text-align: center;
    }
    
    .slider-content {
        text-align: center;
        max-width: 90%;
        padding: 20px;
    }
    
    .slider-content h2 {
        font-size: 2rem;
    }
    
    .slider-content p {
        font-size: 1rem;
    }
    
    .slider-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .slider-buttons a {
        width: 100%;
        min-width: auto;
    }
}

@media (max-width: 480px) {

    .slider-content {
        text-align: center;
        padding: 25px;
    }
    .homepage-swiper {
        height: 500px;
    }
    
    .slider-content h2 {
        font-size: 1.8rem;
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        width: 10px;
        height: 10px;
        padding: 10px;
    }
    
    .swiper-button-next::after,
    .swiper-button-prev::after {
        font-size: 10px;
    }

    .slider-buttons a {
        padding: 8px 16px;
        font-size: 12px;
        width: auto;
    }
    .swiper-pagination{
        display: none;
    }
}