/* ==========================================================================
   Akadverse Pro — Couple Widget  (redesigned)
   Fully isolated, responsive, no overflow/collision.
   ========================================================================== */

/* ── Wrapper ──────────────────────────────────────────────────────────── */
.akv-couple-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
}

/* ── Profiles row ─────────────────────────────────────────────────────── */
.akv-couple-profiles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
}

/* ── Side by Side ─────────────────────────────────────────────────────── */
.akv-couple-layout-side-by-side .akv-couple-inner {
  display: flex;
  gap: clamp(16px, 4vw, 48px);
  align-items: flex-start;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}
.akv-couple-layout-side-by-side .akv-couple-card {
  flex: 1 1 200px;
  min-width: 0;
  max-width: 100%;
}

/* ── Stacked ──────────────────────────────────────────────────────────── */
.akv-couple-layout-stacked .akv-couple-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(24px, 5vw, 48px);
  width: 100%;
}
.akv-couple-layout-stacked .akv-couple-card {
  width: 100%;
  max-width: 420px;
  box-sizing: border-box;
}

/* ── Overlap ──────────────────────────────────────────────────────────── */
.akv-couple-layout-overlap .akv-couple-inner {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 260px;
  flex-wrap: wrap;
  gap: 12px;
}

/* ═══════════════════════════════════════════════
   PROFILE CARD
   ═══════════════════════════════════════════════ */
.akv-couple-card {
  box-sizing: border-box;
  text-align: center;
  min-width: 0;
}

.akv-couple-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* ── Photo wrap ───────────────────────────────── */
.akv-couple-photo-wrap {
  position: relative;
  display: inline-block;
  max-width: 100%;
}
.akv-couple-photo-wrap img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

/* Photo frame */
.akv-photo-frame {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-style: solid;
  box-sizing: border-box;
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), box-shadow .35s;
  position: relative;
}

.akv-photo-frame:hover {
  transform: scale(1.04);
}

.akv-couple-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.akv-photo-frame:hover .akv-couple-photo {
  transform: scale(1.06);
}

/* Photo shape variants */
.akv-shape-circle  .akv-photo-frame { border-radius: 50%; }
.akv-shape-hexagon .akv-photo-frame { clip-path: polygon(50% 0%, 93.3% 25%, 93.3% 75%, 50% 100%, 6.7% 75%, 6.7% 25%); border-radius: 0; }
.akv-shape-diamond .akv-photo-frame { clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%); border-radius: 0; }
.akv-shape-square  .akv-photo-frame { border-radius: 0; }

/* Glow ring below photo */
.akv-photo-frame::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  background: transparent;
  border: 2px solid rgba(192, 96, 138, .25);
  pointer-events: none;
  transition: opacity .3s;
  opacity: 0;
}
.akv-photo-frame:hover::after {
  opacity: 1;
}

/* ── Name typography ──────────────────────────── */
.akv-couple-nickname {
  margin: 20px 0 4px;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 700;
  letter-spacing: .5px;
  line-height: 1.2;
  /* color set via Elementor */
}

.akv-couple-fullname {
  margin: 0 0 6px;
  font-size: clamp(.8rem, 2vw, .95rem);
  letter-spacing: .3px;
  opacity: .75;
  /* color set via Elementor */
}

/* ── Parent info ──────────────────────────────── */
.akv-couple-parents {
  margin-top: 10px;
  font-size: .85rem;
  line-height: 1.6;
  opacity: .8;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.akv-parent-prefix {
  display: block;
  font-style: italic;
  font-size: .8rem;
  opacity: .75;
}

.akv-parent-name {
  font-weight: 600;
}

.akv-parent-connector {
  font-size: 1rem;
  opacity: .5;
  margin: 2px 0;
}

/* ── Separator (& symbol) ─────────────────────── */
.akv-couple-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0 8px;
  font-size: 2.5rem;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -1px;
  opacity: .65;
  align-self: center;
  /* color set via Elementor */
}

/* ── Social handle ────────────────────────────── */
.akv-couple-social {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  margin-top: 12px;
  font-size: .82rem;
  letter-spacing: .3px;
  padding: 5px 14px;
  border-radius: 50px;
  background: rgba(0,0,0,.05);
  transition: background .2s;
  text-decoration: none;
  color: inherit;
}

.akv-couple-social:hover {
  background: rgba(0,0,0,.1);
}

