/* Import Google Font - Poppins for modern look */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap");

/* --- Custom Navbar Styles --- */
.custom-navbar {
  width: 100%;
  /* Darker background for the navbar */
  background-color: #342101e8;
  color: #f0f0f0;
  padding: 15px 30px;
  /* Padding sisi ditingkatkan sedikit */
  display: flex;
  justify-content: center;
  /* Pusatkan konten navbar */
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  position: sticky;
  /* Membuat navbar tetap di atas saat scroll */
  top: 0;
  z-index: 1000;
  /* Pastikan di atas konten lain */
}

.custom-navbar .navbar-brand {
  flex-grow: 1;
  /* Biarkan brand mengambil ruang sebanyak mungkin ke kiri */
  text-align: left;
  /* Teks brand rata kiri */
  padding-left: 20px;
  /* Tambahkan padding agar tidak terlalu mepet ke sudut */
}

.custom-navbar .navbar-brand a {
  color: #fff;
  text-decoration: none;
  font-size: 1.8em;
  font-weight: 700;
  letter-spacing: 1px;
}

/* Toggler Button for Mobile */
.navbar-toggler {
  display: none;
  /* Sembunyikan secara default di desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  position: relative;
  z-index: 1001;
  /* Pastikan di atas overlay */
  margin-right: 20px;
  /* Tambahkan margin agar tidak terlalu mepet ke sudut di mobile */
}

.navbar-toggler .toggler-icon {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #fff;
  border-radius: 2px;
  transition: all 0.3s ease-in-out;
}

.navbar-toggler .toggler-icon:nth-child(2) {
  opacity: 1;
}

/* Animasi toggler saat aktif */
.navbar-toggler.active .toggler-icon:nth-child(1) {
  transform: translateY(11px) rotate(45deg);
}

.navbar-toggler.active .toggler-icon:nth-child(2) {
  opacity: 0;
}

.navbar-toggler.active .toggler-icon:nth-child(3) {
  transform: translateY(-11px) rotate(-45deg);
}

/* Navbar Links (Menu) */
.navbar-links {
  flex-grow: 1;
  /* Biarkan links mengambil ruang sebanyak mungkin ke kanan */
  text-align: right;
  /* Teks link rata kanan */
  padding-right: 20px;
  /* Tambahkan padding agar tidak terlalu mepet ke sudut */
}

.navbar-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  /* Rata samping (horizontal) untuk desktop */
  justify-content: flex-end;
  /* Rata kanan di dalam area links */
}

.navbar-links li {
  margin-left: 30px;
  position: relative;
  /* Untuk dropdown */
}

.navbar-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1em;
  padding: 5px 0;
  position: relative;
  transition: color 0.3s ease;
}

.navbar-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background-color: #f39c12;
  /* Accent color for underline */
  transition: width 0.3s ease;
}

.navbar-links a:hover::after,
.navbar-links a.active::after {
  width: 100%;
}

.navbar-links a:hover,
.navbar-links a.active {
  color: #f39c12;
  /* Warna saat hover/aktif */
}

/* Dropdown Styles */
.navbar-links .dropdown-menu {
  display: none;
  /* Sembunyikan default */
  position: absolute;
  top: 100%;
  /* Di bawah parent link */
  left: 0;
  background-color: rgba(44, 62, 80, 0.9);
  /* Sedikit transparan */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  min-width: 180px;
  z-index: 10;
  list-style: none;
  padding: 10px 0;
  border-radius: 5px;
}

.navbar-links .dropdown-menu.show {
  display: block;
  /* Tampilkan saat ada kelas 'show' */
}

.navbar-links .dropdown-menu li {
  margin: 0;
  /* Hapus margin default */
}

.navbar-links .dropdown-menu a {
  padding: 8px 15px;
  display: block;
  white-space: nowrap;
  /* Mencegah teks patah baris */
  font-size: 0.9em;
  font-weight: 400;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.navbar-links .dropdown-menu a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #f39c12;
}

