/* ==========================================================================
   CERTIFICATIONS & PRESTASI STYLES (certifications.css)
   ========================================================================== */

#certifications .swiper {
  padding-bottom: 48px;
}

.cert-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
  cursor: pointer;
  position: relative;
}

.cert-card:hover {
  border-color: rgba(0, 210, 255, 0.5);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45), 0 0 20px rgba(0, 210, 255, 0.2);
  transform: translateY(-5px);
}

.cert-thumb {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #0f1422;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
}

.cert-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cert-card:hover .cert-thumb img {
  transform: scale(1.06);
}

.cert-thumb-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(10, 15, 29, 0.85);
  backdrop-filter: blur(6px);
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(0, 210, 255, 0.3);
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 2;
  transition: all 0.2s ease;
}

.cert-card:hover .cert-thumb-badge {
  background: var(--accent);
  color: #0b0f19;
  border-color: var(--accent);
}

.cert-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  font-size: 2.8rem;
  background: linear-gradient(135deg, rgba(20, 26, 45, 0.8), rgba(12, 16, 28, 0.95));
}

.cert-thumb-placeholder span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.cert-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.cert-issuer {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.cert-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1.4;
}

.cert-date {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.cert-id {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 8px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Swiper Controls override */
.swiper-pagination-bullet {
  background: var(--text-muted);
}
.swiper-pagination-bullet-active {
  background: var(--accent);
}
.swiper-button-next, .swiper-button-prev {
  color: var(--accent) !important;
  width: 38px !important;
  height: 38px !important;
}
.swiper-button-next::after, .swiper-button-prev::after {
  font-size: 1rem !important;
}

/* ==========================================================================
   RICH CERTIFICATE & PIAGAM MODAL (cert-modal)
   ========================================================================== */
.cert-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(6, 10, 20, 0.94);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.cert-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.cert-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 880px;
  max-height: 92vh;
  background: #0d1322;
  border: 1px solid rgba(0, 210, 255, 0.3);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75), 0 0 35px rgba(0, 210, 255, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: certModalScaleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes certModalScaleIn {
  from {
    transform: scale(0.95) translateY(12px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.cert-modal-header {
  padding: 16px 22px;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
}

.cert-modal-issuer-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(0, 210, 255, 0.1);
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(0, 210, 255, 0.25);
}

.cert-modal-close {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cert-modal-close:hover {
  background: rgba(244, 63, 94, 0.2);
  border-color: #f43f5e;
  color: #f43f5e;
  transform: rotate(90deg);
}

.cert-modal-body {
  overflow-y: auto;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1;
}

.cert-modal-viewer {
  width: 100%;
  min-height: 280px;
  max-height: 54vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #070a13;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  position: relative;
}

.cert-modal-viewer img {
  max-width: 100%;
  max-height: 52vh;
  object-fit: contain;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  border-radius: 8px;
}

.cert-modal-viewer iframe {
  width: 100%;
  height: 52vh;
  border: none;
  background: #fff;
  border-radius: 8px;
}

.cert-modal-placeholder-dossier {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  gap: 12px;
}

.cert-modal-placeholder-icon {
  font-size: 3.5rem;
  filter: drop-shadow(0 0 16px rgba(255, 183, 3, 0.4));
}

.cert-modal-placeholder-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 99px;
  border: 1px solid rgba(34, 197, 94, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cert-modal-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cert-modal-title {
  font-size: 1.28rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
}

.cert-modal-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-size: 0.82rem;
  color: #94a3b8;
}

.cert-modal-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cert-modal-desc {
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.6;
  background: rgba(255, 255, 255, 0.03);
  padding: 14px 18px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.cert-modal-footer {
  padding: 14px 22px;
  background: rgba(15, 23, 42, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
}

.cert-modal-btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 8px;
  background: linear-gradient(135deg, #00d2ff, #0088cc);
  color: #0b0f19 !important;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.cert-modal-btn-download:hover {
  filter: brightness(1.15);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 210, 255, 0.35);
}

.cert-modal-btn-close {
  padding: 9px 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cert-modal-btn-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

