/* Trang thông tin công khai của chùa */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 24px; } }

/* Header */
.s-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.s-header__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.s-header .brand__name { font-family: var(--serif); font-size: 1.125rem; color: var(--brand-ink); }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--ink); cursor: pointer; flex: none; }
.s-nav { display: none; }
.s-nav.is-open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
  background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 16px; box-shadow: var(--shadow); }
.s-nav a { padding: 12px 8px; text-decoration: none; color: var(--ink); font-weight: 500; border-radius: var(--radius-sm); white-space: nowrap; }
/* Laptop hẹp: nhường chỗ cho menu một hàng, ẩn dòng giới thiệu ngắn dưới tên chùa */
@media (min-width: 1000px) and (max-width: 1199px) { .s-header .brand__sub { display: none; } }
.s-header .brand__sub { max-width: 34ch; }
.s-nav a:hover { background: var(--brand-soft); color: var(--brand-ink); }
.s-nav a[aria-current="page"] { color: var(--brand-ink); font-weight: 700; }
.s-nav__cta { margin-top: 6px; border: 1px solid var(--brand-line); text-align: center; }
@media (min-width: 1000px) {
  .nav-toggle { display: none; }
  .s-nav, .s-nav.is-open { display: flex; flex-direction: row; position: static; padding: 0; box-shadow: none; border: 0; gap: 2px; align-items: center; }
  .s-nav a { padding: 8px 10px; font-size: .9375rem; }
  .s-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--brand); border-radius: 0; }
  .s-nav__cta { margin: 0 0 0 8px; padding: 8px 14px !important; border-radius: var(--radius-sm) !important; }
}

