/* =========================================================
   HERO SHOWCASE SLIDER - STAI AL HIDAYAH TASIKMALAYA
   ========================================================= */
.prodi-section-background {
    position: relative;
    overflow: hidden;
    padding-bottom: 0 !important;
}

.prodi-section-background .sectionWrapper-2 {
    background: transparent !important;
    padding-bottom: 24px;
}

.stai-showcase {
    position: relative;
    width: 100%;
    margin-top: 20px;
    background: transparent !important;
    color: #ffffff;
    overflow: hidden;
    font-family: inherit;
}

/* Grid 1x1 agar tinggi semua slide seragam otomatis */
.stai-showcase__track {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
}

.stai-showcase__slide {
    grid-area: 1 / 1;
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: stretch;
    padding: 0 !important;
    box-sizing: border-box;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.55s ease, visibility 0.55s ease;
}

.stai-showcase__slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 2;
}

/* Mengikuti lebar & padding .container bawaan tema */
.stai-showcase__container {
    position: relative;
    z-index: 2;
    padding-top: 32px;
    padding-bottom: 0;
}

/* Kolom Kiri: Konten Teks & Statistik */
.stai-showcase__content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 560px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    padding: 20px 0 64px;
}

.stai-showcase__subtitle {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: #d4af37; /* Royal Gold */
}

.stai-showcase__title {
    margin: 0;
    font-size: 44px;
    font-weight: 800;
    line-height: 1.16;
    letter-spacing: -0.4px;
    color: #ffffff;
    font-family: inherit;
}

.stai-showcase__desc {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    color: #e2e8f0;
    max-width: 560px;
}

/* Daftar Poin Keunggulan */
.stai-showcase__highlights {
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stai-showcase__highlights li {
    position: relative;
    padding-left: 22px;
    font-size: 15px;
    color: #f1f5f9;
}

.stai-showcase__highlights li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #10b981;
}

/* 3 Kolom Statistik Bawah */
.stai-showcase__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 10px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    max-width: 540px;
}

.stai-showcase__stat-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.1px;
    color: #cbd5e1;
    margin-bottom: 4px;
}

.stai-showcase__stat-value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
    color: #ffffff;
}

/* Tombol Aksi */
.stai-showcase__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 10px;
}

.stai-showcase__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 26px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    white-space: nowrap;
    font-family: inherit;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.stai-showcase__btn--primary {
    background-color: #059669;
    color: #ffffff;
}

.stai-showcase__btn--primary:hover {
    background-color: #047857;
    color: #ffffff;
}

/* =========================================================
   FOTO COVER KANAN (NEMPEL BAWAH + FADE HALUS KIRI & ATAS)
   ========================================================= */
.stai-showcase__media--cover {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 58%;
    height: 100%;
    margin: 0;
    padding: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    -webkit-mask-image:
        linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.35) 22%, #000000 58%),
        linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.5) 18%, #000000 36%);
    -webkit-mask-composite: destination-in;
    mask-image:
        linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.35) 22%, #000000 58%),
        linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.5) 18%, #000000 36%);
    mask-composite: intersect;
}

.stai-showcase__cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: bottom center;
    display: block;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 0.85s ease, transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.stai-showcase__slide.is-active .stai-showcase__cover-img {
    opacity: 0.92;
    transform: scale(1);
}

/* Navigasi Slide */
.stai-showcase__nav {
    position: absolute;
    right: 48px;
    bottom: 24px;
    z-index: 10;
    display: flex;
    gap: 8px;
}

.stai-showcase__nav-btn {
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 6px;
    background-color: rgba(11, 25, 44, 0.9);
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.stai-showcase__nav-btn:hover {
    background-color: #059669;
    border-color: #059669;
}

/* Animasi Masuk Bertahap */
.stai-anim-left {
    opacity: 0;
    transform: translateX(32px);
    transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.stai-showcase__slide.is-active .stai-anim-left {
    opacity: 1;
    transform: translateX(0);
}

.stai-delay-1 { transition-delay: 0.08s; }
.stai-delay-2 { transition-delay: 0.18s; }
.stai-delay-3 { transition-delay: 0.28s; }
.stai-delay-4 { transition-delay: 0.38s; }

/* =========================================================
   RESPONSIVE TABLET & HP
   ========================================================= */
@media (max-width: 991px) {
    /* Samakan lebar & padding horizontal container dengan grid prodi di atasnya */
    .stai-showcase__container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .stai-showcase__content {
        max-width: 100%;
        padding: 24px 0 88px; /* Ruang bawah diperbesar agar tombol tidak terpotong */
    }

    .stai-showcase__title {
        font-size: 34px;
    }

    .stai-showcase__media--cover {
        width: 100%;
        opacity: 0.42;
        -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.35) 30%, rgba(0, 0, 0, 0.85) 100%);
        mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.35) 30%, rgba(0, 0, 0, 0.85) 100%);
        -webkit-mask-composite: source-over;
        mask-composite: add;
    }

    .stai-showcase__slide.is-active .stai-showcase__cover-img {
        opacity: 0.55;
    }
}

@media (max-width: 576px) {
    .stai-showcase__content {
        padding: 16px 0 80px;
        gap: 12px;
    }

    .stai-showcase__title {
        font-size: 28px;
    }

    .stai-showcase__desc,
    .stai-showcase__highlights li {
        font-size: 14px;
    }

    .stai-showcase__stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .stai-showcase__stat-value {
        font-size: 17px;
    }

    .stai-showcase__media--cover {
        width: 100%;
        height: 68%;
        top: auto;
        bottom: 0;
        opacity: 0.3;
        -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.4) 45%, #000000 100%);
        mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.4) 45%, #000000 100%);
    }

    .stai-showcase__slide.is-active .stai-showcase__cover-img {
        opacity: 0.45;
    }

    .stai-showcase__nav {
        right: 16px;
        bottom: 16px;
    }

    .stai-showcase__nav-btn {
        width: 40px;
        height: 40px;
    }
}

/* Pastikan pembungkus showcase meniru lebar dan padding horizontal .sectionWrapper-2 > .container */
.prodi-section-background .stai-showcase__container {
    width: 100% !important;
    max-width: none !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Jika .sectionWrapper-2 di tema Anda memakai padding kiri-kanan khusus (misal 5% atau 40px),
   samakan pada layar >= 992px */
@media (min-width: 992px) {
    .prodi-section-background .stai-showcase__container {
        max-width: 1170px !important; /* Samakan dengan max-width .container pada grid Prodi atas */
    }
}

@media (max-width: 1199px) {
    .prodi-section-background .stai-showcase__container {
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}