html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: #1e293b;
  background: #ffffff;
}

section {
  scroll-margin-top: 80px;
}

.navbar {
  min-height: 80px;
  background: white !important;
  z-index: 1000;
}

.navbar-brand {
  text-decoration: none;
}

.logo-box,
.logo-box img {
  width: 50px;
  height: 50px;
}

.logo-box {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-box img {
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-title {
  color: #173f70;
  font-size: 15px;
  font-weight: 700;
}

.brand-text small {
  color: #777;
  font-size: 11px;
  margin-top: 4px;
}

.navbar-nav {
  gap: 3px;
}

.nav-link {
  color: #222 !important;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 11px !important;
  transition: 0.3s;
}

.nav-link:hover,
.nav-link.active {
  color: #0d6efd !important;
}

/* Dropdown */
.dropdown-menu {
  border: none;
  border-radius: 10px;
  padding: 8px;
  margin-top: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.dropdown-item {
  font-size: 14px;
  padding: 9px 13px;
  border-radius: 7px;
}

.dropdown-item:hover {
  background: #eef5ff;
  color: #0d6efd;
}

/* Tombol Sistem Akademik */
.academic-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 9px;
  background: #0d6efd;
  color: white;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: 0.3s;
}

.academic-button i {
  font-size: 19px;
}

.academic-button:hover {
  background: #0b5ed7;
  color: white;
  transform: translateY(-1px);
}

.hero-simple {
  position: relative;
  overflow: hidden;
  padding: 130px 0;
  color: white;
  background: linear-gradient(110deg, #052041, #0b4385 60%, #0d6efd);
}

/* Video atau gambar latar: dipakai di hero dan header prodi */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Lapisan gelap supaya tulisan terbaca */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(5, 32, 65, 0.9) 0%,
    rgba(8, 52, 100, 0.7) 45%,
    rgba(0, 0, 0, 0.25) 100%
  );
}

/* Isi teks harus di atas video dan lapisan gelap */
.hero-inner {
  position: relative;
  z-index: 2;
}

.hero-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 15px;
  color: #8fc7ff;
}

.hero-simple h1 {
  font-size: 54px;
  line-height: 1.12;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-simple p {
  max-width: 600px;
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 30px;
}

.page-header {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 380px;
  padding: 90px 0;
  color: white;
  overflow: hidden;
  background-color: #0b4385;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.55);
}

.page-header .container {
  position: relative;
  z-index: 2;
}

.page-header h1 {
  font-size: 42px;
  font-weight: 700;
}

.page-header p {
  max-width: 650px;
  opacity: 0.92;
}

.page-header h1,
.page-header p,
.page-header .hero-label,
.page-header .back-link {
  color: white;
}

.page-header .hero-label {
  color: #8fc7ff;
}

.back-link {
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

.section-padding {
  padding: 90px 0;
}

.section-label {
  display: inline-block;
  color: #0d6efd;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.section-title {
  color: #173f70;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 18px;
}

.section-text {
  color: #64748b;
  line-height: 1.8;
  font-size: 15px;
}

.program-section {
  background: #f5f8fc;
}

.foto {
  width: 100%;
  display: block;
  object-fit: cover;
  border-radius: 15px;
}

.foto-besar {
  height: 380px;
}
.foto-sedang {
  height: 320px;
}
.foto-kecil {
  height: 200px;
}

/* Dipakai di halaman prodi */
.prodi-detail-image {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 12px;
}

.prodi-gallery-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
}

.info-box {
  height: 100%;
  background: white;
  padding: 30px;
  border-radius: 15px;
  border: 1px solid #e8eef5;
}

.info-box h3 {
  color: #173f70;
  font-size: 22px;
}

.info-box h3 i {
  color: #0d6efd;
  margin-right: 8px;
}

.info-box li {
  margin-bottom: 8px;
  color: #64748b;
}

.sub-title {
  color: #173f70;
  margin-top: 25px;
}

.check-list {
  list-style: none;
  padding: 0;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  color: #64748b;
}

.check-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: #0d6efd;
  font-weight: 700;
}

.prodi-card {
  position: relative;
  height: 100%;
  padding: 30px 25px;
  border-radius: 15px;
  border: 1px solid #e8eef5;
  overflow: hidden;
  color: white;
  background-color: #173f70; /* tampil kalau gambar belum ada */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: 0.3s;
}

/* Lapisan gelap di atas gambar */
.prodi-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(5, 32, 65, 0.55),
    rgba(5, 32, 65, 0.92)
  );
}

/* Semua isi kartu berada di atas lapisan gelap */
.prodi-card > * {
  position: relative;
  z-index: 1;
}

