/**
 * CCT PAK 20 — HOMEPAGE SKIN "WHITE CATHEDRAL V5"
 * คริสตจักรภาคที่ 20 สภาคริสตจักรในประเทศไทย
 *
 * ที่มา: public_html/home_preview.html (ฉบับที่ผ่านการยืนยันจากผู้ดูแล)
 * ขอบเขต: เฉพาะหน้าแรก (index.php) — โหลดหลัง theme-modern.css
 * หมายเหตุการผสาน: บล็อก 9b (แถบพระวจนะ / เครือข่าย 8 จังหวัด / คณะกรรมการบริหาร)
 *   ยกมาจาก home_preview.html และถูกล็อกไว้ใน @media (min-width: 992px) เท่านั้น
 *   เพื่อไม่ให้กระทบผังจอเล็กที่ยังคงเหมือนเดิมทุกจุด
 * หลักการ:
 *   - ไม่ใช้ !important ทั้งไฟล์ (แก้ด้วย specificity + ลำดับ cascade)
 *   - ไม่แตะ markup เดิมของ .church-* จึงไม่กระทบหน้าอื่น
 *   - ลายพื้นใช้เฉพาะแถบที่มีเนื้อหาน้อย (สถิติ / พระวจนะ)
 */

:root {
  --hp-white:        #ffffff;
  --hp-ivory:        #fbf8f2;
  --hp-canvas:       #f8fafc;
  --hp-gold-dark:    #b45309;
  --hp-gold-rich:    #d97706;
  --hp-gold:         #f59e0b;
  --hp-gold-bright:  #fbbf24;
  --hp-gold-pale:    #fef3c7;
  --hp-gold-faint:   #fdf6e3;
  --hp-navy:         #141a3e;
  --hp-body:         #334155;
  --hp-muted:        #64748b;

  /* Dải số liệu: nền MỰC NAVY đậm, số giữ tông vàng (Sếp chốt 2026-11-09).
     Ba nấc rất gần nhau để chuyển sắc dọc mềm, không thành khối đen đặc.
     Đây là khối tối duy nhất nằm giữa hai khối sáng (hero ảnh → vàng nhạt),
     nên đóng vai trò "bệ đỡ" cho con số. */
  --hp-stats-bg-top:    #1a2244;
  --hp-stats-bg:        #131a35;
  --hp-stats-bg-bottom: #0e1428;
  /* Thẻ số liệu trên mobile: nhích sáng hơn nền một nấc, không dùng trắng.
     Hiện KHÔNG dùng — bản mobile đã bỏ khung thẻ (số trần như desktop);
     giữ biến để khôi phục nhanh nếu cần quay lại kiểu thẻ. */
  --hp-stats-card:      #1e2746;
  --hp-stats-label:     #d8cfbc;
  --hp-stats-sub:       #b0a894;
  --hp-border:       #e2e8f0;
  --hp-border-gold:  rgba(217, 119, 6, 0.35);
  --hp-pink:         #ff37ff;
  --hp-pink-soft:    rgba(255, 55, 255, 0.55);

  /* Thiết kế mới Desktop Boost (Ocean Teal + Warm Ivory) */
  --cct-navy-deep:   #070b1a;
  --cct-navy:        #0e1533;
  --cct-navy-surface:#141f48;
  --cct-gold:        #d4af37;
  --cct-gold-bright: #fbbf24;
  --cct-gold-glow:   rgba(251, 191, 36, 0.28);
  --cct-cyan:        #38bdf8;
  --cct-sky-light:   #bae6fd;
  --cct-white:       #ffffff;
  --intro-bar-height: 204px;

  /* ดาวล้านนาแปดแฉก (สี่เหลี่ยม + ข้าวหลามตัด + กางเขนกลาง) เรียงสลับฟันปลา */
  --hp-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23b45309' stroke-opacity='0.08' stroke-width='1'%3E%3Cpath d='M30 19L41 30L30 41L19 30Z'/%3E%3Cpath d='M22.2 22.2H37.8V37.8H22.2Z'/%3E%3Cpath d='M90 79L101 90L90 101L79 90Z'/%3E%3Cpath d='M82.2 82.2H97.8V97.8H82.2Z'/%3E%3C/g%3E%3Cg fill='none' stroke='%23d97706' stroke-opacity='0.13' stroke-width='1'%3E%3Cpath d='M30 25.5v9M25.5 30h9'/%3E%3Cpath d='M90 85.5v9M85.5 90h9'/%3E%3C/g%3E%3Cg fill='%23b45309' fill-opacity='0.1'%3E%3Ccircle cx='90' cy='30' r='1.3'/%3E%3Ccircle cx='30' cy='90' r='1.3'/%3E%3C/g%3E%3C/svg%3E");

  /* Cùng hoa văn nhưng đổi sang vàng sáng — dùng cho nền tối (dải số liệu).
     Giữ nguyên toạ độ path để hai bản trùng khít nhau. */
  --hp-star-on-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23fbbf24' stroke-opacity='0.1' stroke-width='1'%3E%3Cpath d='M30 19L41 30L30 41L19 30Z'/%3E%3Cpath d='M22.2 22.2H37.8V37.8H22.2Z'/%3E%3Cpath d='M90 79L101 90L90 101L79 90Z'/%3E%3Cpath d='M82.2 82.2H97.8V97.8H82.2Z'/%3E%3C/g%3E%3Cg fill='none' stroke='%23f59e0b' stroke-opacity='0.16' stroke-width='1'%3E%3Cpath d='M30 25.5v9M25.5 30h9'/%3E%3Cpath d='M90 85.5v9M85.5 90h9'/%3E%3C/g%3E%3Cg fill='%23fbbf24' fill-opacity='0.14'%3E%3Ccircle cx='90' cy='30' r='1.3'/%3E%3Ccircle cx='30' cy='90' r='1.3'/%3E%3C/g%3E%3C/svg%3E");

  /* ดอกบัวแปดกลีบ (ลายล้านนา) สำหรับแถบพระวจนะ */
  --hp-lotus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cg transform='translate(100 100)' fill='none' stroke='%23b45309' stroke-opacity='0.09' stroke-width='1'%3E%3Cpath d='M0 -18C14 -32 14 -52 0 -68C-14 -52 -14 -32 0 -18Z'/%3E%3Cpath transform='rotate(45)' d='M0 -18C14 -32 14 -52 0 -68C-14 -52 -14 -32 0 -18Z'/%3E%3Cpath transform='rotate(90)' d='M0 -18C14 -32 14 -52 0 -68C-14 -52 -14 -32 0 -18Z'/%3E%3Cpath transform='rotate(135)' d='M0 -18C14 -32 14 -52 0 -68C-14 -52 -14 -32 0 -18Z'/%3E%3Cpath transform='rotate(180)' d='M0 -18C14 -32 14 -52 0 -68C-14 -52 -14 -32 0 -18Z'/%3E%3Cpath transform='rotate(225)' d='M0 -18C14 -32 14 -52 0 -68C-14 -52 -14 -32 0 -18Z'/%3E%3Cpath transform='rotate(270)' d='M0 -18C14 -32 14 -52 0 -68C-14 -52 -14 -32 0 -18Z'/%3E%3Cpath transform='rotate(315)' d='M0 -18C14 -32 14 -52 0 -68C-14 -52 -14 -32 0 -18Z'/%3E%3Ccircle r='9' stroke-opacity='0.16'/%3E%3C/svg%3E");

  /* ดาวซิ่นไส้ไก่ (เส้นหยักล้านนา) — ใช้เป็นชายล่างของแถบพระวจนะ */
  --hp-saikeaw: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='10' viewBox='0 0 24 10'%3E%3Cpath d='M0 9L6 1L12 9L18 1L24 9' fill='none' stroke='%23d97706' stroke-opacity='0.34' stroke-width='1'/%3E%3C/svg%3E");


  /* ดอกบัวล้านนาขนาดใหญ่ + วงแหวนด้านนอก (ใช้เป็นลายพื้นแถบพระวจนะ — เหมือน home_preview) */
  --hp-lotus-xl: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cg transform='translate(100 100)' fill='none' stroke='%23b45309' stroke-opacity='0.09' stroke-width='1'%3E%3Cpath d='M0 -18C14 -32 14 -52 0 -68C-14 -52 -14 -32 0 -18Z'/%3E%3Cpath transform='rotate(45)' d='M0 -18C14 -32 14 -52 0 -68C-14 -52 -14 -32 0 -18Z'/%3E%3Cpath transform='rotate(90)' d='M0 -18C14 -32 14 -52 0 -68C-14 -52 -14 -32 0 -18Z'/%3E%3Cpath transform='rotate(135)' d='M0 -18C14 -32 14 -52 0 -68C-14 -52 -14 -32 0 -18Z'/%3E%3Cpath transform='rotate(180)' d='M0 -18C14 -32 14 -52 0 -68C-14 -52 -14 -32 0 -18Z'/%3E%3Cpath transform='rotate(225)' d='M0 -18C14 -32 14 -52 0 -68C-14 -52 -14 -32 0 -18Z'/%3E%3Cpath transform='rotate(270)' d='M0 -18C14 -32 14 -52 0 -68C-14 -52 -14 -32 0 -18Z'/%3E%3Cpath transform='rotate(315)' d='M0 -18C14 -32 14 -52 0 -68C-14 -52 -14 -32 0 -18Z'/%3E%3Ccircle r='9' stroke-opacity='0.16'/%3E%3Ccircle r='76' stroke-opacity='0.07'/%3E%3C/g%3E%3C/svg%3E");

  /* ==========================================================
     HOA VĂN NỀN — 12 MẪU SVG CHUẨN, VÀNG ÁNH KIM HOÀNG GIA (2026-11-12)
     Nguồn DUY NHẤT: /assets/img/motifs/hoavan-01.svg .. hoavan-12.svg
     (mỗi SVG tự chứa <defs> gradient kim loại, không cần CSS ngoài).
     LOẠI TRỪ TUYỆT ĐỐI: church-verse-band — vẫn giữ sen Lanna + ดาวซิ่นไส้ไก่.
  ========================================================== */
  --hp-motif-01: url("/assets/img/motifs/hoavan-01.svg");
  --hp-motif-02: url("/assets/img/motifs/hoavan-02.svg");
  --hp-motif-03: url("/assets/img/motifs/hoavan-03.svg");
  --hp-motif-04: url("/assets/img/motifs/hoavan-04.svg");
  --hp-motif-05: url("/assets/img/motifs/hoavan-05.svg");
  --hp-motif-06: url("/assets/img/motifs/hoavan-06.svg");
  --hp-motif-07: url("/assets/img/motifs/hoavan-07.svg");
  --hp-motif-08: url("/assets/img/motifs/hoavan-08.svg");
  --hp-motif-09: url("/assets/img/motifs/hoavan-09.svg");
  --hp-motif-10: url("/assets/img/motifs/hoavan-10.svg");
  --hp-motif-11: url("/assets/img/motifs/hoavan-11.svg");
  --hp-motif-12: url("/assets/img/motifs/hoavan-12.svg");

  /* Kích thước & độ đậm — đổi 1 dòng là mọi section khớp */
  --hp-motif-border-h: 20px;   /* dải viền nhỏ, lặp repeat-x */
  --hp-motif-tile: 150px;      /* ô watermark desktop */
  --hp-motif-tile-sm: 96px;    /* ô watermark mobile */
  --hp-motif-ink-light: 0.052; /* nền sáng: rõ hơn theo yêu cầu Sếp */
  --hp-motif-ink-cream: 0.07; /* nền kem */
  --hp-motif-ink-navy: 0.09;   /* nền navy 8 - 9% */
  --hp-motif-border-ink: 0.55; /* dải viền rõ hơn nền chìm */

}

