/* RELATED TO THUMBNAIL -  TODO: MOVE */
/* Set the container to relative positioning */
.swiper-slide {
    position: relative;
}

/* Position the thumbnail behind other content */
.background-thumbnail {
    position: absolute;
    /* Make it positioned absolutely within the swiper-slide */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensure it covers the entire area without stretching */
    z-index: -1;
    /* Move it to the background */
}

/* Ensure the video is positioned correctly behind other content */
.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensure the video also covers the full area */
    z-index: -1;
    /* Ensure it's also behind the content */
}

/* Make sure slide content stays on top */
.slide-content {
    position: relative;
    z-index: 1;
    /* Ensure the content stays in front */
}


.fleet-header {
    position: relative;
    z-index: 1010 !important;
    margin: 2px !important;
    cursor: pointer;
    user-select: none;
}

.fleet-header.active {
    opacity: 1 !important;
    color: #e5a93c !important; /* Brand accent highlight */
}

#reset-message {
    cursor: pointer;
    user-select: none;
}

.fleet-div {
    display: flex;
    width: 100%;
    height: 100dvh;
    justify-content: center;
    align-items: center;
}

.fleet-background {
    /* background-image: url("../images/fleet/all.jpg"); */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    height: 100dvh;
    /* Full viewport height */
    width: 75%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    transition: background-image 0.5s linear, background-opacity 0.5s linear, background-size 0s, background-position 0s;
}

@media (max-width: 992px) {
    .fleet-background {
        display: none !important;
        /* width: 100%;
        justify-content: flex-start;
        padding-top: 70vh; */
        /* Position content 30% from bottom */
    }

    .paragraph-section {
        display: none !important;
    }
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3));
    pointer-events: none;
    z-index: 1;
}

.fleet-background h1 {
    text-align: right;
    color: white;
    margin-bottom: 5px !important;
    opacity: 0.6;
    transition: opacity 0.3s ease-in-out, color 0.3s ease-in-out;
    z-index: 10;
}

@media (max-width: 992px) {
    .fleet-background h1 {
        font-size: 2.5rem;
    }
}

.fleet-background h6 {
    text-align: right;
    color: white;
    margin: 0;
    opacity: 0.6;
    transition: opacity 0.3s ease-in-out, color 0.3s ease-in-out;
    z-index: 10;
}

.fleet-background h1:hover {
    opacity: 1;
    color: white !important;
}

.paragraph-section {
    width: 25%;
    height: 60vh;
    background-color: rgba(255, 255, 255, 0.429);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: black;
    font-size: 1vw;
    text-align: center;
}

.paragraph-section h1 {
    margin-bottom: 1vw;
    font-size: 2rem;
}

.paragraph-section h6 {
    font-size: 2rem;
    margin-bottom: 1vw;
}

.paragraph-section h4 {
    font-size: 2rem;
    margin-bottom: 1vw;
}

.paragraph-section p {
    font-size: 1.25rem;
    margin-bottom: 1vw;
}

.aircraft-info {
    font-size: 2rem;
    text-align: left;
}

.aircraft-info p {
    margin: 5px 0;
    line-height: 1.2;
}

#aircraft-info {
    display: none;
}

/* Media Queries for smaller screens */
@media (max-height: 600px) {
    .aircraft-info {
        font-size: 1vw;
    }
}

@media (max-height: 400px) {
    .aircraft-info {
        font-size: 1vw;
    }
}

#fleet-video {
    width: 100%;
    height: 100dvh;
    /* Ensure it takes the full height of the screen */
    object-fit: cover;
    /* Make sure the video covers the entire screen without stretching */
    position: absolute;
    top: 0;
    /* Ensure it starts from the top of the screen */
    left: 0;
    /* Ensure it starts from the left edge */
    z-index: 0;
    opacity: 1;
    /* Start visible */
    transition: opacity 0.5s ease;
    /* Smooth transition for fade */
}


/* MOBILE */

@media (max-width: 992px) {
    .overlay {
        width: 100%;
        height: auto;
        position: fixed;
        bottom: 100px;
        left: 0;
        right: 0;
        z-index: auto;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        z-index: 10;
    }

    .overlay h1 {
        position: relative;
        text-align: right;
        color: white;
        margin: 0 0 5px 0;
        opacity: 0.8;
        transition: opacity 0.3s ease-in-out, color 0.3s ease-in-out;
        z-index: 10;
        font-size: 2.5rem;
    }

    .overlay p {
        z-index: 10;
        margin-top: 20px;
        color: #e0e0e0;
        font-size: 0.9rem;
        /* Moved down to be below the h1s */
    }

    .fleet-div .swiper-slide {
        position: relative;
    }

    .fleet-div .swiper-slide::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
        z-index: 1;
    }

    .paragraph-section-mobile {
        position: fixed;
        bottom: 80px;
        color: white;
        padding-top: 12px;
        padding-bottom: 12px;
        padding-left: 10%;
        padding-right: 10%;
        z-index: 999;
        /* Increased z-index to ensure it stays on top */
        width: 95%;
        left: 0;
        right: 0;
        margin: 0 auto;
    }

    .paragraph-section-mobile::before {
        content: '';
        position: absolute;
        bottom: 0;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.3);
        border-radius: 25px;
        z-index: 1;
        /* padding: 20px; */
        box-sizing: border-box;
    }

    .paragraph-section-mobile h1,
    .paragraph-section-mobile h4,
    .paragraph-section-mobile h6,
    .paragraph-section-mobile p,
    .paragraph-section-mobile a {
        position: relative;
        z-index: 1001;
        color: white;
        padding: 0 5px;
    }

    .paragraph-section-mobile p {
        font-size: 1.25rem;
    }

    .paragraph-section-mobile .aircraft-info a {
        color: white;
    }


}