/*Slider container - consistent ratio */
.slider-relative {
    position: relative;
    overflow: hidden;
    margin-top: 71px;
    width: 100%;
    max-width: 1280px;
    aspect-ratio: 16 / 9;   /* modern way to keep fixed ratio */
    margin-left: auto;
    margin-right: auto;
}

/* Each slider item fixed */
.items li {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Images always fill li */
.items li img {
     width: 100%;
    height: 100%;
    object-fit: cover;   /* crop edges without distortion */
    display: block;
    border-radius: 8px;  /* optional, for smooth corners */
}

/* Banner overlays above image */
.items li .banner {
    position: absolute;
    bottom: 20%;         /* you can adjust this */
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 2;          /* above image */
    color: #fff;
    font-family: 'Pathway Gothic One', sans-serif;
    text-transform: uppercase;
}

.items li .banner div {
    font-size: 28px;
    line-height: 65px;
    color: #263555;
    padding: 4px 19px 6px 19px;
    background: #fff;
    display: inline-block;
}

.items li .banner span {
    padding: 3px 15px 7px 19px;
    display: inline-block;
    font-size: 43px;
    line-height: 64px;
    background: #38afe5;
}
/* All slider images scale consistently */
.slider img {
    width: 100%;         /* fit to slider width */
   height: 650px;      /* fixed height for consistency */
    object-fit: cover;   /* crop without distortion */
    border-radius: 8px;  /* optional – smooth edges */
}

/* Keep slider block positioned correctly */
.slider-block,
.slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
}

/* Navigation buttons */
a.prev, a.next {
    width: 56px;
    background: url(../images/prevnext.png) 0 0 no-repeat;
    height: 112px;
    position: absolute;
    display: block;
    bottom: 49px;
    z-index: 999;
    left: 45px;
}
a.next {
    left: 101px;
    width: 57px;
    background-position: right bottom;
}
a.next:hover, a.prev:hover {
    opacity: 0.8;
}

/* Banner styling */
.slider .banner{ top: 274px;
     left: 0px; position: absolute;
      font-family: 'Pathway Gothic One', sans-serif;
       color: #fff; text-transform: uppercase;
     }

.slider .banner div {
    font-size: 28px;
    line-height: 65px;
    color: #263555;
    padding: 4px 19px 6px 19px;
    background: #fff;
    display: inline-block;
}

.slider .banner span {
    padding: 3px 15px 7px 19px;
    display: inline-block;
    font-size: 43px;
    line-height: 64px;
    background: #38afe5;
}
