#layanan .container {
    position: relative;
    padding-bottom: 75px;
}

#layanan .judul-container {
    position: relative;
    width: 60%;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
    background-color: #fff21b;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.layanan-head-img {
    position: absolute;
    top: -90px;
    left: 180px;
    width: 350px;
    height: 335px;
    z-index: -1;
}

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

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

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

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

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

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

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

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

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

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

#layanan .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: 25px;
}

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

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

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

#layanan .video-box {
    margin-top: 10px;
    top: 20px;
    left: -20px;
    font-style: italic;
    position: absolute;
    background-color: #ffffff;
    width: 40%;
    height: 30%;
    padding: 5px;
    transform: rotate(-10deg) skew(-10deg);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

#layanan .video-box h5 {
    transform: skew(10deg);
    color: #e74c3c;
    font-size: 12px;
    margin-left: 10px;
}

#layanan .video-box h6 {
    transform: skew(10deg);
    margin-top: 5px;
    margin-left: 10px;
    color: #2c4964;
    font-size: 16px;
    font-weight: bold;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

#layanan .right-align {
    position: absolute;
    right: 20px;
}

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

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

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

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

#layanan .buy-whatsapp:disabled {
    background-color: #a0a0a0;
    cursor: not-allowed;
}

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

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

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

#layanan .button-container {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

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

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

#layanan .category-layanan {
    background-color: #ffc107;
    color: red;
    text-transform: uppercase;
    font-weight: bold;
}

.service-item {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.service-item i {
    margin-right: 5px;
}

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

/* Mobile */
@media (max-width: 767px) {
    #layanan {
        padding: 20px 0;
    }

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

    #layanan .container-sip {
        margin-top: 40px;
    }

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

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

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

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

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

    #layanan .kelas-video-box {
        width: 250px;
        height: 150px;
    }

    #layanan .kelas-video-box h5,
    #layanan .kelas-video-box h6 {
        font-size: 16px;
    }

    #layanan .kelas-video-box h5 {
        left: 10px;
        top: 50px;
    }

    #layanan .kelas-video-box h6 {
        left: 10px;
        top: 65px;
    }

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

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

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

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

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

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

    #layanan .already-paid-button {
        text-decoration: none !important;
        font-size: 1em;
        padding: 8px 16px;
    }

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

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

    .layanan-head-img {
        top: -60px;
        left: 85px;
        width: 150px;
        height: 200px;
    }

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

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

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

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

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

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

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

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

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

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

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

    #layanan .judul-container h2 {
        font-size: 18px;
    }

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

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

    .layanan-head-img {
        top: -50px;
        left: 150px;
        width: 225px;
        height: 220px;
    }

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

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

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

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

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

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

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

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

    #layanan .already-paid-button {
        text-decoration: none !important;
        font-size: 1em;
        padding: 8px 16px;
    }

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

    #layanan .row {
        margin-bottom: 50px;
    }

    .layanan-produk {
        display: flex;
        flex-wrap: nowrap;
        gap: 25px;
    }

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

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