/**
 * ============================================================================
 * PORTAL ALUMNI STIM LPI MAKASSAR - EXTERNAL DESIGN SYSTEM
 * Dioptimalkan untuk sinkronisasi database dinamis dan tata letak premium
 * ============================================================================
 */

:root {
  --border: #e2e8f0;
  
  /* GANTI JADI 'INTER' ATAU SANS-SERIF POLOS AGAR SEJAJAR DENGAN REFERENSI GAMBAR */
  --font-heading: "Inter", "Segoe UI", Arial, sans-serif;
  
  --font-body: "Inter", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* --- RE-SETTING HALAMAN UTAMA --- */
body {
  margin: 0;
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

/* --- BILAH MENU NAVIGASI (NAVBAR) --- */
.main-navbar {
  background: rgba(11, 31, 58, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 14px 0;
  position: relative; /* Diubah dari sticky ke relative untuk mematikan celah gantung bawah */
  z-index: 999;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 0px !important;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-logo {
  width: 46px;
  height: 46px;
  min-width: 46px;
  min-height: 46px;
  max-width: 46px;
  max-height: 46px;
  background: #ffffff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.brand-logo img {
  display: block;
  width: 30px !important;
  height: 30px !important;
  object-fit: contain !important;
}

.brand-wrapper:hover .brand-logo {
  transform: scale(1.05) rotate(3deg);
}

.brand-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  letter-spacing: 0.3px;
}

.brand-subtitle {
  font-size: 0.75rem;
  margin-top: 3px;
  font-weight: 500;
}

.btn-login {
  border-radius: 10px;
  padding: 10px 22px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.25s ease;
}

/* --- BANNER AREA INDUK (HERO BANNER) --- */
.hero {
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  width: 100%;
}

/* --- SEKSI KONTEN UTAMA --- */
.main-section {
  width: 100%;
}

.section-kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section-description {
  max-width: 680px;
  margin: 0 auto 50px;
  line-height: 1.7;
  font-size: 1.05rem;
}

/* --- STRUKTUR KARTU KOMPONEN PROGRAM STUDI --- */
.prodi-card {
  height: 100%;
  display: block;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 24px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.prodi-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 30px rgba(11, 31, 58, 0.06);
}

.prodi-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.prodi-level {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.prodi-name {
  font-weight: 700;
  line-height: 1.4;
  font-size: 1.05rem;
}

/* --- SEKSI DATA STATISTIK ALUMNI --- */
.year-select-wrapper {
  max-width: 320px;
  margin: 0 auto 50px;
  background: #ffffff;
  padding: 16px 20px;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border);
}

.year-label {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.year-select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  outline: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.stat-card {
  height: 100%;
  background: #ffffff;
  border-radius: 20px;
  padding: 32px 20px;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: 0 4px 15px rgba(11, 31, 58, 0.02);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(11, 31, 58, 0.06);
}

.stat-number {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 14px;
}

.stat-program {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.5;
}

.total-alumni {
  margin-top: 45px;
  font-size: 1.4rem;
  font-weight: 700;
}

.total-alumni span {
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 8px;
  margin-left: 6px;
}

/* --- SEKSI PANDUAN PENGGUNAAN --- */
.step-item {
  position: relative;
  text-align: center;
  padding: 20px 15px;
}

.step-number {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 1.3rem;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(11, 31, 58, 0.15);
}

.step-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.step-description {
  font-size: 0.92rem;
  line-height: 1.6;
}

/* --- SEKSI STRUKTUR ORGANISASI --- */
.organization-title {
  margin-top: 45px;
  margin-bottom: 25px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.leader-card {
  height: 100%;
  padding: 24px 18px;
  text-align: center;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(30, 90, 168, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  transition: all 0.25s ease;
}

.leader-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.10);
}

.structure-photo,
.leader-photo,
.organization-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 18px !important;
  overflow: hidden;
}

.structure-photo img,
.leader-photo img,
.organization-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 18px !important;
}

.leader-name {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  margin-top: 14px;
  margin-bottom: 6px;
}

.leader-position {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
}

.leader-description {
  margin-top: 4px;
  font-size: 0.82rem;
  line-height: 1.4;
}

/* --- BANNER BAWAH SEKSI CALL TO ACTION (CTA) --- */
.cta-section {
  padding: 95px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section h2 {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.cta-section p {
  max-width: 620px;
  margin: 0 auto 32px;
  line-height: 1.7;
  font-size: 1.05rem;
}

/* --- BAGIAN FOOTER PALING BAWAH --- */
footer {
  padding: 30px 0;
  font-size: 0.88rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-title {
  font-weight: 700;
  font-size: 0.95rem;
}


/* ==========================================================================
   KALIBRASI RESPONSIF JUDUL HERO UNTUK LAYAR HP (FIXED PORTAL ALUMNI)
   ========================================================================== */
@media (max-width: 768px) {
    /* Menargetkan text judul utama di dalam hero banner */
    .hero-content h1, 
    .hero-section h1,
    h1.display-4,
    #hero-title {
        font-size: 1.8rem !important; /* Mengecilkan ukuran agar pas di layar HP */
        letter-spacing: 0px !important; /* Merapatkan sedikit jarak antar huruf */
        line-height: 1.2 !important; /* Menjaga jarak antar baris tetap proporsional */
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    /* Jika tulisan masih terlalu rapat, kita beri sedikit ruang padding */
    .hero-content {
        padding: 25px 15px !important; /* Menyesuaikan padding kotak melayang di HP */
    }
}

@media (max-width: 480px) {
    /* Kalibrasi ekstra ketat untuk layar HP yang sangat kecil/ramping */
    .hero-content h1, 
    .hero-section h1,
    h1.display-4,
    #hero-title {
        font-size: 1.5rem !important; /* Ukuran paling aman agar tidak terpotong sama sekali */
    }
}


/* --- MEDIA PREDIKAT: RESPONSIVITAS SMARTPHONE --- 
@media (max-width: 767px) {
  .main-navbar { padding: 12px 0; }
  .brand-title { font-size: 0.9rem; }
  .brand-subtitle { font-size: 0.7rem; }
  .brand-logo { width: 40px; height: 40px; min-width: 40px; min-height: 40px; }
  .brand-logo img { width: 26px !important; height: 26px !important; }
  .btn-login { padding: 8px 16px; font-size: 0.85rem; }
  .hero { padding: 60px 0; }
  .main-section { padding: 65px 0; }
  .stat-number { font-size: 2.2rem; }
  .organization-title { margin-top: 45px; }
  .leader-photo, .structure-photo { border-radius: 15px; }
  .leader-name { font-size: 0.9rem; }
  .leader-position { font-size: 0.82rem; }
  .leader-description { font-size: 0.78rem; }
}

*/
