.ci-tabsec {
  padding: var(--space-xl) 0;
  position: relative;
  overflow: hidden;
}

/* Light variant */
.ci-tabsec--light {
  background: var(--bg-light);
}
/* Dark variant */
.ci-tabsec--dark {
  background: var(--primary);
}

/* ── Background ── */
.ci-tabsec__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.ci-tabsec--light .ci-tabsec__bg-glow {
  position: absolute;
  top: -100px; right: -60px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,194,168,0.08) 0%, transparent 65%);
}
.ci-tabsec--dark .ci-tabsec__bg-glow {
  position: absolute;
  top: -140px; left: -80px;
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(0,194,168,0.11) 0%, transparent 65%);
}
.ci-tabsec__bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,194,168,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,194,168,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ── Header ── */
.ci-tabsec__header {
  position: relative;
  z-index: 1;
  margin-bottom: var(--space-lg);
}
.ci-tabsec__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-secondary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--secondary);
}
.ci-tabsec__eyebrow-line {
  display: block;
  width: 32px; height: 2px;
  background: var(--secondary);
  border-radius: 2px;
}

.ci-tabsec__body {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: var(--space-lg);
  align-items: start;
}

.ci-tabsec__nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: sticky;
  top: 100px;
}

.ci-tabsec__btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: left;
  font-family: var(--font-primary);
  font-size: 0.88rem;
  font-weight: 500;
  overflow: hidden;
  transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.25s, box-shadow 0.25s;
}

/* Light section buttons */
.ci-tabsec--light .ci-tabsec__btn {
  background: var(--white);
  border: 1px solid rgba(0,194,168,0.12);
  color: var(--text-light);
}
.ci-tabsec--light .ci-tabsec__btn:hover {
  background: rgba(0,194,168,0.04);
  border-color: rgba(0,194,168,0.28);
  color: var(--text-dark);
  transform: translateX(3px);
}
.ci-tabsec--light .ci-tabsec__btn.is-active {
  background: var(--white);
  border-color: rgba(0,194,168,0.4);
  color: var(--primary);
  font-weight: 700;
  box-shadow: 0 6px 24px rgba(0,194,168,0.1);
  transform: translateX(5px);
}

/* Dark section buttons */
.ci-tabsec--dark .ci-tabsec__btn {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(0,194,168,0.1);
  color: rgba(255,255,255,0.5);
}
.ci-tabsec--dark .ci-tabsec__btn:hover {
  background: rgba(0,194,168,0.07);
  border-color: rgba(0,194,168,0.25);
  color: rgba(255,255,255,0.85);
  transform: translateX(3px);
}
.ci-tabsec--dark .ci-tabsec__btn.is-active {
  background: rgba(0,194,168,0.1);
  border-color: rgba(0,194,168,0.4);
  color: var(--white);
  font-weight: 700;
  box-shadow: 0 6px 24px rgba(0,0,0,0.2);
  transform: translateX(5px);
}

/* Left teal border on active */
.ci-tabsec__btn::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--secondary);
  border-radius: 0 2px 2px 0;
  transform: scaleY(0);
  transition: transform 0.3s ease;
}
.ci-tabsec__btn.is-active::before { transform: scaleY(1); }

/* Number */
.ci-tabsec__btn-num {
  font-family: var(--font-primary);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  flex-shrink: 0;
  transition: color 0.25s;
}
.ci-tabsec--light .ci-tabsec__btn-num     { color: rgba(0,194,168,0.28); }
.ci-tabsec--light .ci-tabsec__btn.is-active .ci-tabsec__btn-num { color: var(--secondary); }
.ci-tabsec--dark  .ci-tabsec__btn-num     { color: rgba(0,194,168,0.3); }
.ci-tabsec--dark  .ci-tabsec__btn.is-active .ci-tabsec__btn-num  { color: var(--secondary); }

/* Label */
.ci-tabsec__btn-label { flex: 1; line-height: 1.35; }

/* Arrow */
.ci-tabsec__btn-arrow {
  flex-shrink: 0;
  color: rgba(0,194,168,0.35);
  transition: transform 0.25s, color 0.25s;
}
.ci-tabsec__btn.is-active .ci-tabsec__btn-arrow {
  transform: translateX(3px);
  color: var(--secondary);
}

/* Progress bar inside button */
.ci-tabsec__btn-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: rgba(0,194,168,0.1);
}
.ci-tabsec__btn-bar-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--secondary);
  border-radius: 2px;
}

.ci-tabsec__panels { position: relative; }

