/* Solutions Page - Template Layout */

/* Video carousel hero */
.solutions-video-carousel {
  position: relative;
  height: 70vh;
  min-height: 400px;
  max-height: 600px;
  overflow: hidden;
  background: #1a2b5e;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease;
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.carousel-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.75) contrast(1.08) brightness(0.92);
  animation: carousel-video-zoom 18s ease-in-out infinite alternate;
}

@keyframes carousel-video-zoom {
  0% {
    transform: scale(1) translate(0, 0);
  }
  100% {
    transform: scale(1.12) translate(2%, 1%);
  }
}

.carousel-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,43,94,0.9) 0%, rgba(26,43,94,0.4) 50%, transparent 100%);
  z-index: 1;
}

.carousel-overlay {
  position: absolute;
  bottom: 3rem;
  left: 2.5rem;
  right: 2.5rem;
  z-index: 2;
  color: #ffffff;
  text-align: center;
}

.carousel-title {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-align: center;
}

.carousel-desc {
  font-size: 1.1rem;
  margin: 0 auto 1rem;
  opacity: 0.95;
  text-align: center;
}

.carousel-cta {
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0.9;
}

.carousel-nav {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  z-index: 3;
}

.carousel-prev,
.carousel-next {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}

.carousel-prev:hover,
.carousel-next:hover {
  background: rgba(255,255,255,0.3);
  border-color: #fff;
}

.carousel-dots {
  display: flex;
  gap: 0.5rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.8);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}

.carousel-dot:hover,
.carousel-dot.active {
  background: rgba(255,255,255,0.9);
}

@media (max-width: 768px) {
  .solutions-video-carousel {
    height: 55vh;
    min-height: 350px;
  }

  .carousel-overlay {
    left: 1.5rem;
    right: 1.5rem;
    bottom: 4rem;
  }
}

.solutions-main {
  background: #ffffff;
  min-height: 60vh;
  padding: 4rem 2.5rem 4rem;
}

.solution-card {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  align-items: start;
  border-top: 1px solid rgba(26, 43, 94, 0.12);
}

.solution-card .solution-content {
  order: 1;
}

.solution-card .solution-image {
  order: 2;
}

.solution-image {
  border-radius: 12px;
  overflow: hidden;
  background: #f5f6f8;
}

.solution-image img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.solution-card:first-child {
  border-top: none;
}

.solution-card + .solution-card {
  padding-top: 4rem;
  margin-top: 4rem;
}

.solution-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.solution-header {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.solution-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: #e8f5e9;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2e7d32;
}

.solution-icon svg {
  width: 28px;
  height: 28px;
}

.solution-icon-legal {
  background: #e3f2fd;
  color: #1565c0;
}

.solution-icon-finance {
  background: #fff3e0;
  color: #e65100;
}

.solution-title {
  font-size: var(--subheading-font-size);
  font-weight: 700;
  color: #1a2b5e;
  margin: 0 0 0.5rem;
  line-height: 1.2;
}

.solution-intro {
  font-size: 1rem;
  color: #1a2b5e;
  opacity: 0.9;
  margin: 0;
  line-height: 1.5;
}

.solution-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.solution-block {
  font-size: 0.95rem;
  color: #1a2b5e;
  line-height: 1.6;
}

.solution-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.solution-block ul {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}

.solution-block ul li {
  margin-bottom: 0.35rem;
}

.solution-block p {
  margin: 0.35rem 0 0;
}

/* Success Story Box */
.success-story {
  background: #f5f6f8;
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  border-left: 4px solid #5c9ead;
  position: sticky;
  top: 2rem;
}

.success-story-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1a2b5e;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 1.25rem;
}

.success-story-item {
  font-size: 0.9rem;
  color: #1a2b5e;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.success-story-item:last-child {
  margin-bottom: 0;
}

.success-story-item strong {
  font-weight: 600;
}

@media (max-width: 900px) {
  .solution-card {
    grid-template-columns: 1fr;
  }

  .solution-image {
    order: 1;
  }

  .solution-content {
    order: 2;
  }

  .solution-image img {
    height: 200px;
  }

  .success-story {
    position: static;
  }
}

@media (max-width: 600px) {
  .solutions-main {
    padding: 3rem 1.5rem;
  }

  .solution-image img {
    height: 160px;
  }

  .solution-header {
    flex-direction: column;
  }

  .solution-icon {
    width: 48px;
    height: 48px;
  }

  .solution-icon svg {
    width: 24px;
    height: 24px;
  }

  .solution-title {
    font-size: var(--subheading-font-size);
  }
}

@media (max-width: 480px) {
  .solutions-video-carousel {
    height: 50vh;
    min-height: 280px;
  }

  .carousel-overlay {
    left: 1rem;
    right: 1rem;
    bottom: 2rem;
  }

  .carousel-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  .solutions-main {
    padding: 2rem 1rem 3rem;
  }

  .solution-card + .solution-card {
    padding-top: 2.5rem;
    margin-top: 2.5rem;
  }

  .solution-content {
    gap: 1.25rem;
  }
}
