* {
  box-sizing: border-box;
}

.ss-carousel {
  min-height: 100vh;
  background: #F4F2ED;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins';
  overflow: hidden;
  position: relative;
  margin-top: -70px;
}

.ss-stage {
  position: relative;
  height: 85vh;
  max-height: 800px;
  width: 100%;
  max-width: 1400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ss-card {
  position: absolute;
  width: 850px;
  height: 100%;
  background: #ffffff;
  border-radius: 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: 2px #534949 solid;
}

/* IMPROVED GHOST CARD STYLING - MATCHES FIGMA */
.ss-card.ghost {
  filter: blur(8px);
  opacity: 1; /* Changed from 0.25 to show full opacity */
  pointer-events: none;
}

/* Add dark overlay to ghost cards */
.ss-card.ghost::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7); /* Dark overlay like in Figma */
  z-index: 100;
  border-radius: 32px;
  pointer-events: none;
}

.ss-card.prev {
  transform: translate(calc(-50% - 200px), -50%) scale(0.75); /* Increased distance and reduced scale */
  z-index: 1;
}

.ss-card.next {
  transform: translate(calc(-50% + 200px), -50%) scale(0.75); /* Increased distance and reduced scale */
  z-index: 1;
}

.ss-card.active {
  transform: translate(-50%, -50%) scale(1);
  z-index: 10;
}

/* Profile Top Section - Image + Thumbnails Side by Side */
.profile-top {
  position: relative;
  width: 106%;
  height: 420px;
  display: flex;
  gap: 12px;
  padding: 24px 24px 0 24px;
  flex-shrink: 0;
  background: #f4F2ED;
}

/* Main Profile Image */
.profile-main {
  flex: 1;
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background-size: cover;
  background-position: top;
  background-repeat: no-repeat;
}

/* Overlay for Name on Main Image */
.profile-main-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 36px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
  color: white;
}

.profile-main .profile-name {
  font-family: 'Poppins';
  font-size: 40px;
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 8px;
  color: #ffffff;
}

.profile-main .profile-tagline {
  font-size: 18px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 400;
}

/* Thumbnail Gallery - Side by Side with Main Image */
.profile-thumbs {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 180px;
  flex-shrink: 0;
}

.profile-thumbs img {
  width: 125px;
  height: calc((396px - 24px) / 3)!important;
  border-radius: 16px!important;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s, opacity 0.3s, box-shadow 0.3s;
  border: 2px solid transparent;
}

.profile-thumbs img:hover {
  transform: scale(1.05);
  opacity: 0.9;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Profile Content */
.profile-content {
  padding: 20px 48px 0px;
  flex: 1;
  overflow: auto;
  display: flex;
  flex-direction: column;
  background: #f4F2ED;
}

.profile-content::-webkit-scrollbar {
  width: 6px;
}

.profile-content::-webkit-scrollbar-track {
  background: #f5f5f5;
}

.profile-content::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 3px;
}

.profile-content::-webkit-scrollbar-thumb:hover {
  background: #ccc;
}

/* Section Titles */
.section-title {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 4px;
  margin-top: 0;
  line-height: 1.3;
}

.profile-description {
  font-size: 15px;
  line-height: 1.7;
  color: #666;
  margin-bottom: -14px;
  display: flex;
}

.profile-description .read-more {
  color: #666;
  text-decoration: underline;
  cursor: pointer;
  font-weight: 500;
  margin-left: 4px;
  display: none;
}

.profile-description .read-more:hover {
  color: #333;
}

/* Lifestyles & Values Section */
.values-section-title {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 4px;
  margin-top: 8px;
}

/* Profile Values Grid */
.profile-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px 32px;
  margin-bottom: 12px;
}

.profile-values .value {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-values span {
  font-size: 16px;
  color: #999;
  font-weight: 400;
  line-height: 1.3;
}

.profile-values strong {
  font-size: 18px;
  font-weight: 500;
  color: #1a1a1a;
  line-height: 1.4;
}

/* CTA Button */
.profile-cta {
  margin-top: auto;
  width: calc(100% + 96px);
  margin-left: -48px;
  height: 50px;
  background: #1a1a1a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.05em;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s;
  flex-shrink: 0;
  gap: 8px;
}

.profile-cta:hover {
  background: #000;
}

/* Navigation Dots with Numbers */
.ss-nav {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 20;
}

.ss-nav span {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  color: #666;
  font-family: 'Poppins';
}

.ss-nav span:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: scale(1.08);
  border-color: rgba(0, 0, 0, 0.12);
}

.ss-nav span.active {
  background: #1a1a1a;
  color: #fff;
  transform: scale(1.12);
  border-color: #1a1a1a;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 1200px) {
  .ss-card {
    width: 700px;
  }
  
  .ss-card.prev {
    transform: translate(calc(-50% - 400px), -50%) scale(0.85);
  }
  
  .ss-card.next {
    transform: translate(calc(-50% + 400px), -50%) scale(0.85);
  }

  .profile-thumbs,
  .profile-thumbs img {
    width: 140px;
  }

  .profile-thumbs img {
    height: calc((396px - 24px) / 3);
  }
}

@media (max-width: 768px) {
  .ss-carousel {
    padding: 20px 10px;
  }

  .ss-card {
    width: 90vw;
    max-width: 480px;
  }
  
  .ss-card.prev,
  .ss-card.next {
    opacity: 0;
    pointer-events: none;
  }
  
  .profile-top {
    height: 350px;
    padding: 6px 30px 0 10px;
    gap: 10px;
  }

  .profile-main .profile-name {
    font-size: 32px;
  }

  .profile-main .profile-tagline {
    font-size: 13px;
  }

  .profile-thumbs,
  .profile-thumbs img {
    width: 100px;
  }

  .profile-thumbs img {
    height: calc((334px - 20px) / 3);
  }

  .profile-content {
    padding: 28px 32px 24px;
    overflow: auto;
  }
  
  .profile-values {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 20px;
  }
  
  .ss-nav {
    bottom: 5px;
    gap: 8px;
  }
  
  .ss-nav span {
    width: 40px;
    height: 40px;
    font-size: 12px;
  }

  .profile-cta {
    width: calc(100% + 64px);
    margin-left: -32px;
    height: 60px;
  }
}