.custom-bg-color-grey-1 {
    background-color: #f8f9fb;
}

.overlay-tertiary:before {
    background: var(--tertiary);
}

.custom-font-size-1 {
    font-size: 80px;
}

p {
    color: #999;
}

.custom-heading-1 {
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke-width: 0.5px;
    -webkit-text-stroke-color: var(--grey-500);
    white-space: nowrap;
    font-size: 80px;
    font-weight: bold;
    letter-spacing: 1px;
}

@media (max-width: 991px) {
    .custom-heading-1 {
        font-size: 50px;
    }
}

.custom-stroke-text-effect-1 {
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: var(--light);
    white-space: nowrap;
}

.custom-text-pos-1 {
    left: -80px;
}

.custom-text-pos-2 {
    right: -80px;
}

.custom-text-pos-3 {
    left: -10%;
    top: 45%;
}

.custom-el-pos-1 {
    margin-top: -160px;
}

.custom-el-pos-2 {
    margin-top: -73px;
}

.custom-el-pos-3 {
    margin-top: -73px;
}

.custom-drop-caps .custom-drop-caps-number {
    font-weight: bold;
    float: left;
    font-size: 90px;
    line-height: 90px;
    padding: 0;
    margin-right: 15px;
    margin-top: 0;
}

.custom-vr-1 {
    width: 6px;
    height: 70px;
}

@media (max-width: 991px) {
    #header .header-logo img {
        max-width: 245px;
        height: auto;
    }
}

.section-intro {
    background: url({{asset("templates/template_1/images/generic-1.png")}})
    no-repeat 12% 100%;
    min-height: 400px;
}

/* ========== CAROUSEL FIXES ========== */

/* Wrapper positioning - ensure proper layering */
.custom-carousel-1-wrapper {
    margin-top: -48px;
    margin-bottom: -100px;
    position: relative;
    z-index: 10; /* Increased z-index to go above slider */
    min-height: 350px;
}

@media (min-width: 992px) {
    .custom-carousel-1-wrapper {
        margin-top: -143px;
        min-height: 400px;
        z-index: 15; /* Even higher on desktop */
    }
}

/* Ensure the left column (col-lg-4) has proper height and z-index */
.custom-carousel-1-wrapper .col-lg-4 {
    display: flex;
    align-items: stretch;
    position: relative;
    z-index: 12;
}

/* Title section - ensure it appears above slider */
.custom-carouse-1-title {
    height: 40%; /* Increased from 60% */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px; /* Increased min-height */
    position: relative;
    flex: 1;
    z-index: 15; /* High z-index to ensure visibility */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Add shadow for depth */
}

/* Carousel container - ensure proper z-index */
.custom-carousel-1 {
    position: relative;
    z-index: 11; /* Ensure carousel is above slider but below title */
}

/* Carousel cards - ensure they appear above slider */
.custom-carousel-1 .owl-stage-outer .owl-item .card {
    transition: all 0.1s ease-in-out;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Enhanced shadow */
    max-width: 100%;
    height: auto;
    position: relative;
    z-index: 12; /* Ensure cards are visible */
}

.custom-carousel-1 .owl-stage-outer .owl-item.active .card {
    box-shadow: 0 0px 20px rgba(0, 0, 0, 0.05);
}

/* Subtle hover effects */
.custom-carousel-1 .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
}

/* Card body - compact sizing */
.custom-carousel-1 .card-body {
    padding: 1.25rem;
}

/* Image sizing */
.custom-carousel-1 .card-body img {
    width: 60px;
    height: 45px;
    object-fit: contain;
}

/* Navigation positioning - keep original */
.custom-carousel-1 .owl-carousel.nav-bottom.nav-bottom-align-left .owl-nav {
    position: absolute;
    top: 73px;
    left: -78px;
}

@media (max-width: 991px) {
    .custom-carousel-1 .owl-carousel.nav-bottom.nav-bottom-align-left {
        position: relative;
        top: 20px;
        width: 100% !important;
        padding-right: 20px;
    }

    .custom-carousel-1 .owl-carousel.nav-bottom.nav-bottom-align-left .owl-nav {
        position: relative;
        top: 0;
        left: 0;
        text-align: center;
    }
}

/* Keep navigation simple */
.custom-carousel-1 .owl-nav button {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    margin: 0 3px;
}

/* Simple animation classes */
.anim-hover-translate-top-10px {
    transition: transform 0.3s ease;
}

.anim-hover-translate-top-10px:hover {
    transform: translateY(-10px);
}

.transition-3ms {
    transition: all 0.3s ease;
}

/* ========== PARALLAX FIXES ========== */

@media (min-width: 1200px) {
    .custom-parallax-1 .parallax-background {
        background-size: 100% !important;
    }
}

.owl-carousel-light {
    height: 100vh !important;
    max-height: 800px !important;
    min-height: 400px !important;
}

/* Responsive breakpoints for slider */
@media (max-width: 575px) {
    .owl-carousel-light {
        height: 60vh !important;
        min-height: 300px !important;
        max-height: 500px !important;
    }
}

@media (min-width: 576px) and (max-width: 767px) {
    .owl-carousel-light {
        height: 70vh !important;
        min-height: 350px !important;
        max-height: 600px !important;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .owl-carousel-light {
        height: 80vh !important;
        min-height: 400px !important;
        max-height: 700px !important;
    }
}

/* Slider background image improvements */
.background-image-wrapper {
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

/* Mobile background positioning */
@media (max-width: 575px) {
    .background-image-wrapper {
        background-position: center top !important;
    }
}

/* Owl carousel structural fixes */
.owl-stage-outer {
    height: 100% !important;
}

.owl-stage {
    height: 100% !important;
    display: flex !important;
}

.owl-item {
    height: 100% !important;
}
