@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins",  sans-serif;  
  }

  body,html {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background: linear-gradient(135deg, #007bff, #008CDC);
  }
  

  .navbar {
      /* position: fixed; */
      top: 0;
      left: 0;
      width: 100%;
      padding: 0 200px;
      background: transparent;
      display: flex;
      justify-content: space-between;
      align-items: center;
      z-index: 100;
  }

  .nav-item {
    font-weight: 500;
}

  .header .logo {
      font-size: 1.5rem;
      font-weight: bold;
  }

  .navbar a {
      color: #ffffff;
      font-size: 1.1rem;
      text-decoration: none;
  }

  /* .navbar a:hover {
      color: #fff;
      background-color: #006CDC;
  } */


  .hero-section-container {
    display: flex;
    flex-wrap: wrap; /* Pastikan elemen dapat membungkus */
}

.hero-section {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    padding: 50px 0;
    padding-bottom: 200px;
    margin-left: 200px;
    color: #ffffff;
}

.hero-content {
    flex: 1;
    padding: 20px;
}

.hero-content h1 {
    font-size: 2.5rem;
    color: #ffffff;
}

.hero-content p {
    font-size: 1.1rem;
    font-weight: 300;
    color: #ffffff;
}

.hero-content h1 span {
    font-weight: bolder;
    font-size: 3.9rem;
    color: #ffffff; /* Highlight text color */
}

.cta-button {
    background-color: transparent;
    color: white;
    border: 2px solid #ffffff;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    text-decoration: none;
}

.cta-button:hover {
    text-decoration: underline;
    color: #ffffff; /* Ubah warna teks menjadi putih saat di-hover */
}

.hero-image {
    flex: 1; /* Membuat kolom gambar menempati separuh layar */
    display: flex;
    justify-content: center;
    margin-top: 20px; /* Jarak atas saat di bawah hero-content */
}

.hero-image img {
    width: 100%; /* Membuat gambar memenuhi kolom sepenuhnya */
    height: auto; /* Biarkan tinggi menyesuaikan otomatis */
    max-width: none; /* Hilangkan batasan lebar maksimum */
}

/* Responsif untuk tablet dan mobile */
@media (max-width: 768px) {
    .hero-section-container {
        flex-direction: column; /* Atur elemen dalam kolom */
        align-items: center;
    }

    .hero-section {
        margin-left: 0; /* Hilangkan margin untuk layar kecil */
        padding-bottom: 50px; /* Kurangi jarak bawah */
    }

    .hero-image {
        order: 2; /* Pastikan hero-image muncul setelah hero-content */
        margin-top: 20px; /* Tambahkan jarak di atas gambar */
    }

    .hero-content {
        text-align: center; /* Teks di tengah untuk layar kecil */
    }

    .hero-content h1 {
        font-size: 2rem; /* Ukuran teks lebih kecil untuk layar kecil */
    }

    .hero-content h1 span {
        font-size: 2.5rem; /* Sesuaikan ukuran highlight */
    }

    .cta-button {
        font-size: 0.9em; /* Sesuaikan ukuran tombol */
        padding: 8px 15px;
    }
}


 /* mitra kontainer */
 /* Memberikan jarak antara mitra-container dan elemen di atasnya */
 .mitra-container {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-top: 40px; /* Menambahkan jarak dari atas */
}

/* Menyelaraskan warna latar belakang text-container dan center text */
.text-container {
    background-color: #f9f9f9; /* Warna sama dengan mitra-container */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    text-align: center; /* Menyelaraskan teks di tengah */
}

.logo-slider {
    overflow: hidden;
    position: relative;
}

.logo-track {
    display: flex;
    gap: 20px;
    animation: slide 15s linear infinite;
    white-space: nowrap;
}

.logo-col {
    flex: 0 0 25%; /* Setiap kolom berukuran 25% dari kontainer logo */
    display: flex;
    justify-content: center;
    align-items: center;
}

.mitra-logo {
    width: auto;
    height: 60px; /* Atur tinggi logo agar seragam */
    max-width: 100px; /* Atur lebar maksimum jika diperlukan */
    object-fit: contain; /* Pastikan logo tidak terpotong dan tetap proporsional */
}


@keyframes slide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Responsif untuk layar kecil */
@media (max-width: 768px) {
    .mitra-container {
        padding: 15px;
        max-width: 100%;
    }
    
    .logo-col {
        flex: 0 0 40%; /* Logo lebih kecil di layar kecil */
    }

    .mitra-logo {
        max-height: 60px;
    }
}

/* Responsif untuk layar sangat kecil */
@media (max-width: 576px) {
    .mitra-container {
        padding: 10px;
    }

    .logo-col {
        flex: 0 0 50%; /* Logo lebih besar untuk tampilan lebih baik */
    }

    .mitra-logo {
        max-height: 50px;
    }
}


.app-download {
    text-align: center;
    padding: 180px 20px;
    background-color: #E8F7FF;
}
.app-download h2 {
    font-size: 28px;
    font-weight: 700;
}
.download-button {
    background-color: transparent;
    color: #008CDC;
    padding: 10px 20px;
    border:2px solid #008CDC;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.download-button:hover {
    background-color: #008CDC; /* Warna latar belakang berubah saat di-hover */
    color: #ffffff; /* Ubah warna teks menjadi putih saat di-hover */
}

.section {
    padding: 60px;
}

.section-kegiatan {
    background-color: #ffffff;
    padding: 60px 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.news-card {
    min-height: 450px !important; /* Menjaga tinggi minimum card agar proporsional */
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important; /* Tambahkan bayangan untuk efek elegan */
}

.news-title {
    min-height: 3em !important; /* Menyediakan ruang cukup untuk judul, menjaga proporsional */
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important; /* Membuat teks judul tidak melampaui batas */
}

.news-card img {
    object-fit: cover !important;
    height: 300px !important; /* Memastikan gambar tetap proporsional */
}

.news-card .card-body {
    flex-grow: 1 !important;
}

.gallery-card {
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    background-color: white;
    transition: all 0.3s ease-in-out;
}

.gallery-card:hover {
    box-shadow: 0 8px 16px rgba(0, 123, 255, 0.7);
    transform: translateY(-5px);
}

.gallery-card img {
    object-fit: cover;
    height: 300px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.gallery-card .card-body {
    padding: 15px;
    text-align: center;
    background-color: #f9f9f9;
}

.gallery-card .card-title {
    font-size: 1.2rem;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-primary {
    font-size: 1.2rem;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #0056b3;
}

@media (max-width: 768px) {
    .gallery-card {
        min-height: 350px;
    }

    .btn-primary {
        font-size: 1rem;
        padding: 8px 16px;
    }
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
  }

  .lightbox-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 80%;
    max-height: 80vh;
    width: auto;
    height: auto;
  }

  .lightbox-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
  }

  .lightbox-prev,
  .lightbox-next {
    font-size: 24px;
    cursor: pointer;
    padding: 90px;
  }

  .lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 24px;
    cursor: pointer;
  }


  .image-group {
    display: flex;
    flex-wrap: wrap;
  }

  .image-group img {
    flex: 0 0 33.3333%;
    cursor: pointer;
  }

  .image-group .card {
    flex: 0 0 100%;
    display: none;
  }

.section-galeri {
    background-color: #ffffff;
    padding: 60px 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}



/* Responsif untuk tablet */
@media (max-width: 992px) {
    .section-kegiatan {
        padding: 30px 50px;
        /* Kurangi padding untuk layar tablet */
    }

    .section-galeri {
        padding: 30px 50px;
        /* Kurangi padding untuk layar tablet */
    }
    
}

/* Responsif untuk mobile */
@media (max-width: 576px) {
    .section-kegiatan {
        padding: 20px 15px;
        /* Sesuaikan padding untuk layar kecil */
    }

    .section-galeri {
        padding: 20px 15px;
        /* Sesuaikan padding untuk layar kecil */
    }
}



.section-kegiatan h2 {
    text-align: center;
    font-size: 32px;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 20px;
}



.section-galeri h2 {
    text-align: center;
    font-size: 32px;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 20px;
}

.card-container {
    justify-content: center;
    display: flex;
    gap: 10px; /* Jarak antar card */
    flex-wrap: wrap; /* Membuat card otomatis berbaris baru jika ruang habis */
    margin: 0 auto; /* Memastikan container di tengah */
    padding: 10px;
}

.card-container .card {
    flex: 0 0 auto; /* Membuat setiap card berukuran tetap dan tidak mengecil */
    width: 18rem; /* Lebar tetap untuk setiap card */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); 
}



