/* =========================
   Title : Custom Theme for KEPK
   Author : Ariansyah, S.Kom.
   Date : 27 August 2025
   ========================= */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* Variabel warna */
:root {
    --primary-color: #1976d2;   /* Biru Material */
    --accent-color: #ff9800;    /* Oranye Material */
    --bg-light: #f9fafc;
    --text-dark: #333;
}

/* Font Global */
body {
    background-color: var(--bg-light);
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Header */
.pkp_site_name {
    font-weight: 700;
    letter-spacing: 0.5px;
    font-size: 1.4rem;
}

#kepkHead {
    font-size: 35px;
    text-shadow: 0 4px 20px rgba(0, 0,0, 0.15);
    position: sticky;
    animation: fadeSlideDown 1s ease-out;
}
#kepkDesc {
    font-size: 27px;
    text-shadow: 0 4px 20px rgba(0, 0,0, 0.35);
    margin-top: -1px;
    animation: fadeSlideUp 1s ease-out;
}

@keyframes fadeSlideUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeSlideDown {
  0% {
    opacity: 0;
    transform: translateY(-30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

#kepkSubmit {
   position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-size: 1.25rem;
  font-weight: bold;
  border-radius: 1rem;
  background: linear-gradient(45deg, #38bdf8, #0ea5e9);
  color: #ffffff; /* teks terang */
  border: none;
  cursor: pointer;
  overflow: visible;
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.5);
  z-index: 1;
}

#kepkSubmit::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 100%;
  height: 100%;
  border: 2px solid rgba(14, 165, 233, 0.8);
  border-radius: 1rem;
  transform: translate(-50%, -50%) scale(1);
  opacity: 0.8;
  pointer-events: none;
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.4);
  animation: pulseRing 2s ease-out infinite;
  z-index: -1;
}

#kepkSubmit::before {
    content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 100%;
  height: 100%;
  border: 2px solid rgba(14, 165, 233, 0.5);
  border-radius: 1rem;
  transform: translate(-50%, -50%) scale(1);
  opacity: 0.5;
  pointer-events: none;
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.3);
  animation: pulseRing 2s ease-out infinite;
  animation-delay: 2s;
  z-index: -1;
}
@keyframes pulseRing {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.3);
    opacity: 0;
  }
}

/* Icon styling */
#kepkIconSubmit {
  display: flex;
  align-items: center;
}

#kepkTextSubmit {
  display: inline-block;
}

.pkp_navigation_primary a {
    font-weight: 500;
    text-transform: normal;
    transition: color 0.3s ease;
}

.pkp_navigation_primary a:hover {
    color: var(--accent-color);
}

/* Tombol */
.pkp_button,
.pkp_page_actions a,
button {
/*    background-color: var(--primary-color);*/
    color: white !important;
    border-radius: 30px;
    padding: 8px 20px;
    font-weight: 600;
    text-transform: normal;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-family: 'Poppins', sans-serif;
}

.pkp_button:hover,
.pkp_page_actions a:hover,
button:hover {
    background-color: #f0f0f0;
    transform: translateY(-1px);
}

/* Kartu / Article Summary */
.obj_article_summary,
.pkp_block {
    background: white;
    border-radius: 14px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    padding: 18px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.obj_article_summary:hover,
.pkp_block:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 14px rgba(0,0,0,0.15);
}

/* Judul Artikel */
.obj_article_summary .title a {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
}

.obj_article_summary .title a:hover {
    color: var(--accent-color);
}

/* Footer */
.pkp_footer_content {
    background: var(--primary-color);
    color: white;
    padding: 22px;
    text-align: center;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
}

/* ========== Dokumen Pengajuan Kaji Etik ========== */

.download-card {
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  box-shadow: 0 6px 20px -6px rgba(0,0,0,0.12);
  overflow: hidden;
/*  font-family: "Segoe UI", Arial, sans-serif;*/
  transition: all 0.3s ease;
  margin-bottom: 16px;
}

/* Header */
.download-card-header {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  padding: 16px 20px;
  font-size: 1.05rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}
.download-card-header::after {
  content: "▾";
  font-size: 1rem;
  transition: transform 0.25s ease;
}
.download-card.collapsed .download-card-header::after {
  transform: rotate(-90deg);
}

/* Body collapsed */
.download-card-body {
  max-height: 800px;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.download-card.collapsed .download-card-body {
  max-height: 0;
}

/* List */
.download-card-body ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.download-card-body li {
  border-bottom: 1px solid #f1f5f9;
}
.download-card-body li:last-child {
  border-bottom: none;
}

/* Item link */
.download-card-body a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  text-decoration: none;
  color: #374151;
  transition: background 0.2s ease, transform 0.15s ease;
}
.download-card-body a:hover {
  background: #f9fafb;
  transform: translateX(4px);
}

.download-card li a {
  display: flex;
  align-items: center;
}

.download-card li a::before {
  content: "";
  display: inline-block;
  width: 30px;
  height: 30px;
  margin-right: 8px;
  background: url("../../images/docs.svg") no-repeat center/contain;
}

/* dot in front title */
.download-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 4px;
  flex-shrink: 0;
}

/* dot collor by documents type */
/*.is-pdf .download-dot { background: #ef4444; }*/
.is-doc .download-dot { background: #2563eb; }
/*.is-xls .download-dot { background: #16a34a; }
.is-ppt .download-dot { background: #ea580c; }
.is-zip .download-dot { background: #f59e0b; }
*/

/* Text */
.download-text {
  display: flex;
  flex-direction: column;
}
.download-title {
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.0;
}
.download-meta {
  font-size: 0.8rem;
  color: #6b7280;
}
/*End Dokumen Pengajuan Kaji Etik */
