.youth-section {
    height: calc(100vh - 150px);
    width: 100%;
    position: relative; /* This anchors absolutely positioned children */
    margin-bottom: 50px;
}

.youth-wrapper, .youth-slide {
    width: 100%;
    height: 100%;
}

.youth-slide{
    overflow: hidden;
    position: relative; /* Added */

}

.youth-slide::before{
    content: "";
    position: absolute;
    height:100%;
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index:2;
}

.youth-slide .image {
    height: 100%;
    width: 100%;
    object-fit: cover;
    z-index:1;

}

.youth-slide .image-data{
    position: absolute;
    top: 75%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: justify;
    width: 80%;
    z-index: 3;
    padding:20px 40px;
    margin-right: 40px;
}

.image-data {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px;
    gap: 120px; /* Optional spacing between columns */
}

.text-content {
    flex: 1;
}

.text-content .text {
    display: block; /* makes span behave like a div so padding works fully */
    line-height: 1.6;
}


.button-content {
    flex-shrink: 0;
}

.image-data span.text{
    font-size: 14px;
    font-weight: 400;
    color: #fff;
}

.image-data h2 {
    font-size: 40px;
    font-weight: 600;
    color: #fff;
}

a.button{
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    color: #fff;
    background: grey;
    text-decoration: none;
    margin-top: 30px;
    transition: all 0.3s ease;
}

a.button:hover {
    background: #ebc238;
    font-weight: 400;
    color: #fff;
    transform: translateY(-3px);

}

.swiper-button-next,
.swiper-button-prev {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    height: 40px !important;
    width: 40px !important;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    transform: translateY(calc(-50% - 5px)); /* Moves up 3px from center */
    background: rgba(255, 255, 255, 0.4);
}


.swiper-button-next { 
    right: 50px!important;
}
.swiper-button-prev{
    left: 50px!important;

}

/* Optional: Customize arrow icons */
.swiper-button-prev::before,
.swiper-button-prev::after,
.swiper-button-next::before,
.swiper-button-next::after {
    font-size: 16px!important;
    color: #fff;
}

.swiper-pagination-bullet{
    opacity: 1;
    height: 13px;
    width: 12px;
    background-color: #fff !important;  
}

.swiper-pagination-bullet-active{
  background-color: #ebc238 !important;
}

@media screen and (max-width: 768px) and (max-width: 1024px){

    .carousel {
        margin-top: 12px; /* removes the 82px top margin */

    }
.swiper-button-next,
.swiper-button-prev{ 
    visibility: hidden;
    }

    .image-data {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px;
    gap: 30px; /* Optional spacing between columns */
}

  .swiper-pagination-bullet {
    visibility: visible;
  }


    .image-data h2 {
        font-size: 25px;
    }
    .image-data span.text {
        font-size: 10px;
    }
    a.button {
        padding: 8px 16px;
        font-size: 14px;
    }
}