﻿.slider-container {
    width: 97%;
    margin: 0 auto;
    margin-top: 20px;
    background-color: #21aa9a;
}

.item-slide {
    position: relative;
    height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat; /* don’t repeat the image */
    color: white;
}

.slide-content {
    position: absolute;
    bottom: 40px;
    left: 40px;
    max-width: 500px;
}

/* Start hidden */
.animated {
    opacity: 0;
}

/* Headings */
.slide-heading1 {
    font-size: 2rem;
    font-weight: bold;
    animation-duration: 1s;
    animation-fill-mode: forwards;
    color: black;
}

.slide-heading2 {
    font-size: 1.5rem;
    margin-top: 10px;
    animation-duration: 1s;
    animation-fill-mode: forwards;
    color: black;
}

/* Button */
.slide-button {
    margin-top: 20px;
    display: inline-block;
    padding: 10px 20px;
    background: #21aa9a;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    animation-duration: 1s;
    animation-fill-mode: forwards;
    transition: color 0.3s ease, background 0.3s ease;
}

    .slide-button:hover {
        color: white;
        background: #1d998c;
    }

/* Animation classes */
.fadeInDown {
    animation-name: fadeInDown;
}

.fadeInUp {
    animation-name: fadeInUp;
}

.zoomIn {
    animation-name: zoomIn;
}

/* Keyframes */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ✅ Responsive adjustments for tablets and mobiles */
@media (max-width: 768px) {
    .item-slide {
        height: 400px;
    }

    .slide-content {
        left: 20px;
        bottom: 20px;
        max-width: 90%;
    }

    .slide-heading1 {
        font-size: 1.5rem;
    }

    .slide-heading2 {
        font-size: 1.2rem;
    }

    .slide-button {
        font-size: 0.9rem;
        padding: 8px 16px;
    }
}

@media (max-width: 480px) {
    .item-slide {
        height: 300px;
    }

    .slide-heading1 {
        font-size: 1.2rem;
    }

    .slide-heading2 {
        font-size: 1rem;
    }

    .slide-button {
        font-size: 0.85rem;
        padding: 6px 14px;
    }
}
