/* Essential Swiper layout CSS from Guide - Start */
.swiper-container {
  width: 100%;
  height: 100%; /* Added from guide */
  overflow: hidden;
  position: relative;
}

.swiper-wrapper {
  display: flex !important; /* Added !important to try and force it */
  width: 100%;
  height: 100%;
  transition-property: transform;
  box-sizing: content-box;
  flex-direction: row !important; /* Added !important and moved from .swiper-container-horizontal > .swiper-wrapper for directness */
}

.swiper-slide {
  flex-shrink: 0 !important; /* Added !important */
  width: 100%;
  height: 100%;
  position: relative;
}
/* Essential Swiper layout CSS from Guide - End */

/* HERO SLIDER CUSTOM STYLES */

.ltn__slider-style-custom .ltn__slide-one-active.swiper-container {
    overflow: hidden;
    width: 100%;
    /* Ensure position is relative if not already, for absolute positioned nav/pagination */
    position: relative; 
}


.ltn__slide-item-video-bg {
    position: relative;
    overflow: hidden;
}

.slide-video-background {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0; /* Ensure video is in the background */
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
    transition: 1s opacity;
}

/* Ensure content is above the video */
.ltn__slide-item-video-bg .ltn__slide-item-inner {
    position: relative;
    z-index: 1;
}
.ltn__slider-style-custom .ltn__slide-item-inner {
    padding: 150px 0; /* Adjust padding as needed */
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center; /* Vertically center content */
    min-height: 700px; /* Minimum height for the slider */
}

.ltn__slider-style-custom .slide-item-info-inner {
    background: rgba(255, 255, 255, 0.1); /* Semi-transparent white background */
    backdrop-filter: blur(10px); /* Glassmorphism effect */
    -webkit-backdrop-filter: blur(10px); /* Safari support */
    border-radius: 15px; /* Rounded corners */
    padding: 40px; /* Padding inside the glass box */
    border: 1px solid rgba(255, 255, 255, 0.2); /* Subtle border */
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37); /* Subtle shadow */
    max-width: 650px; /* Max width of the content box */
    margin-left: auto; /* Center the glassmorphism card */
    margin-right: auto; /* Center the glassmorphism card */
}

.ltn__slider-style-custom .slide-item-info-inner.ltn__slide-animation > * {
    animation-duration: 1.5s; /* Adjust animation speed */
}

.ltn__slider-style-custom .slide-sub-title {
    color: #ffffff; /* White text for better contrast on dark/image backgrounds */
    font-weight: 500;
}

.ltn__slider-style-custom .slide-sub-title img {
    margin-right: 8px;
    max-height: 20px; /* Adjust icon size */
}

.ltn__slider-style-custom .slide-title {
    color: #ffffff; /* White text */
    font-size: 52px; /* Adjust title font size */
    font-weight: 700; /* Rajdhani bold */
    line-height: 1.2;
}

.ltn__slider-style-custom .slide-brief p {
    color: #f0f0f0; /* Light grey text for readability */
    font-size: 16px; /* Adjust paragraph font size */
    line-height: 1.6;
}

.ltn__slider-style-custom .btn-wrapper .theme-btn-1 {
    background-color: var(--ltn__primary-color); /* Use theme secondary color */
    color: #fff;
}
.ltn__slider-style-custom .btn-wrapper .theme-btn-1:hover {
    background-color: var(--ltn__secondary-color); /* Use theme primary color on hover */
    color: var(--ltn__primary-color);
}

.ltn__slider-style-custom .btn-wrapper .btn-transparent {
    color: #fff;
    border-color: #fff;
}
.ltn__slider-style-custom .btn-wrapper .btn-transparent:hover {
    background-color: #fff;
    color: var(--ltn__primary-color);
}

/* Swiper Navigation Arrows - Comprehensive Fix from Guide */

/* CSS Reset for Arrows (adapted from Guide) */
.ltn__slider-style-custom .swiper-button-prev,
.ltn__slider-style-custom .swiper-button-next {
    /* Reset some positioning - guide had position: static, but we need absolute */
    margin: 0;
}

/* Arrow base styling (from Guide, adapted) */
.ltn__slider-style-custom .swiper-button-prev,
.ltn__slider-style-custom .swiper-button-next {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 100 !important; /* Guide used 100, we used 10. 100 is safer. */
    
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    
    background-color: rgba(255, 255, 255, 0.7) !important;
    color: var(--ltn__secondary-color) !important; /* Kept our variable, added !important */
    
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    
    opacity: 1 !important;
    visibility: visible !important;
    transition: all 0.3s ease; /* Kept our transition */
}

/* Position left arrow (from Guide) */
.ltn__slider-style-custom .swiper-button-prev {
    left: 20px !important;
    right: auto !important;
}

