/* RAYA AI Videos — Frontend */
.raya-ai-page,
.raya-ai-page * {
  box-sizing: border-box;
}

.raya-ai-page {
  --raya-purple: #5d499e;
  --raya-purple-dark: #49367f;
  --raya-blue: #9bcbeb;
  --raya-black: #111111;
  --raya-border: #eceaf2;
  --raya-gap: 30px;

  position: relative;
  left: 50%;
  width: 100vw;
  max-width: 100vw;
  margin: 0 0 0 -50vw;
  padding: 0;
  overflow: hidden;
  background: #fff;
  color: var(--raya-black);
  direction: ltr;
  font-family: inherit;
}

.raya-ai-page img {
  display: block;
  max-width: 100%;
  height: auto;
}

.raya-ai-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(350px, .85fr);
  align-items: end;
  width: 100%;
  max-width: 1536px;
  min-height: 620px;
  margin: 0 auto;
  padding: 40px 55px 0;
  background: #fff;
}

.raya-ai-text {
  align-self: center;
  max-width: 900px;
  padding: 20px 20px 50px 0;
}

.raya-ai-text h1 {
  margin: 0;
  padding: 0;
  color: var(--raya-purple);
  font-size: clamp(72px, 7.2vw, 112px);
  line-height: .9;
  font-weight: 400;
  letter-spacing: -4px;
  white-space: nowrap;
}

.raya-ai-text h1 strong {
  font-weight: 700;
}

.raya-ai-text h2 {
  margin: 19px 0 42px;
  padding: 0;
  color: var(--raya-purple);
  font-size: clamp(19px, 1.7vw, 27px);
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: .8px;
}

.raya-ai-copy p {
  max-width: 860px;
  margin: 0 0 25px;
  padding: 0;
  color: var(--raya-black);
  font-size: clamp(17px, 1.42vw, 22px);
  line-height: 1.38;
  font-weight: 400;
  letter-spacing: -.2px;
}

.raya-ai-copy p:last-child {
  margin-bottom: 0;
}

.raya-ai-woman-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 100%;
}

.raya-ai-woman {
  width: 100%;
  max-width: 520px !important;
  margin: auto auto 0;
}

.raya-videos-section {
  width: 100%;
  max-width: 1536px;
  margin: 0 auto;
  padding: 20px 18px 55px;
}

.raya-slider-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 44px;
  margin-bottom: 13px;
}

.raya-slider-navigation {
  display: flex;
  align-items: center;
  gap: 8px;
  transition: opacity .2s ease;
}

.raya-slider-header.is-hidden {
  display: none;
}

.raya-slider-navigation.is-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.raya-slider-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 41px;
  height: 41px;
  padding: 0;
  border: 1px solid rgba(93, 73, 158, .25);
  border-radius: 50%;
  background: #fff;
  color: var(--raya-purple);
  font-family: Arial, sans-serif;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  transition: color .25s ease, background .25s ease, border-color .25s ease, transform .25s ease, opacity .25s ease;
  appearance: none;
}

.raya-slider-arrow span {
  display: block;
  transform: translateY(-2px);
}

.raya-slider-arrow:hover:not(:disabled) {
  color: #fff;
  background: var(--raya-purple);
  border-color: var(--raya-purple);
  transform: translateY(-2px);
}

.raya-slider-arrow:focus-visible {
  outline: 3px solid rgba(155, 203, 235, .7);
  outline-offset: 2px;
}

.raya-slider-arrow:disabled {
  opacity: .35;
  cursor: default;
}

/* One video intentionally remains one third of the desktop row. */
.raya-video-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--raya-gap) * 2)) / 3);
  gap: var(--raya-gap);
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 0 10px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  cursor: grab;
  touch-action: pan-y;
}

.raya-video-track::-webkit-scrollbar {
  display: none;
}

.raya-video-track.is-dragging {
  cursor: grabbing;
  user-select: none;
  scroll-behavior: auto;
  scroll-snap-type: none;
}

