/* Main section background and layout */
.index_content_3 {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    background: linear-gradient(to right, #0f2027, #203a43, #2c5364);
    padding: clamp(2rem, 5vw, 3rem) clamp(1rem, 4vw, 2rem);
    color: white;
    gap: clamp(1rem, 3vw, 2rem);
}

/* Left text column */
.index_content_3_Content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.index_content_3_Content h1 {
    font-size: clamp(1.5rem, 4vw, 3.5rem);
    margin: 0;
    font-weight: 300;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.index_content_3_Content h2 {
    font-size: clamp(2rem, 5vw, 6rem);
    font-weight: 700;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    text-align: center;
    color: #ffd700;
}

/* Right images column */
.index_content_3_images {
    flex: 3;
}

/* Carousel styling */
.carousel-container {
    width: 100%;
    overflow-x: auto;
    padding-right: 1rem;
    position: relative;

    /* Hide scrollbar */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE 10+ */
}

.carousel-container::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Edge */
}


.carousel-slide {
    display: flex;
    gap: 1rem;
    transition: transform 0.5s ease-in-out;
}


.image-wrapper {
    flex: 0 0 calc((100% / 3) - 0.67rem);
    /* Adjust to balance 1rem gap */
    padding: 5px;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #111;
    border: 2px solid #fff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}



.image-wrapper:last-child {
    margin-right: 0;
    /* prevent overflow */
}

.image-wrapper img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

.image-caption {
    margin-top: 0.5rem;
    text-align: center;
    color: #ffd700;
    font-size: clamp(0.8rem, 1.5vw, 1.1rem);
    font-weight: 600;
    text-transform: uppercase;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.8);
    word-break: break-word;
}



/* -------------------- Mobile View -------------------- */
@media (max-width: 768px) {
    .index_content_3 {
        flex-direction: column;
        padding: clamp(1.5rem, 4vw, 2rem) clamp(0.5rem, 3vw, 1rem);
        align-items: flex-start;
    }

    .index_content_3_Content {
        width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        align-items: center;
    }


    .index_content_3_Content h1,
    .index_content_3_Content h2 {
        display: inline-block;
        white-space: nowrap;
        font-size: clamp(1rem, 5vw, 2.5rem);
        margin: 0.2rem 0;
    }

    .index_content_3_images {
        width: 100%;
        margin-top: 1rem;
    }

    .carousel-slide {
        display: flex;
    }

    .image-wrapper {
        flex: 0 0 50%;
        padding: clamp(0.2rem, 1vw, 0.3rem);
    }

    .image-wrapper img {
        border-radius: 6px;
    }

    .text-container {
        font-size: clamp(0.7rem, 2vw, 0.8rem);
    }


    .carousel-pagination {
        display: none !important;
    }
}




/* Pagination dots styling */
.carousel-pagination {
    position: relative;
    /* or static */
    display: flex;
    justify-content: center;
    /* centers flex items horizontally */
    gap: 10px;
    margin-top: 1rem;
    align-items: center;
    z-index: 10;
    /* Remove left and transform */
}

.carousel-pagination button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: background 0.3s ease;
    padding: 0;
}

.carousel-pagination button.active {
    background: #ffd700;
    /* gold */
}