:root {
    --bg-image: url('bidang 8 images/bidang8.jpg');
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Times New Roman', Times, serif;
    color: #ffffff;
    background: var(--bg-image) center/cover fixed no-repeat;
  }
  
  /* Layout utama */
  .container {
    display: flex;
    height: 100vh;
  }
  
  .sidebar {
    width: 25%;
    max-width: 300px;
    background: #66428a;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 20px;
  }
  
  .logo-btn {
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease;
  }
  
  .logo-btn:hover {
    transform: scale(1.05);
  }
  
  .logo-btn img {
    height: 250px;
    width: auto;
    border-radius: 15px;
  }
  
  .content {
    width: calc(100% - 25%);
    background: transparent;
    padding: 20px;
    overflow-y: auto;
    text-align: center;
  }
  
  /* Mobile Header */
  .mobile-header {
    display: none;
    align-items: center;
    justify-content: space-between;
    background: #66428a;
    padding: 6px 14px;
    position: sticky;
    top: 0;
    z-index: 850;
  }
  
  .mobile-logo {
    height: 40px;
  }
  
  .hamburger {
    width: 32px;
    height: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: none;
    border: none;
    cursor: pointer;
  }
  
  .hamburger span {
    height: 3px;
    background: #fff;
    border-radius: 3px;
    display: block;
    transition: transform 0.3s ease;
  }
  
  .hamburger:hover span {
    background: #e0e0e0;
  }
  
  /* Overlay dan Side-panel */
  .panel-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
    z-index: 900;
  }
  
  .panel-overlay.show {
    opacity: 1;
    pointer-events: auto;
  }
  
  .side-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 320px;
    height: 100vh;
    background: #543572;
    color: #fff;
    padding: 28px 24px;
    transform: translateX(-100%);
    transition: transform 0.4s ease-out;
    z-index: 1000;
    overflow-y: auto;
    box-shadow: 2px 0 20px rgba(0,0,0,0.3);
  }
  
  .side-panel.show {
    transform: translateX(0);
  }
  
  .close-panel {
    position: absolute;
    top: 14px;
    left: 14px;
    background: none;
    border: none;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
  }
  
  .close-panel:hover {
    background-color: rgba(255,255,255,0.1);
  }
  
  .panel-content {
    margin-top: 50px;
    text-align: left;
  }
  
  .panel-logo {
    width: 180px;
    margin: 0 auto 18px;
    border-radius: 12px;
    display: block;
  }
  
  .side-panel h2 {
    margin: 16px 0 8px;
    font-family: 'Poppins', sans-serif;
    color: #ffffff;
  }
  
  .side-panel ul {
    list-style: disc;
    padding-left: 20px;
  }
  
  .side-panel li {
    margin-bottom: 6px;
  }
  
  /* ================= CARD PERSON ================= */
  .card-person {
    position: relative;
    background: #80679c;
    color: #fff;
    border-radius: 20px;
    padding: 18px 20px;
    width: 100%;
    max-width: 400px;
    margin: 15px auto 30px;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  }
  
  /* Efek hover dengan overlay gelap yang lebih lembut */
  .card-person::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    opacity: 0;
    transition: opacity 0.25s ease;
    border-radius: inherit;
    z-index: 1;
  }
  
  .card-person:hover::after {
    opacity: 1;
  }
  
  .card-person:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  }
  
  .card-person.animating {
    pointer-events: none;
  }
  
  /* CARD HEADER & ANIMASI PENUTUP */
  .card-header {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: opacity 0.3s ease;
  }
  
  .card-header img {
    width: 180px;
    height: 200px;
    border-radius: 12px;
    object-fit: cover;
  }
  
  .person-name {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  }
  
  .card-person.open .card-header {
    opacity: 0;
  }
  
  /* Animasi transisi ungu GELAP dari bawah */
  .card-overlay-transition {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #2c1a3a, #3d2752, #4a2d5f);
    z-index: 5;
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 20px;
    box-shadow: inset 0 0 30px rgba(0,0,0,0.4);
  }
  
  .card-person.open .card-overlay-transition {
    transform: translateY(0);
  }
  
  /* PENJELASAN dengan background yang kontras */
  .card-body {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #3d2752, #4a2d5f, #5c3870);
    border-radius: 20px;
    padding: 20px;
    text-align: left;
    font-size: 15px;
    line-height: 1.45;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 6;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.3);
  }
  
  .card-person.show-content .card-body {
    opacity: 1;
    pointer-events: auto;
  }
  
  .card-body a {
    color: #e6d7ff;
    text-decoration: underline;
    transition: color 0.3s ease;
    font-weight: 500;
  }
  
  .card-body a:hover {
    color: #f0e8ff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
  }
  
  .card-body p {
    margin-bottom: 10px;
    color: #f5f5f5;
  }
  
  .card-body strong {
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  }
  
  /* Judul Bagian */
  .koordinator,
  .anggota {
    margin-bottom: 40px;
    text-align: center;
  }
  
  .koordinator h2,
  .anggota h2 {
    margin-bottom: 12px;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  }
  
  /* Grid */
  .anggota-list {
    display: grid;
    gap: 20px;
    justify-items: center;
    grid-template-columns: repeat(4, 1fr);
  }
  
  /* Tombol Kembali */
  .back-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1200;
    transition: 0.3s;
  }
  
  .btn-back {
    background: linear-gradient(135deg, #543572, #6d4c93);
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 12px 20px;
    font-size: 16px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
  }
  
  .btn-back:hover {
    background: linear-gradient(135deg, #402959, #5d3b7d);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  }
  
  .back-button.hide {
    opacity: 0;
    pointer-events: none;
  }
  
  /* ================= RESPONSIVE ================= */
  @media (max-width: 768px) {
    .mobile-header {
      display: flex;
    }
    
    .sidebar {
      display: none;
    }
    
    .content {
      width: 100%;
      padding: 15px;
    }
    
    .card-header img {
      width: 140px;
      height: 160px;
    }
    
    .anggota-list {
      grid-template-columns: repeat(2, 1fr);
      gap: 15px;
    }
    
    .card-person {
      max-width: 300px;
      padding: 15px;
    }
  
    .back-button {
      left: 15px;
      bottom: 15px;
    }
    
    .btn-back {
      padding: 10px 16px;
      font-size: 14px;
    }
  
    .side-panel {
      left: auto;
      right: 0;
      width: 82%;
      transform: translateX(100%);
    }
    
    .side-panel.show {
      transform: translateX(0);
    }
    
    .close-panel {
      left: auto;
      right: 14px;
    }
  
    .koordinator h2,
    .anggota h2 {
      font-size: 24px;
    }
  }
  
  @media (max-width: 480px) {
    .anggota-list {
      grid-template-columns: 1fr;
    }
    
    .card-person {
      max-width: 350px;
    }
  
    .card-body {
      font-size: 14px;
      padding: 18px;
    }
  }