.ci-tabsec__panel { display: none; }
.ci-tabsec__panel.is-active {
  display: block;
  animation: ciPanelIn 0.4s ease forwards;
}
@keyframes ciPanelIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Caption bar */
.ci-tabsec__caption {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  font-family: var(--font-primary);
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.ci-tabsec--light .ci-tabsec__caption {
  background: var(--primary);
  color: var(--white);
}
.ci-tabsec--dark .ci-tabsec__caption {
  background: rgba(0,194,168,0.15);
  border: 1px solid rgba(0,194,168,0.25);
  border-bottom: none;
  color: var(--white);
}

.ci-tabsec__caption-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--secondary);
  flex-shrink: 0;
  animation: ciCapPulse 2s ease infinite;
}
@keyframes ciCapPulse {
  0%,100% { box-shadow: 0 0 0 3px rgba(0,194,168,0.25); }
  50%      { box-shadow: 0 0 0 6px rgba(0,194,168,0.07); }
}
.ci-tabsec__caption-count {
  margin-left: auto;
  font-family: var(--font-secondary);
  font-size: 0.7rem;
  opacity: 0.55;
  white-space: nowrap;
}

/* Image frame — BIG on desktop */
.ci-tabsec__img-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0d2744;
}
.ci-tabsec--light .ci-tabsec__img-frame {
  box-shadow: 0 20px 60px rgba(11,31,58,0.14);
}
.ci-tabsec--dark .ci-tabsec__img-frame {
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  border-left: 1px solid rgba(0,194,168,0.12);
  border-right: 1px solid rgba(0,194,168,0.12);
}

.ci-tabsec__img-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.ci-tabsec__panel.is-active .ci-tabsec__img-frame img { transform: scale(1.02); }

.ci-tabsec__img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,31,58,0.3) 0%, transparent 50%);
  z-index: 1;
  pointer-events: none;
}

/* Description strip */
.ci-tabsec__desc-strip {
  padding: 16px 20px;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}
.ci-tabsec--light .ci-tabsec__desc-strip {
  background: var(--white);
  border: 1px solid rgba(0,194,168,0.12);
  border-top: none;
}
.ci-tabsec--dark .ci-tabsec__desc-strip {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(0,194,168,0.14);
  border-top: none;
}
.ci-tabsec__desc-strip p {
  font-family: var(--font-secondary);
  font-size: 0.9rem;
  line-height: 1.75;
}
.ci-tabsec--light .ci-tabsec__desc-strip p { color: var(--text-light); }
.ci-tabsec--dark  .ci-tabsec__desc-strip p { color: rgba(255,255,255,0.6); }

/* Corner accents */
.ci-tabsec__corner {
  position: absolute;
  width: 44px; height: 44px;
  pointer-events: none;
  z-index: 3;
}
.ci-tabsec__corner--tl {
  top: 44px; left: 0;
  border-top: 3px solid var(--secondary);
  border-left: 3px solid var(--secondary);
}
.ci-tabsec__corner--br {
  bottom: 46px; right: 0;
  border-bottom: 3px solid var(--secondary);
  border-right: 3px solid var(--secondary);
  border-radius: 0 0 var(--radius-md) 0;
}

/* Overall progress bar */
.ci-tabsec__progress {
  height: 3px;
  background: rgba(0,194,168,0.1);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  overflow: hidden;
  margin-top: 2px;
}
.ci-tabsec__progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--secondary), rgba(0,194,168,0.4));
  width: 25%;
  border-radius: 2px;
  transition: width 0.35s ease;
}

@media (max-width: 1100px) {
  .ci-tabsec__body { grid-template-columns: 260px 1fr; gap: var(--space-md); }
}

@media (max-width: 900px) {
  .ci-tabsec__body {
    grid-template-columns: 1fr;
  }
  .ci-tabsec__nav {
    flex-direction: row;
    overflow-x: auto;
    gap: 6px;
    position: static;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .ci-tabsec__nav::-webkit-scrollbar { display: none; }
  .ci-tabsec__btn {
    flex: 0 0 auto;
    width: auto;
    padding: 10px 14px;
    transform: none !important;
  }
  .ci-tabsec__btn-num,
  .ci-tabsec__btn-arrow { display: none; }
  .ci-tabsec__img-frame { aspect-ratio: 4/3; }
}

@media (max-width: 640px) {
  .ci-tabsec__img-frame { aspect-ratio: 3/2; }
  .ci-tabsec__desc-strip { padding: 12px 14px; }
  .ci-tabsec__desc-strip p { font-size: 0.84rem; }
  .ci-tabsec__btn { font-size: 0.82rem; }
}