/***************************************************
 * AI1 Showcase Slider – AI1Group Branded Panel
 ***************************************************/

.ai1-showcase-carousel {
    --ai1-green: #2cab2c;
    --ai1-green-bright: #48d861;
    --ai1-orange: #f28c28;
    --ai1-panel: rgba(10, 14, 20, 0.96);
    --ai1-panel-2: rgba(20, 26, 34, 0.94);
    --ai1-stage-h: 620px;
    --ai1-content-h: 190px;
    --ai1-indicator-offset: 18px;

    position: relative;
    width: 100%;
    max-width: 1160px;
    margin: 0 auto 2.4rem;
    padding: 0;
    border-radius: 30px;
    isolation: isolate;
    overflow: visible;
}

/* Soft brand glow */
.ai1-showcase-carousel::before {
    content: "";
    position: absolute;
    inset: -22px;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 14% 16%, rgba(44,171,44,0.16), transparent 24%),
        radial-gradient(circle at 86% 15%, rgba(242,140,40,0.14), transparent 22%);
    filter: blur(24px);
    opacity: 0.9;
}

/* Outer frame */
.ai1-showcase-carousel::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow:
        0 18px 44px rgba(0,0,0,0.22),
        0 8px 20px rgba(0,0,0,0.14),
        0 0 0 1px rgba(255,255,255,0.025) inset;
}

/* Inner carousel */
.ai1-showcase-carousel .carousel-inner {
    position: relative;
    z-index: 2;
    border-radius: 30px;
    overflow: hidden;
}

/***************************************************
 * Slide stacking
 ***************************************************/

.ai1-showcase-carousel .carousel-item {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease;
    pointer-events: none;
}

.ai1-showcase-carousel .carousel-item:first-child {
    position: relative;
    visibility: visible;
}

.ai1-showcase-carousel .carousel-item.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 2;
}

/***************************************************
 * Slide layout
 ***************************************************/

.ai1-showcase-slide {
    position: relative;
    width: 100%;
    min-height: var(--ai1-stage-h);
    background:
        linear-gradient(145deg, rgba(7, 12, 18, 0.98), rgba(16, 22, 30, 0.96));
}

/* Image area only */
.ai1-showcase-stage {
    position: relative;
    width: 100%;
    /*height: calc(var(--ai1-stage-h) - var(--ai1-content-h));*/
    height: auto;
    border-radius: 30px 30px 0 0;
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(7, 12, 18, 0.98), rgba(16, 22, 30, 0.96));
}

.ai1-showcase-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
    transform: none !important;
    animation: none !important;
    filter: saturate(1.02) contrast(1.02);
    padding: 1rem 1rem 0.75rem;
    box-sizing: border-box;
    border-radius: 30px 30px 0 0;
}

/***************************************************
 * Overlay
 ***************************************************/

.ai1-showcase-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(
            180deg,
            rgba(2, 5, 8, 0.02) 0%,
            rgba(2, 5, 8, 0.06) 60%,
            rgba(2, 5, 8, 0.18) 100%
        );
}

.ai1-showcase-overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 16%, rgba(44,171,44,0.08), transparent 22%),
        radial-gradient(circle at 82% 14%, rgba(242,140,40,0.08), transparent 20%);
    mix-blend-mode: screen;
}

/***************************************************
 * Optional first-slide logo
 ***************************************************/

.ai1-showcase-logo-wrap {
    position: absolute;
    top: 1rem;
    left: 50%;
    z-index: 2;
    transform: translateX(-50%);
    pointer-events: none;
}

.ai1-showcase-logo {
    max-width: 140px;
    height: auto;
    display: block;
    filter: drop-shadow(0 8px 18px rgba(0,0,0,0.24));
}

/***************************************************
 * Bottom content band
 ***************************************************/

.ai1-showcase-content-panel {
    position: relative;
    z-index: 4;
    width: 100%;
    min-height: var(--ai1-content-h);
    padding: 1rem 1.4rem 3.2rem;
    background:
        linear-gradient(145deg, var(--ai1-panel), var(--ai1-panel-2));
    border-top: 1px solid rgba(255,255,255,0.08);
    box-shadow:
        0 -10px 24px rgba(0,0,0,0.22) inset,
        0 0 0 1px rgba(255,255,255,0.02) inset;
    box-sizing: border-box;
}

.ai1-showcase-content {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    color: #fff;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.45s ease, transform 0.45s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
}

.ai1-showcase-content::before {
    content: "";
    position: absolute;
    top: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: min(320px, 70%);
    height: 1px;
    background: linear-gradient(
        90deg,
        rgba(44,171,44,0) 0%,
        rgba(44,171,44,0.45) 22%,
        rgba(255,255,255,0.28) 50%,
        rgba(242,140,40,0.38) 78%,
        rgba(242,140,40,0) 100%
    );
}

.ai1-showcase-carousel .carousel-item.ai1-active .ai1-showcase-content,
.ai1-showcase-carousel .carousel-item.active .ai1-showcase-content {
    opacity: 1;
    transform: translateY(0);
}

.ai1-showcase-text {
    order: 1;
    width: 100%;
}

