/* EduTube — aligned with EduMagnet quizzes (purple #581F64, gold, Montserrat). */
.em-edutube-embed { margin: 0 0 1.5em; }
.em-edutube-embed__frame {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #1c0e25;
}
.em-edutube-embed__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.em-edutube-related { margin: 2.5em 0 1em; }
.em-edutube-related__title {
  font-family: Montserrat, sans-serif;
  color: #581F64;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 1em;
}

.em-edutube-fallback__inner,
.em-edutube-archive {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 20px 48px;
  font-family: Montserrat, sans-serif;
}
.em-edutube-archive__title {
  color: #581F64;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 20px;
}

/* Mirrors the quizzes .em-quiz-search form in Elementor archive 1486. */
.em-edutube-search.em-quiz-search,
.em-quiz-search.em-edutube-search {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 100%;
  margin: 0 0 28px;
}
.em-edutube-search input[type="search"],
.em-edutube-search select,
.em-edutube-search button {
  height: 42px;
  border: 1px solid #e7e3ea;
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  padding: 0 12px;
  background: #fff;
  color: #1c0e25;
}
.em-edutube-search input[type="search"] { flex: 1 1 220px; min-width: 180px; }
.em-edutube-search select { flex: 0 1 180px; }
.em-edutube-search button {
  background: #581F64;
  color: #fff;
  font-weight: 600;
  border-color: #581F64;
  padding: 0 18px;
  cursor: pointer;
}
.em-edutube-search button:hover { background: #4D1A5E; }

.em-edutube-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 35px 24px;
}
@media (max-width: 1024px) {
  .em-edutube-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .em-edutube-grid { grid-template-columns: 1fr; }
}

.em-edutube-card {
  background: #fff;
  border: 1px solid #e7e3ea;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 10px rgba(28,14,37,.06);
}
.em-edutube-card__media {
  display: block;
  aspect-ratio: 16 / 9;
  background: #1c0e25;
  overflow: hidden;
}
.em-edutube-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.em-edutube-card__body { padding: 14px 16px 18px; }
.em-edutube-card__subject {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #581F64;
  margin-bottom: 6px;
}
.em-edutube-card__members {
  display: block;
  width: fit-content;
  margin: 4px 0 8px;
  padding: 3px 10px;
  border-radius: 20px;
  background: #F3EAF6;
  color: #581F64;
  font-size: 12px;
  font-weight: 600;
}
.em-edutube-card__title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 10px;
}
.em-edutube-card__title a { color: #1c0e25; text-decoration: none; }
.em-edutube-card__title a:hover { color: #581F64; }
.em-edutube-card__watch {
  display: inline-block;
  margin-top: 4px;
  padding: 8px 18px;
  border-radius: 6px;
  background: #581F64;
  color: #fff !important;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
}
.em-edutube-card__watch:hover { background: #4D1A5E; }
.em-edutube-pagination { margin-top: 32px; text-align: center; }
.em-edutube-pagination ul { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; list-style: none; padding: 0; }
.em-edutube-pagination a,
.em-edutube-pagination span {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid #e7e3ea;
  color: #581F64;
  text-decoration: none;
}
.em-edutube-pagination .current { background: #581F64; color: #fff; border-color: #581F64; }
.em-edutube-empty { grid-column: 1 / -1; }

/* Keep dropdown text fully visible over theme/global form styles. */
.em-edutube-search select {
  height: 44px !important;
  min-height: 44px !important;
  line-height: 1.3 !important;
  padding: 0 34px 0 14px !important;
  font-size: 15px !important;
  box-sizing: border-box !important;
  vertical-align: middle;
}
.em-edutube-search input[type="search"] {
  height: 44px !important;
  box-sizing: border-box !important;
}
