/**
 * Circles Banner Widget - Stylesheet
 * Compatible with Elementor, WordPress 5.8+ & all modern browsers.
 */

.cbw-single-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  font-family: inherit;
}

.cbw-single-wrapper *,
.cbw-single-wrapper *::before,
.cbw-single-wrapper *::after {
  box-sizing: border-box;
}

.cbw-link-wrapper {
  text-decoration: none;
  color: inherit;
  display: inline-flex;
}

.cbw-item-container {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  transition: transform 0.3s ease;
}

/* Position: Circle on Left, Text on Right (Default - People) */
.cbw-pos-left .cbw-item-container {
  flex-direction: row;
}

.cbw-pos-left .cbw-dot {
  right: 0;
  transform: translate(50%, -50%);
}

.cbw-pos-left .cbw-text-block {
  text-align: left;
}

/* Position: Circle on Right, Text on Left (Processes) */
.cbw-pos-right .cbw-item-container {
  flex-direction: row-reverse;
}

.cbw-pos-right .cbw-dot {
  left: 0;
  transform: translate(-50%, -50%);
}

.cbw-pos-right .cbw-text-block {
  text-align: right;
}

/* Circular Image Wrapper */
.cbw-circle-image-wrapper {
  position: relative;
  flex-shrink: 0;
}

.cbw-circle-image {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.14);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
  background-color: #f8fafc;
}

.cbw-circle-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

/* Attached Connector Dot */
.cbw-dot {
  position: absolute;
  top: 50%;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s ease;
}

/* Hover Zoom Effect */
.cbw-has-zoom .cbw-item-container:hover .cbw-circle-image {
  transform: scale(1.05);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
}

.cbw-has-zoom .cbw-item-container:hover .cbw-circle-image img {
  transform: scale(1.08);
}

.cbw-has-zoom .cbw-item-container:hover .cbw-dot {
  transform: scale(1.2) translateY(-40%);
}

.cbw-pos-left.cbw-has-zoom .cbw-item-container:hover .cbw-dot {
  transform: translate(50%, -50%) scale(1.2);
}

.cbw-pos-right.cbw-has-zoom .cbw-item-container:hover .cbw-dot {
  transform: translate(-50%, -50%) scale(1.2);
}

/* Typography & Titles */
.cbw-text-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cbw-title {
  margin: 0;
  padding: 0;
  font-size: 38px;
  font-weight: 700;
  line-height: 1.2;
  color: #0f172a;
  letter-spacing: -0.5px;
  white-space: nowrap;
}

.cbw-subtitle {
  margin: 6px 0 0 0;
  padding: 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  color: #64748b;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .cbw-circle-image {
    width: 200px;
    height: 200px;
  }

  .cbw-title {
    font-size: 30px;
  }

  .cbw-dot {
    width: 20px;
    height: 20px;
  }

  .cbw-item-container {
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .cbw-circle-image {
    width: 140px;
    height: 140px;
  }

  .cbw-title {
    font-size: 22px;
  }

  .cbw-dot {
    width: 16px;
    height: 16px;
  }

  .cbw-item-container {
    gap: 16px;
  }
}
