/* ── Demo Videos Page ─────────────────────────────────────────── */

/* ── Hero ────────────────────────────────────────────────────── */

.Demos-Hero-Section {
  display: flex;
  position: relative;
  width: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 140px calc((((130 - 63) / (1920 - 1245)) * (100vw - 1245px)) + 63px) 80px;
  background: linear-gradient(135deg, #f0f4ff 0%, #e8eeff 50%, #f5f7ff 100%);
  text-align: center;
}

.Demos-Hero-Section-Heading {
  color: var(--heading-color);
  font-weight: 700;
  margin-bottom: 16px;
}

.Demos-Hero-Section-Byline {
  color: var(--text-color);
  max-width: 720px;
  margin: 0 auto;
}

/* ── Video Grid Section ──────────────────────────────────────── */

.Demos-Grid-Section {
  display: flex;
  position: relative;
  width: 100%;
  flex-direction: column;
  align-items: center;
  padding: 80px calc((((130 - 63) / (1920 - 1245)) * (100vw - 1245px)) + 63px);
}

.Demos-Grid {
  display: flex;
  position: relative;
  width: 100%;
  max-width: 1620px;
  min-width: 1024px;
  flex-wrap: wrap;
  gap: 32px;
}

/* ── Video Card ──────────────────────────────────────────────── */

.Demos-Card {
  display: flex;
  position: relative;
  flex-direction: column;
  flex: 1 1 calc(33.33% - 32px);
  max-width: 430px;
  min-width: 300px;
  background: var(--color-white);
  border: 1px solid rgba(8, 0, 68, 0.15);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 10px 0 rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.Demos-Card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.1);
}

/* ── Thumbnail (CSS-only placeholder) ────────────────────────── */

.Demos-Card-Thumbnail {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 ratio */
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
  overflow: hidden;
}

.Demos-Card-Thumbnail-Service {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-white);
  background: rgba(0, 0, 0, 0.45);
  padding: 4px 12px;
  border-radius: 6px;
}

.Demos-Card-Thumbnail-Play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, background 0.3s ease;
}

.Demos-Card:hover .Demos-Card-Thumbnail-Play {
  transform: translate(-50%, -50%) scale(1.08);
  background: rgba(255, 255, 255, 1);
}

.Demos-Card-Thumbnail-Play svg {
  width: 24px;
  height: 24px;
  fill: var(--color-primary);
  margin-left: 3px; /* visual centering for play triangle */
}

.Demos-Card-Thumbnail-Duration {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-white);
  background: rgba(0, 0, 0, 0.7);
  padding: 3px 10px;
  border-radius: 4px;
  letter-spacing: 0.3px;
}

/* ── Coming Soon Badge ───────────────────────────────────────── */

.Demos-Card-Coming-Soon {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #92400e;
  background: #fef3c7;
  padding: 4px 12px;
  border-radius: 6px;
  z-index: 1;
}

/* ── Card Body ───────────────────────────────────────────────── */

.Demos-Card-Body {
  display: flex;
  position: relative;
  flex-direction: column;
  padding: 20px 24px 24px;
  gap: 8px;
}

.Demos-Card-Title {
  color: var(--heading-color);
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.Demos-Card-Description {
  color: var(--text-color);
  font-weight: 300;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

/* ── CTA Section ─────────────────────────────────────────────── */

.Demos-CTA-Section {
  display: flex;
  position: relative;
  width: 100%;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(135deg, var(--color-primary) 0%, #00197b 100%);
  padding: 80px calc((((130 - 63) / (1920 - 1245)) * (100vw - 1245px)) + 63px);
  text-align: center;
}

.Demos-CTA-Section-Heading {
  color: var(--color-white);
  font-weight: 700;
  margin-bottom: 16px;
}

.Demos-CTA-Section-Text {
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 auto 32px;
}

.Demos-CTA-Section-Button {
  display: inline-block;
  padding: 20px 40px;
  background: linear-gradient(113deg, #ECB623 -15.76%, #FFBA0A 102.86%);
  color: var(--color-white);
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.Demos-CTA-Section-Button:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 20px rgba(255, 186, 10, 0.3);
  color: var(--color-white);
  text-decoration: none;
}

/* ── Responsive ──────────────────────────────────────────────── */

@media (max-width: 1245px) {
  .Demos-Hero-Section,
  .Demos-Grid-Section,
  .Demos-CTA-Section {
    padding-left: 29px;
    padding-right: 29px;
  }

  .Demos-Grid {
    min-width: unset;
    max-width: unset;
  }
}

@media (max-width: 1050px) {
  .Demos-Hero-Section {
    padding-top: 100px;
    padding-bottom: 60px;
  }

  .Demos-Grid {
    justify-content: center;
  }

  .Demos-Card {
    flex: 1 1 calc(50% - 32px);
    max-width: unset;
  }
}

@media (max-width: 750px) {
  .Demos-Card-Thumbnail-Play {
    width: 52px;
    height: 52px;
  }

  .Demos-Card-Thumbnail-Play svg {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 450px) {
  .Demos-Hero-Section,
  .Demos-Grid-Section,
  .Demos-CTA-Section {
    padding-left: 15px;
    padding-right: 15px;
  }

  .Demos-Hero-Section {
    padding-top: 80px;
    padding-bottom: 40px;
  }

  .Demos-Grid-Section,
  .Demos-CTA-Section {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .Demos-Grid {
    flex-direction: column;
    gap: 24px;
  }

  .Demos-Card {
    flex: unset;
    width: 100%;
    max-width: unset;
    min-width: unset;
  }

  .Demos-Card-Body {
    padding: 14px 16px;
    gap: 4px;
  }

  .Demos-CTA-Section-Button {
    padding: 14px 28px;
  }
}