/* Position right arrow (from Guide) */
.ltn__slider-style-custom .swiper-button-next {
    right: 20px !important;
    left: auto !important;
}

/* Custom arrow icons using Font Awesome (using ::after as per our current setup) */
.ltn__slider-style-custom .swiper-button-prev::after,
.ltn__slider-style-custom .swiper-button-next::after {
    font-family: 'Font Awesome 5 Free' !important;
    font-weight: 900 !important;
    font-size: 18px !important;
    line-height: 1 !important; /* Ensure icon is not affected by button's line-height if any */
}

.ltn__slider-style-custom .swiper-button-prev::after {
    content: "\f053" !important; /* Left chevron */
}

.ltn__slider-style-custom .swiper-button-next::after {
    content: "\f054" !important; /* Right chevron */
}

.ltn__slider-style-custom .swiper-button-prev:hover,
.ltn__slider-style-custom .swiper-button-next:hover {
    background-color: var(--ltn__secondary-color);
    color: #fff;
}

/* Swiper Pagination Bullets */
.ltn__slider-style-custom .swiper-pagination {
    position: absolute;
    bottom: 20px; /* Adjust as needed */
    left: 50%;
    transform: translateX(-50%);
    z-index: 10; /* Ensure it's above slides */
    width: auto; /* Allow it to size based on content */
}
.ltn__slider-style-custom .swiper-pagination-bullet {
    margin: 0 5px !important; /* Add spacing between bullets */
    background-color: rgba(255, 255, 255, 0.7);
    opacity: 0.8;
    width: 10px;
    height: 10px;
    transition: all 0.3s ease;
}

.ltn__slider-style-custom .swiper-pagination-bullet-active {
    background-color: var(--ltn__secondary-color);
    opacity: 1;
    width: 12px; /* Make active bullet slightly larger */
    height: 12px;
}

/* Video Modal Styling */
.modal-content {
    background-color: #222; /* Dark background for modal */
    color: #fff;
    border-radius: 10px;
}
.modal-header {
    border-bottom: 1px solid #444;
}
.modal-header .btn-close {
    background-color: #fff; /* Ensure close button is visible */
}
.modal-title {
    color: var(--ltn__secondary-color);
}
.modal-body .ratio iframe {
    border-radius: 5px; /* Rounded corners for the video iframe */
}

/* Responsive Adjustments for Slider Content Box */
@media (min-width: 992px) {
    .ltn__slider-style-custom .slide-item-info-inner {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
    .ltn__slider-style-custom .slide-item-info {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }
    .ltn__slider-style-custom .btn-wrapper {
        text-align: center;
    }
}

@media (max-width: 991px) {
    .ltn__slider-style-custom .ltn__slide-item-inner {
        min-height: 600px;
        padding: 100px 0;
    }
    .ltn__slider-style-custom .slide-item-info-inner {
        padding: 30px;
        max-width: 550px;
    }
    .ltn__slider-style-custom .slide-title {
        font-size: 42px;
    }
}

@media (max-width: 767px) {
    .ltn__slider-style-custom .ltn__slide-item-inner {
        min-height: 500px;
        padding: 80px 0;
    }
    .ltn__slider-style-custom .slide-item-info-inner {
        padding: 20px;    /* Keep a reasonable padding */
        width: 90%;       /* Occupy 90% of the container width */
        max-width: none;  /* Ensure percentage width is not overridden by a pixel max-width from wider breakpoints */
        margin-left: auto;  /* Center the block */
        margin-right: auto; /* Center the block */
    }
    .ltn__slider-style-custom .slide-title {
        font-size: 32px;
    }
    .ltn__slider-style-custom .slide-brief p {
        font-size: 14px;
    }
    .ltn__slider-style-custom .btn-wrapper .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    .ltn__slider-style-custom .swiper-button-prev,
    .ltn__slider-style-custom .swiper-button-next {
        width: 35px;
        height: 35px;
    }
    .ltn__slider-style-custom .swiper-button-prev::after,
    .ltn__slider-style-custom .swiper-button-next::after {
        font-size: 16px;
    }
}

@media (max-width: 575px) {
    .ltn__slider-style-custom .ltn__slide-item-inner {
        min-height: 450px;
    }
    .ltn__slider-style-custom .slide-title {
        font-size: 28px;
    }
     .ltn__slider-style-custom .btn-wrapper {
        display: flex;
        flex-direction: column; /* Stack buttons vertically */
        align-items: flex-start; /* Align buttons to the start */
    }
    .ltn__slider-style-custom .btn-wrapper .btn {
        margin-bottom: 10px; /* Add space between stacked buttons */
        width: 100%; /* Make buttons full width of their container */
        text-align: center;
    }
    .ltn__slider-style-custom .btn-wrapper .btn:last-child {
        margin-bottom: 0;
    }
}
