/* Main Container */
.sa-cc {
  width: 100%;
  position: relative;
  overflow: hidden;
}

/* Viewport */
.sa-cc-viewport {
  overflow: hidden;
  width: 100%;
}

/* Track */
.sa-cc-track {
  display: flex;
  transition: transform 400ms cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  align-items: stretch;
}

/* Cards */
.sa-cc-card {
  flex-shrink: 0;
  text-decoration: none;
  transition: transform 0.4s ease, opacity 0.4s ease, filter 0.4s ease;
  display: flex;
  flex-direction: row;
  background: #2b30c27e;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  border: 1px solid #ffffff24;
  opacity: 0.5;
  filter: blur(5px);
  transform: scale(0.85);
  justify-content: space-between;
}

@media (min-width: 2560px) {
  .sa-cc-card {
    width: 50vw;
  }
}

@media (max-width: 1024px) {
  .sa-cc-card {
    width: 78vw; /* 78% voor peek rechts */
    flex-direction: column;
  }
}

.sa-cc-card.sa-cc-active {
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.sa-cc-card:hover {
  background: #0008ff7d;
}

/* Card Body */
.sa-cc-body {
  padding: 2em;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.sa-cc-title {
  margin: 0 0 12px 0;
  font-size: 2.1em;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.sa-cc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px 0;
}

.sa-cc-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.sa-cc-short {
  margin: 0 0 16px 0;
  font-size: 1.1em;
  color: #f5fcff;
  line-height: 1.6;
}

.sa-cc-lesson-count {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  margin: 0 0 16px 0;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: fit-content;
}

.sa-cc-lesson-count svg {
  flex-shrink: 0;
}

/* Review */
.sa-cc-review {
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sa-cc-review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sa-cc-review-photo {
  width: 56px !important;
  height: 56px !important;
  border-radius: 50% !important;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.sa-cc-review-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.sa-cc-review-name {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
}

.sa-cc-review-title {
  font-size: 13px;
  color: #999;
  line-height: 1.3;
}

/* CTA */
.sa-cc-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  transition: gap 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}

.sa-cc-card:hover .sa-cc-cta {
  opacity: 1;
  gap: 10px;
}

.sa-cc-arrow {
  font-size: 20px;
  line-height: 1;
  transition: transform 0.3s ease;
}

.sa-cc-card:hover .sa-cc-arrow {
  transform: translateX(3px);
}

/* Thumbnail - BACKGROUND IMAGE */
.sa-cc-thumb {
  background: #1d1d1d;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
  flex: 0 0 50%;
  aspect-ratio: 16 / 9;
}

.sa-cc-card:hover .sa-cc-thumb img {
  transform: scale(1.04);
}

/* Navigation */
.sa-cc-bottom-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 65vw;
  margin: 32px auto 0 auto;
  padding: 0 24px;
}

@media (min-width: 2560px) {
  .sa-cc-bottom-nav {
    max-width: 50vw;
  }
}

@media (max-width: 1024px) {
  .sa-cc-bottom-nav {
    max-width: 78vw; /* Match card width voor consistentie */
  }
}

.sa-cc-word-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.sa-cc-word-nav-item {
  font-size: 16px;
  font-weight: 500;
  color: #888;
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.sa-cc-word-nav-item:hover,
.sa-cc-word-nav-item:focus {
  color: #ccc;
  outline: none;
}

.sa-cc-word-nav-item.active {
  color: #fff;
  font-weight: 600;
  border-bottom-color: #fff;
}

.sa-cc-nav-wrapper {
  display: flex;
  gap: 12px;
  align-items: center;
}

.sa-cc-nav {
  all: unset;
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  display: grid !important;
  place-items: center !important;
  cursor: pointer !important;
  color: #ccc !important;
  background: transparent !important;
  border: 1px solid #555 !important;
  transition: all 0.2s ease !important;
  font-size: 20px !important;
}

.sa-cc-nav:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: #888;
  transform: scale(1.05);
}

.sa-cc-nav:active {
  transform: scale(0.95);
}

.sa-cc-nav span {
  font-size: 20px;
  line-height: 1;
}

/* Responsive */
@media (max-width: 1024px) {
  .sa-cc-thumb {
    aspect-ratio: 16 / 9;
    flex: 0 0 auto;
    width: 100%;
    height: 25vh;
    aspect-ratio: auto;
  }
  .sa-cc-body {
    padding: 24px;
  }
  .sa-cc-title {
    font-size: 20px;
  }
  .sa-cc-short {
    font-size: 14px;
  }
  .sa-cc-review-photo {
    width: 40px !important;
    height: 40px !important;
  }
  .sa-cc-review-name {
    font-size: 14px;
  }
  .sa-cc-review-title {
    font-size: 12px;
  }
}

@media (max-width: 468px) {
  .sa-cc-body {
    height: 100%;
  }
  
  .sa-cc-bottom-nav {
    flex-direction: column;
    gap: 24px;
    margin-top: 24px;
  }
  .sa-cc-word-nav {
    justify-content: center;
    order: 2;
    gap: 16px 20px;
    display: none;
  }
  .sa-cc-nav-wrapper {
    order: 1;
  }
  .sa-cc-body {
    padding: 20px;
  }
  .sa-cc-title {
    font-size: 1.5em;
  }
  .sa-cc-short {
    font-size: 1em;
  }
  .sa-cc-review-photo {
    width: 36px !important;
    height: 36px !important;
  }

  .sa-cc-lesson-count {
    font-size: 0.6em;
  }

  .sa-cc-tag {
    font-size: 0.6em;
  }
}