/**
 * Student Story Block
 * Branded student spotlight section
 */

.student-story-block {
  padding: 0;
  margin: 3rem 0;
}

.student-story-block .ss-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 1.25rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

/* ── Accent bar (orange top border) ── */

.student-story-block .ss-accent-bar {
  height: 5px;
  background: linear-gradient(90deg, #ff6a13 0%, #ff8f4c 100%);
}

/* ── Two-column grid ── */

.student-story-block .ss-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

@media (min-width: 768px) {
  .student-story-block .ss-container {
    grid-template-columns: 1fr 1fr;
  }
}

/* ── Left column: text ── */

.student-story-block .ss-text-col {
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 768px) {
  .student-story-block .ss-text-col {
    padding: 3rem 2.5rem 3rem 3rem;
  }
}

.student-story-block .ss-eyebrow {
  display: inline-block;
  background: #0f172a;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.35rem 1rem;
  border-radius: 2rem;
  margin-bottom: 0.75rem;
  align-self: flex-start;
}

.student-story-block .ss-student-name {
  font-size: 1.5rem;
  font-weight: 900;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0 0 0.25rem 0;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .student-story-block .ss-student-name {
    font-size: 1.75rem;
  }
}

.student-story-block .ss-headline {
  font-size: 1.1rem;
  font-weight: 600;
  color: #ff6a13;
  margin: 0 0 1rem 0;
  line-height: 1.3;
}

.student-story-block .ss-divider {
  width: 3rem;
  height: 3px;
  background: #ff6a13;
  border-radius: 2px;
  margin-bottom: 1.25rem;
}

.student-story-block .ss-body {
  font-size: 0.95rem;
  line-height: 1.75;
  color: #475569;
}

.student-story-block .ss-body p {
  margin: 0 0 0.75rem 0;
}

.student-story-block .ss-body p:last-child {
  margin-bottom: 0;
}

/* ── CTA link ── */

.student-story-block .ss-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding: 0.7rem 1.75rem;
  background: #0f172a;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: background-color 0.2s, transform 0.2s;
  align-self: flex-start;
}

.student-story-block .ss-cta:hover {
  background: #ff6a13;
  transform: translateY(-2px);
}

.student-story-block .ss-cta svg {
  transition: transform 0.2s;
}

.student-story-block .ss-cta:hover svg {
  transform: translateX(3px);
}

/* ── Right column: media ── */

.student-story-block .ss-media-col {
  position: relative;
  min-height: 320px;
}

@media (min-width: 768px) {
  .student-story-block .ss-media-col {
    min-height: 440px;
  }
}

.student-story-block .ss-media-frame {
  position: relative;
  width: 100%;
  height: 100%;
}

.student-story-block .ss-featured-media {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.student-story-block .ss-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (min-width: 768px) {
  .student-story-block .ss-featured-media {
    position: absolute;
    inset: 0;
  }
}

/* ── Video thumbnail trigger ── */

.student-story-block .ss-video-trigger {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  cursor: pointer;
  -webkit-appearance: none !important;
  appearance: none !important;
}

@media (min-width: 768px) {
  .student-story-block .ss-video-trigger {
    position: absolute;
    inset: 0;
  }
}

.student-story-block .ss-video-trigger .ss-image {
  transition: transform 0.4s ease;
}

.student-story-block .ss-video-trigger:hover .ss-image {
  transform: scale(1.03);
}

.student-story-block .ss-video-placeholder {
  width: 100%;
  height: 100%;
  min-height: 280px;
  background: #0f172a;
}

.student-story-block .ss-play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  pointer-events: none;
  transition: transform 0.3s ease;
}

.student-story-block .ss-video-trigger:hover .ss-play-badge {
  transform: translate(-50%, -50%) scale(1.1);
}

.student-story-block .ss-play-badge svg circle {
  transition: fill 0.2s;
}

.student-story-block .ss-video-trigger:hover .ss-play-badge svg circle {
  fill: rgba(255, 106, 19, 0.85);
}

/* ── Video Lightbox Modal ── */

.student-story-block .ss-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.student-story-block .ss-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.student-story-block .ss-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  cursor: pointer;
}

.student-story-block .ss-modal-body {
  position: relative;
  z-index: 1;
  max-width: 480px;
  max-height: 90vh;
  width: 90vw;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #000;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.92);
  transition: transform 0.3s ease;
}

.student-story-block .ss-modal.is-open .ss-modal-body {
  transform: scale(1);
}

.student-story-block .ss-modal-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  color: #ffffff;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  -webkit-appearance: none !important;
  appearance: none !important;
}

.student-story-block .ss-modal-close:hover {
  opacity: 1;
}

.student-story-block .ss-modal-video {
  display: block;
  width: 100%;
  max-height: 85vh;
  outline: none;
}

/* ── Carousel inside the media column (no featured media) ── */

.student-story-block .ss-media-col--carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  min-height: 0;
}

@media (min-width: 768px) {
  .student-story-block .ss-media-col--carousel {
    min-height: 0;
    max-height: none;
    padding: 2.5rem 2rem;
  }
}

.student-story-block .ss-media-col--carousel .ss-carousel {
  width: 100%;
  max-width: 400px;
}

/* ── Photo Carousel ── */

.student-story-block .ss-carousel-section {
  padding: 0 2rem 2rem 2rem;
}

@media (min-width: 768px) {
  .student-story-block .ss-carousel-section {
    padding: 0 3rem 2.5rem 3rem;
  }
}

.student-story-block .ss-carousel {
  position: relative;
  overflow: hidden;
  max-width: 480px;
  margin: 0 auto;
}

.student-story-block .ss-carousel-track {
  display: flex;
  transition: transform 0.4s ease;
}

.student-story-block .ss-carousel-slide {
  flex: 0 0 100%;
  max-width: 100%;
}

.student-story-block .ss-carousel-slide img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 0.75rem;
  display: block;
}

/* Carousel controls */

.student-story-block .ss-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.student-story-block .ss-arrow-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 2px solid #e2e8f0 !important;
  background: #ffffff !important;
  color: #0f172a !important;
  padding: 0 !important;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
}

.student-story-block .ss-arrow-btn:hover {
  border-color: #ff6a13 !important;
  background: #fff7ed !important;
  color: #ff6a13 !important;
}

.student-story-block .ss-dots {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.student-story-block .ss-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  border: none !important;
  background: #cbd5e1 !important;
  padding: 0 !important;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
}

.student-story-block .ss-dot.is-active {
  background: #ff6a13 !important;
  transform: scale(1.4);
}

/* ── Mobile centering ── */

@media (max-width: 767px) {
  .student-story-block .ss-text-col {
    text-align: center;
    align-items: center;
  }

  .student-story-block .ss-eyebrow {
    align-self: center;
  }

  .student-story-block .ss-divider {
    margin-left: auto;
    margin-right: auto;
  }

  .student-story-block .ss-cta {
    align-self: center;
  }
}