/* ==========================================================
   0. THIẾT KẾ MỚI DESKTOP BOOST — VIEWPORT 100VH & VIDEO ĐỘC LẬP
   (Chỉ áp dụng desktop >= 992px, Mobile giữ nguyên 100% không ảnh hưởng)
========================================================== */
.cct-container {
  width: 100%;
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Ẩn hero fold desktop trên mobile (< 992px) */
.cct-hero-viewport {
  display: none;
}

/* Triệt tiêu triệt để padding: 60px 0 mặc định của thẻ section */
section.cct-hero-viewport,
.cct-hero-viewport {
  padding: 0;
  margin: 0;
}

/* Khối Viewport Desktop chuẩn 100vh: Header + Welcome Strip + Banner Slide (DÙNG CHUNG NỀN OCEAN TEAL LIỀN MẠCH, ZERO ĐƯỜNG KẺ)
   Logic ở >=1200px: topbar + branding + dải chào mừng + banner = 100vh.
   Chiều cao khối này = 100vh - --header-total-h (topbar + branding, khai báo
   trong theme-modern.css :root). Banner slide có flex:1 nên TỰ tăng đúng bằng
   phần topbar giảm đi — trước đây trừ cứng 116px (42+74) nên sau mỗi lần chỉnh
   topbar fold bị hụt vài px. Không hardcode số nữa. */
@media (min-width: 992px) and (max-width: 1199.98px) {
  section.cct-hero-viewport,
  .cct-hero-viewport {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: calc(100vh - 70px);
    max-height: calc(100vh - 70px);
    min-height: calc(100vh - 70px);
    position: relative;
    background: radial-gradient(ellipse at 50% 30%, #07354f 0%, #052438 55%, #031726 100%);
    overflow: hidden;
    padding: 0;
    margin: 0;
  }
}

@media (min-width: 1200px) {
  section.cct-hero-viewport,
  .cct-hero-viewport {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: calc(100vh - var(--header-total-h));
    max-height: calc(100vh - var(--header-total-h));
    min-height: calc(100vh - var(--header-total-h));
    position: relative;
    background: radial-gradient(ellipse at 50% 30%, #07354f 0%, #052438 55%, #031726 100%);
    overflow: hidden;
    padding: 0;
    margin: 0;
  }
}

/* Ẩn hero cũ trên desktop >= 992px */
@media (min-width: 992px) {
  .cct-mobile-hero {
    display: none;
  }
}

/* --- 1. DẢI CHÀO MỪNG: OCEAN TEAL + BÓNG KÍNH APPLE --- */
.cct-intro-section {
  height: var(--intro-bar-height);
  min-height: var(--intro-bar-height);
  padding: 14px 0;
  display: flex;
  align-items: center;
  z-index: 30;
  flex-shrink: 0;
  position: relative;
  box-shadow: none;
  transition: background 0.4s ease, border-color 0.4s ease;
}

.cct-intro-section.theme-ocean-teal {
  background: transparent;
  border-top: 1px solid rgba(251, 191, 36, 0.35);
  border-bottom: none;
}

.apple-glass-card {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 36px;
  align-items: center;
  padding: 20px 32px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.16) 0%,
    rgba(255, 255, 255, 0.04) 45%,
    rgba(15, 23, 62, 0.5) 100%
  );
  backdrop-filter: blur(30px) saturate(210%);
  -webkit-backdrop-filter: blur(30px) saturate(210%);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 
    0 24px 50px -10px rgba(0, 0, 0, 0.55),
    0 8px 20px -4px rgba(0, 0, 0, 0.3),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -1px 2px 0 rgba(251, 191, 36, 0.25);
  overflow: hidden;
  color: var(--cct-white);
}

.apple-glass-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 44%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 100%);
  border-radius: 20px 20px 80px 80px / 20px 20px 18px 18px;
  pointer-events: none;
}

.glass-left-zone {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 28px;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.glass-left-zone .glass-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3.5px 12px;
  background: rgba(251, 191, 36, 0.18);
  border: 1px solid rgba(251, 191, 36, 0.5);
  border-radius: 50px;
  color: var(--cct-gold-bright);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  margin-bottom: 8px;
  align-self: flex-start;
}

.glass-left-zone .floating-h1,
.glass-left-zone h1 {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 4px;
  letter-spacing: -0.015em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.glass-left-zone .church-hero-sub,
.glass-left-zone .floating-sub {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--cct-gold-bright);
  line-height: 1.35;
  margin-bottom: 6px;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.4);
}

.glass-left-zone .church-hero-welcome,
.glass-left-zone .floating-welcome {
  font-size: 14px;
  font-weight: 500;
  color: #bae6fd;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 6px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
  margin-bottom: 0;
}

.glass-left-zone .church-hero-welcome i,
.glass-left-zone .floating-welcome i {
  color: var(--cct-gold-bright);
  font-size: 16px;
}

.glass-right-zone {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-worship-banner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  padding: 6px 12px;
  margin-bottom: 8px;
  align-self: flex-start;
}

.home-worship-banner i {
  color: var(--cct-gold-bright);
  font-size: 16px;
}

.home-worship-banner span {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.home-hero-summary-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.55;
  margin-bottom: 12px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.glass-cta-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.glass-cta-group .cta-btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--cct-gold-bright) 0%, var(--cct-gold) 100%);
  color: #0b0f26;
  font-weight: 700;
  font-size: 12.5px;
  padding: 7px 16px;
  border-radius: 24px;
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.35);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.glass-cta-group .cta-btn-gold:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 6px 16px rgba(251, 191, 36, 0.45);
  background: linear-gradient(135deg, #fde047 0%, #fbbf24 100%);
  color: #0b0f26;
}

.glass-cta-group .cta-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  font-weight: 600;
  font-size: 12.5px;
  padding: 7px 15px;
  border-radius: 24px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.glass-cta-group .cta-btn-outline:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.55);
  color: #ffffff;
  transform: translateY(-1.5px);
}

.glass-cta-group .cta-btn-video {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(239, 68, 68, 0.25);
  border: 1px solid rgba(239, 68, 68, 0.6);
  color: #fee2e2;
  font-weight: 600;
  font-size: 12.5px;
  padding: 7px 15px;
  border-radius: 24px;
  cursor: pointer;
  margin-left: auto;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.glass-cta-group .cta-btn-video:hover {
  background: rgba(239, 68, 68, 0.45);
  color: #ffffff;
  border-color: #ef4444;
  transform: translateY(-1.5px);
}

/* --- 2. KHỐI BANNER SLIDE (rộng bằng bề rộng TRANG, không tràn viền) --- */
/* Bề rộng khung = bề rộng nội dung trang: trùng .cct-container (max 1320px + đệm 24px)
   để mép banner thẳng hàng với thẻ chào mừng (Apple glass) phía trên. */
.cct-banner-slider {
  flex: 1;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  display: flex;
  align-items: center;
  background-color: transparent;
  overflow: hidden;
  min-height: 0;
}

/* Khung ảnh phủ hết phần chiều cao còn lại, bo góc nhẹ như một tấm ảnh đặt trên trang */
.cct-banner-slider .slider-stage {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  background-color: #0b1122;
  /* Cả khung ảnh bấm được để dừng/tiếp tục slide → đổi con trỏ cho khách biết. */
  cursor: pointer;
  box-shadow:
    0 26px 60px -30px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(251, 191, 36, 0.16);
}

.cct-banner-slider .slide-photo-item {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.cct-banner-slider .slide-photo-item.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

/* Nền mờ lấy từ chính ảnh của slide (biến --slide-ambient do JS gắn khi slide hiện).
   Chỉ lộ ra ở phần trống khi tỉ lệ ảnh không khớp tỉ lệ khung — nhờ vậy ảnh chính
   luôn trọn vẹn mà khung vẫn kín, không thành hai vệt trống hai bên. */
.cct-banner-slider .slide-photo-item::before {
  content: "";
  position: absolute;
  inset: -8%;
  background-image: var(--slide-ambient, none);
  background-position: center;
  background-size: cover;
  filter: blur(38px) saturate(1.25) brightness(0.55);
  transform: scale(1.06);
  pointer-events: none;
  z-index: 0;
}

/* Ảnh chính: object-fit contain để LUÔN hiển thị đầy đủ, không cắt bớt.
   Bỏ hẳn hiệu ứng zoom khi ảnh đang hiện: zoom chính là thứ cắt mất viền ảnh. */
.cct-banner-slider .slide-photo-item img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.cct-banner-slider .slider-vignette-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(7, 11, 26, 0.3) 0%,
    rgba(0, 0, 0, 0) 25%,
    rgba(0, 0, 0, 0) 70%,
    rgba(7, 11, 26, 0.75) 100%
  );
  z-index: 5;
  pointer-events: none;
}

.cct-banner-slider .slider-arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(14, 21, 51, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  cursor: pointer;
  z-index: 10;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.25s ease;
  opacity: 0.65;
}

.cct-banner-slider .slider-arrow-btn:hover {
  opacity: 1;
  background: rgba(14, 21, 51, 0.95);
  border-color: var(--cct-gold-bright);
  color: var(--cct-gold-bright);
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 0 15px rgba(251, 191, 36, 0.4);
}

.cct-banner-slider .slider-arrow-btn.prev-btn { left: 24px; }
.cct-banner-slider .slider-arrow-btn.next-btn { right: 24px; }

