@media only screen and (min-width: 1024px) {

  .navbar {
    background-color: #ffffff;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    width: 100%;
    position: absolute;
    ;
    z-index: 900;
  }


  .container1 {
    max-width: 1200px;
    margin: 0 auto;
  }

  .nav-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style-type: none;
    padding: 0;
  }

  .nav-menu li {
    margin-right: 20px;
  }

  .nav-menu li a {
    color: #333333;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
  }

  .nav-menu li a:hover {
    color: #3B3CB2;
  }

  .nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    /* Start with zero width */
    height: 3px;
    background-color: #3B3CB2;
    /* Underline color */
    transition: width 0.3s ease;
    /* Transition for width change */
  }

  @media screen and (max-width: 768px) {
    .nav-menu {
      flex-direction: column;
    }

    .nav-menu li {
      margin-bottom: 10px;
    }
  }

  .nav-menu li a:hover::after {
    width: 100%;
    /* Expand underline on hover */
  }

  .nav-menu li a.active::after {
    width: 100%;
    background-color: #3B3CB2;
  }


  .container99 {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
  }

  .image {
    flex: 1;
    text-align: right;
    padding-top: 70px;
    position: relative;
    z-index: 800;
  }

  img {
    max-width: 100%;
    height: auto;
  }



  h1 {
    padding-top: 50px;
    font-size: 72px;
    /* Atur ukuran font yang diinginkan, misalnya 36px */
    color: #3B3CB2;
  }

  p {
    font-size: 20px;
  }

  .oval-button {
    padding: 10px 20px;
    background-color: #3B3CB2;
    color: white;
    border: none;
    border-radius: 50px;
    /* Nilai border-radius yang besar untuk membuat bentuk oval */
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 580px;
  }

  .oval-button:hover {
    background-color: #3B3CB2;
  }

  .container3 {
    height: 100vh;
    /* Tinggi container sesuaikan dengan kebutuhan */
    overflow: hidden;
    /* Menyembunyikan overflow dari konten */
    position: relative;
    /* Membuat posisi relatif untuk child element */
  }

  html,
  body {
    height: 100%;
    overflow-y: auto;
  }

  .horizontal-line {
    position: relative;
    left: 43%;
    transform: translateX(-50%);
    width: 500px;
    /* Lebar garis, sesuaikan dengan kebutuhan */
    height: 1px;
    /* Tinggi garis */
    background-color: black;
    /* Warna garis */
    margin: 20px 0;
    /* Jarak dari atas dan bawah garis */
  }

  /* Style untuk konten */
  .container5 {
    display: flex;
    flex-direction: column;
    height: 350px;
    padding-left: 125px;
    margin-bottom: 20px;

  }

  .row {
    display: flex;
    margin-bottom: 20px;
  }

  .col {
    display: flex;
    flex-direction: row;
    /* Mengatur tata letak menjadi baris */
    align-items: center;
    /* Pusatkan item secara vertikal */
    padding: 10px;
  }

  .text1 {
    margin-top: 10px;
    text-align: left;
    overflow: hidden;
  }

  .gambar {
    width: 500px;
    height: 500px;
    margin-right: 10px;
  }

  .centered-text {
    text-align: center;
  }

  .horizontal-line1 {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    /* Lebar garis, sesuaikan dengan kebutuhan */
    height: 1px;
    /* Tinggi garis */
    background-color: black;
    /* Warna garis */
    margin: 20px 0;
    /* Jarak dari atas dan bawah garis */
  }

  .horizontal-line2 {
    position: relative;
    left: 10%;
    width: 80%;
    /* Lebar garis, sesuaikan dengan kebutuhan */
    height: 1px;
    /* Tinggi garis */
    background-color: black;
    /* Warna garis */
    margin: 20px 0;
    /* Jarak dari atas dan bawah garis */
  }


  .text {
    flex: 1;
    padding: 20px;
  }

  .image2 {
    flex: 1;
    text-align: left;
    padding-top: 70px;
    position: relative;
    z-index: 800;
  }

  img {
    max-width: 100%;
    height: auto;
  }

  .container98 {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    margin-left: 100px;
    padding-left: 100px;
    left: 100px;
  }

  h2 {
    padding-top: 50px;
    font-size: 42px;
    color: #3B3CB2;
  }

  h3 {
    font-size: 24px;
  }

  .scroll-container {
    display: flex;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    /* Mengatur agar konten tidak turun ke baris baru */
    justify-content: flex-start;
    /* Susun konten ke kiri */
  }

  .scroll-content {
    display: flex;
    white-space: nowrap;
    /* Mengatur agar konten tidak turun ke baris baru */
    animation: scrollRight 20s linear infinite;
    /* Animasi geser ke kiri dan ke kanan selama 10 detik secara terus-menerus */

  }

  @keyframes scrollRight {
    0% {
      transform: translateX(0%);
      /* Mulai dari kanan layar */
    }

    100% {
      transform: translateX(-50%);
      /* Geser ke kiri hingga ke luar layar sejauh 100% */
    }

    /* Geser konten ke kanan sejauh 100% dari lebar container */
  }

  .ptest {
    display: inline-block;
    /* Mengatur agar setiap data muncul di baris yang sama */
    margin-right: 20px;
    /* Jarak antar data */
  }

  .box {
    width: 350px;
    height: 300px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    margin: 10px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin-left: 10px;
  }

  span {
    margin-top: 20px;
    align-self: flex-start;
    padding-left: 65px;
    font-size: 18px;
  }

  .gambar2 {
    width: 50px;
    height: 50px;
    position: absolute;
    top: 10px;
    left: 5px;
  }

  .gambar3 {
    width: 25px;
    height: 25px;
    position: absolute;
    top: 40px;
    left: 65px;
  }

  .span1 {
    margin-top: 0px;
    align-self: flex-start;
    padding-left: 65px;
    font-size: 18px;
    margin-left: 25px;
  }

  .gambar4 {
    width: 50px;
    height: 50px;
    position: absolute;
    top: 10px;
    right: 5px;
  }

  .horizontal-line1 {
    position: relative;
    left: 150px;
    transform: translateX(-50%);
    width: 80%;
    /* Lebar garis, sesuaikan dengan kebutuhan */
    height: 1px;
    /* Tinggi garis */
    background-color: black;
    /* Warna garis */
    margin: 20px 0;
    /* Jarak dari atas dan bawah garis */
  }

  .keterangan {
    overflow: hidden;
    text-overflow: ellipsis;
    /* Mengatur agar teks yang melebihi kotak ditampilkan sebagai ellipsis */
    line-height: 1.5em;
    /* Tinggi baris */
    height: 7.5em;
    /* Lebih tinggi dari 5 baris */
  }

  .footerhome {
    position: relative;
    bottom: 0;
    width: 100%;
    background-color: #3B3CB2;
    color: #fff;
    text-align: center;
    padding: 20px 0;
  }

  .footerlogin {
    position: absolute;
    bottom: 0;
    width: 100%;
    background-color: #3B3CB2;
    color: #fff;
    text-align: center;
    padding: 20px 0;
  }


  .card-login {
    border-radius: 15px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
  }

  .card-header-login {
    background: linear-gradient(45deg, #3B3CB2, #8e44ad);
    color: #fff;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
  }

  .btn-login {
    background: linear-gradient(45deg, #3B3CB2, #8e44ad);
    border: none;
    color: #fff;
  }

  .btn-login:hover {
    background: linear-gradient(45deg, #3B3CB2, #732d91);
  }

  .card {
    margin-top: 50px;
    background: #3B3CB2;
  }

  .card-header {
    background-color: #3B3CB2;
    font-weight: bold;
  }

  .btn-primary {
    width: 100%;
    background: linear-gradient(45deg, #3B3CB2, #3B3CB2);
  }

  .spanregister {
    color: #3B3CB2;
    font-size: 14px;
    text-align: left;
  }




}

@media only screen and (max-device-width: 480px) {
  .gambar {
    width: 350px;
    height: 300px;
  }
  .text {
    padding: 10px;
}


  .oval-button:hover {
    background-color: #3B3CB2;
  }

  .oval-button {
    padding: 10px 10px;
    background-color: #3B3CB2;
    color: white;
    border: none;
    border-radius: 50px;
    /* Nilai border-radius yang besar untuk membuat bentuk oval */
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 350px;
  }

  .navbar {
    background-color: #ffffff;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    width: 100%;
    position: absolute;
    z-index: 900;
  }

  .container1 {
    max-width: 360px;
    margin: 0 auto;
  }

  .nav-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style-type: none;
    padding: 0;
  }

  .nav-menu li {
    margin-right: 20px;
  }

  .nav-menu li a {
    color: #333333;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
  }

  .nav-menu li a:hover {
    color: #3B3CB2;
  }

  .nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: #3B3CB2;
    transition: width 0.3s ease;
  }

  @media screen and (max-width: 768px) {
    .nav-menu {
      flex-direction: column;
    }

    .nav-menu li {
      margin-bottom: 10px;
    }
  }

  .nav-menu li a:hover::after {
    width: 100%;
  }

  .nav-menu li a.active::after {
    width: 100%;
    background-color: #3B3CB2;
  }



  .scroll-container {
    display: flex;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    justify-content: flex-start;
  }

  .scroll-content {
    display: flex;
    white-space: nowrap;
    animation: scrollRight 20s linear infinite;

  }

  @keyframes scrollRight {
    0% {
      transform: translateX(0%);
    }

    100% {
      transform: translateX(-50%);
    }

  }

  .ptest {
    display: inline-block;
    margin-right: 20px;
  }




  .horizontal-line1 {
    position: relative;
    left: 150px;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background-color: black;
    margin: 20px 0;
  }



  .footerhome {
    position: relative;
    bottom: 0;
    width: 100%;
    background-color: #3B3CB2;
    color: #fff;
    text-align: center;
    padding: 20px 0;
  }

  .footerlogin {
    position: absolute;
    bottom: 0;
    width: 100%;
    background-color: #3B3CB2;
    color: #fff;
    text-align: center;
    padding: 20px 0;
  }


  .card-login {
    border-radius: 15px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
  }

  .card-header-login {
    background: linear-gradient(45deg, #3B3CB2, #8e44ad);
    color: #fff;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
  }

  .btn-login {
    background: linear-gradient(45deg, #3B3CB2, #8e44ad);
    border: none;
    color: #fff;
  }

  .btn-login:hover {
    background: linear-gradient(45deg, #3B3CB2, #732d91);
  }

  .card {
    margin-top: 50px;
    background: #3B3CB2;
  }

  .card-header {
    background-color: #3B3CB2;
    font-weight: bold;
  }

  .btn-primary {
    width: 100%;
    background: linear-gradient(45deg, #3B3CB2, #3B3CB2);
  }

  .spanregister {
    color: #3B3CB2;
    font-size: 14px;
    text-align: left;
  }



}