.collab-section {
    background: #f7f8fc;
    padding: 60px 0;
}

.mySwiper,
.mySwiper .swiper-wrapper,
.mySwiper .swiper-slide {
    width: 100%;
    height: 415px;
}

.btn-daftar {
    box-shadow: 4px 6px 5px -1px rgba(255, 255, 255, 0.5);
    -webkit-box-shadow: 4px 6px 5px -1px rgba(255, 255, 255, 0.5);
    -moz-box-shadow: 4px 6px 5px -1px rgba(255, 255, 255, 0.5);
}
.img-bg-hero {
    background-image: url(/images/casn/bghero.webp);
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
}

.owl-dots .owl-dot.active {
    background-color: #4a90e2 !important;
}

.mySwiper .swiper-slide {
    background: #eee;
}

.mySwiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    display: block;
}

.collab-slider-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.collab-owl-carousel {
    /* max-width: 400px;
    min-width: 280px; */
    border-radius: 16px;
    overflow: hidden;
    /* box-shadow: 0 2px 16px rgba(0,0,0,0.08); */
}

.collab-owl-carousel .item img {
    display: block;
    object-fit: cover;
    /* aspect-ratio: 1/1; */
    width: 100%;
    height: 100%;
    border-radius: 16px;
}

.logo-slider-section {
    background: #f7f8fc;
    padding: 0 0 30px 0;
    margin-top: 40px;
}

.logoSwiper {
    width: 100%;
    padding: 10px 0;
}

.logoSwiper .swiper-slide {
    width: 100px !important;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-circle {
    width: 90px;
    height: 90px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: box-shadow 0.2s;
}

.logo-circle img {
    width: 60px;
    height: 60px;
    filter: grayscale(1);
    transition: filter 0.3s;
}

.logo-circle:hover img {
    filter: grayscale(0);
}

@media (max-width: 576px) {
    .logoSwiper .swiper-slide {
        width: 64px !important;
        height: 64px;
    }

    .logo-circle {
        width: 56px;
        height: 56px;
    }

    .logo-circle img {
        width: 80px;
        height: 80px;
    }
}

.media-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    padding: 0 0 16px 0;
    margin-bottom: 8px;
    overflow: hidden;
    text-align: left;
}

.media-thumb {
    position: relative;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
}

.media-thumb img {
    width: 100%;
    display: block;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.media-thumb .media-play-img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 48px;
    height: 48px;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.media-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    padding: 6px;
    transition: background 0.2s;
}

.media-play:hover {
    background: #fff;
}

.media-caption {
    font-size: 1rem;
    font-weight: 500;
    color: #222;
    padding: 12px 16px 0 16px;
}

@media (max-width: 768px) {
    .media-card {
        margin-bottom: 24px;
    }
}

.media-modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* display:none will be set inline for initial state */
}

.media-modal.hide {
    display: none !important;
}

