/**
 * CCT PAK 20 — HOMEPAGE MOBILE SHEET (≤ 991px)
 *
 * Chỉ áp dụng cho trang chủ trên điện thoại. Desktop không bị ảnh hưởng:
 * file được nạp với media="(max-width: 991px)" và toàn bộ rule nằm trong
 * @media tương ứng.
 *
 * Nguyên tắc:
 *  - ZERO !important (tăng độ đặc hiệu bằng tiền tố main.main)
 *  - Không đổi màu thương hiệu, chỉ đổi nhịp dọc / bố cục / kích thước chạm
 *  - Mục tiêu: mọi vùng chạm ≥ 44px, chữ Thái line-height ≥ 1.4
 */

@media (max-width: 991px) {

  /* ==========================================================
     1. NHỊP DỌC & TYPOGRAPHY CHUNG
  ========================================================== */
  main.main .church-intro-section,
  main.main .church-policy-section,
  main.main .church-news-section,
  main.main .church-downloads-section,
  main.main .church-contact-section {
    padding: 44px 0;
  }

  main.main .church-profile-section {
    padding: 36px 0 40px;
  }

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

  main.main .church-section-tag {
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    gap: 8px;
  }

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

  main.main .church-section-tag i {
    font-size: 13px;
  }

  main.main .church-section-title {
    font-size: 1.28rem;
    line-height: 1.45;
  }

  main.main .church-section-title::after {
    width: 44px;
    margin-top: 10px;
  }

  main.main .church-section-subtitle {
    font-size: 0.85rem;
    line-height: 1.65;
    margin-top: 8px;
  }

  main.main .church-divider {
    width: 120px;
    margin-top: 14px;
  }

  main.main a:focus,
  main.main a:focus-visible,
  main.main button:focus,
  main.main button:focus-visible {
    outline: none;
    box-shadow: none;
  }

  /* ==========================================================
     2. HERO — MOBILE LIỀN MẠCH, FULL VIỀN 100%, ZERO BO TRÒN, NỀN AMBIENT TỰ ĐỔI MÀU THEO SLIDE & ZOOM 10%
  ========================================================== */
  main.main .church-hero-section {
    height: auto;
    min-height: unset;
    max-height: unset;
    padding: 0;
    margin: 0;
    width: 100%;
    background-color: var(--hp-navy-dark, #0b0f26);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow: visible;
    border-radius: 0;
  }

  @media (min-width: 768.02px) {
    main.main .church-hero-section {
      height: auto;
      min-height: unset;
      max-height: unset;
    }
  }

  /* 1. KHỐI NỘI DUNG ĐỘC LẬP PHÍA TRÊN (Full viền 100%, phẳng hoàn toàn, nền Ambient mờ đồng bộ) */
  main.main .hero-floating-content {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 24px 20px 20px 20px;
    border-radius: 0;
    background: transparent;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: none;
    z-index: 2;
    text-align: center;
    overflow: hidden;
  }

  /* Kích hoạt Ambient Canvas mờ đồng bộ màu sắc theo ảnh slide */
  main.main .hero-ambient-layer {
    display: block;
    position: absolute;
    inset: -25px;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
  }

  main.main .ambient-item {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 25%;
    filter: blur(34px) saturate(190%) brightness(0.42);
    opacity: 0;
    transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1.18);
  }

  main.main .ambient-item.active {
    opacity: 1;
  }

  main.main .hero-ambient-layer::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      180deg,
      rgba(11, 15, 38, 0.75) 0%,
      rgba(11, 15, 38, 0.42) 50%,
      rgba(11, 15, 38, 0.8) 100%
    );
    z-index: 2;
  }

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

  /* Hoa văn 02 nằm TRÊN lớp ambient mờ, DƯỚI nội dung chữ (z-index 2 / 3).
     Nếu chỉ đặt ở ::before của section thì lớp ambient z-index 1 che mất hoàn toàn. */
  main.main .hero-floating-content::before {
    content: "";
    display: block;
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background-image: var(--hp-motif-02);
    background-repeat: repeat;
    background-size: 92px 92px;
    opacity: 0.06;
  }

  /* Đường chỉ viền rực sáng tiếp giáp giữa khối chữ và khối ảnh slide */
  main.main .hero-floating-content::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
      90deg, 
      rgba(255, 255, 255, 0.04) 0%, 
      rgba(251, 191, 36, 0.75) 50%, 
      rgba(255, 255, 255, 0.04) 100%
    );
    box-shadow: 0 0 8px rgba(251, 191, 36, 0.4);
    z-index: 5;
  }

  main.main .glass-pill {
    font-size: 11px;
    padding: 3px 10px;
    margin-bottom: 8px;
    border-radius: 0;
    border: 1px solid rgba(251, 191, 36, 0.5);
    background: rgba(251, 191, 36, 0.15);
    box-shadow: none;
  }

  main.main .hero-floating-content h1,
  main.main .floating-h1 {
    font-size: clamp(1.4rem, 5.2vw, 1.75rem);
    line-height: 1.25;
    margin-bottom: 3px;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
  }

  main.main .hero-floating-content h3,
  main.main .hero-floating-content .church-hero-sub,
  main.main .floating-sub {
    font-size: clamp(0.88rem, 3.5vw, 1.02rem);
    line-height: 1.4;
    margin-bottom: 3px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
  }

  main.main .hero-floating-content h2,
  main.main .hero-floating-content .church-hero-welcome,
  main.main .floating-welcome {
    font-size: clamp(0.8rem, 3.2vw, 0.92rem);
    line-height: 1.4;
    margin-bottom: 0;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
  }

  /* 2. KHỐI ẢNH SLIDE NẰM PHÍA DƯỚI (Full viền 100%, phẳng, zoom 10% tỉ lệ 16:10 xén 5% mỗi bên trái phải) */
  main.main .hero-fullscreen-slide-wrap {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 10;
    height: auto;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
    overflow: hidden;
    z-index: 1;
    background-color: #000000;
  }

  main.main .hero-fullscreen-slide-wrap::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(180deg, rgba(11, 15, 38, 0.35) 0%, transparent 100%);
    z-index: 3;
    pointer-events: none;
  }

  main.main .hero-fullscreen-cinema {
    width: 100%;
    height: 100%;
    border-radius: 0;
  }

  main.main .slide-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
  }

  main.main .slide-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    border-radius: 0;
  }

  main.main .slide-dots-fullwidth {
    bottom: 10px;
    gap: 6px;
  }

  main.main .slide-dot {
    width: 22px;
    height: 3px;
    border-radius: 0;
  }

  main.main .slide-dot.active {
    width: 36px;
  }

  /* ==========================================================
     3. DẢI SỐ LIỆU — 2×2 + ô 6,000 trải hết chiều ngang
  ========================================================== */
  main.main .church-profile-header {
    margin-bottom: 22px;
  }

  main.main .church-profile-header h3 {
    font-size: 1.22rem;
  }

  main.main .church-profile-header p {
    font-size: 0.82rem;
  }

  main.main .church-profile-section .row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Bỏ khung thẻ -> cần khoảng thở dọc rộng hơn để các ô không dính vào nhau */
    gap: 30px 12px;
    margin: 0;
  }

  main.main .church-profile-section .row > div {
    width: auto;
    max-width: none;
    padding: 0;
    margin: 0;
  }

  main.main .church-profile-section .row > div:nth-child(5) {
    grid-column: 1 / -1;
  }

  /* Số liệu trần như desktop: không viền, không nền thẻ, không bo góc.
     Đặt border: 0 tường minh vì page-home.css có vạch border-bottom cho <=991px. */
  main.main .church-stat-item {
    height: 100%;
    padding: 0 6px;
    border: 0;
    border-radius: 0;
    background: none;
    text-align: center;
  }

  main.main .church-stat-num {
    font-size: 1.9rem;
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 4px;
  }

  main.main .church-stat-name {
    font-size: 0.78rem;
    line-height: 1.35;
  }

  /* ==========================================================
     4. ข่าวสาร — MẪU M1 (BENTO HYBRID MOBILE - ĐÃ DUYỆT)
     1 Hero Card lớn phía trên + 2 Mini Cards ngang phía dưới
     Không hover nhấp nhô (zero bounce), touch target >= 44px
  ========================================================== */
  main.main .church-news-mobile-view {
    width: 100%;
  }

  main.main .m1-news-wrapper {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
  }

  /* 4.1 Thẻ Hero Mobile */
  main.main .m1-hero-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid var(--hp-border, #e2e8f0);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transform: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }

  main.main .m1-hero-card:hover {
    transform: none;
    border-color: #cbd5e1;
  }

  main.main .m1-hero-card:active {
    background-color: #f8fafc;
    border-color: #cbd5e1;
    transform: none;
  }

  main.main .m1-hero-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--hp-navy, #141a3e);
    overflow: hidden;
  }

  main.main .m1-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  main.main .m1-hero-pattern-thumb {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #141a3e 0%, #1e2756 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hp-gold-bright, #fbbf24);
    font-size: 2.2rem;
  }

  main.main .m1-hero-cat-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(20, 26, 62, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
  }

  main.main .m1-hero-body {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
  }

  main.main .m1-hero-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--hp-muted, #64748b);
    margin-bottom: 8px;
  }

  main.main .m1-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
  }

  main.main .m1-meta-sep {
    color: #94a3b8;
    user-select: none;
  }

  main.main .m1-hero-title {
    font-size: 1.02rem;
    font-weight: 800;
    color: var(--hp-navy, #141a3e);
    line-height: 1.45;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  main.main .m1-hero-excerpt {
    font-size: 0.84rem;
    color: var(--hp-body, #334155);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: break-word;
    word-break: break-word;
    margin-bottom: 12px;
  }

  main.main .m1-hero-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--hp-border, #e2e8f0);
    padding-top: 10px;
    font-size: 0.82rem;
    min-height: 44px;
  }

  main.main .m1-read-cta {
    font-weight: 700;
    color: var(--hp-navy, #141a3e);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 44px;
  }

  main.main .m1-hero-attach-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.74rem;
    font-weight: 600;
    color: #1d4ed8;
    background: #eff6ff;
    padding: 3px 9px;
    border-radius: 4px;
    border: 1px solid #dbeafe;
  }

  /* 4.2 Cụm Thẻ Mini Card nằm ngang */
  main.main .m1-mini-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  main.main .m1-mini-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--hp-border, #e2e8f0);
    padding: 10px 12px;
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    align-items: center;
    min-height: 96px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
    transform: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }

  main.main .m1-mini-card:hover {
    transform: none;
    border-color: #cbd5e1;
  }

  main.main .m1-mini-card:active {
    background-color: #f8fafc;
    border-color: #cbd5e1;
    transform: none;
  }

  main.main .m1-mini-thumb {
    width: 76px;
    height: 76px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--hp-navy, #141a3e);
    flex-shrink: 0;
    display: block;
  }

  main.main .m1-mini-pattern-thumb {
    width: 76px;
    height: 76px;
    border-radius: 8px;
    background: linear-gradient(135deg, #141a3e 0%, #1e2756 100%);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hp-gold-bright, #fbbf24);
    font-size: 1.4rem;
  }

  main.main .m1-mini-content {
    flex-grow: 1;
    min-width: 0;
  }

  main.main .m1-mini-meta {
    font-size: 0.72rem;
    color: var(--hp-muted, #64748b);
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  main.main .m1-mini-cat {
    color: var(--hp-gold-dark, #b45309);
    font-weight: 700;
  }

  main.main .m1-mini-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--hp-navy, #141a3e);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: break-word;
    word-break: break-word;
    margin-bottom: 4px;
  }

  main.main .m1-mini-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #1d4ed8;
    background: #eff6ff;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid #dbeafe;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* Tương thích ngược nếu còn phần tử dùng class cũ */
  main.main .church-news-card {
    border-radius: 10px;
    border-left-color: var(--hp-gold-dark);
  }

  main.main .church-news-card-body {
    padding: 12px 14px;
  }

  main.main .church-news-card-title {
    font-size: 0.9rem;
    line-height: 1.45;
  }

  main.main .church-news-date-badge,
  main.main .church-attachment-pill {
    font-size: 10.5px;
    padding: 2px 7px;
  }

  main.main .church-news-section .text-center.mt-4 {
    margin-top: 18px;
  }

  /* ==========================================================
     5. แนะนำ + วิดีโอ (facade: แตะก่อนจึงโหลด YouTube)
  ========================================================== */
  main.main .church-intro-tag {
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    margin-bottom: 8px;
  }

  main.main .church-intro-heading {
    font-size: 1.18rem;
    line-height: 1.5;
    margin-bottom: 10px;
  }

  main.main .church-intro-text {
    font-size: 0.86rem;
    line-height: 1.75;
    margin-bottom: 16px;
  }

  main.main .church-intro-section .church-btn-gold {
    width: 100%;
    min-height: 48px;
  }

  /* ปุ่มรองซ้ำกับทางลัดด้านล่าง -> ซ่อนบนมือถือ */
  main.main .church-intro-section .btn-outline-secondary {
    display: none;
  }

  main.main .hp-video-facade {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    padding: 0;
    border: 0;
    border-radius: 10px;
    overflow: hidden;
    background: #0b1230;
    box-shadow: 0 14px 32px rgba(20, 26, 62, 0.18);
  }

  main.main .hp-video-facade img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  main.main .hp-video-facade::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 18, 48, 0.12), rgba(10, 18, 48, 0.55));
  }

  main.main .hp-video-play {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  main.main .hp-video-play span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: var(--hp-gold-dark);
    font-size: 24px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
  }

  main.main .hp-video-caption {
    margin: 8px 0 0;
    font-size: 11.5px;
    color: var(--hp-muted);
    text-align: center;
  }

  main.main .hp-video-embed {
    border-radius: 10px;
    overflow: hidden;
  }

  main.main .hp-video-embed iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
  }

  /* ==========================================================
     6. นโยบาย — ยุบเหลือพระวจนะ + ลิงก์ฉบับเต็ม
  ========================================================== */
  main.main .church-policy-section .row {
    display: none;
  }

  main.main .church-scripture-box {
    margin-bottom: 0;
    padding: 26px 20px;
  }

  main.main .church-scripture-icon {
    font-size: 24px;
    margin-bottom: 8px;
  }

  main.main .church-scripture-verse {
    font-size: 1.08rem;
    line-height: 1.55;
    margin-bottom: 8px;
  }

  main.main .church-scripture-ref {
    font-size: 0.78rem;
    letter-spacing: 0.14em;
  }

  main.main .hp-policy-cta {
    margin-top: 14px;
  }

  main.main .hp-policy-cta a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 10px 14px;
    border: 1px solid var(--hp-border);
    border-radius: 10px;
    background: var(--hp-white);
    color: var(--hp-navy);
    font-size: 0.84rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
  }

  main.main .hp-policy-cta i {
    font-size: 16px;
    color: var(--hp-gold-dark);
  }

  /* ==========================================================
     7. เอกสาร — nút tải đạt 44px
  ========================================================== */
  main.main .church-downloads-section .row {
    row-gap: 8px;
  }

  /* มือถือ: โชว์เฉพาะ 2 ไฟล์ล่าสุด (ที่เหลือดูได้ที่หน้า เอกสาร) */
  main.main .church-downloads-section .row > div:nth-child(n + 3) {
    display: none;
  }

  /* Nút tải PDF: chỉ icon vàng, không nền / không bo góc (vùng chạm vẫn 44×44) */
  main.main .church-btn-download-quick {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    gap: 0;
    border: 0;
    border-radius: 0;
    font-size: 20px;
    line-height: 1;
    background: none;
    box-shadow: none;
  }

  /* Màu icon khai báo trực tiếp trên <i> vì theme khóa color của <a> bằng !important */
  main.main .church-btn-download-quick i {
    color: var(--hp-gold-rich);
  }

  main.main .church-downloads-section .text-center.mt-4 {
    margin-top: 18px;
  }

  /* ==========================================================
     8. ทางลัด (แทนบล็อกเครือข่าย 8 จังหวัด / กรรมการ ที่ซ่อนบนจอเล็ก)
  ========================================================== */
  main.main .hp-explore-section {
    padding: 40px 0 44px;
    background: linear-gradient(180deg, var(--hp-white) 0%, var(--hp-ivory) 100%);
    border-top: 1px solid var(--hp-border);
  }

  main.main .hp-explore-section .church-section-header {
    margin-bottom: 18px;
  }

  main.main .hp-explore-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  main.main .hp-explore-tile {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 56px;
    padding: 10px 12px;
    border: 1px solid var(--hp-border);
    border-radius: 10px;
    background: var(--hp-white);
    color: var(--hp-navy);
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
  }

  main.main .hp-explore-tile i {
    font-size: 18px;
    color: var(--hp-gold-dark);
    flex-shrink: 0;
  }

  /* ==========================================================
     9. ติดต่อ — 3 ปุ่มลัด, bỏ iframe bản đồ, form gọn
  ========================================================== */
  main.main .church-contact-section > .container.section-title {
    margin-bottom: 20px;
  }

  main.main .hp-contact-actions {
    display: grid;
    /* auto-fit: khi DB thiếu số điện thoại chỉ còn 2 nút, 2 nút vẫn chia đều hết chiều ngang */
    grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
  }

  main.main .hp-contact-actions a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 66px;
    padding: 8px 6px;
    border: 1px solid var(--hp-border);
    border-radius: 10px;
    background: var(--hp-white);
    color: var(--hp-navy);
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
  }

  main.main .hp-contact-actions a i {
    font-size: 19px;
    color: var(--hp-gold-dark);
  }

  main.main .hp-contact-actions a.hp-action-call {
    border-color: var(--hp-gold-bright);
    background: linear-gradient(135deg, var(--hp-gold), var(--hp-gold-dark));
    color: #ffffff;
  }

  main.main .hp-contact-actions a.hp-action-call i {
    color: #ffffff;
  }

  main.main .church-contact-section .row.gy-4 {
    row-gap: 16px;
  }

  main.main .church-info-card {
    padding: 12px 14px;
    border-radius: 10px;
  }

  main.main .church-info-card > i {
    font-size: 18px;
  }

  main.main .church-info-card h6 {
    font-size: 0.8rem;
    margin-bottom: 2px;
  }

  main.main .church-info-card p {
    font-size: 0.8rem;
    line-height: 1.6;
    margin-bottom: 0;
  }

  main.main #contact .church-btn-call {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 10px;
    font-size: 0.86rem;
    background: linear-gradient(135deg, var(--hp-gold), var(--hp-gold-rich));
    border: 1px solid var(--hp-gold-bright);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(180, 83, 9, 0.28);
  }

  /* iframe bản đồ đã thay bằng nút "นำทาง" phía trên */
  main.main .church-map-card {
    display: none;
  }

  main.main .church-contact-section .row.g-3.mt-auto {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 14px;
  }

  main.main .church-contact-section .row.g-3.mt-auto > div {
    width: auto;
    max-width: none;
    padding: 0;
  }

  main.main .church-social-tile {
    min-height: 46px;
    padding: 10px 8px;
    border-radius: 10px;
    font-size: 0.76rem;
  }

  main.main .church-social-tile i {
    font-size: 17px;
    margin-right: 6px;
  }

  main.main .church-contact-form-wrapper {
    margin-top: 18px;
    padding: 22px 16px;
    border-radius: 10px;
  }

  main.main .church-form-title {
    font-size: 1.05rem;
  }

  main.main .church-form-subtitle {
    font-size: 0.78rem;
    line-height: 1.6;
  }

  main.main .church-contact-form-wrapper .form-label {
    font-size: 0.78rem;
    margin-bottom: 4px;
  }

  main.main .church-contact-form-wrapper .form-control {
    font-size: 16px; /* chống iOS tự zoom */
  }

  main.main .church-contact-form-wrapper textarea.form-control {
    min-height: 118px;
  }

  main.main .church-contact-form-wrapper .church-submit-btn {
    min-height: 50px;
  }

  /* ==========================================================
     10. THỨ TỰ SECTION TRÊN MOBILE
     Hero (Banner) → Video Showcase (Ngay dưới banner) → Số liệu → ร่วมนมัสการ (Intro + Ảnh)
          → Tin tức → Tài liệu → Nghị quyết → ทางลัด → Liên hệ
  ========================================================== */
  main.main {
    display: flex;
    flex-direction: column;
  }

  main.main #hero { order: 1; }
  main.main #video-showcase,
  main.main .cct-sacred-video-section { order: 2; }
  main.main .church-profile-section { order: 3; }
  main.main .church-intro-section { order: 4; }
  main.main .church-news-section { order: 5; }
  main.main .church-downloads-section { order: 6; }
  main.main .church-policy-section { order: 7; }
  main.main .hp-explore-section { order: 8; }
  main.main .church-contact-section { order: 9; }

  /* ==========================================================
     10a. KHỐI VIDEO ĐỘC LẬP TRÊN MOBILE (NGAY DƯỚI BANNER SLIDE)
     Nền Warm Ivory thánh đường, viền vàng gold, tối ưu kích thước màn hình nhỏ
  ========================================================== */
  main.main .cct-sacred-video-section {
    display: block;
    padding: 20px 0 28px;
    border-top: 1px solid #eedec5;
    border-bottom: 1px solid #d5c3a5;
  }

  main.main .cct-sacred-video-section .sacred-compact-header {
    gap: 8px;
    margin-bottom: 10px;
  }

  main.main .cct-sacred-video-section .sacred-lanna-cross-small {
    width: 20px;
    height: 28px;
  }

  main.main .cct-sacred-video-section .sacred-video-title {
    font-size: clamp(1.05rem, 4.4vw, 1.25rem);
    line-height: 1.35;
    text-align: center;
  }

  main.main .cct-sacred-video-section .sacred-cinema-portal {
    padding: 6px;
    border-radius: 14px;
    border-width: 1.5px;
    box-shadow: 
      0 14px 34px -10px rgba(15, 23, 42, 0.3),
      0 0 20px rgba(212, 175, 55, 0.2);
  }

  main.main .cct-sacred-video-section .sacred-cinema-topbar {
    padding: 4px 8px 8px;
    font-size: 11px;
  }

  main.main .cct-sacred-video-section .cinema-brand-badge {
    gap: 6px;
    font-size: 11.5px;
  }

  main.main .cct-sacred-video-section .cinema-brand-badge i {
    font-size: 16px;
  }

  main.main .cct-sacred-video-section .cinema-quality-tag {
    font-size: 9.5px;
    padding: 2px 7px;
  }

  main.main .cct-sacred-video-section .sacred-player-viewport {
    border-radius: 10px;
  }

  /* ==========================================================
     10b. KHUNG ẢNH THAY THẾ VIDEO TRONG KHỐI THỜ PHƯỢNG / CẦU NGUYỆN (MOBILE)
  ========================================================== */
  main.main .church-intro-photo-card {
    border-radius: 14px;
    padding: 6px;
    margin-top: 4px;
    border: 1px solid rgba(212, 175, 55, 0.35);
    box-shadow: 0 10px 24px -8px rgba(15, 23, 42, 0.14);
  }

  main.main .church-intro-photo-wrap {
    border-radius: 10px;
  }

  main.main .church-intro-photo-badge {
    bottom: 8px;
    left: 8px;
    font-size: 10.5px;
    padding: 3px 9px;
    border-radius: 14px;
    gap: 5px;
  }

  main.main .church-intro-photo-badge i {
    font-size: 12px;
  }

  /* ==========================================================
     10b. HOA VĂN NỀN & VIỀN TRÊN MOBILE — 12 MẪU SVG CHUẨN (2026-11-12)
     Cùng nguồn với desktop, hạ mật độ ô + hạ độ đậm cho màn 390px.
     Khối ข้อมูลคริสตจักรภาคที่ 20 vẫn giữ nền đứng yên (sticky plane).
  ========================================================== */
  main.main .hp-motif-surface::before {
    background-size: var(--hp-motif-tile-sm) var(--hp-motif-tile-sm), 240px 240px;
    background-position: center, right -60px bottom -60px;
    opacity: var(--hp-motif-ink-light);
  }

  main.main .hp-motif-surface::after {
    height: 16px;
    background-size: auto 16px;
    opacity: 0.42;
  }

  main.main .church-intro-section.hp-motif-surface::before  { opacity: 0.042; }
  main.main .church-policy-section.hp-motif-surface::before { opacity: 0.055; }
  main.main .church-contact-section.hp-motif-surface::before { opacity: 0.045; }
  main.main .hp-explore-section.hp-motif-surface::before    { opacity: 0.045; }

  main.main .church-hero-section.hp-hero-motif-m::before {
    background-size: 92px 92px;
    opacity: 0.06;
  }

  main.main .hp-fixed-motif__plane {
    background-size: 104px 104px, 260px 260px;
    background-position: center top, right -70px bottom -70px;
    opacity: var(--hp-motif-ink-navy);
  }

  /* Chừa chỗ cho dải viền ở đỉnh (padding gốc 44px) */
  main.main .church-news-section.hp-motif-surface      { padding-top: 62px; }
  main.main .church-downloads-section.hp-motif-surface { padding-top: 64px; }


  /* ==========================================================
     11. TẮT AOS TRÊN MOBILE (nội dung hiện ngay, không giật)
  ========================================================== */
  main.main [data-aos] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

main.main .church-info-card .church-info-card-label {
  font-size: 0.8rem;
  margin-bottom: 2px;
}
