html,
body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #ffffff;
  overflow-x: hidden;
  position: relative;
}

#canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(120deg, #6a11cb, #2575fc);
}

.container {
  max-width: 100%;
  width: 90%; /* Set width to 90% */
  margin: 0 auto;
  padding: 40px 40px;
}
/* Navbar Styles */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 10px 20px;
  background: linear-gradient(120deg, #4a0da8, #1b4db5);
  display: flex;
  align-items: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 10;
  box-sizing: border-box;
}

/* Logo Section */
.logo {
  display: flex;
  align-items: center;
  color: #ffffff;
  font-weight: bold;
  font-size: 1.5em;
  flex-wrap: wrap; /* Membungkus teks ke baris baru jika terlalu panjang */
}

.logo img {
  height: 80px; /* Ukuran tinggi logo */
  margin-right: 10px; /* Jarak antara logo dan teks */
}

/* Responsive Styles */
@media (max-width: 768px) {
  .navbar {
    padding: 10px 15px; /* Padding yang lebih kecil di perangkat kecil */
  }

  .logo {
    font-size: 1em; /* Ukuran font yang lebih kecil untuk perangkat kecil */
    text-align: center; /* Rata tengah pada perangkat kecil */
  }

  .logo img {
    height: 60px; /* Ukuran logo lebih kecil pada perangkat kecil */
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 0.9em; /* Ukuran font lebih kecil lagi di perangkat kecil */
    flex-direction: column; /* Teks berada di bawah logo */
    align-items: center; /* Rata tengah */
  }

  .logo img {
    height: 60px; /* Ukuran logo lebih kecil pada perangkat sangat kecil */
  }
}

.hero {
  text-align: center;
  padding: 60px 10px;
  margin-top: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  backdrop-filter: blur(10px); /* Added blur effect */
}

