/* Layout khusus desktop: beri margin kanan–kiri hanya pada main */
@media (min-width: 992px) {
  main {
    max-width: 1200px; /* batas lebar konten */
    margin: 0 auto; /* auto agar rata tengah */
    padding: 0 90px; /* beri ruang kanan-kiri */
  }

  /* Tambahkan style untuk hero-section agar full-width dan punya background */
  .hero-section {
    background-color: #400c40; /* Warna ungu gelap seperti header/footer */
    width: 100%; /* Pastikan full width */
    margin: 0; /* Hapus margin yang mungkin membuatnya tidak full width */
    padding: 0; /* Hapus padding yang mungkin membuatnya tidak full width */
    /* Box-shadow agar sejajar dengan box-shadow main */
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15); /* Efek bayangan lembut */
  }

  /* Sesuaikan lebar swiper dalam hero-section agar tetap di tengah dan ada background ungu di kanan-kiri */
  /* Ini adalah kunci untuk membuat slider memiliki lebar yang sama dengan konten main */
  .hero-section .hero-slider { /* targetkan swiper container */
    max-width: calc(1200px - (2 * 90px)); /* max-width main dikurangi padding kiri-kanan main */
    margin: 0 auto; /* Rata tengah */
    overflow: hidden; /* Pastikan konten di dalam mengikuti radius */
    height: 70vh; /* Tidak terlalu tinggi, seperti setting sebelumnya */
  }

  /* Hilangkan margin auto yang sebelumnya ada di .hero-section untuk memastikan full width */
  /* Aturan ini tidak lagi diperlukan jika .hero-section sudah punya margin:0 dan width:100% */
  /* .hero-section.hero-section {
      margin: 0 auto;
  } */

  .swiper-button-prev,
  .swiper-button-next {
    color: white;
    opacity: 0.8;
  }

  .swiper-button-prev:hover,
  .swiper-button-next:hover {
    opacity: 1;
  }

  .swiper-pagination-bullet-active {
    background: #00a859; /* hijau khas MSA */
  }
}

/* Pastikan header dan footer tetap full width */
header.navbar,
footer.main-footer {
  width: 100%;
  margin: 0;
  padding-left: 0;
  padding-right: 0;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
  color: #333;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
}

/* Header */
.navbar {
  background: url(../images/bg.jpg) bottom center repeat;

  color: white;
  padding: 10px 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 94px;
  margin-right: 10px;
}