.cct-banner-slider .slider-counter-badge {
  position: absolute;
  top: 18px;
  right: 28px;
  background: rgba(14, 21, 51, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #ffffff;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cct-banner-slider .counter-current {
  color: var(--cct-gold-bright);
  font-size: 13px;
}

.cct-banner-slider .slider-scroll-target {
  position: absolute;
  bottom: 20px;
  right: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(7, 11, 26, 0.8);
  border: 1px solid rgba(251, 191, 36, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 7px 15px;
  border-radius: 30px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  z-index: 10;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  text-decoration: none;
}

.cct-banner-slider .slider-scroll-target:hover {
  background: rgba(14, 21, 51, 0.95);
  border-color: var(--cct-gold-bright);
  color: var(--cct-gold-bright);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(251, 191, 36, 0.3);
}

.cct-banner-slider .slider-scroll-target i {
  color: var(--cct-gold-bright);
  font-size: 15px;
  animation: cctArrowBlink 1.8s ease-in-out infinite;
}

@keyframes cctArrowBlink {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

.cct-banner-slider .slider-dots-group {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cct-banner-slider .slider-dot {
  width: 24px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: all 0.3s ease;
}

.cct-banner-slider .slider-dot.active {
  width: 42px;
  background: var(--cct-gold-bright);
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.7);
}

.cct-banner-slider .slider-timer-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3.5px;
  background: linear-gradient(90deg, var(--cct-gold-bright) 0%, var(--cct-cyan) 100%);
  width: 0%;
  z-index: 15;
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.6);
}

/* Nút chỉ báo tạm dừng ở góc phải trên. Cả khung ảnh đều bấm được (JS), nút này
   chỉ phản ánh trạng thái và là đường vào cho bàn phím (WCAG 2.2.2).
   Bình thường ẩn hẳn; chỉ hiện khi đang tạm dừng (hoặc khi tab vào bằng bàn phím).
   Ẩn bằng opacity + pointer-events (không dùng visibility/display) để vẫn tab tới
   được và không tạo "vùng chết": bấm đúng góc này vẫn rơi xuống khung ảnh. */
.cct-banner-slider .slider-pause-toggle {
  position: absolute;
  top: 18px;
  right: 28px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(14, 21, 51, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  z-index: 12;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease, background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.cct-banner-slider .slider-pause-toggle:focus-visible {
  opacity: 1;
  outline: 2px solid var(--cct-gold-bright);
  outline-offset: 2px;
}

/* Đang tạm dừng: nút hiện ra và chuyển vàng để nhìn là biết ngay trạng thái. */
.cct-banner-slider.is-paused .slider-pause-toggle {
  opacity: 1;
  background: rgba(251, 191, 36, 0.94);
  border-color: var(--cct-gold-bright);
  color: #1b2559;
}

.cct-banner-slider.is-paused .slider-pause-toggle:hover {
  background: rgba(251, 191, 36, 1);
  transform: scale(1.06);
}

.cct-banner-slider.is-paused .slider-timer-bar {
  opacity: 0.55;
}

/* --- 3. KHỐI VIDEO ĐỘC LẬP - NẰM SÁT DƯỚI CHÂN BANNER & BỚT CHỮ TỐI GIẢN --- */
.cct-sacred-video-section {
  padding: 24px 0 54px;
  position: relative;
  overflow: hidden;
  transition: background 0.4s ease;
}

.cct-sacred-video-section.video-theme-warm-ivory {
  background: linear-gradient(180deg, #faf8f5 0%, #f4efe6 60%, #e8decb 100%);
  border-top: 1px solid #eedec5;
  border-bottom: 1px solid #d5c3a5;
}

.sacred-video-inner {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
}

.sacred-compact-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 14px;
}

.sacred-lanna-cross-small {
  width: 26px;
  height: 36px;
  color: #b45309;
  filter: drop-shadow(0 2px 6px rgba(212, 175, 55, 0.4));
  flex-shrink: 0;
}

.sacred-video-title {
  font-size: 26px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 0;
  transition: color 0.3s ease;
}

.sacred-cinema-portal {
  position: relative;
  width: 100%;
  background: #090e24;
  border-radius: 20px;
  padding: 10px;
  border: 2px solid rgba(212, 175, 55, 0.65);
  box-shadow: 
    0 25px 60px -15px rgba(15, 23, 42, 0.35),
    0 10px 25px -5px rgba(15, 23, 42, 0.2),
    0 0 35px rgba(212, 175, 55, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sacred-cinema-portal:hover {
  box-shadow: 
    0 35px 80px -15px rgba(15, 23, 42, 0.45),
    0 15px 30px -5px rgba(15, 23, 42, 0.25),
    0 0 45px rgba(212, 175, 55, 0.4);
}

.sacred-cinema-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.cinema-brand-badge {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #ffffff;
  font-weight: 600;
}

.cinema-brand-badge i {
  color: #ef4444;
  font-size: 20px;
  filter: drop-shadow(0 0 6px rgba(239, 68, 68, 0.5));
}

.cinema-quality-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  color: var(--cct-gold-bright);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.sacred-player-viewport {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 widescreen */
  background: #000000;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.sacred-player-viewport iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* --- KHUNG ẢNH THAY THẾ VIDEO TRONG KHỐI THỜ PHƯỢNG / CẦU NGUYỆN (DESKTOP & MOBILE) --- */
.church-intro-photo-card {
  position: relative;
  background: #ffffff;
  border-radius: 18px;
  padding: 8px;
  border: 1px solid rgba(212, 175, 55, 0.38);
  box-shadow: 
    0 16px 36px -12px rgba(15, 23, 42, 0.15),
    0 4px 12px -2px rgba(15, 23, 42, 0.08),
    0 0 20px rgba(212, 175, 55, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.church-intro-photo-card:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 22px 42px -12px rgba(15, 23, 42, 0.2),
    0 8px 18px -4px rgba(15, 23, 42, 0.1),
    0 0 28px rgba(212, 175, 55, 0.2);
}

.church-intro-photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #0b0f26;
}

.church-intro-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.church-intro-photo-card:hover .church-intro-photo-img {
  transform: scale(1.035);
}

.church-intro-photo-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(11, 15, 38, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid rgba(251, 191, 36, 0.5);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.church-intro-photo-badge i {
  color: #fbbf24;
  font-size: 14px;
}

/* ==========================================================
   1. HERO — APPLE FROSTED GLASS FLOATING CARD + VIEWPORT CINEMA SLIDER (CHO MOBILE)
========================================================== */
/* Hero MOBILE (<992px): GIỮ 116px lịch sử, cố tình không dùng
   --header-total-h vì vùng này không có topbar (ui-v6.css 9A) và branding
   chỉ 70px. Khối 100vh ở desktop nằm ở mục riêng phía trên (>=(1200px)). */
.church-hero-section {
  background-color: #000000;
  height: calc(100vh - 116px);
  min-height: calc(100vh - 116px);
  max-height: calc(100vh - 116px);
  width: 100%;
  padding: 0;
  margin: 0;
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
  background-image: none;
}

/* Khung slide 100% full-width và 100% chiều cao viewport */
.hero-fullscreen-slide-wrap {
  width: 100%;
  height: 100%;
  position: relative;
  background-color: #000000;
  user-select: none;
  -webkit-user-drag: none;
  overflow: hidden;
}

/* Lớp Ambient Canvas mờ (mặc định ẩn trên desktop, kích hoạt trên mobile qua page-home-mobile.css) */
.hero-ambient-layer {
  display: none;
}

.hero-floating-inner {
  position: relative;
  z-index: 3;
}

/* Khối nội dung nổi - hiệu ứng bóng kính chuẩn Apple (Apple Frosted Glass) */
.hero-floating-content {
  position: absolute;
  top: 32px;
  left: 40px;
  z-index: 15;
  max-width: 480px;
  padding: 24px 28px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.18) 0%,
    rgba(255, 255, 255, 0.05) 45%,
    rgba(15, 23, 62, 0.5) 100%
  );
  backdrop-filter: blur(30px) saturate(210%);
  -webkit-backdrop-filter: blur(30px) saturate(210%);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 
    0 30px 60px -12px rgba(0, 0, 0, 0.55),
    0 12px 24px -6px rgba(0, 0, 0, 0.35),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.65),
    inset 0 -1px 2px 0 rgba(251, 191, 36, 0.25);
  pointer-events: auto;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.hero-floating-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 46%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 100%);
  border-radius: 20px 20px 80px 80px / 20px 20px 18px 18px;
  pointer-events: none;
}

.hero-floating-content:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 36px 70px -12px rgba(0, 0, 0, 0.65),
    0 16px 28px -6px rgba(0, 0, 0, 0.4),
    inset 0 1px 2px 0 rgba(255, 255, 255, 0.8),
    inset 0 -1px 2px 0 rgba(251, 191, 36, 0.35);
}

/* Chip danh mục nhỏ tinh tế phong cách Apple iOS */
.glass-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(251, 191, 36, 0.16);
  border: 1px solid rgba(251, 191, 36, 0.45);
  border-radius: 50px;
  color: var(--hp-gold-bright);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.hero-floating-content h1,
.hero-floating-content .floating-h1 {
  font-size: clamp(1.6rem, 2.3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.24;
  color: #ffffff;
  margin-bottom: 5px;
  letter-spacing: -0.015em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.hero-floating-content h3,
.hero-floating-content .church-hero-sub,
.hero-floating-content .floating-sub {
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  font-weight: 600;
  color: var(--hp-gold-bright);
  line-height: 1.45;
  margin-bottom: 3px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.hero-floating-content h2,
.hero-floating-content .church-hero-welcome,
.hero-floating-content .floating-welcome {
  font-size: clamp(0.88rem, 1.05vw, 1rem);
  font-weight: 400;
  color: #bae6fd;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
  margin-bottom: 0;
}

.hero-fullscreen-cinema {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  display: block;
}

.slide-item {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  z-index: 1;
  pointer-events: none;
  /* Crossfade mềm: ảnh cũ mờ dần TRƯỚC, visibility chỉ tắt sau khi opacity về 0
     (trước đây visibility tắt ngay nên ảnh cũ biến mất đột ngột). */
  transition:
    opacity 1.15s cubic-bezier(0.22, 0.61, 0.36, 1),
    visibility 0s linear 1.15s;
}

.slide-item.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
  transition:
    opacity 1.15s cubic-bezier(0.22, 0.61, 0.36, 1),
    visibility 0s linear 0s;
}

.slide-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  pointer-events: none;
  /* Ken Burns rất nhẹ: ảnh đang hiện trôi chậm từ 1 → 1.055 trong suốt thời gian hiển thị. */
  transform: scale(1);
  transition: transform 9s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.slide-item.active img {
  transform: scale(1.055);
  will-change: transform;
}

/* Thanh tiến trình ở chân slide: chạy bằng transform (GPU) thay vì width,
   nên mượt ở tần số quét màn hình thay vì nhảy từng 50ms. */
.slide-progress-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #fbbf24 0%, #38bdf8 100%);
  transform: scaleX(0);
  transform-origin: left center;
  backface-visibility: hidden;
  will-change: transform;
  z-index: 10;
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.7);
}

.slide-dots-fullwidth {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.slide-dot {
  width: 28px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.slide-dot.active {
  width: 44px;
  background: var(--hp-gold-bright);
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.8);
}

/* Nút chỉ báo tạm dừng (mobile) ở góc phải trên khung ảnh. Chạm vào bất kỳ đâu
   trên ảnh đều dừng/tiếp tục; nút này chỉ phản ánh trạng thái và chỉ hiện khi
   đang tạm dừng (hoặc khi được focus bằng bàn phím). */
.hero-fullscreen-cinema .slide-pause-toggle {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(14, 21, 51, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
  z-index: 12;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease, background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.hero-fullscreen-cinema .slide-pause-toggle:focus-visible {
  opacity: 1;
  outline: 2px solid var(--hp-gold-bright);
  outline-offset: 2px;
}

.hero-fullscreen-cinema.is-paused .slide-pause-toggle {
  opacity: 1;
  background: rgba(251, 191, 36, 0.94);
  border-color: var(--hp-gold-bright);
  color: #1b2559;
}

.hero-fullscreen-cinema.is-paused .slide-pause-toggle:active {
  transform: scale(0.94);
}

.hero-fullscreen-cinema.is-paused .slide-progress-line {
  opacity: 0.55;
}

/* Người dùng tắt hiệu ứng: chuyển ảnh nhanh, không zoom, không dùng lớp GPU */
@media (prefers-reduced-motion: reduce) {
  .slide-item,
  .slide-item.active {
    transition: opacity 0.25s linear, visibility 0s linear 0.25s;
  }

  .slide-item img,
  .slide-item.active img {
    transition: none;
    transform: none;
    will-change: auto;
  }

  .slide-progress-line {
    will-change: auto;
  }
}

/* Gợi ý cuộn chuột xuống tinh tế (có thể bấm để cuộn mượt xuống nội dung) */
.hero-scroll-hint {
  position: absolute;
  bottom: 14px;
  right: 28px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  letter-spacing: 0.05em;
  z-index: 10;
  cursor: pointer;
  pointer-events: auto;
  text-decoration: none;
  transition: color 0.25s ease, opacity 0.25s ease;
}

.hero-scroll-hint:hover {
  color: #ffffff;
}

.hero-scroll-hint i {
  color: var(--hp-gold-bright);
  font-size: 14px;
  animation: floatDown 2s ease-in-out infinite;
}

@keyframes floatDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* --- ปุ่มหลัก --- */
.church-btn-gold {
  border-radius: 2px;
  padding: 14px 34px;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border: 1px solid var(--hp-gold-bright);
  box-shadow: 0 6px 20px rgba(180, 83, 9, 0.32);
}

.church-btn-gold:hover {
  box-shadow: 0 10px 28px rgba(180, 83, 9, 0.42);
  background: linear-gradient(135deg, var(--hp-gold-bright) 0%, var(--hp-gold) 100%);
}

.church-btn-outline {
  border-radius: 2px;
  padding: 14px 34px;
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.5);
  color: #ffffff;
}

.church-btn-outline:hover {
  background: rgba(251, 191, 36, 0.14);
  border-color: var(--hp-gold-bright);
  color: #ffffff;
}

/* ==========================================================
   2. จังหวะของหน้า — ระยะห่างและพื้นหลังแต่ละแถบ
========================================================== */
.church-intro-section {
  background: linear-gradient(180deg, var(--hp-white) 0%, var(--hp-ivory) 100%);
  padding: 84px 0;
  border-bottom: 0;
}

.church-policy-section {
  background: linear-gradient(180deg, var(--hp-ivory) 0%, var(--hp-gold-faint) 100%);
  padding: 84px 0;
}

.church-news-section {
  background-color: var(--hp-white);
  padding: 84px 0;
  border-top: 0;
}

.church-downloads-section {
  background: linear-gradient(180deg, var(--hp-canvas) 0%, var(--hp-white) 100%);
  padding: 84px 0;
  border-top: 0;
  border-bottom: 0;
}

.church-contact-section {
  background: linear-gradient(180deg, var(--hp-white) 0%, var(--hp-ivory) 100%);
  padding: 84px 0;
}

/* --- หัวข้อกลางหน้า: คิกเกอร์ + เส้นทอง + ขีดชมพูใต้ชื่อ --- */
.church-section-header {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 56px;
}

.church-section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--hp-gold-dark);
  background: none;
  border: 0;
  padding: 0;
  border-radius: 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: none;
  margin-bottom: 14px;
}

.church-section-tag::before,
.church-section-tag::after {
  content: "";
  width: 40px;
  height: 1px;
  background: rgba(180, 83, 9, 0.4);
}

.church-section-tag i {
  color: var(--hp-gold-rich);
  font-size: 15px;
}

.church-section-title {
  font-size: clamp(1.8rem, 3.6vw, 2.4rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--hp-navy);
  margin-bottom: 0;
}

.church-section-title::after {
  content: "";
  display: block;
  width: 52px;
  height: 2px;
  margin: 14px auto 0;
  background: var(--hp-pink);
  border-radius: 2px;
  opacity: 0.85;
}

.church-section-subtitle {
  color: var(--hp-muted);
  font-size: 1rem;
  font-weight: 400;
  margin-top: 14px;
  margin-bottom: 0;
}

.church-divider {
  width: 150px;
  height: 1px;
  margin: 18px auto 0 auto;
  border-radius: 0;
  background: linear-gradient(90deg,
    rgba(245, 158, 11, 0) 0%,
    rgba(245, 158, 11, 0.85) 50%,
    rgba(245, 158, 11, 0) 100%);
}

/* ==========================================================
   3. บทนำ + วิดีโอ
========================================================== */
.church-intro-tag {
  color: var(--hp-gold-dark);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  margin-bottom: 12px;
  text-transform: none;
}

.church-intro-tag i {
  color: var(--hp-gold-rich);
}

.church-intro-heading {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  line-height: 1.4;
  color: var(--hp-navy);
  margin-bottom: 18px;
}

.church-intro-text {
  color: var(--hp-body);
  font-size: 1.02rem;
  font-weight: 400;
  margin-bottom: 26px;
}

.church-video-frame {
  border-radius: 3px;
  padding: 10px;
  background: linear-gradient(160deg, #1a2258, #0b7294);
  box-shadow: 0 26px 60px rgba(20, 26, 62, 0.16);
  position: relative;
}

.church-video-frame::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid var(--hp-pink-soft);
  pointer-events: none;
}

.church-video-label {
  color: var(--hp-gold-bright);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 6px 8px 12px;
}

/* ==========================================================
   4. แถบสถิติ — nền mực navy đậm + ดาวล้านนาแปดแฉก (bản vàng sáng)
   (Sếp chốt: nền TỐI, số giữ tông VÀNG — không dùng nền vàng/be)
========================================================== */
.church-profile-section {
  /* Đáy 78px -> 66px: khối này không còn nút CTA ở chân (Sếp bỏ 2026-11-09),
     giữ 78px thì khoảng trống dưới hàng số nặng hơn khoảng trên tiêu đề. */
  padding: 72px 0 66px;
  background-color: var(--hp-stats-bg);
  /* Hoa văn nền chuyển sang lớp ::before (xem mục 11) để chỉnh được opacity */
  background-image: linear-gradient(180deg,
      var(--hp-stats-bg-top) 0%,
      var(--hp-stats-bg) 46%,
      var(--hp-stats-bg-bottom) 100%);
  background-repeat: no-repeat;
  background-position: 0 0;
  background-size: 100% 100%;
  border-top: 1px solid rgba(251, 191, 36, 0.26);
  border-bottom: 1px solid rgba(251, 191, 36, 0.26);
  color: var(--hp-stats-label);
}

.church-profile-header {
  text-align: center;
  margin-bottom: 44px;
}

.church-profile-header h3 {
  font-size: clamp(1.6rem, 3.2vw, 2.1rem);
  font-weight: 700;
  color: #f6f1e6;
  margin-bottom: 6px;
}

.church-profile-header h3::after,
.church-profile-header h2::after {
  content: "";
  display: block;
  width: 68px;
  height: 2px;
  margin: 16px auto 0;
  background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.78), transparent);
  border-radius: 2px;
}

