/* 🎠 Carousel */
.guest-carousel-container {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
}

.guest-carousel-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.guest-carousel-slide.guest-active {
  opacity: 1;
}

.guest-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.guest-carousel-caption {
  position: absolute;
  top: 20%;
  left: 10%;
  color: white;
  max-width: 50%;
  text-align: justify;
}

.guest-carousel-caption h2 {
  font-size: 2rem;
  font-weight: bold;
  color: #ffffff;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.guest-carousel-caption p {
  margin-top: 10px;
  font-size: 1rem;
}

.guest-carousel-prev,
.guest-carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 2rem;
}

.guest-carousel-prev { left: 20px; }
.guest-carousel-next { right: 20px; }

/* === SECTION MENU KOTAK (SETELAH CAROUSEL) === */


.guest-menu-card img {
  width: 60px;
  margin-bottom: 10px;
  filter: brightness(0) invert(1); /* putih */
}

.guest-menu-card p {
  margin: 0;
  font-weight: 500;
}

.guest-menu-card:hover {
  transform: translateY(-5px);
  background-color: #1239A6; /* lebih terang saat hover */
}

/* RESPONSIVE UNTUK CAROUSEL */
@media (max-width: 768px) {
  .guest-carousel-caption {
    left: 50%;                  /* pindah ke tengah horizontal */
    top: 50%;                   /* tetap di tengah vertikal */
    transform: translate(-50%, -50%); /* bener-bener center */
    text-align: center;          /* teks rata tengah */
    max-width: 90%;              /* biar gak kepotong */
  }

  .guest-carousel-caption h2 {
    font-size: 1.4rem;           /* biar gak terlalu besar */
  }

  .guest-carousel-caption p {
    font-size: 0.9rem;           /* lebih pas buat layar kecil */
  }
}

/* === SECTION MENU KOTAK RESPONSIF === */
.guest-menu-section {
  overflow: hidden;
}

.guest-menu-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
  padding-top: 10px;
}

.guest-menu-slide {
  display: flex;
  transition: transform 0.4s ease-in-out;
  gap: 3rem;
}
.guest-menu-slide {
  display: flex;
  transition: transform 0.4s ease-in-out;
  gap: 1rem;
  will-change: transform;
}

.guest-menu-card {
  background-color: #2C367E;
  border: 3px solid #FFD700;
  border-radius: 12px;
  text-align: center;
  color: white;
  flex: 0 0 calc(33.33% - 1rem); /* default: 3 kotak */
  text-decoration: none;
  padding: 30px 10px;
  transition: 0.3s;
}

.guest-menu-card img {
  width: 60px;
  margin-bottom: 10px;
  filter: brightness(0) invert(1);
}

.guest-menu-card p {
  margin: 0;
  font-weight: 500;
}

.guest-menu-card:hover {
  transform: translateY(-5px);
  background-color: #1239A6;
}

/* Panah kiri/kanan */
.guest-menu-prev,
.guest-menu-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: none;
  border: none;
  color: #0B2A7D;
  font-size: 1.5rem;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  z-index: 10;
  transition: 0.3s;
}

.guest-menu-prev:hover,
.guest-menu-next:hover {
  background-color: #fff;
}

.guest-menu-prev {
  left: -10px;
}

.guest-menu-next {
  right: -10px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .guest-menu-card {
    flex: 0 0 calc(50% - 1rem); /* tampil 2 kotak */
  }

  .guest-menu-prev,
  .guest-menu-next {
    width: 35px;
    height: 35px;
    font-size: 1.2rem;
  }
}


/* 🔴 Overlay merah */
/* .guest-carousel-overlay {
  position: relative;
  width: 60%;
  margin: -90px 0 0 0;
  background: linear-gradient(135deg, #6a070a, #d02828);
  color: white;
  padding: 30px;
  border-radius: 0 20px 20px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.guest-overlay-text h3 {
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: bold;
  line-height: 1.4;
  max-width: 250px;
  color: white;
}

.guest-overlay-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  justify-content: flex-end;
  flex: 1;
}

.guest-overlay-icons .guest-icon-item {
  background: #0b2a7c;
  border: 3px solid gold;
  border-radius: 10px;
  padding: 10px;
  height: 110px;
  width: 115px;
  text-align: center;
}

.guest-overlay-icons .guest-icon-item img {
  width: 60px;
  height: 60px;
}

.guest-overlay-icons .guest-icon-item p {
  margin-top: 5px;
  font-size: 12px;
  color: white;
}

@media (max-width: 992px) {
  .guest-carousel-overlay { width: 80%; }
}
@media (max-width: 576px) {
  .guest-carousel-overlay {
    width: 90%;
    flex-direction: column;
    text-align: center;
  }
  .guest-overlay-icons { justify-content: center; }
} */

/* ℹ️ About Section */
.guest-about-section {
  width: 100%;
  padding: 60px 10%;
  background: #fff;
}