.prodi-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.prodi-icon {
  width: 60px;
  height: 60px;
  border-radius: 13px;
  background: #eaf3ff;
  color: #0d6efd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 27px;
  margin-bottom: 20px;
}

.prodi-level {
  display: inline-block;
  background: #0d6efd;
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 5px;
  margin-bottom: 10px;
}

.prodi-card h3 {
  color: white;
  font-size: 19px;
  line-height: 1.4;
  min-height: 55px;
}

.prodi-card p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  line-height: 1.7;
  min-height: 95px;
}

/* Tombol Lihat Program */
.prodi-card a.btn {
  color: white;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 8px;
}

.prodi-card a.btn i {
  margin-left: 5px;
}

.facility-card {
  height: 100%;
  background: white;
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid #e8eef5;
  transition: 0.3s;
}

.facility-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.facility-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  background: #eef5ff; /* tampil kalau gambar belum ada */
}

.facility-content {
  padding: 22px;
}

.facility-icon {
  width: 45px;
  height: 45px;
  background: #eaf3ff;
  color: #0d6efd;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 15px;
}

.facility-content h3 {
  color: #173f70;
  font-size: 18px;
}

.facility-content p {
  color: #64748b;
  line-height: 1.7;
  font-size: 14px;
  margin-bottom: 0;
}

.cta-section {
  padding: 75px 0;
  color: white;
  background: linear-gradient(110deg, #0b4385, #0d6efd);
}

.cta-section h2 {
  font-size: 34px;
  font-weight: 700;
}

.cta-section p {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.7;
}

.cta-button {
  padding: 13px 22px;
  font-weight: 600;
  border-radius: 8px;
}

.contact-item {
  display: flex;
  gap: 15px;
  margin-top: 25px;
}

.contact-icon {
  width: 45px;
  height: 45px;
  flex-shrink: 0;
  border-radius: 10px;
  background: #eaf3ff;
  color: #0d6efd;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-item strong {
  color: #173f70;
  font-size: 15px;
}

.contact-item p {
  color: #64748b;
  font-size: 14px;
  margin: 5px 0 0;
}

.maps-container {
  width: 100%;
  height: 400px;
  border: 0;
  border-radius: 12px;
}

.footer {
  background: #102f52;
  padding: 40px 0;
}

.footer p {
  margin: 0;
  font-size: 13px;
  color: #a9bdd3;
}

.footer p + p {
  margin-top: 6px;
}

@media (max-width: 991px) {
  .navbar-nav {
    padding-top: 15px;
    padding-bottom: 15px;
  }

  .nav-link {
    padding: 10px 5px !important;
  }

  .academic-button {
    display: inline-flex;
    margin-top: 8px;
  }

  .dropdown-menu {
    box-shadow: none;
    border: 1px solid #e5e7eb;
  }

  .hero-simple {
    padding: 100px 0;
  }

  .hero-simple h1 {
    font-size: 42px;
  }

  .prodi-card h3,
  .prodi-card p {
    min-height: auto;
  }
}

@media (max-width: 576px) {
  .brand-title {
    font-size: 13px;
  }

  .brand-text small {
    font-size: 10px;
  }

  .logo-box,
  .logo-box img {
    width: 42px;
    height: 42px;
  }

  .hero-simple {
    padding: 80px 0;
  }

  .hero-simple h1 {
    font-size: 34px;
  }

  .hero-simple p {
    font-size: 15px;
  }

  .page-header {
    min-height: 320px;
    padding: 70px 0;
  }

  .page-header h1 {
    font-size: 30px;
  }

  .section-padding {
    padding: 65px 0;
  }

  .section-title {
    font-size: 29px;
  }

  .cta-section h2 {
    font-size: 27px;
  }

  .foto-besar,
  .prodi-detail-image {
    height: 260px;
  }

  .maps-container {
    height: 300px;
  }
}


.search-btn {
  background: none;
  border: 0;
  font-size: 18px;
  padding: 8px 10px;
  color: #222;
  transition: 0.3s;
}
.search-btn:hover {
  color: #0d6efd;
}
#searchBar {
  display: none;
  background: #f5f8fc;
  border-bottom: 1px solid #e8eef5;
  padding: 12px 0;
  position: sticky;
  top: 80px;
  z-index: 999;
}
#searchBar.show {
  display: block;
}
#searchResults {
  max-height: 260px;
  overflow-y: auto;
  margin-top: 6px;
}
#searchResults a {
  display: block;
  padding: 8px 12px;
  border-radius: 7px;
  color: #173f70;
  text-decoration: none;
  font-size: 14px;
}
#searchResults a:hover {
  background: #eaf3ff;
}
.contact-item a {
  color: #64748b;
  text-decoration: none;
}
.contact-item a:hover {
  color: #0d6efd;
}

