.kelas-list img {
    border-radius: 10px;
}

.kelas-list {
    margin-bottom: 50px;
}

.kelas-desc {
    margin-top: 50px;
}

.kelas-scrap {
    position: relative;
    z-index: 10;
}

.kelas-scrap img {
    position: absolute;
    top: -60px;
    left: 75px;
    width: 300px;
    height: 300px;
    object-fit: cover;
    z-index: -1;
}

#kelas {
    position: relative;
    width: 100%;
    min-height: 850px;
    display: flex;
    background-image: url("/masterplans/assets/coursebg.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

#kelas .container {
    position: relative;
}

#kelas h1 {
    margin: 0;
    font-size: 48px;
    font-weight: bold;
    color: #2c4964;
}

#kelas h2 {
    margin: 0;
    font-size: 48px;
    color: #2c4964;
}

#kelas h3 {
    margin-top: 10px;
    color: red;
    font-size: 18px;
    font-weight: bold;
}

#kelas .text-sub {
    font-weight: bold;
    color: blue;
}

#kelas .card {
    background-color: white;
    border-radius: 15px;
    /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); */
    transition: box-shadow 0.3s ease;
}

#kelas .card-title {
    font-weight: bold;
    color: black;
}

/* #kelas .card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
} */

#kelas .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;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5px;
    z-index: 10;
}

#kelas .kelas-video-box h5 {
    position: absolute;
    transform: rotate(-5deg);
    color: #e74c3c;
    font-size: 14px;
    top: 45px;
    left: 25px;
    margin-left: 5px;
}

#kelas .kelas-video-box h6 {
    position: absolute;
    transform: rotate(-5deg);
    margin-top: 5px;
    margin-left: 5px;
    color: #2c4964;
    font-size: 14px;
    top: 55px;
    left: 25px;
    font-weight: bold;
}

#kelas .collapse-content {
    font-style: italic;
    margin-top: 5px;
}

#kelas .headers {
    display: flex;
    align-items: center;
}

#kelas .headers h4 {
    margin: 0;
    flex-grow: 1;
}

#kelas .headers .toggle-icon {
    margin-left: 10px;
}

#kelas .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;
}

#kelas .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;
}

#kelas .package-text {
    font-size: 1.2em;
}

#kelas .price {
    text-align: right;
    font-size: 1.2em;
}

#kelas .price sup {
    font-size: 0.6em;
    vertical-align: super;
}

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

#kelas .category-badge-1 {
    background-color: #007bff;
}

#kelas .category-badge-2 {
    background-color: #28a745;
}

#kelas .category-badge-3 {
    background-color: #ff0000;
}

#kelas .category-badge-4 {
    background-color: #ffc107;
}

#kelas .category-badge-5 {
    background-color: #6c757d;
}

#kelas .category-badge-default {
    background-color: #343a40;
}

#kelas .duration-button.selected {
    background-color: #ffcc00;
    color: black;
}

#kelas .video-container {
    padding: 10px;
    position: relative;
    display: inline-block;
}

#kelas .total-payment-container {
    background-color: #00b2b3;
    padding: 20px;
    border-radius: 0px 0px 15px 15px;
    color: white;
    position: relative;
}

#kelas .right-align {
    position: absolute;
    right: 25px;
}

#kelas .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;
}

#kelas .total-payment-text {
    font-weight: bold;
    font-size: 1em;
    margin-bottom: 10px;
}

#kelas .total-payment-amount {
    font-weight: bold;
    font-size: 2.5em;
    margin-bottom: 20px;
    color: yellow;
}

#kelas .buy-package-button {
    font-weight: bold;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    font-size: 1.2em;
    cursor: pointer;
    text-decoration: none;
    transition: background-position 0.4s ease, box-shadow 0.3s ease;
}

#kelas .buy-package-button:not(:disabled) {
    color: black;
    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);
}

#kelas .buy-package-button:not(:disabled):hover {
    background-position: right center;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.3);
}

#kelas .buy-package-button:disabled {
    background-color: #a0a0a0;
    box-shadow: none;
    cursor: not-allowed;
    color: #eee;
}

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

#kelas .subtitle {
    font-size: 0.8em;
    color: #666;
    font-style: italic;
}

#kelas .check-gratis {
    color: #ffcc00;
    font-weight: bold;
    font-size: 16px;
    font-style: italic;
}

#kelas .button-container {
    display: flex;
    align-items: flex-start;
    margin-top: 30px;
}

#kelas .btn-selengkapnya {
    font-weight: bold;
    font-size: 20px;
    letter-spacing: 1px;
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    cursor: pointer;
    color: black;
    text-decoration: none;
    background: linear-gradient(to right, rgb(255, 190, 32), rgb(255, 150, 0));
    background-size: 200% auto;
    background-position: left center;
    transition: background-position 0.4s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2), 0 6px 20px rgba(0, 0, 0, 0.19);
}

#kelas .btn-selengkapnya:hover {
    background-position: right center;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.3);
}

