/* CSS Slider */
.slider {
    height: 80vh;
    position: relative;
}

.slider .list .item {
    position: absolute;
    inset: 0 0 0 0;
    overflow: hidden;
    opacity: 0;
    transition: 0.5s;
}

.slider .list .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider .list .item::after {
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    bottom: 0;
    background-image: linear-gradient(to top, #000000 10%, transparent);
}

.slider .list .item .content {
    position: absolute;
    top: 30%; /* Adjusted for better positioning */
    width: max-content;
    max-width: 70%;
    z-index: 1;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

/* Alignments */
.align-left {
    left: 10px; /* Added a 10px gap from the left */
    align-items: flex-start;
}

.align-center {
    left: 50%;
    transform: translateX(-50%);
    align-items: center;
}

.align-right {
    right: 10px; /* Added a 10px gap from the right */
    align-items: flex-end;
    text-align: right; /* Ensures text is right-aligned */
}

.slider .list .item .content h2,
.slider .list .item .content h3,
.slider .list .item .content p,
.slider .list .item .content .button {
    margin: 0 10px; /* Ensure all elements have a margin */
}

.slider .list .item .content h2 {
    font-size: 6rem; /* Increased font size for heading */
    margin-bottom: 10px; /* Adjusted margin for spacing */
    color: #eee;
    line-height: 6rem;
}

.slider .list .item .content h3 {
    font-size: 3rem; /* Decreased font size for subheading */
    margin-bottom: 10px; /* Adjusted margin for spacing */
    color: #ccc;
    line-height: 3rem;
}

.slider .list .item .content p {
    margin-bottom: 1rempx; /* Added margin for paragraph spacing */
    font-size: 1.5rem;
    line-height: 2rem;
}

.slider .list .item .content .button {
    margin-top: 10px; /* Added margin for button spacing */
}

.slider .list .item .content .button a {
    display: inline-block;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease; 
    background-color: #eee5;
    border: none;
    border-radius: 5px;
    color: #eee;
    transition: 0.5s;
}

.slider .list .item .content .button a:hover {
    background-color: #eee;
    color: black;
}

.slider .list .item.active {
    opacity: 1;
    z-index: 10;
}

@keyframes showContent {
    to {
        transform: translateY(0);
        filter: blur(0);
        opacity: 1;
    }
}

.slider .list .item.active h2,
.slider .list .item.active h3,
.slider .list .item.active p {
    transform: translateY(30px);
    filter: blur(20px);
    opacity: 0;
    animation: showContent 0.5s 0.7s ease-in-out 1 forwards;
}

.slider .list .item.active h2 {
    animation-delay: 1s;
}

.slider .list .item.active h3 {
    animation-delay: 1.2s;
}

.slider .list .item.active p {
    animation-duration: 1.3s;
    animation-delay: 1s;
}

/* Thumbnails and Arrows */
.thumbnail-wrapper {
    position: absolute;
    bottom: 20px;
    z-index: 11;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
    justify-content: center;
}

.thumbnail {
    display: flex;
    gap: 20px; /* Ensure there is a gap between thumbnails */
    width: auto;
    height: 100px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.thumbnail::-webkit-scrollbar {
    width: 0;
}

.thumbnail .item {
    width: 100px;
    height: 140px;
    filter: brightness(0.7);
    transition: 0.5s;
    flex-shrink: 0;
    position: relative;
}

.thumbnail .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.thumbnail .item.active {
    filter: brightness(1);
}

.thumbnail .item .content {
    position: absolute;
    bottom: 8px; /* Adjusted positioning */
    left: 8px;
    right: 8px;
    font-size: 12px;
    text-align: center;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Arrows */
.thumbnail-wrapper button {
    background-color: #eee5;
    border: none;
    font-family: monospace;
    width: 40px;
    height: 40px;
    border-radius: 5px;
    font-size: x-large;
    color: #eee;
    transition: 0.5s;
    margin: 0 20px; /* Ensure there is a margin between buttons and thumbnails */
}

.thumbnail-wrapper button:hover {
    background-color: #eee;
    color: black;
}

@media screen and (max-width: 768px) {
    .thumbnail {
        height: 120px;
        padding: 0 10px;
    }

    .thumbnail .item {
        width: 80px;
        height: 112px;
    }

    .slider .list .item .content h2 {
        font-size: 2rem; /* Adjusted for smaller screens */
        line-height: 2rem;
    }

    .slider .list .item .content h3 {
        font-size: 1.5rem; /* Decreased font size for subheading */
        margin-bottom: 10px; /* Adjusted margin for spacing */
        color: #ccc;
        line-height: 1,5rem;
    }
    
    .slider .list .item .content p {
        margin-bottom: 1rempx; /* Added margin for paragraph spacing */
        font-size: 1rem;
        line-height: 1rem;
    }
}


@media screen and (max-width: 480px) {
    .thumbnail {
        height: 100px;
    }

    .thumbnail .item {
        width: 60px;
        height: 84px;
    }

    .thumbnail .item .content {
        font-size: 10px;
    }

    .slider .list .item .content h2 {
        font-size: 40px;
    }

    .slider .list .item .content h3 {
        font-size: 1.5rem; /* Decreased font size for subheading */
        margin-bottom: 10px; /* Adjusted margin for spacing */
        color: #ccc;
        line-height: 1.5rem;
    }
    
    .slider .list .item .content p {
        margin-bottom: 1rempx; /* Added margin for paragraph spacing */
        font-size: 1rem;
        line-height: 1rem;
    }


}


