/* ============================================================
   🌸 WEDDING CSS — S & T  |  Luxe Romantic Edition
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Lao:wght@300;400;600;700&family=Noto+Serif+Lao:wght@300;400;700&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400;1,600&family=Great+Vibes&display=swap');

/* ══════════════════════════════════════════
   DESIGN TOKENS
══════════════════════════════════════════ */
:root {
  --rose: #996E6D;
  --rose-mid: #BC8887;
  --rose-light: #EDD2D1;
  --rose-pale: #F4E2E2;
  --rose-deep: #7A5555;
  --gold: #C9A96E;
  --gold-light: #E8D5A3;
  --gold-pale: #FDF5E4;
  --ivory: #FDFAF6;
  --text-dark: #3D2B2B;
  --text-mid: #6B4848;
  --text-soft: #9E7070;
  --white: #FFFFFF;

  --shadow-rose: 0 8px 32px rgba(153, 110, 109, 0.20);
  --shadow-gold: 0 8px 32px rgba(201, 169, 110, 0.18);
  --shadow-deep: 0 16px 48px rgba(100, 60, 60, 0.22);

  --radius-xl: 24px;
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-pill: 999px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ══════════════════════════════════════════
   RESET & BASE
══════════════════════════════════════════ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-family: 'Noto Sans Lao', sans-serif;
  width: 100%;
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  background-color: var(--ivory);
  background-image:
    radial-gradient(ellipse at 0% 0%, rgba(201, 169, 110, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse at 100% 100%, rgba(153, 110, 109, 0.07) 0%, transparent 55%);
  color: var(--text-dark);
}

/* ══════════════════════════════════════════
   FLOATING PETALS (decorative background)
══════════════════════════════════════════ */
body::before {
  content: '🌸 🌷 🌺 🌸 🌷 🌺 🌸 🌷 🌺 🌸';
  position: fixed;
  top: -100px;
  left: 0;
  right: 0;
  font-size: 1.5rem;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  animation: fallingPetals 20s linear infinite;
  white-space: nowrap;
  letter-spacing: 80px;
}

@keyframes fallingPetals {
  0% {
    transform: translateY(-100px) rotate(0deg);
    opacity: 0;
  }

  5% {
    opacity: 0.3;
  }

  90% {
    opacity: 0.15;
  }

  100% {
    transform: translateY(110vh) rotate(360deg);
    opacity: 0;
  }
}

/* ══════════════════════════════════════════
   SCROLLBAR
══════════════════════════════════════════ */
::-webkit-scrollbar {
  width: 6px;
  background: var(--rose-pale);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--rose-mid), var(--gold));
  border-radius: 6px;
}

/* ══════════════════════════════════════════
   PRELOADER
══════════════════════════════════════════ */
body.preloader-site {
  overflow: hidden;
}

.preloader-wrapper {
  height: 100%;
  width: 100%;
  background: linear-gradient(135deg, var(--rose-pale) 0%, var(--ivory) 50%, var(--gold-pale) 100%);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
}

.preloader-wrapper::before {
  content: '♡';
  font-size: 3rem;
  color: var(--rose-mid);
  animation: heartbeat 1.2s ease-in-out infinite;
  position: absolute;
  top: calc(50% - 80px);
}

@keyframes heartbeat {

  0%,
  100% {
    transform: scale(1);
  }

  14% {
    transform: scale(1.3);
  }

  28% {
    transform: scale(1);
  }

  42% {
    transform: scale(1.2);
  }
}

.preloader-wrapper .preloader {
  width: 80px;
  animation: spinFlower 3s linear infinite;
  filter: drop-shadow(0 4px 12px rgba(153, 110, 109, 0.4));
}

@keyframes spinFlower {

  0%,
  100% {
    transform: rotate(0deg) scale(1);
  }

  25% {
    transform: rotate(5deg) scale(1.05);
  }

  75% {
    transform: rotate(-5deg) scale(1.05);
  }
}

/* ══════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════ */
.navbar-item {
  line-height: 38px;
  font-weight: 600;
  letter-spacing: 1px;
  font-size: 1rem;
  color: var(--rose);
  transition: color 0.25s var(--ease);
}