/* Mobile */
@media (max-width: 767px) {
    #kelas {
        flex-direction: column;
        min-height: auto;
        padding: 20px 0;
    }

    #kelas h1,
    #kelas h2 {
        font-size: 32px;
        text-align: start;
    }

    #kelas h3 {
        font-size: 18px;
        text-align: start;
    }

    #kelas .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .kelas-list {
        margin-bottom: 30px;
    }

    .kelas-desc {
        margin-top: 30px;
    }

    .kelas-judul {
        padding: 0 24px;
    }

    .kelas-scrap {
        position: relative;
        z-index: 10;
    }

    .kelas-scrap img {
        position: absolute;
        top: -45px;
        left: 50px;
        width: 200px;
        height: 200px;
        object-fit: cover;
        z-index: -1;
    }

    #kelas .kelas-video-box {
        width: 210px;
        height: 110px;
        top: 10px;
        left: -15px;
    }

    #kelas .kelas-video-box h5 {
        font-size: 14px;
        top: 32px;
        left: 15px;
    }

    #kelas .kelas-video-box h6 {
        top: 42px;
        left: 15px;
    }

    #kelas .duration-button {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px;
    }

    #kelas .price {
        text-align: left;
        margin-top: 10px;
    }

    #kelas .headers {
        flex-direction: column;
        align-items: flex-start;
    }

    #kelas .button-container {
        width: 70%;
        margin-bottom: 25px;
        flex-direction: column;
        align-items: stretch;
    }

    #kelas .btn-selengkapnya {
        font-size: 16px;
        padding: 12px 20px;
        width: 100%;
        text-align: center;
    }

    #kelas .total-payment-amount {
        font-size: 1.8em;
    }

    #kelas .buy-package-button,
    #kelas .already-paid-button {
        text-decoration: none !important;
        width: 100%;
        text-align: center;
        padding: 10px;
        font-size: 1em;
    }

    #kelas .right-align {
        position: static;
        text-align: right;
        margin-top: 10px;
    }

    #kelas .category-badge {
        font-size: 14px;
        margin-bottom: 5px;
    }

    #kelas .card-body {
        padding: 0 1rem;
    }

    .package-text {
        font-size: 16px !important;
    }

    .price {
        font-size: 16px !important;
    }

    .kelas-list {
        display: flex;
        flex-wrap: nowrap;
        margin-bottom: 0;
    }

    .kelas-desc {
        flex: 0 0 0;
        width: 350px;
    }

    .card {
        width: 250px;
    }

    .card img {
        max-height: 200px !important;
    }

    .kelas-scroll-wrapper {
        overflow-x: auto;
        scroll-behavior: smooth;
        padding-bottom: 1rem;
        padding-left: 24px;
    }

    .kelas-list {
        flex-wrap: nowrap;
        display: flex;
    }
}

/* Tablet */
@media (max-width: 1023px) and (min-width: 768px) {
    #kelas {
        padding: 20px 0;
    }

    #kelas h1,
    #kelas h2 {
        font-size: 36px;
    }

    #kelas h3 {
        font-size: 20px;
    }

    #kelas .container {
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin: 0;
    }

    .kelas-judul {
        padding: 0 50px;
    }

    .kelas-list {
        width: 350px;
        margin-bottom: 40px;
    }

    .kelas-desc {
        margin-top: 35px;
        width: 100%;
    }

    .kelas-scrap {
        position: relative;
        z-index: 10;
    }

    .kelas-scrap img {
        position: absolute;
        top: -35px;
        left: 75px;
        width: 200px;
        height: 200px;
        object-fit: cover;
        z-index: -1;
    }

    .kelas-desc h2 {
        font-size: 40px;
    }

    #kelas .kelas-video-box {
        width: 250px;
        height: 130px;
        top: 10px;
        left: -20px;
    }

    #kelas .kelas-video-box h5 {
        font-size: 16px;
        top: 36px;
        left: 20px;
    }

    #kelas .kelas-video-box h6 {
        top: 48px;
        left: 20px;
    }

    #kelas .duration-button {
        flex-direction: row;
        align-items: center;
        gap: 10px;
        padding: 12px;
    }

    #kelas .price {
        text-align: left;
        margin-top: 15px;
    }

    #kelas .headers {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    #kelas .button-container {
        width: 80%;
        margin-bottom: 30px;
        flex-direction: row;
        gap: 10px;
        align-items: center;
    }

    #kelas .btn-selengkapnya {
        font-size: 16px;
        padding: 12px 24px;
        width: auto;
    }

    #kelas .total-payment-amount {
        font-size: 2em;
    }

    #kelas .buy-package-button,
    #kelas .already-paid-button {
        text-decoration: none !important;
        width: auto;
        font-size: 1em;
        padding: 12px 20px;
    }

    #kelas .right-align {
        position: static;
        text-align: right;
        margin-top: 15px;
    }

    #kelas .duration-button {
        flex-direction: column;
        align-items: start;
        gap: 0;
    }

    .kelas-scroll-wrapper {
        overflow-x: auto;
        padding-bottom: 1rem;
        padding-left: 50px;
    }

    .kelas-list {
        display: flex;
        flex-wrap: nowrap;
        gap: 1rem;
    }

    .package-text {
        font-size: 18px !important;
    }

    .price {
        font-size: 18px !important;
    }

    .card img {
        max-height: 250px !important;
    }

    .indicator-button {
        display: block;
    }

    .kelas-scroll-wrapper {
        overflow-x: auto;
        scroll-behavior: smooth;
    }

    .kelas-list {
        flex-wrap: nowrap;
        display: flex;
    }
}