.akv-social-icon {
  flex-shrink: 0;
  vertical-align: middle;
}

.akv-social-handle {
  vertical-align: middle;
}

/* ── Quote section ────────────────────────────── */
.akv-couple-quote {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  padding: 20px 24px;
  box-sizing: border-box;
  border-left: 3px solid #9b59b6;
  border-radius: 0 10px 10px 0;
  background: rgba(155, 89, 182, .05);
  max-width: 600px;
  margin: 0 auto 32px;
  position: relative;
}

.akv-couple-quote::before {
  content: '\201C';
  position: absolute;
  top: -10px;
  left: 18px;
  font-size: 4rem;
  line-height: 1;
  color: rgba(155, 89, 182, .15);
  font-family: Georgia, serif;
  pointer-events: none;
}

.akv-couple-quote-text {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  line-height: 1.8;
  margin: 0 0 10px;
  direction: auto;
}

.akv-couple-quote-source {
  font-size: .8rem;
  letter-spacing: .5px;
  opacity: .6;
  font-style: italic;
}

/* ── Ornaments ────────────────────────────────── */
.akv-couple-ornament {
  position: absolute;
  pointer-events: none;
  z-index: 5;
  --akv-rotate: 0deg;
}
.akv-couple-ornament img { width: 100%; display: block; }
.akv-couple-ornament-1   { top: 0; left: 0; transform: rotate(var(--akv-rotate)); }
.akv-couple-ornament-2   { top: 0; right: 0; transform: rotate(var(--akv-rotate)); }

/* ── Entrance animations ──────────────────────── */
.akv-animate {
  animation-fill-mode: both;
}