.navbar-item.is-active {
  border-bottom: 2px solid var(--rose);
}

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.header-wrapper {
  padding-bottom: 30px;
}

.hero {
  background-image: url(../image/06.png);
  background: linear-gradient(160deg, rgba(100, 50, 50, 0.78) 0%, rgba(153, 110, 109, 0.62) 50%, rgba(80, 40, 40, 0.70) 100%),
    url("../image/06.png") 75% center / cover no-repeat;
  background-attachment: scroll;
  color: white;
  position: relative;
  overflow: hidden;
}

/* Gold shimmer overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(201, 169, 110, 0.25) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 80%, rgba(201, 169, 110, 0.08) 0%, transparent 40%);
  pointer-events: none;
  z-index: 1;
}

/* Animated bokeh lights */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 25%, rgba(255, 235, 200, 0.12) 0 8px, transparent 9px),
    radial-gradient(circle at 75% 15%, rgba(255, 235, 200, 0.10) 0 5px, transparent 6px),
    radial-gradient(circle at 85% 65%, rgba(255, 235, 200, 0.08) 0 10px, transparent 11px),
    radial-gradient(circle at 35% 75%, rgba(255, 235, 200, 0.09) 0 6px, transparent 7px),
    radial-gradient(circle at 60% 45%, rgba(255, 235, 200, 0.07) 0 14px, transparent 15px);
  animation: bokeh 8s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 1;
}

@keyframes bokeh {
  from {
    opacity: 0.6;
    transform: scale(1);
  }

  to {
    opacity: 1;
    transform: scale(1.04);
  }
}

.hero .hero-body {
  position: relative;
  z-index: 2;
}

/* ── Hero Title ── */
.hero .title {
  font-family: 'Noto Serif Lao', serif;
  font-weight: 700;
  transform: rotate(-2deg);
  font-size: 5rem;
  padding-bottom: 5px;
  color: var(--white);
  text-shadow:
    0 2px 0 rgba(100, 50, 50, 0.4),
    0 4px 20px rgba(201, 169, 110, 0.5),
    0 0 60px rgba(255, 220, 180, 0.2);
  letter-spacing: 3px;
  animation: heroTitleIn 1.2s var(--ease) both;
}

@keyframes heroTitleIn {
  from {
    opacity: 0;
    transform: rotate(-2deg) translateY(30px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: rotate(-2deg) translateY(0) scale(1);
  }
}

.hero .subtitle {
  font-family: 'Noto Sans Lao', sans-serif;
  padding: 35px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.3rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
  letter-spacing: 2px;
  animation: heroTitleIn 1.2s 0.2s var(--ease) both;
}

.hero .tempatwaktu {
  padding-top: 35px;
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 1px;
  line-height: 2;
  animation: heroTitleIn 1.2s 0.4s var(--ease) both;
}

/* ── Hero Foot ── */
.hero .hero-foot {
  height: 50px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(153, 110, 109, 0.12);
  border-top: 1px solid rgba(201, 169, 110, 0.2);
  position: relative;
  z-index: 2;
}

@media (max-width: 599px) {
  .hero .hero-foot {
    display: none;
  }
}

.hero .hero-foot .hero-foot--wrapper {
  margin: 7px auto;
  height: 50px;
}

.hero .hero-foot .hero-foot--wrapper .hero-menu-desktop {
  line-height: 38px;
  font-weight: 600;
  letter-spacing: 1px;
  font-size: 1rem;
}

.hero .hero-foot .hero-foot--wrapper .hero-menu-desktop ul li {
  display: inline-block;
  padding-right: 15px;
  padding-left: 15px;
}

.hero .hero-foot .hero-foot--wrapper .hero-menu-desktop ul li a {
  color: var(--rose);
  text-decoration: none;
  position: relative;
  transition: color 0.25s var(--ease);
}

.hero .hero-foot .hero-foot--wrapper .hero-menu-desktop ul li a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--rose));
  transition: width 0.3s var(--ease);
  border-radius: 2px;
}

.hero .hero-foot .hero-foot--wrapper .hero-menu-desktop ul li a:hover::after,
.hero .hero-foot .hero-foot--wrapper .hero-menu-desktop ul li.is-active a::after {
  width: 100%;
}

