#mau-download-file-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #f4f9ff !important;
    padding: 50px 0 30px 0;
}

.download-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
    pointer-events: none;
}

#mau-download-file-section .mau-download-card {
    border-radius: 24px !important;
}

#mau-download-file-section .mau-download-title {
    font-size: 24px;
    font-weight: 800;
    color: #111111;
}

#mau-download-file-section .header-title-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
}

#mau-download-file-section .btn-selengkapnya {
    background-color: #FFB800 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    transition: all 0.25s ease;
    font-size: 15px;
    padding: 8px 24px !important;
    display: inline-block;
    line-height: 1.4;
    white-space: nowrap;
    border-radius: 50px !important;
    text-decoration: none !important;
    border: none !important;
}

#mau-download-file-section .btn-selengkapnya:hover {
    background-color: #e6a600 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 184, 0, 0.3) !important;
}

/* Card Styles 100% Mirrored from #mau-ikut-ecourse-section */
#mau-download-file-section .text-sub {
    font-weight: bold;
    color: blue;
}

#mau-download-file-section .card {
    background-color: #ffffff !important;
    border-radius: 15px;
    transition: box-shadow 0.3s ease;
    border: none !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

#mau-download-file-section .card hr {
    border: 0 !important;
    border-top: 1px solid #000000 !important;
    opacity: 1 !important;
    margin: 14px 0 !important;
}

#mau-download-file-section .card-header-group {
    min-height: 110px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

#mau-download-file-section .card-title {
    font-weight: bold;
    color: black;
    font-size: 1.15rem;
    line-height: 1.35;
    margin: 0;
}

#mau-download-file-section .title-container {
    min-height: auto;
    margin-bottom: 4px;
}

#mau-download-file-section .subtitle {
    min-height: auto;
    font-family: 'Montserrat', 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 0.85rem !important;
    color: #4b5563 !important;
    font-style: italic !important;
    font-weight: 400 !important;
    margin-top: 4px;
    margin-bottom: 0;
    line-height: 1.35;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

#mau-download-file-section .kelas-video-box {
    position: absolute;
    top: 0px;
    left: -20px;
    width: 250px;
    height: 130px;
    background-image: url("/masterplans/assets/Ribbon.png");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 10;
}

#mau-download-file-section .kelas-video-box .ribbon-text-content {
    transform: rotate(-5deg);
    width: 175px;
    margin-left: 20px;
    margin-top: -10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
}

#mau-download-file-section .kelas-video-box h5,
#mau-download-file-section .kelas-video-box .ribbon-text-content h5 {
    position: static !important;
    transform: none !important;
    color: #e74c3c !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    margin: 0 0 2px 0 !important;
    top: auto !important;
    left: auto !important;
}

#mau-download-file-section .kelas-video-box h6,
#mau-download-file-section .kelas-video-box .ribbon-text-content h6 {
    position: static !important;
    transform: none !important;
    color: #2c4964 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    margin: 0 !important;
    width: 100% !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    top: auto !important;
    left: auto !important;
}

#mau-download-file-section .card-collapse-panel {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease-in-out;
}

#mau-download-file-section .card-collapse-panel.open {
    opacity: 1;
}

#mau-download-file-section .collapse-content {
    font-style: italic;
    margin-top: 5px;
}

#mau-download-file-section .headers {
    display: flex;
    align-items: center;
}

#mau-download-file-section .headers h4 {
    margin: 0;
    flex-grow: 1;
}

#mau-download-file-section .headers .toggle-icon {
    margin-left: 10px;
}

#mau-download-file-section .duration-button {
    border-radius: 10px;
    background-color: #f0f8ff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    position: relative;
    font-weight: bold;
}

#mau-download-file-section .discount-badge {
    font-weight: bold;
    position: absolute;
    top: -10px;
    left: 10px;
    background-color: #4caf50;
    color: white;
    padding: 2px 5px;
    border-radius: 5px;
    font-size: 0.8em;
}

#mau-download-file-section .package-text {
    font-size: 1.2em;
}

#mau-download-file-section .price {
    text-align: right;
    font-size: 1.2em;
}

#mau-download-file-section .price sup {
    font-size: 0.6em;
    vertical-align: super;
}

#mau-download-file-section .category-badge {
    width: fit-content;
    color: white;
    padding: 2px 5px;
    border-radius: 5px;
}

#mau-download-file-section .duration-button.selected {
    background-color: #ffcc00;
    color: black;
}

#mau-download-file-section .video-container {
    padding: 0;
    margin: 16px 16px 0 16px;
    width: calc(100% - 32px);
    aspect-ratio: 16 / 9;
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 12px;
}

#mau-download-file-section .video-container img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    transition: transform 0.35s ease;
}

