/* ===========================
   💬 WIDGETS PENGUMUMAN
=========================== */
.widget-pengumuman-container {
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  margin-bottom: 20px;
}

.pengumuman-title {
  font-size: 1.5rem;
  margin-bottom: 5px;
  color: #003366;
}

.pengumuman-subtitle {
  font-size: 1rem;
  color: #666;
  margin-bottom: 20px;
}

.pengumuman-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.pengumuman-box {
  flex: 1 1 calc(50% - 10px);
  display: flex;
  gap: 12px;
  background: #fff;
  border: 1px solid #ddd;
  padding: 10px 12px;
  border-radius: 6px;
}

.pengumuman-icon {
  font-size: 3rem;
  color: #0073aa;
}

.pengumuman-content {
  flex: 1;
}

.pengumuman-post-title {
  font-size: 1rem;
  font-weight: 600;
  color: #003366;
  text-decoration: none;
}

.pengumuman-post-title:hover {
  text-decoration: none;
  color: #159245;
}

.pengumuman-meta {
  font-size: 12px;
  color: #777;
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.pengumuman-more-link {
  margin-top: 20px;
  text-align: right;
}

.pengumuman-more-link a {
  font-size: 0.9rem;
  color: #f8f9fa;
  text-decoration: none;
  background-color: #0073aa;
  padding: 7px 14px 7px 14px;
  border-radius: 5px;
}
.pengumuman-more-link a:hover {
  text-decoration: none;
  color: #f8f9fa;
  background-color: #047939;
}

/* Responsive */
@media (max-width: 768px) {
  .pengumuman-box {
    flex: 1 1 100%;
  }
}

/* ===========================
   💬 WIDGETS BERITA
=========================== */
.berita-terbaru-container {
  padding: 20px;
  border-radius: 8px;
  overflow: hidden;
}

.berita-header {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.berita-title {
  font-size: 1.6rem;
  margin-bottom: 5px;
  color: #003366;
}

.berita-subtitle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  color: #555;
}

.berita-link-archive {
  font-size: 0.9rem;
  color: #f8f9fa;
  text-decoration: none;
  background-color: #0073aa;
  padding: 7px 14px 7px 14px;
  border-radius: 5px;
}
.berita-link-archive:hover {
  text-decoration: none;
  color: #f8f9fa;
  background-color: #047939;
}

.berita-content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.berita-main-left {
  flex: 1.5;
  position: relative;
  margin-bottom: 10px;
}

.berita-thumb {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 16px;
  height: 350px;
  object-fit: cover;
}

.berita-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #0073aa;
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
}

.berita-post-title {
  font-size: 1.7rem;
  margin-bottom: 10px;
  font-weight: bold;
}

.berita-post-title a {
  color: #222;
  text-decoration: none;
}
.berita-post-title a:hover {
  text-decoration: none;
  color: #099b63;
}

.berita-meta {
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 8px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 0.2rem;
}

.berita-excerpt {
  font-size: 0.95rem;
  color: #333;
  margin-bottom: 10px;
}

.berita-readmore {
  display: inline-block;
  background: #0073aa;
  color: white;
  padding: 6px 14px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9rem;
}
.berita-readmore:hover {
  text-decoration: none;
  color: #f8f9fa;
  background-color: #047939;
}

.berita-sidebar-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.berita-side-box {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.berita-side-thumb {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
}

.berita-side-content {
  flex: 1;
  line-height: 1.3;
}

.berita-side-title {
  font-size: 0.9rem;
  font-weight: 400;
  color: #222;
  text-decoration: none;
}

.berita-side-title:hover {
  text-decoration: none;
  color: #086458;
}

@media (max-width: 768px) {
  .berita-content-wrapper {
    flex-direction: column;
  }
  .berita-sidebar-right {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
  }
  .berita-side-box {
    flex: 1 1 48%;
  }
  .berita-side-content {
    line-height: 1;
  }
  .berita-side-title {
    font-size: 0.8rem;
  }
  .berita-meta {
    font-size: 0.7rem;
    margin-top: 5px;
  }
}
/* ===========================
   💬 WIDGETS PRODI
=========================== */
.programstudi-wrapper {
  padding: 40px 0;
}

.programstudi-inner {
  margin: 0 auto;
  padding: 0 20px;
}

.head-program {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
  flex-wrap: nowrap;
  background-color: #4efd6a42;
  padding: 20px;
  box-shadow: 0 6px 18px rgb(0 0 0 / 21%);
}

.head-image {
  flex: 1 1 auto;
}
.head-image img {
  width: 250px;
  height: auto;
  object-fit: cover;
  border-bottom-left-radius: 30px;
  border-bottom-right-radius: 30px;
  border-bottom: 15px solid #1aa329;
}

.head-text {
  flex: 1 1 75%;
}
.head-text h2 {
  font-size: 1.8rem;
  border-left: 4px solid #125ad9;
  margin-bottom: 30px;
  background-color: #a6f0ff;
  width: max-content;
  padding: 10px;
}
.head-text p {
  font-size: 1rem;
  color: #555;
}

.programstudi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 20px;
}