.church-profile-header p {
  color: var(--hp-stats-sub);
  font-size: 0.95rem;
  font-weight: 400;
  margin-bottom: 0;
}

.church-stat-item {
  padding: 6px 8px;
  border-right: 1px solid rgba(251, 191, 36, 0.18);
}

.church-profile-section .row > div:last-child .church-stat-item {
  border-right: 0;
}

.church-stat-num {
  font-size: clamp(2.1rem, 4.4vw, 3.1rem);
  font-weight: 600;
  color: var(--hp-gold);
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin-bottom: 6px;
}

.church-stat-name {
  color: var(--hp-stats-label);
  font-size: 0.92rem;
  font-weight: 500;
  margin: 0;
}

/* ==========================================================
   5. แถบพระวจนะ — ทองอ่อน + ดอกบัวลายล้านนา
========================================================== */
.church-scripture-box {
  background-color: var(--hp-gold-faint);
  background-image: var(--hp-lotus),
    linear-gradient(135deg, var(--hp-gold-faint) 0%, var(--hp-gold-pale) 55%, var(--hp-gold-faint) 100%);
  background-repeat: no-repeat, no-repeat;
  background-position: center center, 0 0;
  background-size: 320px 320px, 100% 100%;
  border: 1px solid var(--hp-border-gold);
  border-top: 1px solid var(--hp-border-gold);
  border-radius: 3px;
  padding: 46px 40px;
  margin-bottom: 40px;
  box-shadow: none;
}

.church-scripture-icon {
  color: var(--hp-gold-rich);
  font-size: 28px;
  margin-bottom: 12px;
}

.church-scripture-tag {
  color: var(--hp-gold-dark);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  margin-bottom: 12px;
}

.church-scripture-verse {
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  font-weight: 600;
  color: var(--hp-navy);
  line-height: 1.5;
  margin-bottom: 12px;
}

.church-scripture-ref {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--hp-gold-dark);
  margin: 0;
}

/* ==========================================================
   6. การ์ด 3 เสาหลัก
========================================================== */
.church-pillar-card {
  background: var(--hp-white);
  border: 1px solid var(--hp-border);
  border-radius: 3px;
  padding: 36px 30px;
  box-shadow: 0 6px 20px rgba(20, 26, 62, 0.05);
  transition: box-shadow 0.45s ease, transform 0.45s ease;
}

.church-pillar-card:hover {
  box-shadow: 0 16px 36px rgba(20, 26, 62, 0.1);
  border-color: var(--hp-border);
  transform: translateY(-2px);
}

.church-pillar-card::before {
  background: var(--hp-pink);
  border-radius: 2px 2px 0 0;
  height: 3px;
}

.church-pillar-icon {
  width: 52px;
  height: 52px;
  border-radius: 2px;
  background: radial-gradient(circle at 50% 35%, rgba(251, 191, 36, 0.14), transparent 70%);
  color: var(--hp-gold-rich);
  border: 1px solid var(--hp-border-gold);
  font-size: 24px;
  margin-bottom: 18px;
}

.church-pillar-card:nth-child(1) .church-pillar-icon,
.church-pillar-card:nth-child(2) .church-pillar-icon {
  background: radial-gradient(circle at 50% 35%, rgba(251, 191, 36, 0.14), transparent 70%);
  color: var(--hp-gold-rich);
  border-color: var(--hp-border-gold);
}

.church-pillar-title {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--hp-navy);
  margin-bottom: 14px;
}

.church-pillar-body {
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.75;
  color: var(--hp-body);
}

/* ==========================================================
   7. ข่าวสาร
========================================================== */
.church-news-card {
  background: var(--hp-white);
  border: 1px solid var(--hp-border);
  border-radius: 3px;
  box-shadow: 0 4px 16px rgba(20, 26, 62, 0.04);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.church-news-card:hover {
  transform: none;
  box-shadow: 0 16px 38px rgba(20, 26, 62, 0.09);
  border-color: var(--hp-border);
}

.church-news-card::before {
  background: linear-gradient(180deg, var(--hp-gold), var(--hp-gold-dark));
  border-radius: 2px;
}

.church-news-date-badge {
  border-radius: 2px;
  background: var(--hp-gold-pale);
  color: var(--hp-gold-dark);
  font-weight: 600;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
}

.church-attachment-pill {
  border-radius: 2px;
  background: var(--hp-canvas);
  border: 1px solid var(--hp-border);
  color: var(--hp-muted);
  font-size: 0.74rem;
}

.church-news-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.45;
}

.church-news-card-title a {
  color: var(--hp-navy);
}

.church-news-card-title a:hover {
  color: var(--hp-gold-dark);
}

