/* Reset & Global */
body {
  font-family: 'Poppins', sans-serif;
  background-color: #f0f0f0;
  scroll-behavior: smooth;
  font-size: 13px; /* ukuran dasar font */
}
html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* cegah scroll horizontal */
}

/* Navbar */
.navbar-custom {
  transition: background 0.3s ease-in-out;
  background: #3d0066; /* warna solid default */
}
.navbar-scrolled {
  background: linear-gradient(135deg, #3d0066, #6300a6) !important;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.navbar-brand img {
  height: 40px;
  margin-right: 10px;
}
.navbar-brand span {
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
}
.navbar-nav .nav-link {
  color: #fff;
  font-weight: 500;
  margin: 0 8px;
}
.navbar-nav .nav-link:hover {
  color: #ffd6ff !important;
}

.bg-purplex {
    background-color: #3d0066 !important;
}

/* Utility */
.text-purple { color: #6a11cb; }
.btn-purple {
  background-color: #3d0066;
  color: #fff;
  border-radius: 20px;
  padding: 10px 25px;
  transition: 0.3s;
   border: 2px solid #c947ff;   /* border putih */
}
.btn-purple:hover {
  background-color: #5a0fb5;
  color: #fff;
}

/* Hero Section */
.hero {
  padding: 0 !important;
  margin: 0 !important;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, #6a11cb, #8e44ad);
  position: relative;
  overflow: hidden;
}
.hero h1 {
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.3;
}
.hero p {
  font-size: 1.2rem;
  margin: 15px 0;
}
.hero .btn {
  margin-top: 20px;
}

/* Pastikan container dalam hero rapat */
.hero .container-fluid,
.hero .row,
.hero .col-md-7,
.hero .col-md-5 {
  margin: 0 !important;
  padding: 0 !important;
}

/* Section umum */
section {
  padding: 60px 0;
}
section h2 {
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #6a11cb;
}

/* Prodi Card */
.prodi-card {
  transition: all 0.3s ease-in-out;
  border-radius: 14px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.prodi-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}
.prodi-card i {
  color: #fff;
  transition: transform 0.6s ease;
  display: inline-block;
}
.prodi-card:hover i {
  transform: rotate(15deg) scale(1.2);
}
/* Warna berbeda untuk tiap card */
.prodi-1 {
  background: linear-gradient(135deg, #6a11cb, #370059); /* ungu → biru */
}
.prodi-2 {
  background: linear-gradient(135deg, #1b11cb, #001f7a); /* biru tua */
}
.prodi-3 {
  background: linear-gradient(135deg, #6a11cb, #370059); /* ungu → gelap */
}

/* Footer */
footer {
  background: #3d0066;
  color: #fff;
  padding: 20px;
  text-align: center;
}

.footer-custom {
  background: #2c003e;
  border-top: 3px solid #6f42c1;
  font-size: 14px;
}

.footer-link {
  color: #fff;
  text-decoration: none;
  margin: 0 10px;
  transition: 0.3s;
  display: inline-block;
}

.footer-link:hover {
  color: #a400fe;
  transform: translateY(-2px);
}

.footer-link i {
  margin-right: 5px;
}

/* Responsif Hero */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 1.5rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .hero .p-5 {
    padding: 2rem 1rem !important;
  }
  .hero .btn {
    padding: 8px 18px;
    font-size: 0.9rem;
  }
  .hero .col-md-7 {
    min-height: 60vh !important;
  }
}

/* Tombol pulse dengan glow warna smooth */
.btn-pulse {
  animation: pulse 1.8s infinite ease-in-out;
  box-shadow: 0 0 0 rgba(106, 17, 203, 0.7);
}
@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(106, 17, 203, 0.7);
  }
  30% {
    transform: scale(1.08);
    box-shadow: 0 0 20px 5px rgba(233, 60, 248, 0.6);
  }
  60% {
    transform: scale(1.12);
    box-shadow: 0 0 25px 7px rgba(10, 98, 255, 0.5);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(106, 17, 203, 0);
  }
}

/* Container Sambutan Rektor */
.sambutan-rektor {
  text-align: center;
  padding: 20px;
}
.sambutan-rektor h3 {
  font-size: 2rem;
  font-weight: 700;
  color: #6a11cb;
  margin-bottom: 15px;
}
.sambutan-rektor img {
  max-width: 160px;
  border: 4px solid #eee;
  margin-bottom: 15px;
}
.sambutan-rektor p.text-muted {
  font-size: 1rem;
  font-style: italic;
  color: #555 !important;
  line-height: 1.6;
  margin-bottom: 20px;
}
.sambutan-rektor p.fw-bold {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 5px;
}
.sambutan-rektor p.text-secondary {
  font-size: 0.95rem;
  color: #777 !important;
}

/* Tambah jarak hero dari navbar di HP */
@media (max-width: 768px) {
  .hero {
    padding-top: 70px !important; /* tinggi kira-kira navbar */
    height: auto; /* biar tidak terpaksa 100vh di layar kecil */
    min-height: 100vh; /* tetap minimal satu layar penuh */
  }

  .hero .col-md-7,
  .hero .col-md-5 {
    min-height: auto !important; /* hilangkan fix height agar tidak numpuk */
    padding: 20px !important;
  }
}

/* Tambahan jarak kiri-kanan khusus halaman prodi */
@media (max-width: 768px) {
  .prodi-container {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .prodi-container h4,
  .prodi-container h5,
  .prodi-container p,
  .prodi-container ul {
    font-size: 0.95rem; /* biar lebih enak dibaca */
    line-height: 1.6;   /* kasih spasi antar baris */
  }
}


/* ===========================
   GLOBAL PLACEHOLDER STYLE
   =========================== */

/* Semua input & textarea */
::placeholder {
  font-size: 12px;        /* ukuran font placeholder */
  color: #888;            /* warna placeholder */
}

/* Placeholder lebih spesifik di input/textarea dalam form */
input::placeholder,
textarea::placeholder {
  font-size: 12px;
  color: #777;
}

/* ===========================
   SELECT OPTION PERTAMA
   =========================== */

/* Styling option pertama (seperti placeholder di select) */
select option:first-child {
  font-size: 12px;
  color: #888;
}

