/* Connect videos page — YouTube cards & embeds */

.connect-videos-page {
  padding: 2.5rem 0 4.5rem;
}

.connect-videos-hero {
  margin-bottom: 2.5rem;
  text-align: center;
}

.connect-videos-hero__eyebrow {
  display: inline-block;
  margin-bottom: 0.65rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary-color, #978c21);
}

.connect-videos-hero__title {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.05;
  color: #111827;
}

.connect-videos-hero__lead {
  max-width: 58ch;
  margin: 0 auto;
  font-size: 1.02rem;
  line-height: 1.7;
  color: #4b5563;
}

.connect-videos-embeds {
  display: grid;
  gap: 1.75rem;
  margin-bottom: 2.5rem;
}

.connect-videos-embed {
  border-radius: 1rem;
  overflow: hidden;
  background: #0f172a;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
}

.connect-videos-embed__head {
  padding: 1rem 1.25rem 0.85rem;
  color: #fff;
}

.connect-videos-embed__head h2 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.connect-videos-embed__head p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
}

.connect-videos-embed__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.connect-videos-embed__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.connect-videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 1.35rem;
}

.connect-video-card {
  display: flex;
  flex-direction: column;
  border-radius: 1rem;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.connect-video-card:hover {
  transform: translateY(-6px);
  border-color: rgba(151, 140, 33, 0.35);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.12);
}

.connect-video-card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #1f2937, #111827);
  overflow: hidden;
}

.connect-video-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.connect-video-card:hover .connect-video-card__thumb img {
  transform: scale(1.05);
}

.connect-video-card__thumb--playlist {
  display: flex;
  align-items: center;
  justify-content: center;
}

.connect-video-card__thumb--playlist i {
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.85);
}

.connect-video-card__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.22);
  transition: background 0.3s ease;
}

.connect-video-card__play span {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(151, 140, 33, 0.92);
  color: #fff;
  font-size: 1.15rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.connect-video-card:hover .connect-video-card__play {
  background: rgba(0, 0, 0, 0.35);
}

.connect-video-card__body {
  padding: 1.1rem 1.15rem 1.2rem;
  flex: 1;
}

.connect-video-card__type {
  display: inline-block;
  margin-bottom: 0.45rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-color, #978c21);
}

.connect-video-card__body h3 {
  margin: 0 0 0.45rem;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.35;
  color: #111827;
}

.connect-video-card__body p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #6b7280;
}

.connect-videos-empty {
  padding: 3rem 1.5rem;
  text-align: center;
  border-radius: 1rem;
  background: #f8fafc;
  border: 1px dashed rgba(15, 23, 42, 0.12);
  color: #64748b;
}

.connect-videos-back {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  color: #374151;
}

.connect-videos-back:hover {
  color: var(--primary-color, #978c21);
}

.connect-video-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.82);
}

.connect-video-modal.is-open {
  display: flex;
}

.connect-video-modal__dialog {
  position: relative;
  width: min(960px, 100%);
}

.connect-video-modal__close {
  position: absolute;
  top: -2.75rem;
  right: 0;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

.connect-video-modal__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 0.85rem;
  overflow: hidden;
}

.connect-video-modal__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 767.98px) {
  .connect-videos-page {
    padding-top: 1.5rem;
  }
}