.hero .hero-foot .hero-foot--wrapper .hero-menu-desktop ul li.is-active a {
  border-bottom: 2px solid var(--rose);
}

/* ══════════════════════════════════════════
   COUNTDOWN — Frosted Glass Boxes
══════════════════════════════════════════ */
ul#hitungmundur {
  list-style: none;
  margin: 28px auto 8px;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 0;
}

ul#hitungmundur li {
  display: inline-block;
}

ul#hitungmundur li:not(.separator) {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 14px;
  padding: 10px 18px 8px;
  margin: 0 6px;
  backdrop-filter: blur(6px);
  min-width: 68px;
  text-align: center;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.3s var(--ease-bounce);
}

ul#hitungmundur li:not(.separator):hover {
  transform: translateY(-4px) scale(1.05);
}

ul#hitungmundur li span {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem;
  font-weight: 600;
  line-height: 1;
  color: #fff;
  display: block;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

ul#hitungmundur li p {
  font-size: 0.65rem !important;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 5px;
}

ul#hitungmundur li.separator {
  font-size: 2.2rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1;
  padding-bottom: 22px;
  margin: 0 2px;
  animation: blinkColon 1.5s step-end infinite;
}

@keyframes blinkColon {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: 0.3
  }
}

/* ══════════════════════════════════════════
   SPACING HELPERS
══════════════════════════════════════════ */
.space40px {
  height: 40px;
}

.space24px {
  height: 24px;
}

.has-vertically-aligned-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.has-vertically-align {
  vertical-align: middle;
}

/* ══════════════════════════════════════════
   MAIN CONTENT
══════════════════════════════════════════ */
.main-content {
  padding-top: 2rem;
  color: var(--text-dark);
  font-family: 'Noto Sans Lao', sans-serif;
}

/* ── Sections ── */
.main-content .section-dark {
  background: linear-gradient(160deg, #FCF0EF 0%, var(--rose-pale) 50%, #EDD2D1 100%);
  padding: 80px 40px;
  border-top: 1px solid rgba(201, 169, 110, 0.12);
  border-bottom: 1px solid rgba(201, 169, 110, 0.12);
  position: relative;
}

.main-content .section-darker {
  background: linear-gradient(160deg, var(--rose-light) 0%, #E2C5C4 100%);
  padding: 80px 40px;
}

.main-content .section-light {
  padding: 80px 40px;
  background-image: url(../image/divider-flowers-leaves.png);
  background-position: bottom -30px center;
  background-repeat: no-repeat;
  background-size: initial;
  position: relative;
}

/* gold line top on sections */
.main-content .section-light::before,
.main-content .section-dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
}

.main-content .section-light.regular-section {
  padding-bottom: 80px;
}

.main-content .section-light.regular-section .is-larger {
  font-size: 1.2rem;
}

.main-content .section-light.regular-section .right-image img {
  border-radius: 11px;
  margin: 20px;
  box-shadow: 0 5px 20px rgba(14, 25, 80, 0.3);
}

@media (max-width: 599px) {
  .main-content .section-light.regular-section .about-links {
    text-align: center;
  }

  .main-content .section-light.regular-section .right-image img {
    margin: auto;
  }
}

/* ── Section Title — Gold Shimmer ── */
.main-content .section-title {
  position: relative;
  display: block !important;
  width: fit-content;
  margin: 0 auto;
  font-family: 'Cormorant Garamond', 'Noto Serif Lao', serif !important;
  font-size: 1.7rem !important;
  font-weight: 600 !important;
  font-style: italic;
  letter-spacing: 2px !important;
  text-transform: none !important;
  padding-bottom: 24px !important;

  /* animated shimmer text */
  background: linear-gradient(90deg,
      var(--rose) 0%,
      var(--gold) 30%,
      var(--rose-deep) 50%,
      var(--gold) 70%,
      var(--rose) 100%);
  background-size: 250% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmerTitle 5s linear infinite;
}

@keyframes shimmerTitle {
  from {
    background-position: 0% center;
  }

  to {
    background-position: 250% center;
  }
}

.main-content .section-title::after {
  content: '—  ✦  —';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  letter-spacing: 6px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}

/* ══════════════════════════════════════════
   BISMILLAH & DIVIDERS
══════════════════════════════════════════ */
.bismillah {
  display: block;
  margin: 0 auto 8px;
  max-height: 120px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(153, 110, 109, 0.2));
  animation: gentlePulse 4s ease-in-out infinite;
}