/* --- Responsive Adjustments for Navbar --- */
@media (max-width: 768px) {
  .custom-navbar {
    flex-wrap: wrap;
    /* Izinkan wrap agar item bisa ke baris baru */
    justify-content: space-between;
    /* Brand di kiri, toggler di kanan */
    padding: 15px 20px;
  }

  .navbar-brand {
    padding-left: 0;
    /* Hapus padding tambahan di mobile */
  }

  .navbar-toggler {
    display: flex;
    /* Tampilkan toggler di mobile */
    margin-right: 0;
    /* Hapus margin tambahan di mobile */
  }

  .navbar-links {
    display: none;
    /* Sembunyikan menu secara default */
    flex-direction: column;
    /* Menu vertikal di mobile */
    width: 100%;
    /* Ambil lebar penuh */
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgba(44, 62, 80, 0.95);
    /* Latar belakang menu mobile */
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
    padding: 10px 0;
    transition: transform 0.3s ease-out;
    transform: translateY(-100%);
    /* Sembunyikan ke atas */
    overflow: hidden;
    /* Sembunyikan konten yang meluap */
    text-align: left;
    /* Rata kiri untuk menu mobile */
    padding-right: 0;
    /* Hapus padding kanan */
  }

  .navbar-links.active {
    display: flex;
    /* Tampilkan menu saat aktif */
    transform: translateY(0);
    /* Geser ke posisi semula */
  }

  .navbar-links ul {
    flex-direction: column;
    /* Item menu vertikal */
    width: 100%;
    justify-content: flex-start;
    /* Mulai dari kiri */
  }

  .navbar-links li {
    margin: 0;
    width: 100%;
    text-align: left;
    /* Rata kiri untuk item mobile */
  }

  .navbar-links a {
    padding: 12px 20px;
    font-size: 1.1em;
    display: block;
    /* Agar link memenuhi lebar */
  }

  .navbar-links a::after {
    left: 20px;
    /* Sesuaikan posisi underline */
  }

  /* Dropdown untuk mobile */
  .navbar-links .dropdown-menu {
    position: static;
    /* Akan muncul di bawah item induk, di dalam aliran menu mobile */
    background-color: rgba(0, 0, 0, 0.2);
    /* Latar belakang sub-menu lebih gelap */
    box-shadow: none;
    border-radius: 0;
    padding-left: 15px;
    /* Indentasi sub-menu */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .navbar-links .dropdown-menu a {
    padding: 8px 35px;
    /* Padding lebih dalam untuk sub-item */
  }
}

/* Basic Reset & Body Styles */
body {
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, #ff7f50, #ffd700);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  min-height: 100vh;
  color: #fff;
  box-sizing: border-box;
}

/* Main Container - The large background image area */
.container {
  width: 100%;
  max-width: 1000px;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 40px 20px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 900px;
  position: relative;
  overflow: hidden;
  margin-top: 20px;
  margin-bottom: 20px;
}

/* Tambahkan overlay untuk gambar background asli */
.container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("Itenas.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.3;
  z-index: -1;
}

/* Header Section */
.header {
  color: #f7f7f7;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.header h1 {
  font-size: 2.5em;
  font-weight: 700;
  margin-bottom: 5px;
  letter-spacing: 2px;
}

.header h2 {
  font-size: 1.5em;
  font-weight: 600;
  margin-top: 0;
  letter-spacing: 1px;
}

/* Common Section Styling */
.section {
  width: 100%;
  margin-bottom: 40px;
  padding: 20px 0;
}

.section-title {
  font-size: 1.6em;
  font-weight: 700;
  color: #fff;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 60px;
  height: 3px;
  background-color: #f39c12;
  border-radius: 2px;
}

/* Profile Card Styling */
.profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 15px;
  position: relative;
}