.logo span {
  font-size: 14px;
  line-height: 1.2;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.main-nav ul li {
  margin-left: 20px;
  text-align: center;
}

.main-nav ul li a {
  color: white;
  text-decoration: none;
  font-size: 12px;
  display: block;
  padding: 5px 10px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.main-nav ul li a i {
  display: block;
  font-size: 20px;
  margin-bottom: 5px;
}

.main-nav ul li span {
  font-size: large;
  font-weight: bolder;
}

.main-nav ul li i {
  margin: 10px;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
  color: white;
}

.main-nav ul li a:hover span,
.main-nav ul li a.active span {
    color: green; /* Ikon menjadi hijau saat hover atau aktif */
}

.opportunities {
  flex: 1;
  color: #400c40; /* Ungu gelap */
}

.opportunities h2 {
  font-size: 2em;
  margin-bottom: 20px;
  color: #400c40;
}

.opportunities ul {
  list-style: none;
  padding: 0;
}

.opportunities ul li {
  font-size: 1.1em;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.opportunities ul li i {
  color: green;
  margin-right: 10px;
  font-size: 1.2em;
}

.opportunities ul li span {
  font-weight: bold;
  color: #400c40;
}

.slider-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slider-item.active {
  opacity: 1;
}

.slider-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overlay-text {
  position: absolute;
  top: 20px; /* Sesuaikan posisi teks */
  left: 20px;
  background-color: rgba(255, 255, 255, 0.8);
  color: #400c40;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 1.2em;
  font-weight: bold;
}

.join-now {
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 10;
}

.join-now a {
  background-color: #e74c3c; /* Warna merah */
  color: white;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.5em;
  font-weight: bold;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
}

.join-now a:hover {
  background-color: #c0392b;
}

.info-cta {
  background-color: #400c40; /* Ungu gelap */
  color: white;
  text-align: center;
  padding: 15px 0;
  margin-top: 30px;
  border-radius: 10px;
  font-size: 1.5em;
  font-weight: bold;
}

/* Action Buttons */
.action-buttons {
  background-color: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin-bottom: 0px;
}

.action-buttons .container {
  display: flex;
  justify-content: space-around;
  gap: 10px;
}


/* About Us Section */
.about-us {
  padding: 30px 0;
  background-color: white;
}

.about-content {
  display: flex;
  gap: 30px;
  margin-bottom: 40px;
}

.director-profile {
  flex-shrink: 0;
  text-align: center;
}

.director-profile img {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-text {
  flex-grow: 1;
  line-height: 1.6;
}

.about-text p {
  margin-bottom: 15px;
}


/* Footer */
.main-footer {
  background: url(../images/bg.jpg) bottom center repeat;
  color: #ccc;
  padding: 40px 0 20px 0;
  font-size: 0.9em;
  border-top: 5px solid #400c40; /* Garis ungu di atas footer */
}

.main-footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
}




/* Dropdown styles for Program Kuliah */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown .dropbtn {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer; /* Pastikan ini ada */
}

.dropdown .dropbtn .fa-caret-down {
  margin-left: 5px;
  font-size: 0.8em;
}

.dropdown-content {
  display: none; /* Ini harus tetap 'none' secara default */
  position: absolute;
  background-color: #5a1a5a;
  min-width: 180px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 100;
  border-radius: 5px;
  top: calc(100% + 5px);
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 0;
}

.dropdown-content a {
  color: white !important;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
  font-size: 0.9em !important;
  transition: background-color 0.3s ease;
}

.dropdown-content a:hover {
  background-color: #6a2a6a;
}

/* Menyesuaikan jarak antar item navbar agar tidak terlalu rapat dengan dropdown */
.main-nav ul li {
  margin-left: 15px; /* Sedikit kurangi margin agar tetap proporsional */
  margin-right: 15px;
}

/* Responsiveness */
@media (max-width: 992px) {
  .hero-section {
    height: 70vh; /* sedikit lebih kecil di tablet */
  }
  .hero-content {
    flex-direction: column;
    text-align: center;
  }
  .hero-slider {
    width: 100%;
    height: 300px;
  }
  .overlay-text {
    font-size: 1em;
    padding: 8px 15px;
  }
  .join-now a {
    font-size: 1.2em;
    padding: 10px 20px;
  }
  .action-buttons .container {
    flex-wrap: wrap;
  }
  .action-buttons .btn {
    flex: 1 1 auto;
    margin: 5px;
  }
  .about-content {
    flex-direction: column;
    align-items: center;
  }
  .director-profile {
    margin-bottom: 20px;
  }
  .main-footer .container {
    justify-content: center;
    text-align: center;
  }
  .footer-column {
    flex: 1 1 calc(50% - 30px); /* 2 kolom per baris */
    margin-bottom: 30px;
  }
  .footer-column h3::after {
    left: 50%;
    transform: translateX(-50%);
  }
  .footer-column ul li {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .hero-section {
    height: 50vh; /* mobile tidak terlalu tinggi */
  }

  .swiper-button-prev,
  .swiper-button-next {
    display: none; /* sembunyikan panah di HP agar rapi */
  }

  .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
  }
  .navbar .container {
    flex-direction: column;
  }
  .main-nav ul {
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 15px;
  }
  .main-nav ul li {
    margin: 5px 10px;
  }
  .opportunities h2 {
    font-size: 1.8em;
  }
  .opportunities ul li {
    font-size: 1em;
  }
  .hero-slider {
    height: 250px;
  }
  .footer-column {
    flex: 1 1 100%; /* 1 kolom per baris */
    min-width: auto;
  }
  .main-footer {
    padding: 30px 0 15px 0;
  }
  .main-nav ul li.dropdown {
    position: static; /* Dropdown di mode mobile bisa melebar */
  }
  .dropdown-content {
    position: relative;
    left: 0;
    transform: none;
    width: 100%;
    text-align: center;
    border-radius: 0;
    top: 0;
    box-shadow: none;
  }
  .main-nav ul li {
    margin: 5px 0; /* Ubah margin untuk tumpukan vertikal */
    width: 100%; /* Agar setiap item navigasi mengambil lebar penuh */
  }
}

/* --- Hero Slider (Swiper) --- */
.hero-section {
  width: 100%;
  height: 90vh; /* Full hampir satu layar untuk desktop */
  margin: 0;
  padding: 0;
  position: relative;
}

.hero-section .swiper {
  width: 100%;
  height: 100%;
}

.hero-section .swiper-slide {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.hero-section .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Gambar tetap proporsional tanpa stretch */
  object-position: center center; /* Fokus di tengah */
  display: block;
  border: none;
}

/* Hilangkan overlay efek bawaan Swiper */
.swiper-slide::before {
  display: none !important;
  content: none !important;
}

/* Navigasi & pagination */
.swiper-button-prev,
.swiper-button-next {
  color: rgba(255, 255, 255, 0.9);
  transition: opacity 0.3s ease;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  opacity: 0.7;
}

.swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.7);
  opacity: 1;
  width: 10px;
  height: 10px;
  margin: 0 6px;
}

.swiper-pagination-bullet-active {
  background: #00a859; /* Hijau MSA */
}

/* === GIF Section Responsive === */
.gif-section {
  width: 100%;
  text-align: center;
  background: #fff; /* opsional, bisa transparan juga */
}

.gif-section img {
  width: 100%;         /* isi penuh lebar layar */
  height: auto;        /* tinggi otomatis */
  max-width: 100%;     /* mencegah overflow */
  display: block;      /* hilangkan celah bawah */
  margin: 0 auto;      /* rata tengah */
}


/* === Hero Slider versi desktop elegan === */
/* Sesuaikan aturan ini */
@media (min-width: 992px) {
  .hero-section {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15); /* efek bayangan lembut */
    height: auto; /* Ubah ke auto agar tidak memaksakan tinggi, biarkan swiper-slide yang mengatur */
    background-color: #5D003B; /* Tambahkan background ungu untuk desktop */
    padding: 0; /* Pastikan tidak ada padding di hero-section */
  }

  .hero-section .hero-slider { /* targetkan swiper container untuk batasan lebar dan border-radius */
    /* Calculation untuk lebar main: max-width (1200px) - (padding kiri 90px + padding kanan 90px) */
    max-width: calc(1200px - (2 * 90px));
    margin: 0 auto; /* Rata tengah */
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0,0,0,0.2); /* Bayangan lembut hanya untuk slider */
  }


  .hero-section .swiper-slide img {
        width: 100%;
    height: auto;
    object-fit: contain;        /* biar gambar utuh, tidak terpotong */
    object-position: center;
  }

  .swiper-button-prev,
  .swiper-button-next {
    color: white;
    opacity: 0.8;
  }

  .swiper-button-prev:hover,
  .swiper-button-next:hover {
    opacity: 1;
  }

  .swiper-pagination-bullet-active {
    background: #00a859; /* hijau khas MSA */
  }
}