@keyframes gentlePulse {

  0%,
  100% {
    filter: drop-shadow(0 2px 8px rgba(153, 110, 109, 0.2));
  }

  50% {
    filter: drop-shadow(0 4px 16px rgba(201, 169, 110, 0.4));
  }
}

.divider {
  margin: 24px auto;
  display: block;
  max-height: 56px;
  opacity: 0.85;
  transition: opacity 0.3s, transform 0.3s;
}

.divider:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* ── Divider Line (family section) ── */
.divider-line {
  border-top: 1px solid var(--gold-light) !important;
  margin: 0 12px;
  position: relative;
}

.divider-line::before {
  content: '✦';
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gold);
  font-size: 0.85rem;
  background: transparent;
  padding: 0 8px;
  animation: spinDiamond 6s linear infinite;
}

@keyframes spinDiamond {
  from {
    transform: translateX(-50%) rotate(0deg)
  }

  to {
    transform: translateX(-50%) rotate(360deg)
  }
}

/* ══════════════════════════════════════════
   FAMILY SECTION
══════════════════════════════════════════ */


.family-section-top {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  gap: 0;
  position: relative;
  padding-bottom: 20px;
}

.family-col {
  flex: 1;
  text-align: center;
  padding: 0 16px;
  min-width: 0;
}

.family-col-center {
  flex: 0 0 80px;
  min-width: 60px;
}

.family-heading {
  font-weight: 700;
  color: #996E6D;
  font-size: 15px;
  margin-bottom: 8px;
  white-space: nowrap;
  text-align: center;
}

.family-names-list {
  display: inline-block;
  text-align: left;
  font-size: 13px;
  color: #333;
  white-space: nowrap;
}

.family-names-list span {
  display: block;
  line-height: 2;
}

.family-names-wrap {
  text-align: center;
}

.divider-line {
  border-top: 1px solid #D8A9A8;
  margin: 0 12px;
  background: transparent;
}

.st-float-wrap {
  position: absolute;
  left: 50%;
  bottom: -65px;
  transform: translateX(-50%);
  z-index: 10;
  background: transparent;
  padding: 0 6px;
}

.family-section-bottom {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  margin-top: 70px;
  gap: 10px;
}

