/* ═══ Pwn2Own Automotive Page ═══ */
.p2o-page {
  font-family: 'Open Sans', Ubuntu, Helvetica, sans-serif;
  color: #333;
}

/* ── Hero ── */
.p2o-hero {
  position: relative;
  height: min(100vh, 800px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #0a1628;
}

.p2o-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.p2o-hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Hero Background Video */
.p2o-hero__video-wrap {
  position: absolute;
  inset: 0;
  z-index: 5;
  overflow: hidden;
}

.p2o-hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p2o-hero__blue-filter {
  position: absolute;
  inset: 0;
  background: rgba(16, 38, 78, 0.25);
  z-index: 6;
}

.p2o-hero__content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 60px 20px;
}

/* Mobile: hide video, show static content */
@media screen and (max-width: 990px) {
  .p2o-hero__video-wrap {
    display: none;
  }

  .p2o-hero__blue-filter {
    z-index: 1;
  }
}

.p2o-hero-logo {
  max-width: 650px;
  width: 70%;
  margin: 0 auto;
  display: block;
}

.p2o-hero__subtitle {
  color: #fff;
  font-family: Ubuntu, Helvetica, sans-serif;
  font-size: clamp(1rem, 2vw, 1.3rem);
  max-width: 800px;
  margin: -10px auto 0;
  line-height: 1.5;
}

