/* =========================================================
   พิธีอภิเษกพระสังฆราช — สังฆมณฑลเชียงใหม่ (V2)
   Minimal · Clean · Catholic liturgical theme — GREEN
   Palette: emerald/forest green, gold, cream, ivory
   ========================================================= */

:root {
  /* ===== ธีมล้านนาเขียว emerald สว่าง (main1 · ระดับ index2) ===== */
  --green:        #DCB65E;   /* ไฮไลต์หลัก → ทอง */
  --green-deep:   #FBF6E9;   /* หัวข้อ → ครีมสว่าง */
  --green-darker: #124430;   /* เขียวเข้มสุด (footer/แถบเข้ม) */
  --green-soft:   #38996A;
  --green-pale:   #236E4D;   /* พื้นการ์ด/พื้นอ่อน → emerald สว่าง */
  --gold:         #DCB65E;   /* ทองสดใส */
  --gold-light:   #EBD79A;
  --gold-pale:    #F3EBCB;

  /* header + banner — ไล่โทน emerald สว่าง */
  --brand-green-dark:  #124430;
  --brand-green-deep:  #17543C;
  --brand-green:       #1A5C3F;
  --brand-green-mid:   #23744F;
  --brand-green-bright:#38996A;
  --brand-glow:        rgba(220,182,94,0.20);   /* แสงทอง */
  --brand-gold:        #DCB65E;
  --brand-gold-soft:   #F3EBCB;
  --cream:        #1A5C3F;   /* พื้นหน้า → emerald สว่าง */
  --ivory:        #236E4D;   /* การ์ด → สว่างขึ้นชัด */
  --ink:          #F6F8F1;   /* ข้อความหลัก → ขาวครีม */
  --ink-soft:     #CBD8CD;   /* ข้อความรอง → สว่าง */
  --line:         rgba(220,182,94,.36);   /* เส้นขอบ → ทองจาง */
  --shadow:       0 20px 50px rgba(0, 0, 0, 0.22);
  --shadow-sm:    0 4px 18px rgba(0, 0, 0, 0.16);
  --radius:       14px;
  --maxw:         1100px;
  --font-th:      'Sarabun', system-ui, sans-serif;
  --font-serif:   'Cormorant Garamond', 'Sarabun', serif;
  --font-script:  'Charm', 'Sarabun', cursive;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 70px; }

