@import url("https://fonts.googleapis.com/css2?family=Anton&family=DM+Serif+Display:ital@0;1&family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap");

html, body {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
  background-color: white;
  display: flex;
  flex-direction: column;
}

body {
  flex: 1;
}

.box--header {
  display: flex;
  justify-content: flex-start; /* Pastikan elemen berada di kiri */
  align-items: center;
  background-image: url('Assets/bgnav.png');
  position: sticky;
  margin: 0;
  background-size: cover;
  background-position: center;
  z-index: 100;
}

.main-content {
  display: flex;
  flex-direction: column; /* Mengatur item menjadi kolom */
  align-items: center; /* Mengatur item untuk berada di tengah secara horizontal */
  width: 100%; /* Memastikan kontainer mengambil lebar penuh */
}

.box--btn {
  opacity: 0;
  animation: slideTop 1s ease forwards;
}

.box--iconmenu,
.box--tombol {
  transition: transform 0.5s ease;
}

.box--iconmenu:hover,
.box--tombol:hover {
  transform: scale(1.2);
}

.box--icon {
  height: 20px;
}

.box--logo img {
  height: 50px;
  margin: 0;
  opacity: 0;
  animation: slideRight 2s ease forwards;
}


.box--logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Geser ke kiri */
  margin-left: 0; /* Pastikan margin-left diatur ke 0 */
}

.box--navigasi {
  width: 80%;
  align-items: center;
  border: 1px solid transparent;
  padding-left: 20px;
  padding-right: 20px;
  white-space: nowrap;
  white-space: nowrap;
}

.box--subnavigasi {
  list-style-type: none;
  font-size: 1.5em;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: space-between;
  gap: 5px;
}

.box--iconmenu {
  margin-left: 40px;
  display: flex;
  position: relative;
}

/* Tambahkan jarak antara ikon dan teks dalam elemen box--judul */
.box--judul {
  text-decoration: none;
  color: rgb(255, 255, 255);
  font-weight: normal;
  font-size: small;
  display: flex;
  align-items: center;
  opacity: 0;
  animation: slideTop 1s ease forwards;
  animation-delay: calc(0.3s * var(--i));
}

.box--tulisan {
  margin-left: 5px; /* Atur nilai ini sesuai kebutuhan untuk jarak tambahan */
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #9D1414; /* Background color */
  width: 90%; /* Match the width of the parent */
  box-shadow: 0px 8px 16px 0px #00000033; /* Box shadow for effect */
  z-index: 1;
  text-align: left;
  padding: 0; /* Remove padding to avoid extra space */
  top: 45px; /* Positioning below the parent */
  right: 0; /* Align to the right if needed */
}

.dropdown-content a {
  color: #ffffff;
  text-decoration: none;
  display: block;
  padding: 5px; /* Control spacing inside links */
  font-size: 0.5em;
  box-sizing: border-box; /* Include padding in width calculation */
}

.dropdown-content a:hover {
  background-color: #ffffff; /* Hover background color */
  color: #555; /* Hover text color */
}

.box--iconmenu:hover .dropdown-content {
  display: block; /* Show dropdown on hover */
}

/* Slider Container */
.slider {
  position: relative;
  max-width: 90%; /* Maksimal lebar container */
  margin: auto;
  background-color: #9D1414; /* Background color of the box */
  border-radius: 20px; /* Rounded border */
  padding: 0; /* Remove padding inside the box */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Box shadow */
  overflow: hidden; /* Ensure no overflow */
  height: 200px; /* Tetapkan tinggi tetap untuk slider */
  top: 40px;
}

/* Slides */
.slides {
  display: flex;
  overflow: hidden;
  height: 100%; /* Pastikan slides mengambil tinggi penuh dari container */
}

.slide {
  display: flex; /* Align image and caption horizontally */
  min-width: 100%;
  transition: transform 0.5s ease;
}

