:root {
  --custom-primary: #185eaa;
  --secondary: #ffa000;
  --accent: #fffb00;
}

/* Custom ScrollBar */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background-color: #185eaa;
  border-radius: 10px;
  border: 3px solid #f1f1f1;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #0056b3;
}

/* Custom ScrollBar Ends*/

* {
  margin: 0;
  padding: 0;
}

/* Fonts */
body {
  font-family: "Poppins", sans-serif;
}

.fade {
  transition: background-image 1s ease-in-out;
}

.dropdown-item {
  color: white;
  font-size: 0.8rem;
}

.icon-circle i {
  font-size: 150px;
}

/* akademik start */
/* Akademik */
.icon-circle {
  width: 137px;
  height: 137px;
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  background-color: #fffb00;
}

.icon-circle img {
  height: 91px;
  width: 91px;
}

/* akademik end */

.rektor-container {
  width: 400px;
  height: 400px;
  margin: 0 auto;
  background-color: #ffa000;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.rektor-container img {
  width: 400px;
  height: 400px;
  object-fit: cover;
}

.nav-link {
  font-size: 0.7rem;
  padding-left: 5px;
  border-radius: 5px;
}

.nav-link:hover {
  background-color: #ffa000;
}

.custom-scroll {
  max-height: 300px;
  /* Sesuaikan tinggi sesuai kebutuhan */
  overflow-y: auto;
}

/* Menyembunyikan scrollbar di Webkit */
.custom-scroll::-webkit-scrollbar {
  display: none;
}

/* Menyembunyikan scrollbar di Firefox */
.custom-scroll {
  scrollbar-width: none;
  -ms-overflow-style: none;
  /* Internet Explorer dan Edge */
}

/* Tablet (ukuran antara 768px dan 991px) */
@media (max-width: 991px) {
  .rektor-container {
    width: 300px;
    height: 300px;
  }

  .rektor-container img {
    width: 300px;
    height: 300px;
  }

  .nav-link {
    font-size: 16px;
  }

  .top-bar .container {
    font-size: 0.8rem;
    /* Font lebih kecil pada mobile */
  }
}

/* infinite Footer Header logo slider*/

@keyframes slides {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-100%);
  }
}

.logos {
  overflow: hidden;
  padding: 30px 0px;
  white-space: nowrap;
  position: relative;
}

.logos:before,
.logos:after {
  position: absolute;
  top: 0;
  content: "";
  width: 250px;
  height: 100%;
  z-index: 2;
}

.logos:before {
  left: 0;
  background: linear-gradient(to left, rgba(255, 255, 255, 0), rgb(24, 90, 161));
}

.logos:after {
  right: 0;
  background: linear-gradient(to right, rgba(255, 255, 255, 0), rgb(24, 90, 161));
}

.logo_items {
  display: inline-block;
  animation: 35s slides infinite linear;
}

.logos:hover .logo_items {
  animation-play-state: paused;
}

.logo_items img {
  height: 80px;
}

/* infinite Footer Header logo slider End*/

.container-fluid {
  position: relative;
  overflow: hidden;
  /* Menjaga gambar tidak keluar dari kontainer */
}

.sambutan-rektor::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("img/viktor.png");
  background-size: cover;
  /* Menyesuaikan ukuran gambar dengan kontainer */
  background-position: center;
  /* Mengatur posisi gambar di tengah */
  opacity: 0.1;
  /* Mengatur transparansi */
  z-index: 1;
  /* Menempatkan di bawah konten */
}

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

.row {
  position: relative;
  /* Mengatur posisi untuk z-index pada row */
  z-index: 2;
  /* Menempatkan konten di atas gambar latar belakang */
}

.d-none {
  display: none;
  /* Sembunyikan elemen dengan kelas d-none */
}

#toggleText {
  cursor: pointer;
  /* Mengubah kursor menjadi pointer */
  color: white;
  /* Mengatur warna teks */
}

/* Responsive img di section berita */
.responsive-img {
  width: 100%;
  object-fit: cover;
  opacity: 1;
  height: 480px;
}

/* Responsive Image Section kampus - man yang ini jangan di hapus*/
@media (min-width: 1600px) {
  .responsive-img {
    height: 480px;
  }
}

@media (max-width: 767px) {
  .responsive-img {
    height: 300px;
  }
}

/* Layanan dan Agenda scroll */

