/* ==========================================================================
   NUTANIX CHALLENGE & VIDEO PLAYER SECTION
   100% Offline / Zero External URLs
   ========================================================================== */

/* --- 1. Top Dark Tech Hub Banner --- */
.tech-hub-bar {
  background-color: #12141a;
  color: #ffffff;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tech-hub-container {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.tech-hub-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.42;
  letter-spacing: -0.01em;
  margin: 0 auto;
  text-align: center;
  max-width: 1050px;
}

.btn-tech-hub {
  background-color: #ffffff;
  color: #0f172a;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 11px 28px;
  border-radius: 9999px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn-tech-hub:hover {
  background-color: #f1f5f9;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

/* --- 2. The Challenge Section --- */
.challenge-section-split {
  background-color: #ffffff;
  color: #0f172a;
  padding: 85px 0 95px;
  position: relative;
}

.challenge-grid-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 56px;
}

/* Left Column: Content */
.challenge-left-col {
  min-width: 0;
  width: 100%;
  max-width: 580px;
}

.challenge-main-heading {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: #0b132b;
  margin-bottom: 20px;
}

.challenge-body-p {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 16px;
}

.challenge-body-p.highlight-p {
  color: #0f172a;
  font-weight: 500;
  margin-bottom: 0;
}

/* Right Column: Custom Video Player */
.challenge-right-col {
  min-width: 0;
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

.video-player-card {
  position: relative;
  width: 100%;
  max-width: 580px;
  background-color: #000000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.28), 0 2px 10px rgba(0, 0, 0, 0.15);
  aspect-ratio: 16 / 9;
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Native HTML5 Video Element */
.challenge-html-video {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  background-color: #000000;
  cursor: pointer;
}

/* Big Center Play Button Overlay */
.video-play-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 2px solid #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: all 0.25s ease;
  z-index: 5;
  cursor: pointer;
  pointer-events: auto;
}

.video-play-center svg {
  margin-left: 3px;
  transition: transform 0.2s ease;
}

.video-player-card:hover .video-play-center {
  background: #ffffff;
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.video-player-card:hover .video-play-center svg polygon {
  fill: #0070e0;
}

/* Hidden state when playing */
.video-play-center.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.8);
}

.video-poster-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.video-player-card:hover .video-poster-img {
  transform: scale(1.02);
  filter: brightness(1.05);
}

/* Center Large Play Button */
.video-play-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 2px solid #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: all 0.25s ease;
  z-index: 5;
}

.video-play-center svg {
  margin-left: 3px;
  transition: transform 0.2s ease;
}

.video-player-card:hover .video-play-center {
  background: #ffffff;
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.video-player-card:hover .video-play-center svg polygon {
  fill: #000000;
}

/* Video Control Bar (Bottom - Matching Screenshot 3) */
.video-controls-bar {
  position: relative;
  z-index: 10;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(10, 10, 15, 0.95) 100%);
  padding: 10px 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Scrubber / Progress Bar */
.video-scrubber-track {
  width: 100%;
  height: 3px;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.video-scrubber-progress {
  width: 28%;
  height: 100%;
  background: linear-gradient(90deg, #8b5cf6 0%, #00e5bf 100%);
  border-radius: 2px;
}

/* Action Icons Row */
.video-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ffffff;
  font-size: 0.8rem;
  user-select: none;
}

.video-ctrl-left,
.video-ctrl-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ctrl-btn {
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.ctrl-btn:hover {
  opacity: 0.8;
  transform: scale(1.08);
}

.video-time-stamp {
  font-size: 0.76rem;
  color: #e2e8f0;
  font-family: inherit;
  font-weight: 500;
}

.video-speed-pill {
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffffff;
}

/* Tooltip on Play */
.ctrl-play-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.play-tooltip {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #000000;
  color: #ffffff;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 4px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  white-space: nowrap;
}

.ctrl-play-wrap:hover .play-tooltip {
  opacity: 1;
}

/* --- Responsive Layout --- */
@media (max-width: 960px) {
  .tech-hub-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .challenge-grid-split {
    grid-template-columns: 1fr !important;
    gap: 36px !important;
  }

  .challenge-left-col {
    max-width: 100% !important;
  }

  .challenge-main-heading {
    font-size: 1.65rem;
  }

  .challenge-right-col {
    width: 100% !important;
    max-width: 100% !important;
    justify-content: center !important;
  }

  .video-player-card {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
  }
}

@media (max-width: 640px) {
  .challenge-section-split {
    padding: 40px 0 50px;
  }

  .challenge-main-heading {
    font-size: 1.4rem;
    line-height: 1.32;
    margin-bottom: 16px;
  }

  .challenge-body-p {
    font-size: 0.92rem;
    line-height: 1.55;
  }

  .challenge-right-col {
    width: 100% !important;
  }

  .video-player-card {
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25) !important;
  }

  .challenge-html-video {
    width: 100% !important;
    height: 100% !important;
    border-radius: 8px !important;
    object-fit: contain !important;
  }

  .video-play-center {
    width: 52px;
    height: 52px;
  }

  .video-play-center svg {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 420px) {
  .challenge-main-heading {
    font-size: 1.25rem;
  }

  .video-player-card {
    aspect-ratio: 16 / 9;
  }
}