/* === Hero Slider versi mobile (gambarnya tidak terpotong) === */
@media (max-width: 768px) {
  .hero-section {
    height: auto;               /* biar tinggi menyesuaikan gambar */
    max-height: 400px;          /* batasi tinggi maksimum */
    margin: 15px 0;             /* jarak atas-bawah lebih kecil */         /* hilangkan radius untuk mobile */
    box-shadow: none;           /* hilangkan bayangan agar ringan */
  }

  /* Untuk mobile, pastikan slider mengambil lebar penuh di dalam hero-section */
  .hero-section .hero-slider {
    max-width: 100%;
    max-height: 50vh;
    height: auto; /* Biarkan tinggi menyesuaikan konten */
  }

  .hero-section .swiper-slide img {
    width: 100%;
    height: auto;
    object-fit: contain;        /* biar gambar utuh, tidak terpotong */
    object-position: center;
  }

  .swiper-button-prev,
  .swiper-button-next {
    display: none;              /* sembunyikan tombol panah di HP */
  }

  .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
  }
}

/* === GIF di atas tombol === */
.action-buttons .gif-section {
  width: 100%;
  text-align: center;
  margin-bottom: 0px;
}

.action-buttons .gif-section img {
  width: 100%;
  max-width: 1200px;
  height: auto;
  display: block;
  margin: 0 auto;

}

/* === Tombol responsif === */
.action-buttons .container {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* default: desktop 1 baris */
  gap: 1px;
  justify-items: center;
}

/* Tombol gambar */
/* === GIF di atas tombol === */
.action-buttons .gif-section {
  width: 100%;
  text-align: center;
  margin-bottom: 0px;
}