.church-news-link {
  color: var(--hp-navy);
  font-size: 0.88rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(180, 83, 9, 0.4);
  padding-bottom: 2px;
  border-radius: 0;
}

.church-news-link:hover {
  color: var(--hp-gold-dark);
  border-bottom-color: var(--hp-gold-dark);
}

/* ==========================================================
   7b. BENTO EDITORIAL GRID (DESKTOP >= 992px) — OPTION 1 (APPROVED)
   1 Hero 60% + 2 Thẻ ngang 40%. Không hover nhấp nhô (zero translateY jump).
   100% Local, Zero !important.
========================================================== */
@media (min-width: 992px) {
  .bento-grid-container {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 24px;
    align-items: stretch;
  }

  .bento-grid-container.is-single {
    grid-template-columns: 1fr;
    max-width: 880px;
    margin: 0 auto;
  }

  /* Thẻ Hero Lớn bên trái */
  .bento-hero-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid var(--hp-border);
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(20, 26, 62, 0.04);
    display: flex;
    flex-direction: column;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    height: 100%;
    transform: none;
  }

  .bento-hero-card:hover {
    transform: none;
    border-color: #94a3b8;
    box-shadow: 0 14px 34px rgba(20, 26, 62, 0.08), 0 4px 12px rgba(20, 26, 62, 0.04);
  }

  .bento-hero-media {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
    background: var(--hp-navy);
  }

  .bento-hero-media-link,
  .bento-side-media-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
  }

  .bento-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  .bento-hero-card:hover .bento-hero-img {
    transform: scale(1.03);
  }

  .bento-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.05) 0%, rgba(15, 23, 42, 0.6) 100%);
    pointer-events: none;
  }

  .bento-hero-floating-badges {
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 2;
    pointer-events: none;
  }

  .bento-cat-badge {
    background: rgba(20, 26, 62, 0.85);
    color: #ffffff;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
  }

  .bento-cat-badge.gold {
    background: rgba(217, 119, 6, 0.9);
    color: #ffffff;
    border-color: rgba(251, 191, 36, 0.4);
  }

  .bento-star-badge {
    background: rgba(255, 255, 255, 0.95);
    color: var(--hp-gold-dark);
    padding: 5px 12px;
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }

  .bento-hero-content {
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
    background: #ffffff;
  }

  .bento-meta-row {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.84rem;
    color: var(--hp-muted);
    margin-bottom: 12px;
  }

  .bento-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
  }

  .bento-hero-title {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.45;
    color: var(--hp-navy);
    margin-bottom: 12px;
    transition: color 0.2s ease;
  }

  .bento-hero-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
  }

  .bento-hero-card:hover .bento-hero-title,
  .bento-hero-card:hover .bento-hero-title a {
    color: #0b7294;
  }

  .bento-hero-excerpt {
    font-size: 0.92rem;
    color: var(--hp-body);
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .bento-hero-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--hp-border);
    padding-top: 16px;
  }

  .bento-read-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--hp-navy);
    text-decoration: none;
    transition: color 0.2s ease;
  }

  .bento-hero-card:hover .bento-read-btn {
    color: var(--hp-gold-rich);
  }

  .bento-read-btn i {
    transition: transform 0.2s ease;
  }

  .bento-hero-card:hover .bento-read-btn i {
    transform: translateX(5px);
  }

  .bento-attach-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 9999px;
    border: 1px solid #dbeafe;
    text-decoration: none;
  }

  /* Cột Phải: Thẻ Ngang Xếp Tầng (Right Stack Cards) */
  .bento-stack-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
  }

  .bento-stack-col.is-single-side {
    justify-content: flex-start;
  }

  .bento-stack-col.is-single-side .bento-side-card {
    flex: 0 0 auto;
    min-height: 220px;
  }

  .bento-side-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid var(--hp-border);
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(20, 26, 62, 0.04);
    display: flex;
    flex: 1;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    text-decoration: none;
    color: inherit;
    transform: none;
  }

  .bento-side-card:hover {
    transform: none;
    border-color: #94a3b8;
    box-shadow: 0 10px 24px rgba(20, 26, 62, 0.07), 0 3px 8px rgba(20, 26, 62, 0.03);
  }

  .bento-side-media {
    position: relative;
    width: 180px;
    min-width: 180px;
    overflow: hidden;
    background: var(--hp-navy);
  }

  .bento-side-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  .bento-side-card:hover .bento-side-img {
    transform: scale(1.03);
  }

  .bento-side-content {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
  }

  .bento-side-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--hp-muted);
    margin-bottom: 6px;
  }

  .bento-side-cat-pill {
    color: var(--hp-gold-dark);
    font-weight: 600;
    font-size: 0.78rem;
  }

  .bento-side-title {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--hp-navy);
    line-height: 1.45;
    margin: 6px 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
  }

  .bento-side-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
  }

  .bento-side-card:hover .bento-side-title,
  .bento-side-card:hover .bento-side-title a {
    color: #0b7294;
  }

  .bento-side-excerpt {
    font-size: 0.86rem;
    color: var(--hp-muted);
    line-height: 1.5;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .bento-side-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    color: var(--hp-muted);
    border-top: 1px dashed var(--hp-border);
    padding-top: 10px;
  }

  .bento-side-read-btn {
    color: var(--hp-navy);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.86rem;
    transition: color 0.2s ease;
  }

  .bento-side-card:hover .bento-side-read-btn {
    color: var(--hp-gold-rich);
  }

  .bento-side-read-btn i {
    transition: transform 0.2s ease;
  }

  .bento-side-card:hover .bento-side-read-btn i {
    transform: translateX(4px);
  }

  .bento-side-attach-tag {
    color: #dc2626;
    font-weight: 600;
    font-size: 0.82rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: opacity 0.2s ease;
  }

  .bento-side-attach-tag:hover {
    opacity: 0.8;
    text-decoration: underline;
  }

  /* Fallback Đồ Hoạ Gradient (Khi bài viết không có ảnh) */
  .bento-pattern-bg {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #141a3e 0%, #1e2756 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    position: relative;
    overflow: hidden;
  }

  .bento-pattern-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 30%, rgba(245, 158, 11, 0.25) 0%, transparent 45%),
                      radial-gradient(circle at 80% 80%, rgba(11, 114, 148, 0.3) 0%, transparent 45%);
  }

  .bento-pattern-icon {
    font-size: 2.2rem;
    color: var(--hp-gold-bright);
    margin-bottom: 4px;
    position: relative;
    z-index: 1;
  }

  .bento-pattern-label {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 1;
  }
}

/* --- ปุ่มเส้นขอบ (ใช้ร่วมหลายส่วน) --- */
.church-btn-outline-navy {
  border-radius: 2px;
  border: 1px solid var(--hp-border);
  color: var(--hp-navy);
  background: var(--hp-white);
  font-weight: 500;
  font-size: 0.92rem;
  padding: 12px 30px;
}

.church-btn-outline-navy:hover {
  border-color: var(--hp-gold-dark);
  color: var(--hp-gold-dark);
  background: var(--hp-white);
}

/* ==========================================================
   8. เอกสารดาวน์โหลด
========================================================== */
.church-download-card {
  background: var(--hp-white);
  border: 1px solid var(--hp-border);
  border-radius: 3px;
  box-shadow: 0 4px 16px rgba(20, 26, 62, 0.04);
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.church-download-card:hover {
  box-shadow: 0 16px 38px rgba(20, 26, 62, 0.09);
  transform: translateY(-2px);
  border-color: var(--hp-border);
}

.church-download-icon {
  border-radius: 2px;
  border: 1px solid var(--hp-pink-soft);
  background: radial-gradient(circle at 50% 35%, rgba(255, 55, 255, 0.10), transparent 70%);
  color: var(--hp-gold-dark);
}

.church-download-cat-badge {
  border-radius: 2px;
  background: var(--hp-gold-pale);
  color: var(--hp-gold-dark);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.church-download-date {
  color: var(--hp-muted);
  font-size: 0.78rem;
  font-weight: 400;
}

.church-download-card-title {
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--hp-navy);
}

.church-btn-download {
  border-radius: 2px;
  background: linear-gradient(135deg, var(--hp-gold), var(--hp-gold-dark));
  color: #ffffff;
  border: 1px solid var(--hp-gold-bright);
  font-weight: 600;
  font-size: 0.86rem;
}

.church-btn-cat-link {
  border-radius: 0;
  color: var(--hp-muted);
  font-size: 0.84rem;
  border-bottom: 1px solid transparent;
}

.church-btn-cat-link:hover {
  color: var(--hp-gold-dark);
  border-bottom-color: rgba(180, 83, 9, 0.4);
}

/* ==========================================================
   9. ติดต่อ + แบบฟอร์ม
========================================================== */
.church-info-card {
  background: var(--hp-white);
  border: 1px solid var(--hp-border);
  border-radius: 3px;
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.church-info-card:hover {
  border-color: var(--hp-border-gold);
  box-shadow: 0 8px 20px rgba(20, 26, 62, 0.06);
}

.church-info-card > i {
  color: var(--hp-gold-dark);
}

.church-info-card h6 {
  color: var(--hp-navy);
  font-weight: 600;
  font-size: 0.93rem;
}

.church-info-card p {
  color: var(--hp-body);
  font-size: 0.9rem;
  font-weight: 400;
}

.church-btn-call {
  border-radius: 2px;
  background: linear-gradient(135deg, var(--hp-gold), var(--hp-gold-dark));
  color: #ffffff;
  font-weight: 600;
  border: 1px solid var(--hp-gold-bright);
  box-shadow: 0 8px 22px rgba(180, 83, 9, 0.28);
}

.church-map-card {
  border-radius: 3px;
  border: 1px solid var(--hp-pink-soft);
  box-shadow: 0 12px 30px rgba(20, 26, 62, 0.08);
  position: relative;
}

.church-map-link {
  border-radius: 0;
  background: var(--hp-white);
  color: var(--hp-navy);
  font-weight: 500;
  border-top: 1px solid var(--hp-border);
}

.church-social-tile {
  border-radius: 2px;
  border: 1px solid var(--hp-border);
  background: var(--hp-white);
  color: var(--hp-navy);
  font-weight: 500;
  font-size: 0.87rem;
}

.church-social-tile:hover {
  border-color: var(--hp-gold);
  color: var(--hp-gold-dark);
}

.church-contact-form-wrapper {
  background: var(--hp-white);
  border: 1px solid var(--hp-border);
  border-radius: 3px;
  box-shadow: 0 18px 46px rgba(20, 26, 62, 0.08);
  position: relative;
}

.church-contact-form-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 3px;
  background: linear-gradient(90deg, var(--hp-gold-dark), var(--hp-gold-bright), var(--hp-gold-dark));
  border-radius: 0;
}

.church-form-title {
  font-size: 1.28rem;
  font-weight: 600;
  color: var(--hp-navy);
}

.church-form-subtitle {
  color: var(--hp-muted);
  font-size: 0.88rem;
  font-weight: 400;
}

.church-contact-form-wrapper .form-control,
.church-contact-form-wrapper .input-group-text {
  border-radius: 2px;
  border: 1px solid var(--hp-border);
  font-family: inherit;
  font-size: 0.93rem;
  font-weight: 400;
}

.church-contact-form-wrapper .input-group-text {
  background: var(--hp-canvas);
  color: var(--hp-muted);
}

.church-contact-form-wrapper .form-control:focus {
  border-color: var(--hp-gold);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.12);
  background: var(--hp-white);
}

