/* Reset dan gaya umum */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", system-ui, sans-serif;
  background-color: #fefefe;
  color: #222;
  line-height: 1.6;
}

/* === NAVBAR === */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #000;
  color: white;
  padding: 10px 20px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  width: 35px;
  height: 35px;
  border-radius: 50%;
}

.brand {
  font-weight: 600;
  font-size: 1rem;
}

.nav-right {
  display: flex;
  list-style: none;
  gap: 20px;
}

.nav-right a {
  text-decoration: none;
  color: white;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.nav-right a:hover {
  color: #ffc107;
}

/* === DROPDOWN === */
.dropdown {
  position: relative; /* biar posisi anak menempel ke induknya */
}

.dropdown-content {
  position: absolute;
  top: 100%;               /* muncul tepat di bawah tombol */
  right: 0;                /* sebelumnya terlalu ke ujung */
  transform: translateX(-15px); /* 🔹 geser sedikit ke kiri biar gak mepet */
  background-color: #111;
  border-radius: 6px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  display: none;
  flex-direction: column;
  min-width: 160px;
  z-index: 100;
}

.dropdown-content a {
  padding: 10px 14px;
  color: white;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 0.3s;
}

.dropdown-content a:hover {
  background: rgba(255,255,255,0.1);
}

.dropdown:hover .dropdown-content {
  display: flex;
}

/* === BANNER === */
.banner {
  width: 100%;
  overflow: hidden;
  background-color: #000; /* menyatu dengan navbar */
}

.banner-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

/* === ISI === */
.content {
  padding: 30px 20px;
  max-width: 900px;
  margin: auto;
}

.content h2 {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #111;
}

.content p {
  margin-bottom: 16px;
  text-align: justify;
}

/* === FOOTER === */
main.content {
  flex: 1; /* Isi utama akan mengambil ruang kosong di tengah */
}

.footer {
  background-color: #000;
  color: white;
  text-align: center;
  padding: 15px 10px;
  font-size: 14px;
}

.footer a {
  color: white;
  text-decoration: none;
  margin: 0 5px;
}
/* === RESPONSIVE === */
@media (max-width: 768px) {
  .nav-left {
    display: flex;
    align-items: center;
    gap: 10px; /* beri jarak antara logo/teks dan Home */
  }

  .nav-right {
    margin-left: 8px; /* geser Home sedikit ke kanan */
  }

  .brand {
    margin-right: 6px; /* tambahkan ruang antara IE.25.A1 dan menu kanan */
  }
}
/* === FIX FINAL DROPDOWN MOBILE NEMPEL MENU === */
@media (max-width: 768px) {
  .dropdown {
    position: relative;
    display: inline-block;
  }
/* === FIX DROPDOWN MOBILE DI BAWAH NAVBAR === */
@media (max-width: 768px) {
  .dropdown-content {
    top: calc(100% + 13px) !important; /* 🔹 beri jarak kecil di bawah navbar hitam */
    right: -20px;                  /* 🔹 biar tetap di kanan */
    transform: none !important;
    width: 130px !important;
  }
}

  .dropdown-content a {
    padding: 8px 10px;
    font-size: 0.9rem;
    text-align: left;
  }
}
/* === FIX DROPDOWN MOBILE TIDAK LEWAT BATAS === */
@media (max-width: 768px) {
  nav ul li ul {
    position: absolute;
    top: 40px; /* turunkan sedikit dari menu utama */
    right: 0;
    width: 160px;
    background-color: #111; /* tetap hitam elegan */
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
  }

  nav ul li ul li {
    padding: 8px 12px;
    font-size: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  nav ul li ul li:last-child {
    border-bottom: none;
  }

  /* Biar dropdown tidak nempel banget di kanan */
  nav ul li:hover ul {
    right: 10px;
  }
}
/* === STRUKTUR ORGANISASI === */
.org-section {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(180deg, #f9fafc 0%, #eef1f4 100%);
}

.org-section h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* layout vertikal per level */
.org-hierarchy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}

.level {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* node card */
.node {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  padding: 10px 14px;
  min-width: 140px;
  transition: 0.3s ease;
}

.node:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.node h3, .node h4 {
  margin: 0;
  font-size: 0.95rem;
  color: #111;
  font-weight: 600;
}

.node p {
  margin-top: 4px;
  font-size: 0.82rem;
  color: #555;
}

/* ukuran kecil & sangat kecil */
.node.small { min-width: 120px; padding: 8px 12px; }
.node.tiny { min-width: 110px; padding: 6px 10px; }

/* warna garis atas */
.level.ketua .node { border-top: 3px solid #ff9800; }
.level.wakil .node { border-top: 3px solid #03a9f4; }
.level.sekretaris .node { border-top: 3px solid #00bcd4; }
.level.bendahara .node { border-top: 3px solid #4caf50; }
.level.admin .node { border-top: 3px solid #9c27b0; }
.level.pj .node { border-top: 2px solid #607d8b; }

/* daftar anggota */
.anggota-list {
  margin-top: 20px;              /* 🔹 sebelumnya terlalu jauh, sekarang lebih rapat */
  padding: 25px 30px;
  background: #ffffff;
  text-align: left;              /* 🔹 isi rata kiri */
  max-width: 900px;              /* sedikit lebih lebar biar proporsional */
  margin-left: auto;
  margin-right: auto;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.anggota-list h3 {
  text-align: left;              /* 🔹 judul juga ikut kiri agar konsisten */
  font-size: 1.3rem;
  color: #111;
  margin-bottom: 15px;
  border-left: 4px solid #03a9f4; /* aksen biru di kiri */
  padding-left: 10px;
}

.anggota-list ol {
  list-style: decimal;
  padding-left: 25px;
  line-height: 1.6;              /* 🔹 jarak antar baris sedikit dipadatkan */
  font-size: 0.95rem;
  color: #333;
  margin: 0;
}

.anggota-list li {
  margin: 4px 0;                 /* 🔹 jarak antar item lebih rapat */
}

.anggota-list li::marker {
  color: #03a9f4;
  font-weight: bold;
}

.org-section {
  padding-bottom: 20px;  /* 🔹 jarak bawah dikurangi */
}


/* Responsif */
@media (max-width: 768px) {
  .node {
    min-width: 90%;
  }
}
/* ===== Jadwal Matkul ===== */
.jadwal-section {
  padding: 70px 20px;
  background: linear-gradient(145deg, #f4f7fb 0%, #e7edf3 100%);
  min-height: 100vh;
  text-align: center;
}

.jadwal-section h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #0d1b2a;
  margin-bottom: 50px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Grid simetris */
.jadwal-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

/* Kartu hari */
.jadwal-card {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  padding: 25px 25px 20px 25px;
  transition: all 0.4s ease;
  border: 1px solid rgba(255,255,255,0.4);
}

.jadwal-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 30px rgba(0,0,0,0.15);
}

/* Judul hari */
.jadwal-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0a192f;
  margin-bottom: 20px;
  border-left: 6px solid #2196f3;
  padding-left: 10px;
}

/* Item mata kuliah */
.jadwal-item {
  background: #fff;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 15px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.05);
  border-left: 4px solid #2196f3;
  transition: all 0.3s ease;
}

.jadwal-item:hover {
  transform: scale(1.02);
  background: #f5faff;
}

.jadwal-item h4 {
  font-size: 1.05rem;
  color: #0d1b2a;
  margin-bottom: 6px;
}

.jadwal-item p {
  margin: 2px 0;
  font-size: 0.9rem;
  color: #333;
}

.note {
  font-style: italic;
  color: #6097d1;
  margin-top: 6px;
  font-size: 0.85rem;
}

/* Animasi muncul */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease forwards;
}

.fade-in.delay-1 {
  animation-delay: 0.3s;
}

.fade-in.delay-2 {
  animation-delay: 0.6s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsif */
@media (max-width: 768px) {
  .jadwal-section h2 {
    font-size: 1.6rem;
  }

  .jadwal-card {
    padding: 20px 15px;
  }

  .jadwal-item h4 {
    font-size: 1rem;
  }
}

/* Nama dosen */
.dosen {
  color: #5c6f80;
  font-size: 0.88rem;
  margin-bottom: 6px;
  font-style: italic;
  letter-spacing: 0.3px;
}
/* === BANNER / PROFIL KHUSUS MOBILE === */
/* === FIX FULL BANNER KHUSUS MOBILE TANPA TERPOTONG === */
@media (max-width: 768px) {
  .banner-img img,
  .profil-img img {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain !important; /* tampil penuh */
  }

  .banner-img,
  .profil-img {
    width: 100%;
    height: auto;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  /* hilangkan batas tinggi lama jika ada */
  .banner-img {
    max-height: none !important;
  }
}
/* MATERI SECTION */
.materi-btn {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 14px;
  background: linear-gradient(90deg, #2196f3, #1976d2);
  color: white;
  font-size: 0.85rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.materi-btn:hover {
  background: linear-gradient(90deg, #42a5f5, #1e88e5);
  transform: scale(1.05);
}
/* ============================
   NOTIFIKASI PAGE STYLE
============================ */

.notif-page {
    max-width: 900px;
    margin: auto;
    padding: 20px;
}

.page-title {
    font-size: 26px;
    font-weight: bold;
    margin-bottom: 15px;
}

.notif-empty {
    padding: 20px;
    background: #ffffff;
    border-left: 4px solid #000;
    border-radius: 6px;
}

.notif-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.notif-card {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    border-left: 5px solid #000;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.notif-card h3 {
    margin-bottom: 10px;
    font-size: 20px;
}

.notif-card p {
    margin-bottom: 10px;
    font-size: 15px;
    line-height: 1.6;
}

.notif-time {
    font-size: 13px;
    color: #555;
}

/* Mobile optimization */
@media (max-width: 600px) {
    .notif-card {
        padding: 16px;
    }
    .notif-card h3 {
        font-size: 18px;
    }
    .notif-card p {
        font-size: 14px;
    }
}
/* ========================================================================
   STYLE UNTUK HALAMAN MATERI & MATKUL
   ======================================================================== */

.card-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.card-item {
    background: #ffffff;
    padding: 18px 22px;
    border-radius: 14px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: 0.25s;
    text-decoration: none;
    color: #000;
}

.card-item:hover {
    transform: translateY(-3px);
    background: #f7f7f7;
}

.card-item h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: bold;
}

.card-item p {
    margin: 0;
    font-size: 14px;
    color: #444;
}

.btn {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 18px;
    background: #4b7bec;
    color: #fff !important;
    border-radius: 10px;
    text-decoration: none;
    transition: 0.25s;
}

.btn:hover {
    background: #3867d6;
}

/* PDF Viewer Box */
.pdf-frame {
    width: 100%;
    height: 85vh;
    border: none;
    margin-top: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
/* ======= SEMESTER CARD ======= */
.semester-card {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.semester-box {
    width: 92%;
    max-width: 500px;
    background: #ffffff;
    padding: 25px;
    border-radius: 15px;
    border: 1px solid #e5e5e5;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    text-decoration: none;
    transition: 0.25s ease;
}

.semester-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.10);
}

.sem-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: #222;
}

.sem-sub {
    font-size: 1rem;
    color: #555;
    margin-top: 6px;
}
/* ======= MATKUL GRID ======= */
.matkul-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 10px;
}

@media(min-width: 600px) {
    .matkul-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.matkul-box {
    padding: 18px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e6e6e6;
    text-decoration: none;
    font-size: 1.1rem;
    color: #222;
    font-weight: 500;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: 0.25s ease;
}

.matkul-box:hover {
    background: #f6f6f6;
    transform: translateY(-3px);
    box-shadow: 0 5px 18px rgba(0,0,0,0.10);
}
