/* =========================================================
   /style.css — RSP Official Style (Refined & RESPONSIVE FINAL) 
   ========================================================= */

/* ---------- CSS Variables ---------- */
:root {
  --primary:        #0f4c81;
  --primary-hover:  #0a365e;
  --primary-light:  #eef4fa;
  --accent:         #ff8a00;
  --text-dark:      #1f2937;
  --text-muted:     #64748b;
  --bg-body:        #f8fafc;
  --white:          #ffffff;
  --border:         #e2e8f0;
  --shadow-sm:      0 1px 2px rgba(0,0,0,.05);
  --shadow-md:      0 4px 6px -1px rgba(0,0,0,.10), 0 2px 4px -2px rgba(0,0,0,.06);
  --r-sm: 8px;
  --r-md: 12px;
  --ring:           0 0 0 4px rgba(15, 76, 129, 0.15); /* Ring 4px */
  --container-width: 1000px;
}

/* ---------- Reset Basic ---------- */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: "Inter", "Noto Sans JP", sans-serif;
  background-color: var(--bg-body);
  color: var(--text-dark);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: all .2s ease; }

/* =========================================================
   HEADER
   ========================================================= */
.header {
  background: var(--white); border-bottom: 1px solid var(--border); padding: 16px 32px;
  display: flex; justify-content: space-between; align-items: center;
  position: sticky; top: 0; z-index: 50; box-shadow: var(--shadow-sm);
}
.logo-area { display: flex; align-items: center; gap: 12px; }
.logo-circle { width: 40px; height: 40px; background: var(--primary); color: var(--white); border-radius: var(--r-sm); display: grid; place-items: center; font-weight: 800; font-size: 20px; }
.site-title { font-weight: 700; font-size: 18px; color: var(--primary); }
.login-btn { background: var(--white); border: 1px solid var(--border); padding: 8px 16px; border-radius: var(--r-sm); font-size: 13px; font-weight: 600; color: var(--text-dark); cursor: pointer; }
.login-btn:hover { border-color: var(--primary); color: var(--primary); }


/* --- LISTING HEADER & SORTING --- */
.listing-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 25px; border-bottom: 1px solid var(--border);
  padding-bottom: 15px; flex-wrap: wrap; gap: 15px;
}

.list-title { font-size: 18px; font-weight: 700; color: var(--text-dark); }
.list-meta  { font-size: 13px; color: var(--text-muted); margin-left: 5px; font-weight: 400; }

/* Styling Dropdown Sortir */
.sort-wrap .input-group { width: auto; min-width: 220px; }

.sort-select {
  height: 42px; /* Lebih compact dari search bar utama */
  padding: 0 35px 0 35px; /* Padding kanan kiri pas */
  font-size: 13px;
  border-radius: 50px; /* Bentuk Pill/Bulat biar beda */
  border: 1px solid #cbd5e1;
  background-color: #fff;
  color: var(--text-dark);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
}

.sort-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.1);
  outline: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .listing-header { flex-direction: column; align-items: flex-start; }
  .sort-wrap, .sort-wrap .input-group, .sort-select { width: 100%; }
}


/* =========================================================
   HERO SEARCH SECTION (FIXED UI & ALIGNMENT)
   ========================================================= */
.hero-wrapper {
  background: linear-gradient(to bottom, var(--white) 0%, var(--bg-body) 100%);
  padding: 60px 20px 40px;
  display: flex; justify-content: center; align-items: center;
}
.search-card {
  width: 100%; max-width: 900px; background: var(--white);
  border-radius: 16px; padding: 35px; box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15); 
  text-align: center; border: 1px solid var(--border);
}
.search-title { font-size: 28px; font-weight: 800; color: var(--primary); margin-bottom: 8px; }
.search-sub { font-size: 14px; color: var(--text-muted); margin-bottom: 30px; }

/* --- GRID LAYOUT FORM (The Final Fix) --- */
.search-form {
  display: grid;
  grid-template-columns: minmax(250px, 1.5fr) minmax(180px, 1fr) auto;
  gap: 12px;
  align-items: stretch; /* MEMAKSA SEMUA ELEMEN SAMA TINGGI */
}

/* Input Group (Wrapper for Icon) */
.input-group { position: relative; width: 100%; display: flex; } /* FIX: display:flex agar input fill group */

