#kelas {
    width: 100%;
    height: auto;
    position: relative;
    background-image: url("/masterplans/assets/productmain.png");
    background-size: cover;
    background-repeat: repeat-x;
    padding: 20px 0;
    overflow-x: hidden;
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 20px;
    padding-bottom: 20px;
}

#kelas .container {
    position: relative;
    padding-top: 50px;
}

#kelas .judul-kelas-container {
    width: 60%;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
    background-color: #fff21b;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
}

.judul-container {
    display: flex;
    justify-content: end;
}

#kelas .judul-kelas-container h2 {
    font-size: 24px;
    color: black;
}

#kelas .judul-kelas-container h1 {
    font-size: 48px;
    color: black;
    font-weight: bold;
}

#kelas .judul-kelas-container h4 {
    font-size: 18px;
    color: black;
    font-style: italic;
}

#kelas .row {
    margin-top: 50px;
}

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

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

#kelas h4 {
    margin-top: 10px;
    font-size: 24 px;
    color: black;
}

#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;
    margin-bottom: 15px;
}

.card img {
    border-radius: 10px;
}

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

/* #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;
    background-color: red;
}

#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: 20px;
}

#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-whatsapp {
    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);
    font-weight: bold;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    font-size: 1.2em;
    cursor: pointer;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

#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 {
    background: linear-gradient(
        to right,
        rgb(59, 130, 246),
        rgb(37, 99, 235)
    ); /* biru muda → biru tua */
    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);
    font-weight: bold;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    font-size: 1.2em;
    cursor: pointer;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    text-decoration: none !important;
    display: inline-block;
    text-align: center;
    transition: background-position 0.3s ease;
}

#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;
    justify-content: center;
    margin-top: 30px;
}

#kelas .btn-selengkapnya {
    background: rgb(255, 190, 32);
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    font-weight: bold;
    font-size: 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#kelas .btn-selengkapnya:hover {
    background-image: linear-gradient(180deg, #dda20a 10%, #c59a0a 100%);
}

.label-kelas {
    position: relative;
    width: 100%;
    margin-top: 75px;
    margin-bottom: 50px;
}

.underline-kelas {
    border: 2px solid #dfdfee;
}

.title-kelas {
    position: absolute;
    left: 50%;
    top: -20px;
    transform: translateX(-50%);
    display: inline-block;
    background-color: #dfdfee;
    color: #e31d49;
    font-size: 20px;
    font-weight: 500;
    padding: 5px 15px;
    border-radius: 10px;
}

.label-kelas-business {
    position: relative;
    width: 100%;
    margin-top: 75px;
    margin-bottom: 50px;
}

.underline-kelas-business {
    border: 2px solid #dfdfee;
}

.title-kelas-business {
    position: absolute;
    left: 50%;
    top: -20px;
    transform: translateX(-50%);
    display: inline-block;
    background-color: #dfdfee;
    color: #e31d49;
    font-size: 20px;
    font-weight: 500;
    padding: 5px 15px;
    border-radius: 10px;
}

.kelas-head {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    z-index: 1;
}

.kelas-head-img-1 {
    position: absolute;
    top: -115px;
    left: 150px;
    width: 375px;
    height: 335px;
    z-index: -1;
}

.header-wrapper {
    width: 100%;
    display: flex;
    justify-content: end;
}

/* @media (min-width: 1024px) {
    #kelas > div > div:nth-child(3) > div {
        justify-content: end !important;
    }
} */

