/* ==========================================================================
   ALUR AKSES E-JOURNAL PERPUSNAS - MODERN HORIZONTAL PROCESS FLOW
   Institut Kesehatan Karsa Husada Garut
   Desain Modern & Profesional Institusi Akademik
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Quick Stats Strip (Di Bawah Hero Banner)
   -------------------------------------------------------------------------- */
.akp-stats-bar {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.05);
  position: relative;
  z-index: 10;
}

.akp-stats-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 0.5rem;
  gap: 1rem;
}

.akp-stat-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex: 1;
}

.akp-stat-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(9, 168, 158, 0.1);
  color: #09a89e;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.akp-stat-item:hover .akp-stat-icon-circle {
  background: #09a89e;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(9, 168, 158, 0.3);
}

.akp-stat-text {
  display: flex;
  flex-direction: column;
}

.akp-stat-val {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
}

.akp-stat-sub {
  font-size: 0.76rem;
  color: #64748b;
  font-weight: 500;
}

.akp-stat-divider {
  width: 1px;
  height: 36px;
  background: #e2e8f0;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   2. Main Section Wrapper
   -------------------------------------------------------------------------- */
.akp-main-section {
  padding: 4.5rem 0 6rem;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  position: relative;
  overflow: hidden;
}

/* Institutional Intro Header */
.akp-intro-header {
  text-align: center;
  max-width: 840px;
  margin: 0 auto 3.5rem;
  position: relative;
}

.akp-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  background: rgba(9, 168, 158, 0.1);
  color: #09a89e;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  border: 1px solid rgba(9, 168, 158, 0.25);
}

.akp-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #09a89e;
  box-shadow: 0 0 0 0 rgba(9, 168, 158, 0.7);
  animation: akpPulse 2s infinite;
}

@keyframes akpPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(9, 168, 158, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(9, 168, 158, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(9, 168, 158, 0);
  }
}

.akp-intro-title {
  font-size: 2.35rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.akp-intro-subtitle {
  font-size: 1.05rem;
  color: #64748b;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.akp-header-notice {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #09a89e;
  border-radius: 12px;
  padding: 1rem 1.4rem;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  text-align: left;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  margin-top: 1.5rem;
}

.akp-notice-icon {
  color: #09a89e;
  flex-shrink: 0;
  margin-top: 2px;
}

.akp-notice-text {
  font-size: 0.88rem;
  color: #334155;
  line-height: 1.55;
}

.akp-notice-text strong {
  color: #0f172a;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   3. Horizontal Process Flow Container
   -------------------------------------------------------------------------- */
.akp-process-wrapper {
  margin-bottom: 4.5rem;
  position: relative;
}

/* Milestone Roadmap Track */
.akp-roadmap-track {
  position: relative;
  max-width: 900px;
  margin: 0 auto 2.5rem;
  padding: 0 1rem;
}

.akp-roadmap-line {
  position: absolute;
  top: 18px;
  left: 5%;
  right: 5%;
  height: 3px;
  background: #e2e8f0;
  z-index: 1;
}

.akp-roadmap-points {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.akp-roadmap-point {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
}

.akp-point-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid #09a89e;
  color: #09a89e;
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(9, 168, 158, 0.2);
  transition: all 0.3s ease;
}

.akp-roadmap-point:hover .akp-point-circle {
  background: #09a89e;
  color: #ffffff;
  transform: scale(1.15);
}

.akp-point-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* --------------------------------------------------------------------------
   4. Horizontal Cards Grid & Floating Chevrons
   -------------------------------------------------------------------------- */
.akp-horizontal-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  position: relative;
  align-items: stretch;
}

.akp-col-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.akp-col-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px -4px rgba(15, 23, 42, 0.12);
  border-color: #cbd5e1;
}

/* Card Media / Screenshot Frame */
.akp-card-media {
  position: relative;
  width: 100%;
  height: 220px;
  background: #f8fafc;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #e2e8f0;
}

.akp-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.akp-card-media:hover .akp-card-img {
  transform: scale(1.05);
}

.akp-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #94a3b8;
  background: #f1f5f9;
}

.akp-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.akp-card-media:hover .akp-card-overlay {
  opacity: 1;
}

.akp-zoom-badge {
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
  padding: 0.45rem 0.95rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(6px);
  transition: transform 0.3s ease;
}

.akp-card-media:hover .akp-zoom-badge {
  transform: translateY(0);
}

.akp-card-step-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(6px);
  color: #ffffff;
  padding: 0.3rem 0.65rem;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.akp-card-step-badge strong {
  color: #09a89e;
  font-size: 0.82rem;
}

/* Card Media Multi / Dual Screenshot Grid */
.akp-card-media-multi {
  position: relative;
  width: 100%;
  height: 220px;
  background: #0f172a;
  overflow: hidden;
  border-bottom: 1px solid #e2e8f0;
}

