/* ============================================================
   POPUP PENGUMUMAN - Terinspirasi JOSS Jatim (navy + gold theme)
   Dipakai di: public/layouts/header.php (live) dan admin/pengumuman/form.php (preview)
   ============================================================ */

.pp-modal .modal-dialog { max-width: 620px; }
.pp-modal .modal-content {
  border: none; border-radius: 20px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

/* ---- HEADER: banner megaphone besar ala JOSS ---- */
.pp-header {
  position: relative;
  background: linear-gradient(135deg, #0a1f5c 0%, #16308a 55%, #0a1f5c 100%);
  padding: 2.25rem 2rem 2.75rem;
  overflow: hidden;
}
.pp-header::before {
  /* dekorasi titik-titik ala JOSS */
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.14) 1.5px, transparent 1.5px);
  background-size: 16px 16px;
  opacity: 0.5;
}
.pp-header-inner { position: relative; z-index: 1; display: flex; align-items: center; gap: 1rem; }
.pp-megaphone {
  width: 58px; height: 58px; flex-shrink: 0;
  background: rgba(255,255,255,0.12); border: 2px solid rgba(245,166,35,0.6);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #f5a623; font-size: 1.6rem;
}
.pp-title-wrap { flex: 1; min-width: 0; }
.pp-badge-label {
  display: inline-block; background: #f5a623; color: #0a1f5c;
  font-weight: 800; font-size: 1.15rem; letter-spacing: 1px;
  padding: 0.35rem 1.1rem; border-radius: 8px; text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.pp-header h5 {
  color: #fff; font-weight: 700; font-size: 1.05rem; margin: 0.6rem 0 0.15rem;
  line-height: 1.35;
}
.pp-header .pp-date { color: rgba(255,255,255,0.65); font-size: 0.78rem; }
.pp-close-btn {
  position: absolute; top: 1rem; right: 1rem; z-index: 2;
  width: 32px; height: 32px; border-radius: 50%; border: none;
  background: rgba(255,255,255,0.15); color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.pp-close-btn:hover { background: rgba(255,255,255,0.3); }

/* ---- BODY: konten rich-text dari admin ---- */
.pp-body { padding: 1.75rem 2rem; max-height: 55vh; overflow-y: auto; }
.pp-content { color: #2a2a3a; font-size: 0.96rem; line-height: 1.85; }
.pp-content p { margin-bottom: 0.9rem; }
.pp-content strong, .pp-content b { color: #0a1f5c; }
.pp-content h1, .pp-content h2, .pp-content h3, .pp-content h4 { color: #0a1f5c; font-weight: 700; margin: 1rem 0 0.6rem; }
.pp-content ul, .pp-content ol { padding-left: 1.4rem; margin-bottom: 0.9rem; }
.pp-content a { color: #16308a; font-weight: 600; }

/* Numbered highlight box - dipicu otomatis untuk <ol> di dalam konten */
.pp-content ol { list-style: none; padding-left: 0; counter-reset: pp-counter; }
.pp-content ol > li {
  counter-increment: pp-counter;
  position: relative; padding: 0.85rem 1rem 0.85rem 3.4rem;
  background: #f4f7ff; border: 1px solid #dde6ff; border-radius: 10px;
  margin-bottom: 0.7rem; min-height: 2.2rem;
}
.pp-content ol > li::before {
  content: counter(pp-counter, decimal-leading-zero);
  position: absolute; left: 0.7rem; top: 50%; transform: translateY(-50%);
  background: #0a1f5c; color: #f5a623; font-weight: 800; font-size: 0.85rem;
  width: 1.9rem; height: 1.9rem; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}

.pp-attachment {
  margin-top: 1rem; padding: 0.85rem 1rem; border-radius: 10px;
  background: #f0f4ff; border: 1px solid #c7d7ff;
}

/* ---- FOOTER: kontak bantuan ala JOSS ---- */
.pp-help-box {
  margin: 0 2rem 1.5rem; padding: 1rem 1.25rem; border-radius: 12px;
  background: linear-gradient(135deg, #0a1f5c, #16308a);
  color: #fff; display: flex; align-items: center; gap: 0.9rem;
}
.pp-help-icon {
  width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%;
  background: rgba(245,166,35,0.2); border: 1.5px solid #f5a623;
  display: flex; align-items: center; justify-content: center; color: #f5a623;
}
.pp-help-box .pp-help-text { font-size: 0.85rem; line-height: 1.5; }
.pp-help-box .pp-help-text strong { color: #f5a623; display: block; font-size: 0.8rem; }

.pp-footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; padding: 0 2rem 1.75rem;
}
.pp-footer .form-check-label { font-size: 0.82rem; color: #6c757d; }
.pp-btn-more {
  background: #f5a623; color: #0a1f5c; border: none; font-weight: 700;
  padding: 0.5rem 1.3rem; border-radius: 8px; font-size: 0.85rem;
  display: inline-flex; align-items: center; gap: 0.4rem; text-decoration: none;
}
.pp-btn-more:hover { background: #e0951a; color: #0a1f5c; }
.pp-btn-close-text {
  background: #eef1f8; color: #333; border: none; font-weight: 600;
  padding: 0.5rem 1.3rem; border-radius: 8px; font-size: 0.85rem;
}

@media (max-width: 576px) {
  .pp-header { padding: 1.75rem 1.25rem 2.25rem; }
  .pp-body { padding: 1.25rem; }
  .pp-help-box { margin: 0 1.25rem 1.25rem; flex-direction: column; text-align: center; }
  .pp-footer { padding: 0 1.25rem 1.25rem; justify-content: center; }
}
