/* ==========================================================================
   CAROUSEL LAYOUT (Separated Block Style: 100% Safe for Logos & Banners)
   ========================================================================== */
#myCarousel {
    position: relative;
    width: 100%;
    margin-bottom: 4rem;
}

.jumbotron.jumbotron-fluid {
    padding: 0 !important;
    margin-top: 0 !important;
}

/* The inner card frame */
.carousel-inner {
    width: 100%;
    background-color: #000;
    border-radius: 0.25rem;
    overflow: hidden;
}

.carousel-item {
    width: 100%;
}

/* Image container spans full width cleanly */
.carousel-image-container {
    width: 60%;
    height: auto;
    background-color: #000;
    overflow: hidden;
    position: relative;
    margin: 0 auto;
}

/* Fills width completely without letterboxing gaps, preserving image focus */
.carousel-poster-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover; 
    object-position: center;
}

/* Caption block sits completely separate *below* the image — zero logo overlap */
.carousel-caption-custom {
    position: relative;
    width: 60% !important;
    height: auto;
    background-color: #111;
    border-top: 1px solid #222;
    border-bottom-left-radius: 0.25rem;
    border-bottom-right-radius: 0.25rem;
    box-sizing: border-box;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    z-index: 20;
    margin: 0 auto;
}

.carousel-caption-wrapper {
    margin-bottom: 1rem;
}

.carousel-title {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
    margin-bottom: 0.4rem;
}

.carousel-subtitle {
    font-size: 0.9rem;
    font-weight: 300;
    color: #cfd4da;
    margin-bottom: 0.75rem;
}

.carousel-publishing-data {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    font-size: 0.8rem;
    color: #adb5bd;
}

/* Navigation arrows match the image container height */
.carousel-control-prev, 
.carousel-control-next {
    position: absolute;
    top: 0;
    bottom: auto;
    width: 10%;
    height: 80%; /* Matches desktop image container height */
    background-color: transparent;
    border: 0;
    z-index: 25;
}

.carousel-control-prev {
    left: 20%;
}

.carousel-control-next {
    right: 20%;
}

/* Carousel Indicators */
.carousel-indicators {
    position: absolute;
    right: 0;
    top: 10px;
    bottom: unset;
    left: 0;
    z-index: 30;
    display: flex;
    justify-content: center;
    padding-left: 0;
    margin-right: 20%;
    margin-left: 20%;
    list-style: none;
}

/* ==========================================================================
   RESPONSIVE CSS (Mobile Viewport Adjustments)
   ========================================================================== */
@media (max-width: 768px) {
    .carousel-image-container,
    .carousel-control-prev,
    .carousel-control-next {
        height: 220px; /* Compact mobile banner height */
    }

    .carousel-caption-custom {
        width: 100% !important;
        padding: 1rem;
    }

    .carousel-title {
        font-size: 1.1rem;
        line-height: 1.2;
    }

    .carousel-subtitle {
        font-size: 0.78rem;
        margin-bottom: 0.5rem;
    }

    .carousel-publishing-data {
        font-size: 0.7rem;
        flex-direction: column;
        gap: 0.2rem;
    }

    .carousel-image-container {
      width: 100%;
      height: auto;
      background-color: #000;
      overflow: hidden;
      position: relative;
      margin: 0 auto;
    }

    .carousel-control-prev {
        left: 0;
    }

    .carousel-control-next {
        right: 0;
    }
}