.action-buttons .gif-section img {
  width: 100%;
  max-width: 1200px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* === Grid tombol gambar === */
.image-buttons {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 5 tombol di desktop */
  gap: 1px;
  justify-items: center;
  padding: 0 0px;
}

/* Tombol gambar (tanpa gaya Bootstrap) */
.image-buttons .btn.img-btn {
  all: unset; /* hapus semua gaya default button */
  cursor: pointer;
  display: inline-block;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

/* Gambar tombol */
.image-buttons .btn.img-btn img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  /* border-radius: 12px; */
  /* transition: transform 0.4s ease, filter 0.4s ease; */
}

/* Hover effect */
.image-buttons .btn.img-btn:hover img {
  /* transform: scale(1.08); */
  filter: brightness(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

/* Klik (active) effect */
.image-buttons .btn.img-btn:active img {
  transform: scale(1);
  filter: brightness(0.9);
}

/* === Tablet (3 tombol per baris) === */
@media (max-width: 991px) {
  .image-buttons {
    grid-template-columns: repeat(3, 1fr);
  }

  .image-buttons .btn.img-btn img {
    max-width: 180px;
  }
}

/* === Mobile (1 tombol per baris) === */
@media (max-width: 768px) {
  .image-buttons {
    grid-template-columns: 1fr;
  }

  .image-buttons .btn.img-btn img {
    max-width: 100%;
  }
}


/**
Start gallery
*/

/* Bungkus gallery dalam container, rata tengah */
.about-us .gallery {
  margin-top: 40px;
  display: flex;
  justify-content: center; /* center horizontal */
  align-items: center;
}

/* Gallery item menyesuaikan lebar area atasnya */
.about-us .gallery-item {
  width: 100%;
  max-width: 1200px; /* sejajar dengan konten di atas */
  overflow: hidden;
}

/* Gambar portrait: tetap proporsional dan besar */
.about-us .gallery-item img {
  display: block;
  width: 100%;      /* isi penuh gallery-item */
  height: auto;     /* proporsional */
  object-fit: contain; /* tidak terpotong */
  object-position: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Efek hover elegan */
.about-us .gallery-item img:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

/* Tablet dan mobile */
@media (max-width: 991px) {
  .about-us .gallery-item {
    max-width: 100%;
  }

  .about-us .gallery-item img {
    max-height: none;
  }
}

/**
End gallery
*/


/* === FOOTER STYLE KHUSUS === */

/* Struktur umum */
.main-footer {
  background-color: #222; /* warna latar belakang gelap */
  color: #ccc;
  padding: 40px 0 20px 0;
  font-size: 0.95em;
  border-top: 5px solid #400c40; /* garis ungu di atas */
}

.main-footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
}

/* Kolom */
.footer-column {
  flex: 1 1 calc(25% - 30px);
  min-width: 220px;
}

.footer-column h3 {
  color: #fff;
  font-size: 1.2em;
  margin-bottom: 15px;
  position: relative;
  padding-bottom: 8px;
}

.footer-column h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
}

/* Daftar kontak dan sosial media */
.footer-column ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-column ul li {
  display: flex;
  align-items: center;
  gap: 10px;           /* jarak antara ikon dan teks */
  margin-bottom: 10px; /* jarak antar baris */
  color: #ccc;
}

/* Ikon gambar (misal WA) */
.footer-column ul li img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: inline-block;
}

/* Ikon font-awesome */
.footer-column ul li i {
  font-size: 18px;
  color : white;
  width: 22px;    /* lebar tetap biar sejajar */
  text-align: center;
}

/* Teks di dalam footer */
.footer-column p {
  line-height: 1.6;
  color: #ccc;
}

/* Hover link */
.footer-column ul li:hover,
.footer-column a:hover {
  color: white;
}

/* === Garis pemisah halus tiap baris di footer === */
.footer-column ul li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 8px; /* beri jarak sebelum garis */
  border-bottom: 1px solid rgba(255, 255, 255, 0.2); /* garis putih transparan */
  color: #ccc;
}

/* Hilangkan garis di baris terakhir */
.footer-column ul li:last-child {
  border-bottom: none;
}


/* Copyright */
.copyright {
  background-color: #1a1a1a;
  color: #888;
  text-align: center;
  padding: 15px 0;
  margin-top: 30px;
  border-top: 1px solid #333;
}

.copyright a {
  color: white;
  text-decoration: none;
}

.copyright a:hover {
  text-decoration: none;
}

/* Responsive: tablet dan HP */
@media (max-width: 991px) {
  .main-footer .container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-column {
    flex: 1 1 100%;
    max-width: 500px;
  }

  .footer-column h3::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-column ul li {
    justify-content: center;
  }
}


/* === Footer Copyright === */
.copyright {
  text-align: center; /* rata tengah semua isi */
}

.copyright p {
  margin: 0;
  text-align: center; /* pastikan <p> di dalam juga center */
}

.copyright a {
  color: white;
  text-decoration: none;
}

.copyright a:hover {
  text-decoration: underline;
}

/* Hilangkan garis bawah dan atur warna link di footer */
.footer-column a {
  text-decoration: none;   /* hilangkan underline */
  color: #ccc;             /* warna teks default */
  display: flex;           /* agar ikon dan teks sejajar */
  align-items: center;     /* sejajarkan vertikal */
  gap: 8px;                /* jarak antara ikon dan teks */
}

/* Saat hover (ketika diarahkan kursor) */
.footer-column a:hover {
  color: #00a859;          /* ubah warna saat hover, misal hijau khas MSA */
  text-decoration: none;   /* tetap tanpa garis bawah */
}