/* ── Slide-in Animation ── */
@keyframes p2o-slide-in {
  from {
    opacity: 0;
    transform: translateX(-60px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.p2o-animate-in {
  animation: p2o-slide-in 0.8s ease-out forwards;
}

/* Container */
.p2o-container {
  max-width: 1200px;
  width: 90%;
  margin: 0 auto;
  padding: 0 20px;
}

.p2o-container-wide {
  max-width: 1500px;
  width: 80%;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Overview ── */
.p2o-overview {
  padding: 60px 0;
}

.p2o-overview-text {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.p2o-overview-text p {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  margin: 12px 0;
}

.p2o-separator {
  border: none;
  border-top: 1px solid #ccc;
  margin: 40px 0;
}

.p2o-overview-cta-text {
  text-align: center;
  font-size: 16px;
  color: #333;
  padding: 20px 0;
}

/* Event Info */
.p2o-event-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 40px auto;
  padding: 20px;
}

.p2o-event-logos {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-right: 40px;
  border-right: 2px dotted #ccc;
}

.p2o-event-logo {
  max-width: 350px;
  width: 100%;
}

.p2o-event-details {
  flex: 1;
  text-align: left;
  padding-left: 40px;
}

.p2o-venue-logo {
  max-width: 250px;
  display: inline-block;
  margin-bottom: 8px;
}

.p2o-event-details span {
  font-size: 14px;
  color: #666;
}

.p2o-event-details span a {
  color: #ff0037;
  text-decoration: none;
}

.p2o-event-date {
  margin-top: 10px;
  font-size: 20px;
}

@media screen and (max-width: 768px) {
  .p2o-event-info {
    flex-direction: column;
    gap: 30px;
  }

  .p2o-event-logos {
    padding-right: 0;
    border-right: none;
    border-bottom: 2px dotted #ccc;
    padding-bottom: 30px;
  }

  .p2o-event-details {
    padding-left: 0;
  }
}

.p2o-event-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin: 30px 0;
  flex-wrap: wrap;
}

.p2o-btn {
  display: inline-block;
  background: #ff0037;
  color: #fff;
  padding: 16px 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  min-width: 280px;
  text-align: center;
  transition: all 0.2s;
  box-shadow: 0 6px 10px 0 rgba(247, 64, 112, 0.3);
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.p2o-btn:hover {
  background: transparent;
  color: #ff0037;
  box-shadow: inset 0 0 0 2px #ff0037;
}

/* ── Features ── */
.p2o-features {
  padding: 60px 0;
}

.p2o-features-header {
  text-align: center;
  margin-bottom: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.p2o-features-header h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin: 0 0 10px;
}

.p2o-features-header h3 {
  font-size: 1.2rem;
  font-weight: 400;
  color: #555;
  margin: 0;
}

.p2o-workflow {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-bottom: 50px;
}

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

.p2o-workflow-media {
  width: 50%;
  overflow: hidden;
}

.p2o-workflow-media img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.p2o-workflow-text {
  width: 50%;
}

.p2o-workflow-text h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #212121;
  margin: 0 0 12px;
}

.p2o-workflow-text p {
  font-size: 16px;
  line-height: 1.7;
  color: #444;
}

.p2o-features-closing {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding: 20px 0;
}

.p2o-features-closing p {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
}

/* ── Categories Grid ── */
.p2o-categories {
  padding: 60px 0;
}

.p2o-categories h2 {
  text-align: center;
  font-size: 2rem;
  margin: 0 0 8px;
}

.p2o-categories h4 {
  text-align: center;
  font-size: 1rem;
  color: #555;
  font-weight: 400;
  margin: 0 0 30px;
}

.p2o-categories h3 {
  text-align: center;
  font-size: 1.1rem;
  margin: 0 0 30px;
}

.p2o-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.p2o-cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 30px 20px;
  background: #ff0037;
  border: none;
  border-radius: 10px;
  text-decoration: none;
  color: #fff;
  transition: opacity 0.2s, transform 0.2s;
}

.p2o-cat-card:hover {
  opacity: 0.9;
  transform: translateY(-3px);
}

.p2o-cat-icon {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.p2o-cat-icon img {
  width: 82%;
  max-width: 128px;
  height: auto;
}

.p2o-cat-card p {
  margin: 0;
  font-size: 15px;
  color: #fff;
}

/* ── Testimonials ── */
.p2o-testimonials {
  padding: 60px 0;
  background: #f5f7fa;
}

.p2o-testimonial {
  display: none;
  gap: 30px;
  align-items: flex-start;
  padding: 40px 0;
}

.p2o-testimonial.active {
  display: flex;
}

.p2o-testimonial-logo {
  flex: 0 0 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.p2o-testimonial-logo img {
  max-width: 220px;
  max-height: 220px;
}

.p2o-testimonial-divider {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 28px;
  align-self: stretch;
  padding: 3px 0;
  flex-shrink: 0;
  margin: 0 24px;
}

.p2o-testimonial-divider::before {
  content: '';
  position: absolute;
  top: 0;
  height: 68px;
  min-width: 2px;
  background-color: hsla(0, 0%, 68.7%, 0.2);
}

.p2o-testimonial-divider::after {
  content: '';
  position: absolute;
  bottom: 0;
  height: 68px;
  min-width: 2px;
  background-color: hsla(0, 0%, 68.7%, 0.2);
}

.p2o-testimonial-divider-icon {
  height: 20%;
  min-width: 26px;
  background-image: url('/assets/images/Quote-icon.svg');
  background-position: 50% 50%;
  background-size: contain;
  background-repeat: no-repeat;
  position: relative;
  z-index: 1;
  margin: auto 0;
}

.p2o-testimonial-content {
  flex: 1;
}

.p2o-testimonial-quote {
  font-size: 16px;
  line-height: 1.7;
  color: #333;
  margin: 0 0 20px;
}

.p2o-testimonial-author {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #333;
}

.p2o-testimonial-author span {
  color: #666;
  font-size: 14px;
  font-weight: 400;
}

.p2o-testimonial-dots {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-left: 280px;
  margin-top: 16px;
}

.p2o-testimonial-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: #fff;
  font-size: 16px;
  font-weight: 700;
  color: #999;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.2s;
  padding: 0;
  line-height: 36px;
  text-align: center;
}

.p2o-testimonial-dot:hover {
  color: #dc2568;
  transform: translateY(-1px);
}

.p2o-testimonial-dot.active {
  border-color: #dc2568;
  background: #fff;
  color: #dc2568;
  box-shadow: 0 6px 18px rgba(220, 37, 104, 0.18);
}

/* ── Responsive ── */
@media (max-width: 991px) {

  .p2o-workflow,
  .p2o-workflow--reverse {
    flex-direction: column;
  }

  .p2o-workflow-media,
  .p2o-workflow-text {
    width: 100%;
  }

  .p2o-cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .p2o-event-info {
    flex-direction: column;
    text-align: center;
  }

  .p2o-event-details {
    text-align: center;
  }
}

@media (max-width: 600px) {
  .p2o-cat-grid {
    grid-template-columns: 1fr;
  }

  .p2o-testimonial {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .p2o-testimonial-logo {
    flex: none;
  }

  .p2o-testimonial-divider {
    flex-direction: row;
    width: 80%;
    height: 28px;
    align-self: center;
    margin: 16px 0;
    padding: 0 3px;
  }

  .p2o-testimonial-divider::before,
  .p2o-testimonial-divider::after {
    height: auto;
    min-height: 2px;
    min-width: auto;
    width: 68px;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
  }

  .p2o-testimonial-divider::before {
    left: 0;
    right: auto;
  }

  .p2o-testimonial-divider::after {
    right: 0;
    left: auto;
  }
}

/* ── Resources Section (Updates / Insights) ── */
.p2o-resources-section {
  position: relative;
  background: linear-gradient(180deg, #e8edf5 0%, #dce3ef 100%);
  padding: 60px 0;
}

.p2o-pixel-lines {
  position: absolute;
  left: 0;
  right: 0;
  opacity: 0.5;
}

.p2o-pixel-lines.top {
  top: 0;
  transform: scaleY(-1);
}

.p2o-pixel-lines.bottom {
  bottom: 0;
}

.p2o-pixel-lines img {
  width: 100%;
  display: block;
}

.p2o-resources-block {
  margin-bottom: 60px;
  position: relative;
  z-index: 1;
}

.p2o-resources-block:last-child {
  margin-bottom: 0;
}

.p2o-section-header {
  text-align: center;
  margin-bottom: 40px;
}

.p2o-section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 16px;
}

/* Resource Grid */
.p2o-resource-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.p2o-resource-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
  width: calc(25% - 15px);
}

.p2o-resource-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.p2o-resource-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.p2o-resource-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p2o-resource-cat {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: #dc2568;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 3px;
}

.p2o-resource-info {
  flex: 1;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
}

.p2o-resource-info h3 {
  font-size: 15px;
  font-weight: 700;
  color: #212121;
  margin: 0 0 6px;
  line-height: 1.4;
}

.p2o-resource-card:hover h3 {
  color: #dc2568;
}

.p2o-resource-date {
  font-size: 12px;
  color: #888;
  margin-bottom: 8px;
}

.p2o-resource-info p {
  font-size: 13px;
  line-height: 1.5;
  color: #555;
  margin: 0 0 10px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.p2o-read-more {
  font-size: 14px;
  font-weight: 600;
  color: #ff0037;
  text-decoration: none;
}

/* Event Summary Grid */
.p2o-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.p2o-summary-card {
  background: #f2f2f2;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: #333;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s;
}

.p2o-summary-card:hover {
  transform: translateY(-3px);
}

.p2o-summary-thumb {
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.p2o-summary-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p2o-summary-card h3 {
  font-size: 15px;
  font-weight: 700;
  padding: 16px;
  margin: 0;
  flex: 1;
  line-height: 1.4;
}

.p2o-summary-card .p2o-read-more {
  display: block;
  padding: 0 16px 16px;
}

/* ── Videos ── */
.p2o-videos {
  padding: 60px 0;
}

.p2o-video-wrapper {
  max-width: 900px;
  margin: 0 auto 50px;
  position: relative;
  padding-bottom: 50.625%;
  height: 0;
  overflow: hidden;
}

.p2o-video-wrapper:last-child {
  margin-bottom: 0;
}

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

/* ── Schedule Modal ── */
.p2o-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.p2o-modal.active {
  display: flex;
}

.p2o-modal__bg {
  position: fixed;
  inset: 0;
  background: rgba(26, 33, 43, 0.8);
  backdrop-filter: blur(18px);
  z-index: 1;
}

.p2o-modal__card {
  position: relative;
  z-index: 2;
  max-width: 900px;
  width: 90%;
  height: 85vh;
  background: #101a26;
  border-radius: 20px;
  border: 1px solid #293442;
  box-shadow: 0 0 20px 5px rgba(21, 25, 34, 0.87);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.p2o-modal__close {
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 40px;
  background: #ff0037;
  color: #fff;
  border: none;
  font-weight: bold;
  font-size: 20px;
  cursor: pointer;
  z-index: 3;
  line-height: 40px;
  text-align: center;
  padding: 0;
}

.p2o-modal__close:hover {
  background: #b40606;
}

.p2o-modal__head {
  padding: 16px 20px;
  border-bottom: 1px solid #293442;
}

.p2o-modal__head h2 {
  font-size: 22px;
  color: #fff;
  margin: 0;
}

.p2o-modal__body {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.p2o-modal__tabs {
  display: flex;
  gap: 10px;
  padding: 20px 20px 10px;
}

.p2o-modal__tab {
  flex: 1;
  padding: 12px;
  background: #ff0037;
  color: #fff;
  border: none;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  opacity: 0.3;
  text-align: center;
}

.p2o-modal__tab.active {
  opacity: 1;
}

.p2o-modal__content {
  flex: 1;
  overflow-y: auto;
  padding: 10px 20px 20px;
}

.p2o-modal__day {
  display: none;
}

.p2o-modal__day.active {
  display: block;
}

.p2o-modal__day h3 {
  font-size: 20px;
  color: #fff;
  margin: 10px 0 16px;
}

.p2o-modal__table-wrap {
  width: 100%;
  overflow-x: auto;
  min-width: 0;
}

.p2o-modal table {
  border-collapse: collapse;
  width: 100%;
  color: #000;
  background: #fff;
}

.p2o-modal th,
.p2o-modal td {
  text-align: left;
  padding: 8px;
  vertical-align: top;
  min-width: 100px;
  border: 1px solid #101a26;
}

.p2o-modal th {
  background: #b71758;
  color: #fff;
}

.p2o-modal tr:nth-child(even) {
  background: #f2f2f2;
}

.p2o-modal td[rowspan] {
  background: #fff;
}

.p2o-modal th:first-child,
.p2o-modal td:first-child {
  width: 120px;
}

@media (max-width: 600px) {
  .p2o-modal__card {
    width: 95%;
    height: 95%;
    border-radius: 10px;
  }

  .p2o-modal__tabs {
    gap: 5px;
  }

  .p2o-modal__tab {
    font-size: 12px;
    padding: 10px 6px;
  }
}

/* ── Bottom CTA ── */
.p2o-bottom-cta {
  position: relative;
  padding: 80px 20px;
  overflow: hidden;
  background: #0a1628;
  display: flex;
  align-items: center;
  justify-content: center;
}

.p2o-bottom-cta__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.p2o-bottom-cta__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p2o-bottom-cta__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 22, 40, 0.7) 0%, rgba(10, 22, 40, 0.85) 100%);
  z-index: 1;
}

.p2o-bottom-cta__content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.p2o-bottom-cta__logo {
  max-width: 800px;
  width: 90%;
}

.p2o-bottom-cta__buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.p2o-bottom-cta__logos {
  display: flex;
  gap: 30px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.p2o-bottom-cta__logos img {
  height: 40px;
  width: auto;
}

.p2o-bottom-cta__policy a {
  color: #fff;
  font-size: 14px;
}

/* ── Responsive additions ── */
@media (max-width: 991px) {
  .p2o-summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .p2o-resource-card {
    width: calc(50% - 10px);
  }
}

@media (max-width: 600px) {
  .p2o-summary-grid {
    grid-template-columns: 1fr;
  }

  .p2o-resource-card {
    width: 100%;
  }

  .p2o-bottom-cta__logos {
    flex-direction: column;
  }
}