.couple-col {
  flex: 1;
  text-align: center;
  min-width: 0;
  padding: 0 4px;
  /* เพิ่ม 3 บรรทัดนี้ เพื่อบังคับให้ทุกข้อความในฝั่งตัวเองจัดเรียงกึ่งกลางแนวตั้งเป๊ะๆ */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.couple-name-text {
  font-family: 'Noto Serif Lao', serif;
  /* ปรับขนาดฟอนต์ให้เล็กลงนิดนึง เพื่อให้แถวเดียวพอดีกับจอมือถือ */
  font-size: 13px;
  color: #996E6D;
  line-height: 1.3;
  white-space: nowrap;
  /* บังคับแถวเดียว */
  margin-bottom: 8px;
  text-align: center;
}

.couple-nick {
  font-weight: bold;
  font-size: 15px;
  color: #996E6D;
  white-space: nowrap;
  /* บังคับแถวเดียว */
  margin: 0 0 8px 0;
  text-align: center;
}

.couple-role {
  font-style: italic;
  font-size: 12px;
  color: #555;
  white-space: nowrap;
  /* บังคับแถวเดียว (อันเก่าเราคอมเมนต์ไว้ ตอนนี้เปิดใช้แล้วครับ) */
  margin: 0;
  line-height: 1.5;
  text-align: center;
}

/* โค้ดใหม่ที่ปลดล็อคให้กล่องขยายได้ */
.couple-logo-col {
  flex: 0 0 auto;        /* 1. เปลี่ยนตรงนี้เป็น auto เพื่อปลดล็อค */
  min-width: 110px;      /* 2. เพิ่มขนาดพื้นที่ให้กว้างขึ้น (ปรับเลขนี้ได้ตามต้องการ) */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -30px;
}


/* compat */
.nama-lengkap {
  font-family: 'Noto Serif Lao', serif;
  font-size: 3.5rem;
  color: var(--rose);
  letter-spacing: 0px;
  padding-bottom: 6px;
  line-height: 3.7rem;
  text-shadow: 0 2px 12px rgba(153, 110, 109, 0.2);
}

.couple-name-card {
  font-size: clamp(0.9rem, 2.8vw, 1.5rem) !important;
  color: var(--rose) !important;
  line-height: 1.3 !important;
  word-break: break-word;
  overflow-wrap: break-word;
  width: 100%;
  text-shadow: 0 2px 10px rgba(153, 110, 109, 0.15);
}

.family-list {
  font-size: clamp(0.6rem, 1.5vw, 0.85rem);
  line-height: 1.7;
  margin-bottom: 16px;
  word-break: break-word;
  overflow-wrap: break-word;
  width: 100%;
}

.family-cols {
  align-items: stretch !important;
}

.family-cols>.column {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 8px;
}

/* ══════════════════════════════════════════
   WAKTU (Schedule)
══════════════════════════════════════════ */
.waktu {
  font-size: 1.6rem;
  font-family: 'Noto Serif Lao', serif;
  color: var(--text-mid);
}

.tanggal-angka {
  font-family: 'Cormorant Garamond', serif;
  font-size: 5rem;
  font-weight: 600;
  line-height: 1;
  color: var(--rose);
  text-shadow: 3px 5px 0 rgba(201, 169, 110, 0.3);
  animation: dateFloat 4s ease-in-out infinite;
}

@keyframes dateFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

.waktu.tanggal-hari,
.waktu.tanggal-bulan {
  color: var(--rose-mid);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-family: 'Noto Serif Lao', serif;
}

.waktu.is-larger {
  color: var(--text-mid);
  font-size: 1.1rem;
}

/* ══════════════════════════════════════════
   LOKASI (Map)
══════════════════════════════════════════ */
.tempat {
  font-size: 1.4rem;
  font-family: 'Noto Serif Lao', serif;
  color: var(--text-mid);
  margin-bottom: 50px;
  line-height: 1.8;
}

.section-map {
  padding: 0;
}

.section-map iframe {
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-rose) !important;
  display: block;
}

/* ══════════════════════════════════════════
   FOTO TILES (Love Story)
══════════════════════════════════════════ */
.tile {
  border-radius: var(--radius-md);
}

.tile.is-child[class*="foto"],
article.tile.is-child {
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease) !important;
  border-radius: var(--radius-md) !important;
  overflow: hidden;
}

.tile.is-child[class*="foto"]:hover {
  transform: scale(1.035) translateY(-4px) !important;
  box-shadow: 0 20px 50px rgba(80, 30, 30, 0.35) !important;
}

.foto1,
.foto2,
.foto3,
.foto4,
.foto5,
.foto6 {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 24rem;
}

.foto1 {
  background-image: linear-gradient(160deg, rgba(80, 20, 20, 0.11), rgba(30, 10, 10, 0)), url("../image/03.png");
}

.foto2 {
  background-image: linear-gradient(160deg, rgba(80, 20, 20, 0.11), rgba(30, 10, 10, 0)), url("../image/04.png");
}

.foto3 {
  background-image: linear-gradient(160deg, rgba(80, 20, 20, 0.11), rgba(30, 10, 10, 0)), url("../image/01.png");
  background-position: top;
}

.foto4 {
  background-image: linear-gradient(160deg, rgba(80, 20, 20, 0.11), rgba(30, 10, 10, 0)), url("../image/02.png");
  background-position: top;
}

.foto5 {
  background-image: linear-gradient(160deg,  rgba(80, 20, 20, 0.11), rgba(30, 10, 10, 0)), url("../image/05.png");
}

.foto6 {
  background-image: linear-gradient(160deg, rgba(80, 20, 20, 0.11), rgba(30, 10, 10, 0)), url("../image/07.png");
}

