/**
 * SCS Speaking Widgets — Base Stylesheet
 */

/* ===================================================================
   Speaking Slideshow (scs-ss)
   =================================================================== */
.scs-ss {
  width: 100%;
  padding: 24px 0 48px;
  background: #ffffff;
  box-sizing: border-box;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.scs-ss *, .scs-ss *::before, .scs-ss *::after { box-sizing: border-box; }

/* Container */
.scs-ss__container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Stage */
.scs-ss__stage {
  position: relative;
  width: 100%;
  height: 480px;
  border-radius: 32px;
  overflow: hidden;
  box-shadow:
    0 30px 60px -20px rgba(15,24,32,0.35),
    0 10px 30px -10px rgba(15,24,32,0.20);
  background: #0f1820;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.scs-ss__stage.scs-ss--in { opacity: 1; transform: translateY(0); }

/* Always visible in Elementor editor */
.elementor-editor-active .scs-ss__stage {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

@media (max-width: 767px) { .scs-ss__stage { height: 480px; border-radius: 20px; } }
@media (max-width: 479px) { .scs-ss__stage { height: 460px; border-radius: 16px; } }

/* Slide */
.scs-ss__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-out;
  pointer-events: none;
}
.scs-ss__slide.scs-ss--active {
  opacity: 1;
  pointer-events: auto;
}
.scs-ss__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.scs-ss__slide-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

/* Overlay */
.scs-ss__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.80) 0%, rgba(0,0,0,0.30) 45%, transparent 100%);
  pointer-events: none;
}

/* Caption */
.scs-ss__caption {
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 32px;
  color: #ffffff;
  z-index: 2;
}
@media (max-width: 639px) {
  .scs-ss__caption { left: 20px; right: 20px; bottom: 20px; }
}

/* Eyebrow */
.scs-ss__eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.80);
}

/* Title */
.scs-ss__title {
  margin: 10px 0 0;
  font-family: "League Spartan", "Inter", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(22px, 4.2vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 800px;
  color: #ffffff;
}

/* Byline */
.scs-ss__byline {
  margin-top: 12px;
  font-style: italic;
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  max-width: 640px;
}
@media (max-width: 479px) {
  .scs-ss__byline { display: none; }
}

/* Dots */
.scs-ss__dots {
  position: absolute;
  bottom: 20px;
  right: 24px;
  display: flex;
  gap: 8px;
  z-index: 5;
  align-items: center;
}

/* Dots — use !important on every property to beat theme button styles */
.scs-ss__stage .scs-ss__dot,
.scs-ss__stage button.scs-ss__dot {
  height: 8px !important;
  width: 8px !important;
  min-width: 8px !important;
  max-width: 8px !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,0.50) !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  cursor: pointer !important;
  transition: width 0.35s ease, background 0.25s ease !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  outline: none !important;
  box-shadow: none !important;
  display: inline-block !important;
  flex-shrink: 0 !important;
  line-height: 1 !important;
  font-size: 0 !important;
  color: transparent !important;
  overflow: hidden !important;
  vertical-align: middle !important;
}
.scs-ss__stage .scs-ss__dot:hover,
.scs-ss__stage button.scs-ss__dot:hover {
  background: rgba(255,255,255,0.80) !important;
}
.scs-ss__stage .scs-ss__dot:focus,
.scs-ss__stage button.scs-ss__dot:focus,
.scs-ss__stage .scs-ss__dot:active,
.scs-ss__stage button.scs-ss__dot:active {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
  background: rgba(255,255,255,0.50) !important;
}
.scs-ss__stage .scs-ss__dot.scs-ss--active,
.scs-ss__stage button.scs-ss__dot.scs-ss--active {
  width: 32px !important;
  max-width: 32px !important;
  background: #ffffff !important;
}

@media (prefers-reduced-motion: reduce) {
  .scs-ss__stage { transition: none; opacity: 1; transform: none; }
  .scs-ss__slide { transition: none; }
  .scs-ss__dot   { transition: none; }
}

/* ===================================================================
   Speaking Solo (scs-sbs)
   =================================================================== */
.scs-sbs {
  width: 100%;
  padding: 32px 0 48px;
  background: #f8f8f8;
  box-sizing: border-box;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #0f1820;
}
.scs-sbs *, .scs-sbs *::before, .scs-sbs *::after { box-sizing: border-box; }

.scs-sbs__container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.scs-sbs__block {
  max-width: 768px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.scs-sbs__block.scs-sbs--in { opacity: 1; transform: translateY(0); }

/* Always visible in editor */
.elementor-editor-active .scs-sbs__block {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

@media (prefers-reduced-motion: reduce) {
  .scs-sbs__block { opacity: 1; transform: none; transition: none; }
}

.scs-sbs__eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #0f7c7b;
}

.scs-sbs__body {
  margin: 16px 0 0;
  font-size: 18px;
  line-height: 1.7;
  color: rgba(15,24,32,0.85);
}
.scs-sbs__body p { margin: 0; }
@media (max-width: 639px) {
  .scs-sbs__body { font-size: 16px; line-height: 1.65; }
}