.church-contact-form-wrapper .church-submit-btn {
  border-radius: 2px;
  background: linear-gradient(135deg, var(--hp-gold), var(--hp-gold-dark));
  border: 1px solid var(--hp-gold-bright);
  color: #ffffff;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ==========================================================
   9b. การผสานจาก home_preview.html — เฉพาะเดสก์ท็อป (>= 992px)
   ทั้งบล็อกอยู่ใน media query เดียว เพื่อไม่แตะผังจอเล็กเลย
========================================================== */
@media (min-width: 992px) {
  /* --- แถบพระวจนะ: ทองอ่อน + ดอกบัวล้านนา + ดาวซิ่นไส้ไก่ + วงแหวนสองข้าง --- */
  .church-verse-band {
    position: relative;
    padding: 62px 0;
    text-align: center;
    overflow: hidden;
    background-color: var(--hp-gold-faint);
    background-image:
      var(--hp-saikeaw),
      var(--hp-lotus-xl),
      linear-gradient(135deg, var(--hp-gold-faint) 0%, var(--hp-gold-pale) 55%, var(--hp-gold-faint) 100%);
    background-repeat: repeat-x, no-repeat, no-repeat;
    background-position: center bottom, center center, 0 0;
    background-size: 24px 10px, 340px 340px, 100% 100%;
    border-top: 1px solid var(--hp-border-gold);
    border-bottom: 1px solid var(--hp-border-gold);
  }

  .church-verse-band::before,
  .church-verse-band::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 220px;
    height: 220px;
    border: 1px solid rgba(217, 119, 6, 0.15);
    border-radius: 50%;
    transform: translateY(-50%);
    pointer-events: none;
  }

  .church-verse-band::before { left: -80px; }
  .church-verse-band::after { right: -80px; }

  .church-verse-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    color: var(--hp-gold-dark);
  }

  .church-verse-ornament .ln {
    width: 110px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(180, 83, 9, 0.55));
  }

  .church-verse-ornament .ln.r {
    background: linear-gradient(90deg, rgba(180, 83, 9, 0.55), transparent);
  }

  /* กางเขนล้านนา (วาดตาม home_preview.html) แทนไอคอนฟอนต์ */
  .church-verse-cross {
    width: 18px;
    height: 24px;
    flex-shrink: 0;
  }

  .church-verse-text {
    font-size: clamp(1.4rem, 3.4vw, 2.1rem);
    font-weight: 600;
    color: var(--hp-navy);
    line-height: 1.5;
    margin: 0 0 14px;
  }

  .church-verse-ref {
    color: var(--hp-gold-dark);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    margin: 0;
  }

  /* --- เครือข่ายพันธกิจ 8 จังหวัด --- */
  .church-network-section {
    padding: 84px 0;
    background: linear-gradient(180deg, var(--hp-canvas) 0%, var(--hp-white) 100%);
  }

  .church-network-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
  }

  .church-network-lead {
    font-weight: 400;
    color: var(--hp-body);
    margin-bottom: 0;
  }

  .church-province-list {
    margin: 26px 0 18px;
    border-top: 1px solid var(--hp-border);
  }

  .church-province-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 10px;
    border-bottom: 1px solid var(--hp-border);
    transition: background 0.35s ease, padding-left 0.35s ease;
  }

  .church-province-row:hover {
    background: var(--hp-gold-pale);
    padding-left: 16px;
  }

  .church-province-name {
    display: flex;
    align-items: center;
    gap: 14px;
    font-weight: 500;
    color: var(--hp-navy);
  }

  .church-province-name i {
    font-size: 15px;
    color: var(--hp-gold-dark);
    opacity: 0.75;
  }

  .church-province-count {
    color: var(--hp-gold-dark);
    font-weight: 600;
    font-size: 1.05rem;
  }

  .church-province-count small {
    color: var(--hp-muted);
    font-weight: 400;
    font-size: 0.76rem;
    margin-left: 5px;
  }

  .church-network-note {
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--hp-muted);
    margin-bottom: 24px;
  }

  .church-network-map {
    position: relative;
    padding: 9px;
    border-radius: 3px;
    overflow: hidden;
    background: var(--hp-white);
    border: 1px solid var(--hp-border);
    box-shadow: 0 22px 50px rgba(20, 26, 62, 0.12);
  }

  .church-network-map::after {
    content: "";
    position: absolute;
    inset: 5px;
    border: 1px solid var(--hp-pink-soft);
    pointer-events: none;
  }

  .church-network-map iframe {
    display: block;
    width: 100%;
    height: 340px;
    border: 0;
  }


  /* --- ตัวเลขวิ่ง: ล็อกความกว้างหลักให้ไม่กระตุกตอนนับ --- */
  .church-profile-section .church-stat-num { font-variant-numeric: tabular-nums; }
}

/* ==========================================================
   9c. ĐỒNG BỘ BỐ CỤC + BANNER VỚI home_preview.html (>= 992px)
   - Thứ tự section sắp lại bằng flex order => DOM giữ nguyên,
     mobile vẫn chạy đúng thứ tự cũ
========================================================== */
@media (min-width: 992px) {
  /* --- Thứ tự section theo preview --- */
  main.main {
    display: flex;
    flex-direction: column;
  }

  .cct-hero-viewport,
  #hero-desktop-fold { order: 1; }
  .cct-sacred-video-section,
  #video-showcase { order: 2; }
  .church-intro-section,
  #intro { order: 3; }
  .church-profile-section { order: 4; }
  .church-verse-band { order: 5; }
  .church-network-section { order: 6; }
  .church-policy-section { order: 7; }
  .church-downloads-section { order: 8; }
  .church-news-section { order: 9; }
  .church-contact-section { order: 10; }

  /* --- HERO: 100vh viewport slider minus header --- */
  .church-hero-section {
    height: calc(100vh - 116px);
    min-height: calc(100vh - 116px);
    max-height: calc(100vh - 116px);
    padding: 0;
  }

  /* Nhịp dọc cho khối nội dung: banner cao 94vh nên mỗi dòng cần khoảng thở riêng */
  .church-hero-badge {
    margin-bottom: 36px;
  }

  .church-hero-title {
    margin-bottom: 40px;
  }

  .church-hero-title h1 {
    font-size: clamp(2.6rem, 6.5vw, 4.6rem);
    font-weight: 700;
    margin-bottom: 20px;
  }

  .church-hero-title h3 {
    font-size: clamp(1.3rem, 3vw, 1.9rem);
    font-weight: 600;
    margin-bottom: 16px;
  }

  .church-hero-title h2 {
    font-size: clamp(1rem, 2.2vw, 1.3rem);
    font-weight: 400;
    letter-spacing: 0.12em;
    margin-bottom: 0;
  }

  /* Câu Kinh Thánh: hai gạch vàng hai bên */
  .church-hero-desc {
    position: relative;
    max-width: 660px;
    margin: 0 auto 56px;
    padding: 0 60px;
    font-size: 1.18rem;
    font-weight: 400;
    line-height: 1.8;
  }

  .church-hero-desc::before,
  .church-hero-desc::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 34px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.8));
  }

  .church-hero-desc::before { left: 0; }

  .church-hero-desc::after {
    right: 0;
    transform: scaleX(-1);
  }

  /* 2 CTA trong banner: rộng bằng nhau + luôn cùng 1 hàng (đồng bộ mọi tầng).
     flex-basis 0 + grow 1 => chia đôi chính xác; max-width 520px để không
     kéo giãn hết bề ngang container. */
  .church-hero-actions {
    flex-wrap: nowrap;
    max-width: 520px;
    margin: 0 auto;
  }

  .church-hero-actions .church-btn-gold,
  .church-hero-actions .church-btn-outline {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    padding: 13px 18px;
    white-space: normal;
    text-align: center;
    align-self: stretch;
  }

  /* Gợi ý cuộn xuống */
  .church-hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    letter-spacing: 0.3em;
  }

  .church-hero-scroll::after {
    content: "";
    width: 1px;
    height: 44px;
    background: linear-gradient(180deg, var(--hp-gold), transparent);
    animation: hpScrollDrip 2.4s ease infinite;
  }

  @keyframes hpScrollDrip {
    0% { transform: scaleY(0); transform-origin: top; }
    55% { transform: scaleY(1); transform-origin: top; }
    100% { transform: scaleY(0); transform-origin: bottom; }
  }

  /* --- STATS BAND: icon trên, số lớn, vạch chia gradient --- */
  .church-stat-icon {
    justify-content: center;
    color: var(--hp-gold-bright);
    font-size: 25px;
    line-height: 1;
    margin-bottom: 12px;
    transition: transform 0.45s ease;
  }

  .church-stat-item:hover .church-stat-icon { transform: translateY(-3px); }

  .church-profile-section .church-stat-num {
    font-size: clamp(2.4rem, 5.5vw, 3.6rem);
  }

  .church-profile-section .row > div .church-stat-item {
    position: relative;
    border-right: 0;
  }

  .church-profile-section .row > div:not(:last-child) .church-stat-item::after {
    content: "";
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(251, 191, 36, 0.34), transparent);
  }

  /* --- Mạng lưới: bản đồ cao bằng cột danh sách tỉnh --- */
  .church-network-grid { align-items: stretch; }

  .church-network-map {
    display: flex;
    flex-direction: column;
  }

  .church-network-map iframe {
    flex: 1;
    min-height: 340px;
    height: auto;
  }

  /* --- Thẻ ค่านิยมหลัก: quote cỡ lớn, căn giữa, có dấu ✦ như preview --- */
  .church-pillar-card .church-pillar-body.fst-italic {
    color: var(--hp-gold-dark);
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1.9;
    text-align: center;
    margin-top: 6px;
  }

  .church-pillar-card .church-pillar-body.fst-italic::after {
    content: "✦";
    display: block;
    margin-top: 12px;
    color: var(--hp-gold);
    font-style: normal;
    font-size: 0.9rem;
  }

  /* --- Liên hệ: iframe bản đồ đã ẩn (chỉ còn 1 bản đồ ở khối mạng lưới),
     nên thẻ bản đồ thu về đúng một dải nút "นำทาง" --- */
  .church-map-card {
    box-shadow: none;
    border-color: var(--hp-border);
  }

  .church-map-card .church-map-link {
    border-top: 0;
  }

  /* Cột thông tin không bị kéo cao bằng form (Bootstrap .align-items-stretch
     dùng !important nên phải can thiệp ở cấp từng cột bằng align-self) */
  .church-contact-section .row > .col-lg-6:first-child {
    align-self: flex-start;
  }

  /* Nút gọi: theme-modern khóa bản xanh lá bằng selector có ID (#contact …),
     nên phải dùng đúng ID để giữ tông vàng của skin */
  #contact .church-btn-call {
    background: linear-gradient(135deg, var(--hp-gold), var(--hp-gold-rich));
    border: 1px solid var(--hp-gold-bright);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(180, 83, 9, 0.32);
  }

  #contact .church-btn-call:hover {
    background: linear-gradient(135deg, var(--hp-gold-bright), var(--hp-gold));
    box-shadow: 0 10px 28px rgba(180, 83, 9, 0.42);
    color: #ffffff;
    transform: translateY(-1px);
  }

  /* Nút viền navy: hover đổ nền vàng nhạt để thân nút không biến mất trên nền trắng */
  .church-btn-outline-navy:hover {
    background: var(--hp-gold-pale);
    border-color: var(--hp-gold-dark);
    color: var(--hp-gold-dark);
  }

  /* Nút tải tài liệu: cùng một công thức vàng với các nút vàng khác của skin */
  .church-download-card .church-btn-download {
    background: linear-gradient(135deg, var(--hp-gold), var(--hp-gold-rich));
    border: 1px solid var(--hp-gold-bright);
    box-shadow: 0 6px 20px rgba(180, 83, 9, 0.32);
  }

  .church-download-card .church-btn-download:hover {
    background: linear-gradient(135deg, var(--hp-gold-bright), var(--hp-gold));
    border-color: var(--hp-gold-bright);
    box-shadow: 0 10px 28px rgba(180, 83, 9, 0.42);
    transform: translateY(-1px);
  }

  /* Nút gửi form liên hệ: đồng bộ cùng công thức vàng với nút vàng chuẩn */
  .church-contact-form-wrapper .church-submit-btn {
    background: linear-gradient(135deg, var(--hp-gold), var(--hp-gold-rich));
    color: #ffffff;
  }

  .church-contact-form-wrapper .church-submit-btn:hover {
    background: linear-gradient(135deg, var(--hp-gold-bright), var(--hp-gold));
    box-shadow: 0 10px 28px rgba(180, 83, 9, 0.42);
    transform: translateY(-1px);
  }

}

