/* Archives */
/* =============================
   🎓 Portal Dosen - Modern UI
   ============================= */

:root {
  --primary-color: #007c5c;
  --secondary-color: #1d3557;
  --gray: #f8f9fa;
  --text-dark: #333;
  --text-light: #666;
  --radius: 8px;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

body {
  font-family: "Segoe UI", sans-serif;
  background: #fff;
  color: var(--text-dark);
}

.lectures-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.lectures-title {
  font-size: 30px;
  text-align: center;
  margin-bottom: 30px;
  color: var(--secondary-color);
}

/* ========================
   🧭 Layout: Sidebar + Grid
   ======================== */
.lectures-layout {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

/* ============ SIDEBAR FILTER ============= */
.lectures-sidebar {
  flex: 0 0 280px;
  background: #f9f9f9;
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.lectures-sidebar label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--text-dark);
}

.lectures-input,
.lectures-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  font-size: 14px;
  margin-bottom: 20px;
  background: #fff;
}

.lectures-reset-btn {
  width: 100%;
  background: #ccc;
  border: none;
  padding: 10px;
  font-weight: bold;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s ease;
}
.lectures-reset-btn:hover {
  background: #bbb;
}

/* =========== KONTEN DOSEN ============ */
.lectures-content {
  flex: 1;
  min-width: 0;
}

.spinner-center {
  text-align: center;
  padding: 30px 0;
  font-size: 15px;
  color: #888;
}

/* ============ DOSEN GRID ============ */
.lecture-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.lecture-box {
  display: flex;
  background: #fff;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease;
}
.lecture-box:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.lecture-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-right: 16px;
  object-fit: cover;
  border: 2px solid #ddd;
}

.lecture-content {
  display: flex;
  flex-direction: column;
}

.lecture-name a {
  text-decoration: none;
  color: black;
}
.lecture-name a:hover {
  color: #1b138f;
  font-size: 20px;
}

.lecture-meta {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 5px;
}

.lecture-detail {
  margin-top: 10px;
}
.lecture-detail a {
  display: inline-block;
  padding: 6px 12px;
  font-size: 13px;
  background: var(--primary-color);
  color: white;
  border-radius: 6px;
  text-decoration: none;
}
.lecture-detail a:hover {
  background: #002c5f;
  color: azure;
}
a.page-link.active {
  background: #b2ff00;
}

/* ============== PAGINATION ============== */
.lecture-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.lecture-pagination .page-link {
  padding: 8px 14px;
  font-size: 14px;
  background: #138f1d;
  color: #ffffff;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
}
.lecture-pagination .page-link:hover {
  background: var(--primary-color);
  color: #fff;
}
.lecture-pagination .active {
  background: var(--primary-color);
  color: white;
  font-weight: bold;
}

/* ============================
   ✅ Responsive (Mobile / Tab)
   ============================ */
@media (max-width: 991px) {
  .lectures-layout {
    flex-direction: column;
  }

  .lectures-sidebar,
  .lectures-content {
    width: 100%;
  }

  .lecture-box {
    flex-direction: row;
    gap: 20px;
  }

  .lecture-img {
    margin-right: 0;
    margin-bottom: 12px;
  }

  .lecture-content {
    align-items: left;
  }
}

@media (max-width: 576px) {
  .lectures-container {
    padding: 20px 15px;
  }

  .lectures-title {
    font-size: 24px;
  }

  .lecture-name a {
    font-size: 16px;
  }

  .lecture-meta {
    font-size: 12px;
  }

  .lecture-detail a {
    font-size: 12px;
    padding: 5px 10px;
  }

  .lecture-pagination .page-link {
    font-size: 13px;
    padding: 7px 12px;
  }
}

/* Single */
.lecture-container {
  display: flex;
  flex-wrap: wrap;
  margin: 40px auto;
  gap: 5px;
}

.lecture-photo img {
  width: 100%;
  height: 400px;
  border-radius: 10px;
  object-fit: cover;
}
.no-photo {
  background: #ccc;
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
}
.lecture-name-single {
  margin-top: 15px;
  margin-bottom: 15px;
  font-size: 18px;
  text-align: left;
  line-height: 24px;
  font-weight: bold;
}
.lecture-name {
  font-size: 18px;
  text-align: left;
  line-height: 24px;
}
.lecture-meta {
  list-style: none;
  padding: 0;
  font-size: 14px;
}
.lecture-meta li {
  margin-bottom: 10px;
  line-height: 1.4;
}
.lecture-meta strong {
  display: block;
  color: #555;
}
.lecture-content {
  flex: 2.5;
  min-width: 250px;
  padding: 10px;
}
@media (max-width: 768px) {
  .lecture-container {
    flex-direction: column;
  }
  .lecture-content,
  .lecture-sidebar {
    width: 100%;
  }
}

/* Sidebar */
.lecture-sidebar {
  flex: 1;
  min-width: 280px;
  padding: 15px;
  border-radius: 6px;
  background: rgba(253, 253, 253, 0.62);
}
.lecture-sidebar-left {
  flex: 1;
  min-width: 280px;
  padding: 15px;
  border-radius: 6px;
  background: rgba(253, 253, 253, 0.62);
}
.lecture-sidebar-right {
  flex: 1;
  min-width: 280px;
  padding: 15px;
  border-radius: 6px;
  background: rgba(253, 253, 253, 0.62);
}

.sidebar-heading,
h3.sidebar-lecture {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 16px;
  color: #006400;
  margin-left: 0; /* hilangkan margin negatif */
}

/* Related Lecture List */
.related-lecture-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.related-lecture-item {
  margin-bottom: 12px;
}

.related-lecture-link {
  display: flex;
  align-items: center;
  background: #eafaf1;
  border-radius: 6px;
  padding: 8px 12px;
  text-decoration: none;
  color: #004d2f;
  transition: background 0.3s;
}

.related-lecture-link:hover {
  background: #92d7f7;
}

/* Thumbnail */
.related-thumb {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 4px;
  margin-right: 10px;
  background: #ccc; /* fallback warna saat gambar kosong */
}

.related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Judul */
.related-title {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

/* No Thumbnail Fallback */
.no-thumb {
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #ddd;
  color: #666;
  font-size: 24px;
  border-radius: 4px;
}
.print-cv-button {
  margin-top: 20px;
  padding: 10px 18px;
  background-color: #2271b1;
  color: #fff;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  font-size: 16px;
}
.print-cv-button:hover {
  background-color: #005177;
}
@media print {
  /* Sembunyikan seluruh halaman */
  body * {
    visibility: hidden;
  }

  /* Tampilkan hanya elemen yang ingin dicetak */
  .lecture-sidebar-left,
  .lecture-sidebar-left *,
  .lecture-content,
  .lecture-content * {
    visibility: visible;
  }

  /* Tata letak tetap */
  .lecture-sidebar-left,
  .lecture-content {
    position: relative;
    z-index: 999;
  }

  /* Sembunyikan tombol print */
  .print-cv-button {
    display: none !important;
  }

  /* Hilangkan margin default printer */
  @page {
    margin: 0;
  }

  body {
    margin: 0;
  }
}