/* Styling Icon */
.input-icon {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%); 
  color: #94a3b8; font-size: 16px; pointer-events: none; z-index: 2;
}

/* Input Field & Select (Height Standardization) */
.form-input, .form-select {
  width: 100%; height: 50px; 
  padding: 0 16px 0 40px; 
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 13px; color: var(--text-dark);
  background-color: #f8fafc;
  transition: all .2s ease;
  appearance: none;
}
.form-input:focus, .form-select:focus {
  outline: none; border-color: var(--primary); box-shadow: var(--ring);
  background-color: var(--white);
}

/* Search Button (CTA) */
.btn-search {
  height: 50px; 
  padding: 0 32px;
  background-color: var(--accent); 
  color: var(--white);
  border: none; border-radius: 8px;
  font-weight: 700; font-size: 13px;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
  white-space: nowrap; transition: all .2s ease;
}

.btn-search:hover {
  background-color: #e67e00; transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 138, 0, 0.3);
}

/* =========================================================
   MAIN CONTENT & LISTING
   ========================================================= */
.page-container { max-width: var(--container-width); margin: 0 auto; padding: 32px 20px; }

.listing-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px; border-bottom: 1px solid var(--border); padding-bottom: 10px;
  flex-wrap: wrap; gap: 10px;
}
.list-title { font-size: 18px; font-weight: 700; color: var(--text-dark); }
.list-meta  { font-size: 13px; color: var(--text-muted); margin-left: 8px; font-weight: 400; }

.sort-wrap select {
  padding: 8px 12px; border-radius: 6px; border: 1px solid #cbd5e1;
  font-size: 12px; color: var(--text-dark); cursor: pointer; background: var(--white);
}

/* =========================================================
   CARD LIST KANDIDAT
   ========================================================= */
.card-list { display: flex; flex-direction: column; gap: 20px; }

.candidate-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 24px; display: flex; gap: 28px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  position: relative;
}
.candidate-card:hover {
  transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #bfdbfe;
}