.guest-about-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.guest-about-text { 
  flex: 1; 
  min-width: 300px;
}
.guest-about-text h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #B61D22;
}
.guest-about-text .guest-highlight { color: #000; font-weight: 500; }
.guest-about-text h3 br+span { color: #B61D22; }
.guest-about-text p {
  font-size: 12px;
  color: #333;
  line-height: 1.6;
  margin-bottom: 15px;
  text-align: justify;
}
.guest-about-text a {
  color: #B61D22;
  font-weight: 600;
  text-decoration: none;
}

.guest-btn-about {
  background-color: #0B2A7D;
  color: #fff !important;
  border: none;
  padding: 10px 25px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}
.guest-btn-about:hover {
  background-color: #FFD700;
  color: #0B2A7D;
}
.guest-about-image {
  flex: 1;
  display: flex;
  justify-content: center;
}
.guest-about-image img {
  width: 100%;
  max-width: 400px;
  height: auto;
}

@media (max-width: 992px) {
  .guest-about-container { flex-direction: column; text-align: center; }
  .guest-about-image { text-align: center; }
}
/* Responsive — ubah posisi */
@media (max-width: 768px) {
  .guest-about-container {
    flex-direction: column-reverse; /* ini awalnya column, diganti column-reverse biar gambar di atas */
    text-align: center;
  }

  .guest-about-image img {
    max-width: 300px;
    margin-bottom: 1rem;
  }

  .guest-about-text {
    text-align: justify;
  }
}

/* 📰 Blog */
.guest-blog-section {
  width: 100%;
  padding: 60px 10%;
  background: #fff;
}
.guest-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* total 3 kolom */
  gap: 20px;
}
.guest-blog-card {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.guest-blog-card.guest-featured {
  grid-column: span 2;
  height: 400px;
  }

.guest-blog-card.guest-side {
  grid-column: span 1;
}
.guest-blog-card.small1 { grid-area: small1; }
.guest-blog-card.small2 { grid-area: small2; }
.guest-blog-card.small3 { grid-area: small3; }

.guest-blog-image {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: block;
}
.guest-blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.guest-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent 50%);
  color: white;
  transition: background 0.3s ease;
}
.guest-overlay .guest-meta {
  font-size: 10px;
  opacity: 0.85;
  margin-bottom: 4px;
}
.guest-overlay h2,
.guest-overlay h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  line-height: 1.4;
  color: white;
}
.guest-blog-card:hover img { transform: scale(1.08); }
.guest-blog-card:hover .guest-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65), transparent 50%);
}
@media(max-width: 992px) {
  .guest-blog-card.guest-featured { grid-column: span 1; }
}
/* Responsive biar di HP tetep rapi */
@media(max-width: 768px) {
  .guest-blog-grid {
    grid-template-areas:
      "featured"
      "small1"
      "small2"
      "small3";
    grid-template-columns: 1fr;
  }
  .guest-blog-card.guest-featured {
    height: 250px;
  }
}
/* 🖼 Portfolio */
.guest-portfolio .guest-portfolio-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  padding: 0;
  margin: 0 0 40px;
  list-style: none;
}

.guest-portfolio .guest-portfolio-filters li {
  font-size: 10px;
  font-weight: 100;
  padding: 12px 25px;
  cursor: pointer;
  background: var(--surface-color);
  color: var(--default-color);
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.guest-portfolio .guest-portfolio-filters li.guest-filter-active {
  background: var(--accent-color);
  color: var(--contrast-color);
}

.guest-portfolio .guest-portfolio-entry {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface-color);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.guest-portfolio .guest-portfolio-entry .guest-entry-image {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.guest-portfolio .guest-portfolio-entry .guest-entry-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.guest-portfolio .guest-portfolio-entry .guest-entry-image .guest-entry-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
  display: flex;
  align-items: flex-end;
  padding: 30px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.guest-portfolio .guest-portfolio-entry:hover .guest-entry-image img {
  transform: scale(1.05);
}
.guest-portfolio .guest-portfolio-entry:hover .guest-entry-image .guest-entry-overlay {
  opacity: 1;
  transform: translateY(0);
}

/* Wrapper untuk teks di overlay */
.guest-entry-text {
  display: flex;
  flex-direction: column;
  gap: 6px; /* jarak antara meta dan title */
  align-items: flex-start; /* bisa diganti center/right */
}

/* Meta (kategori/fasilitas) */
.guest-entry-meta {
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  color: #FFD700; /* contoh emas */
  letter-spacing: 1px;
}

/* Judul */
.guest-entry-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.3;
}

/* ============================= */
/* 🎓 Alumni Testimonial Section */
/* ============================= */
.guest-rounded-8 {
  border-radius: 12px;
}

#guestAlumniCarousel .carousel-item {
  min-height: 370px;
}

#guestAlumniCarousel .carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 5px;
}

#guestAlumniCarousel .carousel-item img {
  width: 120px;
  height: 120px;
  border: 3px solid #fff;
}


/* 🎓 Alumni Testimonial Section (Tambahan) */
/* #guestAlumniCarousel .carousel-item {
  position: relative;
  padding: 30px;
  border-radius: 12px;
  background: rgba(0, 24, 72, 0.85); /* biru tua transparan */
  /*color: #fff;} */

#guestAlumniCarousel .carousel-item h5 {
  font-size: 1.2rem;
  font-weight: bold;
  color: #ffd900; /* judul nama alumni warna emas */
}

#guestAlumniCarousel .carousel-item p {
  font-size: 1rem;
  line-height: 1.6;
  color: #f0f0f0;
}

#guestAlumniCarousel .carousel-item p.text-white-50 {
  color: #ddd !important;
  font-style: italic;
  text-align: justify;
}

#guestAlumniCarousel .carousel-inner {
  border-radius: 12px;
  overflow: hidden;
}

/* Tambahan styling untuk layar kecil */
@media (max-width: 767.98px) {
  #guestAlumniCarousel .carousel-item .row {
    flex-direction: column; /* gambar di atas, teks di bawah */
    text-align: center;
  }

  #guestAlumniCarousel .carousel-item img {
    max-width: 120px;
    margin: 0 auto 15px auto; /* biar center */
  }

  #guestAlumniCarousel .carousel-item h5 {
    font-size: 1rem;
  }

  #guestAlumniCarousel .carousel-item p {
    font-size: 0.85rem;
    line-height: 1.4;
    padding: 0 10px; /* biar gak mepet pinggir */
  }
  
  #guestAlumniCarousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    margin-bottom: -15px;
  }

}

/* Tombol “Lihat Selengkapnya” */
.btn-see-more {
  display: inline-block;
  background: #0B2A7D;
  color: #fff;
  padding: 8px 20px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
}

.btn-see-more:hover {
  background: #FFD700;
  color: #0B2A7D;
}

/* ============================= */
/*  HALAMAN PENDIDIKAN    */
/* ============================= */
/* === Halaman Pendidikan (S1/S2/S3) === */
.pend-section {
  padding: 40px 8%; /* Dulu 60px, sekarang lebih rapat */
  background: #fff;
  margin-bottom: 20px; /* Tambah sedikit agar antar section ada jarak kecil */
}