/* Container for image and caption */
.slide-content {
  display: flex; /* Align image and caption horizontally */
  width: 100%;
  height: 100%; /* Pastikan container konten mengambil tinggi penuh dari slider */
  align-items: center; /* Center items vertically */
}

/* Fixed size for image */
.slide img {
  width: 50%; /* Gambar mengambil setengah lebar container */
  height: auto; /* Maintain aspect ratio */
  border-radius: 10px; /* Rounded corners for images */
}

/* Fixed size for caption */
.caption {
  width: 50%; /* Teks mengambil setengah lebar container */
  color: #ffffff;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.5); /* Background color for readability */
  border-radius: 5px;
  text-align: left; /* Align text to the left */
  box-sizing: border-box; /* Include padding in width calculation */
  height: 100%; /* Make caption height match the container */
  overflow: hidden; /* Hide overflow text */
}

/* Navigation Arrows */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  background-color: #ffffff;
  color: rgb(0, 0, 0);
  transition: 0.6s ease;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.next {
  right: 10px;
}

.prev {
  left: 10px;
}

.prev:hover, .next:hover {
  background-color: #ffffffcc;
}

.hamburger-menu {
  display: none;
  cursor: pointer;
  margin-right: 20px;
  z-index: 101;
  position: relative;
}

.hamburger-menu .bar1,
.hamburger-menu .bar2,
.hamburger-menu .bar3 {
  width: 35px;
  height: 5px;
  background-color: #fff;
  margin: 6px 0;
  transition: 0.4s;
}

.hamburger-menu .bar1,
.hamburger-menu .bar3 {
  transition: transform 0.4s, opacity 0.4s;
}

.hamburger-menu .bar2 {
  opacity: 1;
}

.hamburger-menu.active .bar1 {
  transform: translateY(8px) rotate(45deg);
}

.hamburger-menu.active .bar2 {
  opacity: 0;
}

.hamburger-menu.active .bar3 {
  transform: translateY(-8px) rotate(-45deg);
}

.box--footer {
  background-image: url('Assets/bgnav.png');
  color: #ffffff;
  padding: 2vh 0;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: auto; /* Menempel di bawah */
  width: 100%; /* Lebar penuh */
  font-size: 0.8em; /* Ukuran font default */
  height: 20px; /* Tinggi default */
}


.news-section {
  padding: 20px;
  position: relative;
  margin-bottom: 20px;
  margin-left: 50px;
  margin-right: 50px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.news-item {
  background-color: white;
  border: 2px solid #9D1414;
  border-radius: 8px;
  overflow: hidden;
  display: none;
  flex-direction: column;
}

.news-image {
  width: 100%;
  height: 200px; /* Set height to ensure consistency */
  object-fit: cover; /* Ensures the image covers the area without distortion */
  transition: transform 0.3s ease; /* Transisi halus untuk efek zoom */
}

.news-item:hover .news-image {
  transform: scale(1.1); /* Zoom gambar saat hover */
}

.news-content {
  padding: 15px;
}

.news-summary {
  font-size: 14px;
  color: #333;
}

.news-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px; /* Spacing below the header */
}

.vertical-bar {
  font-size: 24px; /* Ukuran font garis vertikal */
  color: #9D1414; /* Warna garis vertikal */
  border-left: 5px solid #9D1414; /* Ketebalan dan warna garis vertikal */
  height: 50px; /* Sesuaikan dengan ukuran font */
  margin-right: 10px; /* Spasi antara garis vertikal dan judul */
  display: inline-block; /* Agar garis vertikal tidak memanjang */
}

.news-header h2 {
  color: #000; /* Warna teks judul */
  font-size: 24px; /* Ukuran font judul */
  margin: 0; /* Hapus margin default */
  font-weight: normal; /* Berat font normal untuk judul */
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}