.card {
    border:none;
}



.load-more {
    margin: 20px auto;
    background-color: transparent;
    color: #007bff;
    padding: 10px 20px;
    border: 2px solid #007bff ;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    display: inline-block;
    text-align: center;
}

.load-more:hover {
    background-color: #007bff;
    color: #ffffff;
}

/* Responsif untuk tablet (max 768px) */
@media (max-width: 768px) {
    .card-container .card {
        flex: 1 1 calc(50% - 20px); /* 2 card per baris */
    }
}

/* Responsif untuk ponsel (max 480px) */
@media (max-width: 480px) {
    .card-container .card {
        flex: 1 1 100%; /* 1 card per baris */
    }
}


.icon-ps {
    width: 120px; /* Ukuran default gambar */
    height: auto;
    transition: transform 0.3s ease; /* Menambahkan transisi agar zoom halus */
    margin-bottom: 50px;
}

@media (min-width: 576px) and (max-width: 768px) { /* Mode Tablet */
    .navbar {
        padding: 0 80px;
        justify-content: space-between;
        
    }
    .hero-section {
        
        margin-left: auto;
        
    }
}

@media (max-width: 576px) { /* Mode Mobile */
    .navbar {
        padding: 0 20px;
        justify-content: space-between;
        
    }
}


.col-md-3 p{
    color: #ffffff;
}

.fab .fa-facebook {
    color: #fff;
}

.fab .fa-facebook:hover {
    color: blue;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    color: #ffffff;
}

.text-uppercase {
    color: #ffffff;
}

footer hr {
    border-color: white;
    border-width: 3px;
}

.text-decoration, .text-info {
    color:rgb(0, 119, 255) ;
}


@media (min-width: 768px) {
    .footer-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    .footer-container div {
        text-align: left;
        margin: 0 10px;
    }
}