.media-modal-backdrop {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.media-modal-content {
    position: relative;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    padding: 0;
    max-width: 90vw;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.media-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #e74c3c;
    position: absolute;
    top: 8px;
    right: 16px;
    z-index: 2;
    cursor: pointer;
    transition: color 0.2s;
}

.media-modal-close:hover {
    color: #c0392b;
}

.media-modal-iframe-wrap {
    width: 70vw;
    max-width: 800px;
    height: 40vw;
    max-height: 450px;
    min-width: 320px;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.media-modal-iframe-wrap iframe {
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

/* Mobile improvements for media modal */
@media (max-width: 600px) {
    .media-modal {
        align-items: center;
        justify-content: center;
        padding-top: 0;
    }
    .media-modal-content {
        width: 98vw;
        max-width: 98vw;
        min-width: 0;
        border-radius: 10px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
        margin: 0 auto;
        align-items: center;
    }
    .media-modal-close {
        font-size: 1.7rem;
        top: 4px;
        right: 8px;
    }
    .media-modal-iframe-wrap {
        width: 98vw;
        height: 56vw;
        min-width: 0;
        min-height: 0;
        max-width: 100vw;
        max-height: 60vw;
        border-radius: 8px;
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .media-modal-iframe-wrap iframe {
        border-radius: 8px;
    }
}

.media-partner-slider-section {
    background: #f7f8fc;
    padding: 0 0 30px 0;
    margin-top: 32px;
}

.mediaPartnerSwiper {
    width: 100%;
    padding: 10px 0;
}

.mediaPartnerSwiper .swiper-slide {
    width: 130px !important;
    height: 130px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mediaPartnerSwiper .logo-circle {
    width: 120px;
    height: 120px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: box-shadow 0.2s;
}

.mediaPartnerSwiper .logo-circle img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    display: block;
    border-radius: 0;
}

.mediaPartnerSwiper .logo-circle.transparent-bg {
    background: transparent !important;
    box-shadow: none !important;
}

.mediaPartnerSwiper .logo-circle.transparent-bg img {
    width: 40px !important;
    height: 40px !important;
    filter: none !important;
}

.mediaPartnerSwiper .logo-circle .star-img {
    width: 31px !important;
    height: 31px !important;
}

@media (max-width: 576px) {
    .mediaPartnerSwiper .swiper-slide {
        width: 80px !important;
        height: 80px;
    }

    .mediaPartnerSwiper .logo-circle {
        width: 72px;
        height: 72px;
    }

    .mediaPartnerSwiper .logo-circle img {
        width: 70px;
        height: 70px;
    }

    .mediaPartnerSwiper .logo-circle.transparent-bg img {
        width: 28px !important;
        height: 28px !important;
        filter: none !important;
    }
    .mediaPartnerSwiper .logo-circle .star-img {
        width: 22px !important;
        height: 22px !important;
    }
}

/* Hero Section */
.hero-section .row {
    margin-left: 0;
    margin-right: 0;
}
.hero-section .hero-bg img {
    width: 100%;
    height: auto;
}
.hero-section .hero-title {
    font-weight: 800;
}
.hero-section .btn-daftar {
    width: fit-content;
    border-radius: 999px;
}
.hero-section .btn-daftar img {
    vertical-align: middle;
}
.hero-section .hero-img-bg {
    z-index: 1;
    left: 0;
    bottom: -90px;
    width: 100%;
}
/* Hide .d-tab-none on screens between 768px and 991.98px (Bootstrap md) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .d-tab-none {
        display: none !important;
    }
}

/* Trusted Section */
.trusted-section .trusted-bg {
    position: relative;
    width: 100%;
}
.trusted-section .trusted-bg img {
    display: block;
    width: 100%;
    height: auto;
    min-height: 90px;
}
.trusted-section .trusted-title {
    font-family: "Poppins", sans-serif;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    color: #fff;
    font-size: 2rem;
    font-weight: 600;
    width: 90%;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    z-index: 2;
}
@media (max-width: 576px) {
    .trusted-section .trusted-bg {
        min-height: 80px;
    }
    .trusted-section .trusted-title {
        font-size: 1.1rem !important;
        padding: 0 8px;
        width: 95% !important;
    }
    .trusted-section img.img-fluid {
        min-height: 80px;
        object-fit: cover;
    }
    .text-justify {
        text-align: justify !important;
    }
}

/* Collaboration Section */
.collab-section .collab-badge,
.media-section .media-badge {
    background: rgba(47, 114, 211, 0.1);
    color: #2f72d3;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 999px;
}
.collab-section .collab-title,
.media-section .media-title {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #22223b;
    line-height: 1.2;
}
.collab-section .collab-desc,
.media-section .media-desc {
    color: #444;
    font-size: 1rem;
}

/* Media Section */
.media-section {
    margin-top: 40px;
}

/* Custom class for hero-section image wrapper to replace inline style */
.hero-img-bg-style {
    width: 100%;
    left: 0;
    bottom: -90px;
    z-index: 1;
}
@media (max-width: 991.98px) and (min-width: 768px) {
    .d-tab-none {
        display: none !important;
    }
}
/* Custom class for collab-section slider wrapper to replace inline style */
.collab-slider-wrapper {
    width: 340px;
    height: 415px;
    padding: 0 8px;
    overflow: hidden;
}

.promo-highlight {
    display: inline-flex;
    align-items: center;
    background-color: #fff;
    color: #000;
    padding: 15px 40px; /* Padding lebih lebar untuk ruang gerigi */
    font-weight: 800;
    margin: 15px 0;
    position: relative;
    width: fit-content;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);

    /* --- EFEK GERIGI (MASKING) --- */
    /* Membuat lubang-lubang kecil berulang di sisi kiri dan kanan */
    --mask: radial-gradient(10px at 0 50%, #0000 98%, #000) 0 50%/100% 25px;
    -webkit-mask: var(--mask);
    mask: var(--mask);

    /* Border tipis agar bentuk tetap tegas */
    border: 1px solid #f0f0f0;
}

/* Garis putus-putus vertikal (Efek perforasi) */
.promo-highlight::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 10%;
    height: 80%;
    border-left: 2px dashed #ffd700; /* Warna emas agar lebih premium */
    z-index: 1;
}

.promo-highlight::after {
    content: "";
    position: absolute;
    right: 15px;
    top: 10%;
    height: 80%;
    border-right: 2px dashed #ffd700; /* Warna emas agar lebih premium */
    z-index: 1;
}

/* Tambahan efek hover agar interaktif */
.promo-highlight:hover {
    transform: translateY(-2px);
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

/* Styling Ikon dan Teks di dalam */
.promo-highlight i {
    color: #e74c3c; /* Warna merah untuk ikon gift agar kontras */
    margin-right: 15px;
    font-size: 1.2em;
    /* Memberi ruang agar tidak tertutup garis putus-putus */
    position: relative;
    left: 5px;
}

.promo-highlight span {
    /* Memastikan teks berada di kanan garis putus-putus */
    padding-left: 5px;
}

.promo-highlight u {
    color: #de6e0cff; /* Warna biru tua formal untuk teks yang ditekankan */
    text-decoration-color: #ffd700; /* Warna garis bawah emas */
}

.btn-daftar {
    position: relative;
    overflow: hidden; /* Penting agar kilauan tidak keluar tombol */
    display: inline-block;
    padding: 12px 30px;
    background-color: #ffd700; /* Warna emas ASN */
    color: #000;
    font-weight: 800;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    /* Menjalankan animasi denyut secara terus menerus */
    animation: pulseEffect 2s infinite;
}

/* Efek Kilauan (Shine) */
.btn-daftar::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -100%;
    width: 50%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.6) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    /* Animasi kilau muncul setiap 3 detik */
    animation: shineEffect 3s infinite;
}

/* Animasi 1: Denyut Tombol (Agar mata langsung tertuju ke sini) */
@keyframes pulseEffect {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7);
    }
    70% {
        transform: scale(1.02);
        box-shadow: 0 0 0 10px rgba(255, 215, 0, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
    }
}

/* Animasi 2: Kilauan menyapu dari kiri ke kanan */
@keyframes shineEffect {
    0% {
        left: -100%;
    }
    20% {
        left: 150%;
    } /* Kilauan lewat dengan cepat */
    100% {
        left: 150%;
    } /* Jeda waktu diam */
}

/* Efek saat Hover agar interaktif */
.btn-daftar:hover {
    transform: scale(1.02) !important; /* Membesar saat diarahkan kursor */
    animation: none; /* Berhenti berdenyut saat akan diklik */
    background-color: #ffcc00 !important;
}
/* Wrapper agar 100% lebar kontainer */
.coupon-full-wrapper {
    width: 100%;
    margin: 20px 0 40px 0;
}

.promo-coupon-premium {
    position: relative;
    background: linear-gradient(
        135deg,
        #007aff,
        #0056b3
    ); /* Gradasi Biru Navy Premium */
    color: #ffffff;
    padding: 30px 60px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(26, 42, 108, 0.2);

    /* Efek Gerigi Samping (Masking) - Tetap dipertahankan untuk kesan kupon */
    --mask: radial-gradient(10px at 0 50%, #0000 98%, #000) 0 50%/100% 25px;
    -webkit-mask: var(--mask);
    mask: var(--mask);
}

.coupon-content-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* Label Penawaran Terbatas */
.badge-limited {
    display: inline-block;
    background: #e74c3c;
    color: white;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

/* Tipografi */
.coupon-main-info h3 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
}

.price-highlight {
    color: #ffd700; /* Warna Emas */
    text-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

.coupon-main-info p {
    margin: 8px 0 0 0;
    opacity: 0.85;
    font-size: 1rem;
}

/* Tombol Baru */
.btn-daftar-premium {
    position: relative;
    display: inline-block;
    padding: 15px 25px;
    background: #ffd700;
    color: #000 !important;
    font-weight: 900;
    text-decoration: none !important;
    border-radius: 50px; /* Lebih membulat agar modern */
    transition: all 0.3s ease;
    animation: pulseGlow 2s infinite;
    white-space: nowrap;
    overflow: hidden;
}

.btn-daftar-premium::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -100%;
    width: 50%;
    height: 200%;
    background: linear-gradient(
        to right,
        transparent,
        rgba(255, 255, 255, 0.7),
        transparent
    );
    transform: rotate(30deg);
    animation: shineEffect 3s infinite;
}

/* Animasi */
@keyframes pulseGlow {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.5);
    }
    70% {
        transform: scale(1.03);
        box-shadow: 0 0 0 15px rgba(255, 215, 0, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
    }
}

@keyframes shineEffect {
    0% {
        left: -100%;
    }
    20% {
        left: 150%;
    }
    100% {
        left: 150%;
    }
}

/* Responsif Mobile */
@media (max-width: 991px) {
    .coupon-content-flex {
        flex-direction: column;
        text-align: center;
    }
    .promo-coupon-premium {
        padding: 40px 25px;
    }
    .coupon-main-info h3 {
        font-size: 1.4rem;
    }
}
/* 1. Beri ruang di container utama agar tombol punya tempat */
.program-selection-carousel {
    padding: 0 30px !important; /* Tambahkan padding kiri-kanan */
    position: relative;
}
.program-selection-carousel .owl-stage-outer {
    padding-bottom: 30px !important;
    margin-bottom: -0px !important;
}
.program-cards-group {
    padding-top: 10px;
    padding-bottom: 10px;
}
.program-selection-carousel .ow-item {
    width: auto !important;
    display: flex;
    justify-content: center;
}

/* 2. Pastikan stage-outer tetap hidden agar item samping tidak berantakan */
.program-selection-carousel .owl-stage-outer {
    overflow: hidden !important;
}

/* 3. Atur posisi Nav Container */
.program-selection-carousel .owl-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    width: 100%;
    z-index: 100 !important;
    pointer-events: none; /* Klik bisa tembus ke kartu jika tidak kena tombol */
    display: block !important; /* Paksa muncul */
}

/* 4. Desain Tombol */
.program-selection-carousel .owl-nav button {
    pointer-events: all !important;
    position: absolute;
    background: white !important;
    color: #0076d0 !important; /* Sesuaikan warna primary */
    border-radius: 50% !important;
    width: 35px !important;
    height: 35px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid #ddd !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 16px !important;
}

/* 5. Posisi Spesifik Kiri & Kanan */
.program-selection-carousel .owl-nav .owl-prev {
    left: 5px !important; /* Muncul di dalam padding 50px tadi */
}

.program-selection-carousel .owl-nav .owl-next {
    right: 5px !important;
}

.program-selection-carousel .owl-nav button span {
    font-size: 30px;
    line-height: 1;
}

/* Sembunyikan navigasi di layar mobile/tablet kecil */
@media (max-width: 767px) {
    .program-selection-carousel .owl-nav {
        display: none !important;
    }
    .program-selection-carousel {
        padding: 0 !important;
    }
}