.pagination button {
  background-color: #fff; /* Latar belakang tombol */
  color: #000; /* Warna teks tombol */
  padding: 5px 10px;
  border: none;
  border-radius: 5px;
  transition: background-color 0.3s, color 0.3s;
  font-size: 16px; /* Ukuran font tombol */
}

.pagination button:hover {
  background-color: #9D1414; /* Latar belakang tombol saat hover */
  color: #fff; /* Warna teks tombol saat hover */
  cursor: pointer; /* Kursor pointer saat hover */
}

.pagination span {
  color: #000; /* Warna teks angka halaman */
  padding: 5px 10px;
  font-size: 16px; /* Ukuran font angka halaman */
  cursor: pointer;
  transition: color 0.3s, background-color 0.3s;
  border-radius: 5px;
  display: inline-block;
  margin: 0 2px; /* Memberikan jarak antar angka */
}

.pagination span:hover {
  background-color: #9D1414; /* Latar belakang saat hover */
  color: #fff; /* Warna teks saat hover */
}

.pagination .active {
  color: #fff; /* Warna teks halaman aktif */
  background-color: #9D1414; /* Latar belakang halaman aktif */
}

/* Styling for the main title */
.main-title {
  font-family: 'Lucida Sans Regular', sans-serif;
  font-size: 2em;
  text-align: left;
  color: #000000;
  margin: 100px 85px 20px; /* Adjusted margin to move down from container and space below */
  opacity: 0;
  animation: fadeIn 2s ease forwards;
  font-style: italic;
  position: relative; /* Ensure relative positioning for pseudo-element */
  display: flex; /* Use flexbox for alignment */
  align-items: center; /* Center items vertically */
}

/* Vertical bar styling */
.vertical-bar1 {
  width: 5px; /* Thickness of the vertical bar */
  height: 50px; /* Height of the vertical bar */
  background-color: #9D1414; /* Red color for the vertical bar */
  position: absolute; /* Position absolutely relative to the main title */
  left: -15px; /* Adjusted to align with the text */
  top: 50%; /* Center the vertical bar vertically */
  transform: translateY(-50%); /* Adjust alignment to the middle */
}


/* Styling for the subtitle */
.sub-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1em;
  text-align: left;
  color: #000000;
  margin: 40px 70px 20px; /* Adjusted margin to reduce space above subtitle and space below */
  font-weight: normal;
  opacity: 0;
  animation: fadeIn 3s ease forwards;
}

/* Styling for the description */
.description {
  margin: 40px 70px 40px; /* Adjusted margin for closer spacing */
  font-size: 1em;
  text-align: justify;
  color: #000000;
  opacity: 0;
  animation: fadeIn 4s ease forwards;
}

/* Styling for the list */
.highlight-list {
  padding: 0;
  list-style: none; /* Remove default list bullets */
}

/* Styling for list items */
.highlight-list li {
  font-size: 1em;
  color: #000000;
  position: relative;
  padding-left: 30px; /* Space for the custom bullet */
  margin-bottom: 10px; /* Space between list items */
}

/* Red strip styling */
.highlight-list li::before {
  content: "-"; /* Use dash as the list bullet */
  position: absolute;
  left: 0;
  color: #9D1414; /* Red color for the strip */
  font-size: 3em; /* Adjust size of the dash */
  line-height: 0.3; /* Align dash with text */
}


