/* =========================================================
   1. HEADER & OUTER CONTAINER GAP FIX
   ========================================================= */
header, 
.header, 
nav, 
.navbar,
.header-wrapper,
.top-header {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

#header-img,
#header-img.the-company-page-slider,
.the-company-page-slider {
    margin-top: 0 !important;
    padding-top: 0 !important;
    font-size: 0 !important;
    line-height: 0 !important;
    display: block !important;
    clear: both !important;
    width: 100% !important;
    position: relative;
    overflow: hidden;
}

/* =========================================================
   2. MAIN SLIDER WRAPPER & RESET
   ========================================================= */
.responsive-slider {
    width: 100% !important;
    position: relative;
    z-index: 1; /* Fixed z-index -1 layer issue */
    overflow: hidden;
    margin: 0 !important;
    padding: 0 !important;
    line-height: normal !important;
}

.responsive-slider [data-animate] {
    opacity: 0;
}

.responsive-slider,
.responsive-slider .slides,
.responsive-slider .slides ul,
.responsive-slider .slides ul li,
.responsive-slider .slide-body {
    margin-top: 0 !important;
    padding-top: 0 !important;
    line-height: normal;
}

.responsive-slider .slides {
    position: relative;
    overflow: hidden;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.responsive-slider .slides ul {
    list-style-type: none !important;
    padding: 0 !important;
    margin: 0 !important;
    white-space: nowrap;
    font-size: 0;
    width: 100%;
}

.responsive-slider .slides ul li {
    display: inline-block;
    width: 100% !important; /* Force Full Slide Width */
    max-width: 100%;
    vertical-align: top;
    margin: 0 !important;
    padding: 0 !important;
}

.responsive-slider .slides ul li .slide-body {
    display: block;
    position: relative;
    width: 100% !important;
    max-width: 100%;
    font-size: 14px; /* Restored font size for slider contents */
    overflow: hidden;
    margin: 0 !important;
    padding: 0 !important;
}

/* =========================================================
   3. IMAGE SCALING & ZERO SPACING
   ========================================================= */
.responsive-slider .slides ul li .slide-body img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    object-fit: cover;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

/* =========================================================
   4. CAPTIONS ALIGNMENT FIX (PREVENT TEXT CUT-OFF)
   ========================================================= */
.responsive-slider .slides ul li .slide-body .caption {
    position: absolute;
    color: #fff;
    text-shadow: 0px 1px 0px #000000;
}

.responsive-slider .slides ul li .slide-body .caption.header {
    top: 40%;
    left: 8% !important; /* Proper left boundary spacing */
    background: none;
    width: auto;
    z-index: 5;
}

.responsive-slider .slides ul li .slide-body .caption.header h2 {
    font-size: 32px;
    background: rgba(0, 0, 0, 0.4);
    padding: 10px 20px;
    text-transform: capitalize;
    font-family: 'helvetica_neueExultraLt', sans-serif;
    text-shadow: 0px 0px 5px rgba(0, 0, 0, 1);
    font-weight: normal;
    display: inline-block;
    margin: 0;
}

.responsive-slider .slides ul li .slide-body .caption.header p {
    font-size: 18px;
    background: rgba(0, 0, 0, 0.4);
    text-shadow: 0px 0px 5px rgba(0, 0, 0, 1);
    line-height: 20px;
    font-family: 'helvetica_neueExultraLt', sans-serif;
    padding: 10px;
    margin-top: 5px;
}

.responsive-slider .slides ul li .slide-body .caption.header h2 i {
    font-size: 35px;
}

/* =========================================================
   5. CONTROLS & PAGINATION
   ========================================================= */
.responsive-slider .slider-control {
    position: absolute;
    font-size: 20px;
    color: #000;
    top: 50%;
    transform: translateY(-50%);
    background-color: #fff;
    padding: 10px;
    z-index: 10;
}

.responsive-slider .slider-control.left {
    left: 0;
    border-radius: 0px 6px 6px 0px;
}

.responsive-slider .slider-control.right {
    right: 0;
    border-radius: 6px 0px 0px 6px;
}

.responsive-slider .pages {
    position: absolute;
    bottom: 5%;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 10;
}

.responsive-slider .pages .page {
    display: inline-block;
    color: transparent;
    width: 100px;
    height: 10px;
    border: 1px solid #fff;
    border-radius: 50%;
    opacity: 0.9;
    margin: 0 3px;
}

.responsive-slider .pages .page.active {
    opacity: 1;
    background: #fff;
}

/* =========================================================
   6. OVERRIDE CLASSES & MEDIA QUERIES
   ========================================================= */
.custom-aclass-slider {
    position: relative !important;
    right: 0 !important; /* Disabled negative positioning bug */
}

@media (min-width: 481px) and (max-width: 767px) {
    .responsive-slider .slides ul li .slide-body .caption.header h2 {
        font-size: 25px;
    }
    .responsive-slider .slides ul li .slide-body .caption.header h2 i {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .responsive-slider .slides ul li .slide-body .caption.header h2 {
        font-size: 16px;
        padding: 5px 10px;
    }
    .responsive-slider .slides ul li .slide-body .caption.header h2 i {
        font-size: 14px;
    }
    .responsive-slider .slider-control.left,
    .responsive-slider .slider-control.right {
        display: none;
    }
}