.main-container {
  display: flex;
  flex-direction: column;

  overflow-y: scroll;

  margin: 0 auto;
}
.video-arrow-button {
  height: 48px;
  width: 48px;
}
.navigation-container .flip-arrow {
  transform: rotateY(180deg);
}

.video-container {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.mission-section .main-container {
  width: auto;
}

.video-player {
  flex: 1;
  position: relative;
  background-color: #000;
  overflow: hidden;
}

.video-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-controls {
  position: absolute;
  bottom: 110px;
  left: 20px;
  z-index: 9;
  color: white;
  font-size: 24px;
}

.play-button {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0;
  font-size: 24px;
}

.video-time {
  position: absolute;
  bottom: 20px;
  right: 20px;
  color: white;
  font-size: 14px;
}

.video-info {
  padding: 15px;
  background-color: white;
}

.video-title {
  font-weight: bold;
  margin: 0;
  color: #333;
}

.video-school,
.video-year {
  margin: 0;
  color: #6c757d;
  font-size: 14px;
}
.mute-btn {
  width: 24px;
  height: 24px;
  background-color: #000;
  background: url("../assets/icons/mute.svg") no-repeat center;
  background-size: contain;
  cursor: pointer;
}

.mute-btn.muted {
  background: url("../assets/icons/unmute.svg") no-repeat center;
  background-size: contain;
}
.upcoming-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  max-height: 100%;
}

.upcoming-header {
  padding: 15px;
  border-bottom: 1px solid #eee;
  font-weight: bold;
  color: #555;
  flex-shrink: 0;
}

.upcoming-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Two items per row */
  gap: 15px;
  padding: 15px;
}

.upcoming-item {
  display: flex;
  padding: 15px;
  border: 1px solid #eee;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.upcoming-item:hover {
  background-color: #f8f9fa;
}

.upcoming-thumbnail-container {
  position: relative;
  width: 160px;
  height: 90px;
  margin-right: 15px;
  flex-shrink: 0;
}

.upcoming-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.upcoming-play {
  position: absolute;
  top: 5px;
  left: 5px;
  color: white;
  font-size: 20px;
  opacity: 0.8;
}

.upcoming-time {
  position: absolute;
  bottom: 5px;
  left: 5px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 2px 4px;
  border-radius: 2px;
  font-size: 12px;
}

.upcoming-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.upcoming-title {
  font-weight: bold;
  margin: 0;
  font-size: 14px;
  color: #333;
}

.upcoming-school,
.upcoming-year {
  margin: 0;
  color: #6c757d;
  font-size: 12px;
}

.video-container {
  position: relative;
  max-width: 100%;
  overflow: hidden;
}
.video-container video {
  width: 100%;
}
.video-container .custom-controls {
  position: absolute;
  bottom: 10px;
  left: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.video-container .play-btn {
  width: 30px;
  height: 30px;
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.video-container .play-btn::before {
  content: "▶";
  color: white;
  font-size: 14px;
}
.video-container .pause-btn::before {
  content: "❚❚";
}
.video-container .progress-bar {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  position: absolute;
  bottom: 0;
  left: 0;
}
.video-container .progress {
  height: 5px;
  background: #00ffcc;
  width: 0%;
}
.video-container .time {
  position: absolute;
  bottom: 10px;
  right: 10px;
  color: white;
  font-size: 12px;
  background: rgba(0, 0, 0, 0.5);
  padding: 2px 6px;
  border-radius: 5px;
}
.video-section {
  margin-top: 1.5rem;
}

.video-container {
  max-width: 100%;
  margin: 0 auto;
  position: relative;
  height: 640px;
}

/* Video Wrapper to Maintain Aspect Ratio */
.video-container .video-wrapper {
  /* position: relative; */
  padding-top: 56.25%; /* 16:9 Aspect Ratio (9 / 16 * 100) */
  overflow: hidden;
}

/* Video Element */
.video-container .video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures the video covers the entire container */
}

/* Custom Controls */
.video-container .custom-controls {
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 9;
}

/* Progress Bar */
.video-container .progress-bar {
  position: absolute;
  bottom: 10px;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.3);
}

.video-container .progress {
  height: 100%;
  background-color: #afefe3; /* Light green color */
  width: 0;
}

/* Video Duration */
.video-container .time {
  position: absolute;
  bottom: 20px;
  right: 20px;
  color: white;
  font-size: 14px;
  z-index: 9;
}

.video-container {
  height: auto;
  width: 90vw;
}
.video-container {
  width: 100vw; /* Full viewport width */
  margin: 0;
  padding: 0;
}

.video-container .video-wrapper {
  padding-top: 56.25%; /* Maintain 16:9 aspect ratio */
}

.video-container .video-wrapper video {
  width: 100vw; /* Full viewport width */
  height: 100%;
}
/* Mobile View (Less than 750px) */

@media (max-width: 781px) {
  .video-container .time,
  .video-container .custom-controls {
    bottom: 60px;
  }
}

@media (min-width: 200px) and (max-width: 490px) {
  .video-container .time,
  .video-container .custom-controls {
    bottom: 20px;
  }
}

@media (max-width: 750px) {
  .upcoming-list {
    overflow-x: auto;
    display: flex;
    scroll-snap-type: x mandatory;
    padding: 15px;
    gap: 10px;
    overflow: hidden;
  }

  .upcoming-item {
    flex: 0 0 80%;
    scroll-snap-align: start;
    border: 1px solid #eee;
    border-radius: 8px;
  }
  .upcoming-play {
    top: 40%;
    left: 45%;
  }
  .navigation-container {
    display: flex;
  }

  .nav-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    background-color: transparent;
    border: 2px solid #000;
    color: #000;
  }

  .nav-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }
}

/* Tablet View (Between 751px and 992px) */
@media (min-width: 751px) and (max-width: 992px) {
  .main-container {
    flex-direction: column;
  }

  .upcoming-section {
    width: 100%;
    border-left: none;
    border-top: 1px solid #eee;
  }

  .upcoming-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two items per row */
    gap: 15px;
    padding: 15px;
  }

  .upcoming-item {
    flex: 0 0 auto;
    width: 100%;
    border: 1px solid #eee;
    border-radius: 8px;
  }
}

/* Desktop View (Greater than 992px) */
@media (min-width: 993px) {
  .main-container {
    flex-direction: row;
  }

  .video-container {
    display: flex;
    height: 625px;
  }

  .upcoming-section {
    width: 380px;
  }

  .upcoming-list {
    display: block;
    overflow-y: auto;
    height: 504.44px; /* Single column for desktop */
  }

  .upcoming-item {
    border: none;
    border-bottom: 1px solid #eee;
  }
}

.upcoming-list::-webkit-scrollbar {
  width: 8px; /* Width of the scrollbar */
}

.upcoming-list::-webkit-scrollbar-track {
  background: #f1f1f1; /* Color of the scrollbar track */
  border-radius: 4px;
}

.upcoming-list::-webkit-scrollbar-thumb {
  background: #afefe3; /* Color of the scrollbar thumb */
  border-radius: 4px;
}

.upcoming-list::-webkit-scrollbar-thumb:hover {
  background: #8fd8c9; /* Color of the scrollbar thumb on hover */
}

@media (min-width: 993px) and (max-width: 1170px) {
  .video-container .custom-controls {
    bottom: 120px;
  }
  .video-container .progress-bar {
    bottom: 111px;
  }
  .video-container .time {
    bottom: 123px;
  }
}
