/*
  Company Timeline Carousel - styles tuned to match the provided mockup.
  Notes:
  - Uses Swiper for scrolling.
  - Only styles elements inside .ctc-wrap to avoid theme conflicts.
*/

.ctc-wrap{
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 48px 6px;
  box-sizing: border-box;
}

.ctc-swiper{
  position: relative;
  padding: 0 6px 0;
}

/* Horizontal line */
.ctc-line{
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 24px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, #12d3c3 0%, #06b7e6 30%, #0a7aff 100%);
  opacity: 0.95;
  pointer-events: none;
}

/* Navigation buttons */
.ctc-nav{
  position: absolute;
  bottom: 12px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #bfbfbf;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}
.ctc-prev{ left: 0; }
.ctc-next{ right: 0; }

.ctc-arrow{
  font-size: 22px;
  line-height: 1;
  color: #ffffff;
  transform: translateY(-1px);
}

/* Slide layout */
.ctc-wrap .swiper{
  overflow: visible;
}

.ctc-wrap .swiper-slide{
  height: auto;
  display: flex;
  justify-content: center;
}

.ctc-item{
  position: relative;
  width: 250px;
  padding-bottom: 54px; /* space for dot */
}

/* Card */
.ctc-card{
  position: relative;
  background: #ffffff;
  border: 2px solid #cfcfcf;
  border-radius: 20px;
  padding: 26px 20px 56px;
  text-align: center;
  box-shadow:
    0 8px 0 rgba(0,0,0,0.08),
    0 12px 24px rgba(0,0,0,0.10);
}

/* Inner soft highlight */
.ctc-card::before{
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 16px;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.75);
  pointer-events: none;
}

/* Dotted side rails */
.ctc-card::after{
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  right: -12px;
  width: 14px;
  background-image: radial-gradient(circle, rgba(120,120,120,0.55) 1.3px, rgba(0,0,0,0) 1.35px);
  background-size: 8px 10px;
  background-position: center;
  filter: blur(0.1px);
  opacity: 0.65;
  border-radius: 10px;
  pointer-events: none;
}

/* Left dotted shadow (subtle) */
.ctc-card .ctc-card-content:before{
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: -12px;
  width: 14px;
  background-image: radial-gradient(circle, rgba(120,120,120,0.45) 1.3px, rgba(0,0,0,0) 1.35px);
  background-size: 8px 10px;
  background-position: center;
  opacity: 0.35;
  border-radius: 10px;
  pointer-events: none;
}

.ctc-card-content{
  position: relative;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 600;
  color: #0a7aff;
  margin: 0;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Year bubble */
.ctc-year{
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #13d2c4 0%, #0aa6ff 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 28px;
  letter-spacing: 0.5px;
  padding: 12px 34px;
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.16);
}

.ctc-year::after{
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 12px solid #11c0d9;
}

/* Dot + ring */
.ctc-dot{
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #ffffff;
  border: 4px solid #0a7aff;
  box-shadow: 0 0 0 3px rgba(255,255,255,1);
}

/* Slight outer ring */
.ctc-dot::before{
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 999px;
  border: 2px solid rgba(10,122,255,0.6);
  opacity: 0.0; /* not always visible in mockup; enable per active if desired */
}

/* Swiper tweaks */
.ctc-wrap .swiper-wrapper{
  align-items: flex-start;
}

.ctc-empty{
  padding: 12px 16px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
}

/* Responsive sizing to match layout */
@media (max-width: 1024px){
  .ctc-wrap{ padding: 18px 40px 6px; }
  .ctc-item{ width: 240px; }
}

@media (max-width: 768px){
  .ctc-wrap{ padding: 18px 38px 6px; }
  .ctc-item{ width: 260px; }
  .ctc-line{ left: 14px; right: 14px; }
}

@media (max-width: 480px){
  .ctc-wrap{ padding: 18px 38px 6px; }
  .ctc-item{ width: 92vw; max-width: 320px; }
}
