/* Press24 News Pro — Step 2 Pro Modules CSS (Video Gallery, Press ID, Saradesh Filter) */

/* Video Gallery */
.p24-video-gallery-sec {
  background: linear-gradient(135deg, #0B1120, #111827);
  border-radius: 14px;
  padding: 24px 22px;
  margin-bottom: 30px;
  color: #FFFFFF;
}
.p24-vg-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 20px;
  align-items: start;
}
.p24-vg-iframe-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #000000;
}
.p24-vg-iframe-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.p24-vg-active-title {
  margin: 12px 0 0;
  font-size: 21px;
  line-height: 1.35;
  color: #F8FAFC;
}
.p24-vg-playlist {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 430px;
  overflow-y: auto;
}
.p24-vg-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  text-align: left;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 8px;
  color: #E2E8F0;
  cursor: pointer;
  font-family: var(--p24-font);
  transition: all 0.18s ease;
}
.p24-vg-item:hover,
.p24-vg-item.active {
  background: rgba(5, 150, 105, 0.22);
  border-color: #10B981;
}
.p24-vg-thumb {
  width: 112px;
  height: 68px;
  border-radius: 7px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  background: #020617;
}
.p24-vg-thumb img { width: 100%; height: 100%; object-fit: cover; }
.p24-vg-play-ic {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.9);
  color: #fff;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.p24-vg-dur {
  position: absolute;
  right: 4px;
  bottom: 4px;
  background: rgba(0,0,0,0.8);
  color: #fff;
  font-size: 10.5px;
  padding: 1px 5px;
  border-radius: 4px;
}
.p24-vg-info { display: flex; flex-direction: column; gap: 4px; }
.p24-vg-info strong { font-size: 15px; line-height: 1.32; color: #FFFFFF; }
.p24-vg-info small { font-size: 12px; color: #94A3B8; }

/* Saradesh Filter Bar */
.p24-saradesh-box {
  background: var(--p24-surface);
  border: 1.5px solid var(--p24-border);
  border-left: 5px solid var(--p24-primary);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 26px;
  box-shadow: var(--p24-shadow);
}
.p24-sd-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.p24-sd-head h3 { margin: 0; font-size: 20px; color: var(--p24-text); }
.p24-sd-head span { font-size: 14px; color: var(--p24-text-muted); }
.p24-sd-controls {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 12px;
}
.p24-sd-select {
  height: 42px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1.5px solid var(--p24-border);
  background: var(--p24-bg);
  color: var(--p24-text);
  font-family: var(--p24-font);
  font-size: 15.5px;
  font-weight: 700;
}
.p24-sd-btn {
  height: 42px;
  padding: 0 22px;
  border-radius: 8px;
  border: 0;
  background: var(--p24-primary);
  color: #FFFFFF;
  font-family: var(--p24-font);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.p24-sd-btn:hover { opacity: 0.92; }

/* Reporters Directory & Digital Press ID Card */
.p24-rep-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.p24-rep-card {
  background: var(--p24-surface);
  border: 1px solid var(--p24-border);
  border-radius: 12px;
  padding: 18px 14px;
  text-align: center;
  box-shadow: var(--p24-shadow);
}
.p24-rep-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 10px;
  border: 3px solid var(--p24-primary);
}
.p24-rep-avatar img { width: 100%; height: 100%; object-fit: cover; }
.p24-rep-ph { width: 100%; height: 100%; display:flex; align-items:center; justify-content:center; font-size:40px; background:#E2E8F0; }
.p24-rep-card h3 { margin: 0 0 4px; font-size: 19px; }
.p24-rep-desig { margin: 0 0 4px; color: var(--p24-primary); font-weight: 700; font-size: 15px; }
.p24-rep-area, .p24-rep-id { margin: 0 0 6px; font-size: 14px; color: var(--p24-text-muted); }

.p24-id-page-wrap { max-width: 460px; margin: 0 auto; text-align: center; }
.p24-verify-banner {
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 18px;
  font-size: 15px;
  font-weight: 700;
}
.p24-verify-banner.is-valid { background: #DCFCE7; color: #166534; border: 1.5px solid #86EFAC; }
.p24-verify-banner.is-invalid { background: #FEE2E2; color: #991B1B; border: 1.5px solid #FCA5A5; }

.p24-id-card-box {
  background: #FFFFFF;
  color: #0F172A;
  border: 2px solid #059669;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
  margin-bottom: 18px;
}
.p24-id-head {
  background: linear-gradient(135deg, #064E3B, #059669);
  padding: 16px;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.p24-id-logo { max-height: 46px; background: #fff; padding: 4px 10px; border-radius: 8px; }
.p24-id-brand { font-size: 24px; font-weight: 800; }
.p24-id-press-pill {
  background: #DC2626;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 3px 14px;
  border-radius: 999px;
}
.p24-id-photo-wrap {
  width: 124px;
  height: 124px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #059669;
  margin: 18px auto 10px;
  background: #F1F5F9;
}
.p24-id-photo-wrap img { width: 100%; height: 100%; object-fit: cover; }
.p24-id-name { margin: 0 0 4px; font-size: 25px; color: #0F172A; }
.p24-id-desig { font-size: 16px; font-weight: 800; color: #059669; margin-bottom: 14px; }
.p24-id-details {
  text-align: left;
  padding: 12px 24px;
  border-top: 1px dashed #CBD5E1;
  border-bottom: 1px dashed #CBD5E1;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 15.5px;
}
.p24-id-details > div { display: flex; justify-content: space-between; gap: 10px; }
.p24-id-details span { color: #64748B; }
.p24-id-qr-area {
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: #F8FAFC;
}
.p24-id-qr-area img { border: 2px solid #E2E8F0; border-radius: 8px; padding: 3px; background: #fff; }
.p24-id-sign {
  margin-top: 22px;
  padding-top: 6px;
  border-top: 1.5px solid #0F172A;
  font-weight: 800;
  font-size: 14px;
}

@media (max-width: 900px) {
  .p24-vg-grid { grid-template-columns: 1fr; }
  .p24-sd-controls { grid-template-columns: 1fr; }
  .p24-rep-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .p24-rep-grid { grid-template-columns: 1fr; }
}
@media print {
  .p24-verify-banner, .p24-id-actions, .bdixroot-credit-wrap { display: none !important; }
}


/* Sticky Navbar Exact Top Fix (Overrides cached .admin-bar gap) */
.p24-nav-wrap.is-sticky,
.admin-bar .p24-nav-wrap.is-sticky {
  top: var(--p24-sticky-top, 0px) !important;
  z-index: 999 !important;
}

/* Video Platform Badge & Fallback Thumb */
.p24-vg-plat-badge {
  background: rgba(16, 185, 129, 0.22);
  border: 1px solid #34D399;
  color: #6EE7B7;
  font-size: 12px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.p24-vg-thumb-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1E293B, #0F172A);
  color: #94A3B8;
  font-size: 11px;
  font-weight: 800;
}