/* Header halaman dalam */
.page-header.simple {
  background: linear-gradient(110deg, #052041, #0b4385 60%, #0d6efd);
  min-height: 240px;
  padding: 70px 0;
}

/* Struktur organisasi */
.org-box {
  background: linear-gradient(#4a78c8, #2f5597);
  color: #fff;
  padding: 14px 18px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  min-width: 190px;
  border-radius: 4px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}
.org-line {
  width: 2px;
  height: 26px;
  background: #4a78c8;
  margin: 0 auto;
}
.org-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.org-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Fungsionaris */
.fung-card {
  display: flex;
  background: #6f2fa0;
  color: #fff;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 14px;
}
.fung-photo {
  width: 110px;
  flex-shrink: 0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}
.fung-photo img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #333;
  background: #ddd;
}
.fung-info {
  flex: 1;
  padding: 6px 0;
}
.fung-info div {
  display: flex;
  padding: 6px 14px;
  font-size: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}
.fung-info div:last-child {
  border-bottom: 0;
}
.fung-info b {
  width: 80px;
  flex-shrink: 0;
}

/* Mobile */
@media (max-width: 991px) {
  #searchBar {
    top: 70px;
  }
  .search-btn {
    padding: 10px 5px;
    width: 100%;
    text-align: left;
    font-size: 14px;
  }
  .navbar-collapse {
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }
}
@media (max-width: 576px) {
  .brand-text {
    max-width: 200px;
  }
  .org-box {
    min-width: 0;
    width: 100%;
  }
  .org-row {
    width: 100%;
  }
  .org-col {
    width: 100%;
  }
  .fung-photo {
    width: 85px;
  }
  .fung-photo img {
    width: 68px;
    height: 68px;
  }
  .fung-info div {
    flex-direction: column;
    font-size: 13px;
  }
  .fung-info b {
    width: auto;
  }
  .hero-simple .btn-lg {
    width: 100%;
  }
}

/* ===== TAMPILAN LEBIH BERWARNA ===== */

/* Tombol search jadi terlihat */
.search-btn {
  background: #eaf3ff;
  color: #0d6efd;
  border-radius: 50%;
}
@media (min-width: 992px) {
  .search-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
  }
}
.search-btn:hover {
  background: #0d6efd;
  color: #fff;
}

/* Tentang: biru muda + foto berbingkai */
#tentang {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #eaf3ff 0%, #cfe2ff 100%);
}
#tentang::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(13, 110, 253, 0.12);
}
#tentang .container {
  position: relative;
}
#tentang .foto {
  border: 6px solid #fff;
  box-shadow: 0 20px 45px rgba(13, 110, 253, 0.3);
}

/* Program Studi: latar biru gradasi, judul putih */
#program-studi {
  background: linear-gradient(135deg, #052041 0%, #0b4385 60%, #0d6efd 100%);
}
#program-studi .section-title {
  color: #fff;
}
#program-studi .section-label {
  color: #ffd166;
}
#program-studi .text-muted {
  color: rgba(255, 255, 255, 0.85) !important;
}
.prodi-card {
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.prodi-icon {
  background: linear-gradient(135deg, #ffd166, #ffb703);
  color: #052041;
}
.prodi-level {
  background: #ffb703;
  color: #052041;
}

/* Section abu-abu (Fasilitas, Fungsionaris) jadi biru muda */
.program-section {
  background: linear-gradient(180deg, #e0efff 0%, #c7dcff 100%);
}
.facility-card {
  border: 0;
  border-top: 4px solid #0d6efd;
  box-shadow: 0 8px 24px rgba(13, 110, 253, 0.12);
}
.facility-icon {
  background: linear-gradient(135deg, #0d6efd, #0b4385);
  color: #fff;
}

/* Kontak: gelap menyambung ke footer */
#kontak {
  background: linear-gradient(180deg, #0b4385 0%, #102f52 100%);
}
#kontak .section-title {
  color: #fff;
}
#kontak .section-label {
  color: #ffd166;
}
#kontak .contact-item strong {
  color: #fff;
}
#kontak .contact-item p,
#kontak .contact-item a {
  color: rgba(255, 255, 255, 0.85);
}
#kontak .contact-item a:hover {
  color: #ffd166;
}
#kontak .contact-icon {
  background: linear-gradient(135deg, #ffd166, #ffb703);
  color: #052041;
  font-size: 20px;
}
.maps-container {
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
  border: 4px solid rgba(255, 255, 255, 0.2);
}

/* Halaman Struktur Organisasi: section setelah header jadi biru muda */
.page-header + .section-padding {
  background: #f0f6ff;
}
.fung-card {
  box-shadow: 0 6px 18px rgba(111, 47, 160, 0.3);
}