.videos {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding: clamp(2rem, 3.3vw, 3.4rem) clamp(1rem, 2vw, 2rem) 0;
  color: var(--navy);
  background: radial-gradient(ellipse at 50% 42%, #fbfdff 0%, #edf6fd 68%, #e2f1fb 100%);
}
.videos-inner {
  position: relative;
  max-inline-size: 1320px;
  margin-inline: auto;
  padding-block-end: clamp(7rem, 9vw, 9rem);
}
.videos-top-wave,
.videos-bottom-wave {
  position: absolute;
  z-index: -1;
  inset-inline: 0;
  inline-size: 100%;
  pointer-events: none;
}
.videos-top-wave {
  inset-block-start: 0;
  block-size: clamp(5rem, 9vw, 8rem);
}
.videos-bottom-wave {
  inset-block-end: 0;
  block-size: clamp(7rem, 9.5vw, 9.5rem);
}
[dir="rtl"] .videos-top-wave,
[dir="rtl"] .videos-bottom-wave { transform: scaleX(-1); }
.videos-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(.8rem, 1.5vw, 1.45rem);
  max-inline-size: 950px;
  margin-inline: auto;
  direction: ltr;
}
.videos-heading-line {
  flex: 1 1 5rem;
  max-inline-size: 6rem;
  block-size: 4px;
  border-radius: 3rem;
  background: linear-gradient(90deg, #91dbff, #0875ed);
}
.videos-heading-line:last-child { background: linear-gradient(90deg, #0875ed, #91dbff); }
.videos-heading-icon {
  display: grid;
  flex: none;
  place-items: center;
  inline-size: clamp(3rem, 5.8vw, 5.7rem);
  aspect-ratio: 1;
  border: 2px solid #9be6ff;
  border-radius: 50%;
  color: white;
  background: linear-gradient(145deg, #00a9f5, #0754bd 80%);
  box-shadow: 0 5px 12px #0573c94d, inset 0 1px 2px #fff9;
}
.videos-heading-icon svg { inline-size: 60%; block-size: 60%; }
.videos-heading h2 {
  margin: 0;
  color: #071b4d;
  font-size: clamp(1.8rem, 3.2vw, 3.1rem);
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  text-wrap: balance;
}
[dir="rtl"] .videos-heading h2 { direction: rtl; }
.videos-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: auto;
  align-items: start;
  gap: clamp(.9rem, 1.7vw, 1.55rem);
  margin-block-start: clamp(2.2rem, 3.2vw, 3.2rem);
  direction: inherit;
}
.video-card {
  min-inline-size: 0;
  overflow: hidden;
  border: 2px solid #d6edff;
  border-radius: clamp(1.35rem, 2vw, 2rem);
  background: linear-gradient(150deg, #fff 12%, #f7fbff 55%, #e9f4fd 100%);
  box-shadow: inset 0 1px 2px #fff, 0 8px 16px #0874d744;
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.video-preview {
  position: relative;
  display: block;
  inline-size: 100%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: clamp(1.1rem, 1.6vw, 1.55rem) clamp(1.1rem, 1.6vw, 1.55rem) .8rem .8rem;
  background: #d9eafa;
  cursor: pointer;
}
.video-preview-picture {
  position: absolute;
  inset: 0;
  display: block;
  inline-size: 100%;
  block-size: 100%;
}
.video-preview-picture img {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  object-fit: contain;
  object-position: center;
}
.photo-preview { background: #dcebf6; }
.video-play {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: auto;
  inset-inline-end: auto;
  left: 50%;
  right: auto;
  display: grid;
  place-items: center;
  inline-size: clamp(3.8rem, 6vw, 5.4rem);
  aspect-ratio: 1;
  border: 4px solid white;
  border-radius: 50%;
  color: white;
  background: linear-gradient(145deg, #0789ee, #0645ad 82%);
  box-shadow: 0 5px 14px #00275975, inset 0 1px 2px #fff9;
  transform: translate(-50%, -50%);
  transition: scale 180ms ease, box-shadow 180ms ease;
}
.video-play svg { inline-size: 42%; block-size: 42%; margin-inline-start: 4px; fill: currentColor; }
.video-duration {
  position: absolute;
  inset-block-end: .8rem;
  left: .85rem;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-block-size: 2rem;
  padding: .25rem .7rem;
  border: 1px solid #ffffff69;
  border-radius: 2rem;
  color: #fff;
  background: #050b18d9;
  box-shadow: 0 2px 6px #0005;
  font-size: clamp(.9rem, 1.25vw, 1.08rem);
  font-weight: 800;
  line-height: 1;
  direction: ltr;
}
.video-duration svg { inline-size: 1.1rem; block-size: 1.1rem; fill: currentColor; }
.video-zoom {
  position: absolute;
  inset-block-end: .85rem;
  inset-inline-end: .85rem;
  display: grid;
  place-items: center;
  inline-size: 2.8rem;
  aspect-ratio: 1;
  border: 1px solid #fff;
  border-radius: 50%;
  color: #0759c5;
  background: #f7fcffe8;
  box-shadow: 0 3px 10px #001f4c44;
}
.video-zoom svg { inline-size: 1.35rem; block-size: 1.35rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.video-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(.55rem, 1vw, .9rem);
  min-block-size: clamp(4.2rem, 5.6vw, 5.2rem);
  padding: .7rem clamp(.65rem, 1.2vw, 1.15rem) .85rem;
  direction: ltr;
  text-align: center;
}
.video-caption .icon {
  inline-size: clamp(1.7rem, 2.5vw, 2.4rem);
  block-size: clamp(1.7rem, 2.5vw, 2.4rem);
  color: #0879e4;
  filter: drop-shadow(0 2px 2px #0879e430);
}
.video-caption h3 {
  min-inline-size: 0;
  margin: 0;
  color: #08194a;
  font-size: clamp(1.05rem, 1.55vw, 1.5rem);
  font-weight: 850;
  line-height: 1.3;
  text-wrap: balance;
  direction: auto;
}
.videos-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  min-block-size: 3.75rem;
  margin: clamp(2rem, 3.4vw, 3.3rem) auto 0;
  padding: .6rem 2rem;
  border: 1px solid #9be9ff;
  border-radius: 3rem;
  color: white;
  background: linear-gradient(180deg, #09bafa, #0783ed 56%, #0a39cb);
  box-shadow: inset 0 1px 2px #fff9, 0 6px 14px #0355b45a;
  font-size: clamp(1.12rem, 1.65vw, 1.6rem);
  font-weight: 850;
  transition: transform 190ms ease, box-shadow 190ms ease;
}
.videos-more[hidden] { display: none; }
.videos-more-hide { display: none; }
.videos-more.is-expanded .videos-more-show { display: none; }
.videos-more.is-expanded .videos-more-hide { display: inline; }
.videos-more.is-expanded .icon { transform: rotate(180deg); }
.video-dialog {
  inline-size: min(56rem, 94vw);
  max-inline-size: 94vw;
  max-block-size: 94dvh;
  overflow: auto;
  padding: 0;
  border: 1px solid #85dcff;
  border-radius: 1.25rem;
  color: white;
  background: linear-gradient(150deg, #061c48, #031331);
  box-shadow: 0 24px 80px #0009, inset 0 1px #d8f7ff70;
}
.video-dialog::backdrop { background: #00102ddb; backdrop-filter: blur(6px); }
.video-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-block-size: 3.6rem;
  padding: .55rem .75rem .55rem 1.15rem;
  background: linear-gradient(100deg, #041537, #07509a);
}
.video-dialog-header h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.05rem, 2.3vw, 1.5rem);
  font-weight: 800;
  line-height: 1.3;
}
.video-dialog-close {
  display: grid;
  flex: none;
  place-items: center;
  inline-size: 2.45rem;
  aspect-ratio: 1;
  padding: .55rem;
  border: 1px solid #9be4ff;
  border-radius: 50%;
  color: #fff;
  background: #ffffff1c;
}
.video-dialog-close svg { inline-size: 100%; block-size: 100%; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.video-dialog-player,
.video-dialog-player:not([hidden]) {
  display: block;
  inline-size: auto;
  block-size: auto;
  max-inline-size: calc(100% - 1.5rem);
  max-block-size: calc(94dvh - 5rem);
  margin: .75rem auto;
  object-fit: contain;
  background: #000;
}
.video-dialog-player[hidden],
.video-dialog-photo-wrap[hidden] { display: none; }
.video-dialog-photo-wrap {
  display: flex;
  justify-content: center;
  max-block-size: calc(94dvh - 4rem);
  padding: .65rem;
  background: #020a19;
}
.video-dialog-photo {
  display: block;
  inline-size: auto;
  block-size: auto;
  max-inline-size: 100%;
  max-block-size: calc(94dvh - 5.5rem);
  object-fit: contain;
}
@keyframes video-card-enter {
  from { translate: 0 14px; }
  to { translate: 0 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .video-card.is-visible { animation: video-card-enter 440ms cubic-bezier(.2,.7,.2,1) both; }
  .video-card:nth-child(2).is-visible { animation-delay: 50ms; }
  .video-card:nth-child(3).is-visible { animation-delay: 100ms; }
  .video-card:hover { transform: translateY(-4px); box-shadow: inset 0 1px 2px #fff, 0 14px 26px #0874d755; }
  .video-card:hover .video-play { scale: 1.055; box-shadow: 0 7px 16px #00275986, inset 0 1px 2px #fff9; }
  .videos-more:hover { transform: translateY(-3px); box-shadow: inset 0 1px 2px #fff9, 0 10px 20px #0355b477; }
}
@media (max-width: 900px) {
  .videos-inner { max-inline-size: 820px; }
  .videos-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .video-caption h3 { font-size: clamp(1.02rem, 2vw, 1.3rem); }
}
@media (max-width: 700px) {
  .videos { padding: 1.55rem var(--mobile-gutter, clamp(.75rem, 3.3vw, 1rem)) 0; }
  .videos-inner { padding-block-end: 6rem; }
  .videos-top-wave { block-size: 4.2rem; }
  .videos-bottom-wave { block-size: 4.4rem; }
  .videos-heading { gap: .55rem; }
  .videos-heading-line { min-inline-size: .9rem; block-size: 3px; }
  .videos-heading-icon { inline-size: clamp(2.3rem, 9vw, 2.8rem); border-width: 1px; }
  .videos-heading h2 { max-inline-size: min(72%, 18rem); font-size: clamp(1.08rem, 4.9vw, 1.35rem); line-height: 1.3; }
  .videos-grid { grid-template-columns: minmax(0, 1fr); gap: .9rem; margin-block-start: 1.65rem; }
  .video-card { border-width: 1px; border-radius: 1.2rem; }
  .video-preview { border-radius: 1.05rem 1.05rem .65rem .65rem; }
  .video-play { inline-size: clamp(3.5rem, 14vw, 4.1rem); border-width: 3px; }
  .video-duration { inset-block-end: .55rem; left: .6rem; min-block-size: 1.8rem; font-size: .9rem; }
  .video-zoom { inset-block-end: .55rem; inset-inline-end: .6rem; inline-size: 2.45rem; }
  .video-caption { min-block-size: 3.8rem; gap: .65rem; padding: .55rem .85rem .7rem; }
  .video-caption .icon { inline-size: 1.7rem; block-size: 1.7rem; }
  .video-caption h3 { font-size: clamp(1.05rem, 4.5vw, 1.25rem); }
  .videos-more { min-block-size: 3.2rem; margin-block-start: 1.5rem; padding-inline: 1.3rem; font-size: 1.05rem; }
  .video-dialog { inline-size: 94vw; border-radius: 1rem; }
  .video-dialog-header { min-block-size: 3.2rem; }
  .video-dialog-player,
  .video-dialog-player:not([hidden]) {
    max-inline-size: calc(100% - .6rem);
    max-block-size: calc(94dvh - 4.4rem);
    margin: .3rem auto;
  }
  .video-dialog-photo-wrap { max-block-size: calc(94dvh - 3.6rem); padding: .3rem; }
  .video-dialog-photo { max-block-size: calc(94dvh - 4.2rem); }
}
@media (prefers-reduced-motion: reduce) {
  .video-card, .video-play, .videos-more { transition: none; }
}
