/* LOCAL HINDI FONTS (Imported via Google Fonts in blade) */
/*
@font-face{
  font-family:'Yatra One';
  src:url('../fonts/yatra-one.woff2') format('woff2');
  font-weight:400;
  font-style:normal;
  font-display:swap;
}
*/

:root{
  --wi-red: #b71c1c;
  --wi-red-dark: #7a0000;
  --wi-gold: #f5b041;

  /* cream premium palette */
  --wi-cream-bg1:#fff7df;
  --wi-cream-bg2:#fff2cc;
  --wi-paper:#fffdf7;

  --wi-radius: 22px;
}


/* =========================================
   GLOBAL / RESET
========================================= */
.wi-wrap,
.wi-wrap *{
  box-sizing: border-box;
}

.wi-wrap{
  padding: 26px 12px;
  min-height: 100vh;
}

.wi-audio{
  display:none;
}

.wi-music-toggle{
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9998;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 0;
  border-radius: 999px;
  background: rgba(20, 20, 20, .88);
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 14px 32px rgba(0,0,0,.22);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.wi-music-toggle:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(0,0,0,.26);
}

.wi-music-toggle.is-playing{
  background: linear-gradient(90deg, #7a0000, #b48a2c);
}

.wi-music-toggle__icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:26px;
  height:26px;
  border-radius:50%;
  background: rgba(255,255,255,.14);
  font-size: 15px;
}

.wi-order-actions{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap: 10px;
}

.wi-print-btn{
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  cursor: pointer;
}

/* Hide theme header/footer (only invitation page) */
body.single-wedding_invitation header,
body.single-wedding_invitation footer,
body.single-wedding_invitation #site-header,
body.single-wedding_invitation #site-footer,
body.single-wedding_invitation .site-header,
body.single-wedding_invitation .site-footer{
  display:none !important;
}

/* Remove theme spacing */
body.single-wedding_invitation .site-content,
body.single-wedding_invitation .container,
body.single-wedding_invitation #content,
body.single-wedding_invitation #main{
  margin:0 !important;
  padding:0 !important;
  max-width:100% !important;
  width:100% !important;
}
body.single-wedding_invitation{
  margin:0 !important;
  padding:0 !important;
}

/* =========================================
   CARD BASE
========================================= */
.wi-card{
  max-width: 920px;
  margin: 0 auto;
  padding: 26px;
  border-radius: var(--wi-radius);
  position: relative;
  overflow: hidden;

  font-family: "Tiro Devanagari Hindi", serif;
  box-shadow: 0 18px 40px rgba(0,0,0,.10);
}

/* Decorative top strip */
.wi-card::after{
  content:"";
  position:absolute;
  left:0;
  top:0;
  width:100%;
  height:10px;
  opacity:.9;
  pointer-events:none;
}

.wi-card::before{
  content:"";
  position:absolute;
  inset:0;

  background-image: var(--wi-watermark-img);
  background-repeat: repeat;
  background-size: 240px 240px;
  background-position: center;

  opacity: .12;
  pointer-events:none;
}


/* =========================================
   CORNERS
========================================= */
.wi-corner{
  position:absolute;
  width:160px;
  height:160px;
  background-image: var(--wi-corner-img);
  background-repeat:no-repeat;
  background-size:contain;
  opacity:.92;
  filter: saturate(1.1) contrast(1.15);
  pointer-events:none;
}
.wi-corner-tl{ left:14px; top:14px; transform:rotate(0deg); }
.wi-corner-tr{ right:14px; top:14px; transform:rotate(90deg); }
.wi-corner-br{ right:14px; bottom:14px; transform:rotate(180deg); }
.wi-corner-bl{ left:14px; bottom:14px; transform:rotate(270deg); }

/* =========================================
   TOP SECTION
========================================= */
.wi-top{
  text-align:center;
  padding-bottom: 14px;
  border-bottom: 1px dashed rgba(183,28,28,.35);
  position: relative;
  z-index: 2;
}

.wi-ganesh{ text-align:center; }
.wi-ganesh img{
  display:block;
  margin:0 auto;
  max-width:90px;
  height:auto;
}

.wi-shlok{
  font-size:14px;
  line-height:1.5;
  margin:10px 0 10px;
  opacity:.95;
}

.wi-title{ text-align:center; }
.wi-title-img{
  display:block;
  margin:0 auto;
  max-width:260px;
  height:auto;
}

.wi-date{
  margin-top: 6px;
  font-size: 15px;
  font-weight: 900;
  display:inline-block;
  padding: 6px 14px;
  border-radius: 999px;
}