.hero h1 {
  font-size: 3em;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2em;
  margin-bottom: 20px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero button {
  background: linear-gradient(100deg, #d942c0 -35.88%, #6317c3 108.02%);
  color: #ffffff;
  border: none;
  padding: 15px 20px;
  border-radius: 8px;
  font-size: 1.2em;
  cursor: pointer;
  transition: background 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.hero button:hover {
  background: linear-gradient(100deg, #e95fd9, #7849e5);
  /* Mengganti warna latar belakang saat dihover */
}

.announcement {
  background: linear-gradient(135deg, #d942c0, #6317c3); /* Gradasi warna */
  color: white; /* Warna teks */
  border-radius: 8px; /* Sudut membulat */
  padding: 20px; /* Padding */
  margin: 20px 20px; /* Margin atas dan bawah */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* Bayangan untuk kedalaman */
}

.announcement h2 {
  margin-bottom: 15px; /* Jarak bawah judul */
  text-align: center; /* Pusatkan judul */
}

.announcement-item {
  display: flex; /* Flexbox untuk item */
  align-items: center; /* Pusatkan vertikal */
  margin: 15px 0; /* Jarak antar item */
  padding: 10px; /* Padding item */
  background-color: rgba(255, 255, 255, 0.1); /* Latar belakang semi-transparan */
  border-radius: 5px; /* Sudut membulat */
  transition: transform 0.3s, background-color 0.3s; /* Efek transisi */
}

.announcement-item:hover {
  transform: translateY(-5px); /* Efek angkat saat hover */
  background-color: rgba(255, 255, 255, 0.2); /* Ganti latar belakang saat hover */
}

.announcement-item i {
  font-size: 30px; /* Ukuran ikon */
  margin-right: 15px; /* Jarak kanan ikon */
}

.announcement-content {
  flex-grow: 1; /* Biarkan konten mengambil ruang yang tersedia */
}

.announcement-content strong {
  display: block; /* Buat judul konten jadi block */
  font-size: 1.1em; /* Ukuran teks judul */
  margin-bottom: 5px; /* Jarak bawah judul */
}

.features {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  padding: 50px;
  margin-top: 60px;
  justify-content: center; /* Center the features section */
}

.feature {
  flex: 1;
  min-width: 200px; /* Adjusted min-width for responsiveness */
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 20px;
  text-align: center;
  transition: transform 0.3s;
  flex-grow: 1; /* Allow the feature boxes to grow */
}

.feature i {
  font-size: 3em;
  color: #ffffff;
}

.feature h3 {
  margin-top: 20px;
  font-size: 1.8em;
}

.feature p {
  margin-top: 10px;
  font-size: 1.1em;
}

.feature:hover {
  transform: translateY(-10px);
  background-color: rgba(255, 255, 255, 0.2); /* Change background on hover */
}

.feature-program-studi {
  background: linear-gradient(100deg, #ff5733 -35.88%, #ff8d1a 108.02%);
}

.feature-mahasiswa {
  background: linear-gradient(100deg, #ffbb37 -35.88%, #ffc300 108.02%);
}

.feature-dosen {
  background: linear-gradient(100deg, #75ff33 -35.88%, #a3ff33 108.02%);
}

.feature-kurikulum {
  background: linear-gradient(100deg, #33fff0 -35.88%, #33c3ff 108.02%);
}

.feature-finance {
  background: linear-gradient(100deg, #3380ff -35.88%, #3361ff 108.02%);
}

.feature-publikasi {
  background: linear-gradient(100deg, #d942c0 -35.88%, #6317c3 108.02%);
}

.feature-monitoring {
  background: linear-gradient(100deg, #ff33a1 -35.88%, #ff3380 108.02%);
}

.feature-presensi {
  background: linear-gradient(100deg, #00b894 -35.88%, #00e6b8 108.02%);
}

.feature-survey {
  background: linear-gradient(100deg, #adadad -35.88%, #d1c4e9 108.02%);
}

.about {
  padding: 60px;
  margin-top: 40px;
  background: linear-gradient(120deg, #6a11cb, #2575fc);
  color: #ffffff;
  border-radius: 15px;
}

.about h2 {
  text-align: center;
  font-size: 2.5em;
  margin-bottom: 20px;
}

.about p {
  font-size: 1.2em;
  line-height: 1.6;
  margin-bottom: 20px;
  text-align: justify;
}

.college-info {
  margin-top: 40px;
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
}

.college-info h3 {
  text-align: center;
  margin-bottom: 15px;
  font-size: 2em;
}

.contact-info {
  margin-top: 40px;
  text-align: center;
}

.contact-info h6 {
  font-size: 1em;
  line-height: 1.8;
  margin: 0;
}

.contact-info a {
  color: #f0f0f0;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

.faq {
  display: flex; /* Enable flexbox for alignment */
  flex-wrap: wrap; /* Allow items to wrap to the next line */
  justify-content: center; /* Center the items */
  margin: 0; /* Remove margin to stick to footer */
  padding: 60px; /* Maintain padding */
}

.faq h2 {
  text-align: center;
  font-size: 2.5em;
  margin-bottom: 20px;
  width: 100%; /* Ensure title takes full width */
}

.faq-item {
  flex: 1 1 200px;
  max-width: 200px;
  margin: 20px;
  background: linear-gradient(100deg, #d942c0 -35.88%, #6317c3 108.02%);
  padding: 20px;
  border-radius: 10px;
  transition: transform 0.3s, background 0.3s;
}

.faq-item:hover {
  transform: translateY(-5px); /* Slight lift on hover */
  background: linear-gradient(120deg, #4a90e2, #7e3ff2);
}

.faq-item h3 {
  font-size: 1.1em;
  cursor: pointer;
}

.faq-item p {
  margin-top: 10px;
  font-size: 1.2em;
  display: none; /* Hide text by default */
}

.faq-item a {
  margin-top: 10px;
  font-size: 1.2em;
  color: #f0f0f0;
}

/* News styles */
.news {
  display: flex; /* Enable flexbox for alignment */
  flex-wrap: wrap; /* Allow items to wrap to the next line */
  justify-content: center; /* Center the items */
  margin: 0; /* Remove margin */
  padding: 40px; /* Padding for the news box */
  background: none; /* Background color for the news box */
  border-radius: 10px; /* Rounded corners */
  position: relative; /* Position context for z-index */
  z-index: 1; /* Ensure news is above footer */
  margin-bottom: -90px; /* Negative margin to pull it above the footer */
}

.news h2 {
  text-align: center;
  font-size: 2em;
  margin-bottom: 20px;
  width: 100%; /* Ensure title takes full width */
}

.news-item {
  flex: 1 1 200px; /* Allow items to grow and set a base width */
  max-width: 400px; /* Set maximum width for items */
  height: 600px; /* Set a fixed height for items (adjust as needed) */
  margin: 15px; /* Space between items */
  background: linear-gradient(120deg, #ff7e2e, #ffb300); /* Gradient background */
  border-radius: 10px;
  overflow: hidden; /* Hide overflow to maintain rounded corners */
  transition: transform 0.3s, background 0.3s;
  text-align: center; /* Center the text and button */
}

.news-item:hover {
  transform: translateY(-5px); /* Slight lift on hover */
  background: linear-gradient(120deg, #ffb300, #ff7e2e); /* Hover effect */
}

.news-item h3 {
  font-size: 1em;
  cursor: pointer;
}

.news-item p {
  margin-left: 20px;
  margin-right: 20px;
  font-size: 1em;
  text-align: justify;
}

/* Image styling */
.news-image {
  width: 100%; /* Make the image take full width */
  height: 380px; /* Fixed height for the image box */
  object-fit: cover; /* Ensure the image covers the area without distortion */
  border-bottom: 2px solid rgba(255, 255, 255, 0.2); /* Optional: a bottom border */
}

/* Button styling */
.news-button {
  display: inline-block; /* Button styling */
  margin-top: 0px; /* Space above the button */
  padding: 10px 20px; /* Button padding */
  background: #6317c3; /* Button background color */
  color: white; /* Text color */
  border: none; /* No border */
  border-radius: 5px; /* Rounded corners */
  text-decoration: none; /* No underline on the link */
  transition: background 0.3s; /* Smooth background transition */
}

.news-button:hover {
  background: #d942c0; /* Change background on hover */
}

/* Footer styles */
footer {
  background: linear-gradient(100deg, #d942c0 -35.88%, #6317c3 108.02%);
  padding: 20px 40px;
  color: white;
  text-align: left;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  max-width: 100%;
  margin: 0 auto;
  flex-wrap: wrap; /* Allow wrapping for responsive design */
}

.footer-left,
.footer-right {
  width: 45%; /* Set initial width for larger screens */
  margin-top: 50px;
}

.logo-container {
  display: flex;
  align-items: center;
}

.footer-logo {
  height: 50px;
  margin-right: 15px;
}

.campus-details {
  display: flex;
  flex-direction: column;
}

.campus-name {
  font-size: 1.5em;
  margin: 0;
}

.footer-right p {
  margin: 10px 0;
}

.footer-right a {
  color: white;
  text-decoration: none;
}

.footer-right a:hover {
  text-decoration: underline;
}
/* Modal Styles */
.modal {
  display: none; /* Tersembunyi secara default */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7); /* Latar belakang hitam dengan transparansi */
  overflow: hidden; /* Menghilangkan scroll */
}

.modal-content {
  background: linear-gradient(100deg, #d942c0 -35.88%, #6317c3 108.02%);
  margin: 8% auto;
  padding: 40px;
  border: 1px solid #888;
  width: 80%; /* Lebar modal */
  max-width: 250px; /* Lebar maksimal modal */
  border-radius: 8px; /* Sudut membulat */
}

.close-button {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close-button:hover,
.close-button:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.login-options {
  margin-top: 20px;
}

.login-option {
  display: block;
  padding: 10px;
  margin: 5px 0;
  text-align: center;
  background-color: #4a0da8;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.login-option:hover {
  background-color: #6317c3;
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
  .features {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding: 50px;
    margin-top: 60px;
    justify-content: center; /* Center the features section */
  }

  .feature {
    flex: 1;
    min-width: 200px; /* Adjusted min-width for responsiveness */
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s;
    flex-grow: 1; /* Allow the feature boxes to grow */
  }
  .news {
    padding: 30px; /* Reduce padding for medium devices */
  }

  .news h2 {
    font-size: 1.8em; /* Adjust title size for medium screens */
  }

  .news-item {
    height: 600px; /* Adjust height for medium devices */
    max-width: 45%; /* Reduce width to fit more items in the row */
  }
  .faq {
    padding: 40px; /* Reduce padding for medium devices */
  }

  .faq h2 {
    font-size: 2.2em; /* Adjust title size for medium screens */
  }

  .faq-item {
    max-width: 45%; /* Reduce width to fit more items in the row */
  }
  .about {
    padding: 40px; /* Reduce padding for medium devices */
  }

  .about h2 {
    font-size: 2em; /* Reduce font size for medium devices */
  }

  .about p {
    font-size: 1.1em; /* Slightly reduce font size */
  }
  .footer-left,
  .footer-right {
    width: 100%; /* Set to full width for medium devices */
    text-align: center;
    margin-top: 30px;
  }

  .logo-container {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .news {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0;
    padding: 40px;
    background: none;
    border-radius: 10px;
    position: relative;
    z-index: 1;
    margin-bottom: 0;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -o-border-radius: 10px;
  }

  .news h2 {
    font-size: 1.6em; /* Adjust title size for tablets */
  }

  .news-item {
    flex: 1 1 200px; /* Allow items to grow and set a base width */
    max-width: 350px; /* Set maximum width for items */
    height: 850px; /* Set a fixed height for items (adjust as needed) */
    margin: 10px; /* Space between items */
    background: linear-gradient(120deg, #ff7e2e, #ffb300); /* Gradient background */
    border-radius: 10px;
    overflow: hidden; /* Hide overflow to maintain rounded corners */
    transition: transform 0.3s, background 0.3s;
    text-align: center; /* Center the text and button */
  }

  .news-image {
    width: 100%; /* Make the image take full width */
    height: 450px; /* Fixed height for the image box */
    object-fit: cover; /* Ensure the image covers the area without distortion */
    border-bottom: 2px solid rgba(255, 255, 255, 0.2); /* Optional: a bottom border */
  }
  .news-item h3 {
    font-size: 1.4em; /* Adjust heading font size for smaller screens */
  }

  .news-item p {
    font-size: 1em; /* Maintain font size for better readability */
  }
  .faq {
    padding: 30px; /* Reduce padding for tablets */
  }

  .faq h2 {
    font-size: 2em; /* Adjust title font size for tablets */
  }

  .faq-item {
    flex: 1 1 100%; /* Set flex to 100% width for single-column layout */
    max-width: 100%;
    margin: 10px 0; /* Increase spacing between items */
  }
  .hero h1 {
    font-size: 2em;
  }

  .hero p {
    font-size: 1em;
  }

  .hero button {
    padding: 10px 20px;
    font-size: 1em;
  }

  .features {
    flex-direction: column;
    align-items: center;
  }

  .feature {
    min-width: unset;
    width: 80%;
  }

  .navbar {
    text-align: center;
    flex-direction: column;
  }

  .navbar .nav-links {
    gap: 10px;
  }

  .about {
    padding: 30px; /* Reduce padding for tablet devices */
    margin-top: 30px;
  }

  .about h2 {
    font-size: 1.8em; /* Adjust font size for tablets */
  }

  .about p {
    font-size: 1em; /* Adjust paragraph font size */
  }
  .footer-left,
  .footer-right {
    width: 100%; /* Full width for small devices */
    margin-top: 20px;
    text-align: center;
  }

  .campus-name {
    font-size: 1.2em; /* Adjust font size for smaller screens */
  }

  .footer-right p {
    margin: 8px 0;
  }
}

@media (max-width: 480px) {
  .news {
    display: flex; /* Enable flexbox for alignment */
    flex-wrap: wrap; /* Allow items to wrap to the next line */
    justify-content: center; /* Center the items */
    margin: 0; /* Remove margin */
    padding: 10px; /* Padding for the news box */
    background: none; /* Background color for the news box */
    border-radius: 10px; /* Rounded corners */
    position: relative; /* Position context for z-index */
    z-index: 1; /* Ensure news is above footer */
    margin-bottom: -60px; /* Negative margin to pull it above the footer */
  }

  .news h2 {
    text-align: center;
    font-size: 2em;
    margin-bottom: 20px;
    width: 100%; /* Ensure title takes full width */
  }

  .news-item {
    flex: 1 1 200px; /* Allow items to grow and set a base width */
    max-width: 550px; /* Set maximum width for items */
    height: 650px; /* Set a fixed height for items (adjust as needed) */
    margin: 10px; /* Space between items */
    background: linear-gradient(120deg, #ff7e2e, #ffb300); /* Gradient background */
    border-radius: 10px;
    overflow: hidden; /* Hide overflow to maintain rounded corners */
    transition: transform 0.3s, background 0.3s;
    text-align: center; /* Center the text and button */
  }

  .news-item:hover {
    transform: translateY(-5px); /* Slight lift on hover */
    background: linear-gradient(120deg, #ffb300, #ff7e2e); /* Hover effect */
  }

  .news-item h3 {
    font-size: 1em;
    cursor: pointer;
  }

  .news-item p {
    margin-left: 20px;
    margin-right: 20px;
    font-size: 1em;
    text-align: justify;
  }

  .features {
    flex-direction: column;
    align-items: center;
    padding: 10px;
  }

  .feature {
    min-width: unset;
    width: 80%;
  }
  /* Image styling */
  .news-image {
    width: 100%; /* Make the image take full width */
    height: 450px; /* Fixed height for the image box */
    object-fit: cover; /* Ensure the image covers the area without distortion */
    border-bottom: 2px solid rgba(255, 255, 255, 0.2); /* Optional: a bottom border */
  }

  .news-item p {
    font-size: 0.9em; /* Adjust paragraph font size for better readability */
  }

  .news-button {
    padding: 8px 15px; /* Adjust button size */
    font-size: 0.9em; /* Reduce button font size */
  }
  .about {
    padding: 20px; /* Reduce padding for small devices (phones) */
    margin-top: 20px;
  }

  .about h2 {
    font-size: 1.6em; /* Reduce font size for small screens */
  }

  .about p {
    font-size: 0.9em; /* Adjust paragraph font size for better readability on small devices */
    line-height: 1.4; /* Adjust line height for small screens */
  }
  .faq {
    padding: 20px; /* Reduce padding for mobile devices */
  }

  .faq h2 {
    font-size: 1.8em; /* Reduce title size for smaller screens */
  }

  .faq-item {
    padding: 15px; /* Reduce padding for items on small devices */
  }

  .faq-item h3 {
    font-size: 1.5em; /* Adjust font size for FAQ titles */
  }

  .faq-item p,
  .faq-item a {
    font-size: 1em; /* Adjust paragraph and link font size */
  }
  footer {
    padding: 20px; /* Reduce padding for very small devices */
  }

  .footer-logo {
    height: 40px; /* Reduce logo size */
    margin-bottom: 10px;
  }

  .campus-name {
    font-size: 1em; /* Adjust font size */
  }

  .footer-right {
    margin-top: 15px;
  }
}
