* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  font-family: "Poppins", serif;
}

.container{
  width: 80%;
  margin-inline: auto;
}

@media(max-width:992px){
  .container{
    width: 90%;
  }
}

/* Navbar */
.navbar{
  padding: 15px 0;          
  position: fixed;          
  top: 0;
  left: 0;
  width: 100%;
  background-color: #ffffff; 
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.05); 
  z-index: 1000;
}

.navbar-box{
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-box .logo img {
  height: 45px;             
  display: block;
  transition: transform 0.3s ease;
}

.navbar-box .logo img:hover {
  transform: scale(1.05);   
}

.navbar-box .menu{
  display: flex;
  gap: 30px;
  align-items: center;
}

.navbar-box .menu li {
  list-style-type: none;
  position: relative; 
}

.navbar-box .menu li a{
  text-decoration: none;
  color: black;
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar-box .menu li a i {
  font-size: 12px;
  margin-left: 3px;
}

/* Kotak Submenu (Desktop) */
.navbar-box .menu .submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #ffffff;
  min-width: 200px;
  box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  padding: 10px 0;
  display: none; 
  flex-direction: column;
  gap: 0;
  z-index: 1010;
}

.navbar-box .menu .submenu li a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  text-align: left;
  font-weight: 400;
}

.navbar-box .menu .submenu li a:hover {
  background-color: #fcfcfc;
  color: orangered;
}

.navbar-box .menu li.dropdown:hover .submenu {
  display: flex;
}

.navbar-box .menu li a:hover {
  color: orangered;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: black;
}

.hero {
  padding-top: 90px; 
}

@media (max-width: 768px){
  .menu-toggle {
    display: block;
  }

  .navbar-box .menu {
    display: none; 
    flex-direction: column;
    width: 100%;
    background-color: white;
    position: absolute;
    top: 100%; 
    left: 0;
    padding: 20px 0;
    box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.05);
    gap: 15px;
    z-index: 999;
  }

  .navbar-box .menu.active {
    display: flex; 
  }

  .navbar-box .menu .submenu {
    position: relative;
    top: 0;
    box-shadow: none;
    background-color: #f9f9f9; 
    width: 100%;
    display: none; 
    padding: 5px 0;
    border-radius: 0;
  }

  .navbar-box .menu li.dropdown:hover .submenu {
    display: flex;
  }

  .navbar-box .menu li {
    width: 100%;
    text-align: center;
  }

  .navbar-box .menu li a {
    display: block;
    padding: 10px 0;
    width: 100%;
  }
}
/* Akhir Navbar */


/* --- HERO BACKGROUND CAROUSEL --- */
/* --- HERO BACKGROUND FIX --- */
.hero-box {
  width: 100%;
  border-radius: 25px;
  padding: 100px 20px 140px 20px; 
  color: white;
  position: relative;
  overflow: hidden;
  
  /* PERBAIKAN: Memasukkan gambar default iasi.webp langsung bersama gradasi overlay */
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3)), url('../../assets/images/iasi.webp');
  
  transition: background-image 0.8s ease-in-out; 
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.hero-box h1 {
  margin-bottom: 20px;
  font-size: 40px;
}

.hero-box p {
  margin-bottom: 30px;
  line-height: 2;
  width: 500px;
  opacity: 75%;
}

.hero-buttons {
  display: flex;
  flex-direction: row; 
  gap: 15px;           
  flex-wrap: wrap;     
}

.hero-box .hero-buttons a { 
  display: inline-block; 
  text-decoration: none;
  color: white;
  background-color: rgb(255, 94, 36);
  padding: 12px 25px;
  border-radius: 50px;
  font-size: 18px;
  text-align: center;
  transition: all 0.3s ease;
}

.hero-box .hero-buttons a:hover {
  background-color: white;
  color: orangered;
}

.hero-box .hero-buttons a:last-child {
  background-color: transparent;
  border: 2px solid white;
}

.hero-box .hero-buttons a:last-child:hover {
  background-color: white;
  color: orangered;
}

@media (max-width: 575px) {
  .hero-box p {
    width: 100%;
  }
  .hero-buttons {
    flex-direction: column;
    align-items: stretch; 
    max-width: 280px;     
  }
}

@media (max-width: 475px) {
  .hero-box h1 { font-size: 30px; }
  .hero-box p { font-size: 14px; }
}


/* --- 3 BOX MENU DI BAWAH HERO (NORMAL / TIDAK MENUMPUK) --- */
.hero-floating-menu {
  position: relative;
  z-index: 10;
  background-color: #fafafa; /* Menyamakan background dengan section bawahnya */
}

.floating-menu-box {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Tetap membagi 3 kolom sama rata ke samping */
  gap: 25px;
  margin-top: 20px; /* KUNCI: Diubah menjadi positif agar berada tepat di bawah foto hero */
  padding-block: 10px;
}

