/* ==========================================================================
   Giao diện CTQN — Chính Tòa Qui Nhơn
   Bảng màu & bố cục lấy theo bản demo; cỡ chữ lớn hơn để dễ đọc trên điện thoại.
   ========================================================================== */
:root {
  --ct-bg: #f6f3ec;
  --ct-card: #fbf9f4;
  --ct-ink: #2a201a;
  --ct-muted: #5c5147;
  --ct-line: #e4ddd1;
  --ct-wine: #6a2933;
  --ct-wine-d: #522029;
  --ct-gold: #a9824c;
  --ct-gold-l: #d9bd83;
  --ct-sand: #ece5d8;
  --ct-serif: 'Playfair Display', Georgia, serif;
  --ct-sans: 'Be Vietnam Pro', 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ct-bg); color: var(--ct-ink); font-family: var(--ct-sans); font-size: 18px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: var(--ct-wine); }
a:hover, a:focus { color: var(--ct-gold); text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--ct-serif); color: var(--ct-ink); }
img { max-width: 100%; height: auto; }

.ct-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.ct-header { position: sticky; top: 0; z-index: 50; background: rgba(248, 246, 240, .97); border-bottom: 1px solid rgba(87, 66, 48, .12); backdrop-filter: blur(14px); }
.admin-toolbar-on .ct-header { top: 0; }
.ct-header-in { max-width: 1440px; margin: 0 auto; min-height: 76px; padding: 0 clamp(16px, 4vw, 56px); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.ct-brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; color: var(--ct-ink); }
.ct-brand:hover { color: var(--ct-ink); }
.ct-mark { width: 42px; height: 42px; display: grid; place-items: center; color: #fff8ed; background: var(--ct-wine); border-radius: 50%; }
.ct-brand-text strong, .ct-brand-text small { display: block; }
.ct-brand-text strong { font-size: 15px; font-weight: 700; letter-spacing: .1em; line-height: 1.2; }
.ct-brand-text small { margin-top: 4px; font-size: 13px; color: #82756a; letter-spacing: .16em; }
.ct-nav { display: flex; align-items: center; gap: clamp(14px, 1.7vw, 28px); }
.ct-nav a { font-size: 16px; font-weight: 500; color: #65594f; white-space: nowrap; padding: 6px 0; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.ct-nav a:hover, .ct-nav a.active { color: var(--ct-wine); border-bottom-color: var(--ct-gold); }
.ct-header .ct-cta { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; background: var(--ct-wine); color: #fff9ef; font-size: 15px; font-weight: 600; white-space: nowrap; }
.ct-header .ct-cta:hover { background: var(--ct-wine-d); color: #fff; }
.ct-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--ct-line); background: transparent; padding: 0; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.ct-toggle span { display: block; width: 20px; height: 2px; background: var(--ct-wine); transition: transform .2s, opacity .2s; }
.ct-menu-open .ct-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ct-menu-open .ct-toggle span:nth-child(2) { opacity: 0; }
.ct-menu-open .ct-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.ct-mnav { display: none; }

/* ---------- Page bar (trang trong) ---------- */
.ct-pagebar { background: var(--ct-sand); border-bottom: 1px solid var(--ct-line); }
.ct-pagebar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 54px; padding: 8px 0; flex-wrap: wrap; }
.ct-pagebar .breadcrumbs-wrap { flex: 1; min-width: 0; font-size: 16px; }
.ct-pagebar .breadcrumbs a { color: var(--ct-muted); }
.ct-pagebar .headerSearch { width: 260px; max-width: 100%; }
.ct-pagebar .headerSearch .form-control { border-radius: 0; border-color: var(--ct-line); background: #fff; box-shadow: none; height: 38px; }
.ct-pagebar .headerSearch .btn { border-radius: 0; background: var(--ct-wine); border-color: var(--ct-wine); height: 38px; }
.ct-main { padding-top: 32px; padding-bottom: 64px; }
.ct-main .row { margin-left: -15px; margin-right: -15px; }

/* ---------- Nút & thành phần chung ---------- */
.ct-btn { display: inline-flex; min-height: 50px; padding: 0 24px; align-items: center; justify-content: center; gap: 12px; font-size: 16px; font-weight: 600; transition: .2s; }
.ct-btn.gold { color: #35291e; background: var(--ct-gold-l); }
.ct-btn.gold:hover { background: #ebd9b2; color: #35291e; }
.ct-btn.outline { color: #fffaf2; border: 1px solid rgba(255, 250, 242, .5); }
.ct-btn.outline:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.ct-link { display: inline-flex; align-items: center; gap: 9px; color: var(--ct-wine); font-size: 16px; font-weight: 600; }
.ct-eyebrow { display: inline-block; font-size: 14px; letter-spacing: .2em; font-weight: 700; color: var(--ct-gold); }
.ct-eyebrow.light { color: #e7ce9d; }
.ct-empty { padding: 24px 0; color: var(--ct-muted); }
.ct-section { padding: 88px 0; }
.ct-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.ct-head h2 { margin: 10px 0 8px; font-size: clamp(30px, 4vw, 44px); font-weight: 500; line-height: 1.15; letter-spacing: -.02em; }
.ct-head p { margin: 0; color: var(--ct-muted); font-size: 17px; }

/* ---------- Hero ---------- */
.ct-home { display: block; }
.ct-hero { position: relative; min-height: min(680px, calc(100vh - 76px)); display: flex; align-items: center; overflow: hidden; background: #45382b; color: #fffaf2; }
.ct-hero-img { position: absolute; inset: 0; background: center 40%/cover no-repeat; }
.ct-hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(28, 23, 20, .82) 0%, rgba(34, 26, 21, .6) 48%, rgba(27, 24, 21, .15) 100%), linear-gradient(0deg, rgba(24, 21, 18, .35), transparent 40%); }
.ct-hero-in { position: relative; width: 100%; max-width: 1440px; margin: 0 auto; padding: 80px clamp(20px, 8vw, 150px); display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.ct-hero-text { max-width: 760px; }
.ct-kicker { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; letter-spacing: .22em; font-weight: 700; color: #e7ce9d; }
.ct-kicker i { display: inline-block; width: 28px; height: 1px; background: #d9b879; }
.ct-hero h1 { margin: 22px 0 18px; color: #fffaf2; font-size: clamp(36px, 5vw, 64px); font-weight: 500; line-height: 1.1; letter-spacing: -.03em; }
.ct-hero h1 em { color: #e5c98f; font-weight: 500; }
.ct-hero p { max-width: 480px; color: rgba(255, 250, 242, .86); font-size: 19px; line-height: 1.8; }
.ct-actions { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.ct-next { flex-shrink: 0; width: 290px; padding: 26px; background: rgba(251, 249, 244, .96); color: var(--ct-ink); border-top: 3px solid var(--ct-gold); box-shadow: 0 20px 50px rgba(0, 0, 0, .3); }
.ct-next small { display: block; font-size: 13px; letter-spacing: .2em; font-weight: 700; color: var(--ct-gold); }
.ct-next-time { display: block; margin: 8px 0 2px; font: 600 54px/1 var(--ct-serif); color: var(--ct-wine); font-variant-numeric: lining-nums tabular-nums; }
.ct-next-when { display: block; font-weight: 600; font-size: 17px; }
.ct-next-title { display: block; margin: 6px 0 16px; color: var(--ct-muted); font-size: 16px; }
.ct-next a { font-size: 16px; font-weight: 600; }

/* ---------- Thông báo ---------- */
.ct-ann { background: var(--ct-bg); }
.ct-ann-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: stretch; }
.ct-ann-lead { display: flex; flex-direction: column; background: var(--ct-card); border: 1px solid var(--ct-line); color: inherit; transition: box-shadow .2s, transform .2s; }
.ct-ann-lead:hover { box-shadow: 0 14px 34px rgba(60, 40, 25, .12); transform: translateY(-2px); color: inherit; }
.ct-ann-lead-img { aspect-ratio: 16/9; background: center/cover no-repeat; background-color: var(--ct-sand); }
.ct-ann-lead-body { padding: 26px 28px 30px; }
.ct-ann-lead:not(:has(.ct-ann-lead-img)) { border-left: 4px solid var(--ct-wine); justify-content: center; }
.ct-ann-lead:not(:has(.ct-ann-lead-img)) .ct-ann-lead-body { padding: 36px 36px 40px; }
.ct-ann-lead:not(:has(.ct-ann-lead-img)) h3 { font-size: 32px; }
.ct-badge { display: inline-block; padding: 5px 10px; background: var(--ct-wine); color: #fff8ed; font-size: 13px; font-weight: 700; letter-spacing: .12em; }
.ct-ann-lead h3 { margin: 14px 0 10px; font-size: 27px; font-weight: 500; line-height: 1.3; }
.ct-ann-lead p { color: var(--ct-muted); margin-bottom: 14px; }
.ct-ann-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ct-line); }
.ct-ann-list li { border-bottom: 1px solid var(--ct-line); }
.ct-ann-list a { display: flex; align-items: center; gap: 18px; padding: 18px 6px; color: inherit; transition: background .2s; }
.ct-ann-list a:hover { background: var(--ct-sand); color: inherit; }
.ct-ann-date { flex-shrink: 0; width: 62px; text-align: center; font: 600 22px/1 var(--ct-serif); color: var(--ct-wine); padding-right: 16px; border-right: 1px solid var(--ct-line); }
.ct-ann-title { flex: 1; font-weight: 600; line-height: 1.4; }
.ct-ann-title small { display: block; margin-bottom: 3px; font-size: 14px; font-weight: 700; color: var(--ct-gold); letter-spacing: .08em; text-transform: uppercase; }
.ct-ann-list .fa { color: var(--ct-gold); font-size: 22px; }

/* ---------- Lịch lễ ---------- */
.ct-lich { background: #f0ebe0; }
.ct-week-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid #d8cfc0; border-bottom: 1px solid #d8cfc0; color: var(--ct-muted); font-size: 17px; }
.ct-week-label { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ct-ink); }
.ct-week-label em { font-style: normal; font-size: 13px; font-weight: 700; letter-spacing: .1em; padding: 3px 8px; background: #e6d6b6; color: #77552a; }
.ct-week-ctrl { display: flex; align-items: center; gap: 8px; }
.ct-week-ctrl a { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; border: 1px solid #d3c9b9; color: var(--ct-wine); font-size: 22px; background: transparent; }
.ct-week-ctrl a:hover { background: #e6dfd1; }
.ct-week-ctrl .ct-week-today { font-size: 15px; font-weight: 600; }
.ct-row { display: grid; grid-template-columns: 160px 110px 1fr 170px; align-items: center; gap: 18px; padding: 12px 18px; border-bottom: 1px solid #e0d8c9; background: transparent; }
.ct-row.first { border-top: 1px solid #d3c9b9; margin-top: -1px; }
.ct-row.today { background: #efe7d9; box-shadow: inset 3px 0 0 var(--ct-gold); }
.ct-row.next { background: #f6ead0; }
.ct-row-date strong { display: block; font-size: 18px; }
.ct-row-date span { font-size: 15px; color: var(--ct-muted); }
.ct-row.sunday .ct-row-date strong { color: var(--ct-wine); }
.ct-row-date em, .ct-tag { display: inline-block; margin-left: 6px; padding: 2px 7px; font-style: normal; font-size: 13px; font-weight: 700; background: #e6d6b6; color: #77552a; vertical-align: 1px; }
.ct-tag.next { background: var(--ct-wine); color: #fff8ed; }
.ct-row-time { display: flex; align-items: center; gap: 9px; color: var(--ct-wine); }
.ct-row-time strong { font-size: 22px; font-variant-numeric: lining-nums tabular-nums; font-family: var(--ct-serif); }
.ct-row-main strong { display: block; font-size: 18px; }
.ct-row-main span { display: block; font-size: 16px; color: var(--ct-muted); }
.ct-row-priest small { display: block; font-size: 13px; letter-spacing: .16em; color: var(--ct-gold); }
.ct-row-priest strong { font-size: 16px; }
.ct-note { margin: 20px 0 0; color: var(--ct-muted); font-size: 16px; }

/* ---------- Tin tức (thẻ) ---------- */
.ct-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ct-card { background: var(--ct-card); border: 1px solid var(--ct-line); }
.ct-card > a { display: block; color: inherit; height: 100%; }
.ct-card-img { aspect-ratio: 1.5/1; background: center/cover no-repeat var(--ct-sand); }
.ct-card-body { padding: 20px 22px 24px; }
.ct-card-meta { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; color: #9b8f82; }
.ct-card-meta span { color: #785832; font-weight: 700; letter-spacing: .04em; }
.ct-card h3 { margin: 10px 0 8px; font-size: 22px; font-weight: 500; line-height: 1.38; }
.ct-card p { color: var(--ct-muted); font-size: 17px; margin-bottom: 14px; }
.ct-card:hover { box-shadow: 0 12px 30px rgba(60, 40, 25, .1); }

/* ---------- Thăm viếng ---------- */
.ct-visit { padding: 92px 24px; text-align: center; background: #47332d; color: #fff8ec; }
.ct-visit h2 { margin: 16px 0; color: #fff8ec; font-size: clamp(34px, 5vw, 56px); font-weight: 500; line-height: 1.15; }
.ct-visit h2 em { color: #dec693; }
.ct-visit p { margin: 0 0 26px; color: rgba(255, 248, 236, .75); }

/* ---------- Footer ---------- */
.ct-footer { background: #30251f; color: #f4ede2; }
.ct-footer a { color: #d7bd8c; }
.ct-footer a:hover { color: #fff; }
.ct-footer-in { max-width: 1180px; margin: 0 auto; padding: 56px 24px 40px; display: grid; grid-template-columns: 1.3fr 1.2fr 1.2fr .9fr; gap: 32px; }
.ct-foot-col h3 { margin: 4px 0 16px; font: 700 14px var(--ct-sans); letter-spacing: .19em; color: #d7bd8c; }
.ct-foot-col p, .ct-foot-col li, .ct-foot-col .panel-body { color: #c9bfb3; font-size: 17px; line-height: 1.8; }
.ct-foot-col > a { display: block; color: #d7bd8c; font-size: 17px; line-height: 2; }
.ct-foot-col .panel, .ct-foot-col .well { background: transparent; border: 0; box-shadow: none; margin: 0; padding: 0; color: #c9bfb3; }
.ct-foot-col .panel-heading { display: none; }
.ct-foot-col .panel-body { padding: 0; }
.ct-brand.light { color: #f4ede2; }
.ct-brand.light .ct-mark { background: #8c3942; }
.ct-brand.light small { color: #b8a99a; }
.ct-foot-brand p { margin-top: 18px; }
.ct-footer-bottom { max-width: 1180px; margin: 0 auto; padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; gap: 15px; flex-wrap: wrap; border-top: 1px solid rgba(235, 220, 198, .16); color: #978a7d; font-size: 15px; }
.ct-foot-tools { flex: 1; text-align: center; }
.ct-foot-tools .panel { background: transparent; border: 0; box-shadow: none; display: inline-block; margin: 0 8px; }
.ct-foot-tools .panel-heading { display: none; }

/* ---------- Trang trong: làm đẹp phần module có sẵn ---------- */
.ct-main .panel, .ct-main .well { border-radius: 0; border: 1px solid var(--ct-line); box-shadow: none; background: var(--ct-card); }
.ct-main .panel-default > .panel-heading { background: var(--ct-sand); border-bottom: 1px solid var(--ct-line); color: var(--ct-wine); font-family: var(--ct-serif); font-size: 20px; border-radius: 0; }
.ct-main .panel-heading h3, .ct-main .panel-heading h2 { font-size: 20px; margin: 0; }
.ct-main .btn { border-radius: 0; }
.ct-main .btn-primary, .ct-main .btn-info { background: var(--ct-wine); border-color: var(--ct-wine); }
.ct-main .btn-primary:hover, .ct-main .btn-info:hover { background: var(--ct-wine-d); border-color: var(--ct-wine-d); }
.ct-main .form-control { border-radius: 0; box-shadow: none; border-color: #d9d0c3; }
.ct-main .pagination > li > a, .ct-main .pagination > li > span { color: var(--ct-wine); border-color: var(--ct-line); }
.ct-main .pagination > .active > a, .ct-main .pagination > .active > span { background: var(--ct-wine); border-color: var(--ct-wine); color: #fff; }
.ct-main .page-header, .ct-main h1 { font-family: var(--ct-serif); font-weight: 500; }
.ct-main h1 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.3; }
.ct-main article img, .ct-main .bodytext img { max-width: 100%; height: auto; }
.ct-main .bodytext, .ct-main #news-bodyhtml { font-size: 19px; line-height: 1.85; }
.ct-main a h3, .ct-main .panel-body a { color: var(--ct-ink); }
.ct-main a:hover h3 { color: var(--ct-wine); }
.ct-main .table { background: #fff; }
.ct-main .breadcrumbs-wrap { font-size: 16px; }

/* trang Lịch lễ */
.ct-lichpage { max-width: 960px; margin: 0 auto; }
.ct-lichpage h1 { margin: 0 0 6px; }
.ct-lichpage .lead { color: var(--ct-muted); margin-bottom: 24px; }

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
  .ct-nav { gap: 14px; }
  .ct-nav a { font-size: 15px; }
  .ct-header .ct-cta { display: none; }
}
@media (max-width: 960px) {
  .ct-nav { display: none; }
  .ct-toggle { display: flex; }
  .ct-mnav { display: none; flex-direction: column; padding: 4px 20px 20px; border-top: 1px solid var(--ct-line); background: #f8f6f0; max-height: calc(100vh - 76px); overflow-y: auto; }
  .ct-menu-open .ct-mnav { display: flex; }
  .ct-mnav a { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; border-bottom: 1px solid #eee8dd; color: #57493e; font-size: 19px; font-weight: 500; }
  .ct-mnav a i { color: var(--ct-gold); font-size: 22px; }
  .ct-mnav-user { padding-top: 12px; }
  .ct-hero-in { flex-direction: column; align-items: flex-start; padding: 64px 22px 56px; gap: 32px; }
  .ct-next { width: 100%; max-width: 380px; }
  .ct-ann-grid { grid-template-columns: 1fr; }
  .ct-grid { grid-template-columns: 1fr 1fr; }
  .ct-footer-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 18px; }
  .ct-wrap { padding: 0 18px; }
  .ct-header-in { min-height: 66px; }
  .ct-brand-text strong { font-size: 13px; }
  .ct-mark { width: 38px; height: 38px; }
  .ct-section { padding: 60px 0; }
  .ct-head { flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 24px; }
  .ct-hero { min-height: 0; }
  .ct-hero p { font-size: 18px; }
  .ct-btn { width: 100%; }
  .ct-actions { width: 100%; }
  .ct-ann-lead-body { padding: 20px; }
  .ct-ann-lead h3 { font-size: 23px; }
  .ct-ann-date { width: 52px; font-size: 21px; padding-right: 12px; }
  .ct-row { grid-template-columns: 1fr auto; gap: 6px 10px; padding: 14px 10px; }
  .ct-row-date { grid-column: 1; grid-row: 1; }
  .ct-row-date:empty { display: none; }
  .ct-row-time { grid-column: 2; grid-row: 1; }
  .ct-row-main { grid-column: 1 / -1; }
  .ct-row-priest { grid-column: 1 / -1; }
  .ct-row-priest:empty { display: none; }
  .ct-row:not(.first) .ct-row-time { grid-row: 1; }
  .ct-row:not(.first) .ct-row-main { grid-column: 1; grid-row: 1; }
  .ct-row:not(.first) .ct-row-priest { grid-column: 1 / -1; }
  .ct-week-bar { flex-wrap: wrap; }
  .ct-grid { grid-template-columns: 1fr; }
  .ct-footer-in { grid-template-columns: 1fr; padding: 44px 20px 28px; }
  .ct-footer-bottom { flex-direction: column; align-items: flex-start; }
  .ct-pagebar .headerSearch { width: 100%; }
  .ct-main { padding-top: 22px; }
}

/* ---------- Ghi đè CSS cũ của theme mặc định ---------- */
#body.ct-main { background: transparent; border: 0; box-shadow: none; padding-left: 24px; padding-right: 24px; }
.ct-pagebar .breadcrumbs-wrap, .ct-pagebar .breadcrumbs, .ct-pagebar .display { padding-left: 0; margin-left: 0; background: transparent; }
.ct-pagebar .breadcrumbs li, .ct-pagebar .breadcrumbs li a { background: transparent; }
.ct-pagebar .breadcrumbs li a { color: var(--ct-muted); }
.ct-pagebar .breadcrumbs li:after, .ct-pagebar .breadcrumbs li:before { display: none; }
.ct-main .panel-primary, .ct-main .panel-info { border-color: var(--ct-line); }
.ct-main .panel-primary > .panel-heading, .ct-main .panel-info > .panel-heading { background: var(--ct-wine); border-color: var(--ct-wine); color: #fff8ed; border-radius: 0; font-family: var(--ct-serif); font-size: 20px; }
.ct-main .panel-body img { max-width: 100%; }
.ct-main .panel-body .thumbnail, .ct-main .panel-body img.img-thumbnail { max-width: 100%; height: auto; }
.ct-main .panel-body li { list-style: none; }
.ct-main .panel-body li > a { color: var(--ct-ink); }
.ct-main .panel-body li > a:hover { color: var(--ct-wine); }
.ct-main .panel-body .clearfix > a > img, .ct-main .panel-body .clearfix > img { max-width: 90px; height: auto; margin-right: 10px; }
.ct-main .panel-body .clearfix { overflow: hidden; margin-bottom: 14px; }
.ct-main .fa-eye, .ct-main .fa-clock-o { color: var(--ct-gold); }
.ct-main .text-muted, .ct-main .text-center small { color: var(--ct-muted); }

/* Breadcrumb dạng chữ + dấu "/" thay cho hình mũi tên cũ */
.ct-pagebar .breadcrumbs-wrap .display { height: auto; overflow: visible; }
.ct-pagebar .breadcrumbs { margin: 0; padding: 0; }
.ct-pagebar .breadcrumbs li { margin: 0 0 0 0; padding: 0; }
.ct-pagebar .breadcrumbs li + li:before { content: '/'; float: left; margin: 0 10px; color: #b3a796; }
.ct-pagebar .breadcrumbs a, .ct-pagebar .show-subs-breadcrumbs { background: transparent; padding: 0; color: var(--ct-muted); font-size: 16px; }
.ct-pagebar .breadcrumbs a:before, .ct-pagebar .breadcrumbs a:after, .ct-pagebar .show-subs-breadcrumbs:after { display: none; border: 0; content: none; }
.ct-pagebar .breadcrumbs a:hover { background: transparent; color: var(--ct-wine); }
.ct-pagebar .breadcrumbs li:last-child a { color: var(--ct-ink); font-weight: 600; }

/* ---------- Blog ---------- */
.ct-blogpage h1 { margin: 0 0 6px; }
.ct-blogpage .lead { color: var(--ct-muted); margin-bottom: 22px; }
.ct-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.ct-tabs a { padding: 10px 18px; border: 1px solid #d9d0c3; background: transparent; color: var(--ct-muted); font-size: 16px; font-weight: 600; }
.ct-tabs a:hover { background: #eee8dd; color: var(--ct-wine); }
.ct-tabs a.active { background: var(--ct-wine); border-color: var(--ct-wine); color: #fff8ed; }
.ct-card.noimg { border-top: 3px solid var(--ct-gold); }
.ct-pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 36px; }
.ct-pager a, .ct-pager span { min-width: 42px; height: 42px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--ct-line); background: var(--ct-card); color: var(--ct-wine); font-weight: 600; }
.ct-pager a:hover { background: #eee8dd; }
.ct-pager .current { background: var(--ct-wine); border-color: var(--ct-wine); color: #fff8ed; }
.ct-pagebar .breadcrumbs li { display: inline-flex !important; align-items: center; float: none !important; }
.ct-pagebar .breadcrumbs li + li:before { content: '/' !important; display: inline-block !important; float: none !important; margin: 0 10px; color: #b3a796; }
.ct-pagebar .breadcrumbs a { float: none !important; }
.ct-card-img img, .ct-ann-lead-img img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Lịch lễ theo ngày + lịch phụng vụ ---------- */
.ct-dot { display: inline-block; flex-shrink: 0; width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .25); vertical-align: -1px; }
.ct-dot.c-xanh { background: #3f8a52; }
.ct-dot.c-trang { background: #fffdf6; border-color: #b9ad97; }
.ct-dot.c-do { background: #b3261e; }
.ct-dot.c-tim { background: #6f3a8a; }
.ct-dot.c-hong { background: #e58fb1; }
.ct-week .ct-day { border-bottom: 1px solid #e0d8c9; padding: 14px 18px 12px; }
.ct-week .ct-day.today { background: #efe7d9; box-shadow: inset 3px 0 0 var(--ct-gold); }
.ct-week .ct-day.big .ct-lit-text > strong { color: var(--ct-wine); }
.ct-day-head { display: grid; grid-template-columns: 150px 1fr; gap: 18px; align-items: start; }
.ct-day-date strong { display: block; font-size: 19px; }
.ct-day-date span { font-size: 15px; color: var(--ct-muted); }
.ct-day.sunday .ct-day-date strong { color: var(--ct-wine); }
.ct-day-date em, .ct-tag, .ct-week-label em { display: inline-block; margin-left: 6px; padding: 2px 7px; font-style: normal; font-size: 13px; font-weight: 700; background: #e6d6b6; color: #77552a; vertical-align: 1px; }
.ct-lit { display: flex; gap: 10px; align-items: flex-start; }
.ct-lit .ct-dot { margin-top: 5px; }
.ct-lit-text strong { font-size: 18px; line-height: 1.4; }
.ct-rank { display: inline-block; margin-left: 6px; padding: 2px 8px; font-style: normal; font-size: 13px; font-weight: 700; letter-spacing: .03em; background: var(--ct-sand); color: var(--ct-muted); vertical-align: 1px; }
.ct-rank.r-S { background: var(--ct-wine); color: #fff8ed; }
.ct-rank.r-F { background: #c9a35c; color: #2f2418; }
.ct-rank.r-M { background: #e6d6b6; color: #77552a; }
.ct-year { margin-left: 8px; color: var(--ct-muted); font-weight: 600; }
.ct-lit-note, .ct-lit-opt { display: block; margin-top: 3px; font-size: 16px; color: var(--ct-muted); }
.ct-lit-note { color: #77552a; font-weight: 600; }
.ct-day-masses { margin: 10px 0 0 168px; }
.ct-mass { display: grid; grid-template-columns: 110px 1fr 170px; gap: 16px; align-items: center; padding: 9px 12px; border-top: 1px dashed #ded5c5; }
.ct-mass:first-child { border-top: 0; }
.ct-mass.next { background: #f6ead0; }
.ct-mass-time { display: flex; align-items: center; gap: 8px; color: var(--ct-wine); }
.ct-mass-time strong { font: 600 22px var(--ct-serif); font-variant-numeric: lining-nums tabular-nums; }
.ct-mass-main strong { display: block; font-size: 18px; }
.ct-mass-main span { display: block; font-size: 16px; color: var(--ct-muted); }
.ct-mass-priest small { display: block; font-size: 13px; letter-spacing: .16em; color: var(--ct-gold); }
.ct-mass-priest strong { font-size: 16px; }
.ct-legend { margin: 18px 0 0; font-size: 16px; color: var(--ct-muted); display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; }
.ct-leg { display: inline-flex; align-items: center; gap: 6px; }

/* lịch tháng */
.ct-cal-head, .ct-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.ct-cal-head span { padding: 10px 4px; text-align: center; font-size: 15px; font-weight: 700; color: var(--ct-muted); letter-spacing: .08em; }
.ct-cal-head .sun { color: var(--ct-wine); }
.ct-cal-grid { border-top: 1px solid #d8cfc0; border-left: 1px solid #d8cfc0; }
.ct-cell { position: relative; min-height: 104px; padding: 8px 8px 8px; border-right: 1px solid #d8cfc0; border-bottom: 1px solid #d8cfc0; background: var(--ct-card); color: var(--ct-ink); display: flex; flex-direction: column; gap: 3px; }
.ct-cell.empty { background: transparent; }
a.ct-cell:hover { background: #f1e9d9; color: var(--ct-ink); }
.ct-cell.sunday { background: #f6efe1; }
.ct-cell.today { box-shadow: inset 0 0 0 2px var(--ct-gold); }
.ct-cell.big { background: #fbf0dc; }
.ct-cell-num { font: 600 21px var(--ct-serif); }
.ct-cell.sunday .ct-cell-num, .ct-cell.big .ct-cell-num { color: var(--ct-wine); }
.ct-cell-wd { display: none; }
.ct-cell .ct-dot { position: absolute; top: 12px; right: 10px; width: 12px; height: 12px; }
.ct-cell-title { font-size: 15px; line-height: 1.35; color: #4a3d34; }
.ct-cell-rank { font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--ct-gold); text-transform: uppercase; }
.ct-cell-rank.r-S { color: var(--ct-wine); }

@media (max-width: 960px) {
  .ct-day-masses { margin-left: 0; }
}
@media (max-width: 640px) {
  .ct-week .ct-day { padding: 14px 10px; }
  .ct-day-head { grid-template-columns: 1fr; gap: 6px; }
  .ct-day-date { display: flex; align-items: baseline; gap: 10px; }
  .ct-mass { grid-template-columns: 82px 1fr; gap: 6px 12px; padding: 9px 4px; }
  .ct-mass-priest { grid-column: 2; }
  .ct-mass-priest:empty { display: none; }
  .ct-mass-time strong { font-size: 20px; }
  .ct-cal-head { display: none; }
  .ct-cal-grid { display: block; border-left: 0; }
  .ct-cell { min-height: 0; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 4px 12px; padding: 11px 6px; border-right: 0; }
  .ct-cell.empty { display: none; }
  .ct-cell .ct-dot { position: static; order: 0; }
  .ct-cell-num { min-width: 28px; order: 1; font-size: 20px; }
  .ct-cell-wd { display: inline; order: 2; font-size: 15px; color: var(--ct-muted); min-width: 64px; }
  .ct-cell-title { order: 3; flex: 1; min-width: 140px; }
  .ct-cell-rank { order: 4; }
}
.ct-next-lit { display: flex; align-items: flex-start; gap: 8px; margin: -8px 0 14px; font-size: 16px; font-weight: 600; color: var(--ct-ink); line-height: 1.4; }
.ct-next-lit .ct-dot { margin-top: 4px; }

/* Chân trang: ghi đè #footer cũ của theme mặc định */
#footer.ct-footer { padding: 0; min-height: 0; background: #30251f; background-image: none; border: 0; box-shadow: none; position: static; color: #f4ede2; }
#footer.ct-footer, #footer.ct-footer a { color: #d7bd8c; text-shadow: none; }
#footer.ct-footer p, #footer.ct-footer li, #footer.ct-footer .panel-body { color: #c9bfb3; text-shadow: none; }
#footer.ct-footer a:hover { color: #fff; }
#footer.ct-footer h3 { margin: 4px 0 16px; padding: 0; background: none; border: 0; font: 700 14px var(--ct-sans); letter-spacing: .19em; color: #d7bd8c; text-shadow: none; text-transform: none; }
#footer.ct-footer .ct-brand { display: flex; align-items: center; color: #f4ede2; }
#footer.ct-footer .ct-brand .ct-brand-text strong { color: #f4ede2; }
#footer.ct-footer .ct-brand small { color: #b8a99a; }
#footer.ct-footer .ct-mark { position: static; flex-shrink: 0; background: #8c3942; color: #fff8ed; }
.ct-day-masses { margin-top: 2px; }
.ct-mass { padding: 6px 12px; }

/* Hero desktop: ảnh nhà thờ chiếm nửa phải, hiện trọn tháp chuông */
@media (min-width: 961px) {
  .ct-hero { min-height: min(720px, calc(100vh - 76px)); background: #241c17; }
  .ct-hero-img { left: 48%; background-position: center 40%; }
  .ct-hero-shade { background: linear-gradient(90deg, #241c17 0%, #241c17 48%, rgba(36, 28, 23, .55) 53%, rgba(36, 28, 23, 0) 62%), linear-gradient(0deg, rgba(24, 21, 18, .3), transparent 30%); }
  .ct-hero-in { position: static; max-width: none; padding: 80px 52% 80px calc(max(0px, (100vw - 1440px) / 2) + clamp(24px, 4vw, 80px)); }
  .ct-hero-text { position: relative; z-index: 1; }
  .ct-hero h1 { font-size: clamp(36px, 3.4vw, 60px); }
  .ct-next { position: absolute; z-index: 1; right: 32px; bottom: 32px; width: 260px; padding: 22px; }
  .ct-next-time { font-size: 44px; }
}
@media (min-width: 961px) and (max-width: 1499px) {
  .ct-hero-in { flex-direction: column; align-items: flex-start; justify-content: center; gap: 28px; padding-top: 56px; padding-bottom: 56px; }
  .ct-next { position: relative; right: auto; bottom: auto; width: 100%; max-width: 420px; display: grid; grid-template-columns: auto 1fr; column-gap: 22px; align-items: center; padding: 18px 22px; }
  .ct-next small, .ct-next-lit, .ct-next a { grid-column: 1 / -1; }
  .ct-next-time { grid-row: span 2; margin: 6px 0; }
  .ct-next-title { margin: 2px 0 0; }
  .ct-next-lit { margin: 10px 0 12px; }
}

/* Logo giáo xứ */
.ct-mark.ct-logo, .ct-brand.light .ct-mark.ct-logo, #footer.ct-footer .ct-mark.ct-logo { width: 56px; height: 56px; background: none; border-radius: 0; }
.ct-brand.light .ct-mark.ct-logo, #footer.ct-footer .ct-mark.ct-logo { background: #fff; border-radius: 50%; padding: 4px; }
.ct-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
@media (max-width: 640px) { .ct-mark.ct-logo { width: 46px; height: 46px; } }

/* Dễ đọc cho người lớn tuổi: số thẳng hàng (Playfair mặc định dùng số kiểu cổ) */
body, body * { font-variant-numeric: lining-nums; }
