@media (max-width: 768px) {
  body {
    background-color: white;
    overflow: hidden;
  }

  .backing {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 20vh;
    background: #0a3a57;
    animation: fade 0.5s forwards;
    border-radius: 0 0 10px 10px;
  }

  .backing-promo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10vh;
    background: #0a3a57;
    animation: fade 0.5s forwards;
    border-radius: 0 0 10px 10px;
  }

  .backing-artikel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10vh;
    background: #0a3a57;
    animation: fade 0.5s forwards;
    border-radius: 0 0 10px 10px;
  }

  .artikel-image {
    height: 200px !important;
    width: 100%;
    object-fit: cover;
    object-position: center center;
  }

  @keyframes fade {
    from {
      opacity: 0;
      transform: translateY(-100%);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .iframe {
    height: 100%;
    width: 100%;
  }

  .caro-item {
    width: 310px;
    height: 180px;
  }

  .header {
    position: relative;
    z-index: 2;
    padding: 10px;
    color: white;
  }

  .promo-ld {
    width: 300px;
    height: 120px;
    border-radius: 12px;
    box-shadow: 0 5px 2px rgba(0, 0, 0, 0.1);
  }

  .login-btn {
    background-color: #4bbc25;
    color: white;
    cursor: pointer;
  }

  .side-btn {
    background-color: #4bbc25;
    color: white;
    cursor: pointer;
  }

  .jam-btn {
    width: 100%;
    margin-bottom: 0px;
    color: #4bbc25;
    /* Menambahkan margin-bottom untuk memisahkan jam-btn */
  }

  .jam-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .sidebar {
    z-index: 100;
    color: #0a3a57;
    width: 300px;
    background-color: #ffffff;
    position: fixed;
    right: -300px;
    /* Initially off-screen */
    top: 0;
    height: 100%;
    overflow-x: hidden;
    padding-top: 20px;
    transition: right 0.3s ease-in-out;
    /* Add animation */
  }

  .card-container {
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
  }

  .produk-kartu {
    background-color: #9be78d;
    /* height: 270px; */
    width: 100%;
    box-sizing: border-box;
  }

  .laris {
    width: 200px;
    height: 200px;
  }

  .isi-produk {
    width: 150px;
    height: 220px;
    border-radius: 10px;
  }

  .isi-gambar {
    width: 100%;
    height: 55%;
    object-fit: cover;
    object-position: center;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
  }

  h4 {
    font-size: 24px;
    /* Sesuaikan ukuran font sesuai kebutuhan */
    font-weight: bold;
    text-shadow: 0px 0px 5px #ffffff;
    /* Atur ukuran dan warna stroke */
  }

  .small-text {
    margin: 0;
    /* Set margin menjadi 0 untuk menghilangkan spacing di atas dan di bawah teks */
    line-height: 1;
    /* Atur line-height untuk membuat teks lebih rapat */
  }

  .card {
    border-radius: 12px;
    display: flex;
  }

  .card img {
    border-radius: 12px 0 0 12px;
    width: 100%;
    height: 100%;
    /* Sesuaikan dengan kebutuhan */
    object-fit: cover;
  }

  .profile-gambar {
    width: 120px;
    height: 120px;
  }

  .artikel-gambar {
    width: 80px;
    height: 80px;
    border: 1px black solid;
    border-radius: 5px;
    object-fit: cover;
    object-position: center;
  }

  .profile-data {
    width: 250px;
  }

  .artikel-data {
    width: 250px;
  }

  .card-body {
    padding: 20px;
  }

  .card-title {
    margin-bottom: 10px;
    color: #4bbc25;
    font-size: 18px;
    /* Ubah ukuran font sesuai keinginan */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .card-text {
    margin-bottom: 5px;
  }

  .ucapan {
    position: relative;
    /* Atau position: absolute; atau position: fixed; sesuai kebutuhan */
    text-align: center;
    margin-top: 20px;
    z-index: 2;
  }

  .item-container {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    padding: 10px;
  }

  .item-daftar {
    white-space: nowrap;
    flex-wrap: wrap;
  }

  .item-def {
    display: inline-block;
    margin: 10px;
    border-radius: 10px;
    width: 150px;
    height: 240px;
    min-width: 150px;
    max-width: 300px;
    min-height: 240px;
    background-color: #ffffff;
    box-shadow: 0 5px 2px rgba(0, 0, 0, 0.1);
  }

  .item {
    display: inline-block;
    margin: 10px;
    border-radius: 10px;
    width: 150px;
    height: 240px;
    min-width: 150px;
    max-width: 300px;
    min-height: 240px;
    background-color: #ffffff;
    box-shadow: 0 5px 2px rgba(0, 0, 0, 0.1);
  }

  .item-nama {
    font-size: 14px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    margin: 10px 0;
  }

  .item-harga {
    font-weight: bold;
    font-size: 18px;
  }

  .small-btn {
    font-size: 12px;
    padding: 5px 10px;
  }

  .label {
    position: relative;
    top: 10px;
    right: 10px;
    background-color: red;
    color: white;
    padding: 3px 5px;
    font-size: 12px;
    border-radius: 5px;
    z-index: 3;
  }

  .promo-image {
    width: 90%;
    height: 100px;
    border-radius: 12px 12px 0 0;
    object-fit: cover;
    object-position: center;
    border: #0a3a57 1px solid;
  }

  .promo-detail {
    width: 90%;
    height: 100px;
    object-fit: cover;
    object-position: center;
    border: #0a3a57 1px solid;
  }

  .karcis {
    width: 90%;
    height: 50px;
    border: #0a3a57 1px solid;
    border-radius: 0 0 12px 12px;
  }

  .karcis-text {
    font-size: 18px;
    font-weight: bold;
  }

  .card-topart {
    height: 120px;
  }

  .kotak-art {
    height: 80px;
    width: 130px;
  }

  .artikel-card {
    background-color: #ffffff;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2);
    padding: 10px;
  }

  .artikel-content {
    overflow: hidden;
    width: 350px;
    height: 200px;
  }

  .art-image {
    width: 350px;
    height: 100%;
    object-fit: cover;
    object-position: center center;
  }

  .tgl {
    background-color: #a6cf98;
    width: 40%;
    border-radius: 5px;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.1);
  }

  /* RIwayat Pemeriksaaan */
  .scrolling-wrapper {
    overflow-x: auto;
    white-space: nowrap;
  }

  .nav-item {
    display: inline-block;
    margin-right: 15px;
    /* Adjust the spacing between buttons as needed */
  }

  .nav-item button {
    background: none;
    border: none;
    padding: 0;
    color: black;
    text-decoration: none;
    cursor: pointer;
  }

  .nav-item button.active {
    color: blue;
    /* Set the text color for the active menu */
    border-bottom: 2px solid blue;
    /* Add a bottom border for the active menu */
  }
}

@media (max-width: 768px) {
  .tgl {
    background-color: #a6cf98;
    width: 40%;
    border-radius: 5px;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.1);
  }

  .ultimate-padding {
    padding-top: 80px;
  }

  .kotak {
    height: 25vh;
    background: linear-gradient(to top, #a6cf98, #b2e6a1);
    /* Gradient dari atas ke bawah */
    border-radius: 0 0 35px 35px;
    width: 100%;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  }

  .menu-container {
    display: flex;
  }

  .menu-item {
    color: #ffffff;
    margin: 10px;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
  }

  .menu-item:hover {
    filter: brightness(1.2);
    /* Efek cahaya saat dihover */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* Bayangan saat dihover */
  }

  .menu-item .mdi {
    font-size: 1rem;
    margin-bottom: 3px;
  }

  .menu-item.sale {
    background-color: #ff6347;
    /* Warna merah untuk sale (promo) */
  }

  .menu-item.tag {
    background-color: #87cefa;
    /* Warna biru untuk tag (produk) */
  }

  .menu-item.history {
    background-color: #90ee90;
    /* Warna hijau untuk history (riwayat) */
  }

  .menu-item.newspaper {
    background-color: #ff69b4;
    /* Warna merah muda untuk newspaper (artikel) */
  }

  .promo-container {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;

    /* Untuk mendukung efek overscroll pada perangkat mobile */
  }

  .promo-kotak {
    flex: 0 0 290px;
    background-color: #ffffff;
    width: 290px;
    height: 140px;
    border-radius: 20px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    object-position: center;
  }

  .produk-container {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    /* Untuk mendukung efek overscroll pada perangkat mobile */
  }

  .produk-kotak {
    flex: 0 0 190px;
    background-color: #ffffff;
    width: 190px;
    height: 220px;
    border-radius: 5px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
  }

  .produk-img {
    width: 100%;
    height: 60%;
    border-radius: 10px 10px 0 0;
    object-fit: cover;
    object-position: center;
  }

  .artikel-container {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    /* Untuk mendukung efek overscroll pada perangkat mobile */
  }

  .artikel-kotak {
    flex: 0 0 250px;
    background-color: #ffffff;
    width: 250px;
    height: 220px;
    border-radius: 10px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
  }

  .artikel-img {
    width: 100%;
    height: 60%;
    border-radius: 5px 5px 0 0;
    object-fit: cover;
    object-position: center;
  }

  .jadwal {
    border: 1px black solid;
    width: 40%;
  }

  .side-head {
    width: 100%;
    height: 50px;
    background-color: #0a3a57;
    color: #ffffff;
    border-radius: 10px;
  }

  .icon-container:active {
    transform: scale(1.1);
    transition: transform 0.4s ease;
  }

  .close-btn:active {
    transform: scale(1.1);
    transition: transform 0.4s ease;
  }

  .icon {
    color: #0a3a57 !important;
    font-size: 2rem;
  }
}