#mau-download-file-section .card:hover .video-container img {
    transform: scale(1.02);
}

#mau-download-file-section .total-payment-container {
    background-color: #00b2b3;
    padding: 22px 20px 24px 20px !important;
    border-radius: 0px 0px 14px 14px;
    color: white;
    position: relative;
    margin: 0 -1px -1px -1px;
    min-height: 86px !important;
}

#mau-download-file-section .right-align {
    position: absolute;
    right: 16px !important;
    bottom: -15px !important;
    z-index: 10;
}

#mau-download-file-section .toggle-icon {
    position: absolute;
    right: 10px;
    top: -10px;
    background-color: #2196f3;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#mau-download-file-section .total-payment-text {
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    margin-bottom: 2px !important;
    color: #ffffff !important;
    line-height: 1.2 !important;
}

#mau-download-file-section .total-payment-amount,
#mau-download-file-section .total-payment-amount span {
    font-weight: 700 !important;
    font-size: 1.45rem !important;
    margin-bottom: 0 !important;
    color: #ffff00 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.3px !important;
}

#mau-download-file-section .buy-package-button,
#mau-download-file-section .already-paid-button,
#mau-download-file-section .btn-lanjut-bayar {
    font-weight: 700 !important;
    color: white !important;
    padding: 7px 18px !important;
    border: none;
    border-radius: 20px !important;
    font-size: 0.95rem !important;
    cursor: pointer;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    text-decoration: none !important;
    display: inline-block;
    text-align: center;
    transition: all 0.3s ease;
}

#mau-download-file-section .buy-package-button:not(:disabled) {
    color: white !important;
    background: linear-gradient(to right, rgb(255, 190, 32), rgb(255, 150, 0));
    background-size: 200% auto;
    background-position: left center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2), 0 2px 8px rgba(0, 0, 0, 0.19);
}

#mau-download-file-section .buy-package-button:not(:disabled):hover,
#mau-download-file-section .buy-package-button:hover {
    background-position: right center;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
}

#mau-download-file-section .already-paid-button {
    text-decoration: none !important;
    background-color: #3b82f6;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    font-size: 1.2em;
}

#mau-download-file-section .subtitle {
    font-family: 'Montserrat', 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 0.85rem !important;
    color: #4b5563 !important;
    font-style: italic !important;
    font-weight: 400 !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

#mau-download-file-section .check-gratis {
    color: #ffcc00;
    font-weight: bold;
    font-size: 16px;
    font-style: italic;
}

/* Carousel Layout */

/* Peek Carousel Styles */
.peek-carousel {
    position: relative;
    width: 100%;
}

.peek-carousel-viewport {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding-top: 15px;
    padding-bottom: 40px;
    margin-top: -15px;
    margin-bottom: -40px;
}

.peek-carousel-track {
    display: flex;
    gap: 0px;
    width: 100%;
    will-change: transform;
}

.peek-carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    box-sizing: border-box;
    padding: 0 10px;
}

#mau-download-file-section .peek-carousel-slide .card {
    overflow: visible !important;
}

#mau-download-file-section .peek-carousel-slide .card-item-main {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
}

#mau-download-file-section .peek-carousel-controls {
    margin-top: 50px !important;
}

@media (min-width: 768px) and (max-width: 991.98px) {
    #mau-download-file-section {
        overflow-x: hidden !important;
    }

    #mau-download-file-section .mau-download-card {
        overflow: visible !important;
        padding-bottom: 3.5rem !important;
    }

    #downloadCarousel {
        margin-right: -15vw !important;
    }

    #downloadCarousel .peek-carousel-viewport {
        overflow: hidden !important;
        width: calc(100% + 15vw + 40px) !important;
        padding: 25px 20px 30px 20px !important;
        margin: -25px -20px 0 -20px !important;
    }

    #downloadCarousel .peek-carousel-track {
        gap: 44px !important;
    }

    #downloadCarousel .peek-carousel-slide {
        flex: 0 0 calc(55% - 22px) !important;
        width: calc(55% - 22px) !important;
        padding: 0 !important;
    }

    #downloadCarousel .card-item-main {
        max-width: 100% !important;
        margin: 0 !important;
    }

    #downloadCarousel .peek-carousel-controls {
        margin-top: 50px !important;
    }

    #mau-download-file-section .total-payment-amount {
        font-size: 2em !important;
    }

    #mau-download-file-section .buy-package-button {
        font-size: 1.05rem !important;
        padding: 8px 18px !important;
    }

    #mau-download-file-section .duration-button {
        padding: 8px 14px !important;
    }

    #mau-download-file-section .package-text,
    #mau-download-file-section .price {
        font-size: 1rem !important;
    }
}