/* Hero */
.hero { background: linear-gradient(160deg, var(--brand-ink), var(--brand)); color: #fff; padding: 56px 0 64px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.14); box-shadow: 0 0 0 60px rgba(255,255,255,.04), 0 0 0 120px rgba(255,255,255,.03); }
.hero__eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8125rem; color: #f3dfbf; margin-bottom: 10px; font-weight: 600; }
.hero h1 { font-family: var(--serif); font-size: clamp(1.9rem, 5vw, 3rem); margin-bottom: 14px; }
.hero__lead { max-width: 620px; font-size: 1.0625rem; color: #f7ede1; }
.hero .btn { background: #fff; color: var(--brand-ink); border-color: #fff; }
.hero .btn:hover { background: #f7ede1; }
.hero .btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.hero .btn--ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; position: relative; z-index: 1; }

/* Section */
.section { padding: 48px 0; }
.section--alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__h { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 16px; margin-bottom: 24px; }
.section__h h2 { font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 1.75rem); color: var(--brand-ink); margin: 0; }
.section__h a { font-weight: 600; text-decoration: none; }

.page-head { background: #fff; border-bottom: 1px solid var(--line); padding: 32px 0 28px; }
.page-head h1 { font-family: var(--serif); color: var(--brand-ink); font-size: clamp(1.6rem, 4vw, 2.25rem); margin: 0; }
.page-head p { margin: 8px 0 0; color: var(--muted); }

/* Lưới thẻ sự kiện / tin */
.grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

.ev { display: flex; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.ev:hover { border-color: var(--brand-line); transform: translateY(-1px); color: var(--ink); }
.ev__date { flex: none; width: 64px; text-align: center; border-radius: var(--radius-sm); background: var(--brand-soft); color: var(--brand-ink); padding: 8px 4px; align-self: flex-start; }
.ev__d { display: block; font-size: 1.625rem; font-weight: 700; line-height: 1.1; }
.ev__m { display: block; font-size: .75rem; font-weight: 600; text-transform: uppercase; }
.ev__body h3 { font-size: 1.0625rem; margin: 4px 0 6px; }
.ev__meta { font-size: .875rem; color: var(--muted); margin: 0; }

.post { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.post__img { aspect-ratio: 16/9; background: var(--brand-soft); display: flex; align-items: center; justify-content: center; color: var(--brand-ink); font-size: .875rem; }
.post__img img { width: 100%; height: 100%; object-fit: cover; }
.post__body { padding: 16px 18px 20px; }
.post__body h3 { font-size: 1.0625rem; margin: 4px 0 8px; }
.post__body h3 a { color: var(--ink); text-decoration: none; }
.post__body h3 a:hover { color: var(--brand-ink); }

.notice-list { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.notice-list li { padding: 14px 18px; border-bottom: 1px solid var(--line); }
.notice-list li:last-child { border-bottom: 0; }
.notice-list a { font-weight: 600; text-decoration: none; color: var(--ink); }
.notice-list a:hover { color: var(--brand-ink); }

/* Bài viết / chi tiết */
.layout-2 { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); padding-top: 32px; padding-bottom: 56px; }
@media (min-width: 960px) { .layout-2 { grid-template-columns: minmax(0, 1fr) 360px; } }
.prose { font-size: 1.0625rem; line-height: 1.75; }
.prose h2, .prose h3 { font-family: var(--serif); color: var(--brand-ink); margin-top: 1.4em; }
.prose img { border-radius: var(--radius-sm); margin: 1em 0; }
.prose blockquote { margin: 1em 0; padding: 8px 18px; border-left: 3px solid var(--gold); color: var(--muted); background: #fff; }
.placeholder { border: 1px dashed #c9b79e; background: #fffaf2; color: #7a5a2e; padding: 14px 16px; border-radius: var(--radius-sm); font-size: .9375rem; }

.reg { position: sticky; top: 96px; }
.reg h2 { font-family: var(--serif); color: var(--brand-ink); font-size: 1.25rem; }
.reg .form-grid { grid-template-columns: 1fr; }
.seats { font-weight: 600; }

/* Đăng nhập */
.auth { max-width: 440px; margin: 40px auto 64px; }
.auth h1 { font-family: var(--serif); color: var(--brand-ink); font-size: 1.625rem; }
.auth .form-grid { grid-template-columns: 1fr; }
.demo-accounts { margin-top: 20px; font-size: .875rem; }
.demo-accounts code { background: #f3ede4; padding: 1px 6px; border-radius: 4px; }

/* Footer */
.s-footer { background: #2a211a; color: #e9dfd2; padding: 40px 0 0; margin-top: 0; }
.s-footer a { color: #f3dfbf; }
.s-footer__grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .s-footer__grid { grid-template-columns: 2fr 1fr; } }
.s-footer p { margin: 0 0 6px; }
.s-footer__name { font-family: var(--serif); font-size: 1.25rem; color: #fff; margin-bottom: 10px !important; }
.s-footer__h { font-weight: 600; color: #fff; }
.s-footer__links { list-style: none; margin: 0; padding: 0; }
.s-footer__links li { margin: 0 0 6px; }
.s-footer__bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 28px; padding: 16px 16px 20px; font-size: .8125rem; color: #bfb2a2; }

/* Thư viện Pháp Tạng */
.tv-tim { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.tv-tim .input { flex: 1 1 220px; max-width: 420px; width: auto; }
.tv-tim select.input { flex: 0 1 220px; }
.tv-the { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow);
  text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.tv-the:hover { border-color: var(--brand-line); transform: translateY(-1px); color: var(--ink); }
.tv-the h3 { font-size: 1.0625rem; margin: 8px 0 4px; }
.tv-doc { line-height: 1.85; }

/* Hình ảnh */
.anh-cong-khai { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin-bottom: 36px; }
.anh-cong-khai figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.anh-cong-khai img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.anh-cong-khai figcaption { padding: 10px 12px; font-size: .875rem; color: var(--muted); }

/* Khối kêu gọi gửi yêu cầu Phật sự */
.yc-banner { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; }
.yc-banner h2 { font-family: var(--serif); color: var(--brand-ink); font-size: 1.375rem; margin: 0 0 4px; }

/* Menu ngang đủ mục: ẩn dòng giới thiệu ngắn dưới tên chùa (câu này vẫn hiện ở banner trang chủ) */
@media (min-width: 1000px) { .s-header .brand__sub { display: none; } }
