/* =========================================
   UNIVERSITAS BANDA NAIRA - HALAMAN PRODI
   ========================================= */

/* CSS Custom Properties */
:root {
  /* Spacing */
  --spacing-xs: 5px;
  --spacing-sm: 10px;
  --spacing-md: 15px;
  --spacing-lg: 20px;
  --spacing-xl: 30px;
  --spacing-2xl: 40px;
  --spacing-3xl: 50px;

  /* Border Radius */
  --radius-sm: 5px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-xl: 12px;
  --radius-2xl: 15px;
  --radius-full: 50%;

  /* Shadows */
  --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 5px 20px rgba(0, 0, 0, 0.12);

  /* Colors */
  --color-white: #fff;
  --color-black: #000;
  --color-gray-light: #ccc;
  --color-gray-medium: #777;
  --color-gray-dark: #333;
  --color-bg-accent: #eef2f5;
  --color-overlay: rgba(43, 85, 128, 0.85);
}

/* =========================================
   HERO & CAROUSEL SECTION
   ========================================= */
.hero-container {
  position: relative;
  width: 100%;
  margin-bottom: var(--spacing-xl);
  overflow: hidden;
  background-color: var(--primary-color, #16305c);
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-banner-img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.hero-image {
  width: 100%;
  height: 330px;
  object-fit: contain;
  background-color: var(--bg-light);
}

.hero-caption-box {
  padding: var(--spacing-md);
  font-size: 1.1rem;
  text-align: center;
  color: var(--text-light);
  background-color: var(--color-overlay);
  border-bottom-left-radius: var(--radius-sm);
  border-bottom-right-radius: var(--radius-sm);
}

/* =========================================
   WELCOME / SAMBUTAN SECTION
   ========================================= */
.title-welcome {
  margin-top: -20px;
  margin-bottom: var(--spacing-2xl);
  font-size: 2.5rem;
  font-weight: 700;
  font-family: 'Oswald', sans-serif;
  letter-spacing: 1px;
  text-align: center;
  color: var(--primary-color);
}

.profile-card {
  margin-bottom: var(--spacing-xl);
}

.prodi-title-text {
  margin-bottom: 0;
  font-size: 1.6rem;
  font-weight: bold;
  letter-spacing: 0px;
  color: var(--color-black);
}

.prodi-sub-title-text {
  margin-top: -10px;
  font-size: 1.4rem;
  letter-spacing: 1px;
  color: var(--color-gray-dark);
}

.bio-text {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--color-black);
}

.profile-img-container img {
  border-radius: var(--radius-2xl);
  object-fit: cover;
}

.img-mirror {
  transform: scaleX(-1);
}

/* =========================================
   STATISTICS BANNER
   ========================================= */
.stats-banner {
  width: 100%;
  margin: var(--spacing-2xl) 0;
  padding: var(--spacing-3xl) 0;
  color: var(--text-light);
  background-color: var(--primary-color);
}

/* Wrapper untuk merapikan posisi icon, angka, dan label */
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

/* Styling untuk Icon PNG */
.stat-icon {
  width: 72px;
  height: 72px;
  margin-bottom: 1rem;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.stat-icon:hover {
  transform: scale(1.1);
  filter: brightness(0) invert(1);
}

.stat-number {
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1.1;
  position: relative;
  padding-bottom: 0.5rem; /* Memberi ruang untuk garis pembatas */
}

/* Garis halus pembatas di bawah angka */
.stat-number::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px; /* Panjang garis */
  height: 3px; /* Ketebalan garis */
  background-color: var(--text-light);
  opacity: 0.3; /* Membuat garis menjadi halus/subtle */
}

.stat-label {
  font-size: 1.5rem;
  font-weight: 500;
  margin: 0;
}

/* =========================================
   SECTION HEADINGS
   ========================================= */
.section-title {
  position: relative;
  margin: var(--spacing-2xl) 0 var(--spacing-xl);
  font-weight: 700;
  text-align: center;
  color: var(--primary-color);
}

/* =========================================
   ACTIVITY CARDS (MODERN & PROPORTIONAL)
   ========================================= */
.activity-card {
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  background-color: var(--color-white);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.activity-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  border-color: rgba(22, 48, 92, 0.2);
}

.activity-img-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background-color: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.activity-img-bg,
.gallery-img-bg,
.tambahan-img-bg {
  position: absolute;
  top: -15px;
  left: -15px;
  right: -15px;
  bottom: -15px;
  background-size: cover;
  background-position: center;
  filter: blur(14px) brightness(0.95);
  opacity: 0.28;
  transform: scale(1.15);
  pointer-events: none;
  z-index: 1;
}

.activity-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  background: rgba(22, 48, 92, 0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.activity-img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  padding: 4px;
}

.activity-card:hover .activity-img {
  transform: scale(1.04);
}

.activity-body {
  padding: 16px 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.activity-title {
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.35;
  color: #1e293b;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.25s ease;
}

.activity-card:hover .activity-title {
  color: var(--primary-color, #16305c);
}

.activity-desc {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.5;
  margin-top: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* AKTIFITAS TAMBAHAN */
.activity-tambahan-card {
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  background-color: var(--color-white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.activity-tambahan-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.tambahan-img-wrapper {
  position: relative;
  width: 100%;
  height: 130px;
  overflow: hidden;
  background-color: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tambahan-img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
  padding: 3px;
}

.activity-tambahan-card:hover .tambahan-img {
  transform: scale(1.04);
}

.aktifitas-tambahan {
  padding: 8px 12px 10px;
  font-size: 0.84rem;
  color: #334155;
  line-height: 1.3;
}

.aktifitas-tambahan span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 600;
  color: #334155;
}

.btn-selengkapnya {
  padding: 8px 35px;
  border: none;
  border-radius: 20px;
  color: var(--text-light);
  background-color: var(--primary-color);
}

.btn-selengkapnya:hover {
  color: var(--text-light);
  background-color: var(--secondary-color);
}

/* =========================================
   ACCREDITATION BANNER
   ========================================= */
.accreditation-banner {
  margin: var(--spacing-2xl) 0;
  padding: var(--spacing-2xl);
  border-left: 5px solid var(--primary-color);
  border-radius: var(--radius-sm);
  background-color: var(--color-bg-accent);
}

.accreditation-section h2,
.activities-section h2 {
  font-size: 2.5rem !important;
  margin-bottom: 20px !important;
  text-align: center !important;
}

/* Mengatur posisi link agar sejajar dengan logo */
.accreditation-links {
  display: flex;
  flex-direction: column;
  justify-content: center; /* Menengahkan link secara vertikal di samping logo */
  align-items: flex-start; /* Rata kiri untuk Desktop */
  text-align: left;
  padding-left: 20px; /* Jarak antara logo dan link */
}

.accreditation-links a {
  font-size: 16px;
  color: var(--primary-color);
  text-decoration: none;
  word-break: break-word; /* Mencegah URL terpotong di tengah kata */
  overflow-wrap: break-word;
  margin-bottom: 10px; /* Jarak antar link */
}

.accreditation-links a:last-child {
  margin-bottom: 0; /* Hapus margin di link paling bawah */
}

.accreditation-links a:hover {
  text-decoration: underline;
}

/* =========================================
   TESTIMONIAL SECTION (REVISI)
   ========================================= */
.testimonial-section {
  width: 100%;
  padding: var(--spacing-sm);
  background-color: var(--bg-light);
}

/* Wrapper untuk foto dan info agar sejajar */
.testi-header {
  display: flex;
  align-items: center; /* Gunakan 'flex-end' jika ingin teks pas menempel di bawah foto */
  justify-content: center;
}

/* Penyesuaian ukuran foto agar proporsional dengan teks di samping */
.testi-img {
  width: 120px;
  height: 160px;
  margin-bottom: 0; /* Hapus margin bawah karena sekarang posisinya di samping */
  margin-right: 15px;
  border-radius: var(--radius-lg); /* Dibuat bulat penuh agar lebih modern */
  object-fit: cover;
}

/* Memaksa teks nama/jabatan rata kiri di samping foto */
.testi-info {
  text-align: left;
}

.testi-author {
  margin-top: 0; /* Hapus margin atas */
  font-size: 1.6rem; /* Ukuran disesuaikan */
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.2;
}

.testi-jabatan {
  font-size: 1.25rem;
  color: var(--color-gray-dark);
  font-weight: 500;
}

.testi-text {
  font-size: 1.1rem;
  font-style: italic; /* Tambah italic agar lebih terasa seperti kutipan */
  line-height: 1.6;
  color: var(--color-black);
  max-width: 80%; /* Batasi lebar teks agar rapi di tengah */
  margin: 0 auto;
  text-align: justify; /* Agar teks lebih rapi */
}

/* Custom Dot Indicators */
.carousel-indicators {
  position: relative;
  margin-top: var(--spacing-xl);
  margin-bottom: 0;
}

.carousel-indicators button {
  width: 14px; /* Sedikit diperbesar */
  height: 14px;
  margin: 0 6px; /* Jarak antar dot */
  border: none;
  border-radius: var(--radius-full);
  background-color: var(--color-gray-light);
  opacity: 1;
  transition: all 0.3s ease;
}

.carousel-indicators button.active {
  background-color: var(--primary-color);
  transform: scale(1.3);
  width: 30px; /* Dot aktif memanjang (pill shape) agar lebih modern */
  border-radius: 10px;
}

/* =========================================
   CAROUSEL CONTROLS (PANAH)
   ========================================= */
.carousel-control-prev,
.carousel-control-next {
  width: 5%; /* Perkecil area klik agar tidak menutupi teks testimoni */
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
}

/* Hapus panah default Bootstrap 4 */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-image: none !important;
  width: auto;
  height: auto;
}

/* Ganti dengan Icon FontAwesome Kiri */
.carousel-control-prev::after {
  content: '\f104'; /* Kode FontAwesome untuk chevron-left */
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  font-size: 2.5rem;
  color: var(--primary-color);
  display: block;
  margin-top: -20px; /* Sedikit penyesuaian posisi vertikal */
}

/* Ganti dengan Icon FontAwesome Kanan */
.carousel-control-next::after {
  content: '\f105'; /* Kode FontAwesome untuk chevron-right */
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  font-size: 2.5rem;
  color: var(--primary-color);
  display: block;
  margin-top: -20px;
}

/* =========================================
   GALLERY (MODERN, COMPACT & INTERACTIVE)
   ========================================= */
.gallery-card {
  border-radius: 14px;
  overflow: hidden;
  background-color: var(--color-white);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.13);
}

.gallery-link {
  display: block;
  text-decoration: none !important;
  color: inherit;
}

.gallery-img-wrapper {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  background-color: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  margin-bottom: 0;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  padding: 4px;
}

.gallery-card:hover .gallery-img {
  transform: scale(1.04);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.8) 0%, rgba(15, 23, 42, 0.25) 50%, rgba(15, 23, 42, 0.05) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

.gallery-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary-color, #16305c);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transform: scale(0.8);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), background-color 0.2s ease, color 0.2s ease;
}

.gallery-card:hover .gallery-icon-btn {
  transform: scale(1);
}

.gallery-icon-btn:hover {
  background: var(--primary-color, #16305c);
  color: #ffffff;
}

.gallery-caption-title {
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.partner-logo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xl);
  margin-top: 25px;
}

.partner-logo {
  height: auto;
  max-width: 150px;
  background-color: transparent;
  opacity: 1;
}

/* =========================================
   SECTION DIVIDER (PEMBATAS HALUS)
   ========================================= */
.section-divider {
  width: 100%;
  height: 1px;
  background-color: var(--color-gray-light);
  margin: var(--spacing-xl) 0; /* Jarak atas dan bawah */
  /* opacity: 0.6; Membuat garis menjadi lebih halus/subtle */
  color: var(--color-gray-dark);
}

/* =========================================
   VIDEO SECTION
   ========================================= */
.video-section {
  width: 100%;
  padding: var(--spacing-2xl) 0;
  background-color: var(--bg-light);
  margin-top: -25px;
}

.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto var(--spacing-sm);
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/*
  =========================================
  QUICK
  NAVIGATION
  (Sub-Page Access)
  =========================================
  */
.quick-nav-container {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding-left: 30px;
  padding-right: 30px;
  box-sizing: border-box;
}

.quick-nav-section {
  background-color: #fff;
  padding: 10px 0;
  margin-top: -30px;
  position: relative;
  z-index: 10;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border-radius: 15px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 20px;
}

.quick-nav-wrapper {
  display: flex;
  flex-wrap: nowrap; /* ← PENTING: Tidak boleh wrap */
  overflow-x: auto; /* ← Horizontal scroll */
  justify-content: flex-start; /* ← Mulai dari kiri */
  gap: 15px;
  padding: 10px 5px 15px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* Custom Scrollbar untuk Desktop */
.quick-nav-wrapper::-webkit-scrollbar {
  height: 6px;
}

.quick-nav-wrapper::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.quick-nav-wrapper::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 10px;
}

.quick-nav-wrapper::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}

/* Firefox scrollbar */
.quick-nav-wrapper {
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) #f1f1f1;
}