/* Mobile */
@media (max-width: 767px) {
    #kelas {
        padding: 20px 0;
        background-size: auto;
        background-repeat: no-repeat;
    }

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

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

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

    #kelas .judul-kelas-container {
        width: 100%;
        margin: 0;
        padding: 10px;
    }

    .header-wrapper {
        padding: 0 24px;
    }

    #kelas .judul-kelas-container h2 {
        font-size: 16px;
    }

    #kelas .judul-kelas-container h1 {
        font-size: 22px;
    }

    #kelas .judul-kelas-container h4 {
        font-size: 14px;
        text-align: end;
        margin-top: 0;
    }

    #kelas .card {
        margin-bottom: 10px;
    }

    #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 .collapse-content {
        font-size: 14px;
    }

    #kelas .duration-button {
        flex-direction: column;
        align-items: flex-start;
        font-size: 1em;
        padding: 8px 16px;
    }

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

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

    #kelas .price {
        font-size: 1em;
    }

    #kelas .category-badge {
        font-size: 12px;
        padding: 2px 4px;
    }

    #kelas .buy-package-button {
        font-size: 1em;
        padding: 8px 16px;
    }

    #kelas .already-paid-button {
        font-size: 1em;
        padding: 8px 16px;
    }

    #kelas .btn-selengkapnya {
        font-size: 16px;
        padding: 8px 16px;
    }

    .label-kelas {
        margin-top: 50px;
        margin-bottom: 0;
    }

    .title-kelas {
        font-size: 12px;
        padding: 5px 10px;
        top: -10px;
        width: 200px;
        text-align: center;
    }

    .label-kelas-business {
        margin-top: 50px;
        margin-bottom: 0;
    }

    .title-kelas-business {
        font-size: 12px;
        padding: 5px 10px;
        top: -10px;
        width: 200px;
        text-align: center;
    }

    .kelas-head-img-1 {
        top: -70px;
        left: 40px;
        width: 200px;
        height: 200px;
    }

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

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

    .kelas-produk {
        display: flex;
        flex-wrap: nowrap;
        gap: 0;
    }

    .card-wrapper {
        width: auto;
        margin-bottom: 0 !important;
    }

    .card {
        width: 250px;
    }

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

    .stakeholder .container {
        margin-bottom: 0;
    }
}

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

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

    .header-wrapper {
        margin-top: 25px;
        padding: 0 50px;
    }

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

    #kelas .judul-kelas-container {
        width: 80%;
        margin: 0;
        padding: 10px;
    }

    #kelas .judul-kelas-container h2 {
        font-size: 20px;
    }

    #kelas .judul-kelas-container h1 {
        font-size: 36px;
    }

    #kelas .judul-kelas-container h4 {
        font-size: 16px;
    }

    .kelas-head-img-1 {
        top: -65px;
        left: 135px;
        width: 275px;
        height: 220px;
    }

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

    #kelas h4 {
        font-size: 18px;
    }

    #kelas .card {
        margin-bottom: 10px;
    }

    #kelas .card-title {
        font-size: 26px !important;
    }

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

    .category-badge {
        font-size: 20px !important;
    }

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

    .package-text,
    .price {
        font-size: 20px !important;
    }

    #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 .kelas-video-box h5,
    #kelas .kelas-video-box h6 {
        font-size: 16px;
    }

    #kelas .collapse-content {
        font-size: 14px;
    }

    #kelas .duration-button {
        font-size: 1em;
        padding: 8px 16px;
    }

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

    #kelas .price {
        font-size: 1em;
    }

    #kelas .buy-package-button {
        font-size: 1em;
        padding: 8px 16px;
    }

    #kelas .already-paid-button {
        font-size: 1em;
        padding: 8px 16px;
    }

    #kelas .btn-selengkapnya {
        font-size: 16px;
        padding: 8px 16px;
    }

    .label-kelas {
        margin-top: 50px;
        margin-bottom: 0;
    }

    .title-kelas {
        font-size: 14px;
        padding: 5px 10px;
        top: -15pxpx;
    }

    .label-kelas-business {
        margin-top: 50px;
        margin-bottom: 0;
    }

    .title-kelas-business {
        font-size: 14px;
        padding: 5px 10px;
        top: -15pxpx;
    }

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

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

    .kelas-produk {
        display: flex;
        flex-wrap: nowrap;
        gap: 25px;
        margin-left: 25px;
    }

    .card-wrapper {
        margin-bottom: 0 !important;
    }

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

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