/* Section wrapper */
.yt-wrap {
  margin: 2rem auto 3rem;   /* extra bottom space */
  padding: 0 15px;
}

/* Card container */
.yt-card {
  cursor: pointer;
  border-radius: .75rem;
  overflow: hidden;
  background: #fff;
  border: 4px solid var(--accent, #d52b1e);
  box-shadow: 0 4px 18px rgba(3,24,58,.14);
  transition: transform .18s ease, box-shadow .18s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.yt-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(3,24,58,.2);
}

/* Thumbnail with play overlay */
.yt-thumb-wrap { position: relative; }
.yt-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.yt-play {
  position: absolute; inset: 0;
  display: flex; justify-content: center; align-items: center;
  background: rgba(0,0,0,.25);
  opacity: 0; transition: opacity .18s ease;
}
.yt-card:hover .yt-play { opacity: 1; }
.yt-play svg { width: 64px; height: 64px; }

/* Title */
.yt-title {
  margin: 1rem .75rem 1.25rem;
  font-weight: 700;
  font-size: 1.15rem;      /* bigger font */
  line-height: 1.4;
  text-align: center;
  color: #0a2a66;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 3.2em;       /* keeps heights aligned */
}

/* Equal height columns */
.yt-grid > [class*="col-"] {
  display: flex;
  margin-bottom: 2rem;     /* space between rows */
}
.yt-grid > [class*="col-"] > .yt-card {
  flex: 1;
}

/* Modal */
.modal-content.bg-dark {
  background-color: #0b0f18 !important;
}
.modal-content .close {
  position: absolute;
  right: .5rem; top: .5rem;
  font-size: 2rem;
  opacity: .85;
}
.modal-content .close:hover { opacity: 1; }

/* Mobile tweaks */
@media (max-width: 575.98px) {
  .yt-title {
    font-size: 1rem;
    margin: .75rem .5rem 1rem;
  }
}
