
/*body*/
* {box-sizing: border-box;}

body { font-family: Arial, Helvetica, sans-serif; background: #ffffff; padding: 0px; margin: 0px auto;}

@media (max-width: 768px) {body {flex-direction: column; align-items: stretch;}
}

/*header*/ 
header {background: #950000; color: #fff; padding: 10px; text-align: center; font-size: 20px; font-weight: bold;}

/*container*/
.container {width: 100%; box-sizing: border-box; }

.container-info {width: 100%; background: #ffffff; text-align: center; margin: 0px auto; padding: 10px; border-bottom: 1px solid #4a4a4a; box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2); gap: 10px;}

.container-menu {width: 70%; background-color: #e2f1ff; padding: 15px; display: flex; margin: 0px auto; flex-direction: column; gap: 5px;}

.container-cover {width: 100%; display: flex; color: #fff; justify-content: center; margin: 0px auto; flex-direction: column;}

.container-tengah1 {width: 100%; display: flex; justify-content: center; margin: 0px auto; gap: 2px;}

.container-tengah2 {width: 100%; display: flex; justify-content: center; margin: 0px auto; flex-direction: column; gap: 1px;}

.container-bawah {width: 100%; display: flex; justify-content: center; align-items: center; position: fixed;
                    bottom: 0; left: 0; z-index: 1000; flex-direction: column;}

.container-kiri {width: 80%; align-items: center; justify-content: center;}

.container-kanan {width: 20%; align-items: center; justify-content: center; border-radius: 8px;}

.container-20 {width: 20%; margin: 0px auto;}

.container-form {width: 40%; margin: 0px auto;}

.container-tengah11 {width: 100%; background: rgb(207, 207, 207); color: #000000; display: flex; justify-content: center; flex-direction: column; 
                        align-items: center; padding: 25px; margin: 0px auto; border-radius: 50px; box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.575); text-decoration: none;}

            .container-tengah11:hover {background: rgb(160, 160, 160);box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);}

.container-grid {display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; padding: 10px;}

@media (max-width: 768px) {
    .container {width: 100%;}
    .container-menu {width: 100%;}
    .container-cover {width: 100%;}
    .container-tengah1 {width: 100%; flex-direction: column; align-items: stretch;}
    .container-tengah2 {width: 100%;}
    .container-bawah {width: 100%;}
    .container-kiri {width: auto;}
    .container-kanan {width: auto;}
    .container-20 {width: 95%;}
    .container-form {width: 100%;}
    .container-grid {display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; padding: 10px;}
}


/*DETAIL*/
.judul {
  color: #da0606;
  font-weight: bold;
  margin-bottom: 3px;
  font-size: 16px;
}
.deskripsi {
  font-size: 16px;
  text-align: justify;
}
.deskripsi-depan {
  font-size: 18px;
  font-style: italic;

  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tanggal {
  font-size: 12px;
}



/*btn*/

.btn-biru {display: block; width: 100%; background: #05005f; font-size: 14px; color: #ffffff !important; text-align: center; padding: 10px; 
            margin-bottom: 0px; border-radius: 5px; text-decoration: none;}
    .btn-biru:hover {background: #322bff;}

.btn-hijau {display: block; width: 100%; background: #00510e; font-size: 14px; color: #ffffff !important; text-align: center; padding: 10px; 
            margin-bottom: 5px; border-radius: 5px; text-decoration: none;}
    .btn-hijau:hover {background: #47bb1d;}

.btn-merah {display: block; width: 100%; background: #a50000; font-size: 14px; color: #ffffff !important; text-align: center; padding: 10px; 
            margin-bottom: 5px; border-radius: 5px; text-decoration: none;}
    .btn-merah:hover {background: #ff6464;}

.btn-orange {display: block; width: 100%; background: #ee620b; font-size: 14px; color: #ffffff !important; text-align: center; padding: 10px; margin-bottom: 5px; border-radius: 40px; text-decoration: none;
              border-radius: 5px; box-shadow: 3px 3px rgba(75, 75, 75, 0.536);}
    .btn-orange:hover {background: #ff9557;}

.btn-sudut {width: fit-content; display: block; background: #950000; color: #fff; padding: 15px 40px; border-radius: 10px; 
            text-decoration: none;}
    .btn-sudut:hover {background-color: rgb(207, 4, 4); cursor: pointer;}

.btn-0 {width: auto; padding: 20px 20px; border: 0px solid #cccccc; border-radius: 5px; font-size: 14px; font-weight: bold;
        cursor: pointer; color: rgb(0, 0, 0); margin: 0px auto; display: flex; text-decoration: none; align-items: center;}
    .btn-0:hover {background-color: rgb(230, 230, 230); cursor: pointer; color: rgb(0, 0, 0);}

.btn-1 {display: inline-block; padding: 10px 10px; border: 0px solid #cccccc; border-radius: 5px; font-size: 14px; font-weight: bold;
        background-color: rgb(0, 8, 255); cursor: pointer; color: #ffffffff; text-decoration: none; text-align: center; justify-content: center;}
    .btn-1:hover {background-color: rgb(109, 106, 255); cursor: pointer; color: #ffffffff;}

.btn-2 {display: inline-block; padding: 10px 10px; border: 0px solid #cccccc; border-radius: 5px; font-size: 14px; font-weight: bold; 
        background-color: rgb(25, 107, 0); cursor: pointer; color: #ffffffff; text-decoration: none; text-align: center; justify-content: center;}
    .btn-2:hover {background-color: rgb(100, 205, 98); cursor: pointer; color: #ffffffff;}

.btn-3 {display: inline-block; padding: 10px 10px; border: 0px solid #cccccc; border-radius: 5px; font-size: 14px; font-weight: bold;
        background-color: rgb(213, 0, 0); cursor: pointer; color: #ffffffff; text-decoration: none; text-align: center; justify-content: center;}
    .btn-3:hover {background-color: rgb(255, 107, 107); cursor: pointer; color: #ffffffff;}

button {width: auto; padding: 10px 40px; border: 0px solid #ccc; border-radius: 5px; font-size: 14px; font-weight: bold; 
        background-color: rgb(0, 107, 105); cursor: pointer; color: #ffffffff; text-align: center; margin: 0px auto; display: flex;}
    button:hover {background-color: rgb(65, 167, 176); cursor: pointer; color: #ffffffff;}

input[type="submit"] {width: auto; padding: 10px 40px; border: 0px solid #ccc; border-radius: 5px; font-size: 16px; font-weight: bold;
        background-color: rgba(0, 60, 75, 0.914); cursor: pointer; color: #ffffffff; text-align: center; margin-bottom: 10px auto; display: flex;}

    input[type="submit"]:hover {background-color: rgba(0, 140, 175, 0.914); cursor: pointer; color: #ffffffff;}

.clickable-row {cursor: pointer; background-color: #ffffffff;}
        .clickable-row:hover {background-color: #c3e2ffff; transition: background-color 0.3s ease;}



/*Form*/
label { width: 100%; display: block; font-size: 15px; font-style: italic; margin-bottom: 1px; }

input, select { width: 100%; font-size: 16px; font-weight: bold; background-color: rgb(217, 217, 217); 
                border: none; border-radius: 8px; box-sizing: border-box; margin-bottom: 15px; padding: 8px;}

.form-group input[readonly] { width: 100%; font-size: 16px; font-weight: bold; background: white; border: none; 
                                box-sizing: border-box;  margin-bottom: 15px; padding: 4px;}

textarea { width: 100%; height: 200px; padding: 10px; margin-bottom: 3px; font-size: 14px;
            border-radius: 8px; border: 1px solid #6c757d; resize: vertical;}


/*huruf*/
h1 {font-size: 35px; margin: 1px;}
h2 {font-size: 25px; margin: 1px;}
h3 {font-size: 20px; margin: 1px;}
h4 {font-size: 16px; margin: 1px;}
    @media (max-width: 768px) {
        h1 {font-size: 30px; }
        h2 {font-size: 20px; }
        h3 {font-size: 16px; }
        h4 {font-size: 14px; }
        }


/*tabel*/
table {background-color: white; width: 100%; border-collapse: collapse; font-size: 12px;}
th, td {padding: 8px; border: 1px solid #ccc; text-align: left;}
.table-wrapper {width: 100%; overflow-x: auto; overflow-y: hidden; border: 1px solid #ccc; background: #fff; padding: 0px;}
.table-wrapper table {border-collapse: collapse; min-width: 800px; width: 100%;}
.table-wrapper th,
.table-wrapper td {padding-bottom: 10px; text-align: left; white-space: nowrap;}
.table-container {width: 100%; overflow-x: auto;}

/* ==== Tampilan Mobile Jadi Card ==== */
@media (max-width: 768px) {
  table, thead, tbody, th, td, tr {display: block;}
  thead {display: none;}
  tr {margin-bottom: 15px; border: 1px solid #ccc; border-radius: 8px; padding: 10px; background: #f9f9f9;}
  td {font-size: 14px; font-weight: bold; border: none; padding: 6px 10px; position: relative; text-align: left;}

  td::before {content: attr(data-label); font-size: 12px; display: block; margin-bottom: 3px; color: #333;}
}



/*search pencarian*/
.search-form {display: flex; width: 30%; padding: 0px;}

.search-form input[type="text"] {flex-grow: 1; padding: 10px 15px; border: 2px solid #ccc; border-right: none; border-radius: 5px 0 0 5px;
                                    font-size: 14px; height: 30px; box-sizing: border-box;}

.search-form button[type="submit"] {padding: 10px 15px; height: 30px; background-color: #356cb8; color: white; border: none; border-radius: 0 5px 5px 0;
                                    cursor: pointer; font-weight: bold; font-size: 14px; width: auto; box-sizing: border-box; margin-left: 0px;}



/*header*/
ul {list-style: none; margin: 0; padding: 0; background: rgb(0, 42, 63);}
ul li {position: relative; float: left;}
ul li a {display: block; padding: 10px 15px; text-decoration: none;}
ul li a:hover {background: rgb(12, 96, 205);}

    /* Submenu level 1 */
    ul li ul {display: none; position: absolute; top: 100%; right: 0; background: rgb(56, 142, 255); min-width: 280px;}
    ul li ul li {float: none;}

    /* Submenu level 2 */
    ul li ul li ul {top: 0; left: 50%;}

    /* Munculkan submenu saat hover */
    ul li:hover > ul {display: block;}


/*GRID*/

.grid {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr)); 
  gap: 1px;
}
.grid1 {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr)); 
  gap: 5px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
  background-color: #ffffff;
  padding: 5px;
}
.grid2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  max-width: 1200px;
  margin: 0 auto;
  justify-content: center;
  gap: 10px;
}
.grid > div {
  background: #f1f1f1;
  padding: 10px;
}
.grid3 {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr)); 
  gap: 1px;
}
.grid4 {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(4, minmax(0, 1fr)); 
  gap: 1px;
}

@media (max-width: 768px) {
    .grid1 {grid-template-columns: repeat(1, minmax(0, 1fr));}
}


/*CARD*/
.card2 {
  border: 1px solid #ccc;
  padding: 10px;
  margin: 20px auto;
  border-radius: 3px;
  text-align: center;
  max-width: 250px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
  width: 100%;
  background: #fff;
  overflow: hidden;
  transition: transform 0.2s ease;
}
.card2:hover {
  transform: scale(1.02);
}

.card-body2 {
  width: 100%;
}


.data-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 15px 20px;
  margin: 15px auto;
  width: 100%;
  box-shadow: 0 4px 8px rgba(0,0,0,0.5);
}

.data-card .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  border-bottom: 1px dashed #555353;
  padding-bottom: 4px;
}

/* Label kiri */
.data-card .label {
  flex: 0 0 70%;       /* Lebar tetap 40% */
  text-align: left;
  font-weight: bold;
  color: #004d40;
}

/* Value kanan */
.data-card .value {
  flex: 1;             /* Sisa ruang diisi otomatis */
  text-align: left;
  background: #fff;
  padding: 5px 10px;
  border-radius: 5px;
  color: #333;
  box-shadow: inset 0 0 3px rgba(0,0,0,0.1);
}

    /* Aturan khusus untuk layar kecil (misalnya HP) */
        @media (max-width: 768px) {
            .data-card {
                background: #fcfcfc;
                border-radius: 10px;
                padding: 10px 10px;
                margin: 5px auto;
                max-width: 100%;
                box-shadow: 0 4px 8px rgba(0,0,0,0.1);
            }

            .data-card .row {
                display: flex;
                justify-content: space-between;
                align-items: center;
                margin-bottom: 8px;
                border-bottom: 1px dashed #555353;
                padding-bottom: 4px;
            }

            /* Label kiri */
            .data-card .label {
                flex: 0 0 70%;       /* Lebar tetap 40% */
                text-align: left;
                font-weight: bold;
                color: #004d40;
            }

            /* Value kanan */
            .data-card .value {
                flex: 1;             /* Sisa ruang diisi otomatis */
                text-align: left;
                background: #fff;
                padding: 5px 8px;
                border-radius: 5px;
                color: #333;
                box-shadow: inset 0 0 3px rgba(0,0,0,0.1);
            }
        }
        


.nama {
  color: #da0606;
  font-weight: bold;
  margin-bottom: 3px;
  font-size: 16px;
}
.jabatan {
  width: 100%;
  font-size: 14px;
  font-weight: bold;
}
.info {
  font-size: 12px;
}

/*gambar*/
.img {width: 100%;}
img {
  width: 100%;
}

.profile-pic {
            width: 140px;
            height: 160px;
            border-radius: 50%;
            object-fit: cover;
            margin-bottom: 3px auto;
        }
        .profile-pic:hover {
            transform: scale(1.05);
            width: 140px;
            height: 220px;
            border-radius: 5%;
            object-fit: cover;
            margin-bottom: 3px;
        }

.whatsapp-link {
            display: inline-block;
            margin-top: 10px;
            padding: 10px 15px;
            background-color: #25D366; /* Warna hijau WhatsApp */
            color: white;
            text-decoration: none;
            border-radius: 5px;
            font-weight: bold;
        }
        
.cover-img {width: 100%; justify-content: center; text-align: center;}
.logoKecil-img {width: 70px; height: auto; justify-content: center; text-align: center;}
.logoBesar-img {width: 100%; height: auto; justify-content: center; text-align: center;}
.fotoKecil-img {width: 250px; height: auto; justify-content: center; text-align: center;}
.fotoBesar-img {width: 350px; height: auto; justify-content: center; text-align: center;}
    @media (max-width: 768px) {
        .logoKecil-img {width: 50px;}
        .logoBesar-img {width: 100%;}
        .fotoKecil-img {width: 150px;}
        .fotoBesar-img {width: 200px;}
    }


/*ikon mata buka tutup unyuk password*/
/* CSS */
.password-wrapper {
  position: relative;
  width: 100%;
  max-width: 420px; /* ubah sesuai kebutuhan */
  margin: 0;
}

/* style input agar ada ruang untuk ikon di kanan */
.password-wrapper input {
  width: 100%;
  padding: 10px 44px 10px 12px; /* kanan lebih besar untuk ikon */
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
  box-sizing: border-box;
}

/* fokus input */
.password-wrapper input:focus {
  border-color: #356cb8;
  box-shadow: 0 0 0 3px rgba(53,108,184,0.12);
}

/* lihat dan sembunyikan password */
.toggle-text {
  color: #000c5d;
  padding: 10px;
  cursor: pointer;
  font-size: 16px;
  text-decoration: none;
  box-sizing: border-box;
}

.error-message, .success-message {
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
    margin: auto;
    }
        .error-message {
            background-color: #f8d7da;
            color: #721c24;
            border: 1px solid #f5c6cb;
        }

        .success-message {
            background-color: #d4edda;
            color: #155724;
            border: 1px solid #c3e6cb;
        }