@media (min-width: 992px) and (prefers-reduced-motion: reduce) {
  .church-hero-scroll::after { animation: none; }
}

/* ==========================================================
   9d. NHỊP NỀN GIỮA CÁC SECTION (>= 992px)
   Nhịp: giấy trắng (tài liệu) → xám lạnh (bài viết) → kem ấm (liên hệ)
   Hoạ tiết chỉ ở mức "thấy khi nhìn kỹ", không màu mè.
========================================================== */
@media (min-width: 992px) {
  /* 1. เอกสารดาวน์โหลด — giấy kem ấm, thẻ trắng nổi rõ */
  .church-downloads-section {
    background-color: var(--hp-ivory);
    background-image: none;
    border-top: 1px solid var(--hp-border);
    border-bottom: 1px solid var(--hp-border);
  }

  /* 2. ข่าวสาร — xám lạnh phẳng, tách khối rõ ràng */
  .church-news-section {
    background-color: var(--hp-canvas);
    background-image: none;
    border-bottom: 1px solid var(--hp-border);
  }

  /* 3. ติดต่อเรา — kem vàng nhạt ở trên, tan dần sang trắng để form nổi khối */
  .church-contact-section {
    background-color: var(--hp-gold-faint);
    background-image: linear-gradient(180deg, var(--hp-gold-faint) 0%, var(--hp-ivory) 45%, var(--hp-white) 100%);
    background-repeat: no-repeat;
    background-position: 0 0;
    background-size: 100% 100%;
    border-top: 1px solid var(--hp-border-gold);
  }
}

/* ==========================================================
   10. ปรับตามขนาดจอ
========================================================== */
@media (max-width: 991px) {
  .church-hero-section {
    height: calc(100svh - 60px);
    min-height: calc(100svh - 60px);
    max-height: calc(100svh - 60px);
    padding: 0;
  }
}

@media (min-width: 768.02px) and (max-width: 1199.98px) {
  .church-hero-section {
    height: calc(100svh - 70px);
    min-height: calc(100svh - 70px);
    max-height: calc(100svh - 70px);
    padding: 0;
  }
}

  .church-stat-item {
    border-right: 0;
    border-bottom: 1px solid rgba(251, 191, 36, 0.2);
    padding: 14px 10px;
  }

  .church-section-header {
    margin-bottom: 42px;
  }

@media (max-width: 575px) {
  .church-hero-desc {
    padding: 0 26px;
    font-size: 1.02rem;
  }

  .church-intro-section,
  .church-policy-section,
  .church-news-section,
  .church-downloads-section,
  .church-contact-section {
    padding: 60px 0;
  }

  .church-profile-section {
    padding: 56px 0 60px;
  }

  .church-scripture-box {
    padding: 34px 24px;
  }

  .church-section-tag::before,
  .church-section-tag::after {
    width: 22px;
  }

  .church-pillar-card {
    padding: 30px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .church-pillar-card,
  .church-news-card,
  .church-download-card,
  .church-info-card,
  .church-pillar-card:hover,
  .church-news-card:hover,
  .church-download-card:hover {
    transition: none;
    transform: none;
  }
}


/* ==========================================================
   V6 POLISH — hero depth, Thai typography, monogram, news, mobile verse
   ========================================================== */

/* 1. Hero: vignette 2 lớp để chữ tách khỏi ảnh nền rối */
.church-hero-overlay {
  background:
    radial-gradient(125% 95% at 50% 12%, rgba(11, 60, 90, 0.16) 0%, rgba(20, 26, 62, 0.52) 58%, rgba(16, 20, 46, 0.65) 100%),
    linear-gradient(180deg, rgba(20, 26, 62, 0.58) 0%, rgba(20, 26, 62, 0.42) 46%, rgba(11, 60, 90, 0.52) 100%);
}

.church-hero-section {
  background-position: center 22%;
}

/* 2. Tiêu đề hero: mở line-height cho dấu thanh tiếng Thái */
.church-hero-title h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.45rem);
  line-height: 1.36;
  letter-spacing: 0;
}

.church-hero-title .church-hero-sub {
  margin: 4px 0 2px;
  font-size: clamp(1.15rem, 2.5vw, 1.6rem);
  font-weight: 600;
  line-height: 1.5;
  color: var(--hp-gold-bright);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}

.church-hero-title .church-hero-welcome {
  margin: 0 0 8px;
  font-size: clamp(0.98rem, 1.9vw, 1.18rem);
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0.04em;
  color: #eaf5fc;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

/* 2b. Tiêu đề khối hồ sơ nay là h2 (đúng cấp bậc) — giữ nguyên nhịp cũ */
.church-profile-header h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.1rem);
  font-weight: 700;
  color: #f6f1e6;
  margin-bottom: 6px;
}


/* 4. Chỉ có 1 bài tin: thẻ dẫn rộng vừa phải, không còn khoảng trống lớn */
.hp-news-single > [class*="col-"] {
  width: min(100%, 940px);
}

/* (đã gỡ) .hp-verse-mobile — trùng nội dung với .church-scripture-box d-lg-none trong #policy */

/* Nhãn trong thẻ thông tin liên hệ: nay là h3 (trước là h6, gây nhảy 4 cấp heading) */
.church-info-card .church-info-card-label {
  color: var(--hp-navy);
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}


/* ==========================================================
   V7 — ติดต่อเรา: แผงข้อมูลเต็มความกว้าง (แทนคอลัมน์แบบฟอร์ม)
   Một tấm panel trắng, 3 cột thông tin ngăn bằng đường kẻ tóc,
   chân panel là nút gọi vàng + hai ô mạng xã hội.
   Toàn bộ dùng biến --hp-* của skin, không dùng !important.
========================================================== */
.hp-contact-panel {
  position: relative;
  background: var(--hp-white);
  border: 1px solid var(--hp-border);
  border-radius: 3px;
  padding: 38px 36px 28px;
  box-shadow: 0 18px 46px rgba(20, 26, 62, 0.07);
  overflow: hidden;
}

/* Bớt khoảng trống dưới tiêu đề khối (Bootstrap .mb-5 là !important, chỉ hạ được padding) */
#contact > .container.section-title {
  padding-bottom: 0;
}

/* Dải vàng mảnh ở mép trên — giữ nhịp trang trí của skin */
.hp-contact-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 28px;
  right: 28px;
  height: 3px;
  background: linear-gradient(90deg, var(--hp-gold-dark), var(--hp-gold-bright), var(--hp-gold-dark));
}

.hp-contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 1.2fr 1fr;
  align-items: start;
}

.hp-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 2px 28px;
  min-width: 0;
}

.hp-contact-item:first-child {
  padding-left: 0;
}

.hp-contact-item + .hp-contact-item {
  border-left: 1px solid var(--hp-border);
}

.hp-contact-icon {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--hp-gold-faint);
  border: 1px solid var(--hp-border-gold);
  color: var(--hp-gold-dark);
  font-size: 20px;
}

.hp-contact-text {
  min-width: 0;
}

.hp-contact-label {
  color: var(--hp-navy);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.hp-contact-value {
  color: var(--hp-body);
  font-size: 0.94rem;
  line-height: 1.65;
  margin-bottom: 0;
  text-wrap: pretty;
}

.hp-contact-value a {
  color: var(--hp-navy);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.hp-contact-value a:hover {
  color: var(--hp-gold-dark);
  border-bottom-color: var(--hp-border-gold);
}

.hp-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  color: var(--hp-gold-dark);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
}

.hp-contact-link:hover {
  color: var(--hp-navy);
}

.hp-contact-link i {
  font-size: 0.9rem;
}

.hp-contact-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--hp-border);
}

/* DB chưa nhập số điện thoại -> footer chỉ còn 2 ô mạng xã hội, canh giữa cho cân */
.hp-contact-foot.is-solo {
  justify-content: center;
}

.hp-contact-foot.is-solo .hp-contact-social {
  margin-left: 0;
}

/* theme-modern khóa .church-btn-call bằng selector có ID -> phải dùng ID để thắng */
#contact .hp-contact-foot .church-btn-call {
  margin-bottom: 0;
  padding-left: 28px;
  padding-right: 28px;
}

