.mg-wrapper {
  width: 96%;
  margin: auto;
  position: relative;
  font-family: sans-serif;
}

.mg-main {
  position: relative;
  overflow: hidden;
  background-color: aliceblue;
  margin-top: 62px;
}

.mg-item {
  width: 100%;
  border-radius: 10px;
  
  display: block;
  height: 400px !important;
}

/* youtube fix */
iframe.mg-item {
  aspect-ratio: 16 / 9;
  border: none;
  height: 400px;
}

/* overlay */
.mg-overlay {
  position: absolute;
    top: 20%;
    left: 0px;
    color: #fff;
    z-index: 5;
    width: 30%;
    
    background-color: #242223bf;
    border-radius: 8px;
    cursor: pointer;
}

.mg-overlay h1, .mg-overlay p
 { 
  margin-top: 1% !important;
    margin-left: 10% !important;
    cursor: pointer;
}





/* progress */
.mg-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.2);
}

.mg-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: #fff;
}

/* controls */
.mg-prev,
.mg-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  border: none;
  color: white;
  font-size: 24px;
  padding: 10px;
  cursor: pointer;
  z-index: 10;
}

.mg-prev { left: 10px; }
.mg-next { right: 10px; }

/* thumbnails */
.mg-thumbs {
  position: absolute;
  bottom: 79px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 10;
}

.mg-thumbs img {
  width: 50px;
  height: 30px;
  object-fit: cover;
  opacity: 0.5;
  cursor: pointer;
  border-radius: 4px;
}

.mg-thumbs img.active {
  opacity: 1;
  border: 2px solid white;
}

/* mobile */
@media (max-width: 600px) {
  .mg-overlay {
    font-size: 12px;
  }

  .mg-thumbs img {
    width: 40px;
    height: 25px;
  }
}

.click-btn {
  /* Layout & Sizing */
  display: inline-block;
  box-shadow: 0 4px 12px rgb(0 0 0);
  min-width: 120px;
  text-align: center;
  
  /* Typography */
  font-family: sans-serif;
  
  color: #ffffff;
  
  /* Styling & Borders */
  background-color: #2123246b; /* Primary Blue */
  border-radius: 6px;
  border: 2px solid transparent;
  
  /* UX Enhancements */
  cursor: pointer; /* Changes mouse cursor to hand pointer */
  user-select: none; /* Prevents double-click text selection highlighting */
  transition: all 0.2s ease-in-out; /* Smooth transition states */
}

/* --- INTERACTIVE STATES --- */

/* 1. Hover (Mouse over) */
.click-btn:hover {
  background-color: #212324; /* Darker blue shadow accent */
  transform: translateY(-1px); /* Slight lift effect */
}

/* 2. Active (The moment it is clicked down) */
.click-btn:active {
  background-color: #212324;
  transform: translateY(1px); /* Pressed down effect */
}

/* 3. Focus (Keyboard navigation highlight) */
.click-btn:focus-visible {
  outline: 3px solid #80bdff;
  outline-offset: 2px;
}