.program-box {
  display: flex;
  gap: 15px;
  padding: 20px;
  border-radius: 10px;
  align-items: flex-start;
  transition: box-shadow 0.3s ease;
}

.program-box:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.program-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.program-content .program-link {
  font-weight: bold;
  font-size: 1rem;
  display: block;
  margin-bottom: 5px;
  color: #003366;
  text-decoration: none;
}

.program-content .program-link:hover {
  text-decoration: underline;
}

.program-desc {
  font-size: 0.9rem;
  color: #444;
}

/* Responsive */
@media (max-width: 768px) {
  .head-program {
    flex-direction: column;
  }
  .programstudi-grid {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  }
  .program-box {
    flex-direction: column;
  }
  .program-desc {
    font-size: 0.7rem;
  }
}
@media (max-width: 480px) {
  .programstudi-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
  .program-box {
    flex-direction: column;
  }
  .program-desc {
    font-size: 0.7rem;
  }
}

/* ===========================
   💬 WIDGETS PENELITIAN
=========================== */
.penelitian-widget-wrapper {
  background: #a6c9f1;
  padding: 30px 20px;
  overflow: hidden;
}

.penelitian-widget-container {
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.penelitian-text-block {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
}

.penelitian-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  font-size: 1.5rem;
  color: #157347;
}

.penelitian-header img {
  width: 28px;
  height: 28px;
}

.penelitian-desc {
  font-size: 0.95rem;
  color: #333;
}

.penelitian-link {
  margin-top: auto;
  color: #006699;
  font-size: 0.9rem;
  text-decoration: none;
}

.penelitian-link:hover {
  text-decoration: underline;
}

.penelitian-cards {
  flex: 3 1 700px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.penelitian-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  display: block;
  color: #fff;
  text-decoration: none;
}

.penelitian-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0));
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.penelitian-kategori {
  background: #058046;
  padding: 4px 10px;
  font-size: 0.75rem;
  border-radius: 5px;
  display: inline-block;
  margin-bottom: 6px;
  max-width: max-content;
}

.penelitian-card h4 {
  font-size: 1rem;
  margin: 0 0 4px;
  color: #fff;
  font-weight: 600;
}

.penelitian-date {
  font-size: 0.75rem;
  color: #ddd;
}

/* ===========================
   💬 WIDGETS PENGABDIAN
=========================== */

.pengabdian-widget-wrapper {
  background: #b4f8ce;
  padding: 30px 20px;
  overflow: hidden;
}

.pengabdian-widget-container {
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.pengabdian-text-block {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
}
.pengabdian-kategori {
  background: #052280;
  padding: 4px 10px;
  font-size: 0.75rem;
  border-radius: 5px;
  display: inline-block;
  margin-bottom: 6px;
  max-width: max-content;
}

.pengabdian-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  font-size: 1.5rem;
  color: #157347;
}

.pengabdian-header img {
  width: 28px;
  height: 28px;
}

.pengabdian-desc {
  font-size: 0.95rem;
  color: #333;
}

.pengabdian-link {
  margin-top: auto;
  color: #006699;
  font-size: 0.9rem;
  text-decoration: none;
}

.pengabdian-link:hover {
  text-decoration: underline;
}

.pengabdian-cards {
  flex: 3 1 700px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.pengabdian-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  display: block;
  color: #fff;
  text-decoration: none;
}

.pengabdian-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.pengabdian-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0));
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.pengabdian-kategori {
  background: #00c851;
  padding: 4px 10px;
  font-size: 0.75rem;
  border-radius: 50px;
  display: inline-block;
  margin-bottom: 6px;
}

.pengabdian-card h4 {
  font-size: 1rem;
  margin: 0 0 4px;
  color: #fff;
  font-weight: 600;
}

.pengabdian-date {
  font-size: 0.75rem;
  color: #ddd;
}