.hp-contact-social {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

.hp-contact-social .church-social-tile {
  min-width: 150px;
}

.hp-contact-social .church-social-tile i {
  color: inherit;
}

.hp-contact-social .church-social-tile.fb i {
  color: #1877f2;
}

.hp-contact-social .church-social-tile.yt i {
  color: #ef4444;
}

.hp-contact-social .church-social-tile.fb:hover i,
.hp-contact-social .church-social-tile.yt:hover i {
  color: #ffffff;
}

@media (max-width: 991px) {
  .hp-contact-panel {
    padding: 28px 20px 22px;
  }

  .hp-contact-panel::before {
    left: 20px;
    right: 20px;
  }

  .hp-contact-grid {
    grid-template-columns: 1fr;
  }

  .hp-contact-item {
    padding: 0;
  }

  .hp-contact-item + .hp-contact-item {
    border-left: 0;
    border-top: 1px solid var(--hp-border);
    margin-top: 18px;
    padding-top: 18px;
  }

  .hp-contact-icon {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
    font-size: 18px;
  }

  .hp-contact-label {
    font-size: 0.74rem;
  }

  .hp-contact-value {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .hp-contact-foot {
    margin-top: 22px;
    padding-top: 20px;
  }

  /* Trên mobile đã có 3 nút lối tắt (gọi / อีเมล / นำทาง) phía trên */
  #contact .hp-contact-foot .church-btn-call {
    display: none;
  }

  .hp-contact-social {
    width: 100%;
    margin-left: 0;
  }

  .hp-contact-social .church-social-tile {
    flex: 1;
    min-width: 0;
  }
}


/* ==========================================================
   V7 — เครือข่ายพันธกิจ: แถวจังหวัดกลายเป็นปุ่มเลือกจุดบนแผนที่
   Mỗi tỉnh ghim đúng 1 nhà thờ đại diện; bấm lại để về toàn cảnh.
========================================================== */
.church-network-section .church-province-row {
  width: 100%;
  margin: 0;
  padding: 13px 10px;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--hp-border);
  border-radius: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.church-network-section .church-province-row.is-static {
  cursor: default;
}

.church-network-section .church-province-row.is-active {
  background: var(--hp-gold-pale);
  padding-left: 16px;
}

.church-network-section .church-province-row.is-active .church-province-name {
  color: var(--hp-gold-dark);
}

.church-network-section .church-province-row.is-active .church-province-name i {
  opacity: 1;
}

.church-network-section .church-province-row:focus-visible {
  outline: 2px solid var(--hp-gold);
  outline-offset: -2px;
}

/* --- Chọn theo khu vực: hàng bấm được có mũi tên gợi ý, hàng đang chọn có thanh vàng bên trái --- */
.church-network-section .church-province-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.church-network-section .church-province-caret {
  font-size: 12px;
  color: var(--hp-gold-dark);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.church-network-section .church-province-row:hover .church-province-caret {
  opacity: 0.6;
  transform: translateX(0);
}

.church-network-section .church-province-row.is-active .church-province-caret {
  opacity: 1;
  transform: translateX(0);
}

.church-network-section .church-province-row.is-active {
  box-shadow: inset 3px 0 0 var(--hp-gold);
}

/* --- Cột bản đồ cao bằng đúng khối danh sách bên trái --- */
.church-network-section .church-network-grid {
  align-items: stretch;
}

.church-network-section .church-network-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.church-network-section .church-network-main .church-province-list {
  width: 100%;
}

.church-network-section .church-network-mapcol {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.church-network-section .church-network-map {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 340px;
}

.church-network-section .church-network-map iframe {
  flex: 1 1 auto;
  height: auto;
  min-height: 320px;
}

.church-network-map iframe {
  transition: opacity 0.25s ease;
}

.church-network-map.is-loading iframe {
  opacity: 0.35;
}

.church-network-caption {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 14px;
  background: var(--hp-white);
  border: 1px solid var(--hp-border);
  border-radius: 3px;
  color: var(--hp-navy);
  font-size: 0.88rem;
  font-weight: 500;
}

.church-network-caption i {
  color: var(--hp-gold-dark);
  font-size: 15px;
}

.church-network-caption-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.church-network-caption-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  padding-left: 12px;
  color: var(--hp-gold-dark);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.church-network-caption-link:hover {
  color: var(--hp-navy);
}

/* ==========================================================
   11. HOA VĂN NỀN & VIỀN — 12 MẪU SVG CHUẨN / VÀNG ÁNH KIM HOÀNG GIA
   (2026-11-12, theo lệnh Sếp)
   - Nguồn DUY NHẤT: /assets/img/motifs/hoavan-01.svg .. hoavan-12.svg
   - LOẠI TRỪ TUYỆT ĐỐI: church-verse-band (sen Lanna giữ nguyên).
   - Viền: bé (20px desktop / 16px mobile), repeat-x, lặp liên tục.
   - Watermark: nền chìm theo ngưỡng trắng <=2.5% / kem 2-6% / navy 8-9%.
   - Cấu trúc: ::before nền + ::after viền + isolation:isolate + nội dung z-index:1.
   - ZERO !important.
========================================================== */

.hp-motif-surface {
  position: relative;
  isolation: isolate;
}

.hp-motif-surface::before,
.hp-motif-surface::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

/* Nền watermark chìm */
.hp-motif-surface::before {
  inset: 0;
  z-index: 0;
  background-repeat: repeat;
  background-position: center;
  background-size: var(--hp-motif-tile) var(--hp-motif-tile);
  opacity: var(--hp-motif-ink-light);
}

/* Dải viền nhỏ lặp ở đỉnh — mẫu 06 (thập tự bậc thang) */
.hp-motif-surface::after {
  top: 0;
  left: 0;
  right: 0;
  height: var(--hp-motif-border-h);
  z-index: 1;
  background-image: var(--hp-motif-06);
  background-repeat: repeat-x;
  background-position: center top;
  background-size: auto var(--hp-motif-border-h);
  opacity: var(--hp-motif-border-ink);
}

.hp-motif-surface > .container,
.hp-motif-surface > .sacred-video-inner {
  position: relative;
  z-index: 1;
}

/* --- Phân bổ 12 mẫu cho từng section --- */
/* Mỗi nền dùng 2 mẫu: mẫu chính lặp đều + mẫu phụ lớn neo một góc.
   Tất cả 12 mẫu đều có mặt; nền sáng dùng opacity --hp-motif-ink-light. */
.cct-sacred-video-section.hp-motif-surface::before {
  background-image: var(--hp-motif-10), var(--hp-motif-03);
  background-size: var(--hp-motif-tile) var(--hp-motif-tile), 420px 420px;
  background-position: center, right -90px top -90px;
  background-repeat: repeat, no-repeat;
}
.church-intro-section.hp-motif-surface::before {
  background-image: var(--hp-motif-01), var(--hp-motif-10);
  background-size: var(--hp-motif-tile) var(--hp-motif-tile), 440px 440px;
  background-position: center, right -110px bottom -110px;
  background-repeat: repeat, no-repeat;
}
.church-policy-section.hp-motif-surface::before {
  background-image: var(--hp-motif-07), var(--hp-motif-01);
  background-size: var(--hp-motif-tile) var(--hp-motif-tile), 380px 380px;
  background-position: center, left -90px top -80px;
  background-repeat: repeat, no-repeat;
  opacity: var(--hp-motif-ink-cream);
}
.church-news-section.hp-motif-surface::before {
  background-image: var(--hp-motif-03), var(--hp-motif-12);
  background-size: var(--hp-motif-tile) var(--hp-motif-tile), 420px 420px;
  background-position: center, left -110px top -70px;
  background-repeat: repeat, no-repeat;
}
.church-network-section.hp-motif-surface::before {
  background-image: var(--hp-motif-05), var(--hp-motif-09);
  background-size: var(--hp-motif-tile) var(--hp-motif-tile), 380px 380px;
  background-position: center, right -90px bottom -90px;
  background-repeat: repeat, no-repeat;
}
.church-downloads-section.hp-motif-surface::before {
  background-image: var(--hp-motif-09), var(--hp-motif-05);
  background-size: var(--hp-motif-tile) var(--hp-motif-tile), 420px 420px;
  background-position: center, right -110px top -80px;
  background-repeat: repeat, no-repeat;
}
.church-contact-section.hp-motif-surface::before {
  background-image: var(--hp-motif-08), var(--hp-motif-07);
  background-size: var(--hp-motif-tile) var(--hp-motif-tile), 400px 400px;
  background-position: center, left -100px bottom -100px;
  background-repeat: repeat, no-repeat;
}
.hp-explore-section.hp-motif-surface::before {
  background-image: var(--hp-motif-11), var(--hp-motif-03);
  background-size: var(--hp-motif-tile-sm) var(--hp-motif-tile-sm), 300px 300px;
  background-position: center, right -70px bottom -70px;
  background-repeat: repeat, no-repeat;
}
.church-profile-section.hp-motif-surface::before    { content: none; } /* dùng lớp đứng yên riêng bên dưới */

/* Khối đứng yên: bỏ gradient nền (gradient trôi theo khối tạo cảm giác "nền trôi"),
   chỉ giữ navy đơn + hoa văn neo viewport → toàn bộ nền đứng yên. */
.church-profile-section.hp-motif-fixed {
  background-image: none;
}

/* Viền đỉnh đổi mẫu ở vài khối để có nhịp, vẫn bé và lặp */
.cct-sacred-video-section.hp-motif-surface::after,
.church-network-section.hp-motif-surface::after  { background-image: var(--hp-motif-02); opacity: 0.42; }
.church-downloads-section.hp-motif-surface::after { background-image: var(--hp-motif-09); }
.church-contact-section.hp-motif-surface::after    { background-image: var(--hp-motif-08); opacity: 0.45; }

@media (min-width: 992px) {
  .church-news-section.hp-motif-surface,
  .church-downloads-section.hp-motif-surface {
    padding-top: 108px;
  }
}

/* --- Nền phía sau khối CHÀO MỪNG + BANNER SLIDE (desktop) --- */
.cct-hero-viewport.hp-hero-motif {
  isolation: isolate;
}

.cct-hero-viewport.hp-hero-motif::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: var(--hp-motif-04);
  background-repeat: repeat;
  background-position: center;
  background-size: 200px 200px;
  opacity: var(--hp-motif-ink-navy);
}

.cct-hero-viewport.hp-hero-motif::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--hp-motif-border-h);
  z-index: 1;
  pointer-events: none;
  background-image: var(--hp-motif-06);
  background-repeat: repeat-x;
  background-size: auto var(--hp-motif-border-h);
  opacity: 0.4;
}

.cct-intro-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: var(--hp-motif-02);
  background-repeat: repeat;
  background-size: 128px 128px;
  opacity: 0.055;
}

.cct-intro-section > .container {
  position: relative;
  z-index: 1;
}

.cct-banner-slider::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: var(--hp-motif-04);
  background-repeat: repeat;
  background-size: 200px 200px;
  opacity: 0.1;
}

.cct-banner-slider::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 0;
  height: 16px;
  z-index: 1;
  pointer-events: none;
  background-image: var(--hp-motif-06);
  background-repeat: repeat-x;
  background-size: auto 16px;
  opacity: 0.42;
}

/* --- Hero mobile: cùng bộ mẫu, nền phía sau nội dung --- */
.church-hero-section.hp-hero-motif-m::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: var(--hp-motif-02);
  background-repeat: repeat;
  background-size: 120px 120px;
  opacity: 0.07;
}

.church-hero-section.hp-hero-motif-m::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 14px;
  z-index: 2;
  pointer-events: none;
  background-image: var(--hp-motif-06);
  background-repeat: repeat-x;
  background-size: auto 14px;
  opacity: 0.4;
}

/* --- ข้อมูลและเครือข่ายคริสตจักรภาคที่ 20:
   nền ĐỨNG YÊN một chỗ khi cuộn, nội dung lướt qua.
   Layer sticky cao 0 + clip-path trên section → bám viewport, chạy cả desktop lẫn mobile. */
/* --- ข้อมูลและเครือข่ายคริสตจักรภาคที่ 20:
   nền ĐỨNG YÊN một chỗ khi cuộn, nội dung lướt qua.
   Plane phủ đúng khối; JS (cuối index.php) bù background-positionY đúng bằng
   quãng khối đã trôi khỏi đỉnh viewport → hoa văn neo cố định trên màn hình,
   chạy được cả desktop lẫn mobile (không phụ thuộc background-attachment: fixed). */
.hp-fixed-motif {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hp-fixed-motif__plane {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  background-image: var(--hp-motif-12), var(--hp-motif-05);
  background-repeat: repeat, no-repeat;
  background-position: center top, right -110px bottom -110px;
  background-size: 160px 160px, 420px 420px;
  opacity: var(--hp-motif-ink-navy);
}