.wi-divider{
  margin: 14px auto 0;
  width: 100%;
  max-width: 720px;
  height: 1px;
}

/* =========================================
   NAMES SECTION
========================================= */
.wi-names{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 18px;
  flex-wrap: wrap;
  margin: 18px 0 6px;
  position: relative;
  z-index: 2;
}

.wi-person{
  text-align:center;
  min-width:240px;
  max-width:340px;
}

/* Photo block appears only if photo exists (PHP already handles this) */
.wi-photo{
  width:110px;
  height:110px;
  margin: 0 auto 10px auto;
  border-radius: 18px;
  padding: 4px;
  box-shadow: 0 14px 26px rgba(0,0,0,.12);
}
.wi-photo img{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:14px;
  display:block;
  border:2px solid rgba(255,255,255,.9);
}

.wi-person-label{
  font-size:14px;
  font-weight:1000;
  margin-top:6px;
}

.wi-person-name{
  font-size:28px;
  font-weight:900;
  margin-top:4px;
  font-family:"Yatra One", cursive;
  line-height:1.2;
  word-break: break-word;
  padding: 0 10px;
}

.wi-person-post{
  margin-top:6px;
  font-size:16px;
  font-weight:800;
  line-height:1.4;
  opacity:.88;
}

.wi-person-details{
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 800;
}
.wi-details-address{
  margin-top: 6px;
  font-size: 15px;
  font-weight: 800;
  opacity: .92;
}

.wi-heart{
  flex: 0 0 auto;
  width: 140px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.wi-hand-img{
  width:130px;
  height:auto;
  display:block;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,.12));
}