.title-foto {
  font-family: 'Noto Sans Lao', sans-serif;
  font-size: 1.35rem !important;
  font-style: italic;
  font-weight: 600; /* ปรับให้ตัวหนาขึ้นนิดนึงจะได้อ่านง่าย */
  text-align: left;
  color: #ffffff !important; /* เปลี่ยนเป็นสีขาวล้วน 100% */
  
  /* เพิ่มเงาซ้อนกัน 3 ชั้น ให้ตัวหนังสือลอยเด่นขึ้นมาจากรูป */
  text-shadow: 
    0px 2px 4px rgba(0, 0, 0, 0.9),   /* ขอบเงาเข้มๆ ตีขอบตัวหนังสือ */
    0px 5px 15px rgba(0, 0, 0, 0.8),  /* เงากระจายระยะกลาง */
    0px 0px 25px rgba(0, 0, 0, 1) !important; /* เงาฟุ้งๆ วงกว้าง รองพื้นด้านหลัง */
    
  letter-spacing: 0.5px;
}


.subtitle-foto {
  font-family: 'Noto Sans Lao', sans-serif;
  font-weight: 400;
  font-size: 0.9rem;
  margin-top: 8px;
  text-align: left;
  color: #ffffff; /* เปลี่ยนเป็นสีขาวล้วน 100% */
  line-height: 1.5;
  
  /* เพิ่มเงาให้ข้อความบรรทัดล่างด้วย */
  text-shadow: 
    0px 2px 4px rgba(0, 0, 0, 0.9), 
    0px 0px 15px rgba(0, 0, 0, 0.8);
}

/* ══════════════════════════════════════════
   QR CARDS
══════════════════════════════════════════ */
.qr-card {
  border-radius: var(--radius-xl) !important;
  border: 1px solid var(--gold-light) !important;
  background: linear-gradient(160deg, #fff9f9 0%, #ffffff 60%, #fffaf5 100%) !important;
  box-shadow: var(--shadow-rose) !important;
  transition: transform 0.35s var(--ease-bounce), box-shadow 0.35s var(--ease) !important;
  overflow: hidden;
  position: relative;
}

/* shimmer bar on top */
.qr-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--rose-light), var(--gold), var(--rose-light));
  background-size: 200% auto;
  animation: shimmerBar 3s linear infinite;
}

@keyframes shimmerBar {
  from {
    background-position: 0% center
  }

  to {
    background-position: 200% center
  }
}

.qr-card:hover {
  transform: translateY(-8px) scale(1.02) !important;
  box-shadow: 0 20px 50px rgba(201, 169, 110, 0.28) !important;
}

.qr-card .card-content {
  padding: 8px 6px 14px;
}

.qr-card p {
  font-size: clamp(0.65rem, 2vw, 0.92rem) !important;
  line-height: 1.5;
  word-break: break-word;
  color: var(--text-mid) !important;
}

.qr-card img {
  width: 90% !important;
  max-width: 200px !important;
  margin: 0 auto 10px auto !important;
  border-radius: var(--radius-md);
  display: block;
  transition: transform 0.3s var(--ease), filter 0.3s;
}

.qr-card:hover img {
  transform: scale(1.04);
  filter: brightness(1.05);
}

.qr-card a[download] {
  display: inline-block;
  margin: 4px auto 12px;
  background: linear-gradient(135deg, var(--rose-mid), var(--rose));
  color: white !important;
  padding: 9px clamp(12px, 4vw, 22px) !important;
  border-radius: var(--radius-pill);
  font-size: clamp(0.65rem, 2vw, 0.88rem) !important;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s var(--ease-bounce);
  box-shadow: 0 4px 14px rgba(153, 110, 109, 0.35);
  position: relative;
  overflow: hidden;
}

.qr-card a[download]::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s var(--ease);
}

.qr-card a[download]:hover::after {
  transform: translateX(100%);
}

.qr-card a[download]:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 22px rgba(153, 110, 109, 0.45);
}

/* ══════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════ */
.btn-cta {
  background: linear-gradient(135deg, var(--rose), var(--rose-deep)) !important;
  color: white !important;
  border: none !important;
  border-radius: var(--radius-pill) !important;
  height: 52px;
  min-width: 200px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 1px;
  box-shadow: 0 6px 20px rgba(153, 110, 109, 0.4);
  transition: all 0.3s var(--ease-bounce) !important;
  position: relative;
  overflow: hidden;
}