.card-photo { flex: 0 0 120px; }
.photo-box { width: 120px; height: 150px; background: #f1f5f9; border-radius: var(--r-sm); overflow: hidden; border: 1px dashed #cbd5e1; display: grid; place-items: center; }
.photo-box img { width: 100%; height: 100%; object-fit: cover; }

.card-body { flex: 1; display: flex; flex-direction: column; min-width: 0; }

.card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; gap: 10px; flex-wrap: wrap; }
.c-name { font-size: 20px; font-weight: 800; color: var(--primary); text-decoration: none; line-height: 1.3; }
.c-name:hover { text-decoration: underline; }
.c-role { font-size: 12px; font-weight: 700; color: var(--accent); text-transform: uppercase; display: inline-flex; align-items: center; gap: 6px; background: #fff7ed; padding: 4px 8px; border-radius: 4px; }

.c-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 16px; }
.tag-pill { font-size: 11px; padding: 4px 12px; border-radius: 50px; font-weight: 600; border: 1px solid #e5e7eb; background: #f9fafb; color: #555; display: inline-flex; align-items: center; gap: 5px; }
.tag-active { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }

.c-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.c-info-item { display: flex; align-items: center; gap: 8px; min-width: 0; }
.c-info-item i { width: 16px; text-align: center; color: #94a3b8; }
.c-info-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }

.c-pr { background: #fffbeb; border-radius: 6px; padding: 10px 16px; font-size: 13px; color: #92400e; border-left: 3px solid #f59e0b; margin-bottom: 16px; font-style: italic; line-height: 1.5; }

.card-footer { margin-top: auto; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #f1f5f9; padding-top: 16px; gap: 10px; flex-wrap: wrap; }
.update-info { font-size: 12px; color: #9ca3af; display: inline-flex; align-items: center; gap: 5px; }
.btn-detail { background: var(--white); border: 1px solid var(--primary); color: var(--primary); padding: 8px 20px; border-radius: var(--r-sm); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; transition: all .2s ease; cursor: pointer; }
.btn-detail:hover { background: var(--primary); color: var(--white); }

/* FOOTER */
.main-footer { text-align: center; padding: 30px; font-size: 12px; color: #999; background: var(--white); border-top: 1px solid var(--border); margin-top: 40px; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .search-card { padding: 24px 20px; }
  .search-form { grid-template-columns: 1fr; gap: 15px; }
  .btn-search { width: 100%; justify-content: center; }
  .candidate-card { flex-direction: column; gap: 16px; }
  .card-photo { margin: 0 auto; }
  .c-info-grid { grid-template-columns: 1fr; gap: 10px; }
  .card-top { flex-direction: column; gap: 6px; align-items: flex-start; }
  .listing-header { flex-direction: column; align-items: flex-start; gap: 10px; }
}

@media (max-width: 480px){
  .header { padding: 12px 16px; }
  .search-title { font-size: 20px; }
  .logo-circle { width: 32px; height: 32px; font-size: 16px; }
  .site-title { font-size: 16px; }
}
/* --- PAGINATION --- */
.pagination { display: flex; gap: 5px; list-style: none; padding: 0; }
.page-item .page-link {
    padding: 8px 16px; border: 1px solid #e2e8f0; background: #fff; color: var(--primary);
    text-decoration: none; border-radius: 6px; font-size: 13px; font-weight: 600;
    transition: 0.2s;
}
.page-item.active .page-link { background: var(--primary); color: #fff; border-color: var(--primary); }
.page-item.disabled .page-link { background: #f8fafc; color: #ccc; cursor: not-allowed; }
.page-item .page-link:hover:not(.active) { background: var(--primary-light); }

/* --- PAGINATION STYLING --- */
.pagination {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 30px 0;
    gap: 5px;
}

.page-item .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    min-width: 40px;
    height: 40px;
    border: 1px solid #e2e8f0;
    background-color: #ffffff;
    color: var(--primary);
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.page-item.active .page-link {
    background-color: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    pointer-events: none; /* Disable click on active page */
}

.page-item.disabled .page-link {
    background-color: #f8fafc;
    color: #cbd5e1;
    border-color: #e2e8f0;
    cursor: not-allowed;
    pointer-events: none;
}

.page-item .page-link:hover:not(.active) {
    background-color: var(--primary-light);
    border-color: #bfdbfe;
    color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Mobile adjustment */
@media (max-width: 480px) {
    .page-item .page-link {
        padding: 6px 12px;
        font-size: 12px;
        height: 36px;
        min-width: 36px;
    }
}

 /* CSS VARIABLE & RESET */
  :root { --primary: #0f4c81; --primary-light: #eef4fa; --accent: #ff8a00; --text-dark: #1f2937; --text-gray: #6b7280; --bg-body: #f3f4f6; --white: #ffffff; --border: #e5e7eb; --shadow-sm: 0 1px 2px rgba(0,0,0,0.05); --shadow-md: 0 4px 6px rgba(0,0,0,0.1); }
  * { box-sizing: border-box; margin: 0; padding: 0; } 
  body { font-family: "Inter", "Noto Sans JP", sans-serif; background-color: var(--bg-body); color: var(--text-dark); line-height: 1.6; }
  
  /* HEADER */
  .header { background: var(--white); border-bottom: 1px solid var(--border); padding: 16px 32px; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 40; box-shadow: var(--shadow-sm); }
  .logo-area { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
  .logo-circle { width: 40px; height: 40px; background: var(--primary); color: var(--white); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; } 
  .site-title { font-weight: 700; font-size: 18px; color: var(--primary); }
  
  /* MAIN LAYOUT */
  .detail-wrapper { max-width: 1000px; margin: 30px auto; padding: 0 20px; }
  .card { background: var(--white); border-radius: 12px; box-shadow: var(--shadow-md); border: 1px solid var(--border); overflow: hidden; margin-bottom: 24px; }
  
  /* PROFILE */
  .prof-layout { display: flex; gap: 30px; padding: 30px; } .prof-photo { flex: 0 0 200px; } 
  .photo-frame { width: 100%; aspect-ratio: 3/4; background: #e2e8f0; border-radius: 8px; overflow: hidden; border: 1px dashed #cbd5e1; display: flex; align-items: center; justify-content: center; }
  .photo-frame img { width: 100%; height: 100%; object-fit: cover; }
  .profile-info { flex: 1; } 
  .candidate-name { font-size: 26px; font-weight: 800; color: var(--text-dark); } 
  .candidate-role { font-size: 14px; font-weight: 600; color: var(--accent); display: flex; align-items: center; gap: 8px; text-transform: uppercase; }
  .tag-container { display: flex; gap: 8px; margin-top: 12px; flex-wrap:wrap; } 
  .tag { font-size: 11px; padding: 4px 12px; border-radius: 50px; background: var(--primary-light); color: var(--primary); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; border: 1px solid #dbeafe; }
  
  /* Perbaikan CSS Kutipan */
.pr-block {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    padding: 20px 20px 20px 35px; /* Padding kiri diperbesar untuk ikon */
    margin-top: 24px;
    position: relative;
}

.pr-block::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 50px;
    color: #fcd34d;
    font-family: serif; /* Biar kutipnya cantik */
    line-height: 1;
    opacity: 0.5;
}

.pr-text {
    font-size: 13px;
    color: #78350f;
    font-style: italic;
    line-height: 1.6;
    position: relative; /* Supaya teks di atas ikon */
    z-index: 1;
}
  
  .btn-expand { background: var(--primary); color: #fff; border: none; padding: 12px 20px; border-radius: 6px; font-size: 13px; font-weight: 700; cursor: pointer; margin-top: 20px; width:100%; text-align:center; display: flex; align-items: center; justify-content: center; gap: 8px; transition: 0.2s; } 
  .btn-expand:hover { background: #0a365e; }
  
  /* VIDEO & ACADEMIC */
  .video-section { padding: 20px; } .sec-head { font-size: 16px; font-weight: 700; color: var(--primary); border-bottom: 1px solid #eee; padding-bottom: 10px; margin-bottom: 15px; display: flex; align-items: center; gap: 8px; }
  .video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; } 
  .video-card { border: 1px solid #eee; border-radius: 8px; overflow: hidden; }
  .video-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; } 
  .video-frame iframe { width: 100%; height: 100%; border: none; }
  .video-label { padding: 10px; font-size: 12px; font-weight: 700; text-align: center; background: #f9fafb; border-top: 1px solid #eee; }
  
  .acad-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; font-size: 13px; font-weight: 500; }
  .acad-item { display: flex; align-items: center; gap: 8px; color: #444; }

  /* DASHBOARD RAPORT */
  .stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 24px; }
  .stat-card { background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 20px; cursor: pointer; position: relative; overflow: hidden; transition: 0.2s; } 
  .stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
  .stat-card[data-type="A"] { border-top: 4px solid #3b82f6; } 
  .stat-card[data-type="B"] { border-top: 4px solid #10b981; } 
  .stat-card[data-type="C"] { border-top: 4px solid #8b5cf6; }
  .stat-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
  .stat-circle { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; background: #f3f4f6; color: #666; }
  .stat-score { font-size: 32px; font-weight: 800; color: var(--text-dark); line-height: 1; }
  .stat-title { font-size: 14px; font-weight: 700; color: var(--text-dark); }
  .stat-desc { font-size: 12px; color: var(--text-gray); }
  
  /* MODALS */
  .modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; } .modal.is-open { display: flex; } 
  .modal-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(3px); }
  .modal-content { position: relative; background: var(--white); width: 95%; max-width: 1000px; max-height: 90vh; border-radius: 12px; overflow-y: auto; padding: 0; display: flex; flex-direction: column; box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1); }
  .modal-header { padding: 15px 25px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; background: #fff; position: sticky; top: 0; z-index: 10; }
  .modal-title h3 { font-size: 16px; font-weight: 700; color: var(--primary); margin: 0; }
  .modal-title p { font-size: 12px; color: #666; margin: 0; }
  .modal-close-btn { background:none; border:none; font-size:24px; cursor:pointer; color:#999; transition: 0.2s; } .modal-close-btn:hover { color: #333; }
  .m-body { padding: 25px; overflow-y: auto; }

  .btn-pdf { background: #fff; border: 1px solid #ccc; padding: 6px 15px; font-size: 12px; border-radius: 6px; cursor: pointer; font-weight: 600; display: flex; align-items: center; gap: 6px; color: #333; text-decoration: none; }
  .btn-pdf:hover { background: #f9fafb; border-color: #999; }
  
  /* CV & RAPORT DETAIL CSS */
  .cv-header-card { display: flex; gap: 25px; margin-bottom: 25px; padding-bottom: 25px; border-bottom: 2px solid #f1f5f9; align-items: flex-start; }
  .bio-section { margin-bottom: 25px; } 
  .bio-header { background: var(--primary-light); color: var(--primary); padding: 8px 15px; font-weight: 700; font-size: 13px; border-left: 4px solid var(--primary); margin-bottom: 15px; text-transform: uppercase; letter-spacing: 0.5px; } 
  
  .bio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 30px; } 
  .bio-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px 20px; }
  .bio-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
  
  .b-item { border-bottom: 1px solid #f3f4f6; padding-bottom: 4px; margin-bottom: 4px; } 
  .b-lbl { display: block; font-size: 10px; color: #64748b; font-weight: 600; margin-bottom: 2px; text-transform: uppercase; } 
  .b-val { font-size: 13px; font-weight: 500; color:#111; }
  
  .timeline-item { position: relative; padding-left: 20px; margin-bottom: 15px; border-left: 2px solid #e2e8f0; } 
  .timeline-item::before { content: ''; position: absolute; left: -5px; top: 5px; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
  
  /* Raport Tables */
  .rap-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 30px; }
  .tbl { width: 100%; border-collapse: collapse; font-size: 12px; } 
  .tbl th { text-align: left; padding: 10px; background: #f8fafc; color: #555; border-bottom: 1px solid #ddd; font-weight: 700; } 
  .tbl td { padding: 10px; border-bottom: 1px solid #eee; vertical-align: middle; }
  .jp-sub { display: block; font-size: 10px; color: #888; margin-top: 2px; font-weight: normal; }
  
  .gray-box { background: #f9fafb; padding: 15px; border-radius: 8px; border: 1px solid #eee; margin-bottom: 20px; }
  .gray-title { font-size: 12px; font-weight: 700; color: var(--primary); margin-bottom: 10px; text-transform: uppercase; border-bottom: 1px dashed #ddd; padding-bottom: 5px; }

  /* Responsive */
  @media(max-width:768px) { 
    .prof-layout, .video-grid, .stats-grid, .bio-grid, .cv-header-card, .bio-grid-3, .bio-grid-4, .rap-layout { flex-direction: column; grid-template-columns: 1fr; } 
    .prof-photo { width: 150px; margin: 0 auto; } 
    .cv-header-card .photo-frame { width: 100px; margin: 0 auto; } 
    .cv-header-card { text-align: center; align-items: center; }
  }
  .print-hide {}
  
  .modal { 
    display: none; /* Default sembunyi */
    position: fixed; inset: 0; z-index: 9999; /* Paling atas */
    align-items: center; justify-content: center; 
    opacity: 0; transition: opacity 0.3s ease;
}
.modal.is-open { opacity: 1; } /* Class untuk trigger animasi */
/* Tambahkan ini di style.css atau di style head */
.modal-close-btn {
    background: transparent;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    z-index: 1000; /* Pastikan di atas elemen lain */
    position: relative; /* Biar z-index jalan */
}
.modal-close-btn:hover {
    color: #333;
}

/* --- CARD & LAYOUT --- */
  .card { background: #fff; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); border: 1px solid #e2e8f0; overflow: hidden; margin-bottom: 24px; }
  .detail-wrapper { max-width: 1000px; margin: 30px auto; padding: 0 20px; }
  
  /* --- PROFILE --- */
  .prof-layout { display: flex; gap: 30px; padding: 30px; align-items: flex-start; }
  .prof-photo { flex: 0 0 180px; }
  .photo-frame { width: 100%; aspect-ratio: 3/4; background: #f8fafc; border-radius: 10px; border: 1px solid #ddd; display: flex; align-items: center; justify-content: center; overflow: hidden; }
  .photo-frame img { width: 100%; height: 100%; object-fit: cover; }
  .prof-info { flex: 1; }
  .c-name { font-size: 26px; font-weight: 800; color: var(--text-dark); margin-bottom: 5px; line-height: 1.2; }
  .c-role { font-size: 14px; font-weight: 600; color: var(--accent); display: flex; align-items: center; gap: 8px; text-transform: uppercase; }
  .tag-container { display: flex; gap: 8px; margin-top: 15px; flex-wrap: wrap; }
  .tag { font-size: 12px; padding: 6px 14px; border-radius: 50px; background: var(--primary-light); color: var(--primary); font-weight: 600; border: 1px solid #dbeafe; display: inline-flex; align-items: center; gap: 6px; }
  .pr-block { background: #fffbeb; border: 1px solid #fcd34d; border-radius: 8px; padding: 15px 20px; margin-top: 20px; position: relative; }
  .pr-text { font-size: 13px; color: #78350f; font-style: italic; line-height: 1.6; }
  .btn-expand { background: var(--primary); color: #fff; border: none; padding: 12px 20px; border-radius: 6px; font-size: 13px; font-weight: 700; cursor: pointer; margin-top: 20px; width: 100%; text-align: center; display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; transition: 0.2s; }
  .btn-expand:hover { background: #0a365e; color: white; }

  /* --- VIDEO --- */
  .video-section { padding: 20px; }
  .sec-head { font-size: 16px; font-weight: 700; color: var(--primary); border-bottom: 1px solid #eee; padding-bottom: 10px; margin-bottom: 15px; display: flex; align-items: center; gap: 8px; }
  .video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; padding: 20px; }
  .video-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 8px; overflow: hidden; }
  .video-frame iframe { width: 100%; height: 100%; border: none; }
  .video-label { padding: 8px; font-size: 12px; font-weight: 700; text-align: center; border-top: 1px solid #eee; background: #f9fafb; }
  .locked-overlay { text-align: center; padding: 40px; background: #f8f9fa; border: 1px dashed #ccc; border-radius: 8px; color: #777; }
  .lock-icon { font-size: 32px; margin-bottom: 10px; color: #aaa; }

  /* --- STATS (ACADEMIC) --- */
  .acad-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; font-size: 13px; font-weight: 500; }
  .acad-item { display: flex; align-items: center; gap: 8px; color: #444; }

  /* --- DASHBOARD RAPORT --- */
  .dash-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 20px; }
  .d-card { background: #fff; border: 1px solid #eee; border-radius: 10px; padding: 20px; cursor: pointer; border-top: 4px solid var(--primary); transition: 0.2s; }
  .d-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
  .d-head { display: flex; justify-content: space-between; }
  .d-score { font-size: 32px; font-weight: 800; color: var(--text-dark); line-height: 1; }
  .d-title { font-size: 14px; font-weight: 700; color: var(--text-dark); }
  .d-desc { font-size: 12px; color: var(--text-gray); margin-top: 2px; }
  .btn-pdf { background: #fff; border: 1px solid #ccc; padding: 6px 15px; font-size: 12px; border-radius: 6px; cursor: pointer; font-weight: 600; display: flex; align-items: center; gap: 6px; color: #333; text-decoration: none; }
  .btn-pdf:hover { background: #f9fafb; border-color: #999; }

  /* --- MODAL BASE --- */
  .modal { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; }
  .modal.is-open { display: flex; }
  .overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(3px); }
  .m-content { position: relative; background: #fff; width: 95%; max-width: 1100px; max-height: 90vh; border-radius: 12px; overflow-y: auto; padding: 0; display: flex; flex-direction: column; box-shadow: 0 20px 40px rgba(0,0,0,0.2); }
  .m-header { padding: 15px 25px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; background: #fff; position: sticky; top: 0; z-index: 10; }
  .m-title h3 { margin: 0; font-size: 18px; color: var(--primary); font-weight: 700; } 
  .m-title p { margin: 0; font-size: 12px; color: #666; }
  .modal-close-btn { background:none; border:none; font-size:24px; cursor:pointer; color:#999; transition: 0.2s; } 
  .modal-close-btn:hover { color: #333; }
  .m-body { padding: 30px; }

  /* --- CV & RAPORT INSIDE MODAL --- */
  .cv-header-card { display: flex; gap: 25px; border-bottom: 2px solid #f1f5f9; padding-bottom: 25px; margin-bottom: 25px; align-items: flex-start; }
  .bio-header { background: var(--primary-light); color: var(--primary); padding: 8px 12px; font-weight: 700; font-size: 13px; border-left: 4px solid var(--primary); margin: 25px 0 15px 0; text-transform: uppercase; letter-spacing: 0.5px; }
  .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 30px; }
  .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 20px; }
  .grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .b-item { border-bottom: 1px solid #f3f4f6; padding-bottom: 5px; margin-bottom: 5px; }
  .b-lbl { display: block; font-size: 10px; color: #64748b; font-weight: 600; text-transform: uppercase; margin-bottom: 2px; }
  .b-val { font-size: 13px; font-weight: 500; color: #111; }
  .gray-box { background: #f9fafb; padding: 15px; border-radius: 8px; border: 1px solid #eee; margin-bottom: 20px; }
  .gray-title { font-size: 12px; font-weight: 700; color: var(--primary); margin-bottom: 10px; text-transform: uppercase; border-bottom: 1px dashed #ddd; padding-bottom: 5px; }
  .timeline-item { position: relative; padding-left: 20px; margin-bottom: 15px; border-left: 2px solid #e2e8f0; }
  .timeline-item::before { content: ''; position: absolute; left: -5px; top: 5px; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }

  /* Raport Table */
  .rap-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; }
  .tbl { width: 100%; border-collapse: collapse; font-size: 12px; }
  .tbl th { text-align: left; padding: 10px; background: #f8fafc; color: #555; border-bottom: 1px solid #ddd; font-weight: 700; }
  .tbl td { padding: 10px; border-bottom: 1px solid #eee; vertical-align: middle; }
  .jp-sub { display: block; font-size: 10px; color: #888; margin-top: 2px; font-weight: normal; }

  @media(max-width:768px){ 
    .prof-layout, .video-grid, .dash-grid, .grid-2, .grid-3, .grid-4, .rap-layout, .cv-header-card { flex-direction: column; grid-template-columns: 1fr; } 
    .prof-photo { margin: 0 auto; width: 150px; } 
    .cv-header-card .photo-frame { width: 100px; margin: 0 auto; } 
    .cv-header-card { text-align: center; align-items: center; }
  }
#pdfAppendices {
    /* Perintah untuk menyembunyikan lampiran dari tampilan web */
    display: none; 
}

/* (Opsional, pastikan print media query lama Anda masih ada di sini) */
@media print {
    #pdfAppendices {
        display: block !important;
        visibility: visible !important;
    }
}

/* =========================================================
   BAGIAN BAWAH STYLE.CSS (FIXED)
   Silakan timpa/replace bagian paling bawah file css dengan ini
   ========================================================= */

.header-logo {
    width: 280px; /* Ukuran default desktop */
    height: 60px;
    object-fit: contain;
    transition: all 0.3s ease;
}

/* --- 1. DEFINISI GLOBAL (UNTUK PC & UMUM) --- */
/* Kode ini WAJIB di luar @media agar terbaca di PC */

.acad-grid-4 {
    display: grid;
    /* PC: 4 Kolom sejajar */
    grid-template-columns: repeat(4, 1fr); 
    gap: 15px;
    margin-top: 15px;
}

.acad-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-top-width: 4px; /* Border warna di atas */
    border-top-style: solid;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    
    /* Layout Kartu: Flex Column (Atas Bawah) */
    display: flex;
    flex-direction: column; 
    gap: 12px; 
    height: 100%; 
}

.acad-title-group { margin-bottom: 5px; }

.acad-title {
    font-weight: 700;
    font-size: 13px;
    color: #64748b; 
    text-transform: uppercase; 
    letter-spacing: 0.5px;
}

.acad-subtitle {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 2px;
}

.acad-value {
    font-weight: 700;
    font-size: 16px;
    line-height: 1.4;
    text-align: left; 
    word-break: break-word; 
    flex-grow: 1; 
}

/* --- 2. MOBILE RESPONSIVE (Layar < 768px) --- */
/* Kode di sini menimpa kode di atas KHUSUS saat di HP */

@media screen and (max-width: 768px) {
    
    /* Header Adjustment */
    .header { padding: 10px 15px; height: auto; }
    .logo-area { flex: 1; }
    .header-logo { width: 160px; height: 40px; object-position: left; }

    /* Academic Grid: Paksa jadi 1 Kolom di HP */
    .acad-grid-4 {
        grid-template-columns: 1fr; 
    }
}