.raya-video-card {
  min-width: 0;
  height: 100%;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--raya-border);
  border-radius: 2px;
  box-shadow: 0 8px 24px rgba(24, 18, 48, .09);
  scroll-snap-align: start;
  transition: transform .3s ease, box-shadow .3s ease;
}

.raya-video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 35px rgba(24, 18, 48, .15);
}

.raya-video-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit !important;
  text-decoration: none !important;
}

.raya-video-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e9e6f3;
}

.raya-video-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(22, 16, 48, .02) 25%, rgba(22, 16, 48, .2) 100%);
  transition: background .3s ease;
}

.raya-video-card:hover .raya-video-cover::after {
  background: rgba(47, 33, 92, .13);
}

.raya-video-cover img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  object-position: center;
  transition: transform .55s ease;
}

.raya-video-card:hover .raya-video-cover img {
  transform: scale(1.045);
}

.raya-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(70px, 7vw, 104px);
  height: clamp(70px, 7vw, 104px);
  border: 8px solid rgba(155, 203, 235, .92);
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  box-shadow: 0 5px 18px rgba(20, 13, 52, .18), inset 0 0 0 1px rgba(255, 255, 255, .4);
  transform: translate(-50%, -50%);
  backdrop-filter: blur(2px);
  transition: transform .3s ease, background .3s ease, border-color .3s ease;
}

.raya-video-card:hover .raya-play-button {
  background: rgba(93, 73, 158, .78);
  border-color: var(--raya-blue);
  transform: translate(-50%, -50%) scale(1.08);
}

.raya-play-icon {
  display: block;
  width: 0;
  height: 0;
  margin-left: 8px;
  border-top: 18px solid transparent;
  border-bottom: 18px solid transparent;
  border-left: 28px solid #fff;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .15));
}

.raya-video-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 205px;
  padding: 30px 32px 28px;
}

.raya-video-content h3 {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 30px;
  padding: 0;
  color: #252331;
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.45;
  font-weight: 400;
  letter-spacing: -.15px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.raya-video-content time {
  display: block;
  margin-top: auto;
  color: #aaa7b1;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: .1px;
  text-transform: uppercase;
}

.raya-video-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  visibility: hidden;
  align-items: center;
  justify-content: center;
  padding: 70px 24px 30px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease, visibility .3s ease;
}

.raya-video-modal.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.raya-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 7, 17, .9);
  backdrop-filter: blur(6px);
}

.raya-modal-content {
  position: relative;
  z-index: 2;
  width: min(1180px, 94vw);
  overflow: hidden;
  border-radius: 5px;
  background: #000;
  box-shadow: 0 25px 80px rgba(0, 0, 0, .55);
  transform: scale(.94) translateY(15px);
  transition: transform .3s ease;
}

.raya-video-modal.is-open .raya-modal-content {
  transform: scale(1) translateY(0);
}

.raya-modal-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

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

.raya-modal-close {
  position: absolute;
  top: 15px;
  right: 22px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  padding: 0 0 5px;
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 36px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  transition: background .25s ease, transform .25s ease;
  appearance: none;
}

.raya-modal-close:hover {
  background: var(--raya-purple);
  transform: rotate(90deg);
}

body.raya-video-open {
  overflow: hidden !important;
}

.raya-empty-state {
  max-width: 1536px;
  margin: 0 auto;
  padding: 40px 24px;
  text-align: center;
  background: #f7f6fb;
}

.raya-empty-state p {
  margin: 0 0 8px;
}

@media (max-width: 1200px) {
  .raya-ai-intro {
    grid-template-columns: minmax(0, 1.55fr) minmax(310px, .8fr);
    min-height: 540px;
    padding: 36px 38px 0;
  }

  .raya-ai-text {
    padding-bottom: 38px;
  }

  .raya-ai-text h1 {
    font-size: clamp(64px, 7vw, 88px);
    letter-spacing: -3px;
  }

  .raya-ai-text h2 {
    margin: 16px 0 30px;
    font-size: clamp(17px, 1.7vw, 22px);
  }

  .raya-ai-copy p {
    margin-bottom: 20px;
    font-size: clamp(15px, 1.45vw, 18px);
    line-height: 1.35;
  }

  .raya-ai-woman {
    max-width: 440px !important;
  }

  .raya-video-content {
    min-height: 185px;
    padding: 25px;
  }
}

