.ccmw-wrap {
  background: transparent;
  border-radius: 20px;
  padding: 36px 40px;
  display: flex;
  align-items: center;
  min-height: 300px;
  position: relative;
  gap: 32px;
}

.ccmw-links-side {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 240px;
  flex-shrink: 0;
  z-index: 2;
}

.ccmw-menu-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  cursor: pointer;
  border: 0;
  border-inline-start: 3px solid transparent;
  transition: all 0.2s ease;
  background: transparent;
  text-align: start;
}

.ccmw-menu-row:hover,
.ccmw-menu-row.is-active {
  background: rgba(255,255,255,0.8);
}

.ccmw-menu-row-title {
  font-size: 17px;
  font-weight: 500;
  color: #222;
  transition: color 0.2s ease;
  flex: 1;
  text-decoration: none;
}

a.ccmw-menu-row-title:hover {
  text-decoration: none;
}

.ccmw-arrow {
  font-size: 14px;
  color: #aaa;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.ccmw-menu-row:hover .ccmw-arrow,
.ccmw-menu-row.is-active .ccmw-arrow {
  opacity: 1;
  transform: translateX(4px);
}

/*
 * RTL: .ccmw-wrap has dir="rtl" (is_rtl() / Polylang). Flex row + RTL places
 * main-start on the right, so DOM order [menu][image] becomes menu right, image left.
 * Do not use row-reverse here — it would flip that back to the wrong side.
 */

.ccmw-wrap[dir="rtl"] .ccmw-img-card:not(.cc-active) {
  transform: rotate(-8deg) scale(0.97);
}

.ccmw-wrap[dir="rtl"] .ccmw-menu-row:hover .ccmw-arrow,
.ccmw-wrap[dir="rtl"] .ccmw-menu-row.is-active .ccmw-arrow {
  transform: translateX(-4px);
}

/* Card CTA: flip stroke so it points “forward” in RTL (path is drawn LTR). */
.ccmw-wrap[dir="rtl"] .ccmw-arrow-btn-icon {
  transform: scaleX(-1);
  transform-origin: center;
}

.ccmw-image-side {
  flex: 1;
  position: relative;
  height: 260px;
  min-width: 0;
}

.ccmw-img-card {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  overflow: hidden;
  opacity: 0;
  transform: rotate(8deg) scale(0.97);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

.ccmw-img-card.cc-active {
  opacity: 1;
  transform: rotate(0deg) scale(1);
  pointer-events: auto;
}

.ccmw-img-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ccmw-img-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 100%);
  padding: 40px 16px 16px;
  border-radius: 0 0 16px 16px;
}

.ccmw-caption-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.ccmw-caption-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
}

.ccmw-arrow-btn {
  position: absolute;
  bottom: 14px;
  inset-inline-end: 14px;
  width: 38px;
  height: 38px;
  background: #011F3E;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff !important;
  font-size: 16px;
  text-decoration: none !important;
  transition: background 0.3s ease;
  z-index: 10;
}

.ccmw-arrow-btn:hover {
  background: #1F58A7;
  color: #ffffff !important;
}

@media (max-width: 767px) {
  .ccmw-wrap {
    flex-direction: column;
    padding: 24px;
  }

  .ccmw-links-side {
    width: 100%;
  }

  .ccmw-image-side {
    width: 100%;
    height: 240px;
  }
}