.custom-card {
  position: relative;
  overflow: hidden;
  /* Ensures the ::before element doesn't extend beyond the card */
  background-color: #f5f8fa;
  border-radius: 10px;
  border: none;
  max-width: 100%;
  height: 100px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  transition: color 0.3s ease;
  /* Text color transition */
}

/* Create a sliding effect for the background */
.custom-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  /* Start from the left outside the card */
  width: 100%;
  height: 100%;
  background-color: #1976d2;
  transition: transform 0.5s ease;
  /* Adjust the speed as needed */
  transform: translateX(0);
  z-index: 0;
  /* Ensure the background layer is below the content */
}

.custom-card:hover::before {
  transform: translateX(100%);
  /* Slide from left to right */
}

.custom-card:hover {
  color: white;
  /* Change text color on hover */
}

.custom-card > * {
  position: relative;
  z-index: 1;
  /* Ensure content stays above the background layer */
}

.date-box {
  background-color: #1976d2;
  /* Blue background for the date box */
  color: white;
  padding: 35px;
  width: 50px;
  height: 50px;
  text-align: center;
}

.date-day {
  font-size: 20px;
  font-weight: bold;
}

.date-month {
  font-size: 14px;
}

.custom-card p {
  font-size: 12px;
}

.agenda-scroll {
  max-height: 315px;
}

@media (min-width: 1600px) {
  .agenda-scroll {
    max-height: 520px;
  }
}

@media (max-width: 767px) {
  .responsive-img {
    height: 300px;
  }
}

/* Hover pada section kampus */
.card-kampus {
  transition: margin-bottom 0.3s ease, transform 0.3s ease;
}

.card-img-top {
  transition: transform 0.3s ease;
}

.card-kampus:hover .card-img-top {
  transform: scale(1.05);
}

/* Hover pada section Layanan */

.title-text {
  color: white;
  font-weight: bold;
  font-size: 20px;
  margin-right: 10px;
}

.line {
  flex-grow: 1;
  height: 5px;
  background-color: white;
  border: none;
}

.card-Layanan {
  transition: margin-bottom 0.3s ease, transform 0.3s ease;
}

.card-layanan-image {
  transition: transform 0.3s ease;
  width: 60px;
}

.card-layanan:hover .card-layanan-image {
  transform: scale(1.05);
}

/* Layanan dan Agenda scroll */
.agenda-scroll {
  max-height: 320px;
}

/* footer border right */

.footer-border {
  border-right: solid 2px rgba(225, 225, 225, 0.6);
}

@media (max-width: 767px) {
  .footer-border {
    border-right: solid 0px rgba(225, 225, 225, 0.6);
  }
}

/* Kalender */
.calendar {
  background-color: #2162a0;
  color: white;
  padding: 20px;
  border-radius: 15px;
  width: 100%;
  text-align: center;
}

.header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.calendar h2 {
  margin: 0;
  font-size: 24px;
}

.arrow {
  cursor: pointer;
  font-size: 16px;
  color: #ffffff;
  user-select: none;
}

.days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  margin-top: 10px;
}

.day {
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 5px;
  font-size: 16px;
}

.day-disabled {
  color: #999;
}

.day-today {
  background-color: #ffdd57;
  color: #333;
}

.day-weekend {
  color: #ff6b6b;
}

/* Kalender Akademik */

.kalender-akademik tr .tanggal {
  color: #ffa000;
  font-weight: 600;
  padding: 5px;
}

.download-btn {
  background-color: #2162a0;
  color: white;
  font-weight: 500;
}

.download-btn:hover {
  background-color: #1a4e7f;
  color: white;
  font-weight: 500;
}

.icon-border {
  border: 1px solid red;
  border-radius: 50%;
  /* Ensures the border is circular */
  display: inline-flex;
  box-sizing: content-box;
  /* Ensures padding doesn't affect the icon size */
}

/* Footer Responsive */

/* @media (max-width: 740px) {
  footer p,
  h4,
  h5,
  h6 {
    font-size: 9px;
  }

  footer .maps img {
    width: 130px;
  }

  footer .logo li {
    font-size: 13px;
  }
} */

/* Page Berita */
.thick-line {
  border: none;
  width: 20%;
  height: 3px;
  background-color: rgb(255, 255, 255);
  margin: 10px auto;
}