.akp-media-grid-dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  padding: 5px;
}

.akp-sub-media {
  position: relative;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: #1e293b;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.akp-sub-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.akp-sub-media:hover .akp-sub-img {
  transform: scale(1.08);
}

.akp-sub-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.akp-sub-media:hover .akp-sub-overlay {
  opacity: 1;
}

.akp-sub-zoom-badge {
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
  padding: 0.35rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transform: translateY(4px);
  transition: transform 0.25s ease;
}

.akp-sub-media:hover .akp-sub-zoom-badge {
  transform: translateY(0);
}

.akp-sub-caption-tag {
  position: absolute;
  bottom: 6px;
  left: 6px;
  right: 6px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  color: #f1f5f9;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 6px;
  border-radius: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border: 1px solid rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.akp-media-count-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(6px);
  color: #2dd4bf;
  border: 1px solid rgba(45, 212, 191, 0.35);
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

/* Card Content Area */
.akp-card-content {
  padding: 1.65rem 1.45rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.akp-card-top-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.akp-card-num {
  font-size: 1.85rem;
  font-weight: 900;
  color: #e2e8f0;
  line-height: 1;
}

.akp-card-pill {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  background: rgba(9, 168, 158, 0.1);
  color: #09a89e;
}

.akp-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.akp-card-desc {
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 1.15rem;
}

/* Sub-poin Checklist */
.akp-card-sublist {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.akp-card-sublist li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.84rem;
  color: #334155;
  line-height: 1.5;
}

.akp-sublist-icon {
  color: #09a89e;
  flex-shrink: 0;
  margin-top: 3px;
}

.akp-sublist-link {
  color: #0284c7;
  text-decoration: underline;
  word-break: break-all;
  font-weight: 600;
  transition: color 0.2s ease;
}

.akp-sublist-link:hover {
  color: #0369a1;
}

/* Card Button Link */
.akp-card-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 1.15rem;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, #09a89e 0%, #078f86 100%);
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(9, 168, 158, 0.25);
}

.akp-card-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(9, 168, 158, 0.35);
  color: #ffffff;
}

.akp-card-action-btn svg {
  transition: transform 0.2s ease;
}

.akp-card-action-btn:hover svg {
  transform: translateX(3px);
}

/* Card Note / Ketentuan */
.akp-card-note {
  margin-top: auto;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  padding: 0.75rem 0.95rem;
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}

.akp-card-note-icon {
  color: #09a89e;
  flex-shrink: 0;
  margin-top: 2px;
}

.akp-card-note-text {
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.45;
}

.akp-card-note-label {
  font-weight: 700;
  color: #334155;
  margin-right: 0.25rem;
}

/* --------------------------------------------------------------------------
   5. Scientific Databases Directory Section
   -------------------------------------------------------------------------- */
.akp-db-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 2.75rem 2.25rem;
  margin-bottom: 4rem;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
}

.akp-db-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #f1f5f9;
}

.akp-db-tag {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #09a89e;
  margin-bottom: 0.35rem;
  display: block;
}

.akp-db-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.akp-db-desc {
  font-size: 0.92rem;
  color: #64748b;
  max-width: 680px;
  line-height: 1.55;
}

.akp-db-badge-count {
  background: rgba(9, 168, 158, 0.1);
  color: #09a89e;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.akp-db-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.akp-db-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.akp-db-card:hover {
  background: #ffffff;
  transform: translateY(-3px);
  border-color: #09a89e;
  box-shadow: 0 10px 24px -4px rgba(9, 168, 158, 0.15);
}

.akp-db-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.akp-db-tag-pill {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  background: #e2e8f0;
  color: #475569;
}

.akp-db-tag-pill.kesehatan {
  background: rgba(9, 168, 158, 0.15);
  color: #078f86;
}

.akp-db-tag-pill.farmasi {
  background: rgba(217, 119, 6, 0.15);
  color: #b45309;
}

.akp-db-tag-pill.multidisiplin {
  background: rgba(2, 132, 199, 0.15);
  color: #0369a1;
}

.akp-db-card-title {
  font-size: 1.02rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.35rem;
  line-height: 1.35;
}

.akp-db-card-desc {
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.45;
  margin-bottom: 0.85rem;
}