.btn-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -80%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: skewX(-15deg);
  transition: left 0.6s var(--ease);
}

.btn-cta:hover::before {
  left: 130%;
}

.btn-cta:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 12px 30px rgba(153, 110, 109, 0.5) !important;
  background: linear-gradient(135deg, var(--rose-mid), var(--rose)) !important;
  color: white !important;
}

.btn-whatsapp {
  background: linear-gradient(135deg, #48c55a, #25a244) !important;
  color: white !important;
  border: none !important;
  border-radius: var(--radius-pill) !important;
  height: 52px;
  min-width: 200px;
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(37, 162, 68, 0.35);
  transition: all 0.3s var(--ease-bounce) !important;
  position: relative;
  overflow: hidden;
  align-items: center;
  margin: 1rem;
}

.btn-whatsapp:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 12px 28px rgba(37, 162, 68, 0.45) !important;
  color: white !important;
}

/* ══════════════════════════════════════════
   RSVP SECTION
══════════════════════════════════════════ */
.main-content .section-dark.contact {
  padding: 80px;
}

@media (max-width: 599px) {
  .main-content .section-dark.contact {
    padding: 80px 40px;
  }
}

.main-content .section-dark.contact button {
  width: 100%;
  color: white;
  height: 50px;
  font-size: 1.1rem;
  text-transform: uppercase;
  font-family: 'Noto Sans Lao', sans-serif;
}

.select select,
.textarea {
  border-color: var(--rose-light) !important;
  border-radius: var(--radius-md) !important;
  color: var(--text-dark) !important;
  font-family: 'Noto Sans Lao', sans-serif !important;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.select select:focus,
.textarea:focus {
  border-color: var(--rose-mid) !important;
  box-shadow: 0 0 0 3px rgba(188, 136, 135, 0.18) !important;
}

/* ── RSVP Pertanyaan ── */
.main-content .section-color.pertanyaan {
  padding: 100px;
  background: linear-gradient(135deg, var(--rose) 0%, var(--rose-deep) 100%);
  color: white;
}

.main-content .section-color.pertanyaan .title,
.main-content .section-color.pertanyaan .subtitle {
  color: white;
}

.main-content .section-color.pertanyaan i {
  font-size: 3rem;
  padding: 20px;
}

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.footer {
  background: linear-gradient(135deg, var(--rose-mid) 0%, var(--rose-deep) 100%) !important;
  padding: 18px 10px !important;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
}

.footer p {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
  font-size: 10pt;
  display: inline-block;
  vertical-align: middle;
}

.footer img {
  margin: 10px 0 10px 10px;
  display: inline-block;
  max-height: 22px;
  vertical-align: middle;
  opacity: 0.8;
  filter: brightness(10);
  transition: opacity 0.25s, transform 0.25s;
}

.footer img:hover {
  opacity: 1;
  transform: scale(1.15);
}

.footer a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.25s;
}

.footer a:hover {
  color: white;
}

.footer a .nav-item {
  color: rgba(255, 255, 255, 0.75);
}

/* ── #toTop Button ── */
#toTop {
  height: 50px;
  width: 50px;
  display: none;
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 99;
  border: none;
  outline: none;
  background: linear-gradient(135deg, var(--rose-mid), var(--rose));
  color: white;
  cursor: pointer;
  border-radius: 50%;
  font-size: 1.4rem;
  box-shadow: 0 6px 20px rgba(153, 110, 109, 0.45);
  transition: all 0.3s var(--ease-bounce);
}

#toTop:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 12px 28px rgba(153, 110, 109, 0.55);
  background: linear-gradient(135deg, var(--rose), var(--rose-deep));
}

#toTop a {
  color: white;
}

/* ══════════════════════════════════════════
   MISC
══════════════════════════════════════════ */
.cashbac-logo-inline {
  width: 160px;
  vertical-align: middle;
}

.fa-download {
  color: var(--rose);
}

.fa-copy {
  margin-right: 5px;
}

.white {
  color: ghostwhite;
}