/* ===========================
   💬 WIDGETS STATISTIK
=========================== */

.statistik-fakultas-widget {
  padding: 1rem;
  background: linear-gradient(180deg, #15079fdb 0% 10%, rgb(12 87 49 / 80%) 70%);
  color: #ffffff;
  overflow: hidden;
  box-shadow: 0 6px 18px rgb(0 0 0 / 57%);
}

/* === HEADER LAYOUT === */
.statistik-header-grid {
  display: flex;
  gap: 3rem;
  margin-bottom: 2rem;
  align-items: center;
  margin-bottom: 2rem;
}

.shg-left {
  flex: 1 1 100px;
}
.stat-header-logo {
  max-height: 150px;
  object-fit: cover;
  filter: drop-shadow(0px 0px 10px white);
}

.shg-center {
  flex: 4 1 100px;
  display: flex;
  gap: 1.5rem;
  flex-wrap: nowrap;
  flex-direction: column;
}
.qs-item {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.qs-icon {
  font-size: 2rem;
}
.qs-text {
  line-height: 1.5;
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
}
.qs-text strong {
  font-size: 1.1rem;
}

.shg-right {
  flex: 4 2 400px;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex-direction: row;
}
.ranking-box {
  background: linear-gradient(90deg, #0c7732db 0% 10%, rgb(7 31 77 / 54%) 70%);
  border-left: 4px solid gold;
  padding: 14px 12px;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
}

/* === MAIN INFO === */
.statistik-main {
  margin-bottom: 2rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 25px;
  border: 1px solid #4ce32f;
  border-radius: 10px;
  gap: 30px;
}
.col-university {
  width: 60%;
}
.col-sejarah {
  text-decoration: none;
}
.statistik-main h3 {
  font-size: 2.2rem;
  margin-bottom: 0.8rem;
  font-weight: 700;
  color: #fdfdfd;
}
.statistik-main p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #e2e2e2;
}
.link-tentang {
  display: inline-block;
  color: #b1ffe3;
  font-weight: 600;
  margin-top: 0.5rem;
  text-decoration: none;
}
.link-tentang:hover {
  text-decoration: underline;
}
.founded-date {
  font-size: 0.8rem;
  color: #ffffff;
  padding: 5px 15px 5px 15px;
  background-color: #147cab;
  border-radius: 5px;
}
.founded-date strong {
  display: block;
  font-size: 1rem;
}

/* === LOGO & STATISTIK === */
.statistik-body {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  align-items: flex-start;
}
.logo-block img {
  max-width: 400px;
  padding: 6px;
  border-radius: 14px;
  height: 300px;
  object-fit: cover;
  box-shadow: 0 6px 18px rgb(0 0 0 / 21%);
}

.stats-grid {
  flex: 1;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(90deg, #2a90c1 0% 10%, #187f20 70%);
  border-radius: 10px;
  padding: 1rem;
}
.stat-item .icon {
  background: #fafcad;
  font-size: 1.3rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  flex-shrink: 0;
}
.stat-item .text {
  display: flex;
  flex-direction: column;
}
.stat-item .text strong {
  font-size: 1.2rem;
  font-weight: bold;
  color: #fff;
}
.stat-item .text div {
  font-size: 0.85rem;
  color: #eee;
  margin-top: 2px;
}

/* === KAMPUS FOOTER === */
.kampus-footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 253, 253, 0.685);
  text-align: center;
}
.kampus-footer h4 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: azure;
}
.kampus-footer p {
  font-size: 0.9rem;
  color: #dcdcdc;
  line-height: 1.5;
}

/* === RESPONSIVE === */
@media (max-width: 920px) {
  .statistik-body {
    display: flex;
    flex-direction: column;
  }
  .logo-block img {
    max-width: 100%;
    height: auto;
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  .statistik-header-grid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
  }
  .stat-header-logo {
    max-height: 200px;
  }
  .shg-center,
  .shg-right {
    display: flex;
    flex-direction: column;
    scale: 90%;
  }
  .qs-item {
    display: flex;
    width: 160px;
    flex-direction: row;
    align-items: flex-start;
    gap: 15px;
  }

  .statistik-main {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column-reverse;
  }
  .col-university {
    width: 100%;
    margin-top: 20px;
  }
  .statistik-body {
    display: flex;
    flex-direction: column;
  }
  .logo-block img {
    max-width: 100%;
    height: auto;
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 480px) {
  .stat-header-logo {
    width: 100%;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