.akp-db-card-footer {
  margin-top: auto;
  font-size: 0.74rem;
  font-weight: 600;
  color: #09a89e;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* --------------------------------------------------------------------------
   6. Official Infographic Poster Section
   -------------------------------------------------------------------------- */
.akp-poster-wrap {
  background: linear-gradient(135deg, #09373b 0%, #0d5c58 100%);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 3rem;
  margin-bottom: 4.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 36px -8px rgba(9, 55, 59, 0.35);
}

.akp-poster-wrap::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(9, 168, 158, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.akp-poster-text {
  flex: 1.2;
}

.akp-poster-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  color: #5eead4;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.akp-poster-title {
  font-size: 1.95rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 0.85rem;
  color: #ffffff;
}

.akp-poster-desc {
  font-size: 0.95rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.akp-poster-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.akp-poster-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  color: #0d5c58;
  padding: 0.75rem 1.45rem;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

.akp-poster-btn-primary:hover {
  background: #f1f5f9;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.akp-poster-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.75rem 1.45rem;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
}

.akp-poster-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  color: #ffffff;
}

.akp-poster-preview-card {
  flex: 0.8;
  max-width: 320px;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  border: 3px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.4s ease;
}

.akp-poster-preview-card:hover {
  transform: scale(1.03) rotate(0.5deg);
}

.akp-poster-preview-card img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.akp-poster-preview-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.akp-poster-preview-card:hover .akp-poster-preview-overlay {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   7. Quick Action Link Cards
   -------------------------------------------------------------------------- */
.akp-quick-actions-wrap {
  margin-top: 1rem;
}

.akp-qa-heading {
  text-align: center;
  margin-bottom: 2rem;
}

.akp-qa-label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #09a89e;
  display: block;
  margin-bottom: 0.35rem;
}

.akp-qa-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #0f172a;
}

.akp-qa-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.akp-qa-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.6rem;
  text-decoration: none;
  display: flex;
  align-items: flex-start;
  gap: 1.15rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.akp-qa-card:hover {
  transform: translateY(-4px);
  border-color: #09a89e;
  box-shadow: 0 12px 24px -4px rgba(9, 168, 158, 0.15);
}

.akp-qa-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.akp-qa-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.akp-qa-card-desc {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 0.85rem;
}

.akp-qa-card-link {
  font-size: 0.78rem;
  font-weight: 700;
  color: #09a89e;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap 0.2s ease;
}

.akp-qa-card:hover .akp-qa-card-link {
  gap: 0.55rem;
}

/* --------------------------------------------------------------------------
   8. Lightbox Modal Dialog
   -------------------------------------------------------------------------- */
.akp-lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.akp-lightbox-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.akp-lightbox-dialog {
  position: relative;
  max-width: 92vw;
  max-height: 92vh;
  background: #0f172a;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  transform: scale(0.94);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.akp-lightbox-overlay.is-open .akp-lightbox-dialog {
  transform: scale(1);
}

.akp-lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 25;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.akp-lightbox-close:hover {
  background: #ef4444;
  border-color: #ef4444;
  transform: scale(1.08);
}

/* Lightbox Gallery Navigation Arrows */
.akp-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.akp-lightbox-nav:hover {
  background: #09a89e;
  border-color: #09a89e;
  color: #ffffff;
  transform: translateY(-50%) scale(1.12);
  box-shadow: 0 10px 28px rgba(9, 168, 158, 0.45);
}

.akp-lightbox-nav:active {
  transform: translateY(-50%) scale(0.96);
}

.akp-lightbox-prev {
  left: 16px;
}

.akp-lightbox-next {
  right: 16px;
}

.akp-lightbox-nav.is-hidden {
  display: none !important;
}

/* Lightbox Counter Indicator Pill */
.akp-lightbox-counter {
  position: absolute;
  top: 14px;
  left: 18px;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #2dd4bf;
  font-size: 0.78rem;
  font-weight: 800;
  z-index: 20;
  backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  letter-spacing: 0.5px;
}

.akp-lightbox-counter.is-hidden {
  display: none !important;
}

.akp-lightbox-image-wrap {
  position: relative;
  max-height: calc(92vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #020617;
  overflow: auto;
  user-select: none;
}

.akp-lightbox-image-wrap img {
  max-width: 100%;
  max-height: calc(92vh - 80px);
  object-fit: contain;
  display: block;
  transition: opacity 0.25s ease;
}

.akp-lightbox-caption {
  padding: 0.9rem 1.5rem;
  background: #0f172a;
  border-top: 1px solid #1e293b;
  text-align: center;
}

.akp-lightbox-title {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
}

.akp-lightbox-subcaption {
  color: #94a3b8;
  font-size: 0.8rem;
  margin-top: 3px;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   9. Responsive Design
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .akp-horizontal-flow {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .akp-db-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .akp-poster-wrap {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
    padding: 2.5rem 1.75rem;
  }
  .akp-poster-actions {
    justify-content: center;
  }
  .akp-qa-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .akp-stats-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }
  .akp-stat-divider {
    display: none;
  }
  .akp-db-grid {
    grid-template-columns: 1fr;
  }
  .akp-db-header {
    flex-direction: column;
    align-items: stretch;
  }
}
