/**
 * Project Element - Skin Style Current Theme 6 Styles (Child Theme)
 *
 * Enforces true 1:1 circular aspect ratio, equal 695px circle dimensions,
 * side-by-side desktop layout, centered hexagon divider at 50%,
 * red pill button with white circle arrow, and solid backgrounds for GSAP stacking.
 *
 * @package Consulten_Child
 */

/* ==========================================================================
   1. Card container & solid background (prevents bleed during GSAP pin)
   ========================================================================== */

[data-project-outer] > .e-con,
[data-project-outer] > .e-child,
.elementor-element-d10043a > .e-con,
.elementor-element-d10043a > .e-child,
.tm-sc-projects-grid .projects-current-theme6 {
  background-color: var(--theme-color-white, #ffffff) !important;
  box-sizing: border-box;
  will-change: transform;
}

.projects-current-theme6 {
  background-color: var(--theme-color-white, #ffffff) !important;
  position: relative;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* ==========================================================================
   2. Desktop Layout: Side-by-side flex row (≥ 992px)
      Overrides the plugin's 768px-1320px column collapse.
   ========================================================================== */

@media (min-width: 992px) {
  .projects-current-theme6 {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
  }

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

/* ==========================================================================
   3. True Circular Geometry (Equal 695px max, enforces 1:1 aspect ratio)
      Prevents egg/oval distortion when container width adjusts.
   ========================================================================== */

@media (min-width: 992px) {
  .projects-current-theme6 .content,
  .projects-current-theme6 .image {
    width: min(695px, calc(50% - 15px)) !important;
    max-width: 695px !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 50% !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
  }

  .projects-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;
    justify-content: center !important;
    align-items: center !important;
    flex-direction: column !important;
  }

  .projects-current-theme6 .image {
    overflow: hidden !important;
  }

  .projects-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;
  }
}

/* Tablet & Mobile responsive fallback (< 992px) */
@media (max-width: 991.98px) {
  .projects-current-theme6,
  .projects-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;
  }

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

  .projects-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;
  }
}

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

.projects-current-theme6::after,
.projects-current-theme6.is-reverse-row::after {
  position: absolute !important;
  content: "" !important;
  width: 38px !important;
  height: 35px !important;
  background-color: var(--theme-color3, #ff5e14) !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;
  right: auto !important;
  bottom: auto !important;
}

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

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

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

/* Red pill */
.projects-current-theme6 .content .theme-btn-main .theme-btn,
.projects-current-theme6 .content .theme-btn-main .theme-btn.it-theme-btn {
  background: var(--theme-color1, #ff2b56) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  padding: 13px 30px !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 */
.projects-current-theme6 .content .theme-btn-main .theme-btn-arrow-left,
.projects-current-theme6 .content .theme-btn-main .theme-btn-arrow-right,
.projects-current-theme6 .content .theme-btn-main .theme-btn-arrow-left.it-btn-arrow,
.projects-current-theme6 .content .theme-btn-main .theme-btn-arrow-right.it-btn-arrow {
  height: 56px !important;
  width: 56px !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #ffffff !important;
  color: #1a1a2e !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;
}

.projects-current-theme6 .content .theme-btn-main .theme-btn-arrow-left i,
.projects-current-theme6 .content .theme-btn-main .theme-btn-arrow-right i {
  color: #1a1a2e !important;
  rotate: -30deg !important;
}

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

.projects-current-theme6 .content .theme-btn-main .theme-btn-arrow-right {
  scale: 1 !important;
}

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

.projects-current-theme6 .content .theme-btn-main:hover .theme-btn-arrow-left {
  scale: 1 !important;
}

.projects-current-theme6 .content .theme-btn-main:hover .theme-btn-arrow-right {
  scale: 0 !important;
}

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

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

.projects-current-theme6 .content .cat-list li {
  padding: 12px 24px !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: 14px !important;
  margin-bottom: 0 !important;
  text-transform: uppercase !important;
  background: transparent !important;
  transition: all 0.3s ease-in-out !important;
}

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