body {
  font-family: var(--font-th);
  font-weight: 400;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--green); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ===== Navigation ===== */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: linear-gradient(180deg, rgba(20,68,48,0.96) 0%, rgba(26,92,63,0.94) 100%);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--brand-gold);
  box-shadow: 0 2px 16px rgba(0,20,10,0.25);
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto;
  /* mobile-first: brand บนสุด, เมนูเลื่อนแนวนอนด้านล่าง */
  display: flex; flex-direction: column; gap: 8px;
  padding: 10px 14px;
}
.nav__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--head, #F4EFDF); justify-content: center; }
.nav__cross { color: var(--brand-gold-soft); font-size: 1.05rem; }
.nav__seal { width: 32px; height: 32px; object-fit: contain; flex: 0 0 auto; }
.nav__brand-text { font-weight: 600; letter-spacing: .2px; font-size: 1rem; color: #F4EFDF; }

/* แถบเมนู: เลื่อนแนวนอนได้บนมือถือ (ไม่ใช้ hamburger) */
.nav__links {
  display: flex; gap: 6px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; justify-content: flex-start;
  padding-bottom: 2px;
}
.nav__links::-webkit-scrollbar { display: none; }
.nav__links a {
  color: #e3f0e8; text-decoration: none; font-size: .92rem; font-weight: 500;
  padding: 8px 14px; border-radius: 8px; transition: background .2s, color .2s; white-space: nowrap;
  flex: 0 0 auto;
}
.nav__links a:hover { background: rgba(240, 208, 80, .22); color: #fff; }
.nav__links a.is-active {
  background: rgba(240, 208, 80, .9); color: var(--brand-green-dark); font-weight: 700;
}

/* ปุ่ม hamburger เดิม — ไม่ใช้แล้ว */
.nav__toggle { display: none !important; }

/* ===== Hero ===== */
.hero {
  position: relative;
  background: linear-gradient(165deg, var(--brand-green-dark) 0%, var(--brand-green-deep) 45%, var(--brand-green) 80%, var(--brand-green-mid) 100%);
  color: #fff;
  padding: 70px 22px 84px;
  text-align: center;
  overflow: hidden;
}
.hero__overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 78% 28%, var(--brand-glow), transparent 55%),
    radial-gradient(circle at 18% 85%, rgba(30,120,60,.45), transparent 60%),
    radial-gradient(circle at 50% 0%, rgba(240,208,80,.18), transparent 62%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.03) 0 2px, transparent 2px 22px);
  pointer-events: none;
}
.hero__grid {
  position: relative; max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center;
}
.hero__content { text-align: left; }
.hero__photo {
  position: relative;
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 18px 50px rgba(0,0,0,.35), 0 0 0 1px rgba(240,208,80,.25);
  border: 3px solid rgba(240,208,80,.6);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* จัดข้อความชิดซ้ายเมื่อเป็น 2 คอลัมน์ (desktop) */
@media (min-width: 861px) {
  .hero { text-align: left; }
  .hero__content .hero__name,
  .hero__content .hero__sub,
  .hero__content .countdown,
  .hero__content .hero__meta,
  .hero__content .hero__actions { margin-left: 0; margin-right: 0; justify-content: flex-start; }
  .hero__content .hero__sub { max-width: none; }
}
.hero__eyebrow {
  font-size: .98rem; letter-spacing: .5px; color: var(--brand-gold-soft);
  font-weight: 500; margin-bottom: 18px;
}
.hero__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.9rem, 6vw, 3.3rem);
  line-height: 1.18; letter-spacing: .5px;
  margin-bottom: 22px;
  text-shadow: 0 2px 18px rgba(0,0,0,.25);
}
.hero__name { margin: 0 auto 22px; display: inline-flex; flex-direction: column; gap: 6px; }
.hero__name-label { font-size: .95rem; color: #cfe4d8; }
.hero__name-main {
  font-family: var(--font-script);
  font-weight: 700;
  font-size: clamp(1.7rem, 5.2vw, 2.9rem);
  background: linear-gradient(135deg, #ffe080 0%, #f0d040 50%, #ffe080 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--brand-gold-soft);
  line-height: 1.25;
  text-shadow: 0 2px 14px rgba(0,0,0,.25);
}
.hero__sub {
  max-width: 660px; margin: 0 auto 30px;
  color: #e1efe7; font-size: 1.02rem; font-weight: 300;
}

/* Countdown */
.countdown { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 30px; }
.countdown__box {
  background: rgba(255,255,255,.1); border: 1px solid rgba(240,208,80,.4);
  border-radius: 12px; padding: 14px 18px; min-width: 78px;
}
.countdown__num { display: block; font-size: clamp(1.6rem, 5vw, 2.4rem); font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; line-height: 1.1; }
.countdown__label { display: block; font-size: .8rem; color: var(--brand-gold-soft); letter-spacing: .5px; margin-top: 2px; }

.hero__meta {
  display: inline-flex; align-items: center; gap: 26px; flex-wrap: wrap; justify-content: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(240,208,80,.38);
  border-radius: var(--radius);
  padding: 18px 28px; margin-bottom: 30px;
}
.hero__meta-item { display: flex; flex-direction: column; gap: 3px; }
.hero__meta-label { font-size: .78rem; letter-spacing: 1px; text-transform: uppercase; color: var(--brand-gold-soft); }
.hero__meta-value { font-size: 1.02rem; font-weight: 600; color: #fff; }
.hero__meta-divider { width: 1px; height: 38px; background: rgba(240,208,80,.4); }

.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font-weight: 700; padding: 13px 30px; border-radius: 50px; min-height: 44px;
  letter-spacing: .2px; transition: transform .2s, box-shadow .2s, background .2s; cursor: pointer; border: 0;
  font-family: var(--font-th); font-size: 1rem;
}
.btn--gold { background: linear-gradient(135deg, #ffe080 0%, #d49010 50%, #f0d040 100%); color: #4a2e00; box-shadow: 0 8px 22px rgba(212,144,16,.35); }
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(212,144,16,.45); }
.btn--ghost { background: rgba(255,255,255,.1); color: #fff; border: 1.5px solid rgba(255,255,255,.5); }
.btn--ghost:hover { background: rgba(255,255,255,.2); transform: translateY(-2px); }
.btn--solid { background: var(--green); color: #fff; box-shadow: var(--shadow-sm); }
.btn--solid:hover { background: var(--green-deep); transform: translateY(-2px); }
.btn--lg { padding: 16px 44px; font-size: 1.1rem; }
.btn[aria-disabled="true"] { opacity: .65; cursor: not-allowed; pointer-events: none; }

/* ===== ลงทะเบียนเข้าร่วมงาน ===== */
.register { max-width: 620px; margin: 0 auto; }
.register__intro { text-align: center; color: var(--ink-soft); margin-bottom: 26px; }
.register__cta { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }

/* ===== เมนูปุ่มใต้ banner (หน้าแรก) ===== */
.menu { padding: 40px 0 56px; background: var(--cream); }
.menu__hint { text-align: center; color: var(--ink-soft); margin-bottom: 22px; font-size: 1.02rem; }
.menu__grid {
  display: grid; gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));   /* 3 ปุ่มต่อแถวเสมอ (minmax 0 กันล้น) */
}
.menu-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  background: var(--ivory); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 8px; text-decoration: none; box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--brand-green); transition: transform .18s, box-shadow .18s, border-color .18s;
  justify-content: center; min-width: 0;   /* กันการ์ดล้นกริดบนจอแคบ */
}
.menu-card:hover, .menu-card:active {
  transform: translateY(-2px); box-shadow: var(--shadow); border-top-color: var(--brand-gold);
}
.menu-card__icon { font-size: 1.7rem; line-height: 1; }
.menu-card__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; width: 100%; }
.menu-card__title { font-family: var(--font-serif); font-weight: 600; font-size: 1rem; color: var(--brand-green-deep); line-height: 1.25; overflow-wrap: anywhere; word-break: break-word; }
.menu-card__desc { color: var(--ink-soft); font-size: .8rem; overflow-wrap: anywhere; }
/* จอเล็กมาก: ซ่อนคำอธิบาย ให้ 3 ปุ่ม/แถวอ่านง่าย */
@media (max-width: 480px) {
  .menu-card__desc { display: none; }
  .menu-card__title { font-size: .9rem; }
  .menu-card { padding: 14px 6px; }
  .menu__grid { gap: 8px; }
}
@media (min-width: 720px) {
  .menu__grid { gap: 16px; }
  .menu-card { padding: 22px 16px; }
  .menu-card__icon { font-size: 2rem; }
  .menu-card__title { font-size: 1.15rem; }
}