#mau-download-file-section .carousel-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: #00A99D;
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 169, 157, 0.25);
    font-size: 13px;
    cursor: pointer;
    flex-shrink: 0;
}

#mau-download-file-section .carousel-btn:hover {
    background-color: #00877D;
    transform: scale(1.08);
}

#mau-download-file-section .carousel-indicators.custom-carousel-indicators {
    position: static !important;
    margin: 0 !important;
    padding: 0 !important;
    justify-content: center;
    align-items: center;
}

#mau-download-file-section .carousel-indicators.custom-carousel-indicators button {
    width: 9px !important;
    height: 9px !important;
    border-radius: 50% !important;
    background-color: #CBD5E1 !important;
    border: none !important;
    opacity: 0.7 !important;
    transition: all 0.3s ease !important;
    padding: 0 !important;
    margin: 0 3px !important;
    cursor: pointer !important;
}

#mau-download-file-section .carousel-indicators.custom-carousel-indicators button.active {
    width: 24px !important;
    border-radius: 10px !important;
    background-color: #00A99D !important;
    opacity: 1 !important;
}

/* Tablet Responsive */
@media (max-width: 991px) {
    #mau-download-file-section {
        padding: 40px 0 24px 0;
    }
    #mau-download-file-section .header-title-icon {
        width: 28px;
        height: 28px;
    }
    .download-bg-img {
        object-fit: cover;
    }
}

/* Mobile Responsive */
@media (max-width: 767px) {
    #mau-download-file-section {
        padding: 28px 0 18px 0;
    }
    #mau-download-file-section .header-title-box {
        max-width: 64%;
    }
    #mau-download-file-section .header-title-icon {
        width: 25px;
        height: 25px;
    }
    #mau-download-file-section .mau-download-title {
        font-size: 14.5px !important;
        line-height: 1.3 !important;
    }
    #mau-download-file-section .btn-selengkapnya {
        font-size: 10.5px !important;
        padding: 4px 11px !important;
    }
    #mau-download-file-section .kelas-video-box {
        width: 200px;
        height: 105px;
        left: -15px;
    }
    #mau-download-file-section .kelas-video-box .ribbon-text-content {
        width: 140px;
        margin-left: 15px;
    }
    #mau-download-file-section .kelas-video-box h5,
    #mau-download-file-section .kelas-video-box .ribbon-text-content h5 {
        font-size: 10px !important;
    }
    #mau-download-file-section .kelas-video-box h6,
    #mau-download-file-section .kelas-video-box .ribbon-text-content h6 {
        font-size: 11px !important;
    }
    #mau-download-file-section .total-payment-container {
        padding: 22px 20px 24px 20px !important;
        min-height: 86px !important;
    }
    #mau-download-file-section .total-payment-amount,
    #mau-download-file-section .total-payment-amount span {
        font-size: 1.45rem !important;
        font-weight: 700 !important;
    }
    #mau-download-file-section .buy-package-button,
    #mau-download-file-section .already-paid-button,
    #mau-download-file-section .btn-lanjut-bayar {
        font-size: 0.95rem !important;
        padding: 7px 18px !important;
    }
    #mau-download-file-section .duration-button {
        padding: 10px 14px !important;
        font-size: 1rem !important;
        min-height: 48px !important;
    }
    #mau-download-file-section .package-text {
        font-size: 0.92rem !important;
    }
    #mau-download-file-section .price {
        font-size: 0.95rem !important;
    }
    #mau-download-file-section .right-align {
        right: 16px !important;
        bottom: -15px !important;
    }
}

@media (max-width: 576px) {
    #mau-download-file-section .header-title-icon {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 379px) {
    #mau-download-file-section .header-title-icon {
        width: 20px;
        height: 20px;
    }
}

@media (min-width: 992px) {
    #mau-download-file-section .peek-carousel-viewport {
        overflow: hidden !important;
        width: calc(100% + 24px) !important;
        padding: 25px 12px 30px 12px !important;
        margin: -25px -12px 0 -12px !important;
    }

    #mau-download-file-section .peek-carousel-track {
        display: flex !important;
        gap: 24px !important;
        width: 100% !important;
        will-change: transform;
    }

    #mau-download-file-section .peek-carousel-slide {
        flex: 0 0 calc((100% - 48px) / 3) !important;
        width: calc((100% - 48px) / 3) !important;
        max-width: calc((100% - 48px) / 3) !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    #mau-download-file-section .peek-carousel-slide .card-item-main {
        max-width: 100% !important;
        margin: 0 !important;
        width: 100% !important;
    }

    #mau-download-file-section .peek-carousel-controls {
        margin-top: 30px !important;
    }
}
