/* ===== Circular Carousel (3D ring) ===== */
.cc {
  position: relative;
  width: 100%;
  height: 560px;
  outline: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}
.cc.cc-grabbing { cursor: grabbing; }
.cc:focus-visible { box-shadow: 0 0 0 2px var(--clr-sky, #7FB8E8) inset; border-radius: 16px; }

.cc-stage {
  position: absolute;
  inset: 0;
  overflow: visible;
}
.cc-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
  will-change: transform;
}
.cc-card {
  position: absolute;
  left: 0;
  top: 0;
  transform-style: preserve-3d;
  will-change: transform;
}
.cc-strip {
  position: absolute;
  top: 0;
  transform-style: preserve-3d;
  pointer-events: auto;
}
.cc-front,
.cc-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.cc-front {
  background-repeat: no-repeat;
  background-color: #12306a;
  overflow: hidden;
}
/* depth fade towards the fade colour */
.cc-front::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgb(var(--fadecol, 0,0,0));
  opacity: var(--fade, 0);
  pointer-events: none;
}
.cc-back { transform: rotateY(180deg); }

/* soft highlight ring on the focused card */
.cc-card.cc-active .cc-front { filter: saturate(1.08); }
.cc-noimg .cc-front { background-image: linear-gradient(135deg, #1E4FA3, #0B1F4B) !important; }

/* ===== Home products section wrapper ===== */
.cc-section {
  position: relative;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(47,128,208,0.35), transparent 60%),
    linear-gradient(180deg, #0B1F4B 0%, #0a1a40 55%, #07142f 100%);
  color: #fff;
  overflow: hidden;
  padding-bottom: 3.5rem;
}
.cc-section::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(127,184,232,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127,184,232,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  pointer-events: none;
}
.cc-section .section-title { color: #fff; }
.cc-section .section-title span { color: var(--clr-sky, #7FB8E8); }
.cc-section .section-lead { color: rgba(255,255,255,0.75); }
.cc-section .section-tag {
  background: rgba(127,184,232,0.15);
  color: var(--clr-sky, #7FB8E8);
  border: 1px solid rgba(127,184,232,0.35);
}

.cc-wrap { position: relative; margin-top: 0.5rem; }
.cc-chips {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem;
  margin: 1.6rem 0 0.2rem;
  position: relative; z-index: 2;
}
.cc-chip {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(127,184,232,0.35);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.85);
  font-weight: 600; font-size: 0.9rem;
  cursor: pointer;
  transition: background .25s, border-color .25s, transform .25s;
}
.cc-chip:hover { background: rgba(127,184,232,0.18); transform: translateY(-1px); }
.cc-chip.active {
  background: linear-gradient(135deg, #2F80D0, #1E4FA3);
  border-color: transparent; color: #fff;
  box-shadow: 0 6px 18px rgba(47,128,208,0.4);
}

.cc-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff; cursor: pointer; z-index: 5;
  transition: background .25s, transform .25s;
}
.cc-arrow:hover { background: rgba(47,128,208,0.7); transform: translateY(-50%) scale(1.08); }
.cc-arrow.prev { left: max(1rem, 3vw); }
.cc-arrow.next { right: max(1rem, 3vw); }

.cc-caption {
  position: relative; z-index: 2;
  text-align: center;
  max-width: 640px;
  margin: 0.5rem auto 0;
  padding: 0 1.25rem;
  min-height: 190px;
}
.cc-cat {
  display: inline-block;
  font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700;
  color: var(--clr-sky, #7FB8E8);
}
.cc-title { font-size: clamp(1.3rem, 2.4vw, 1.8rem); font-weight: 700; margin: 0.35rem 0 0.5rem; color: #fff; }
.cc-blurb { color: rgba(255,255,255,0.78); font-size: 0.98rem; line-height: 1.6; margin-bottom: 1.1rem; }
.cc-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.cc-count { margin-top: 0.9rem; font-size: 0.8rem; color: rgba(255,255,255,0.5); letter-spacing: 0.1em; }
.cc-hint { margin-top: 0.4rem; font-size: 0.78rem; color: rgba(255,255,255,0.45); }
.cc-caption-inner { transition: opacity .25s, transform .25s; }
.cc-caption-inner.swap { opacity: 0; transform: translateY(6px); }

.cc-section .btn-outline { color: #fff; border-color: rgba(255,255,255,0.5); }
.cc-section .btn-outline:hover { background: rgba(255,255,255,0.12); }

@media (max-width: 720px) {
  .cc { height: 440px; }
  .cc-arrow { display: none; }
  .cc-caption { min-height: 210px; }
}
@media (prefers-reduced-motion: reduce) {
  .cc-caption-inner { transition: none; }
}