@keyframes akv-fadeIn      { from { opacity: 0; }                          to { opacity: 1; } }
@keyframes akv-fadeInUp    { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
@keyframes akv-fadeInDown  { from { opacity: 0; transform: translateY(-28px); } to { opacity: 1; transform: translateY(0); } }
@keyframes akv-zoomIn      { from { opacity: 0; transform: scale(.88); }   to { opacity: 1; transform: scale(1); } }
@keyframes akv-slideInLeft { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes akv-slideInRight{ from { opacity: 0; transform: translateX(40px); }  to { opacity: 1; transform: translateX(0); } }

.akv-anim-fadeIn       { animation-name: akv-fadeIn; }
.akv-anim-fadeInUp     { animation-name: akv-fadeInUp; }
.akv-anim-fadeInDown   { animation-name: akv-fadeInDown; }
.akv-anim-zoomIn       { animation-name: akv-zoomIn; }
.akv-anim-slideInLeft  { animation-name: akv-slideInLeft; }
.akv-anim-slideInRight { animation-name: akv-slideInRight; }

/* Ornament animations */
@keyframes akv-float { from { transform: translateY(0) rotate(var(--akv-rotate,0deg)); } to { transform: translateY(-10px) rotate(var(--akv-rotate,0deg)); } }
@keyframes akv-sway  { 0%,100% { transform: rotate(calc(var(--akv-rotate,0deg) - 5deg)); } 50% { transform: rotate(calc(var(--akv-rotate,0deg) + 5deg)); } }
@keyframes akv-pulse { 0%,100% { opacity: .85; transform: scale(1) rotate(var(--akv-rotate,0deg)); } 50% { opacity: 1; transform: scale(1.04) rotate(var(--akv-rotate,0deg)); } }

.akv-orn-anim-float { animation: akv-float 3s ease-in-out infinite alternate; }
.akv-orn-anim-sway  { animation: akv-sway  4s ease-in-out infinite; }
.akv-orn-anim-pulse { animation: akv-pulse 2.5s ease-in-out infinite; }

/* ── Responsive: tablet ───────────────────────── */
@media (max-width: 768px) {
  .akv-couple-layout-side-by-side .akv-couple-inner { gap: clamp(12px, 4vw, 28px); }
  .akv-couple-layout-side-by-side .akv-couple-card  { flex: 1 1 160px; }
}

/* ── Responsive: mobile ───────────────────────── */
@media (max-width: 600px) {
  .akv-couple-layout-side-by-side .akv-couple-inner {
    flex-direction: column;
    align-items: center;
  }
  .akv-couple-layout-side-by-side .akv-couple-card {
    max-width: 320px;
    width: 100%;
    flex: none;
  }
  .akv-couple-profiles { gap: 16px; }

  .akv-couple-separator {
    font-size: 1.8rem;
    padding: 8px;
  }

  .akv-couple-quote {
    margin: 0 0 24px;
  }
}

/* ── Elementor Editor ─────────────────────────── */
.elementor-editor-active .akv-couple-ornament { opacity: 0.5; }

/* ==========================================================================
   akv-khitan-profile-layout (Custom premium single-child khitan profile)
   ========================================================================== */
.akv-khitan-profile-layout.akv-couple-wrapper {
  padding: clamp(24px, 6vw, 60px) clamp(16px, 4vw, 32px);
  background: radial-gradient(circle at top right, rgba(227, 177, 90, 0.1), transparent 60%),
              radial-gradient(circle at bottom left, rgba(32, 139, 144, 0.08), transparent 60%);
  position: relative;
}

.akv-khitan-profile-layout .akv-couple-profiles {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: clamp(24px, 5vw, 48px);
  max-width: 960px;
  margin: 0 auto;
}

/* Hide separators for khitan */
.akv-khitan-profile-layout .akv-couple-separator {
  display: none !important;
}

/* Individual Cards */
.akv-khitan-profile-layout .akv-couple-card {
  flex: 1 1 300px;
  min-width: 0;
  max-width: 440px;
  margin: 0;
}

/* Groom: Child Profile Card */
.akv-khitan-profile-layout .akv-couple-groom {
  background: #ffffff;
  border-radius: 24px;
  padding: clamp(20px, 4vw, 36px);
  box-shadow: 0 15px 45px rgba(22, 90, 93, 0.06);
  border: 1px solid rgba(227, 177, 90, 0.25);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.akv-khitan-profile-layout .akv-couple-groom:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(22, 90, 93, 0.1);
}

/* Circular glowing gold child avatar */
.akv-khitan-profile-layout .akv-couple-groom .akv-photo-frame {
  width: 180px;
  height: 180px;
  border-radius: 50% !important;
  border: 4px solid #e3b15a;
  box-shadow: 0 8px 24px rgba(227, 177, 90, 0.35);
  margin: 0 auto 24px;
  display: flex;
  position: relative;
  overflow: hidden;
}
.akv-khitan-profile-layout .akv-couple-groom .akv-photo-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 15px rgba(227, 177, 90, 0.2);
  pointer-events: none;
}

/* Bride: Doa Kami Parchment Card */
.akv-khitan-profile-layout .akv-couple-bride {
  background: #fbfaf6;
  border-radius: 24px;
  padding: clamp(20px, 4vw, 36px);
  box-shadow: 0 15px 45px rgba(22, 90, 93, 0.05);
  border: 2px dashed rgba(227, 177, 90, 0.35);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.akv-khitan-profile-layout .akv-couple-bride:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(22, 90, 93, 0.08);
}

/* Hide Photo Frame for Bride ("Doa Kami") */
.akv-khitan-profile-layout .akv-couple-bride .akv-photo-frame {
  display: none !important;
}

/* Inner border frame for parchment style */
.akv-khitan-profile-layout .akv-couple-bride::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(227, 177, 90, 0.3);
  border-radius: 16px;
  pointer-events: none;
}

/* Elegant styling for "Doa Kami" content */
.akv-khitan-profile-layout .akv-couple-bride .akv-couple-nickname {
  margin-top: 10px;
  font-size: 2.2rem;
  font-family: 'Italiana', serif;
  color: #e3b15a;
  text-shadow: 1px 1px 1px rgba(0,0,0,0.02);
}
.akv-khitan-profile-layout .akv-couple-bride .akv-couple-fullname {
  font-size: 1.1rem;
  color: #165a5d;
  font-weight: 700;
  margin-bottom: 12px;
}
.akv-khitan-profile-layout .akv-couple-bride .akv-couple-parents {
  margin-top: 12px;
  font-size: 0.95rem;
  line-height: 1.8;
  color: #555555;
  font-style: italic;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}
.akv-khitan-profile-layout .akv-couple-bride .akv-parent-prefix {
  font-weight: 600;
  color: #e3b15a;
  font-size: 0.9rem;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Responsive adjustment */
@media (max-width: 768px) {
  .akv-khitan-profile-layout .akv-couple-profiles {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }
  .akv-khitan-profile-layout .akv-couple-card {
    max-width: 100%;
    width: 100%;
  }
}