.pend-container {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* biar teks dan gambar lebih dekat */
  flex-wrap: nowrap; /* biar mereka tetep sejajar */
  gap: 0; /* Hapus jarak antar elemen */
}

.pend-text {
  flex: 0 0 60%; /* teks ambil 60% lebar */
  min-width: 300px;
}

.pend-text h3 {
  color: #8b0000;
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 0.3rem;
}

.pend-divider {
  width: 110px;
  height: 10px;
  background: linear-gradient(90deg, #ffd100, #c77b00);
  border-radius: 2px;
  margin-bottom: 0.8rem;
}

.pend-text p,
.pend-text ul,
.pend-text ol {
  color: #333;
  font-size: 0.95rem;
  line-height: 1.7;
  text-align: justify;
  margin-bottom: 0.6rem;
}

.pend-text ul {
  padding-left: 1.2rem;
}

.pend-image {
  flex: 1;
  text-align: right;
}

.pend-image img {
  max-width: 350px;
  max-height: 500px;
  width: 100%;
  border-radius: 10px;  
}

/* === Capaian Pembelajaran === */
.pend-list {
  color: #333;
  font-size: 0.95rem;
  line-height: 1.7;
  padding-left: 1.2rem;
  margin-bottom: 1rem;
}

/* === Flayer (Leaflet) === */
.pend-flayer img {
  width: 100%;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.pend-flayer img:hover {
  transform: scale(1.03);
}
/* ========================================== */
/* 🏷️ Judul Tengah Serbaguna (Reusable Title) */
/* ========================================== */

.judul-tengah {
  text-align: center;
  margin-bottom: 2rem; /* jarak bawah antar elemen berikutnya */
}

.judul-tengah-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #8B0000; /* merah khas DHH */
  margin-bottom: 0.3rem;
  letter-spacing: 0.5px;
}

.judul-tengah-divider {
  width: 254px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* versi kecil (opsional) kalau butuh untuk subjudul */
.judul-tengah.small .judul-tengah-title {
  font-size: 1.3rem;
}

.judul-tengah.small .judul-tengah-divider {
  width: 90px;
}

/* Responsif */
@media (max-width: 768px) {
  .judul-tengah-title {
    font-size: 1.5rem;
  }

  .judul-tengah-divider {
    width: 240px;
  }
}


/* === Link dan paragraf umum === */
.pend-section a {
  color: #0b2a7d;
  font-weight: 500;
  text-decoration: none;
}

.pend-section a:hover {
  text-decoration: underline;
}

/* === Responsiveness === */
@media (max-width: 992px) {
  .pend-container {
  display: flex;
  align-items: center; /* Biar vertikalnya sejajar tengah */
  justify-content: flex-start; /* Dulu space-between, bikin kejauhan */
  flex-wrap: wrap;
  gap: 2rem; /* Bisa diganti jadi 1rem kalau mau lebih rapat lagi */
  }

  .pend-image {
  flex: 0 0 350px; /* Ukuran tetap biar gak terlalu lebar */
  text-align: right;
  }

  .pend-image img {
  width: 100%;
  max-width: 450px;
  height: auto;
  border-radius: 10px;
  }
}
@media (max-width: 768px) {
  .pend-container {
    flex-direction: column-reverse;
    text-align: center;
    gap: 1rem;
  }

  .pend-image {
    display: flex;
    justify-content: center; /* ngetengahin horizontal */
    align-items: center; /* ngetengahin vertikal */
    width: 100%;
  }

  .pend-image img {
    max-width: 280px;
    width: 100%;
    height: auto;
    margin: 0 auto 1rem auto; /* tengah + jarak bawah */
    display: block;
  }
}

@media (max-width: 480px) {
  .pend-image {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .pend-image img {
    max-width: 240px;
    width: 100%;
    margin: 0 auto;
  }
}


/* ============================= */
/* 📚 Program Studi Accordion    */
/* ============================= */
/* === SECTION PROGRAM STUDI === */
.guest-prodi-section {
  background-color: #001a57; /* biru tua */
  width: 100vw; /* full satu layar */
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw; /* "trik" untuk hilangkan padding bawaan container */
  margin-right: -50vw;
  padding: 60px 0; /* ruang atas bawah */
}

/* Biar isi tetap rapi di tengah */
.guest-prodi-container {
  max-width: 1100px;
  margin: 0 auto;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .guest-prodi-section {
    text-align: center;
  }

  .guest-prodi-container .row {
    flex-direction: column;
  }

  .guest-prodi-container .col-md-8 {
    margin-top: 20px;
    padding-right: 0;
    padding-left: 20px;
  }
}

.guest-container {
  background: #001848;
  padding: 70px 30px;
  color: #fff;
}

.guest-title h5 {
  color: #FFD700;
  padding-left : 100px;
}

.guest-title h2 {
  font-size: 35px;
  line-height: 1.3;
  padding-left : 100px;
}

.guest-accordion .guest-accordion-item {
  border: 2px solid #ddbc00;
  border-radius: 10px;
  overflow: hidden;
  background: #001848;
}

.guest-accordion-button {
  background: #001848;
  color: #FFD700;
  font-weight: bold;
  padding: 15px 20px;
}

.guest-accordion-button:focus {
  box-shadow: none;
}

.guest-accordion-button:not(.collapsed) {
  background: #FFD700;
  color: #001848;
}

.guest-accordion-body {
  padding: 20px;
  background: #001848;
  color: #fff;
  text-align: justify;
}

/* ====== MITRA (PARTNER) SECTION ====== */
.guest-partner-section {
  background-color: #fafafa;
  overflow: hidden;
}

.guest-partner-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.guest-partner-track {
  display: flex;
  gap: 40px;  
  width: max-content; 
  animation: slideMitra 20s linear infinite;
}

.guest-partner-track img {
  height: 150px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.8;
  transition: all 0.3s ease-in-out;
}

.guest-partner-track img:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

@keyframes slideMitra {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-85%); /* ❗ Harus 100% karena track digandakan */
  }
}

/* Responsif */
@media (max-width: 768px) {
  .guest-partner-track img {
    height: 60px;
  }
  .guest-partner-track {
    gap: 20px;
    animation-duration: 15s;
  }
}

/* ============================= */
/* 📞 Contact Section            */
/* ============================= */
.guest-contact {
  padding: 60px 0;
  background: #f9f9f9;
}

.guest-section-title h2 {
  text-align: center;
  font-weight: bold;
  margin-bottom: 40px;
  color: #001848;
}

.guest-contact-box {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 20px;
  background: linear-gradient(to right, #680000, #ff0d0d);
  border-radius: 12px;
  border: 1px solid #eee;
  transition: all 0.3s ease;
  margin-left: 20px;
  min-height: 140px;  /* atur sesuai kebutuhan */
}

.guest-contact-box:hover {
  transform: translateY(-5px);
  box-shadow: 0px 4px 12px rgba(0,0,0,0.1);
}

.guest-contact-box .icon-box {
  font-size: 28px;
  color: #ffffff;
  padding: 10px;
}

.guest-contact-box .info-content h4 {
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 5px;
}

.guest-contact-box .info-content p {
  margin: 0;
  font-size: 14px;
  color: #ffffff;
}

/* ============================= */
/* 🗺 Maps Section               */
/* ============================= */
.guest-map-container {
  margin-top: 40px;
  margin-left: 25px;
}

.guest-map-section iframe {
  width: 100%;
  height: 500px;
  border-radius: 12px;
}

/* ============================= */
/* File Section               */
/* ============================= */

.guest-breadcrumb {
  background: linear-gradient(to right, #7c0019, #ff1b49);
  color: #fff;
  padding: 30px 30px;
  font-size: 14px;
}

.guest-breadcrumb a {
  color: #fff;
  text-decoration: underline;
}

/* Judul */
.guest-dc-title {
  color: #8b0000;
}

.guest-dc-underline {
  width: 200px;
  border: 2px solid #ffcb3d;
}

/* Card Style */
.guest-dc-card {
  background: linear-gradient(135deg, #9d0000, #ff0022);
  color: white;
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: transform 0.2s ease-in-out;
}

.guest-dc-card:hover {
  transform: translateY(-4px);
}

.guest-dc-card .btn {
  background-color: #005ce7;
  border: none;
}

/* Semua teks & ikon di dalam card jadi putih */
.guest-dc-card,
.guest-dc-card span,
.guest-dc-card i {
  color: #fff !important;
  padding: 2px;
}


.guest-dc-footer-space {
  margin-bottom: 80px; /*  jarak bawah sebelum footer */
}

/* ============================= */
/* Pendidikan Section               */
/* ============================= */
.guest-pend-breadcrumb {
      background: #f8f9fa;
      padding: 0.75rem 1rem;
      font-size: 0.9rem;
    }
  .guest-pend-section-title {
      font-weight: 700;
      margin-top: 2rem;
      margin-bottom: 0.25rem; /* biar deket sama garis gold */
      background: linear-gradient(90deg, #680000, #ff0d0d);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }
/* Fix gambar biar tidak overflow */
.guest-about-image img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Padding lebih kecil di HP */
@media (max-width: 768px) {
  .guest-about-section {
    padding: 30px 5%;
  }
}

  .guest-pend-divider {
      display: inline-block; /* ikut kiri */
      margin-bottom: 1rem;   /* kasih jarak ke teks setelahnya */
      max-width: 300px;
    }
    
    /* Foto DHH */
    .guest-pend-img-foto {
      max-width: 500%;   /* lebih besar */
      height: auto;
    }


    /* HP kecil */
    @media (max-width: 768px) {
      .guest-pend-img-foto {
        max-width: 60%;  /* biar nggak terlalu besar di HP */
      }
    }

    .guest-pend-footer {
      background: #001f54;
      color: #fff;
      padding: 2rem 0;
      margin-top: 3rem;
    }
    .guest-pend-footer a {
      color: #fff;
      text-decoration: none;
    }
    .guest-pend-footer a:hover {
      text-decoration: underline;
    }
    .guest-pend-footer-logo {
      max-width: 250px;
    }

    /* ============================= */
/* 👔 Section Pimpinan Departemen */
/* ============================= */
.ketdept-section {
  background: #fff;
  padding: 40px 8%;
  overflow: hidden;
  position: relative;
}

.ketdept-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
}

.ketdept-slide {
  display: flex;
  transition: transform 0.4s ease-in-out;
  gap: 2rem;
  will-change: transform;
}

.ketdept-card {
  flex: 0 0 calc(25% - 2rem); /* tampil 4 foto sekaligus */
  text-align: center;
}

.ketdept-card img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover; /* biar otomatis crop */
  border: 3px solid #FFD700;
  margin-bottom: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ketdept-card img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.ketdept-card h5 {
  font-size: 1rem;
  font-weight: 700;
  color: #8b0000;
  margin-bottom: 5px;
}

.ketdept-card p {
  font-size: 0.9rem;
  color: #555;
  margin: 0;
}

/* Tombol navigasi */
.ketdept-prev, .ketdept-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #8b0000;
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 10;
  transition: color 0.3s;
  bottom: auto;
}

.ketdept-prev:hover, .ketdept-next:hover {
  color: #FFD700;
}

.ketdept-prev { left: 10px; }
.ketdept-next { right: 10px; }

/* Responsif */
@media (max-width: 992px) {
  .ketdept-card {
    flex: 0 0 calc(33.33% - 1rem); /* tampil 3 foto */
  }
}

@media (max-width: 768px) {
  .ketdept-card {
    flex: 0 0 calc(50% - 1rem); /* tampil 2 foto */
  }
}

@media (max-width: 480px) {
  .ketdept-card {
    flex: 0 0 100%; /* tampil 1 foto */
  }
}

/* === Tabs === */
.sej-tabs {
  display: flex;
  flex-wrap: wrap; /* biar kalau sempit, tab turun ke bawah */
  justify-content: center;
  margin: 20px 0;
  gap: 10px;
  margin-bottom: 0; /* biar nempel ke box */
  position: relative;
  z-index: 2; /* biar tab di atas konten */
}

.sej-tab-button {
  padding: 10px 25px;
  border: none;
  border-radius: 8px 8px 0 0; /* sudut atas melengkung */
  background: #0a2d4d; /* biru tua */
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.sej-tab-button:hover {
  opacity: 0.85;
}

.sej-tab-button.active {
  background: #680000; /* coklat kemerahan untuk tab aktif */
}

/* === Tab Content Box === */
.sej-tab-content {
  display: none;
  background: linear-gradient(to bottom, #690000, #0a2d4d); /* gradasi merah ke biru tua */
  color: #fff;
  padding: 30px 20px;
  border-radius: 15px 15px 15px 15px; /* sudut bawah melengkung */
  text-align: center;
  margin: 0% auto 40px auto; /* tengah dan beri jarak bawah */
  max-width: 1200px; /* biar nggak terlalu melebar */
}

.sej-tab-content.active {
  display: block;
}

/* === Staff Cards === */
.sej-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Responsif */
  gap: 40px; /* jarak antar card */
  justify-content: center; /* biar baris terakhir selalu di tengah */
  justify-items: center; /* isi tiap card rata tengah */
  max-width: 1100px; /* biar nggak terlalu melebar */
  margin: 10px auto 10px auto; /* tengahin grid */ 
  padding: 10px 10px;
}

/* Tambahkan batasan khusus untuk layar kecil */
@media (max-width: 768px) {
  .sej-card-grid {
    grid-template-columns: repeat(2, 1fr); /* maksimal 2 kolom */
    gap: 20px; /* jarak antar card lebih rapat */
  margin: 10px auto 10px auto; /* tengahin grid */ 
  padding: 10px 10px;
  }
}

/* Untuk layar sangat kecil (HP kecil) jadi 1 kolom */
@media (max-width: 480px) {
  .sej-card-grid {
    grid-template-columns: 1fr;
  margin: 10px auto 10px auto; /* tengahin grid */ 
  padding: 10px 10px;
  }
}
.sej-card-grid {
  display: flex;
  flex-wrap: wrap;          /* supaya bisa turun baris */
  justify-content: center;  /* biar di tengah */
  gap: 20px;
}

.sej-staff-card {
  flex: 1 1 calc(25% - 20px); /* maks 4 per baris */
  max-width: calc(25% - 20px);
  box-sizing: border-box;
  text-align: center;
}

.sej-staff-card img {
  width: 150px;          /* atur ukuran lebar seragam */
  height: 220px;         /* atur tinggi seragam */
  object-fit: cover;     /* biar gambar tidak ketarik tapi terpotong rapi */
  border-radius: 10px;   /* opsional, biar sudutnya halus */
  margin-bottom: 10px;   /* jarak antara foto dan nama */
}

.sej-staff-card img:hover {
  transform: translateY(-8px); /* geser ke atas */
  box-shadow: 0 8px 16px rgba(0,0,0,0.2); /* kasih bayangan biar hidup */
}

.sej-staff-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.sej-staff-card p {
  font-size: 0.9rem;
  opacity: 0.9;
}

.sej-division {
  margin: 40px 0;
  text-align: left;
}

.sej-division-title {
  background: #2456a6; /* biru tua */
  color: #fff;
  padding: 8px 15px;
  border-radius: 6px;
  font-size: 1.1rem;
  font-weight: 700;
  display: inline-block; /* biar panjang sesuai teks */
  margin-bottom: 20px;
}
/* === Responsive Fix untuk Halaman Sejarah === */
@media (max-width: 992px) {
  .sej-division {
    display: flex;
    flex-direction: column; /* biar tiap blok isi turun ke bawah */
    align-items: center; /* biar tengah */
    text-align: center;
  }

  .sej-division .guest-ketua-card {
    margin-bottom: 1.5rem; /* beri jarak antar card */
  }

  .sej-division-title {
    text-align: center; /* judul tengah */
    width: 100%;
  }
}

@media (max-width: 768px) {
  .sej-division {
    padding: 0 15px; /* biar gak nempel tepi layar */
  }

  .sej-division .sej-division-title {
    font-size: 1rem;
  }

  .sej-staff-card img {
    max-width: 120px; /* biar gambar kecil rapi */
  }

  .sej-staff-card h4 {
    font-size: 0.95rem;
  }
}


/* CSS Ketua */
.guest-ketua-card img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #FFD700;
  margin-bottom: 10px;
}
.guest-ketua-card h5 {
  margin: 0;
  font-size: 16px;
  font-weight: bold;
}
.guest-ketua-card p {
  margin: 0;
  color: #666;
  font-size: 14px;
}

/* ============================= */
/* 📷 Gallery Page               */
/* ============================= */
.guest-galery-section {
  padding: 40px 8%;
  background: #fff;
}

.guest-galery-video iframe {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 30px;
}

.guest-galery-subtitle {
  font-size: 1.2rem;
  font-weight: bold;
  color: #8b0000;
  margin: 20px 0 15px;
  border-bottom: 3px solid #FFD700;
  display: inline-block;
}

.guest-galery-videos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin-bottom: 40px;
}

.guest-galery-videos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.guest-galery-video-card {
  border-radius: 10px;
  overflow: hidden;
}

.guest-galery-title {
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
  color: #8b0000;
  margin-bottom: 10px;
}

.guest-galery-desc {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 25px;
  font-size: 0.95rem;
  color: #444;
}

.guest-galery-filters {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.guest-galery-filter {
  background: #0b2a7c;
  color: #fff;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.guest-galery-filter.active,
.guest-galery-filter:hover {
  background: #FFD700;
  color: #000;
}

.guest-galery-grid {
  display: flex;
  flex-wrap: wrap;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  justify-content: center; /* biar baris selalu mulai dari tengah */
}

/* === GALLERY PAGINATION (TRANSPARAN) === */
.guest-galery-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  margin-top: 30px;
  padding: 10px 0;
  background: transparent; /* 💡 transparan */
}

.guest-galery-pagination button {
  background-color: #FFD700;
  color: #0B2A7D;
  border: none;
  width: 35px;
  height: 35px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.guest-galery-pagination button:hover {
  background-color: #0B2A7D;
  color: #FFD700;
}
.guest-galery-pagination a{
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #caac01;
  color: #0B2A7D;
  border: none;
  width: 35px;
  height: 35px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  text-decoration: none;
  font-size: 18px;
}

.guest-galery-pagination a:hover:not(.disabled) {
  background-color: #081f5f;
  color: #FFD700;
}

.guest-galery-pages {
  display: flex;
  gap: 0.4rem;
}

.guest-galery-page {
  background: transparent;
  border: 2px solid #0B2A7D;
  color: #0B2A7D;
  width: 35px;
  height: 35px;
  border-radius: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: 0.3s;
}

.guest-galery-page.active {
  background-color: #FFD700;
  color: #0B2A7D;
  border-color: #FFD700;
}

/* Mode 5 kolom */
.guest-galery-grid-5 .guest-galery-item {
  flex: 1 1 calc(20% - 15px); /* 5 kolom */
  max-width: calc(20% - 15px);
}

/* Mode 3 kolom */
.guest-galery-grid-3 .guest-galery-item {
  flex: 1 1 calc(33.33% - 15px); /* 3 kolom */
  max-width: calc(33.33% - 15px);
}

/* Responsive */
@media (max-width: 992px) {
  .guest-galery-grid-5 .guest-galery-item {
    flex: 1 1 calc(25% - 15px); /* tablet: 4 kolom */
    max-width: calc(25% - 15px);
  }
  .guest-galery-grid-3 .guest-galery-item {
    flex: 1 1 calc(50% - 15px); /* tablet: 2 kolom */
    max-width: calc(50% - 15px);
  }
}

@media (max-width: 576px) {
  .guest-galery-grid-5 .guest-galery-item,
  .guest-galery-grid-3 .guest-galery-item {
    flex: 1 1 100%; /* hp: 1 kolom */
    max-width: 100%;
  }
}

.guest-galery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  display: block;
}

.guest-galery-item img {
  width: 100%;
  object-fit: cover; 
  object-position: center; 
  border-radius: 10px;
  transition: transform 0.3s ease;
}
/* --- Tinggi gambar untuk mode SEMUA (5 kolom) --- */
.guest-galery-grid-5 .guest-galery-item img {
  height: 150px; /* tinggi gambar utk mode semua */
}

/* --- Tinggi gambar untuk mode PER KATEGORI (3 kolom) --- */
.guest-galery-grid-3 .guest-galery-item img {
  height: 220px; /* tinggi gambar utk per kategori */
}

.guest-galery-item img:hover {
  transform: scale(1.05);
}

.gallery-caption {
  width: 100%;
  height: 100%;
  position: absolute;  
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 6px;
  background: rgba(0, 0, 0, 0.35); /* transparan, bukan overlay full */
  border-radius: 6px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none; /* biar hover tetap kena gambar */
}

/* --- Muncul saat hover --- */
.guest-galery-item:hover .gallery-caption {
  opacity: 1;
}

.guest-galery-item.hidden {
  display: none; /* disembunyikan saat difilter */
}

/* Responsive */
@media (max-width: 768px) {
  .guest-galery-title { font-size: 1.5rem; }
  .guest-galery-subtitle { font-size: 1rem; }
  .guest-galery-desc { font-size: 0.85rem; }
}

/* ============================= */
/* 📰 Guest Artikel - Layout     */
/* ============================= */
.guest-artikel-wrap { padding: 30px 6% 80px; }

.guest-artikel-title {
  text-align: center;
  color: #8b0000;
  font-weight: 800;
  font-size: 28px;
  margin-bottom: 6px;
}
.guest-artikel-underline {
  width: 120px;
  height: 6px;
  background: linear-gradient(90deg,#ffd100,#c77b00);
  margin: 0 auto 18px;
  border-radius: 6px;
}
.guest-artikel-desc {
  text-align: center;
  color: #444;
  max-width: 820px;
  margin: 0 auto 28px;
  font-size: 0.95rem;
}

/* layout with sidebar */
.guest-artikel-layout {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 30px;
  align-items: start;
}

/* FEATURED TOP 3 */
.guest-artikel-featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 22px;
}
.guest-artikel-featured-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #eee;
}
.guest-artikel-featured-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}
.guest-artikel-featured-card:hover img { transform: scale(1.03); }

.guest-artikel-featured-meta {
  position: absolute;
  left: 16px;
  bottom: 12px;
  right: 16px;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}
.guest-artikel-featured-meta h3 {
  margin: 6px 0 0;
  font-size: 1rem;
  line-height: 1.25;
  font-weight: 700;
}

/* LIST COLUMNS (3 columns of small list items) */
.guest-artikel-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}

.guest-artikel-list-col { display: flex; flex-direction: column; gap: 14px; }

.guest-artikel-list-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.guest-artikel-list-item img {
  width: 84px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}
.guest-artikel-list-body h4 {
  margin: 0 0 6px;
  font-size: 0.95rem;
  color: #222;
  line-height: 1.25;
  font-weight: 600;
}
.guest-artikel-list-meta { font-size: 0.8rem; color: #666; }

/* MID ROW (one large left, two stacked right) */
.guest-artikel-mid-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 18px;
  margin-top: 12px;
}
.guest-artikel-mid-left img { width:100%; height:180px; object-fit:cover; border-radius:10px;}
.guest-artikel-mid-right { display:flex; flex-direction:column; gap:12px; }
.guest-artikel-mid-small img { width:100%; height:86px; object-fit:cover; border-radius:8px; }

/* BADGES */
.guest-artikel-badge {
  display:inline-block;
  padding:4px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight:700;
  color:#fff;
  margin-right:8px;
}
.guest-artikel-badge.small { padding:3px 6px; font-weight:700; font-size:0.7rem; }

/* category colors (tweak as needed) */
.guest-artikel-badge--berita { background:#0b61c7; }
.guest-artikel-badge--akademik { background:#2b9d3a; }
.guest-artikel-badge--prestasi { background:#ff7a00; }
.guest-artikel-badge--sdgs { background:#08b0a8; }
.guest-artikel-badge--karir { background:#6b3fa0; }

/* SIDEBAR */
.guest-artikel-sidebar { position: relative; }
.guest-artikel-searchbox { margin-bottom: 20px; }
.guest-artikel-search {
  width:100%;
  padding:10px 14px;
  border-radius:8px;
  border:1px solid #e0e0e0;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.03);
}
.guest-artikel-side-card {
  background:#fff;
  border-radius:10px;
  padding:16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.04);
}
.guest-artikel-side-card h4 { color:#8b0000; margin:0 0 12px; }
.guest-artikel-categories { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:10px; }
.guest-artikel-categories li {
  padding:10px 12px;
  border-radius:8px;
  border:2px solid #e9e9e9;
  cursor:pointer;
  font-weight:600;
}

/* small helper */
.guest-artikel-date { font-size:0.8rem; color:#ddd; background: rgba(0,0,0,0.25); padding:3px 8px; border-radius:8px; }

/* RESPONSIVE */
@media (max-width: 1100px) {
  .guest-artikel-columns { grid-template-columns: repeat(2, 1fr); }
  .guest-artikel-featured-card img { height:200px; }
  .guest-artikel-mid-left img { height:160px; }
}

@media (max-width: 768px) {
  .guest-artikel-layout { grid-template-columns: 1fr; }
  .guest-artikel-featured-grid { grid-template-columns: 1fr; }
  .guest-artikel-columns { grid-template-columns: 1fr; }
  .guest-artikel-mid-row { grid-template-columns: 1fr; }
  .guest-artikel-sidebar { order: -1; } /* sidebar above main on mobile */
  .guest-artikel-wrap { padding: 20px 5% 50px; }
}

/* === Featured Cards (3 besar) === */
.guest-artikel-featured-card {
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
}
.guest-artikel-featured-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.guest-artikel-featured-meta {
  padding: 12px 14px;
  color: #222;
  text-shadow: none;
  position: static;   /* supaya teks di luar gambar */
}
.guest-artikel-featured-meta h3 {
  margin: 6px 0 0;
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 700;
}
.guest-artikel-date {
  font-size: 0.8rem;
  color: #666;
  background: none;
  padding: 0;
}
/* === Bottom 3 Articles Grid === */
.guest-artikel-bottom-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.guest-artikel-bottom-card {
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.guest-artikel-bottom-card img {
  width: 100%;
  height: 160px; /* tinggi gambar seragam */
  object-fit: cover;
}

.guest-artikel-bottom-body {
  padding: 12px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.guest-artikel-bottom-body h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 8px 0;
  line-height: 1.3;
  
  /* max 2 baris */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 2.6em;
}

.guest-artikel-bottom-meta {
  font-size: 0.8rem;
  color: #666;
  margin-top: auto; /* dorong ke bawah */
}

/* === Responsive Breakpoints === */
@media (max-width: 992px) {
  .guest-artikel-bottom-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 576px) {
  .guest-artikel-bottom-grid {
    grid-template-columns: 1fr;
  }
}

.guest-artikel-search {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.95rem;
}

/* === Featured Top 3 === */
.guest-artikel-featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}

/* === 3 Kolom List Artikel === */
.guest-artikel-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

/* === Bottom 3 Articles Grid === */
.guest-artikel-bottom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

/* RESPONSIVE EXTRA */
@media (max-width: 768px) {
  .guest-artikel-layout {
    grid-template-columns: 1fr; /* sidebar ke bawah */
  }
  .guest-artikel-sidebar {
    order: -1; /* sidebar pindah ke atas di mobile */
    margin-bottom: 20px;
  }
}

/* BIKIN BERITA TERKINI DAN KATEGORI DROPDOWN */
/* Default: mobile dropdown sembunyi */
.mobile-only {
  display: none;
}

/* Desktop tetap sidebar normal */
.desktop-only {
  display: block;
}

/* Kalau layar kecil: pakai dropdown */
@media (max-width: 768px) {
  .mobile-only {
    display: block;
    margin: 15px 0;
  }
  .desktop-only {
    display: none;
  }

  /* styling dropdown */
  .guest-dropdown summary {
    font-weight: bold;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
  }

  .guest-dropdown[open] summary {
    background: #e9ecef;
  }

  .guest-dropdown ul {
    margin-top: 10px;
    padding-left: 20px;
  }
}

/* ============================= */
/* 📰 Detail Artikel             */
/* ============================= */
.guest-artikel-detail-section {
  padding: 30px 15px;
}

.guest-artikel-detail-title {
  font-size: 2rem;
  font-weight: 700;
  color: #8b0000;
  margin-bottom: 10px;
}

.guest-artikel-detail-meta {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 20px;
}

.guest-artikel-detail-image {
  position: relative;
}

.guest-artikel-detail-image img {
  width: 100%;
  height: 400px;        /* tinggi seragam, ubah sesuai kebutuhan */
  object-fit: cover;    /* crop gambar agar proporsional */
  border-radius: 8px;
}

.guest-artikel-detail-tag {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: #f5a623;
  color: #fff;
  padding: 5px 12px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
}

.guest-artikel-detail-content p {
  line-height: 1.7;
  margin-bottom: 15px;
  text-align: justify;
}

/* Sidebar */
.guest-artikel-detail-search {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 20px;
}

.guest-artikel-detail-sidebar {
  background: #fff;
  border: 1px solid #eee;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 25px;
}

.guest-artikel-detail-sidebar-title {
  font-size: 1rem;
  font-weight: 700;
  color: #8b0000;
  margin-bottom: 10px;
}

.guest-artikel-detail-categories li {
  list-style: none;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: color 0.3s;
}
.guest-artikel-detail-categories li:hover {
  color: #8b0000;
}

.guest-artikel-detail-latest li {
  list-style: none;
  margin-bottom: 15px;
}
.guest-artikel-detail-latest a {
  font-weight: 500;
  display: block;
  color: #000;
}
.guest-artikel-detail-latest .date {
  font-size: 0.8rem;
  color: #777;
}

/* Responsive */
@media (max-width: 768px) {
  .guest-artikel-detail-title {
    font-size: 1.5rem;
  }
  .guest-artikel-detail-sidebar {
    margin-top: 20px;
  }
  
  .guest-artikel-detail-image {
    position: relative;
  }

  .guest-artikel-detail-image img {
    width: 100%;
    height: 250px;        /* tinggi seragam, ubah sesuai kebutuhan */
    object-fit: cover;    /* crop gambar agar proporsional */
    border-radius: 8px;
  }
}

/* 🎠 Carousel Alumni */
.guest-carousel-alumni-container {
  position: relative;
  width: 100%;
  height: 250px; /* lebih kecil dari home */
  overflow: hidden;
}

.guest-carousel-alumni-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.guest-carousel-alumni-slide.guest-active {
  opacity: 1;
}

.guest-carousel-alumni-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.guest-carousel-alumni-caption {
  position: absolute;
  bottom: 35%;
  left: 8%;
  color: white;
  max-width: 60%;
  text-align: left;
}

.guest-carousel-alumni-caption h2 {
  font-size: 1.5rem;
  font-weight: bold;
  color: #ffffff;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.guest-carousel-alumni-caption p {
  margin-top: 8px;
  font-size: 0.9rem;
  line-height: 1.4;
}

.guest-carousel-alumni-prev,
.guest-carousel-alumni-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 1.5rem;
}

.guest-carousel-alumni-prev { left: 15px; }
.guest-carousel-alumni-next { right: 15px; }

/* Alumni Section */
.guest-alumni-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* selalu 3 kolom */
  gap: 20px;
  justify-items: center; /* biar isi selalu rata tengah */
}

.guest-alumni-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  width: 100%;
  max-width: 280px; /* biar ga kegedean */
}

.guest-alumni-card img {
  width: 100%;
  height: 220px;   /* paksa tinggi seragam */
  object-fit: cover; /* biar otomatis crop */
  border-bottom: 2px solid #eee;
  display: block;
}


.guest-alumni-card h5 {
  margin: 10px 0 5px 0;
  color: #800000;
  font-weight: bold;
}

.guest-alumni-card p {
  font-size: 13px;
  color: #555;
  padding: 0 10px 15px 10px;
}


/* Responsif */
@media (max-width: 992px) {
  .guest-alumni-card {
    flex: 1 1 calc(50% - 20px); /* jadi 2 per baris */
  }
}

@media (max-width: 576px) {
  .guest-alumni-card {
    flex: 1 1 100%; /* kalau layar super kecil jadi 1 full */
  }
}

/* ============================= */
/*   DETAIL STAFF (SINGLE CARD)  */
/* ============================= */

.staff-det-section {
  padding: 50px 8%;
  background: #fff;
}

.staff-det-container {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
}

/* === FOTO STAFF === */
.staff-det-photo {
  width: 230px;
  height: 300px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.staff-det-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* === CARD UTAMA === */
.staff-det-card {
  flex: 1;
  min-width: 320px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  padding: 25px 30px;
  color: #333;
}

/* === NAMA DAN PERAN === */
.staff-det-name {
  font-weight: 700;
  color: #8b0000;
  margin-bottom: 0.3rem;
}

.staff-det-role {
  color: #555;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

/* === INFORMASI DASAR === */
/* === INFORMASI RATA (Label : Value) === */
.staff-det-info {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.staff-det-row {
  display: grid;
  grid-template-columns: 160px 1fr; /* kolom kiri tetap, kanan fleksibel */
  align-items: start;
}

.staff-det-row span:first-child {
  font-weight: 600;
  color: #222;
  position: relative;
}

.staff-det-row span:first-child::after {
  content: ":";
  position: absolute;
  right: 5px;
}

.staff-det-row span:last-child {
  color: #333;
  word-break: break-word; /* biar link panjang ga overflow */
}

.staff-det-row a {
  color: #0b2a7d;
  text-decoration: none;
}

.staff-det-row a:hover {
  text-decoration: underline;
}

/* Responsif */
@media (max-width: 600px) {
  .staff-det-row {
    grid-template-columns: 120px 1fr;
  }
}

.staff-det-info p {
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.staff-det-info a {
  color: #0b2a7d;
  text-decoration: none;
}

.staff-det-info a:hover {
  text-decoration: underline;
}

/* === BAGIAN SUB (Pendidikan & Publikasi) === */
.staff-det-section-sub {
  margin-top: 1.5rem;
}

.staff-det-section-sub h5 {
  color: #8b0000;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.staff-det-section-sub ul {
  padding-left: 1.2rem;
  margin: 0;
}

.staff-det-section-sub li {
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* === RESPONSIVE === */
@media (max-width: 992px) {
  .staff-det-container {
    gap: 1.5rem;
  }

  .staff-det-photo {
    width: 200px;
    height: 260px;
  }
}

@media (max-width: 768px) {
  .staff-det-container {
    flex-direction: column;
    align-items: center;
    text-align: left;
  }

  .staff-det-photo {
    width: 200px;
    height: 260px;
  }

  .staff-det-card {
    width: 100%;
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .staff-det-photo {
    width: 180px;
    height: 230px;
  }

  .staff-det-card {
    padding: 18px;
  }

  .staff-det-name {
    font-size: 1rem;
  }

  .staff-det-info p,
  .staff-det-section-sub li {
    font-size: 0.9rem;
  }
}