.thick-line-2 {
  border: none;
  height: 3px;
  background-color: #185eaa;
}

.card-left {
  position: relative;
  height: 300px;
  /* Sesuaikan tinggi sesuai kebutuhan */
  width: 100%;
  overflow: hidden;
  color: #fff;
}

.card-right {
  position: relative;
  height: 145px;
  /* Sesuaikan tinggi sesuai kebutuhan */
  width: 100%;
  overflow: hidden;
  color: #fff;
}

.card-img-background {
  background-size: cover;
  background-position: center;
  width: 100%;
  height: 100%;
}

.card-overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.6);
  /* Background hitam dengan transparansi */
  padding: 10px;
  ransition: background-color 0.3s ease;
}

.card-overlay:hover {
  background-color: rgba(255, 160, 0, 0.7);
  /* Warna latar belakang saat hover */
}

.card-overlay.active {
  background-color: #ffa000;
  /* Warna latar belakang saat elemen di-klik */
  transition: background-color 0.3s ease;
  /* Transisi halus untuk perubahan warna */
}

.card-text {
  margin: 0;
  font-size: 11px;
}

/* Carousell */

.carousel-inner {
  justify-content: center;
  /* Mengatur konten di tengah */
  align-items: center;
  /* Vertikal center */
}

.carousel-indicators {
  position: absolute;
  bottom: 10px;
}

.carousel-indicators .indicator {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  margin: 1px;
  background-color: #a9a9a9;
  /* Warna default */
}

.carousel-indicators .active {
  background-color: #ffa000;
  /* Warna aktif */
}

/* Sembunyikan angka barkernya */
.carousel-indicators li {
  list-style-type: none;
  /* Menghilangkan default bullet point */
}

/* Gaya untuk panah */
.carousel-control-prev,
.carousel-control-next {
  background-color: transparent;
  /* Menghilangkan latar belakang */
  border: none;
  /* Menghapus border */
  z-index: 10;
  /* Mengatur z-index agar berada di depan layer */
  width: 40px;
  /* Lebar panah */
  height: 40px;
  /* Tinggi panah */
  margin: 5px;
  /* Menambahkan margin 5 piksel */
  top: 50%;
  /* Menempatkan panah di tengah vertikal */
  transform: translateY(-50%);
  /* Menyelaraskan panah ke tengah secara vertikal */
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: transparent;
  /* Menghilangkan background default */
  color: blue;
  /* Mengubah warna panah menjadi biru */
  font-size: 2rem;
  /* Mengatur ukuran font ikon panah */
}

/* ********************************************************************************************************************************************************* */
/* ********************************************************************************************************************************************************* */
/* ********************************************************************************************************************************************************* */
/* ********************************************************************************************************************************************************* */
/* ********************************************************************************************************************************************************* */
/* ********************************************************************************************************************************************************* */
/* ********************************************************************************************************************************************************* */
/* ********************************************************************************************************************************************************* */
/* Semua Berita */
.news-card {
  position: relative;
  overflow: hidden;
  color: white;
  transition: transform 0.3s ease-in-out;
}

.news-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-card .card-overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
  transition: background 0.3s ease;
}

.news-card .news-title {
  font-weight: bold;
  transition: font-size 0.3s ease;
}

.news-card .news-date {
  font-size: 0.875rem;
  opacity: 0.8;
}

.news-card:hover img {
  transform: scale(1.1);
}

.news-card:hover .card-overlay {
  background: linear-gradient(to top, rgba(0, 115, 255, 0.9), rgba(0, 0, 0, 0));
}

.news-card:hover .news-title {
  font-size: 1.1rem;
}