/* ===== Sections ===== */
.section { padding: 68px 0; }
.page-top { padding-top: 44px; }   /* หน้าเนื้อหา: เว้นบนพอประมาณ */
.section--alt { background: var(--ivory); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--green { background: var(--green-pale); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { text-align: center; max-width: 740px; margin: 0 auto 44px; }
.section__ornament { display: block; width: 58px; height: auto; margin: 0 auto 10px; object-fit: contain; }
@media (min-width: 720px) { .section__ornament { width: 76px; margin-bottom: 12px; } }
.section__title {
  font-family: var(--font-serif); font-weight: 600;
  font-size: clamp(1.7rem, 4.5vw, 2.4rem); color: var(--green-deep);
  position: relative; display: inline-block; padding-bottom: 14px;
}
.section__title::after {
  content: ""; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 64px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.section__lead { margin-top: 14px; color: var(--ink-soft); font-size: 1.05rem; }
/* แต่ละวลีไม่ตัดคำกลางวลี */
.lead__part { display: inline-block; }
/* mobile break helper: desktop = ช่องว่างปกติ, mobile = ขึ้นบรรทัดใหม่ */
.mbr { white-space: pre; }
.subhead {
  font-family: var(--font-serif); font-weight: 600; color: var(--green-deep);
  font-size: 1.35rem; margin-bottom: 16px; padding-left: 14px;
  border-left: 4px solid var(--gold);
}

/* ===== Generic cards/grid ===== */
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card--accent { border-top: 4px solid var(--gold); text-align: center; }
.card__icon { font-size: 2rem; margin-bottom: 10px; }
.card__title { color: var(--green-deep); font-weight: 600; font-size: 1.12rem; margin-bottom: 8px; }
.card__text { color: var(--ink-soft); font-size: 1rem; }

/* Welcome message */
.welcome {
  max-width: 800px; margin: 0 auto 44px; text-align: center;
  background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; box-shadow: var(--shadow-sm); position: relative;
}
.welcome::before {
  content: "\201C"; font-family: var(--font-serif); font-size: 4rem; color: var(--gold-pale);
  position: absolute; top: 6px; left: 20px; line-height: 1;
}
.welcome p { color: var(--ink); font-size: 1.08rem; position: relative; }
.welcome cite { display: block; margin-top: 14px; color: var(--green); font-style: normal; font-weight: 600; }

/* News list */
.news { display: grid; gap: 14px; max-width: 860px; margin: 0 auto; }
.news__item {
  display: flex; gap: 16px; align-items: baseline;
  background: var(--ivory); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 20px; box-shadow: var(--shadow-sm); transition: transform .15s;
}
.news__item:hover { transform: translateX(4px); }
.news__date { color: var(--gold); font-weight: 700; white-space: nowrap; font-size: .92rem; min-width: 92px; }
.news__text { color: var(--ink); }
.news__tag { display: inline-block; background: var(--green-pale); color: var(--green-deep); font-size: .75rem; padding: 2px 9px; border-radius: 20px; font-weight: 600; margin-right: 8px; }

/* ===== Bishop bio ===== */
.bio { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.bio__block { margin-bottom: 36px; }
.facts { display: grid; gap: 2px; }
.facts__row { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line); align-items: baseline; }
.facts__row dt { font-weight: 600; color: var(--green); }
.facts__row dd { color: var(--ink); }
.facts__row small { color: var(--ink-soft); font-size: .82rem; }

.timeline { list-style: none; }
.timeline__item { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.timeline__year { font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; white-space: nowrap; }
.timeline__detail { color: var(--ink); }
/* คำขยายใต้รายการไทม์ไลน์ (เช่น สถานที่ / ผู้ประกอบพิธี) */
.timeline__sub { display: block; margin-top: 4px; font-size: .92rem; color: var(--ink-soft); line-height: 1.6; }

/* Emblem / links row */
.emblem { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center; background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
/* ตราประจำตำแหน่ง (รูปจริง) */
.emblem-fig { margin: 0; background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow-sm); text-align: center; }
.emblem-fig__img { width: 100%; max-width: 260px; height: auto; margin: 0 auto; display: block; }
.emblem-fig__cap { margin-top: 20px; }
.emblem-fig__motto { font-size: 1.15rem; font-weight: 700; color: #FFFFFF; }
.emblem-fig__motto-la { font-size: .92rem; font-weight: 600; letter-spacing: .5px; color: var(--gold-light); margin-top: 3px; }
.emblem-fig__sub { font-size: .82rem; color: var(--ink-soft); margin-top: 8px; }
.emblem__placeholder {
  width: 120px; height: 120px; border-radius: 50%; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  background: var(--green-pale); border: 2px dashed var(--green-soft); color: var(--green); font-size: 2.4rem;
}
.linklist { list-style: none; display: grid; gap: 10px; }
.linklist a { color: var(--green); font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--gold-pale); padding-bottom: 2px; }
.linklist a:hover { color: var(--gold); }

/* ===== Posters / images ===== */
.posters { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.poster { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--ivory); }
.poster img { width: 100%; height: auto; transition: transform .4s; }
.poster:hover img { transform: scale(1.02); }
.poster figcaption { text-align: center; padding: 10px; font-size: .92rem; color: var(--ink-soft); border-top: 1px solid var(--line); }

/* ===== Ceremony schedule ===== */
.schedule { max-width: 760px; margin: 0 auto; list-style: none; }
.schedule__item { display: grid; grid-template-columns: 110px 1fr; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.schedule__time { color: var(--gold); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.schedule__what { color: var(--ink); }
.schedule__note { display: inline-block; color: var(--ink-soft); font-size: .92rem; }
/* บล็อกกำหนดการแต่ละพิธี */
.schedule-block .subhead { max-width: 760px; margin-left: auto; margin-right: auto; }
.schedule-block__date { max-width: 760px; margin: -6px auto 10px; text-align: center; color: var(--ink-soft); font-size: .95rem; }

/* Info tiles (parking, livestream, lodging) */
.info-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 12px; }
.tile { background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.tile h4 { color: var(--green-deep); font-size: 1.1rem; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.tile p { color: var(--ink-soft); font-size: .98rem; }
.tile a { font-weight: 600; }

/* Floor plan */
.plan { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: start; }
.plan__figure { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); background: var(--ivory); }
.plan__figure img { width: 100%; transition: transform .4s; }
.plan__figure:hover img { transform: scale(1.01); }
.plan__figure figcaption { text-align: center; padding: 10px; font-size: .9rem; color: var(--ink-soft); border-top: 1px solid var(--line); }
.plan__legend { background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.plan__total { font-family: var(--font-serif); color: var(--ink-soft); margin-bottom: 16px; font-size: 1.1rem; }
.plan__total span { font-size: 2.1rem; font-weight: 700; color: var(--gold); }
.plan__list { list-style: none; display: grid; gap: 11px; margin-bottom: 16px; }
.plan__list li { display: flex; align-items: flex-start; gap: 10px; color: var(--ink); font-size: .96rem; }
.dot { flex: 0 0 14px; width: 14px; height: 14px; border-radius: 4px; margin-top: 5px; border: 1px solid rgba(0,0,0,.08); }
.dot--stage{background:#9b9b9b} .dot--priest{background:#f3c08a} .dot--vip{background:#f5e04a} .dot--people{background:#f7d83b} .dot--hall{background:#d7d2c6} .dot--side{background:#e7a9d6} .dot--welcome{background:#e23b3b;border-radius:50%}
.plan__note { font-size: .9rem; color: var(--ink-soft); font-style: italic; border-top: 1px dashed var(--line); padding-top: 12px; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--ivory); border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; color: var(--green-deep); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 1.4rem; font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 16px; color: var(--ink-soft); }

/* ===== Media center ===== */
.media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.media-card { background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.media-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.media-card__thumb { aspect-ratio: 16/10; background: linear-gradient(135deg, var(--green-pale), #d7e8dd); display: flex; align-items: center; justify-content: center; color: var(--green-soft); font-size: 2.6rem; }
.media-card__body { padding: 18px 20px; }
.media-card__body h4 { color: var(--green-deep); font-size: 1.08rem; margin-bottom: 6px; }
.media-card__body p { color: var(--ink-soft); font-size: .94rem; }
/* การ์ดที่เป็นลิงก์ (YouTube / Google Drive) */
a.media-card { display: block; text-decoration: none; color: inherit; }
a.media-card:hover .media-card__body h4 { color: var(--gold); }
.media-card__ext { color: var(--gold); font-weight: 700; white-space: nowrap; }
.soon { display: inline-block; margin-top: 10px; background: var(--gold-pale); color: #7a5a22; font-size: .78rem; font-weight: 700; padding: 3px 12px; border-radius: 20px; }

/* ลิงก์ลัดไปยังแต่ละส่วน (pill) */
.media-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.media-link {
  display: inline-flex; align-items: center; gap: 9px; min-height: 44px;
  padding: 10px 20px; border-radius: 999px; text-decoration: none;
  background: var(--ivory); border: 1.5px solid var(--line); color: var(--green-deep);
  font-weight: 600; box-shadow: var(--shadow-sm);
  transition: transform .15s, box-shadow .15s, border-color .15s, background .15s;
}
.media-link:hover { transform: translateY(-2px); border-color: var(--gold-light); background: var(--green-pale); box-shadow: var(--shadow); }
.media-link__icon { font-size: 1.25rem; line-height: 1; }
.media-link__label { font-size: .98rem; }

/* ฝังวิดีโอ YouTube (16:9 responsive) */
.video-embed {
  position: relative; width: 100%; max-width: 860px; margin: 0 auto;
  aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); background: #000;
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* PDF preview grid */
/* หนังสือเพลง — การ์ดภาพ (แปลงจาก PDF) + สไลด์หลายหน้า + ดูเต็มจอ */
.song-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.song-card { background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.song-card__viewport { position: relative; background: var(--green-pale); border-bottom: 1px solid var(--line); }
/* แต่ละหน้าเป็นปุ่ม (กดเพื่อดูเต็มจอ) — ซ้อนกัน แสดงทีละหน้า */
.song-page { display: none; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.song-page.is-active { display: block; }
.song-page img { display: block; width: 100%; height: auto; }
/* แถบเลื่อนหน้า */
.song-nav { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 8px; border-bottom: 1px solid var(--line); background: var(--cream); }
.song-nav__btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line);
  background: var(--ivory); color: var(--green-deep); font-size: 1.3rem; line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; transition: background .15s, border-color .15s;
}
.song-nav__btn:hover { background: var(--green-pale); border-color: var(--gold-light); }
.song-nav__btn:disabled { opacity: .35; cursor: default; }
.song-nav__count { font-weight: 700; color: var(--ink-soft); font-variant-numeric: tabular-nums; min-width: 54px; text-align: center; }
.song-card__cap { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; }
.song-card__title { color: var(--green-deep); font-weight: 600; font-size: .98rem; line-height: 1.4; }
.song-card__open { align-self: flex-start; color: var(--gold); font-weight: 700; text-decoration: none; font-size: .9rem; }
.song-card__open:hover { text-decoration: underline; }

/* Lightbox ดูภาพเต็มจอ */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(10,22,16,.92);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.lightbox[hidden] { display: none; }
.lightbox__img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.lightbox__close {
  position: absolute; top: 16px; right: 20px; width: 48px; height: 48px;
  border: 0; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff;
  font-size: 2rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.lightbox__close:hover { background: rgba(255,255,255,.3); }

/* Gallery placeholder grid */
.gallery-ph { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery-ph div { aspect-ratio: 1; background: linear-gradient(135deg, var(--green-pale), #143d28); border: 1px solid var(--line); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.gallery-ph div img { width: 42px; height: 42px; object-fit: contain; opacity: .7; filter: brightness(0) invert(1); }
/* วันที่ใน Photo Gallery — Sarabun ตัวตรง อ่านง่าย */
.gal-date { font-family: var(--font-th); font-weight: 600; color: var(--gold-light); font-variant-numeric: tabular-nums; }

/* ===== Congrats form ===== */
.congrats-intro { text-align: center; max-width: 700px; margin: 0 auto 30px; color: var(--ink-soft); }
.congrats-img { max-width: 760px; margin: 0 auto 40px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 3px solid var(--gold-light); }

/* คำแสดงความยินดีจากสังฆมณฑล (congrat-card) */
.congrat-card {
  max-width: 720px; margin: 0 auto 40px; text-align: center;
  background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 30px; box-shadow: var(--shadow);
  background-image: linear-gradient(180deg, #103a26 0%, #0d3420 100%);
}
.orn-divider { display: block; color: var(--gold); font-size: 1rem; letter-spacing: 2px; line-height: 1; }
.head-intro { color: var(--ink-soft); font-size: 1.05rem; line-height: 1.5; }
.head-name {
  font-family: var(--font-script); font-weight: 700;
  font-size: clamp(1.6rem, 4.5vw, 2.4rem); color: var(--green-deep); line-height: 1.3;
}
.head-occasion { color: var(--ink); font-size: 1.02rem; line-height: 1.6; }
.head-position {
  font-family: var(--font-serif); font-weight: 600;
  font-size: clamp(1.25rem, 3.5vw, 1.6rem); color: var(--green); margin-top: 4px;
}
.body-block { display: block; }
.body-line { display: block; color: var(--ink); font-size: 1.02rem; line-height: 1.7; }
.body-line.italic { font-style: italic; color: var(--green); margin-top: 8px; }
.cform { max-width: 600px; margin: 0 auto; background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.cform__row { margin-bottom: 16px; }
.cform label { display: block; font-weight: 600; color: var(--green-deep); margin-bottom: 6px; }
.cform input, .cform textarea {
  width: 100%; font-family: var(--font-th); font-size: 16px; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--ivory);
}
.cform input:focus, .cform textarea:focus { outline: none; border-color: var(--green-soft); box-shadow: 0 0 0 3px rgba(47,138,99,.15); }
.cform textarea { min-height: 110px; resize: vertical; }
/* Toolbar จัดรูปแบบข้อความ */
.md-toolbar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.md-btn {
  font-family: inherit; font-size: .9rem; min-height: 36px; padding: 6px 12px;
  border: 1.5px solid var(--line); border-radius: 8px; background: var(--cream);
  color: var(--ink); cursor: pointer; transition: background .15s, border-color .15s;
}
.md-btn:hover { background: var(--green-pale); border-color: var(--green-soft); }
.md-btn:active { transform: scale(.96); }
/* ปุ่มจัดแนว: ไอคอน + ป้ายเล็ก */
.md-btn--icon { display: inline-flex; align-items: center; gap: 5px; line-height: 1; }
.md-btn--icon small { font-size: .78rem; color: var(--ink-soft); }
/* เส้นคั่นกลุ่มปุ่มในแถบเครื่องมือ */
.md-sep { width: 1px; align-self: stretch; margin: 2px 3px; background: var(--line); }
.md-hint { font-size: .8rem; color: var(--ink-soft); margin-top: 6px; }
/* คลาสจัดแนวย่อหน้า (ใช้ทั้ง preview, กระดาน, และหน้า admin) */
.md-c { text-align: center; }
.md-r { text-align: right; }
ul.md-list.md-c { list-style-position: inside; padding-left: 0; }
ul.md-list.md-r { list-style-position: inside; padding-left: 0; }
/* ตัวอย่าง (live preview) */
.md-preview {
  margin-top: 12px; padding: 14px 16px;
  background: var(--green-pale); border: 1px dashed var(--gold-light); border-radius: 10px;
}
.md-preview[hidden] { display: none; }
.md-preview__label { display: block; font-size: .78rem; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.md-preview__body { color: var(--ink); line-height: 1.6; }
.md-preview__body p { margin: 0 0 6px; }
.md-preview__body p:last-child { margin-bottom: 0; }
.md-preview__body ul.md-list { margin: 4px 0; padding-left: 22px; }
.cform__note { font-size: .85rem; color: var(--ink-soft); margin-top: 8px; }
.cform__note.is-error { color: #c0392b; font-weight: 600; }
.cform__note.is-ok { color: var(--green); font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wall__time { display: block; margin-top: 8px; color: var(--ink-soft); font-size: .8rem; }
.wall { max-width: 760px; margin: 40px auto 0; display: grid; gap: 14px; }
.wall__msg { background: var(--green-pale); border-left: 4px solid var(--gold); border-radius: 10px; padding: 16px 20px; }
.wall__msg p { color: var(--ink); }
.wall__body { color: var(--ink); }
.wall__body p { margin: 0 0 6px; }
.wall__body p:last-child { margin-bottom: 0; }
.wall__body ul.md-list { margin: 4px 0 6px; padding-left: 22px; }
.wall__body ul.md-list li { margin: 2px 0; }
.wall__msg cite { display: block; margin-top: 6px; color: var(--green); font-style: normal; font-weight: 600; font-size: .92rem; }

/* ===== กระดานคำอวยพรหน้าแรก — สไตล์โรมันคาทอลิก (การ์ดคำสรรเสริญ) ===== */
.wall--home { max-width: var(--maxw); margin: 0 auto; grid-template-columns: 1fr; gap: 16px; }
.wall--home .wall__msg {
  position: relative;
  background: linear-gradient(180deg, #103a26, #0d3420);
  border: 1px solid var(--gold-pale);
  border-left: none;
  border-radius: 14px;
  padding: 20px 24px 16px;
  box-shadow: 0 6px 20px rgba(13,58,41,.14);
  text-align: center;
  overflow: hidden;
}
/* อัญประกาศประดับหัวการ์ด (ขนาดเล็กลง) */
.wall--home .wall__msg::before {
  content: "\275D";                 /* ❝ อัญประกาศเปิดแบบประดับ */
  position: absolute; top: 4px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-serif);
  font-size: 1.7rem; line-height: 1; color: var(--gold-light); opacity: .5;
}
.wall--home .wall__msg .wall__body {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem; line-height: 1.6; color: var(--ink);
  margin-top: 12px;
  text-align: left;               /* ค่าเริ่มต้นของข้อความ = ชิดซ้าย (ไม่บังคับกึ่งกลาง) */
}
.wall--home .wall__msg .wall__body p { margin: 0 0 8px; }
.wall--home .wall__msg .wall__body p:last-child { margin-bottom: 0; }
/* เคารพการจัดแนวที่ผู้ใช้เลือก (มาก่อนค่าเริ่มต้น) */
.wall--home .wall__msg .wall__body .md-c { text-align: center; }
.wall--home .wall__msg .wall__body .md-r { text-align: right; }
.wall--home .wall__msg .wall__body ul.md-list { margin: 4px 0; }
.wall--home .wall__msg cite {
  font-family: var(--font-serif);
  font-style: normal;
  font-size: 1.1rem; font-weight: 600; color: var(--green-deep);
  margin-top: 8px; position: relative; padding-top: 8px;
}
/* เส้นคั่นเล็ก ๆ เหนือชื่อผู้อวยพร */
.wall--home .wall__msg cite::before {
  content: "";
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 40px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ===== ข่าวประชาสัมพันธ์ (การ์ดมีรูป + ข้อความใต้รูป) ===== */
.newscards { display: grid; gap: 18px; grid-template-columns: 1fr; }
.newscard {
  display: flex; flex-direction: column; text-decoration: none;
  background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s;
}
.newscard:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.newscard__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--green-pale); }
.newscard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.newscard:hover .newscard__media img { transform: scale(1.04); }
.newscard__body { padding: 18px 20px 22px; }
.newscard__date { display: inline-block; background: var(--green-pale); color: var(--brand-green-deep); font-size: .78rem; font-weight: 700; padding: 3px 11px; border-radius: 20px; margin-bottom: 10px; }
.newscard__title { font-family: var(--font-serif); font-weight: 600; font-size: 1.25rem; color: var(--brand-green-deep); line-height: 1.3; margin-bottom: 8px; }
.newscard__text { color: var(--ink-soft); font-size: .95rem; }

/* Sponsors */
.sponsors { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.sponsor-ph { width: 150px; height: 80px; background: var(--ivory); border: 1px dashed var(--green-soft); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--ink-soft); font-size: .85rem; }

/* หน้าผู้สนับสนุน */
.sponsor-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
.sponsor-grid--lead { grid-template-columns: 1fr; }
.sponsor-tile {
  background: var(--ivory); border: 1px dashed var(--green-soft); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  aspect-ratio: 16 / 9; box-shadow: var(--shadow-sm);
}
.sponsor-grid--lead .sponsor-tile { aspect-ratio: 21 / 9; }
@media (min-width: 720px) {
  .sponsor-grid { grid-template-columns: repeat(4, 1fr); }
  .sponsor-grid--lead { grid-template-columns: repeat(3, 1fr); }
}

/* ===== Footer ===== */
.footer { background: var(--brand-green-dark); color: #cfe0d5; text-align: center; padding: 44px 22px; border-top: 3px solid var(--brand-gold); }
.footer__cross { display: block; color: var(--gold-light); font-size: 1.7rem; margin-bottom: 12px; }
.footer__title { font-family: var(--font-serif); font-size: 1.4rem; font-weight: 600; margin-bottom: 8px; color: #F4EFDF; }
.footer__sub { color: #cfe4d8; margin-bottom: 12px; }
/* แต่ละวลีไม่ตัดคำกลางวลี — ถ้าจอแคบจะขึ้นบรรทัดใหม่ทั้งวลี */
.footer__part { display: inline-block; }
.footer__links { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
.footer__links a { color: var(--gold-light); text-decoration: none; font-size: .95rem; }
.footer__links a:hover { color: #fff; }
.footer__note { font-size: .88rem; color: #a9c6b6; }

/* Back to top */
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--gold); color: var(--green-darker); text-decoration: none; font-size: 1.3rem; font-weight: 700; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s, visibility .3s, transform .3s; }
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--gold-light); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .bio { grid-template-columns: 1fr; gap: 30px; }
  .plan { grid-template-columns: 1fr; }
  .grid--3, .media-grid, .info-tiles, .song-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Hero: ภาพขึ้นบน เนื้อหาอยู่ล่าง เมื่อจอแคบลง (ให้เห็นรูปท่านก่อน) */
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; gap: 26px; max-width: 560px; }
  .hero__photo { order: -1; max-width: 360px; margin: 0 auto; }
  .hero__photo img { max-height: 440px; }
}

@media (max-width: 768px) {
  html { scroll-padding-top: 110px; }

  .hero { padding: 50px 20px 64px; }
  /* eyebrow: ลดขนาดบนมือถือ กันไม้กางเขนท้ายตกบรรทัด */
  .hero__eyebrow { font-size: .82rem; letter-spacing: .3px; margin-bottom: 14px; text-wrap: balance; }
  .hero__meta { flex-direction: column; gap: 14px; padding: 16px 22px; width: 100%; }
  .hero__meta-divider { display: none; }
  .hero__meta-item { align-items: center; text-align: center; }
  .hero__actions { flex-direction: column; align-items: stretch; }

  .section { padding: 48px 0; }
  .grid--3, .grid--2, .media-grid, .info-tiles, .posters, .song-grid { grid-template-columns: 1fr; }
  .gallery-ph { grid-template-columns: repeat(2, 1fr); }

  .facts__row { grid-template-columns: 1fr; gap: 2px; }
  .facts__row dt { color: var(--gold); }
  .timeline__item { grid-template-columns: 1fr; gap: 3px; }
  .schedule__item { grid-template-columns: 1fr; gap: 4px; }
  .emblem { grid-template-columns: 1fr; text-align: center; justify-items: center; }

  /* footer: บนมือถือให้แต่ละวลีอยู่คนละบรรทัด (ตัดคำสวยขึ้น) */
  .footer__title .footer__part,
  .footer__sub .footer__part { display: block; }
  .footer__dot { display: none; }

  /* section lead: บนมือถือแยกแต่ละวลีคนละบรรทัด */
  .section__lead .lead__part { display: block; }
  .lead__dot { display: none; }

  /* mobile break: บังคับขึ้นบรรทัดใหม่ (ยุบตัวคั่น/ช่องว่างในตัวเอง) */
  .mbr { display: block; height: 0; font-size: 0; line-height: 0; }
}

@media (max-width: 420px) {
  .container { padding: 0 16px; }
  .nav__brand-text { font-size: .9rem; }
  .countdown__box { min-width: 64px; padding: 12px 12px; }
  .hero__eyebrow { font-size: .74rem; }
}

/* ===== Desktop / tablet (min-width) — mobile-first overrides ===== */
@media (min-width: 720px) {
  /* แถบเมนู: brand ซ้าย + ลิงก์ขวา ในแถวเดียว */
  .nav__inner { flex-direction: row; align-items: center; justify-content: space-between; padding: 11px 22px; }
  .nav__brand { justify-content: flex-start; }
  .nav__links { overflow: visible; justify-content: flex-end; gap: 4px; }

  /* ข่าว + กระดานคำอวยพร: หลายคอลัมน์ */
  .newscards { grid-template-columns: repeat(3, 1fr); }
  .wall--home { grid-template-columns: repeat(2, 1fr); }
  /* การ์ดใบสุดท้ายที่เหลือใบเดียวในแถว (จำนวนคี่) → จัดกึ่งกลาง */
  .wall--home .wall__msg:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: calc((100% - 16px) / 2);   /* กว้างเท่าการ์ดปกติหนึ่งใบ */
    margin-inline: auto;
  }
}

/* ===== ที่พักแนะนำ (hotels) ===== */
.hotels {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 22px;
}
.hotel {
  background: var(--ivory, #fff);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.hotel:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(20,80,58,.16); }
.hotel__media {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: #eef3ef;
  aspect-ratio: 2741 / 1530;
  overflow: hidden;
}
.hotel__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hotel__price {
  position: absolute; left: 12px; bottom: 12px;
  background: var(--green-darker); color: #fff;
  font-weight: 700; font-size: .92rem;
  padding: 5px 12px; border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
}
.hotel__zoom {
  position: absolute; right: 12px; top: 12px;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.9); color: var(--green-deep);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.hotel__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; }
.hotel__name { color: var(--green-deep); font-size: 1.12rem; font-weight: 700; margin: 0; }
.hotel__en { color: var(--gold); font-size: .82rem; letter-spacing: .3px; margin: 0; text-transform: uppercase; }
.hotel__meta { color: var(--ink-soft); font-size: .94rem; margin: 4px 0 0; display: flex; gap: 6px; align-items: flex-start; }
.hotel__pin { flex: 0 0 auto; }
.hotel__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; min-height: 4px; }
.hotel__tag {
  font-size: .8rem; color: var(--green-soft);
  background: var(--green-pale); border-radius: 999px;
  padding: 3px 10px;
}
.hotel__links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.hotel__btn {
  font-size: .88rem; font-weight: 600;
  padding: 8px 14px; border-radius: 10px;
  border: 1px solid var(--line);
  color: var(--green-deep); background: var(--ivory);
  text-decoration: none; min-height: 40px;
  display: inline-flex; align-items: center;
  transition: background .15s ease, border-color .15s ease;
}
.hotel__btn:hover { background: var(--green-pale); border-color: var(--green-soft); }
.hotel__btn--call { background: var(--brand-green-mid); color: #fff; border-color: var(--brand-green-mid); }
.hotel__btn--call:hover { background: var(--green-darker); }

/* Lightbox */
.hotel-lb {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(12,28,20,.86);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; overflow-y: auto;
}
.hotel-lb[hidden] { display: none; }
.hotel-lb__inner {
  max-width: 960px; width: 100%;
  display: flex; flex-direction: column; gap: 14px;
  margin: auto;
}
.hotel-lb__title { color: #fff; font-size: 1.15rem; font-weight: 700; text-align: center; margin: 0; }
.hotel-lb__img { width: 100%; height: auto; border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,.5); display: block; }
.hotel-lb__img[hidden] { display: none; }
.hotel-lb__close {
  position: fixed; top: 14px; right: 18px;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,.15); color: #fff;
  border: 0; font-size: 1.8rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.hotel-lb__close:hover { background: rgba(255,255,255,.3); }

@media (min-width: 640px) {
  .hotels { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .hotels { grid-template-columns: repeat(3, 1fr); }
}

/* ===================== ของที่ระลึก (souvenir.php) ===================== */
.souvenir-limited {
  text-align: center; font-weight: 700; color: var(--gold);
  letter-spacing: .06em; margin: -6px 0 22px; font-size: 1.05rem;
}
.souvenirs {
  display: grid; grid-template-columns: 1fr; gap: 22px;
  margin-bottom: 34px;
}
.souvenir {
  background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.souvenir:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(20,80,58,.14); }
.souvenir__media {
  position: relative; display: block; width: 100%; padding: 0; border: 0;
  background: var(--cream); cursor: zoom-in; aspect-ratio: 16 / 9; overflow: hidden;
}
.souvenir__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.souvenir__price {
  position: absolute; left: 12px; bottom: 12px;
  background: var(--green-darker); color: #fff; font-weight: 600;
  font-size: .92rem; padding: 6px 12px; border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.souvenir__zoom {
  position: absolute; top: 12px; right: 12px;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.9); color: var(--green-deep);
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
}
.souvenir__body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.souvenir__name { margin: 0; font-size: 1.2rem; color: var(--green-deep); font-weight: 700; }
.souvenir__en { margin: 0; font-size: .82rem; color: var(--gold); text-transform: uppercase; letter-spacing: .04em; }
.souvenir__desc { margin: 4px 0 0; color: var(--ink-soft); font-size: .95rem; line-height: 1.55; }
.souvenir__spec { margin-top: 6px; }
.souvenir__spec-label { display: block; font-size: .82rem; color: var(--ink-soft); font-weight: 600; margin-bottom: 6px; }
.sizetable { display: flex; flex-wrap: wrap; gap: 6px; }
.sizetable__cell {
  background: rgba(201,165,78,.14); color: var(--ink); border: 1px solid var(--line);
  border-radius: 8px; padding: 5px 9px; font-size: .82rem; line-height: 1.2;
  display: inline-flex; flex-direction: column; align-items: center; min-width: 42px;
}
.sizetable__cell b { font-size: .9rem; color: var(--gold-light); }
.souvenir__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.souvenir__chip {
  background: rgba(201,165,78,.14); color: var(--ink); border: 1px solid var(--line);
  border-radius: 999px; padding: 5px 12px; font-size: .85rem;
}
.souvenir__tag {
  margin: 8px 0 0; padding: 9px 12px; border-radius: 10px;
  font-size: .9rem; font-weight: 600; line-height: 1.45;
}
.souvenir__tag.is-order  { background: rgba(201,165,78,.14); color: var(--gold-light); border: 1px solid var(--line); }
.souvenir__tag.is-onsite { background: rgba(201,165,78,.14); color: var(--gold-light); border: 1px solid var(--line); }

/* กล่องสั่งซื้อ + QR */
.order-box {
  display: flex; flex-direction: column; gap: 22px; align-items: center;
  background: linear-gradient(135deg, var(--green-deep), var(--green-darker));
  color: #fff; border-radius: var(--radius); padding: 26px 22px;
  box-shadow: 0 10px 30px rgba(13,58,41,.25);
}
.order-box__qr {
  background: #fff; border-radius: 16px; padding: 12px; flex-shrink: 0;
  width: 200px; height: 200px; display: flex; align-items: center; justify-content: center;
}
.order-box__qr img { width: 100%; height: 100%; object-fit: contain; display: block; }
.order-box__info { text-align: center; }
.order-box__title { margin: 0 0 6px; font-size: 1.35rem; font-weight: 700; color: #fff; }
.order-box__lead { margin: 0 0 12px; color: rgba(255,255,255,.9); font-size: .98rem; }
.order-box__list {
  margin: 0 auto 14px; padding-left: 20px; text-align: left; max-width: 560px;
  display: flex; flex-direction: column; gap: 7px;
}
.order-box__list li { color: rgba(255,255,255,.92); font-size: .92rem; line-height: 1.5; }
.order-box__list b { color: var(--gold-light); }
.order-box__contact { margin: 0; font-size: 1rem; }
.order-box__contact a { color: var(--gold-light); font-weight: 700; text-decoration: none; }
.order-box__contact a:hover { text-decoration: underline; }

@media (min-width: 640px) {
  .souvenirs { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .souvenirs { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 720px) {
  .order-box { flex-direction: row; align-items: center; justify-content: center; text-align: left; padding: 30px 34px; }
  .order-box__info { text-align: left; }
  .order-box__list { margin-left: 0; }
}

/* ===================== การ์ดของที่ระลึก หน้าแรก (index) ===================== */
.souvenir-promo {
  display: flex; flex-direction: column; gap: 26px; align-items: center;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(184,146,74,.16), transparent 55%),
    linear-gradient(135deg, var(--green-deep) 0%, var(--green-darker) 100%);
  color: #fff; border-radius: 22px; padding: 32px 26px;
  box-shadow: 0 18px 44px rgba(13,58,41,.28);
  border: 1px solid rgba(214,184,120,.3);
  position: relative; overflow: hidden;
}
.souvenir-promo__eyebrow {
  display: inline-block; color: var(--gold-light); font-weight: 600;
  letter-spacing: .04em; font-size: .95rem; margin-bottom: 8px;
}
.souvenir-promo__title {
  margin: 0 0 10px; font-size: 1.7rem; font-weight: 700; color: #fff; line-height: 1.2;
}
.souvenir-promo__desc {
  margin: 0 0 20px; color: rgba(255,255,255,.9); font-size: 1rem; line-height: 1.6; max-width: 560px;
}
.souvenir-promo__items {
  list-style: none; margin: 0 0 22px; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.souvenir-promo__items li {
  display: flex; flex-direction: column; gap: 10px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px; padding: 10px; text-align: center;
}
.souvenir-promo__items img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: contain; border-radius: 10px;
  background: rgba(255,255,255,.06);
  box-shadow: 0 3px 10px rgba(0,0,0,.25);
}
.souvenir-promo__items span { font-size: .92rem; color: rgba(255,255,255,.92); line-height: 1.4; }
.souvenir-promo__items b { display: block; color: #fff; font-weight: 700; font-size: 1rem; }
@media (max-width: 520px) {
  .souvenir-promo__items { grid-template-columns: 1fr; }   /* mobile: row ละ 1 รูป */
  /* touch target ≥44px บนมือถือ */
  .md-btn { min-height: 44px; padding: 8px 13px; }
}
.souvenir-promo__actions { display: flex; flex-wrap: wrap; gap: 12px; }
/* mobile: จัดปุ่มสั่งซื้อ/ดูรายละเอียดไว้กลางกล่อง */
@media (max-width: 859px) {
  .souvenir-promo__actions { justify-content: center; }
  .souvenir-promo__actions .btn { flex: 1 1 auto; text-align: center; justify-content: center; }
}
@media (min-width: 860px) {
  .souvenir-promo { padding: 40px 44px; }
  .souvenir-promo__left { width: 100%; max-width: 760px; }
  .souvenir-promo__title { font-size: 2rem; }
}

/* ===================== หน้าลงทะเบียน — เลือกประเภท (register.php) ===================== */
.reg-choices {
  display: grid; grid-template-columns: 1fr; gap: 20px;
  max-width: 860px; margin: 8px auto 0;
}
.reg-choice {
  display: flex; align-items: flex-start; gap: 18px;
  background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; text-decoration: none; color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.reg-choice:hover, .reg-choice:active {
  transform: translateY(-3px); box-shadow: var(--shadow);
  border-color: var(--gold-light);
}
.reg-choice__icon {
  flex: 0 0 auto; width: 60px; height: 60px; border-radius: 16px;
  background: linear-gradient(135deg, var(--green), var(--green-deep));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.9rem; box-shadow: 0 4px 14px rgba(20,80,58,.22);
}
.reg-choice__body { display: flex; flex-direction: column; gap: 6px; }
.reg-choice__title { font-size: 1.2rem; font-weight: 700; color: var(--green-deep); line-height: 1.3; }
.reg-choice__desc { font-size: .96rem; color: var(--ink-soft); line-height: 1.55; }
.reg-choice__go { margin-top: 6px; font-weight: 700; color: var(--gold); font-size: 1rem; }
.reg-note {
  max-width: 760px; margin: 26px auto 0; text-align: center;
  color: var(--ink-soft); font-size: .92rem; line-height: 1.7;
}
.reg-note b { color: var(--green-deep); }

@media (min-width: 700px) {
  .reg-choices { grid-template-columns: repeat(2, 1fr); }
  .reg-choice { flex-direction: column; text-align: center; align-items: center; padding: 32px 26px; }
  .reg-choice__body { align-items: center; }
}