@keyframes wi-fade-up{
  from{
    opacity:0;
    transform:translateY(24px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}

@keyframes wi-soft-pulse{
  0%, 100%{
    transform:scale(1);
  }
  50%{
    transform:scale(1.04);
  }
}

@keyframes wi-card-glow{
  0%, 100%{
    box-shadow: 0 18px 40px rgba(0,0,0,.10);
  }
  50%{
    box-shadow: 0 22px 48px rgba(180,138,44,.22);
  }
}

@keyframes wi-shimmer{
  0%{
    transform:translateX(-18%);
    opacity:.75;
  }
  50%{
    transform:translateX(18%);
    opacity:1;
  }
  100%{
    transform:translateX(-18%);
    opacity:.75;
  }
}

.wi-wrap[data-animation="subtle"] .wi-top,
.wi-wrap[data-animation="subtle"] .wi-names,
.wi-wrap[data-animation="subtle"] .wi-section,
.wi-wrap[data-animation="subtle"] .wi-bottom,
.wi-wrap[data-animation="subtle"] .wi-orderbar{
  animation: wi-fade-up .8s ease both;
}

.wi-wrap[data-animation="subtle"] .wi-names{ animation-delay:.08s; }
.wi-wrap[data-animation="subtle"] .wi-section{ animation-delay:.16s; }
.wi-wrap[data-animation="subtle"] .wi-bottom{ animation-delay:.22s; }
.wi-wrap[data-animation="subtle"] .wi-orderbar{ animation-delay:.28s; }
.wi-wrap[data-animation="subtle"] .wi-hand-img{ animation: wi-soft-pulse 2.8s ease-in-out infinite 1s; }

.wi-wrap[data-animation="royal"] .wi-card{
  animation: wi-card-glow 5s ease-in-out infinite;
}

.wi-wrap[data-animation="royal"] .wi-top,
.wi-wrap[data-animation="royal"] .wi-names,
.wi-wrap[data-animation="royal"] .wi-section,
.wi-wrap[data-animation="royal"] .wi-bottom,
.wi-wrap[data-animation="royal"] .wi-orderbar{
  animation: wi-fade-up 1s ease both;
}

.wi-wrap[data-animation="royal"] .wi-names{ animation-delay:.12s; }
.wi-wrap[data-animation="royal"] .wi-section{ animation-delay:.22s; }
.wi-wrap[data-animation="royal"] .wi-bottom{ animation-delay:.30s; }
.wi-wrap[data-animation="royal"] .wi-orderbar{ animation-delay:.38s; }
.wi-wrap[data-animation="royal"] .wi-hand-img{ animation: wi-soft-pulse 2.2s ease-in-out infinite .8s; }
.wi-wrap[data-animation="royal"] .wi-card::after{ animation: wi-shimmer 6s ease-in-out infinite; }

.wi-wrap[data-animation="minimal"] .wi-top,
.wi-wrap[data-animation="minimal"] .wi-names,
.wi-wrap[data-animation="minimal"] .wi-section,
.wi-wrap[data-animation="minimal"] .wi-bottom,
.wi-wrap[data-animation="minimal"] .wi-orderbar{
  animation: wi-fade-up .55s ease both;
}

.wi-wrap[data-animation="minimal"] .wi-names{ animation-delay:.05s; }
.wi-wrap[data-animation="minimal"] .wi-section{ animation-delay:.1s; }
.wi-wrap[data-animation="minimal"] .wi-bottom{ animation-delay:.15s; }
.wi-wrap[data-animation="minimal"] .wi-orderbar{ animation-delay:.2s; }

.wi-wrap[data-animation="none"] .wi-top,
.wi-wrap[data-animation="none"] .wi-names,
.wi-wrap[data-animation="none"] .wi-section,
.wi-wrap[data-animation="none"] .wi-bottom,
.wi-wrap[data-animation="none"] .wi-orderbar,
.wi-wrap[data-animation="none"] .wi-hand-img,
.wi-wrap[data-animation="none"] .wi-card::after{
  animation:none !important;
}

.wi-wrap.is-sequenced .wi-top,
.wi-wrap.is-sequenced .wi-names,
.wi-wrap.is-sequenced .wi-section,
.wi-wrap.is-sequenced .wi-bottom,
.wi-wrap.is-sequenced .wi-orderbar{
  animation:none !important;
}

.wi-wrap.is-sequenced .wi-reveal{
  opacity:0;
  transform:translate3d(0, 30px, 0) scale(.985);
  transition:
    opacity .72s ease,
    transform .72s cubic-bezier(.22, 1, .36, 1);
  will-change: opacity, transform;
}

.wi-wrap.is-sequenced[data-animation="royal"] .wi-reveal{
  transform:translate3d(0, 40px, 0) scale(.975);
}

.wi-wrap.is-sequenced[data-animation="minimal"] .wi-reveal{
  transform:translate3d(0, 18px, 0);
}

.wi-wrap.is-sequenced .wi-reveal.is-visible{
  opacity:1;
  transform:none;
}

.wi-wrap.is-sequenced .wi-reveal .wi-event,
.wi-wrap.is-sequenced .wi-reveal .wi-person,
.wi-wrap.is-sequenced .wi-reveal .wi-venue,
.wi-wrap.is-sequenced .wi-reveal .wi-video-box,
.wi-wrap.is-sequenced .wi-reveal .wi-gallery-slider{
  transition:
    opacity .58s ease,
    transform .58s cubic-bezier(.22, 1, .36, 1);
}

.wi-wrap.is-sequenced .wi-reveal:not(.is-visible) .wi-event,
.wi-wrap.is-sequenced .wi-reveal:not(.is-visible) .wi-person,
.wi-wrap.is-sequenced .wi-reveal:not(.is-visible) .wi-venue,
.wi-wrap.is-sequenced .wi-reveal:not(.is-visible) .wi-video-box,
.wi-wrap.is-sequenced .wi-reveal:not(.is-visible) .wi-gallery-slider{
  opacity:0;
  transform:translateY(16px);
}

.wi-wrap.is-sequenced .wi-reveal.is-visible .wi-event,
.wi-wrap.is-sequenced .wi-reveal.is-visible .wi-person,
.wi-wrap.is-sequenced .wi-reveal.is-visible .wi-venue,
.wi-wrap.is-sequenced .wi-reveal.is-visible .wi-video-box,
.wi-wrap.is-sequenced .wi-reveal.is-visible .wi-gallery-slider{
  opacity:1;
  transform:none;
}

@media(max-width:700px){
  .wi-wrap.is-sequenced .wi-reveal{
    transform:translate3d(0, 24px, 0) scale(.99);
  }

  .wi-wrap.is-sequenced[data-animation="royal"] .wi-reveal{
    transform:translate3d(0, 30px, 0) scale(.985);
  }
}

/* =========================================
   SECTIONS
========================================= */
.wi-section{
  margin-top: 22px;
  position: relative;
  z-index: 2;
}

.wi-section-title{
  text-align:center;
  font-size: 24px;
  font-weight: 1000;
  margin-bottom: 14px;
  letter-spacing: .4px;
  font-family: "Yatra One", cursive;
}
.wi-section-title::after{
  content:"";
  display:block;
  width:260px;
  max-width:75%;
  height:4px;
  margin:10px auto 0;
  border-radius:30px;
}

/* Invite line box */
.wi-invite-box{
  text-align:center;
  padding: 10px 12px;
  margin-top: 6px;
}
.wi-invite-line{
  font-size:18px;
  font-weight:1000;
  line-height:1.7;
  padding: 6px 8px;
}
.wi-invite-divider{
  width:100%;
  max-width:720px;
  height:4px;
  margin:12px auto;
  border-radius:999px;
  opacity:.95;
}

.wi-swagatkarta{
  text-align:center;
  font-size:18px;
  line-height:1.7;
  font-weight:800;
}

/* =========================================
   EVENTS GRID
========================================= */
.wi-events{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  justify-content: center;
}

.wi-events-2{
  grid-template-columns: 1fr 1fr;
  max-width: 640px;
  margin: 0 auto;
}
.wi-events-1{
  grid-template-columns: 1fr;
  max-width: 360px;
  margin: 0 auto;
}

.wi-events.wi-events-4 .wi-event:nth-child(4){
  grid-column: 2;
}

.wi-events.wi-events-5 .wi-event:nth-child(4){
  grid-column: 1;
}
.wi-events.wi-events-5 .wi-event:nth-child(5){
  grid-column: 3;
}

.wi-event{
  border-radius:18px;
  padding:14px;
  text-align:center;
  box-shadow: 0 10px 20px rgba(0,0,0,.06);
}

.wi-event-date{
  font-size:15px;
  font-weight:600;  
}
.wi-event-name{
  font-size:20px;
  font-weight:1000;
  margin-top:6px;
}

/* =========================================
   VENUE
========================================= */
.wi-venue{
  border-radius: 20px;
  padding: 16px;
  text-align:center;
  font-size: 16px;
  font-weight: 1000;
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
}

.wi-map{ margin-top: 14px; text-align:center; }

/* =========================================
   BUTTONS (Premium compact)
========================================= */
.wi-map-btn,
.wi-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  width: auto;
  padding: 10px 16px;
  border-radius: 999px;

  text-decoration:none;
  font-weight: 1000;
  font-size: 14px;
  letter-spacing: .2px;

  box-shadow: 0 12px 24px rgba(0,0,0,.12);
  transition: transform .15s ease, box-shadow .15s ease;
}
.wi-map-btn:hover,
.wi-btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0,0,0,.14);
}