.floating-card {
  background-color: rgba(228, 69, 12, 0.897); /* Merah Tua sesuai gambar Anda */
  text-decoration: none;
  height: 140px;
  display: grid;
  place-items: center;
  border-radius: 10px; /* Lengkungan sudut kotak tipis sesuai gambar */
  box-shadow: 0px 8px 20px rgba(97, 30, 6, 0.897); /* Bayangan lembut di bawah kotak */
  transition: all 0.3s ease;
}

.floating-card span {
  color: white;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-align: center;
}

/* Efek saat kursor mendekati kotak */
.floating-card:hover {
  background-color: rgb(189, 50, 0); /* Warna merah lebih gelap saat di-hover */
  transform: translateY(-3px); /* Kotak terangkat sedikit saja */
  box-shadow: 0px 12px 25px rgba(0, 0, 0, 0.25);
}

/* Responsif Layar Smartphone */
@media (max-width: 768px) {
  .floating-menu-box {
    grid-template-columns: 1fr; /* Menumpuk ke bawah jika dibuka di HP */
    gap: 15px;
    margin-top: 15px;
  }
  .floating-card {
    height: 90px;
  }
}


/* Tentang */
.tentang{
  padding: 120px 0;
}

.tentang-box{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.tentang-box img {
  width: 100%;
  height: 450px;          
  object-fit: cover;      
  object-position: center;
  border-radius: 20px;
}

.tentang-box h1{
  font-size: 40px;
  margin-bottom: 10px;
}

.tentang-box p{
  line-height: 2;
  text-align: justify;
}

.tentang .info {
  display: flex;
  flex-direction: column;
  gap: 40px;                             /* Jarak antar baris S1 dan baris D3 */
  padding-top: 80px;
  text-align: center;
}

.prodi-row {
  display: grid;
  gap: 40px;
}

/* Mengatur baris S1 agar membagi menjadi 3 kolom sama rata */
.prodi-s1 {
  grid-template-columns: repeat(3, 1fr);
}

/* Mengatur baris D3 agar membagi menjadi 2 kolom sama rata */
.prodi-d3 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 70%;                        /* Membatasi lebar agar box D3 tidak terlalu melar ke samping */
  margin: 0 auto;                        /* Menengahkan baris D3 */
  width: 100%;
}

/* Menjamin seluruh area box prodi membungkus link dengan benar */
.tentang .info .box {
  background-color: #ffffff;
  border-radius: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.tentang .info .box-link {
  display: block;
  text-decoration: none;
  padding: 25px 20px;
}

.tentang .info .box:hover {
  transform: translateY(-5px);
  box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.08); 
}

.tentang .info .box:hover {
  transform: scale(1.05); 
}

.tentang .info h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
  color: #333333;
}

.tentang .info h2 span{
  font-size: 48px;
  font-weight: bold;
}

