/**
 * Service Block - Skin Style Current Theme 6 Styles (Child Theme)
 *
 * Replicates the dual-circle Projects Grid Theme 6 layout for the Service Block widget:
 * - True 1:1 circular aspect ratio (aspect-ratio: 1 / 1, never eggs/ovals)
 * - Equal dimensions on desktop (min(600px, calc(50% - 15px)))
 * - Side-by-side flex row on desktop (≥ 992px)
 * - Centered hexagon badge at exact 50% seam
 * - Content circle: white background, thin border, centered title/excerpt/button
 * - Image circle: circular mask, object-fit: cover
 * - Red pill button with white circle arrow and sliding hover effect
 * - Buttery-smooth GSAP card stacking
 *
 * @package Consulten_Child
 */

/* ==========================================================================
   1. Card container & wrapper (solid base for clean stacking)
   ========================================================================== */

.tm-sc-service.has-skin-style-current-theme6 {
  width: 100%;
  position: relative;
}

.tm-sc-service.has-skin-style-current-theme6 .service-theme6-stack-container {
  position: relative;
  width: 100%;
  background-color: var(--theme-color-white, #ffffff);
}

.tm-sc-service.has-skin-style-current-theme6 .service-theme6-card-wrapper {
  width: 100%;
  margin: 0;
  padding: 40px 0;
  background-color: var(--theme-color-white, #ffffff) !important;
  box-sizing: border-box;
  will-change: transform;
  z-index: calc(var(--card-index, 0) + 10);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.tm-sc-service.has-skin-style-current-theme6 .service-current-theme6 {
  background-color: var(--theme-color-white, #ffffff) !important;
  position: relative;
  width: 100% !important;
  box-sizing: border-box !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

/* Ensure GSAP pin-spacers don't cause layout gaps or background breaks */
.service-theme6-stack-container > .pin-spacer {
  width: 100% !important;
  background-color: var(--theme-color-white, #ffffff) !important;
}

/* ==========================================================================
   2. Desktop Layout: Side-by-side flex row (≥ 992px)
   ========================================================================== */

@media (min-width: 992px) {
  .service-current-theme6 {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .service-current-theme6.is-reverse-row {
    flex-direction: row-reverse !important;
  }

  /* True Circular Geometry (Equal dimensions, enforces strict 1:1 aspect ratio) */
  .service-current-theme6 .content,
  .service-current-theme6 .image {
    width: min(600px, calc(50% - 15px)) !important;
    max-width: 600px !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 50% !important;
    flex: 0 0 auto !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
  }

  /* Content circle (Left or Right) */
  .service-current-theme6 .content {
    background-color: var(--theme-color-white, #ffffff) !important;
    border: 1px solid rgba(5, 20, 49, 0.2) !important;
    display: inline-flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    padding: clamp(24px, 4vw, 55px) !important;
    overflow: hidden !important;
    position: relative !important;
    z-index: 2 !important;
  }

  /* Image circle (Right or Left) */
  .service-current-theme6 .image {
    overflow: hidden !important;
    background: #f0f0f0 !important;
    position: relative !important;
    z-index: 1 !important;
  }

  .service-current-theme6 .image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    aspect-ratio: 1 / 1 !important;
    display: block !important;
    transition: transform 0.6s ease !important;
  }
}

/* ==========================================================================
   3. Center Hexagon Badge (sits at exactly 50% seam between equal circles)
   ========================================================================== */

.service-current-theme6::after,
.service-current-theme6.is-reverse-row::after {
  position: absolute !important;
  content: "" !important;
  width: 38px !important;
  height: 35px !important;
  background-color: var(--theme-color2, #051431) !important;
  clip-path: polygon(20% 0, 80% 0, 100% 50%, 80% 100%, 20% 100%, 0% 50%) !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  z-index: 5 !important;
  display: block !important;
  right: auto !important;
  bottom: auto !important;
}

@media (max-width: 991.98px) {
  .service-current-theme6::after,
  .service-current-theme6.is-reverse-row::after {
    display: none !important;
  }
}

/* ==========================================================================
   4. Typography inside Content Circle
   ========================================================================== */

.service-current-theme6 .content .title {
  color: var(--theme-color2, #051431) !important;
  font-weight: 500 !important;
  font-size: clamp(24px, 2.3vw, 40px) !important;
  line-height: 1.2 !important;
  margin: 0 0 14px !important;
  text-align: center !important;
  max-width: 82% !important;
  word-wrap: break-word !important;
}

.service-current-theme6 .content .title a {
  color: inherit !important;
  text-decoration: none !important;
  transition: color 0.3s ease !important;
}

.service-current-theme6 .content .title a:hover {
  color: var(--theme-color1, #ff2b56) !important;
}

.service-current-theme6 .content .excerpt {
  color: #555555 !important;
  font-size: clamp(13px, 1.05vw, 15px) !important;
  line-height: 1.6 !important;
  margin: 0 0 22px !important;
  text-align: center !important;
  max-width: 80% !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 4 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

/* ==========================================================================
   5. Button — Red Pill (--theme-color1) + White Circle Arrow with Hover Slide
   ========================================================================== */

.service-current-theme6 .content .theme-btn-main {
  display: inline-flex !important;
  align-items: center !important;
  position: relative !important;
  text-decoration: none !important;
}

/* Red pill */
.service-current-theme6 .content .theme-btn-main .theme-btn {
  background: var(--theme-color1, #ff2b56) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  padding: 13px 28px !important;
  display: inline-flex !important;
  align-items: center !important;
  border-radius: 40px !important;
  transition: all 400ms ease !important;
}

/* White circle arrows with dark navy icon */
.service-current-theme6 .content .theme-btn-main .theme-btn-arrow-left,
.service-current-theme6 .content .theme-btn-main .theme-btn-arrow-right {
  height: 52px !important;
  width: 52px !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #ffffff !important;
  color: #051431 !important;
  border: 1.5px solid rgba(0, 0, 0, 0.12) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
  border-radius: 50% !important;
  transition: all 400ms ease !important;
}

.service-current-theme6 .content .theme-btn-main .theme-btn-arrow-left i,
.service-current-theme6 .content .theme-btn-main .theme-btn-arrow-right i {
  color: #051431 !important;
  transform: rotate(-30deg) !important;
}

/* Hover sliding effect */
.service-current-theme6 .content .theme-btn-main .theme-btn-arrow-left {
  position: absolute !important;
  left: 0 !important;
  right: auto !important;
  transform: scale(0) !important;
}

.service-current-theme6 .content .theme-btn-main .theme-btn-arrow-right {
  transform: scale(1) !important;
}

.service-current-theme6 .content .theme-btn-main:hover .theme-btn {
  transform: translateX(52px) !important;
}

.service-current-theme6 .content .theme-btn-main:hover .theme-btn-arrow-left {
  transform: scale(1) !important;
}

.service-current-theme6 .content .theme-btn-main:hover .theme-btn-arrow-right {
  transform: scale(0) !important;
}

/* ==========================================================================
   6. Category / Subtitle Badges (if present)
   ========================================================================== */

.service-current-theme6 .content .cat-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.service-current-theme6 .content .cat-list li {
  padding: 8px 18px !important;
  line-height: 1 !important;
  border: 1px solid rgba(5, 20, 49, 0.2) !important;
  border-radius: 50px !important;
  color: var(--theme-color2, #051431) !important;
  font-weight: 500 !important;
  font-size: 13px !important;
  margin-bottom: 0 !important;
  text-transform: uppercase !important;
  background: transparent !important;
  transition: all 0.3s ease-in-out !important;
}

.service-current-theme6 .content .cat-list li:hover {
  background: var(--theme-color1, #ff2b56) !important;
  color: #ffffff !important;
  border-color: var(--theme-color1, #ff2b56) !important;
}

/* Image hover effect */
.service-theme6-card-wrapper:hover .service-current-theme6 .image img {
  transform: scale(1.05) !important;
}

/* Empty image placeholder */
.service-current-theme6 .image .theme6-empty-image-placeholder {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(5, 20, 49, 0.05), rgba(5, 20, 49, 0.12));
  border: 1px dashed rgba(5, 20, 49, 0.2);
  box-sizing: border-box;
}

/* ==========================================================================
   7. Mobile & Tablet Responsive Fallback (< 992px)
   ========================================================================== */

@media (max-width: 991.98px) {
  .service-current-theme6,
  .service-current-theme6.is-reverse-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 25px !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    margin: 0 auto !important;
  }

  .service-current-theme6 .content,
  .service-current-theme6 .image {
    width: min(450px, 86vw) !important;
    max-width: 450px !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 50% !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
    flex: 0 0 auto !important;
  }

  .service-current-theme6 .content {
    background-color: var(--theme-color-white, #ffffff) !important;
    border: 1px solid rgba(5, 20, 49, 0.2) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    padding: clamp(20px, 5vw, 40px) !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    margin: 0 auto !important;
  }

  .service-current-theme6 .image {
    overflow: hidden !important;
    margin: 0 auto !important;
  }

  .service-current-theme6 .image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    aspect-ratio: 1 / 1 !important;
    display: block !important;
  }

  .service-current-theme6::after,
  .service-current-theme6.is-reverse-row::after {
    display: none !important;
  }

  .tm-sc-service.has-skin-style-current-theme6 .service-theme6-card-wrapper {
    position: relative !important;
    transform: none !important;
    padding: 25px 0 !important;
    margin-bottom: 25px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
  }
}
