.section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1000px;
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(to bottom, #ffffff, #f1f1f1); 
    background-color: #f9f9f9;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    transition: transform 1s ease, box-shadow 0.3s ease;
}

.section:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.slider-container {
    width: 45%;
    overflow: hidden;
    border-radius: 10px;
    position: relative;
    transition: all 0.3s ease;
}

.slider-container:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2); 
}

.slider {
    display: flex;
    transition: transform 0.5s ease-in-out; 
    width: 100%;
}

.slide {
    flex-shrink: 0;
    width: 100%; 
    height: auto; 
}

.slide, .slider-container img {
    object-fit: cover;
}

.btn-slide {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 12px;
    cursor: pointer;
    font-size: 24px;
    border-radius: 20%;
    transition: background-color 0.3s ease;
}

.btn-slide:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.prev { left: 15px; }
.next { right: 15px; }

.text-container {
    width: 45%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    background: linear-gradient(to bottom, #f5f5f5, #ffffff);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    margin-top: 20px;
}

.text-container:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}
h1.gallery-heading{
    margin-bottom: 10px;
    font-size: 32px;
}

.text-container p {
    font-size: 20px;
    margin-top: 70px;
}

@media (max-width: 1200px) {
    .slider {
        width: 80%; 
        margin: 0 auto; 
    }

    .text-container h1 {
        font-size: 1.3rem; 
    }

    .text-container p {
        font-size: 0.9rem; 
    }
}
.slide {width: 100%;}
@media (max-width: 992px) {
    .slider {
        width: 90%; 
    }

    .text-container h1 {
        font-size: 1.2rem; 
    }

}

@media (max-width: 768px) {
    .slider {
        width: 100%;
    }

    .text-container h1 {
        font-size: 1rem; 
    }

    .text-container p {
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .section {padding: 15px;}
        .text-container {
        margin: 10px 0;
    }
    .slider {
        width: 100%;
    }
    
    .text-container h1 {
        font-size: 1rem; 
    }

    .text-container p {
        font-weight: bold;
        font-size: 0.75rem; 
    }

    .btn-slide {
        padding: 8px; 
    }
}