.ai1-showcase-content h1,
.ai1-showcase-content h2,
.ai1-showcase-content h3 {
    order: 2;
    margin: 0;
    font-size: clamp(1.15rem, 1.7vw, 1.55rem);
    line-height: 1.15;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.ai1-showcase-text p {
    margin: 0 auto;
    max-width: 760px;
    font-size: 0.94rem;
    line-height: 1.55;
    color: rgba(255,255,255,0.88);
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ai1-showcase-btn {
    order: 3;
    display: inline-block;
    margin-top: 0.25rem;
    padding: 0.78rem 1.45rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--ai1-green) 0%, var(--ai1-green-bright) 100%);
    color: #07110b;
    font-weight: 800;
    text-decoration: none;
    box-shadow:
        0 10px 24px rgba(44,171,44,0.24),
        0 0 0 1px rgba(255,255,255,0.08) inset;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.ai1-showcase-btn:hover,
.ai1-showcase-btn:focus {
    transform: translateY(-2px);
    box-shadow:
        0 14px 28px rgba(44,171,44,0.30),
        0 0 0 1px rgba(255,255,255,0.12) inset;
    color: #07110b;
    text-decoration: none;
    filter: brightness(1.03);
}

/***************************************************
 * Controls
 ***************************************************/

.ai1-showcase-carousel .carousel-control-prev,
.ai1-showcase-carousel .carousel-control-next {
    position: absolute;
    top: calc((var(--ai1-stage-h) - var(--ai1-content-h)) / 2);
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(10, 14, 20, 0.62);
    border: 1px solid rgba(255,255,255,0.16);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    box-shadow: 0 8px 18px rgba(0,0,0,0.22);
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.ai1-showcase-carousel .carousel-control-prev:hover,
.ai1-showcase-carousel .carousel-control-next:hover {
    background: rgba(44,171,44,0.84);
    border-color: rgba(44,171,44,0.48);
    transform: translateY(-50%) scale(1.05);
}

.ai1-showcase-carousel .carousel-control-prev {
    left: 1rem;
}

.ai1-showcase-carousel .carousel-control-next {
    right: 1rem;
}

.ai1-showcase-carousel .carousel-control-prev-icon,
.ai1-showcase-carousel .carousel-control-next-icon {
    display: inline-block;
    width: 0;
    height: 0;
    border-style: solid;
}

.ai1-showcase-carousel .carousel-control-prev-icon {
    border-width: 8px 11px 8px 0;
    border-color: transparent #ffffff transparent transparent;
}

.ai1-showcase-carousel .carousel-control-next-icon {
    border-width: 8px 0 8px 11px;
    border-color: transparent transparent transparent #ffffff;
}

/***************************************************
 * Indicators
 ***************************************************/

.ai1-showcase-carousel .carousel-indicators {
    position: absolute;
    bottom: var(--ai1-indicator-offset);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 6;
    margin: 0;
    padding: 0;
}

.ai1-showcase-carousel .carousel-indicators button {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.42);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.ai1-showcase-carousel .carousel-indicators button:hover {
    background: rgba(255,255,255,0.72);
}

.ai1-showcase-carousel .carousel-indicators button.active {
    background: var(--ai1-green);
    transform: scale(1.15);
    box-shadow: 0 0 0 4px rgba(44,171,44,0.16);
}

/***************************************************
 * Utility
 ***************************************************/

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/***************************************************
 * Responsive
 ***************************************************/

@media (max-width: 991.98px) {
    .ai1-showcase-carousel {
        --ai1-stage-h: 530px;
        --ai1-content-h: 205px;
        --ai1-indicator-offset: 16px;
    }

    .ai1-showcase-content-panel {
        padding: 1rem 1.15rem 2.9rem;
    }

    .ai1-showcase-text p {
        font-size: 0.91rem;
        -webkit-line-clamp: 4;
    }
}

@media (max-width: 767.98px) {
    .ai1-showcase-carousel {
        --ai1-stage-h: 455px;
        --ai1-content-h: 205px;
        --ai1-indicator-offset: 14px;
        margin-bottom: 2rem;
        border-radius: 22px;
    }

    .ai1-showcase-carousel::after,
    .ai1-showcase-carousel .carousel-inner {
        border-radius: 22px;
    }

    .ai1-showcase-stage {
        border-radius: 22px 22px 0 0;
    }

    .ai1-showcase-img {
        padding: 0.85rem 0.85rem 0.6rem;
    }

    .ai1-showcase-logo {
        max-width: 105px;
    }

    .ai1-showcase-content-panel {
        padding: 0.9rem 0.95rem 2.65rem;
    }

    .ai1-showcase-content {
        gap: 0.45rem;
    }

    .ai1-showcase-content h1,
    .ai1-showcase-content h2,
    .ai1-showcase-content h3 {
        font-size: 1.08rem;
    }

    .ai1-showcase-text p {
        font-size: 0.84rem;
        line-height: 1.45;
        -webkit-line-clamp: 4;
    }

    .ai1-showcase-btn {
        padding: 0.68rem 1.1rem;
        font-size: 0.89rem;
    }

    .ai1-showcase-carousel .carousel-control-prev,
    .ai1-showcase-carousel .carousel-control-next {
        width: 42px;
        height: 42px;
    }

    .ai1-showcase-carousel .carousel-control-prev {
        left: 0.55rem;
    }

    .ai1-showcase-carousel .carousel-control-next {
        right: 0.55rem;
    }

    .ai1-showcase-carousel .carousel-indicators {
        gap: 0.45rem;
    }

    .ai1-showcase-carousel .carousel-indicators button {
        width: 10px;
        height: 10px;
    }
}