.dusty-pink {
  color: #D8A9A8;
}

.dusty-pink-lighter {
  color: #EDD2D1;
}

.dusty-pink-lightest {
  color: #F4E2E2;
}

.dusty-pink-darker {
  color: #BC8887;
}

.dusty-pink-darkest {
  color: #996E6D;
}

.bodytext {
  font-size: 20px;
}

.ampersand {
  font-size: 5rem;
  font-family: 'Cormorant Garamond', serif;
  color: var(--rose);
  line-height: 5rem;
  display: inline-block;
  vertical-align: middle;
}

.instagram {
  color: var(--rose);
  font-size: 1.25rem;
  font-weight: 900;
  margin-top: 0.5rem;
  display: inline-block;
  vertical-align: middle;
  text-align: center;
  padding: 10px;
  transition: color 0.25s, transform 0.25s;
}

.instagram:hover {
  color: var(--gold);
  transform: scale(1.15);
}

.section-map {
  padding: 0;
}

.main-content .no-padding-top {
  padding-top: 0;
}

.main-content .section-dark.my-work {
  padding: 80px 40px;
}

.main-content .section-dark.my-work .work-item:hover {
  transform: scale(1.055) translateY(-2px);
  box-shadow: 0 2px 25px rgba(30, 30, 30, 0.1);
}

.main-content .section-dark.foto-foto .foto-item {
  margin-bottom: 1rem;
  transition: all .1s ease-in-out;
  border-radius: 5px;
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: 0 5px 20px rgba(14, 25, 80, 0.3);
}

@media (max-width: 599px) {
  .main-content .section-dark.foto-foto {
    padding: 75px 20px;
  }
}

/* ══════════════════════════════════════════
   RESPONSIVE LOCK
══════════════════════════════════════════ */
.columns:not(.is-multiline) {
  display: flex !important;
  flex-wrap: nowrap !important;
}

@supports (-webkit-overflow-scrolling: touch) {
  .hero {
    background-attachment: scroll !important;
  }
}

@media (max-width: 768px) {
  .hero .title {
    font-size: 3rem !important;
  }

  .tanggal-angka {
    font-size: 3rem !important;
  }

  .nama-lengkap {
    font-size: 2rem !important;
    line-height: 2.2rem !important;
  }

  .waktu {
    font-size: 1.1rem !important;
  }

  ul#hitungmundur li:not(.separator) {
    padding: 8px 10px 6px;
    min-width: 52px;
    margin: 0 3px;
    border-radius: 10px;
  }

  ul#hitungmundur li span {
    font-size: 1.9rem !important;
  }

  .main-content .section-title {
    font-size: 1.3rem !important;
  }
}

@media (max-width: 480px) {

  .btn-whatsapp,
  .btn-cta {
    width: 90% !important;
    margin: 0.5rem auto !important;
    display: block !important;
  }
}




/* ============================================================
   FIX: ป้องกัน AOS จาก layout shift ที่กระทบปุ่มหัวใจ
   ============================================================ */

/* ทุก element ที่มี data-aos จะไม่สร้าง stacking context ใหม่
   ที่จะไป interrupt position:fixed ของปุ่มหัวใจ */
[data-aos] {
  transform-style: flat !important;
  backface-visibility: hidden;
}

/* family-section: ป้องกัน scroll jump เมื่อ AOS เริ่ม/จบ */
.family-section-top,
.family-section-bottom,
.family-col,
.couple-col {
  /* กัน reflow ที่ทำให้หน้า jump */
  contain: layout;
  /* ป้องกัน stacking context ที่ทับ fixed element */
  transform-style: flat;
}

/* ป้องกัน AOS initial state (opacity:0 + translateY) จากการสร้าง
   stacking context ที่ทับ position:fixed */
[data-aos="fade-right"],
[data-aos="fade-left"],
[data-aos="fade-up"],
[data-aos="zoom-in"] {
  will-change: opacity, transform;
  /* Flat transform context — cannot create new stacking layer */
  transform-style: flat !important;
}

/* AOS ที่ animate เสร็จแล้ว — reset will-change เพื่อประหยัด memory */
[data-aos].aos-animate {
  will-change: auto;
}