.tentang .info h2 span.warna-hijau { color: #2ec4b6; }
.tentang .info h2 span.warna-merah { color: #e63946; }
.tentang .info h2 span.warna-biru { color: #0077b6; }
.tentang .info h2 span.warna-kuning { color: #ffb703; }

.tentang .info p {
  font-size: 16px;
  color: #444444;
  line-height: 1.6;
  max-width: 400px;      
  margin: 0 auto;        
}

@media (max-width: 768px){
  .tentang-box{ grid-template-columns: 1fr; }

  .prodi-s1, .prodi-d3 {
    grid-template-columns: 1fr;          /* Menumpuk 1 kolom ke bawah saat dibuka di HP */
    max-width: 100%;
  }

  .tentang .info { grid-template-columns: 1fr; gap: 40px; }

  .tentang .info {
    gap: 20px;
  }
}


/* Akademik & Berita */
.akademik{
  padding-bottom: 100px;
}

.akademik-box{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.akademik-box .box{
  display: block;          
  text-decoration: none;   
  color: #333333;          
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.15); 
  border-radius: 20px;     
  background-color: #fff;  
  overflow: hidden;        
  transition: all 0.3s ease; 
}

.akademik-box .box:hover {
  transform: translateY(-5px); 
  box-shadow: 0px 15px 30px rgba(0, 0, 0, 0.25); 
}

.akademik-box img {
  width: 100%;
  height: 200px;           
  object-fit: cover;       
  object-position: center; 
  display: block;
}

.akademik-box .desc{
  padding: 20px;
}

.akademik-box .desc h2 {
  color: #000000;
  margin-bottom: 10px;
  font-size: 22px;
}

.akademik-box .desc p{
  line-height: 2;
  font-size: 15px;
}

@media (max-width: 575px) {
  .akademik-box{ gap: 40px; }
}


/* PMB */
.pmb{
  padding-block: 50px;
}

.pmb-box{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  align-items: center;
  text-align: center;
}

.pmb-box img{
  width: 100%;
  border-radius: 20px;
  box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.25);
}

.pmb-box h2{ margin-bottom: 10px; }
.pmb-box p{ line-height: 2; margin-bottom: 20px; }

.pmb-box a{
  text-decoration: none;
  color: white;
  background-color: orangered;
  padding: 10px 20px;
  border-radius: 20px;
  transition: background-color 0.3s ease;
}

.pmb-box a:hover{
  background-color: rgb(175, 48, 2);
}

@media(max-width: 768px){
  .pmb-box { grid-template-columns: 1fr; }
}

/* --- SECTION LOKASI KAMPUS (2 KOLOM) --- */
.lokasi-box {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Membagi menjadi 2 kolom sama rata */
  gap: 30px;
}

.box-lokasi {
  background-color: #ffffff;
  border-radius: 20px;
  box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
}

.box-lokasi:hover {
  transform: translateY(-5px);
  box-shadow: 0px 15px 30px rgba(0, 0, 0, 0.15);
}

.lokasi-image img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.desc-lokasi {
  padding: 25px;
}

.desc-lokasi h2 {
  font-size: 22px;
  color: #333333;
  margin-bottom: 12px;
  font-weight: 600;
}

.desc-lokasi .telp {
  font-size: 13px;
  color: #666666;
  margin-bottom: 8px;
  font-weight: 500;
}

.desc-lokasi .alamat {
  font-size: 14px;
  line-height: 1.6;
  color: #555555;
  text-align: justify;
}

/* Responsif untuk layar HP */
@media (max-width: 768px) {
  .lokasi-box {
    grid-template-columns: 1fr; /* Otomatis menumpuk ke bawah jika dibuka di HP */
    gap: 20px;
  }
  
  .lokasi-image img {
    height: 180px;
  }
}

/* Footer */
.footer-box .footer-logo img {
  height: 120px;          
  width: auto;           
  display: block;
  margin: 0 auto 25px auto; 
  opacity: 0.95;         
  transition: transform 0.3s ease;
}

.footer-box .footer-logo img:hover {
  transform: scale(1.05);
}

footer{
  margin-top: 100px;
  padding: 50px 0;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
}

.footer-box{
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  row-gap: 50px;
}

.footer-box h2{ margin-bottom: 20px; }
.footer-box p{ line-height: 2; font-size: 14px; }
.footer-box .box:nth-child(1){ width: 400px; }

.footer-box .social{
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-box .social a{
  font-size: 28px;
  text-decoration: none;
  color: white;
  transition: color 0.3s ease;
}

.footer-box .social a:hover{ color: orangered; }

.footer-box .box:nth-child(2){
  width: 100px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-box .box:nth-child(2) h2 { margin-bottom: 0; }
.footer-box .box:nth-child(2) a { text-decoration: none; font-size: 14px; color: white; }
.footer-box .box:nth-child(2) a:hover{ color: orangered; }

.footer-box .box:nth-child(3){ width: 300px; }
.footer-box .box:nth-child(3) p {
  margin-bottom: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.copyright{ margin-top: 50px; text-align: center; }
.copyright p{ font-size: 14px; }
.copyright p span{ font-weight: bold; }


/* Scroll up */
.scroll-up{
  width: 50px;
  height: 50px;
  background-color: orangered;
  color: white;
  border-radius: 100%;
  display: grid;
  place-items: center;
  position: fixed;
  bottom: 40px;
  right: 40px;
  opacity: 0;
  transition: all 0.5s ease;
} 

.scroll-up.scroll-active{ opacity: 1; }


/* --- HALAMAN KHUSUS DINAMIS (SEJARAH & DETAIL) --- */
.sejarah-page {
  padding-top: 140px;      
  padding-bottom: 80px;
  background-color: #fafafa;
}

.sejarah-title {
  font-size: 36px;
  color: #000020e0;          
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

.sejarah-image-box {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 40px auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.1);
}

.sejarah-image-box img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

.sejarah-content {
  max-width: 850px;
  margin: 0 auto;
  background-color: #ffffff;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.02);
}

.sejarah-content p {
  font-size: 16px;
  line-height: 2;
  color: #333333;
  text-align: justify;     
  margin-bottom: 25px;
}

.sejarah-content p:last-child {
  margin-bottom: 0;        
}

@media (max-width: 768px) {
  .sejarah-page { padding-top: 110px; }
  .sejarah-title { font-size: 26px; padding-inline: 10px; }
  .sejarah-content { padding: 25px 20px; }
  .sejarah-content p { font-size: 15px; line-height: 1.8; }
}