.video-page {
  padding-bottom: 3rem;
}

.video-index-section {
  padding-top: 2rem;
}

.video-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 1.5rem;
  align-items: stretch;
  margin-bottom: 1.75rem;
}

.video-hero-copy,
.video-hero-card,
.video-tabs-shell {
  border: 1px solid var(--border-soft);
  border-radius: 1.5rem;
  background: #fff;
  box-shadow: 0 1rem 2.4rem rgba(17, 67, 163, 0.07);
}

.video-hero-copy {
  padding: 1.75rem;
}

.video-hero-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #f8fbff 0%, #fff4f6 100%);
}

.video-hero-card p {
  margin: 0;
  color: #52627a;
  font-size: 1rem;
line-height: 1.55;
}

.video-hero-summary {
  max-width: 72ch;
}

.video-tabs-shell {
  padding: 1.25rem;
}

.video-category-nav {
  margin-bottom: 1.35rem;
}

.video-category-tabs {
  gap: 0.55rem;
}

.video-category-tab {
  border: 1px solid #dbe5f5 !important;
  border-radius: 999px !important;
  padding: 0.65rem 1rem;
  color: var(--brand-blue);
  background: #fff;
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1.2;
}

.video-category-tab:hover,
.video-category-tab:focus {
  border-color: #c7d7f6 !important;
  background: #eef4ff;
  color: #0d2f7a;
}

.video-category-tab.active {
  border-color: var(--brand-blue) !important;
  background: var(--brand-blue) !important;
  color: #fff !important;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.video-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #dfe5f1;
  border-radius: 1.375rem;
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.video-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 1rem 2.125rem rgba(23, 60, 143, 0.08);
}

.video-thumb-button {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: linear-gradient(135deg, #eef3ff, #f9fbff);
  cursor: pointer;
}

.video-thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.25s ease;
}

.video-card:hover .video-thumb {
  transform: scale(1.04);
}

.video-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #edf4ff 0%, #ffffff 54%, #fff0f3 100%);
}

.video-placeholder::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4rem;
  height: 4rem;
  border: 2px solid rgba(17, 67, 163, 0.18);
  border-radius: 999px;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.72);
}

.video-play-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3.8rem;
  height: 3.8rem;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0.75rem 1.5rem rgba(15, 23, 42, 0.16);
}

.video-play-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  border-top: 0.62rem solid transparent;
  border-bottom: 0.62rem solid transparent;
  border-left: 0.95rem solid var(--brand-red);
  transform: translate(-38%, -50%);
}

.video-card-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 1.1rem;
}

.video-card-body h3 {
  margin: 0;
  color: var(--brand-blue);
  font-size: 1.05rem;
  line-height: 1.32;
}

.video-title-button {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 900;
  text-align: left;
}

.video-title-button:hover,
.video-title-button:focus {
  color: var(--brand-red);
}

.video-author,
.video-modal-author {
  margin: 0.7rem 0 0;
  color: var(--brand-blue-soft);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.video-empty {
  border: 1px solid var(--border-soft);
  border-radius: 1.25rem;
  padding: 1.5rem;
  color: var(--text-soft);
  background: #fff;
  text-align: center;
}

.video-modal .modal-content {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 1.25rem;
}

.video-modal .modal-dialog {
  max-width: min(960px, calc(100vw - 2rem));
}

.video-modal .modal-header,
.video-modal .modal-footer {
  border-color: var(--border-soft);
}

.video-modal .modal-title {
  color: var(--brand-blue);
  font-weight: 900;
}

.video-player-frame {
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 1rem;
  background: #0f172a;
}

.video-player-frame iframe,
.video-player-frame video,
.video-player-frame object,
.video-player-frame embed {
  display: block;
  width: 100% !important;
  max-width: 100%;
  height: 100% !important;
}

.video-modal-desc {
  margin-top: 1rem;
  color: #5e6d86;
  line-height: 1.7;
}

@media (max-width: 1199.98px) {
  .video-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .video-hero {
    grid-template-columns: 1fr;
  }

  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .video-hero-copy,
  .video-hero-card,
  .video-tabs-shell {
    border-radius: 1.15rem;
  }

  .video-hero-copy,
  .video-tabs-shell {
    padding: 1rem;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }
}
