/* ═══ Zero-Day Vulnerabilities Page — extends pg-* base classes ═══ */

.zdv-page .pg-hero-content h1 {
  margin-bottom: 32px;
}

/* ── Shared workflow (side-by-side layout) ── */
.zdv-workflow {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-top: 60px;
}

.zdv-workflow-reverse {
  flex-direction: row-reverse;
}

.zdv-workflow-media {
  flex: 1;
  min-width: 0;
}

.zdv-workflow-media img {
  width: 100%;
  height: auto;
  display: block;
}

.zdv-workflow-text {
  flex: 1;
  min-width: 0;
}

/* ── Criticality Cards ── */
.zdv-criticality {
  background: var(--color-bg-light);
}

.zdv-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}

.zdv-card {
  text-align: center;
  padding: 40px 28px;
  border-radius: var(--radius-xl);
  background: var(--color-white);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-normal);
}

.zdv-card:hover {
  transform: translateY(-4px);
}

.zdv-card-icon {
  width: 200px;
  max-width: 100%;
  margin: 0 auto 20px;
}

.zdv-card-icon img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.zdv-card h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--color-text-dark);
}

.zdv-card p {
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--color-text-light);
  margin: 0;
}

/* ── Video workflow card (white card on light-blue bg) ── */
.zdv-criticality .zdv-workflow {
  background: #fff;
  padding: 30px;
  border-radius: var(--radius-md);
}

.zdv-criticality .zdv-workflow-text h3 {
  font-size: calc(20px + 0.8vw);
  margin-bottom: 0;
}

.zdv-video-subtitle {
  font-size: 20px;
  margin-top: 10px;
}

/* ── Video wrapper (responsive 16:9) ── */
.zdv-video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.zdv-video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ── Database Section ── */
.zdv-database {
  background: var(--color-bg-dark-alt);
  color: var(--color-white);
  padding: 60px 0;
}

.zdv-database .pg-section-header h3 {
  color: var(--color-white);
  font-size: calc(18px + 0.4vw);
  margin-top: 8px;
}

.zdv-db-intro {
  max-width: 900px;
  margin: 0 auto 30px;
  line-height: 1.7;
  font-size: var(--text-base);
}

.zdv-db-intro a {
  color: var(--color-primary);
}

table.dataTable thead th {
  background: #263343;
  color: var(--color-white);
  padding: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.29);
  border-right: 1px solid rgba(255, 255, 255, 0.29);
}

table.dataTable tbody td {
  background: #1a222d;
  color: #ddd;
  border-bottom: 1px solid rgba(255, 255, 255, 0.29);
  border-right: 1px solid rgba(255, 255, 255, 0.29);
  font-size: 16px;
  line-height: 20px;
  vertical-align: top;
}

table.dataTable tbody td:first-child {
  border-left: 1px solid rgba(255, 255, 255, 0.29);
  min-width: 180px;
}

table.dataTable tbody td:nth-child(4) {
  min-width: 300px;
}

table.dataTable tbody tr:hover td {
  background: #263343;
}

table.dataTable thead,
table.dataTable tfoot {
  border: 1px solid rgba(255, 255, 255, 0.29);
  background: #263343;
}

table.dataTable tbody {
  border-bottom: 2px solid rgba(255, 255, 255, 0.29);
}

#ZeroDayAdvisories_wrapper {
  background: #1a222d;
  padding: 10px;
  color: #fff;
}

.dt-container .dt-search input,
.dt-container .dt-length select {
  background: #263343;
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.29);
  border-radius: 4px;
  padding: 6px 10px;
}

.dt-container .dt-info,
.dt-container .dt-length label,
.dt-container .dt-search label {
  color: #aaa;
}

.dt-container .dt-length {
  display: flex;
  gap: 20px;
  align-items: flex-end;
}

.dt-container .dt-search {
  display: flex;
  gap: 20px;
  justify-content: flex-end;
  align-items: flex-end;
}

.dt-container .dt-paging button {
  border: 1px solid rgba(255, 255, 255, 0.29);
  color: #1a222d;
}

.dt-container .dt-paging button:hover,
.dt-container .dt-paging button.dt-paging-button.current {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

/* ── CTA Callout (inline) ── */
.zdv-cta-callout {
  text-align: center;
  margin-top: 40px;
  padding: 20px;
  font-size: var(--text-base);
  color: var(--color-text-dark);
  border: 1px solid #ddd;
  border-radius: var(--radius-md);
  background: var(--color-white);
}

.zdv-database .zdv-cta-callout {
  color: var(--color-white);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.2);
}

.zdv-cta-callout a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}

.zdv-arrow {
  margin-left: 4px;
}

/* ── Unique Insights ── */
.zdv-insights {
  background: var(--color-white);
}

.zdv-insights .zdv-workflow-text {
  font-size: var(--text-base);
  line-height: 1.7;
}

.zdv-insights .zdv-workflow-text ul {
  padding-left: 20px;
  margin: 16px 0;
}

.zdv-insights .zdv-workflow-text li {
  margin-bottom: 12px;
}

/* ── Pwn2Own ── */
.zdv-pwn2own {
  position: relative;
  background: #151e38;
  color: var(--color-white);
  overflow: hidden;
  padding: 60px 0;
}

.zdv-pwn2own-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .35;
}

.zdv-pwn2own-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.zdv-pwn2own-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .3);
  z-index: 1;
}

.zdv-pwn2own-inner {
  position: relative;
  z-index: 2;
}

.zdv-pwn2own-layout {
  padding-top: 0;
  align-items: flex-start;
}

.zdv-pwn2own-logo-col {
  text-align: center;
}

.zdv-pwn2own-logo-img {
  max-width: 100%;
  background: #fff;
  padding-top: 20px;
  border-radius: var(--radius-md);
}

.zdv-pwn2own-event-link {
  color: #fff;
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
}

.zdv-pwn2own-event-link img {
  display: block;
  margin-bottom: 8px;
}

.zdv-pwn2own-stats {
  padding-left: 30px;
  padding-right: 30px;
}

.zdv-pwn2own-stats p {
  width: 100%;
  margin-top: 0;
  margin-bottom: 4px;
}

.zdv-pwn2own-stats p:nth-child(1),
.zdv-pwn2own-stats p:nth-child(3) {
  margin-bottom: 12px !important;
}

.zdv-pwn2own-stats p:nth-child(3) {
  margin-top: 24px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .zdv-cards-grid {
    grid-template-columns: 1fr;
  }

  .zdv-workflow {
    flex-direction: column;
    gap: 24px;
    padding-top: 40px;
  }

  .zdv-workflow-reverse {
    flex-direction: column;
  }

  .zdv-pwn2own-layout {
    flex-direction: column;
  }

  .zdv-pwn2own-stats {
    padding-left: 0;
    padding-right: 0;
  }
}