.quick-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 15px;
  background: var(--bg-light);
  border: 2px solid transparent;
  border-radius: 12px;
  text-decoration: none;
  color: #333;
  min-width: 150px; /* ← Ukuran minimum untuk desktop */
  flex: 0 0 auto; /* ← Tidak boleh flex grow/shrink */
  transition: all 0.3s ease;
}

.quick-nav-item:hover {
  background: var(--primary-color);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
  border-color: var(--primary-color);
}

.quick-nav-item:hover .quick-nav-icon {
  background: #fff;
  color: var(--primary-color);
}

.quick-nav-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 10px;
  transition: all 0.3s ease;
}

.quick-nav-title {
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
  white-space: nowrap; /* ← Teks tidak boleh wrap */
}

/* =========================================
   MOBILE RESPONSIVE (Max 767.98px)
   ========================================= */
@media (max-width: 767.98px) {
  /* Hero Section */
  .hero-container {
    height: auto;
    max-height: 250px;
  }

  .hero-banner-img {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: cover;
    object-position: center;
    display: block;
  }

  /* Statistics Banner */
  .stats-banner {
    margin: var(--spacing-lg) 0;
    padding: var(--spacing-xl) 0;
  }

  .stat-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 0.75rem;
  }

  .stat-number {
    font-size: 2.2rem;
    line-height: 1.2;
    padding-bottom: 0.5rem;
  }

  /* Sesuaikan ukuran garis untuk mobile */
  .stat-number::after {
    width: 60px;
    height: 1.5px;
  }

  .stat-label {
    margin-top: var(--spacing-xs);
    font-size: 0.9rem;
    font-weight: 600;
  }

  /* =========================================
     WELCOME SECTION MOBILE (REVISI GRID)
     ========================================= */
  .title-welcome {
    letter-spacing: 0.4px;
    margin-top: -20px;
    margin-bottom: -40px;
    font-size: 1.8rem;
    line-height: 1.1;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
  }

  /* 1. Layout Kaprodi (Foto Kiri, Teks Kanan) */
  .welcome-section .row:not(.flex-md-row-reverse) {
    display: grid !important;
    grid-template-columns: auto 1fr; /* Kolom 1: ukuran foto, Kolom 2: sisa layar */
    grid-template-areas:
      'img name'
      'img jabatan'
      'bio bio'; /* Bio memanjang full width di bawah */
    gap: 0px 10px;
    align-items: start;
    margin-left: 1px !important;
    margin-right: 1px !important;
  }

  /* 2. Layout Sekprodi (Foto Kanan, Teks Kiri) */
  .welcome-section .row.flex-md-row-reverse {
    display: grid !important;
    grid-template-columns: 1fr auto; /* Kolom 1: sisa layar, Kolom 2: ukuran foto */
    grid-template-areas:
      'name img'
      'jabatan img'
      'bio bio'; /* Bio memanjang full width di bawah */
    gap: 0px 10px;
    align-items: start;
    margin-left: 1px !important;
    margin-right: 1px !important;
  }

  /* 3. Trik Display Contents: Membuat anak dari .col-md-9 dianggap sebagai anak langsung dari .row */
  .welcome-section .col-md-9 {
    display: contents !important;
  }

  /* 4. Penempatan Grid Area untuk Foto */
  .welcome-section .profile-img-container {
    grid-area: img !important;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* 5. Ukuran Foto (Dikurangi 20px dari sebelumnya) */
  .welcome-section .profile-img-container img {
    display: block;
    max-width: 120px !important;
    max-height: 160px !important;
    width: 100%;
    height: auto;
    margin: 0;
    border-radius: var(--radius-xl);
    object-fit: cover;
  }

  /* 6. Penempatan & Ukuran Font untuk Nama dan Jabatan (Sangat Rapat) */
  .welcome-section .prodi-title-text {
    grid-area: name !important;
    font-size: 1rem !important;
    margin: 0 !important;
    margin-top: 20px !important;
    margin-bottom: -20px !important; /* Tarik ke bawah untuk merapatkan ke jabatan */
    line-height: 1.1 !important; /* Perkecil line-height agar ruang kosong hilang */
    text-align: left !important;
  }

  .welcome-section .prodi-sub-title-text {
    grid-area: jabatan !important;
    font-size: 0.9rem !important;
    margin: 0 !important;
    margin-top: 0 !important; /* Pastikan margin atas benar-benar 0 */
    margin-bottom: 0 !important;
    line-height: 1.1 !important; /* Perkecil line-height */
    text-align: left !important;
    margin-bottom: 20px !important;
  }

  /* 7. Penempatan Bio (Full Width di Bawah) */
  .welcome-section .bio-text {
    grid-area: bio !important;
    width: 100% !important;
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: justify;
    text-align-last: left;
    margin-top: 10px !important;
  }

  /* Accreditation */
  .accreditation-section h2 {
    font-size: 1.5rem !important;
    text-align: center !important;
  }

  .accreditation-banner {
    padding: var(--spacing-lg);
  }

  .accreditation-links {
    padding-left: 10px;
    text-align: left;
    font-size: 25px !important;
    line-height: 1 !important;
  }

  .accreditation-links a {
    font-size: 0.8rem !important;
    margin-bottom: 5px !important;
  }

  .section-divider {
    width: 80%; /* Di mobile, garis dibuat sedikit lebih pendek agar tidak mentok ke tepi layar */
    margin: var(--spacing-lg) auto; /* Posisi di tengah (auto) dan jarak dikurangi */
    color: var(--color-gray-dark);
  }

  /* Partner Logo */
  .partner-logo-row {
    flex-wrap: nowrap;
    gap: var(--spacing-sm);
    justify-content: space-evenly;
  }

  .partner-logo {
    max-width: 55px;
    flex-shrink: 0;
  }

  /* =========================================
     ACTIVITY & GALLERY MOBILE
     ========================================= */
  .activity-img-wrapper {
    height: 160px;
  }
  .activity-img {
    height: 100%;
    width: 100%;
    object-fit: contain;
  }
  .activity-body {
    padding: 12px 14px 15px;
  }
  .activity-title {
    font-size: 0.98rem;
  }
  .tambahan-img-wrapper {
    height: 110px;
  }
  .tambahan-img {
    height: 100%;
    width: 100%;
    object-fit: contain;
  }

  /* 1. Memberi jarak aman dari tepi kiri/kanan layar (container) */
  .gallery-section .row {
    padding-left: 10px;
    padding-right: 10px;
  }

  /* 2. Mengurangi jarak antar gambar (gutter) */
  .gallery-section .col-6 {
    padding-left: 8px; /* Diperkecil dari default 15px */
    padding-right: 8px; /* Diperkecil dari default 15px */
    margin-bottom: 8px !important; /* Jarak vertikal antar baris gambar */
  }

  /* 3. Memastikan gambar proporsional tanpa terpotong */
  .gallery-img-wrapper {
    height: 135px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .gallery-img {
    height: 100%;
    width: 100%;
    object-fit: contain;
  }

  .gallery-icon-btn {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }

  .gallery-caption-title {
    font-size: 0.72rem;
  }

  /* =========================================
     TESTIMONIAL MOBILE
     ========================================= */
  .testi-single {
    padding: var(--spacing-md) var(--spacing-sm);
  }

  .testi-header {
    max-width: 85%;
    margin: 0 auto 1rem auto; /* Posisi di tengah */
  }

  .testi-img {
    width: 80px;
    height: 120px;
    margin-left: 0;
    margin-right: 12px; /* Jarak positif agar tidak menumpuk dengan teks */
    border-radius: 10px; /* Dibuat rounded rectangle (karena 80x120 jika 50% akan jadi oval gepeng) */
    object-fit: cover;
  }

  /* 2. Trik Flexbox agar teks nama/jabatan tidak overflow/melewati batas */
  .testi-info {
    flex: 1; /* Mengisi sisa ruang */
    min-width: 0; /* Mencegah teks memaksa lebar container */
  }

  .testi-author {
    font-size: 1rem;
    margin-bottom: 2px;
  }

  .testi-jabatan {
    font-size: 0.7rem;
    color: var(--color-gray-dark);
    display: block; /* Memastikan turun ke baris baru jika kepanjangan */
    word-wrap: break-word;
  }

  /* 3. Batas kanan untuk Teks Testimoni */
  .testi-text {
    font-size: 0.9rem;
    max-width: 85%; /* Samakan persentasenya dengan .testi-header */
    margin: 0 auto;
  }

  .carousel-control-prev::after,
  .carousel-control-next::after {
    font-size: 1.8rem; /* Perkecil ukuran panah di HP */
    margin-top: -15px;
  }

  /* Profile Images */
  .profile-img-container {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: var(--spacing-lg);
  }

  .profile-img-container img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 180px;
    max-height: 220px;
    margin: 0 auto;
    border-radius: var(--radius-xl);
    object-fit: cover;
  }

  .aktifitas-tambahan {
    font-size: 0.8rem;
    color: var(--color-black);
    line-height: 1.1;
    text-align: justify;
  }

  /* QUICK NAVIGATION MOBILE */
  .quick-nav-section {
    margin-top: -30px;
    padding: 15px 0;
    border-radius: 10px;
    margin-bottom: 10px;
  }

  .quick-nav-container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .quick-nav-wrapper {
    gap: 10px;
    padding: 5px 0 10px;
  }

  .quick-nav-item {
    min-width: 110px;
    padding: 12px 10px;
  }

  .quick-nav-icon {
    width: 30px;
    height: 30px;
    font-size: 1rem;
  }

  .quick-nav-title {
    font-size: 0.75rem;
  }
}