/* filer */
/* Search input styling */
/* Container styling */
.container .filter {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Search input group */
.input-group {
  display: flex;
  width: 300px;
}

.input-group .form-control {
  background-color: #ff9f00 !important;
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
  border: none;
  color: white;
  padding: 0.5rem 1rem;
  font-size: 1rem;
}

.input-group .form-control::placeholder {
  color: white;
  opacity: 1;
}

/* Search button */
.input-group .btn-primary {
  background-color: #185eaa !important;
  border: none;
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
  padding: 0.5rem 1rem;
}

.input-group .btn-primary:hover {
  background-color: #1254a1 !important;
}

/* Container and filter layout */
.container .filter {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  /* Reduced gap between elements */
}

/* Search input styling */
.input-group {
  width: 300px;
}

.input-group .form-control {
  background-color: #ff9f00 !important;
  border: none;
  color: white;
  padding: 0.5rem 1rem;
  border-top-left-radius: 4px !important;
  border-bottom-left-radius: 4px !important;
}

.input-group .form-control::placeholder {
  color: white;
  opacity: 1;
}

.input-group .btn-primary {
  background-color: #185eaa !important;
  border: none;
  padding: 0.5rem 1rem;
  color: white;
  border-radius: 0 4px 4px 0;
}

/* Button group styles */
.btn-group {
  position: relative;
  /* Add small margin between search and buttons */
}

/* Main button style */
.btn-warning-berita {
  background-color: #ff9f00 !important;
  border: none !important;
  color: white !important;
  padding: 0.5rem 2rem;
  border-radius: 4px 0 0 4px !important;
  text-align: left;
  min-width: 120px;
}

/* Dropdown toggle button */
.btn-group .btn-primary {
  background-color: #185eaa !important;
  border: none !important;
  border-radius: 0 4px 4px 0 !important;
  padding: 0.5rem 1rem;
}

.dropdown-toggle-berita {
  width: 50px !important;
}

.dropdown-toggle-berita:hover {
  background-color: #ff9f00 !important;
}

.dropdown-toggle-berita::after {
  display: none;
}

/* Dropdown menu */
.dropdown-menu-berita {
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  background-color: #ff9f00 !important;
  border: none;
  border-radius: 4px;
  min-width: 100%;
  margin-top: 45px !important;
  padding: 0;
  transform: none !important;
  z-index: 1050;
}

/* Dropdown items */
.dropdown-menu-berita .dropdown-item {
  color: white;
  padding: 0.5rem 2rem;
  background: #ff9f00;
}

.dropdown-menu-berita .dropdown-item:first-child {
  background: #185eaa;
}

.dropdown-menu-berita .dropdown-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Responsive styles */
@media (max-width: 768px) {
  .container .filter {
    flex-direction: column;
    gap: 0.5rem;
  }

  .input-group,
  .btn-group {
    width: 100%;
    margin-left: 0;
  }
}

/* Remove focus outlines */
.form-control:focus,
.btn:focus {
  box-shadow: none;
  outline: none;
}

/* Title styling */
.title h3 {
  color: #185eaa;
  margin-bottom: 1.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .container .filter {
    flex-direction: column;
    align-items: stretch;
  }

  .input-group {
    width: 100%;
  }
}

/* pagination */
.pagination {
  display: flex;
  list-style: none;
  padding: 0;
  margin-top: 10px;
  gap: 5px;
  justify-content: center;
  align-items: center;
}

.pagination .page-item .page-link {
  background-color: #185eaa;
  color: white;
  border: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 4px;
  padding: 0;
  font-size: 14px;
  line-height: 1;
}

/* Special sizing for Previous/Next buttons to fit text */
.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link {
  width: auto;
  padding: 0 10px;
}

.pagination .page-item.active .page-link {
  background-color: #ffa000;
  color: white;
}

.pagination .page-item.disabled .page-link {
  background-color: #cccccc;
  color: #666666;
  cursor: not-allowed;
}

/* Optional hover effect */
.pagination .page-item:not(.disabled):not(.active) .page-link:hover {
  background-color: #1a6bc2;
}

/* Style for ellipsis */
.pagination .page-item .page-link span {
  background-color: transparent;
  color: #185eaa;
}

/* Detail Berita */
/* Detail Berita */
/* Detail Berita */
/* Detail Berita */
/* Detail Berita */
/* Detail Berita */
/* Detail Berita */
/* Detail Berita */
/* Detail Berita */
.shadow-card {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  /* Adjust the values for desired shadow effect */
  border-radius: 8px;
  /* Optional: add rounded corners */
}

.container .text-date {
  font-size: 12px;
}

.btn-extra-small {
  /* Smaller padding */
  font-size: 0.75rem;
  /* Smaller font size */
  line-height: 1;
  /* Reduced line height */
  width: 10px;
}

.dropdown-menu-detail {
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  background-color: #ff9f00 !important;
  border: none;
  border-radius: 4px;
  width: 100%;
  font-size: 0.75rem;
  margin-top: 30px !important;
  padding: 0;
  transform: none !important;
  z-index: 1050;
}

/* Dropdown items */
.dropdown-menu-detail .dropdown-item {
  color: white;
  padding: 0.5rem 2rem;
  background: #ff9f00;
}

.dropdown-menu-detail .dropdown-item:first-child {
  background: #185eaa;
}

.dropdown-menu-detail .dropdown-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Komentar */
.bdge {
  height: 21px;
  background-color: orange;
  color: #fff;
  font-size: 11px;
  padding: 8px;
  border-radius: 4px;
  line-height: 3px;
}

.comments {
  text-decoration: underline;
  text-underline-position: under;
  cursor: pointer;
}

.dot {
  height: 7px;
  width: 7px;
  margin-top: 3px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
}

.hit-voting:hover {
  color: blue;
}

.hit-voting {
  cursor: pointer;
}

.komentar {
  font-size: small;
}

.komentar .btn {
  background-color: #185eaa;
  color: white;
}

.komentar .btn:hover {
  background-color: #144376;
  color: white;
}

.list-group-kategori {
  padding: 0;
  /* Menghilangkan padding default */
}

.list-group-kategori li {
  position: relative;
  /* Untuk posisi bullet point */
  padding-left: 20px;
  margin-bottom: 8px;

  /* Memberikan jarak antara bullet point dan teks */
}

.list-group-kategori li::before {
  content: "";
  /* Menambahkan bullet point sebagai elemen pseudo */
  display: inline-block;
  width: 12px;
  /* Lebar bullet point */
  height: 12px;
  /* Tinggi bullet point */
  border-radius: 50%;
  /* Membuat bullet point berbentuk bulat */
  background-color: #ff9f00;
  /* Warna bullet point */
  position: absolute;
  /* Posisi absolut agar bisa ditata */
  left: 0;
  /* Jarak dari teks */
  top: 50%;
  /* Vertikal tengah */
  transform: translateY(-50%);
  /* Mengatur posisi vertikal */
}

.list-group-kategori a {
  text-decoration: none;
  /* Menghilangkan garis bawah */
  color: #185eaa;
  /* Mengambil warna teks dari elemen induk */
}

/* Event */
/* Event */
/* Event */
/* Event */
/* Event */

/* Event Terbaru */

.description {
  text-align: justify;
}

.left {
  padding: 20px;
}

.date-badge {
  background-color: white;
  color: black;
  border-radius: 0.75rem;
  padding: 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
  width: 300px;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.title {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: bold;
}

.description {
  color: white;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.link-more {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
}

.link-more:hover {
  text-decoration: underline;
}

.image-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.responsive-image {
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .title {
    font-size: 2rem;
  }

  .description {
    font-size: 1rem;
  }

  .date-badge {
    width: 250px;
    font-size: 0.9rem;
  }
}

@media (max-width: 992px) {
  .left {
    width: 90% !important;
  }

  .title {
    font-size: 1.8rem;
  }

  .date-badge {
    width: 220px;
    padding: 0.8rem;
  }
}

@media (max-width: 768px) {
  .title {
    font-size: 1.5rem;
  }

  .description {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .date-badge {
    width: 200px;
    font-size: 0.8rem;
    padding: 0.7rem;
  }

  .link-more {
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .left {
    width: 95% !important;
    transform: translateY(-5%) !important;
  }

  .title {
    font-size: 1.3rem;
  }

  .description {
    font-size: 0.85rem;
    margin-bottom: 1rem;
  }

  .date-badge {
    width: 180px;
    font-size: 0.75rem;
    padding: 0.6rem;
    margin-bottom: 1rem;
  }
}

/* Fix image aspect ratio */
.image-container {
  position: relative;
  overflow: hidden;
  padding-bottom: 75%; /* Adjust this value to control aspect ratio */
}

.responsive-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Custom styles for line indicators */
.custom-indicators {
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 0;
}

.custom-indicators button {
  width: 50px !important;
  height: 3px !important;
  border: none !important;
  border-radius: 0 !important;
  margin: 0 5px !important;
  background-color: rgba(255, 255, 255, 0.5) !important;
  transition: all 0.3s ease;
}

.custom-indicators button.active {
  background-color: white !important;
  width: 50px !important;
}

/* Ensure images maintain aspect ratio */
.carousel-item .image {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-item .image img {
  max-width: 100%;
  height: auto;
}

/* Smooth transition for carousel */
.carousel-item {
  transition: transform 0.6s ease-in-out;
}
.gradient-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(24, 94, 170, 1) 0%, rgba(24, 94, 170, 0) 100%);
  pointer-events: none;
  z-index: 1;
}

.left a {
  text-decoration: none;
  font-weight: bold;
}
/* Event Terbaru end */

.btn-detail {
  background-color: #ffa000;
  color: white;
}

.btn-detail:hover {
  background-color: #e18e00;
  color: white;
  box-shadow: 0px 4px 8px rgba(255, 157, 0, 0.2); /* Small, soft black shadow */
}

.btn-next {
  color: #185eaa;
  font-weight: normal;
}

.btn-next:hover {
  background-color: #185eaa;
  color: white;
  font-weight: normal;
}

.btn-prev {
  color: #185eaa;
  font-weight: normal;
}

.btn-prev:hover {
  background-color: #185eaa;
  color: white;
  font-weight: normal;
}

.current-date {
  color: #185eaa;
  font-weight: 500;
}

/* kalender akademik */
.today {
  background-color: #ffffff12 !important;
  color: rgb(255, 255, 255) !important;
}

/* Background colors for events */
.event-uts {
  background-color: #ffd700 !important;
  color: black !important;
}
.event-dosen {
  background-color: #000 !important;
  color: white !important;
}
.event-pmb {
  background-color: #90ee90 !important;
  color: black !important;
}
.event-regist {
  background-color: #008cff !important;
  color: rgb(255, 255, 255) !important;
}
.event-awal {
  background-color: #ba55d3 !important;
  color: rgb(255, 255, 255) !important;
}
.event-prodi {
  background-color: #ffffff !important;
  border: 1px solid #ff0000;
  color: black !important;
}
/* Legend Table */
.legend-table {
  margin-top: 20px;
  width: 100%;
  max-width: 400px;
  border-collapse: collapse;
  background: white;
}
.legend-table th,
.legend-table td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}
.legend-table th {
  background-color: #f4f4f4;
}
.color-box {
  width: 20px;
  height: 20px;
  display: inline-block;
  margin-right: 10px;
  vertical-align: middle;
  border-radius: 3px;
}

.table thead tr {
  background-color: #185eaa;
}

.table thead th {
  background-color: #185eaa;
  color: white;
}

.table tbody tr {
  border-bottom: #ffa000;
}

/* Fakultas Page */
/* Fakultas Page */
/* Fakultas Page */
/* Fakultas Page */
/* Fakultas Page */
.page-wrapper {
  margin-bottom: 40px;
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-box {
  border-radius: 15px;
  padding: 30px;
  width: 100%;
}

.info-box-fakultas {
  background-color: #fff;
}

.info-heading {
  font-size: 24px;
  border-bottom: 2px solid #ffffff;
  padding-bottom: 8px;
  margin-bottom: 25px;
  color: #fff;
  display: inline-block;
}

.info-heading-fakultas {
  font-size: 24px;
  border-bottom: 2px solid #ffa000;
  padding-bottom: 8px;
  margin-bottom: 25px;
  color: #185eaa;
}

.info-container {
  color: #fff;
  display: flex;
  align-items: flex-start;
}

.info-container-fakultas {
  color: #000;
  display: flex;
  align-items: flex-start;
}

.info-description {
  flex: 0 0 50%;
  padding-right: 20px;
  text-align: justify;
}

.info-description p {
  line-height: 1.6;
  margin: 0;
  font-size: 15px;
}

.info-media {
  flex: 0 0 50%;
  background-color: #e9ecef;
  border-radius: 10px;
  height: 280px;
  aspect-ratio: 1;
  overflow: hidden;
}

.info-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .info-container {
    flex-direction: column;
  }

  .info-container-fakultas {
    flex-direction: column;
  }

  .info-description,
  .info-media {
    flex: 0 0 100%;
    width: 100%;
    padding-right: 0;
  }

  .info-media {
    margin-top: 20px;
    aspect-ratio: 16/9;
  }
}

.bg-primary-custom {
  padding: 20px 0;
}

.section-title {
  text-align: center;
  color: #185eaa;
  position: relative;
  margin-bottom: 30px;
}

.section-title:after {
  content: "";
  display: block;
  width: 100px;
  height: 2px;
  background: #185eaa;
  margin: 10px auto;
}

.faculty-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.faculty-card {
  background: #185eaa;
  padding: 20px;
  border-radius: 8px;
  color: white;
  text-align: center;
  position: relative;
}

.card-button {
  background: #ffa500;
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 5px 20px;
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
}

.program-section {
  margin-top: 40px;
  text-align: center;
}

.program-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.program-btn {
  border: 1px solid #185eaa;
  border-radius: 20px;
  padding: 8px 20px;
  text-decoration: none;
  color: #333;
}

@media (max-width: 768px) {
  .faculty-grid {
    grid-template-columns: 2fr;
  }

  .program-buttons {
    flex-direction: column;
  }
}

/* Detail Fakultas */

.fakultas {
  background-color: #185eaa;
  position: relative;
  overflow: hidden;
}

.fakultas::before {
  content: "";
  background: url("img/logo-t.png") no-repeat;
  background-size: 300px 300px; /* Adjust the size as needed */
  position: absolute;
  transform: translate(-35%, -35%);
  top: 20px; /* Adjust position as needed */
  left: 20px; /* Adjust position as needed */
  width: 300px;
  height: 300px;
}

.prodi-text {
  color: #185eaa;
}

/*  */
/* RISET PAGE */

.card.card-carousel {
  border: 0;
  border-radius: 6px;
  color: rgba(0, 0, 0, 0.87);
  background: #fff;
  width: 100%;
}

.card.card-carousel img {
  border-radius: 6px;
}

.carousel-indicators {
  position: absolute;
  right: 0;
  bottom: 10px;
  left: 0;
  z-index: 15;
  display: flex;
  justify-content: center;
  padding-left: 0;
  margin-right: 15%;
  margin-left: 15%;
  list-style: none;
}

.carousel .carousel-indicators {
  bottom: 5px;
}

.carousel .carousel-indicators li {
  display: inline-block;
  width: 5px;
  height: 5px;
  text-indent: -999px;
  cursor: pointer;
  border: 1px solid #fff;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14),
    0 3px 1px -2px rgba(0, 0, 0, 0.12), 0 1px 5px 0 rgba(0, 0, 0, 0.2);
  border-radius: 2px;
}

.carousel .carousel-indicators .active {
  margin: 11px 5px;
}

.carousel .carousel-indicators li {
  margin: 11px 5px;
}

.carousel .carousel-indicators .active {
  margin-top: 10px;
  transform: scale(1.5);
  box-shadow: 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12),
    0 2px 4px -1px rgba(0, 0, 0, 0.2);
}

.carousel-inner {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.carousel-item {
  position: relative;
  display: none;
  align-items: center;
  width: 100% !important;
  transition: transform 0.6s ease;
  backface-visibility: hidden;
  perspective: 1000px;
}

.carousel-item.active {
  display: block;
}

.carousel .carousel-caption {
  padding-bottom: 20px;
  text-align: left;
}

.carousel .carousel-caption .material-icons {
  position: relative;
  top: 5px;
}

.carousel .carousel-control-next .material-icons {
  z-index: 5;
  display: inline-block;
  font-size: 30px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  height: 50px;
  margin: auto;
}

.carousel .carousel-control-prev .material-icons {
  z-index: 5;
  display: inline-block;
  font-size: 30px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  height: 50px;
  margin: auto;
}

.col-12 .card {
  background-color: #f5f5f5;
}

.card .img-card {
  width: 100px;
  object-fit: cover;
  border-radius: 5px;
  margin: 10px;
}

.card-riset {
  position: relative;
  height: 100%;
  /* Sesuaikan tinggi sesuai kebutuhan */
  width: 100%;
  overflow: hidden;
  color: #000000;
}

.card-img-background {
  background-size: cover;
  background-position: center;
  width: 100%;
  height: 100%;
}

.card-overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(244, 244, 244, 0.812);
  /* Background hitam dengan transparansi */
  padding: 10px;
  ransition: background-color 0.3s ease;
}

.card-overlay:hover {
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  /* Warna latar belakang saat hover */
}

.card-overlay.active {
  background-color: #ffa000;
  /* Warna latar belakang saat elemen di-klik */
  transition: background-color 0.3s ease;
  /* Transisi halus untuk perubahan warna */
}

.card-text {
  margin: 0;
  font-size: 11px;
}

