/* This file is for overriding existing CSS styles. */
body {
  font-family: sans-serif;
}
.w-webflow-badge,
.buy-template {
  display: none !important;
}

div.home-header_text > h2 {
  margin-bottom: 50vh;
}

div.home-header_text > h1 {
  margin-top: 50vh;
}

.cta_heading {
  font-size: 100px;
}

/* Video Modal Styles */
.video-modal {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999; /* A very high z-index to ensure it's on top */
}

.modal-overlay {
  position: absolute; /* Changed from fixed */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent black */
  z-index: 1; /* z-index relative to .video-modal */
}

.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  padding: 20px;
  border-radius: 5px;
  width: 80%;
  max-width: 800px;
  z-index: 2; /* Above the overlay */
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 20px;
  cursor: pointer;
  color: #000;
  z-index: 3; /* Above the video content */
}

.modal-video {
  width: 100%;
  height: auto;
}

/* Video Page Styles */
.video-page-container {
  padding: 20px;
}

.video-page-nav {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.video-page-button {
  padding: 10px 20px;
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  text-decoration: none;
  color: #333;
  border-radius: 5px;
}

.video-page-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.video-page-column {
  /* No specific styles needed here for now */
}

/* New styles for video pages */
.video-main-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.video-player-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
}

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

/* Ensure HTML5 video fills and covers the container */
.video-player-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-details {
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 5px;
}

.video-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
}

.video-description {
  font-size: 16px;
  line-height: 1.5;
}

.related-videos {
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 5px;
}

.related-videos-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
}

.related-videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.related-video-thumbnail {
  position: relative;
  cursor: pointer;
}

.related-video-thumbnail img {
  width: 100%;
  border-radius: 5px;
}

.related-video-thumbnail .play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.related-video-thumbnail .play-button::after {
  content: "▶";
  font-size: 20px;
  color: #fff;
}

.text-size-medium {
  font-size: 1.4rem;
}

.text-size-small {
  font-size: 1rem;
}