@media (max-width: 991px) {
  .raya-ai-page {
    --raya-gap: 22px;
  }

  .raya-ai-intro {
    grid-template-columns: minmax(0, 1.3fr) minmax(270px, .7fr);
    min-height: 480px;
    padding: 35px 28px 0;
  }

  .raya-ai-text {
    padding-right: 8px;
    padding-bottom: 32px;
  }

  .raya-ai-text h1 {
    font-size: clamp(51px, 7vw, 69px);
    letter-spacing: -2px;
  }

  .raya-ai-text h2 {
    margin: 13px 0 23px;
    font-size: clamp(14px, 1.75vw, 18px);
    letter-spacing: .45px;
  }

  .raya-ai-copy p {
    margin-bottom: 16px;
    font-size: clamp(13px, 1.55vw, 16px);
  }

  .raya-ai-woman {
    max-width: 360px !important;
  }

  .raya-videos-section {
    padding: 10px 22px 45px;
  }

  .raya-video-track {
    grid-auto-columns: calc((100% - var(--raya-gap)) / 2);
  }

  .raya-video-content h3 {
    font-size: 18px;
  }
}

@media (max-width: 767px) {
  .raya-ai-page {
    --raya-gap: 18px;
  }

  .raya-ai-intro {
    display: flex;
    flex-direction: column;
    min-height: auto;
    padding: 30px 18px 0;
  }

  .raya-ai-text {
    width: 100%;
    max-width: none;
    padding: 0;
  }

  .raya-ai-text h1 {
    font-size: clamp(48px, 14vw, 66px);
    line-height: .95;
    letter-spacing: -2px;
  }

  .raya-ai-text h2 {
    margin: 13px 0 24px;
    font-size: 15px;
    line-height: 1.35;
    letter-spacing: .35px;
  }

  .raya-ai-copy p {
    margin-bottom: 18px;
    font-size: 16px;
    line-height: 1.48;
  }

  .raya-ai-woman-wrap {
    width: 100%;
    height: auto;
    margin-top: 10px;
  }

  .raya-ai-woman {
    width: min(94%, 430px);
    max-width: none !important;
    margin: 0 auto;
  }

  .raya-videos-section {
    padding: 18px 18px 38px;
  }

  .raya-slider-header {
    min-height: 0;
    margin-bottom: 12px;
  }

  .raya-video-track {
    grid-auto-columns: 100%;
  }

  .raya-video-content {
    min-height: 180px;
    padding: 24px 23px;
  }

  .raya-video-content h3 {
    margin-bottom: 25px;
    font-size: 18px;
  }

  .raya-play-button {
    width: 82px;
    height: 82px;
    border-width: 7px;
  }

  .raya-play-icon {
    margin-left: 6px;
    border-top-width: 14px;
    border-bottom-width: 14px;
    border-left-width: 23px;
  }

  .raya-video-modal {
    padding: 65px 12px 20px;
  }

  .raya-modal-content {
    width: 100%;
  }

  .raya-modal-close {
    top: 12px;
    right: 14px;
  }
}

@media (max-width: 420px) {
  .raya-ai-intro {
    padding-right: 16px;
    padding-left: 16px;
  }

  .raya-ai-text h1 {
    font-size: 46px;
  }

  .raya-ai-text h2 {
    font-size: 13px;
  }

  .raya-ai-copy p {
    font-size: 15px;
  }

  .raya-videos-section {
    padding-right: 14px;
    padding-left: 14px;
  }

  .raya-video-content {
    min-height: 175px;
    padding: 21px 20px;
  }

  .raya-video-content h3 {
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .raya-ai-page *,
  .raya-ai-page *::before,
  .raya-ai-page *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Decorative cover layers must never block the video link. */
.raya-video-cover::after,
.raya-play-button,
.raya-play-icon {
  pointer-events: none;
}
