.sponsor-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-start; /* Aligns items to the top */
  gap: 20px;
  margin-bottom: 40px;
  align-items: center;
}

.sponsor-section a,
.sponsor-section img {
  display: block;
  max-width: 100%;
  height: auto;
  margin-bottom: 10px;
}

.sponsor-section a {
  display: flex;
  align-items: flex-start; /* Ensures image aligns to top of anchor */
}

@media (max-width: 768px) {
  .sponsor-section {
    flex-direction: column;
    align-items: center;
  }
}

.orange {
  color: #a73d11;
}

.image-crop {
  height: 200px;           /* Desired visible height */
  overflow: hidden;        /* Hide overflow */
  display: flex;
  justify-content: center; /* Center horizontally */
  align-items: center;     /* Center vertically */
}

.image-crop img {
  height: 400px;           /* Actual image height */
  object-fit: cover;       /* Ensures image fills space */
}

.styled_table td, .styled_table th {
  padding: 6px 6px 6px 6px; 
  border: 1px solid black !important;
  text-align: center;
}

.mg_detail_table th, .mg_note_table th {
  font-size: 1rem;
  padding: 6px 6px;
}

.mg_detail_table td, .mg_note_table td {
  padding: 6px 5px;
}

 .mg_note_table th, .mg_note_table td {
  border: 1px solid black!important;
}


.video-container {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-start;
  padding: 10px;
}

.video-item {
  width: 150px;
  height: 245px;
  box-sizing: border-box;
  overflow: hidden;
}

.video-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px; /* Optional: rounded corners */
}

.video-item:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1;
}