.profile-img-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #f39c12;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  background-color: #f0f0f0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.profile-img-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.badge {
  background-color: #f39c12;
  color: #f0f0f0;
  font-weight: bold;
  padding: 2px 2px;
  border-radius: 37%;
  font-size: 36px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  height: 42%;
}

.profile-img-circle .label {
  position: absolute;
  background-color: #f39c12;
  color: white;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  /* font-size: 0.9em; */
  /* font-weight: bold; */
  border: 2px solid white;
}

.profile-name {
  margin-top: 10px;
  font-size: 0.9em;
  font-weight: 600;
  color: #eee;
  text-transform: uppercase;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Specific Styles for Dosen Pembimbing Grid */
.dosen-pembimbing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  justify-items: center;
  width: 100%;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Specific Styles for Liaison Officer Grid */
.liaison-officer-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  width: 100%;
}

.profile-card.small .profile-img-circle {
  width: 70px;
  height: 70px;
  border-width: 2px;
}

.profile-card.small .profile-name-small {
  margin-top: 8px;
  font-size: 0.8em;
  font-weight: 500;
  color: #ddd;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Specific Styles for Perangkat Kepala Suku Grid */
.kepala-suku-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  width: 100%;
}

.role-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.4);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.role-box .role-title {
  font-size: 1.1em;
  font-weight: 700;
  color: #f39c12;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.profile-card .profile-img-circle.large {
  width: 140px;
  height: 140px;
  border-width: 4px;
}

/* Footer Styling */
.footer {
  width: 100%;
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #eee;
  font-size: 0.8em;
}

.footer-logos {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.footer-logo {
  height: 50px;
  object-fit: contain;
  /* filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3)); */
}

.footer-text p {
  margin: 15px 0;
  line-height: 1.5;
  font-weight: 500;
}

.footer-bottom-icons {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-bottom-icons img {
  height: 25px;
  /* filter: invert(100%) brightness(80%); */
}

.foot {
  border: 2px solid wheat;
  padding: 10px 12px;
  margin: 0rem 6em;
  background-color: white;
  border-radius: 100px;
}

/* RESPONSIVE DESIGN CONSIDERATIONS */
@media (max-width: 768px) {
  .header h1 {
    font-size: 2em;
  }

  .header h2 {
    font-size: 1.2em;
  }

  .section-title {
    font-size: 1.4em;
  }

  .dosen-pembimbing-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

  .profile-img-circle {
    width: 80px;
    height: 80px;
  }

  .profile-card .profile-img-circle.large {
    width: 110px;
    height: 110px;
  }

  .profile-name {
    font-size: 0.8em;
  }

  .profile-card.small .profile-img-circle {
    width: 60px;
    height: 60px;
  }

  .profile-card.small .profile-name-small {
    font-size: 0.7em;
  }

  .footer-logos {
    flex-wrap: wrap;
    gap: 15px;
  }

  .footer-logo {
    height: 40px;
  }

  .foot {
    margin: 0rem 2em;
    padding: 8px 10px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 20px 10px;
    min-height: 700px;
  }

  .header h1 {
    font-size: 1.8em;
    letter-spacing: 1px;
  }

  .header h2 {
    font-size: 1em;
  }

  .section-title {
    font-size: 1.2em;
    margin-bottom: 20px;
  }

  .dosen-pembimbing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .profile-img-circle {
    width: 70px;
    height: 70px;
    border-width: 2px;
  }

  .profile-card .profile-img-circle.large {
    width: 90px;
    height: 90px;
    border-width: 3px;
  }

  .profile-name {
    font-size: 0.75em;
  }

  .profile-card.small .profile-img-circle {
    width: 50px;
    height: 50px;
  }

  .profile-card.small .profile-name-small {
    font-size: 0.65em;
  }

  .role-box {
    padding: 15px;
    margin-top: 15px;
  }

  .footer-logo {
    height: 35px;
  }

  .footer-bottom-icons img {
    height: 20px;
  }

  .foot {
    margin: 0rem 1em;
    padding: 6px 8px;
  }
}