/* Keyframe animations */
@keyframes slideRight {
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideLeft {
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideTop {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}


@media screen and (max-width: 1200px) {
  .box--footer {
    padding: 8px 0; /* Sesuaikan padding untuk mengecilkan tinggi footer */
    font-size: 0.75em; /* Ukuran font lebih kecil */
    height: 35px; /* Tinggi lebih kecil */
  }

  .dropdown-content {
  top: 0;
  right: 100%;
  }

  .box--logo {
    height: 50px;
    margin-left: 0;
    opacity: 0;
    animation: slideRight 2s ease forwards;
  }

  .news-section {
    padding: 0 10px;
  }

  .description {
    margin: 20px;
    text-align: justify;
  }
  
  .content-section {
    flex-direction: column;
    text-align: center;
  }

  .left-column,
  .right-column {
    flex: none;
    width: 100%;
  }

  .unpad-logo {
    width: 150px;
    margin: 0 auto;
  }

  .main-title,
  .sub-title {
    text-align: center;
  }

  .box--subnavigasi {
    display: none;
    width: auto;
    position: absolute;
    top: 50px;
    right: 20px;
    background-color: #9D1414;
    z-index: 80;
    padding: 20px;
    flex-direction: column;
    align-items: flex-start; /* Teks rata kiri */
  }

  .box--subnavigasi.show {
    display: flex;
  }

  .box--subnavigasi li {
    width: 100%; /* Pastikan elemen li mengisi lebar penuh */
    display: flex; /* Flexbox untuk mengatur ikon dan teks */
    align-items: center; /* Vertikal rata tengah */
    margin-bottom: 10px; /* Jarak antar item */
  }

  .box--subnavigasi li a {
    text-decoration: none;
    color: white; /* Warna teks */
    font-size: 0.5em; /* Ukuran teks lebih kecil */
    padding: 5px 10px; /* Padding untuk tautan */
    display: flex; /* Flexbox untuk ikon dan teks */
    align-items: center; /* Vertikal rata tengah */
  }

  .box--subnavigasi li a img {
    margin-right: 5px; /* Jarak antara ikon gambar dan teks */
  }

  .box--iconmenu {
    margin-left: auto;
  }

  .hamburger-menu {
    display: block;
    margin-right: 20px;
    cursor: pointer;
  }

  .hamburger-menu .bar1,
  .hamburger-menu .bar2,
  .hamburger-menu .bar3 {
    width: 30px;
    height: 4px;
    background-color: #fff;
    margin: 6px 0;
    transition: 0.4s;
  }

  .hamburger-menu.active .bar1 {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger-menu.active .bar2 {
    opacity: 0;
  }

  .hamburger-menu.active .bar3 {
    transform: translateY(-8px) rotate(-45deg);
  }

  .description {
    margin: 0 75px;
  }

  .box--iconmenu:hover .arrow {
    transform: rotate(-270deg); /* Rotate arrow */
  }
  
  .arrow {
    display: inline-block;
    transition: transform 0.3s ease;
  }

  .news-image {
    margin-top: 20px; /* Geser gambar ke bawah agar tidak menempel header */
    transform: translateY(-10px); /* Geser gambar ke atas */
  }
}

@media (max-width: 414px) {
  .box--footer {
    padding: 5px 0; /* Sesuaikan padding untuk mengecilkan tinggi footer */
    font-size: 0.6em; /* Ukuran font lebih kecil */
    height: 30px; /* Tinggi lebih kecil */
  }
  
  .box--logo img {
    height: 40px; /* Sesuaikan tinggi logo jika diperlukan */
    margin: 0 0 0 20px; /* Sesuaikan margin jika diperlukan */
  }

  .box--logo {
    height: 50px;
    margin-left: 0;
    opacity: 0;
    animation: slideRight 2s ease forwards;
  }
  
  .box--icon {
    height: 15px;
  }

  .news-section {
    padding: 0 10px;
  }

  .description {
    margin: 10px;
    text-align: justify;
  }

  .box--logo img {
    height: 25px; /* Tinggi lebih kecil untuk logo */
    margin: 0;
  }

  .main-title {
    font-size: 1.5em;
  }

  .sub-title {
    font-size: 1em;
  }

  .description {
    font-size: 0.9em;
  }

  .box--iconmenu:hover .arrow {
    transform: rotate(-270deg); /* Rotate arrow */
  }
  
  .arrow {
    display: inline-block;
    transition: transform 0.3s ease;
  }

  .dropdown-content {
    top: 0;
    right: 100%;
    }
    
}