.wi-share{
  margin-top: 12px;
  text-align:center;
}

/* =========================================
   BOTTOM
========================================= */
.wi-bottom{
  margin-top: 20px;
  text-align:center;
  border-top: 1px dashed rgba(183,28,28,.35);
  padding-top: 16px;
  font-weight: 900;
  position: relative;
  z-index: 2;
}

.wi-bottom-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  max-width: 820px;
  margin: 0 auto;
  text-align:center;
}

/* =========================================
   TEMPLATE: DEFAULT (Cream Premium)
========================================= */
.wi-wrap{
  background: radial-gradient(circle at top,
    var(--wi-cream-bg2) 0%,
    var(--wi-cream-bg1) 38%,
    #ffffff 100%
  );
}

.wi-wrap[data-template="default"] .wi-card{
  background: linear-gradient(180deg, #ffffff 0%, var(--wi-paper) 100%);
  border-radius: var(--wi-radius);
  border: 3px solid rgba(183,28,28,.40);
  outline: 6px double rgba(245,176,65,.30);
  outline-offset: 10px;
}

/* default colors */
.wi-wrap[data-template="default"] .wi-card,
.wi-wrap[data-template="default"] .wi-card *{
  color: var(--wi-red-dark) !important;
}

.wi-wrap[data-template="default"] .wi-card::after{
  background: linear-gradient(90deg, var(--wi-red), var(--wi-gold), var(--wi-red));
}

.wi-wrap[data-template="default"] .wi-date{
  background: rgba(245,176,65,.18);
  border: 1px solid rgba(245,176,65,.35);
}

.wi-wrap[data-template="default"] .wi-divider{
  background: linear-gradient(90deg, transparent, rgba(183,28,28,.35), transparent);
}

.wi-wrap[data-template="default"] .wi-photo{
  background: linear-gradient(135deg, var(--wi-red), var(--wi-gold));
}

.wi-wrap[data-template="default"] .wi-person-name{
  color: var(--wi-red) !important;
}

.wi-wrap[data-template="default"] .wi-section-title{
  color: var(--wi-red) !important;
}
.wi-wrap[data-template="default"] .wi-section-title::after{
  background: linear-gradient(90deg, transparent, var(--wi-gold), var(--wi-red), var(--wi-gold), transparent);
}
.wi-wrap[data-template="default"] .wi-invite-divider{
  background: linear-gradient(90deg, transparent, var(--wi-gold), var(--wi-red), var(--wi-gold), transparent);
}

.wi-wrap[data-template="default"] .wi-event{
  background: linear-gradient(180deg, #ffffff 0%, #fff6e8 100%);
  border: 1px solid rgba(183,28,28,.22);
}
.wi-wrap[data-template="default"] .wi-event:nth-child(2){
  background: linear-gradient(180deg, #ffffff 0%, #fff0cf 100%);
  border: 1px solid rgba(245,176,65,.35);
}
.wi-wrap[data-template="default"] .wi-event:nth-child(3){
  background: linear-gradient(180deg, #ffffff 0%, #fff8e6 100%);
  border: 1px solid rgba(183,28,28,.22);
}

.wi-wrap[data-template="default"] .wi-event-name{
  color: var(--wi-red) !important;
}

.wi-wrap[data-template="default"] .wi-venue{
  background: linear-gradient(180deg, #ffffff 0%, #fff6e8 100%);
  border: 1px solid rgba(245,176,65,.40);
}

.wi-wrap[data-template="default"] .wi-map-btn,
.wi-wrap[data-template="default"] .wi-btn{
  background: linear-gradient(90deg, var(--wi-red), var(--wi-gold));
  color:#fff !important;
}

/* =========================================
   TEMPLATE: ROYAL GOLD
========================================= */
.wi-wrap[data-template="royal-gold"]{
  background: radial-gradient(circle at top, #fff6cf 0%, #fff0b6 38%, #ffffff 100%) !important;
}

.wi-wrap[data-template="royal-gold"] .wi-card{
  background: linear-gradient(180deg, #fffdf2 0%, #fff4cf 100%) !important;
  border: 2px solid rgba(245,176,65,.55) !important;
  outline: 6px double rgba(245,176,65,.24);
  outline-offset: 10px;
}

.wi-wrap[data-template="royal-gold"] .wi-card,
.wi-wrap[data-template="royal-gold"] .wi-card *{
  color: var(--wi-red-dark) !important;
}

.wi-wrap[data-template="royal-gold"] .wi-card::after{
  background: linear-gradient(90deg, #c98200, var(--wi-gold), #c98200);
}

.wi-wrap[data-template="royal-gold"] .wi-person-name,
.wi-wrap[data-template="royal-gold"] .wi-section-title,
.wi-wrap[data-template="royal-gold"] .wi-event-name{
  color: var(--wi-red) !important;
}

.wi-wrap[data-template="royal-gold"] .wi-divider{
  background: linear-gradient(90deg,
    transparent,
    rgba(245,176,65,.85),
    rgba(183,28,28,.55),
    rgba(245,176,65,.85),
    transparent
  );
}

.wi-wrap[data-template="royal-gold"] .wi-section-title::after{
  background: linear-gradient(90deg,
    rgba(183,28,28,.65),
    rgba(245,176,65,.95),
    rgba(183,28,28,.65)
  );
  opacity: .95;
}

.wi-wrap[data-template="royal-gold"] .wi-invite-divider{
  background: linear-gradient(90deg,
    rgba(245,176,65,.85),
    rgba(183,28,28,.70),
    rgba(245,176,65,.85)
  );
}

.wi-wrap[data-template="royal-gold"] .wi-event{
  background: linear-gradient(180deg, #fffef8 0%, #fff2cf 100%) !important;
  border: 1px solid rgba(245,176,65,.55) !important;
}

.wi-wrap[data-template="royal-gold"] .wi-venue{
  background: linear-gradient(180deg, #fffef8 0%, #fff1c8 100%) !important;
  border: 1px solid rgba(245,176,65,.55) !important;
}

.wi-wrap[data-template="royal-gold"] .wi-map-btn,
.wi-wrap[data-template="royal-gold"] .wi-btn{
  background: linear-gradient(90deg, var(--wi-red-dark), var(--wi-gold));
  color: #fff !important;
  border: 1px solid rgba(245,176,65,.32);
}

/* =========================================
   TEMPLATE: MINIMAL
========================================= */
.wi-wrap[data-template="minimal"]{
  background: #ffffff !important;
}

.wi-wrap[data-template="minimal"] .wi-card{
  background: #fffdf7 !important;
  outline: none !important;
  border: 2px solid rgba(183,28,28,.25) !important;
  box-shadow: 0 12px 30px rgba(0,0,0,.08) !important;
}

.wi-wrap[data-template="minimal"] .wi-corner{
  display:none !important;
}

.wi-wrap[data-template="minimal"] .wi-card,
.wi-wrap[data-template="minimal"] .wi-card *{
  color: #5d1a1a !important;
}

.wi-wrap[data-template="minimal"] .wi-card::after{
  background: linear-gradient(90deg, rgba(183,28,28,.65), rgba(245,176,65,.65), rgba(183,28,28,.65));
}

/* =========================================
   TEMPLATE: RED VELVET (ROYAL)
   (no duplicate rules, clean)
========================================= */
.wi-wrap[data-template="red-velvet"]{
  background: radial-gradient(circle at top, #2b0000 0%, #5a0000 45%, #7a0000 100%) !important;
}

.wi-wrap[data-template="red-velvet"] .wi-card{
  background: radial-gradient(circle at top, #8b0000 0%, #5c0000 55%, #3c0000 100%) !important;
  border: 2px solid rgba(255,215,0,.45) !important;
  outline: none !important;
  box-shadow: 0 18px 45px rgba(0,0,0,.45) !important;
}

/* Mandala visibility upgrade */
.wi-wrap[data-template="red-velvet"] .wi-card::before{
  opacity: .09 !important;
  background-size: 300px 300px !important;
  filter: saturate(1.35) contrast(1.25) brightness(1.15);
}

.wi-wrap[data-template="red-velvet"] .wi-card::after{
  background: linear-gradient(90deg, rgba(255,215,0,.70), rgba(245,176,65,.90), rgba(255,215,0,.70));
  opacity: .95;
}

/* Corner ornaments sharper */
.wi-wrap[data-template="red-velvet"] .wi-corner{
  opacity: .92 !important;
  filter: saturate(1.45) contrast(1.35) brightness(1.18) !important;
}

/* Text colors */
.wi-wrap[data-template="red-velvet"] .wi-card,
.wi-wrap[data-template="red-velvet"] .wi-card *{
  color: #fffaf0 !important;
}

.wi-wrap[data-template="red-velvet"] .wi-ganesh img{
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.55));
}
.wi-wrap[data-template="red-velvet"] .wi-title img{
  filter: drop-shadow(0 10px 20px rgba(0,0,0,.75));
}

.wi-wrap[data-template="red-velvet"] .wi-section-title{
  color: #ffd56b !important;
  text-shadow: 0 3px 14px rgba(0,0,0,.7);
}
.wi-wrap[data-template="red-velvet"] .wi-section-title::after{
  background: linear-gradient(90deg, transparent, rgba(255,215,0,.85), rgba(255,160,60,.80), rgba(255,215,0,.85), transparent);
}

.wi-wrap[data-template="red-velvet"] .wi-person-name{
  color: #ffda6b !important;
  text-shadow: 0 4px 14px rgba(0,0,0,.7);
}

.wi-wrap[data-template="red-velvet"] .wi-date{
  background: linear-gradient(90deg, rgba(255,215,0,.22), rgba(255,255,255,.10)) !important;
  border: 1px solid rgba(255,215,0,.35) !important;
  color: #fff6d0 !important;
  box-shadow: 0 10px 22px rgba(0,0,0,.35) !important;
}

.wi-wrap[data-template="red-velvet"] .wi-divider{
  background: linear-gradient(90deg, transparent, rgba(255,215,0,.55), transparent);
  height: 1px;
}

/* Event cards */
.wi-wrap[data-template="red-velvet"] .wi-event{
  background: linear-gradient(180deg, rgba(255,255,255,.10) 0%, rgba(0,0,0,.12) 100%) !important;
  border: 1px solid rgba(255,215,0,.28) !important;
  box-shadow: 0 10px 20px rgba(0,0,0,.30) !important;
}
.wi-wrap[data-template="red-velvet"] .wi-event-name{
  color: #ffd56b !important;
  text-shadow: 0 3px 14px rgba(0,0,0,.7);
}

/* Venue */
.wi-wrap[data-template="red-velvet"] .wi-venue{
  background: linear-gradient(180deg, rgba(255,255,255,.08) 0%, rgba(0,0,0,.14) 100%) !important;
  border: 1px solid rgba(255,215,0,.22) !important;
}

/* Buttons */
.wi-wrap[data-template="red-velvet"] .wi-map-btn,
.wi-wrap[data-template="red-velvet"] .wi-btn{
  background: linear-gradient(90deg, #ffcc00 0%, #f5b041 45%, #b71c1c 100%) !important;
  color: #1d0c00 !important;
  border: 1px solid rgba(255,215,0,.45) !important;
  font-weight: 1000;
  box-shadow: 0 14px 30px rgba(0,0,0,.38);
}

/* =========================================
   RESPONSIVE
========================================= */
@media(max-width:700px){
  .wi-card{
    padding: 20px;
    outline: none !important;
    outline-offset: 0 !important;
  }

  .wi-card::before{
    background-size: 180px 180px, 360px 360px;
    opacity:.12;
  }

  .wi-wrap[data-template="red-velvet"] .wi-card::before{
    background-size: 240px 240px !important;
    opacity: .08 !important;
  }

  .wi-corner{
    width:110px;
    height:110px;
  }

  .wi-events,
  .wi-events[class*="wi-events-"]{
    grid-template-columns:minmax(0, 1fr) !important;
    max-width:100%;
  }

  .wi-events .wi-event{
    grid-column:auto !important;
    width:100%;
  }

  .wi-names{
    flex-direction: column;
    gap: 14px;
  }

  .wi-person{
    width:100%;
    min-width: unset;
    max-width: unset;
  }

  .wi-photo{ width:96px; height:96px; }

  .wi-person-name{ font-size:24px; padding: 0 10px; }

  .wi-heart{ width:100%; }
  .wi-hand-img{ width:120px; }

  .wi-bottom-grid{ grid-template-columns:1fr; }

  .wi-invite-line{ font-size:16px; }

  /* Buttons compact on mobile */
  .wi-map-btn,
  .wi-btn{
    padding: 9px 14px;
    font-size: 13px;
  }

  .wi-music-toggle{
    right: 12px;
    bottom: 12px;
    padding: 11px 14px;
    font-size: 13px;
  }
}

@media print{
  *{
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  @page{
    margin: 10mm;
  }

  html, body{
    background: #fff !important;
  }

  .wi-actions,
  .wi-share,
  .wi-orderbar,
  .wi-music-toggle,
  #wi-countdown,
  .wi-gallery-popup-cta,
  #galleryPopup,
  .wi-gallery-modal,
  .wi-map-btn,
  .wi-btn{
    display: none !important;
  }

  .wi-wrap{
    padding: 0 !important;
    min-height: auto !important;
  }

  .wi-card{
    box-shadow: none !important;
  }

  .wi-title-img{
    width: 260px !important;
    max-width: 260px !important;
    height: auto !important;
  }

  .wi-ganesh-img{
    width: 90px !important;
    max-width: 90px !important;
    height: auto !important;
  }

  /* Ensure dividers remain visible even when print background graphics are off */
  .wi-divider{
    background: none !important;
    height: 0 !important;
    border-top: 1px solid rgba(183,28,28,.55) !important;
  }

  .wi-invite-divider{
    background: none !important;
    height: 0 !important;
    border-top: 3px solid rgba(245,176,65,.85) !important;
  }

  .wi-section-title::after{
    background: none !important;
    height: 0 !important;
    border-top: 4px solid rgba(183,28,28,.65) !important;
  }

  .wi-section,
  .wi-event,
  .wi-venue,
  .wi-person{
    break-inside: avoid-page;
    page-break-inside: avoid;
  }
}

@media (prefers-reduced-motion: reduce){
  .wi-wrap .wi-top,
  .wi-wrap .wi-names,
  .wi-wrap .wi-section,
  .wi-wrap .wi-bottom,
  .wi-wrap .wi-orderbar,
  .wi-wrap .wi-hand-img,
  .wi-wrap .wi-card,
  .wi-wrap .wi-card::after,
  .wi-music-toggle{
    animation: none !important;
    transition: none !important;
  }
}

  /* =========================================
   ORDER BAR + CREDIT
========================================= */
.wi-orderbar{
  margin-top: 18px;
  text-align: center;
  position: relative;
  z-index: 5;
}

.wi-order-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: .2px;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
  box-shadow: none;
  opacity: .95;
}

.wi-order-btn:hover{
  transform: translateY(-1px);
  opacity: 1;
}


.wi-credit{
  margin-top: 10px;
  font-size: 12px;
  font-weight: 900;
  opacity: .92;
}

.wi-credit a{
  text-decoration: none;
  font-weight: 1000;
  border-bottom: 1px dotted rgba(255,255,255,.6);
}

/* Default template */
.wi-wrap[data-template="default"] .wi-order-btn{
  background: rgba(183,28,28,.07);
  color: var(--wi-red) !important;
  border: 1px solid rgba(183,28,28,.18);
}
.wi-wrap[data-template="default"] .wi-credit,
.wi-wrap[data-template="default"] .wi-credit a{
  color: var(--wi-red-dark) !important;
  border-color: rgba(183,28,28,.45);
}

/* Royal Gold template */
.wi-wrap[data-template="royal-gold"] .wi-order-btn{
  background: rgba(245,176,65,.14);
  color: var(--wi-red-dark) !important;
  border: 1px solid rgba(245,176,65,.30);
}
.wi-wrap[data-template="royal-gold"] .wi-credit,
.wi-wrap[data-template="royal-gold"] .wi-credit a{
  color: var(--wi-red-dark) !important;
  border-color: rgba(183,28,28,.45);
}

/* Minimal template */
.wi-wrap[data-template="minimal"] .wi-order-btn{
  background: rgba(183,28,28,.06);
  color: #5d1a1a !important;
  border: 1px solid rgba(183,28,28,.16);
}

.wi-wrap[data-template="minimal"] .wi-credit,
.wi-wrap[data-template="minimal"] .wi-credit a{
  color: #5d1a1a !important;
  border-color: rgba(93,26,26,.45);
}

/* Red Velvet template (Royal Premium) */
.wi-wrap[data-template="red-velvet"] .wi-order-btn{
  background: rgba(255,255,255,.08) !important;
  color: #ffda6b !important;
  border: 1px solid rgba(255,215,0,.30) !important;
}

.wi-wrap[data-template="red-velvet"] .wi-credit{
  color: rgba(255,246,208,.92) !important;
}
.wi-wrap[data-template="red-velvet"] .wi-credit a{
  color: #ffda6b !important;
  border-color: rgba(255,218,107,.60);
}

/* Mobile */
@media(max-width:700px){
  .wi-order-btn{
    width: 100%;
    max-width: 360px;
    padding: 12px 14px;
    font-size: 13px;
  }
}

.wi-event-extra{
  font-size:15px;
  margin-top:4px;
  opacity:.85;
  font-weight:600;
}

.wi-countdown{
  text-align:center;
  font-size:18px;
  margin-top:8px;
  font-weight:700;
}

.wi-wrap[data-template="red-velvet"] .wi-countdown{
  color:#ffd700;
}

/* Shorts portrait video box */
.wi-video-box{
  position:relative;
  width:100%;
  max-width:380px;      /* mobile perfect */
  margin:18px auto;
  padding-bottom:170%;  /* portrait ratio */
  height:0;
  overflow:hidden;
  border-radius:18px;
  box-shadow:0 10px 30px rgba(0,0,0,.4);
  background:#000;
}

/* iframe full fill */
.wi-video-box iframe{
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  border:0;
}

.wi-video-box{
  max-width:420px;
  padding-bottom:175%;
}

@media(max-width:600px){
  .wi-video-box{
    max-width:95%;
    padding-bottom:170%;
  }
}

/* =========================================
EVENT NAME = DULHA DULHAN FONT SAME
========================================= */

/* same font like bride-groom */
.wi-event-name{
  font-family:"Yatra One", cursive !important;
  font-size:22px;
  letter-spacing:.5px;
}

/* =========================================
DARSHANABHILASHI + AKANSHI STYLING
========================================= */

/* label normal */
.wi-bottom-line b{
  font-family:"Tiro Devanagari Hindi", serif !important;
  font-weight:700 !important;
  font-size:16px;
  opacity:.95;
}

/* data stylish */
.wi-bottom-line{
  font-family:"Yatra One", cursive !important;
  font-size:18px;
  letter-spacing:.4px;
}

.wi-bottom-line--darshan{
  font-family:"Tiro Devanagari Hindi", serif !important;
  font-size:16px;
  letter-spacing: 0;
  font-weight: 800;
}

/* default template colour */
.wi-wrap[data-template="default"] .wi-bottom-line{
  color:#b71c1c !important;
}

/* royal gold */
.wi-wrap[data-template="royal-gold"] .wi-bottom-line{
  color: var(--wi-red-dark) !important;
}

/* red velvet premium */
.wi-wrap[data-template="red-velvet"] .wi-bottom-line{
  color:#ffd86b !important;
  text-shadow:0 3px 12px rgba(0,0,0,.6);
}

/* minimal */
.wi-wrap[data-template="minimal"] .wi-bottom-line{
  color:#7a0000 !important;
}

/* =========================================
REMOVE DUPLICATE / MINIMAL CONFLICT FIX
========================================= */

/* prevent override */
.wi-bottom-line,
.wi-bottom-line *{
  line-height:1.5;
}

/* spacing fix */
.wi-bottom-grid{
  margin-top:10px;
}

/* =========================================
SEPARATOR LINE BETWEEN DARSHAN & AKANSHI
========================================= */

.wi-bottom-grid{
  position:relative;
}

.wi-bottom-grid::after{
  content:"";
  position:absolute;
  left:10%;
  right:10%;
  bottom:-8px;
  height:1px;
  background:linear-gradient(90deg,transparent,#d4af37,transparent);
  opacity:.6;
}
