.memories {
    background-color: #1b1b3a;
    color: #ffffff;
    padding: 2rem;
    padding-top: 6rem;
    text-align: center;
}

.memories .heading h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.memories .heading h3 {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 2rem;
}

/* Carousel styling */
.carousel-container {
    position: relative;
    overflow: hidden;
    max-width: 100%;
    margin: 0 auto;
    border-radius: 10px;
}

.carousel-slide {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.carousel-slide img {
    width: 100%;
    object-fit: cover;
}

/* Arrow buttons */
.arrow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #ffb703;
    color: #1b1b3a;
    border: none;
    border-radius: 50%;
    padding: 0.5rem;
    cursor: pointer;
    z-index: 10;
    font-size: 1.5rem;
    transition: background-color 0.3s ease;
}

.arrow-btn:hover {
    background-color: #ff9500;
}

.arrow-btn.left {
    left: 1rem;
}

.arrow-btn.right {
    right: 1rem;
}

/* Dots styling */
.dots-container {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.dot {
    height: 10px;
    width: 10px;
    margin: 0 5px;
    background-color: #ffffff;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    transform: scale(0.8); /* Reduce size when not active */
}

.dot.active {
    background-color: #ffb703;
    transform: scale(1.2); /* Increase size when active */
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .memories .heading h1 {
        font-size: 2rem;
    }

    .memories .heading h3 {
        font-size: 1rem;
    }

    .arrow-btn {
        font-size: 1.2rem;
        padding: 0.4rem;
    }

    .dots-container {
        margin-top: 0.5rem;
    }

    .dot {
        height: 10px;
        width: 10px;
    }

    .carousel-slide img {
        max-height: 300px;
    }
}

@media (max-width: 480px) {
    .memories .heading h1 {
        font-size: 1.8rem;
    }

    .memories .heading h3 {
        font-size: 0.9rem;
    }

    .arrow-btn {
        font-size: 1rem;
        padding: 0.3rem;
    }

    .dot {
        height: 8px;
        width: 8px;
    }

    .carousel-slide img {
        max-height: 200px;
    }
}
