:root {
  --blue: #1f6faa;
  --blue-dark: #124a79;
  --blue-deep: #0d3357;
  --gold: #d8ad40;
  --gold-soft: #f3dc95;
  --ink: #1f2933;
  --muted: #64748b;
  --paper: #f4f8fc;
  --line: #d7e5f1;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(13, 51, 87, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Inter', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; color: var(--ink); background: #fff; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
input, textarea, select, button { font: inherit; }
.container { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }
.narrow { width: min(840px, calc(100% - 32px)); }

.topline { background: var(--blue-deep); color: #fff; font-size: .92rem; }
.topbar { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.top-contact { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.contact-icon { width: 24px; height: 24px; display: inline-grid; place-items: center; border-radius: 50%; background: rgba(216, 173, 64, .22); color: var(--gold-soft); font-weight: 900; line-height: 1; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.header-inner { min-height: 136px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--blue-dark); max-width: 420px; flex-shrink: 0; }
.brand-crest { flex: 0 0 82px; width: 82px; height: 118px; object-fit: contain; }
.brand-name { display: grid; gap: 2px; line-height: 1.02; }
.brand-name span { font-family: 'Playfair Display', Georgia, serif; color: var(--gold); font-size: 1.22rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.brand-name strong { font-family: 'Playfair Display', Georgia, serif; color: var(--blue-dark); font-size: clamp(1.45rem, 2vw, 1.82rem); font-weight: 800; letter-spacing: 0; }
.main-nav { display: flex; align-items: center; gap: 2px; }
.nav-item { position: relative; }
.nav-item > a, .main-nav > a { display: block; padding: 10px 11px; color: #334155; font-weight: 700; font-size: .93rem; border-radius: 6px; white-space: nowrap; }
.nav-item > a:hover, .nav-item:hover > a, .main-nav > a:hover { background: var(--paper); color: var(--blue); }
.has-children > a::after { content: "▾"; font-size: .7rem; margin-left: 5px; color: var(--gold); }
.submenu { position: absolute; top: 100%; left: 0; min-width: 240px; display: none; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold); box-shadow: var(--shadow); border-radius: 0 0 6px 6px; padding: 8px; z-index: 40; }
.submenu a { display: block; padding: 9px 10px; border-radius: 4px; color: #334155; font-size: .9rem; font-weight: 700; white-space: nowrap; }
.submenu a:hover { background: var(--paper); color: var(--blue-dark); }
.nav-item:hover .submenu, .nav-item:focus-within .submenu, .nav-item.is-open .submenu { display: block; }
.menu-toggle { display: none; border: 1px solid var(--line); background: #fff; padding: 8px 12px; border-radius: 6px; }

.hero { min-height: 585px; position: relative; display: grid; align-items: end; overflow: hidden; color: #fff; border-bottom: 5px solid var(--gold); }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; pointer-events: none; }
.hero-slide.is-active { opacity: 1; pointer-events: auto; }
.hero-media, .hero-overlay { position: absolute; inset: 0; }
.hero-media { background-size: cover; background-position: center 42%; transform: scale(1.02); }
.hero-overlay { background: linear-gradient(90deg, rgba(9, 39, 67, .88), rgba(18, 74, 121, .56) 48%, rgba(216, 173, 64, .08)); }
.hero-content { position: absolute; left: max(16px, calc((100vw - 1160px) / 2)); bottom: 74px; z-index: 1; max-width: 780px; }
.kicker, .section-label { display: inline-flex; align-items: center; color: var(--gold); text-transform: uppercase; font-size: .78rem; letter-spacing: .08em; font-weight: 800; }
.hero h1 { font-size: clamp(2.25rem, 5vw, 4.6rem); line-height: 1; margin: 12px 0 18px; letter-spacing: 0; }
.hero p { font-size: 1.22rem; max-width: 620px; margin: 0 0 28px; color: rgba(255,255,255,.9); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-dots { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; gap: 8px; z-index: 5; }
.hero-dots button { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; background: transparent; cursor: pointer; padding: 0; }
.hero-dots button.is-active { background: var(--gold); border-color: var(--gold); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 10px 16px; border-radius: 6px; border: 1px solid transparent; font-weight: 800; cursor: pointer; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-light { background: #fff; color: var(--blue-dark); }
.btn-secondary { background: #f8fafc; color: #334155; border-color: #d8dee8; }
.btn-outline-gold { background: #fff; color: #a87018; border: 2px solid #c99a48; text-transform: uppercase; letter-spacing: .02em; }
.btn-outline-gold:hover { background: #fff8e8; color: var(--blue-dark); }

.home-quickbar { background: #fff; border-bottom: 1px solid #eadfc9; padding: 22px 0; }
.quickbar-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.quick-card { min-height: 154px; display: grid; grid-template-columns: 104px 1fr; gap: 18px; align-items: center; padding: 18px 22px; background: #fffdf8; border: 1px solid #ead8b8; border-radius: 8px; color: var(--ink); box-shadow: 0 10px 28px rgba(13, 51, 87, .06); }
.quick-card:hover { border-color: #d3a85b; box-shadow: 0 14px 34px rgba(13, 51, 87, .1); }
.quick-card span { display: block; color: #a87018; font-size: .82rem; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; }
.quick-card h2 { margin: 3px 0 8px; color: var(--blue-dark); font-family: 'Playfair Display', Georgia, serif; font-size: 1.55rem; line-height: 1.08; }
.quick-card p { margin: 0; color: var(--muted); }
.quick-seal { width: 104px; height: 104px; display: grid; place-items: center; border-radius: 50%; border: 3px solid #eee4d2; background: #fff; overflow: hidden; }
.quick-seal img { width: 74px; height: 92px; object-fit: contain; }
.prayer-image img { width: 100%; height: 100%; object-fit: cover; }
.quick-icon { width: 82px; height: 82px; display: grid; place-items: center; border-radius: 50%; background: #f7efe1; color: #a87018; border: 1px solid #e4cfaa; font-size: 2.2rem; justify-self: center; }
.mass-carousel-body { min-width: 0; }
.mass-slide { display: none; min-height: 78px; }
.mass-slide.is-active { display: block; animation: fadeIn .28s ease; }
.mass-slide p { font-size: .9rem; }
.mass-times { display: flex; flex-wrap: wrap; gap: 8px 14px; color: #a87018; }
.mass-times strong { font-size: 1.05rem; }
.mass-dots { display: flex; gap: 6px; margin-top: 12px; }
.mass-dots button { width: 8px; height: 8px; border-radius: 50%; border: 1px solid #c99a48; background: transparent; padding: 0; cursor: pointer; }
.mass-dots button.is-active { background: #c99a48; }
.prayer-card .btn { margin-top: 3px; min-width: 128px; }
.donation-card { grid-template-columns: 76px 1fr; background: #fff; }
.donation-heart { position: relative; width: 68px; height: 58px; justify-self: center; }
.donation-heart::before, .donation-heart::after { content: ""; position: absolute; inset: 5px 19px 15px 19px; border: 3px solid #f5a400; border-bottom: 0; border-radius: 30px 30px 0 0; transform: rotate(-45deg); transform-origin: 0 100%; }
.donation-heart::after { inset: 5px 14px 15px 24px; transform: rotate(45deg); transform-origin: 100% 100%; border-color: #ffb41b; }
.donation-card h2 { color: var(--blue); font-family: 'Inter', -apple-system, 'Segoe UI', sans-serif; font-size: 1.34rem; font-weight: 900; text-transform: uppercase; }
.donation-card p { font-size: .9rem; }
.donation-button { margin-top: 10px; min-height: 42px; display: inline-flex; align-items: center; justify-content: center; min-width: 126px; padding: 10px 18px; border-radius: 7px; background: #ffc226; color: #fff; font-size: 1rem; font-weight: 900; text-transform: uppercase; }
.prayer-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(8, 28, 48, .62); }
.prayer-modal[hidden] { display: none; }
.prayer-dialog { position: relative; width: min(760px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: #fff; border-radius: 8px; box-shadow: 0 30px 90px rgba(0,0,0,.35); }
.prayer-close { position: absolute; right: 12px; top: 8px; z-index: 2; border: 0; background: transparent; color: #0f172a; font-size: 1.6rem; font-weight: 900; cursor: pointer; }
.prayer-hero { position: relative; height: 210px; display: grid; align-items: end; overflow: hidden; background: #f8f4eb; border-bottom: 1px solid #e8dcc8; }
.prayer-hero img { width: 52%; height: 100%; object-fit: cover; object-position: center; }
.prayer-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,0) 0 42%, rgba(255,255,255,.92) 64%, #fff 100%); }
.prayer-badge { position: absolute; right: 38px; bottom: -22px; z-index: 1; width: 136px; height: 136px; display: grid; place-items: center; text-align: center; border-radius: 50%; border: 4px solid #b9b09d; background: #fff; color: #806744; font-weight: 900; line-height: 1.05; text-transform: uppercase; }
.prayer-form { display: grid; gap: 16px; padding: 34px 30px 28px; }
.prayer-form label { color: #7b6a52; text-transform: uppercase; font-size: .82rem; }
.prayer-form input, .prayer-form textarea { border-color: #dfe5ec; border-radius: 4px; }
.prayer-actions { display: flex; justify-content: end; }

.section { padding: 70px 0; }
.section-muted { background: #f8f4eb; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.section h2, .page-title h1 { font-size: clamp(1.8rem, 3.5vw, 3rem); line-height: 1.1; margin: 8px 0 18px; color: var(--blue-dark); letter-spacing: 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 24px; }
.section-head.centered { justify-content: center; text-align: center; }
.compact-head { margin-bottom: 14px; }
.section-head a { color: var(--blue); font-weight: 800; }
.schedule-list { display: grid; gap: 12px; }
.schedule-item { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 16px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 8px; }
.schedule-item strong { color: var(--blue-dark); }
.schedule-item span { font-weight: 800; }
.schedule-item small { grid-column: 1 / -1; color: var(--muted); }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card-grid.compact { grid-template-columns: repeat(2, 1fr); }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.service-card { min-height: 315px; display: grid; justify-items: center; text-align: center; align-content: start; gap: 12px; padding: 28px 20px 24px; background: #fff; border: 1px solid var(--line); border-bottom: 4px solid var(--gold); border-radius: 8px; box-shadow: 0 12px 32px rgba(13, 51, 87, .08); transition: transform .18s ease, box-shadow .18s ease; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-card img { width: 72px; height: 72px; object-fit: contain; margin-bottom: 4px; }
.service-card h3 { margin: 0; color: var(--blue-dark); font-size: 1.28rem; }
.service-card p { margin: 0; color: var(--muted); }
.service-card span { margin-top: auto; color: var(--blue); font-weight: 800; }
.content-card, .info-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; box-shadow: 0 8px 28px rgba(31,41,51,.06); transition: transform .18s ease, box-shadow .18s ease; }
.content-card:hover, .info-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-image { aspect-ratio: 16/10; background: #ddd center/cover no-repeat; }
.card-body, .info-card { padding: 20px; }
.card-body span { color: var(--gold); text-transform: uppercase; font-size: .75rem; font-weight: 800; }
.card-body h3, .info-card h3 { margin: 6px 0 8px; color: var(--blue-dark); font-size: 1.2rem; line-height: 1.2; }
.card-body p, .info-card p { margin: 0; color: var(--muted); }
.news-list { display: grid; gap: 12px; }
.news-row { display: grid; grid-template-columns: 118px 1fr; gap: 14px; align-items: center; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 22px rgba(13, 51, 87, .06); }
.news-row:hover strong { color: var(--blue); }
.news-thumb { width: 100%; aspect-ratio: 4/3; border-radius: 6px; background: #dbeafe center/cover no-repeat; }
.news-row strong { color: var(--blue-dark); line-height: 1.22; }
.news-row p { margin: 4px 0 0; color: var(--muted); font-size: .95rem; }
.link-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.link-card { display: grid; justify-items: center; text-align: center; gap: 7px; min-height: 150px; align-content: center; padding: 22px 18px; background: #fff; border: 1px solid var(--line); border-bottom: 4px solid var(--gold); border-radius: 8px; box-shadow: 0 8px 26px rgba(13, 51, 87, .07); }
.link-card img { max-width: 76px; height: 58px; object-fit: contain; }
.link-card strong { color: var(--blue-dark); font-size: 1.05rem; }
.link-card span { color: var(--muted); font-size: .9rem; word-break: break-word; }

.page-title { background: var(--paper); border-bottom: 1px solid var(--line); padding: 58px 0; }
.page-title p { font-size: 1.1rem; color: var(--muted); margin: 0; }
.services-title { background: linear-gradient(135deg, #eef7ff 0%, #fff 62%); }
.services-section { background: linear-gradient(180deg, #fff 0%, #f4f8fc 100%); }
.service-directory { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.service-feature-card { display: grid; grid-template-columns: 92px 1fr; gap: 20px; align-items: center; padding: 24px; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--gold); border-radius: 8px; box-shadow: 0 12px 34px rgba(13, 51, 87, .08); transition: transform .18s ease, box-shadow .18s ease; }
.service-feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.service-feature-icon { width: 92px; height: 92px; display: grid; place-items: center; border-radius: 50%; background: #eef7ff; border: 1px solid var(--line); }
.service-feature-icon img { width: 58px; height: 58px; object-fit: contain; }
.service-feature-card h2 { margin: 0 0 7px; color: var(--blue-dark); font-size: 1.35rem; }
.service-feature-card p { margin: 0; color: var(--muted); }
.service-feature-card span { display: inline-block; margin-top: 10px; color: var(--blue); font-weight: 900; }
.article-cover { margin-top: 36px; }
.article-cover img { border-radius: 8px; box-shadow: var(--shadow); width: 100%; }
.prose { font-size: 1.08rem; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1em; }
.prose h2, .prose h3 { color: var(--blue-dark); line-height: 1.2; }
.contact-box { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 28px; }
.form-panel, .admin-form { display: grid; gap: 14px; }
label { display: grid; gap: 6px; font-weight: 800; color: #334155; }
input, textarea, select { width: 100%; border: 1px solid #cfd8e3; border-radius: 6px; padding: 10px 12px; background: #fff; color: var(--ink); }
textarea { resize: vertical; }
.flash { width: min(1160px, calc(100% - 32px)); margin: 18px auto; padding: 12px 16px; border-radius: 6px; font-weight: 800; }
.flash-success { background: #dcfce7; color: #166534; }
.flash-danger { background: #fee2e2; color: #991b1b; }

.site-footer { background: #0d3357; color: rgba(255,255,255,.86); padding: 46px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
.footer-grid h2, .footer-grid h3 { color: #fff; margin-top: 0; }
.footer-grid a { display: block; margin: 6px 0; color: rgba(255,255,255,.78); }
.copyright { margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14); font-size: .9rem; color: rgba(255,255,255,.62); }

.admin-body { background: #f1f5f9; }
.admin-layout { min-height: 100vh; display: grid; grid-template-columns: 260px minmax(0, 1fr); }
.admin-sidebar { background: #172033; color: #fff; padding: 22px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-sidebar strong { display: block; margin-bottom: 18px; font-size: 1.15rem; }
.admin-sidebar nav { display: grid; gap: 4px; }
.admin-sidebar a { padding: 10px 12px; color: rgba(255,255,255,.86); border-radius: 6px; }
.admin-sidebar a:hover { background: rgba(255,255,255,.1); color: #fff; }
.admin-main { min-width: 0; overflow-x: hidden; padding: 28px; }
.admin-main h1 { margin-top: 0; color: #172033; }
.admin-panel, .admin-form, .admin-table, .admin-login-box { background: #fff; border: 1px solid #dbe3ef; border-radius: 8px; padding: 20px; box-shadow: 0 8px 24px rgba(15,23,42,.05); }
.banner-duration { grid-template-columns: 1fr auto; align-items: end; margin-bottom: 18px; }
.admin-thumb { width: 120px; aspect-ratio: 16/9; object-fit: cover; border-radius: 6px; border: 1px solid #dbe3ef; }
.admin-thumb.square { width: 68px; height: 68px; aspect-ratio: 1; object-fit: contain; background: #f8fafc; padding: 8px; }
.current-image-preview { display: inline-grid; gap: 8px; width: min(360px, 100%); padding: 12px; background: #f8fafc; border: 1px solid #dbe3ef; border-radius: 8px; }
.current-image-preview span { color: #475569; font-size: .82rem; font-weight: 900; text-transform: uppercase; }
.current-image-preview img { width: 100%; max-height: 210px; object-fit: contain; border-radius: 6px; background: #fff; border: 1px solid #e2e8f0; }
.rich-editor-source { display: none; }
.quill-editor-wrap { background: #fff; border: 1px solid #cfd8e3; border-radius: 8px; overflow: hidden; }
.quill-editor-wrap .ql-toolbar.ql-snow { border: 0; border-bottom: 1px solid #dbe3ef; background: #f8fafc; }
.quill-editor-wrap .ql-container.ql-snow { border: 0; min-height: 360px; font-size: 1rem; }
.quill-editor-wrap .ql-editor { min-height: 360px; line-height: 1.65; }
.admin-hint { margin: 14px 0 10px; color: #64748b; font-size: .92rem; font-weight: 700; }
.banner-table tbody tr, .sortable-content-table tbody tr, .schedule-table tbody tr { transition: background .15s ease, opacity .15s ease; }
.banner-table tbody tr.is-dragging, .sortable-content-table tbody tr.is-dragging, .schedule-table tbody tr.is-dragging { opacity: .45; background: #eff6ff; }
.drag-handle { width: 36px; height: 36px; border: 1px solid #cbd5e1; border-radius: 6px; background: #fff; color: var(--blue-dark); cursor: grab; font-weight: 900; }
.drag-handle:active { cursor: grabbing; }
.toggle-pill { min-width: 94px; height: 34px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid transparent; border-radius: 999px; padding: 4px 10px 4px 5px; font-size: .85rem; font-weight: 900; cursor: pointer; }
.toggle-pill span { width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(15,23,42,.22); }
.toggle-pill.is-on { background: #dcfce7; color: #166534; border-color: #86efac; }
.toggle-pill.is-off { background: #fee2e2; color: #991b1b; border-color: #fecaca; }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.admin-stats div { background: #fff; border: 1px solid #dbe3ef; border-radius: 8px; padding: 20px; }
.admin-stats strong { display: block; font-size: 2rem; color: var(--blue); }
.dashboard-head { align-items: flex-start; }
.dashboard-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.dashboard-stats a { display: grid; gap: 5px; min-height: 132px; padding: 20px; background: #fff; border: 1px solid #dbe3ef; border-radius: 8px; box-shadow: 0 8px 24px rgba(15,23,42,.05); color: #334155; text-decoration: none; transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.dashboard-stats a:hover { transform: translateY(-2px); border-color: #93c5fd; box-shadow: 0 14px 34px rgba(15,23,42,.08); }
.dashboard-stats a.is-alert { border-color: #f2c36d; background: #fffaf0; }
.dashboard-stats span { color: #64748b; font-size: .82rem; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }
.dashboard-stats strong { color: var(--blue-dark); font-size: 2.35rem; line-height: 1; }
.dashboard-stats small { color: #64748b; font-weight: 800; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr); gap: 18px; align-items: start; }
.dashboard-card { background: #fff; border: 1px solid #dbe3ef; border-radius: 8px; box-shadow: 0 8px 24px rgba(15,23,42,.05); overflow: hidden; }
.dashboard-card-wide { grid-column: span 1; }
.dashboard-card.is-warning { border-color: #f2c36d; }
.dashboard-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; background: #f8fafc; border-bottom: 1px solid #e2e8f0; }
.dashboard-card-head h2 { margin: 0; color: var(--blue-dark); font-size: 1rem; }
.dashboard-card-head a { color: var(--blue); font-weight: 900; font-size: .9rem; }
.dashboard-content-matrix { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 18px; }
.dashboard-content-matrix a { display: grid; gap: 6px; padding: 14px; border: 1px solid #dbe3ef; border-radius: 8px; background: #fbfdff; text-decoration: none; }
.dashboard-content-matrix a:hover { background: #eef7ff; border-color: #93c5fd; }
.dashboard-content-matrix strong { color: var(--blue-dark); }
.dashboard-content-matrix span { color: #334155; font-weight: 900; }
.dashboard-content-matrix small { color: #64748b; font-weight: 700; }
.dashboard-pills { display: flex; flex-wrap: wrap; gap: 10px; padding: 18px; }
.dashboard-pills span { display: inline-flex; align-items: center; gap: 6px; padding: 9px 12px; border: 1px solid #dbe3ef; border-radius: 999px; background: #f8fafc; color: #475569; font-weight: 800; }
.dashboard-pills strong { color: var(--blue-dark); }
.dashboard-shortcuts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 18px; }
.dashboard-shortcuts a { display: flex; align-items: center; min-height: 42px; padding: 10px 12px; border: 1px solid #dbe3ef; border-radius: 8px; background: #fbfdff; color: var(--blue-dark); font-weight: 900; text-decoration: none; }
.dashboard-shortcuts a:hover { background: #eef7ff; border-color: #93c5fd; }
.dashboard-list { display: grid; }
.dashboard-list div { position: relative; display: grid; gap: 4px; padding: 14px 88px 14px 18px; border-bottom: 1px solid #e2e8f0; }
.dashboard-list div:last-child { border-bottom: 0; }
.dashboard-list strong { color: #172033; }
.dashboard-list span, .dashboard-note, .dashboard-empty { color: #64748b; font-weight: 700; }
.dashboard-list a { position: absolute; top: 14px; right: 18px; color: var(--blue); font-weight: 900; }
.dashboard-list.compact div { padding-right: 18px; }
.dashboard-list.compact a { position: static; justify-self: start; }
.dashboard-note, .dashboard-empty { margin: 0; padding: 18px; }
.admin-head, .admin-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.admin-table { width: 100%; border-collapse: collapse; padding: 0; overflow: hidden; }
.table-scroll { width: 100%; overflow-x: auto; border-radius: 8px; }
.table-scroll .admin-table { min-width: 760px; }
.admin-table th, .admin-table td { text-align: left; border-bottom: 1px solid #e2e8f0; padding: 12px; vertical-align: top; }
.admin-table th { background: #f8fafc; color: #475569; font-size: .85rem; text-transform: uppercase; }
.admin-table .actions { white-space: nowrap; display: flex; gap: 10px; }
.admin-table a { color: var(--blue); font-weight: 800; }
.icon-actions { align-items: center; }
.icon-btn { min-width: 82px; height: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 8px; border: 1px solid #cbd5e1; background: #fff; color: var(--blue-dark); font-size: 1rem; line-height: 1; text-decoration: none; transition: background .15s ease, border-color .15s ease, transform .15s ease; }
.icon-btn small { font-size: .78rem; font-weight: 900; }
.icon-btn:hover { transform: translateY(-1px); background: #eef7ff; border-color: #93c5fd; }
.icon-btn.edit { color: #1d4ed8; }
.icon-btn.danger { color: #b91c1c; }
.icon-btn.danger:hover { background: #fee2e2; border-color: #fecaca; }
.admin-subtitle { margin: 5px 0 0; color: #64748b; font-weight: 700; }
.admin-form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.admin-actions-inline { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.schedule-admin-form { margin-bottom: 18px; }
.schedule-check { align-self: end; min-height: 42px; padding: 0 0 2px; }
.schedule-table td:nth-child(2) strong { display: block; color: var(--blue-dark); font-size: 1.02rem; }
.schedule-table td:nth-child(2) span { display: block; color: #334155; font-weight: 800; margin-top: 2px; }
.schedule-table td:nth-child(2) small { display: block; color: var(--muted); margin-top: 5px; max-width: 520px; }
.schedule-table td:nth-child(3) { color: #475569; font-weight: 800; }
.importer-form { margin-bottom: 18px; }
.importer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.importer-source { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 10px; padding: 16px; border: 1px solid #dbe3ef; border-radius: 8px; background: #f8fafc; }
.importer-source input { width: auto; margin-top: 4px; }
.importer-source strong { display: block; color: var(--blue-dark); }
.importer-source small { display: block; color: var(--muted); font-weight: 700; word-break: break-all; }
.importer-results h2 { margin-top: 0; color: var(--blue-dark); }
.importer-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.importer-list li { display: grid; gap: 2px; padding: 12px 14px; border-radius: 8px; border: 1px solid #dbe3ef; }
.importer-list li.ok { background: #f0fdf4; border-color: #bbf7d0; }
.importer-list li.skip { background: #f8fafc; color: #64748b; }
.importer-list span { font-size: .86rem; font-weight: 800; text-transform: uppercase; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.check { display: flex; align-items: center; gap: 8px; padding-top: 28px; }
.check input { width: auto; }
.editor { min-height: 360px; font-family: Consolas, monospace; }
.media-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 20px; }
.media-grid div { background: #fff; border: 1px solid #dbe3ef; border-radius: 8px; padding: 10px; }
.media-grid img { aspect-ratio: 4/3; object-fit: cover; width: 100%; border-radius: 6px; margin-bottom: 8px; }
.media-grid input { font-size: .8rem; }
.admin-login { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 18% 12%, rgba(216,173,64,.18), transparent 30%), linear-gradient(135deg, #0d3357 0%, #124a79 48%, #f4f8fc 48.2%, #ffffff 100%); }
.admin-login-box { width: min(440px, 100%); display: grid; gap: 16px; padding: 30px; border-radius: 10px; border: 1px solid rgba(216,173,64,.22); box-shadow: 0 24px 70px rgba(13,51,87,.24); }
.login-brand-panel { display: grid; justify-items: center; gap: 4px; text-align: center; padding-bottom: 8px; border-bottom: 1px solid #e6edf5; }
.login-brand-panel img { width: 92px; height: 126px; object-fit: contain; }
.login-brand-panel span { color: var(--gold); font-size: .82rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.login-brand-panel strong { color: var(--blue-dark); font-family: 'Playfair Display', Georgia, serif; font-size: 1.52rem; line-height: 1; }
.login-title { text-align: center; }
.login-title span { display: inline-flex; color: var(--gold); font-size: .74rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.login-title h1 { margin: 4px 0 8px; color: #172033; font-size: 1.75rem; line-height: 1.12; }
.login-title p { margin: 0; color: #64748b; font-size: .95rem; }
.admin-login-box label { color: #334155; }
.admin-login-box input { min-height: 46px; border-radius: 8px; background: #f8fafc; }
.admin-login-box input:focus { outline: 2px solid rgba(31,111,170,.18); border-color: var(--blue); background: #fff; }
.login-submit { width: 100%; min-height: 48px; border-radius: 8px; }
.login-back { display: inline-flex; justify-content: center; color: var(--blue); font-weight: 900; }
.login-recaptcha { display: flex; justify-content: center; min-height: 78px; }

@media (max-width: 1100px) {
  .topbar { justify-content: center; flex-wrap: wrap; padding: 8px 0; }
  .header-inner { height: auto; min-height: 72px; flex-wrap: wrap; padding: 10px 0; }
  .brand { max-width: calc(100% - 92px); gap: 10px; }
  .brand-crest { flex-basis: 60px; width: 60px; height: 86px; }
  .brand-name span { font-size: .82rem; }
  .brand-name strong { font-size: 1.1rem; }
  .quickbar-grid { grid-template-columns: 1fr; }
  .quick-card { min-height: 132px; }
  .menu-toggle { display: inline-flex; }
  .main-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding-bottom: 12px; }
  .main-nav.is-open { display: flex; }
  .nav-item > a, .main-nav > a { border-top: 1px solid var(--line); border-radius: 0; white-space: normal; }
  .submenu { position: static; display: block; min-width: 0; border: 0; border-left: 3px solid var(--gold); box-shadow: none; border-radius: 0; padding: 0 0 6px 12px; background: #fff; }
  .submenu a { white-space: normal; }
  .hero { min-height: 500px; }
  .hero-content { left: 16px; right: 16px; bottom: 56px; }
  .split, .footer-grid, .admin-layout { grid-template-columns: 1fr; }
  .card-grid, .card-grid.compact, .service-grid, .service-directory, .link-grid, .admin-stats, .dashboard-stats, .dashboard-grid, .dashboard-content-matrix, .dashboard-shortcuts, .media-grid, .form-grid { grid-template-columns: 1fr; }
  .service-feature-card { grid-template-columns: 72px 1fr; padding: 18px; }
  .service-feature-icon { width: 72px; height: 72px; }
  .service-feature-icon img { width: 46px; height: 46px; }
  .banner-duration { grid-template-columns: 1fr; }
  .news-row { grid-template-columns: 92px 1fr; }
  .admin-sidebar { position: static; height: auto; }
  .admin-main { padding: 18px; }
}

.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.footer-social { display: flex; gap: 12px; margin-top: 12px; }
.footer-social a { color: var(--gold); font-weight: 700; text-decoration: none; }
.footer-social a:hover { text-decoration: underline; }
.contact-map { margin-top: 32px; }
.contact-map iframe { width: 100%; height: 380px; border: 0; border-radius: 12px; }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-item { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.gallery-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; transition: transform .25s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.lightbox { position: fixed; inset: 0; z-index: 999; background: rgba(10, 18, 35, .92); display: flex; align-items: center; justify-content: center; padding: 48px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; }
.lightbox-close { position: absolute; top: 16px; right: 20px; font-size: 2.2rem; background: none; border: 0; color: #fff; cursor: pointer; line-height: 1; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); font-size: 1.6rem; background: rgba(255, 255, 255, .12); border: 0; color: #fff; cursor: pointer; width: 48px; height: 48px; border-radius: 50%; }
.lightbox-nav.prev { left: 16px; }
.lightbox-nav.next { right: 16px; }
.lightbox-nav:hover { background: rgba(255, 255, 255, .25); }

@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .lightbox { padding: 16px; }
}

.footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .1); color: var(--gold); transition: background .15s ease, transform .15s ease; }
.footer-social a:hover { background: var(--gold); color: #1c2940; transform: translateY(-2px); text-decoration: none; }
.footer-social svg { width: 20px; height: 20px; }
.home-gallery { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 900px) {
  .home-gallery { grid-template-columns: repeat(2, 1fr); }
}

/* === Polimento visual (tipografia, profundidade, movimento) === */

.site-body h1, .site-body h2, .site-body .hero h1, .site-body .page-title h1, .site-body .footer-grid h2 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  letter-spacing: .005em;
}

.kicker, .section-label { gap: 10px; }
.kicker::before, .section-label::before { content: ""; width: 26px; height: 2px; background: var(--gold); border-radius: 2px; }
.section-head.centered .section-label::after { content: ""; width: 26px; height: 2px; background: var(--gold); border-radius: 2px; margin-left: 10px; }
.section-head.centered .section-label { gap: 10px; }

.btn { border-radius: 999px; padding: 10px 24px; transition: background .18s ease, transform .18s ease, box-shadow .18s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { box-shadow: 0 10px 24px rgba(18, 74, 121, .3); }
.btn-light:hover { background: var(--gold-soft); }

.hero-slide.is-active .hero-media { animation: heroZoom 9s ease-out forwards; }
@keyframes heroZoom { from { transform: scale(1.02); } to { transform: scale(1.1); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.hero-overlay { background: linear-gradient(90deg, rgba(9, 39, 67, .9), rgba(18, 74, 121, .55) 50%, rgba(13, 51, 87, .18)), linear-gradient(0deg, rgba(9, 30, 52, .55), transparent 38%); }

.service-card, .content-card, .info-card, .news-row, .link-card, .schedule-item,
.service-feature-card, .contact-box, .gallery-item, .form-panel input, .form-panel textarea { border-radius: 14px; }
.form-panel input, .form-panel textarea { border-radius: 10px; padding: 12px 14px; transition: border-color .15s ease, box-shadow .15s ease; }
.form-panel input:focus, .form-panel textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31, 111, 170, .15); }

.news-row { transition: transform .18s ease, box-shadow .18s ease; }
.news-row:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.link-card { transition: transform .18s ease, box-shadow .18s ease; }
.link-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.gallery-item { box-shadow: 0 8px 24px rgba(13, 51, 87, .08); }

.page-title { padding: 64px 0; background: linear-gradient(135deg, #eef5fb 0%, #fdfaf2 100%); }

.prose img { border-radius: 12px; height: auto; }
.prose a { color: var(--blue); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.footer-grid h3 { font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; color: var(--gold-soft); padding-bottom: 10px; position: relative; }
.footer-grid h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 30px; height: 2px; background: var(--gold); }
.footer-grid a:hover { color: #fff; }
.site-footer { background: linear-gradient(180deg, #0d3357 0%, #092743 100%); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

.back-to-top { position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--blue-dark); color: #fff; font-size: 1.2rem; cursor: pointer; box-shadow: 0 10px 26px rgba(13, 51, 87, .35); opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .25s ease, transform .25s ease, background .15s ease; }
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.back-to-top:hover { background: var(--blue); }

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
  .hero-slide.is-active .hero-media { animation: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 1100px) and (min-width: 901px) {
  .quickbar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-grid, .link-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .news-feature-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .section { padding: 48px 0; }
  .hero h1 { font-size: clamp(1.9rem, 8vw, 2.6rem); }
  .hero p { font-size: 1.05rem; }
  .brand span { white-space: normal; }
  .news-search { grid-template-columns: 1fr; }
  .news-archive-head { align-items: start; flex-direction: column; }
  .news-feature-grid, .news-feature-grid .content-card:first-child { grid-template-columns: 1fr; grid-column: auto; }
  .news-compact-item { grid-template-columns: 120px 1fr; }
  .back-to-top { right: 14px; bottom: 14px; }
}

@media (max-width: 560px) {
  .topbar .top-contact:nth-child(2) { display: none; }
  .gallery-grid, .home-gallery { grid-template-columns: 1fr; }
  .hero { min-height: 440px; }
  .hero-content { bottom: 48px; }
  .quick-card { grid-template-columns: 72px 1fr; padding: 16px; }
  .quick-seal { width: 72px; height: 72px; }
  .quick-seal img { width: 50px; height: 64px; }
  .quick-icon { width: 62px; height: 62px; font-size: 1.7rem; }
  .quick-card h2 { font-size: 1.22rem; }
  .prayer-hero { height: 170px; }
  .prayer-hero img { width: 70%; }
  .prayer-badge { right: 20px; width: 102px; height: 102px; font-size: .8rem; }
  .prayer-form { padding: 30px 18px 22px; }
  .news-compact-item { grid-template-columns: 1fr; }
}

.form-panel .btn { justify-self: start; padding: 12px 34px; }

/* === Notícias, navegação e utilidades === */

.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; font-size: .85rem; color: var(--muted); }
.breadcrumbs a { color: var(--blue); font-weight: 700; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs .sep { color: var(--gold); font-weight: 800; }
.breadcrumbs span[aria-current] { font-weight: 700; }

.filter-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.chip { padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 700; font-size: .9rem; color: #334155; transition: background .15s ease, color .15s ease, border-color .15s ease; }
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }

.news-title p { max-width: 680px; font-size: 1.1rem; color: var(--muted); }
.news-archive-section { background: linear-gradient(180deg, #fff 0%, #f8fbfe 100%); }
.vatican-widget-section { margin: 46px 0 0; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 12px 34px rgba(13, 51, 87, .07); }
.vatican-widget-section .news-archive-head { margin-top: 0; }
.vatican-widget-box { width: 100%; min-height: 570px; }
.vatican-widget-box vaticannews-widget { display: block; width: 100%; min-height: 570px; }
.news-search { display: grid; grid-template-columns: minmax(0, 1fr) 220px auto auto; gap: 12px; align-items: end; margin-bottom: 22px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 28px rgba(13, 51, 87, .06); }
.news-search label { gap: 7px; }
.news-search label span { color: var(--blue-dark); font-size: .88rem; text-transform: uppercase; letter-spacing: .04em; }
.news-search input, .news-search select { min-height: 46px; border-radius: 999px; padding-inline: 18px; }
.news-archive-head { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin: 28px 0 22px; }
.news-archive-head h2 { margin: 6px 0 0; color: var(--blue-dark); font-size: clamp(1.7rem, 3vw, 2.5rem); }
.news-archive-head strong { color: #475569; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; white-space: nowrap; }
.news-feature-grid { grid-template-columns: repeat(4, 1fr); }
.news-feature-grid .content-card:first-child { grid-column: span 2; }
.news-feature-grid .content-card:first-child .card-image { aspect-ratio: 16/8; }
.news-more { margin-top: 46px; }
.news-compact-list { display: grid; gap: 14px; }
.news-compact-item { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 18px; align-items: center; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 8px 22px rgba(13, 51, 87, .05); transition: transform .18s ease, box-shadow .18s ease; }
.news-compact-item:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.news-compact-thumb { width: 100%; aspect-ratio: 16/10; border-radius: 10px; background: #dbeafe center/cover no-repeat; }
.news-compact-item time { display: block; color: var(--gold); font-size: .8rem; font-weight: 900; text-transform: uppercase; margin-bottom: 4px; }
.news-compact-item strong { display: block; color: var(--blue-dark); font-size: 1.08rem; line-height: 1.22; }
.news-compact-item p { margin: 6px 0 0; color: var(--muted); }
.empty-state { padding: 34px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.empty-state h2 { margin: 0 0 8px; color: var(--blue-dark); }
.empty-state p { margin: 0; color: var(--muted); }

@media (max-width: 1100px) and (min-width: 901px) {
  .news-feature-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .vatican-widget-section { padding: 16px; }
  .news-search { grid-template-columns: 1fr; }
  .news-archive-head { align-items: start; flex-direction: column; }
  .news-feature-grid { grid-template-columns: 1fr; }
  .news-feature-grid .content-card:first-child { grid-column: auto; }
  .news-compact-item { grid-template-columns: 120px 1fr; }
}

@media (max-width: 560px) {
  .news-compact-item { grid-template-columns: 1fr; }
}

.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 36px; }
.pagination a { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 700; font-size: .92rem; color: #334155; transition: background .15s ease, color .15s ease; }
.pagination a:hover { border-color: var(--blue); color: var(--blue); }
.pagination a.is-active { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }

.card-date { display: block; margin-top: 10px; font-size: .82rem; color: var(--muted); font-weight: 600; }
.article-meta { color: var(--muted); font-size: .98rem; margin: 0; }

.notfound-links { display: flex; flex-wrap: wrap; gap: 12px; }

.whatsapp-float { position: fixed; left: 22px; bottom: 22px; z-index: 60; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 12px 30px rgba(18, 140, 80, .4); transition: transform .18s ease, box-shadow .18s ease; }
.whatsapp-float:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 16px 36px rgba(18, 140, 80, .5); }
.whatsapp-float svg { width: 30px; height: 30px; }

@media (max-width: 900px) {
  .whatsapp-float { left: 14px; bottom: 14px; width: 52px; height: 52px; }
}

.admin-warning { margin-top: 16px; border-left: 4px solid #f59e0b; }
.thin-content-list { margin: 8px 0 0; padding-left: 18px; columns: 2; }
.thin-content-list li { margin-bottom: 6px; }
.thin-content-list a { color: var(--blue); font-weight: 700; }
.thin-content-list small { color: #94a3b8; }

@media (max-width: 900px) { .thin-content-list { columns: 1; } }

/* === Conteúdo enriquecido (pastorais, comunidades, serviços) === */

.prose .lead { font-size: 1.22rem; line-height: 1.6; color: #475569; }
.prose ul { padding-left: 22px; }
.prose ul li { margin-bottom: 8px; }
.box-contato { background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 12px; padding: 22px 26px; margin: 28px 0 8px; }
.box-contato h3 { margin: 0 0 12px; color: var(--blue-dark); font-size: 1.05rem; }
.box-contato p { margin: 0 0 6px; }
.box-contato p:last-child { margin-bottom: 0; }

.destaque-missa { display: grid; gap: 4px; justify-items: start; margin: 26px 0; padding: 24px 30px; border-radius: 14px; background: linear-gradient(120deg, var(--blue-deep) 0%, var(--blue-dark) 100%); color: #fff; border-left: 5px solid var(--gold); box-shadow: 0 14px 34px rgba(13, 51, 87, .25); }
.destaque-missa span { text-transform: uppercase; font-size: .78rem; letter-spacing: .1em; font-weight: 800; color: var(--gold-soft); }
.destaque-missa strong { font-size: 1.5rem; font-family: 'Playfair Display', Georgia, serif; }

.foto-padre { float: right; width: min(300px, 42%); margin: 6px 0 18px 26px; }
.foto-padre img { border-radius: 14px; box-shadow: var(--shadow); width: 100%; }
.prose::after { content: ""; display: block; clear: both; }

@media (max-width: 640px) {
  .foto-padre { float: none; width: min(300px, 100%); margin: 0 auto 20px; }
}

.admin-filtros { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: #fff; border: 1px solid #dbe3ef; border-radius: 8px; padding: 14px 16px; margin-bottom: 16px; }
.admin-filtros input[type="search"] { flex: 1; min-width: 220px; }
.admin-filtros select { width: auto; min-width: 170px; }
.admin-filtros-total { margin-left: auto; color: #64748b; font-size: .88rem; font-weight: 700; white-space: nowrap; }
.bulk-actions-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: #fff; border: 1px solid #dbe3ef; border-radius: 8px; padding: 12px 16px; margin: -6px 0 16px; box-shadow: 0 8px 20px rgba(15,23,42,.04); }
.bulk-actions-bar strong { color: #334155; margin-right: 4px; }
.bulk-actions-hint { color: #64748b; font-size: .86rem; font-weight: 700; }
.bulk-col { width: 42px; text-align: center !important; }
.bulk-col input { width: 18px; height: 18px; accent-color: var(--gold); }
.admin-table thead a { color: #475569; text-decoration: none; display: inline-block; }
.admin-table thead a:hover { color: var(--blue); }
.admin-vazio { text-align: center; color: #94a3b8; padding: 28px !important; }
.admin-pagination { margin-top: 20px; }

@media (max-width: 900px) {
  .admin-filtros { flex-direction: column; align-items: stretch; }
  .admin-filtros select { width: 100%; }
  .admin-filtros-total { margin-left: 0; }
  .bulk-actions-bar { align-items: stretch; flex-direction: column; }
  .bulk-actions-bar .btn { width: 100%; }
}

.form-section { margin: 22px 0 4px; padding-bottom: 8px; border-bottom: 2px solid #eef2f7; color: #172033; font-size: 1.05rem; }
.form-section:first-of-type { margin-top: 0; }
.campo-dica { font-weight: 600; color: #94a3b8; font-size: .8rem; }
.campo-dica.estourado { color: #b45309; }
.settings-head { align-items: flex-start; }
.settings-form { display: grid; gap: 18px; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.settings-card { background: #fff; border: 1px solid #dbe3ef; border-radius: 8px; box-shadow: 0 8px 24px rgba(15,23,42,.05); overflow: hidden; }
.settings-card-head { padding: 16px 18px; background: linear-gradient(135deg, #f8fafc 0%, #fff 100%); border-bottom: 1px solid #e2e8f0; }
.settings-card h2 { margin: 0; color: var(--blue-dark); font-size: 1rem; }
.settings-fields { display: grid; gap: 14px; padding: 18px; }
.settings-fields label span { color: #334155; font-size: .92rem; }
.settings-fields input, .settings-fields textarea { border-color: #cbd5e1; background: #fbfdff; }
.settings-fields input:focus, .settings-fields textarea:focus { outline: 2px solid rgba(22, 100, 162, .18); border-color: var(--blue); background: #fff; }
.settings-fields small { display: block; margin-top: 2px; color: #64748b; font-size: .8rem; font-weight: 700; line-height: 1.35; }
.settings-savebar { position: sticky; bottom: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 16px; background: rgba(255,255,255,.94); border: 1px solid #dbe3ef; border-radius: 8px; box-shadow: 0 -8px 24px rgba(15,23,42,.08); backdrop-filter: blur(8px); }
.settings-savebar span { color: #64748b; font-weight: 800; }
.settings-savebar .admin-actions-inline { justify-content: flex-end; }
.toggle-pill.is-scheduled { background: #dbeafe; color: #1d4ed8; border-color: #93c5fd; }
.agendado-aviso { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 8px; padding: 12px 16px; color: #1d4ed8; }

@media (max-width: 980px) {
  .settings-grid { grid-template-columns: 1fr; }
  .settings-savebar { align-items: stretch; flex-direction: column; }
  .settings-savebar .admin-actions-inline { width: 100%; flex-direction: column; }
  .settings-savebar .btn { width: 100%; }
}

/* === Galeria e vídeos por conteúdo === */

.galeria-admin { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 12px; }
.galeria-admin-item { background: #f8fafc; border: 1px solid #dbe3ef; border-radius: 8px; padding: 10px; display: grid; gap: 8px; }
.galeria-admin-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; }
.galeria-admin-item input { font-size: .82rem; padding: 7px 9px; }
.galeria-admin-item .check.remover { padding-top: 0; font-size: .82rem; color: #b91c1c; }

.article-gallery, .article-videos { padding-top: 0; }
.article-gallery-title { font-size: 1.4rem; color: var(--blue-dark); margin: 0 0 18px; }
.gallery-item { position: relative; }
.gallery-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 10px; background: linear-gradient(0deg, rgba(9, 24, 41, .78), transparent); color: #fff; font-size: .85rem; font-weight: 600; }
.video-embed { position: relative; aspect-ratio: 16/9; margin: 0 0 22px; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); background: #0d1828; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.instagram-media { margin: 0 auto 22px !important; }

@media (max-width: 900px) {
  .galeria-admin { grid-template-columns: repeat(2, 1fr); }
}

/* === Sidebar recolhível e seções === */

.sidebar-topo { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.sidebar-marca { display: block; margin-bottom: 0 !important; font-size: 1.1rem; white-space: nowrap; overflow: hidden; }
.sidebar-toggle { flex-shrink: 0; width: 32px; height: 32px; border: 1px solid rgba(255,255,255,.25); border-radius: 8px; background: rgba(255,255,255,.08); color: #fff; cursor: pointer; font-size: 1rem; line-height: 1; transition: background .15s ease; }
.sidebar-toggle:hover { background: rgba(255,255,255,.2); }
.admin-sidebar nav a { display: flex; align-items: center; gap: 10px; white-space: nowrap; overflow: hidden; }
.admin-sidebar nav a i { font-style: normal; font-size: 1.05rem; width: 22px; text-align: center; flex-shrink: 0; }
.nav-grupo { display: block; margin: 14px 0 4px; padding: 0 12px; font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.45); white-space: nowrap; overflow: hidden; min-height: 4px; }

.sidebar-recolhida .admin-layout { grid-template-columns: 72px minmax(0, 1fr); }
.sidebar-recolhida .admin-sidebar { padding: 22px 12px; }
.sidebar-recolhida .sidebar-marca { display: none; }
.sidebar-recolhida .sidebar-topo { justify-content: center; }
.sidebar-recolhida .admin-sidebar nav a span { display: none; }
.sidebar-recolhida .admin-sidebar nav a { justify-content: center; padding: 10px 8px; }
.sidebar-recolhida .nav-grupo { padding: 0; font-size: 0; border-top: 1px solid rgba(255,255,255,.12); margin: 12px 4px 8px; }

.permissoes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 16px; margin-bottom: 10px; }
.permissoes-grid .check { padding-top: 4px; font-weight: 600; font-size: .92rem; }
.permissao-grupo { margin: 14px 0 6px; color: #475569; font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; }

@media (max-width: 900px) {
  .sidebar-recolhida .admin-layout { grid-template-columns: 1fr; }
  .permissoes-grid { grid-template-columns: 1fr; }
}

/* === Quadro da missa ao vivo === */

.missa-live { background: linear-gradient(160deg, #eef5fb 0%, #f8f4eb 100%); border-bottom: 1px solid var(--line); }
.missa-live-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) 1fr; gap: 32px; align-items: center; }
.missa-player { margin: 0; }
.missa-live-info h3 { font-family: 'Playfair Display', Georgia, serif; color: var(--blue-dark); font-size: 1.5rem; margin: 0 0 12px; }
.missa-live-info p { color: #475569; margin: 0 0 20px; }
.missa-live-acoes { display: flex; flex-wrap: wrap; gap: 12px; }
.badge-aovivo { display: inline-flex; align-items: center; gap: 8px; background: #dc2626; color: #fff; font-weight: 900; font-size: .82rem; letter-spacing: .08em; padding: 8px 16px; border-radius: 999px; box-shadow: 0 8px 22px rgba(220, 38, 38, .35); }
.badge-aovivo .pulso { width: 10px; height: 10px; border-radius: 50%; background: #fff; animation: pulsoAoVivo 1.4s ease-in-out infinite; }
@keyframes pulsoAoVivo { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.7); } }

@media (max-width: 900px) {
  .missa-live-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .badge-aovivo .pulso { animation: none; }
}

/* === Quickbar: alinhamento uniforme dos 4 cards === */

.quick-card { grid-template-columns: 92px minmax(0, 1fr); gap: 16px; padding: 20px 22px; }
.quick-seal { width: 92px; height: 92px; }
.quick-seal img { width: 64px; height: 80px; }
.quick-icon { width: 92px; height: 92px; background: #f7efe1; color: #a87018; border: 3px solid #eee4d2; font-size: 2.3rem; }
.quick-card h2 { font-size: 1.3rem; line-height: 1.15; }
.mass-card h2 { font-size: 1.38rem; }

.liturgy-card h2 { font-size: 1.12rem; line-height: 1.28; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.liturgy-card p { font-size: .85rem; }
.liturgy-card p strong { color: #a87018; font-weight: 800; }

.cor-liturgica { display: inline-block; width: 11px; height: 11px; border-radius: 50%; vertical-align: -1px; margin: 0 4px 0 8px; border: 1px solid rgba(0, 0, 0, .18); }
.cor-verde { background: #2e7d32; }
.cor-vermelho, .cor-vermelha { background: #c62828; }
.cor-branco, .cor-branca { background: #fdfdfd; }
.cor-roxo, .cor-roxa { background: #6a1b9a; }
.cor-rosa { background: #ec407a; }
.cor-preto, .cor-preta { background: #1f2933; }
.cor-dourado, .cor-dourada { background: var(--gold); }

.donation-card { grid-template-columns: 92px minmax(0, 1fr); }
.donation-seal { background: #fff8e8; border-color: #f3e3bd; }
.donation-seal svg { width: 46px; height: 46px; }
.donation-card h2 { font-size: 1.16rem; }
.donation-card p { font-size: .85rem; }
.donation-button { margin-top: 8px; min-height: 38px; min-width: 112px; font-size: .92rem; border-radius: 999px; background: #f0a818; box-shadow: 0 8px 18px rgba(240, 168, 24, .35); transition: background .15s ease; }
.donation-card:hover .donation-button { background: #d99812; }

.prayer-card h2 { font-size: 1.22rem; }
.prayer-card .btn { margin-top: 8px; min-height: 38px; border-radius: 999px; font-size: .92rem; }

.liturgy-card, .donation-card { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.liturgy-card:hover, .donation-card:hover { transform: translateY(-2px); }

@media (max-width: 1100px) and (min-width: 641px) {
  .quickbar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .quickbar-grid { grid-template-columns: 1fr; }
  .quick-card { grid-template-columns: 76px minmax(0, 1fr); padding: 16px 18px; min-height: 0; }
  .quick-seal, .quick-icon { width: 76px; height: 76px; }
  .quick-seal img { width: 52px; height: 66px; }
  .quick-icon { font-size: 1.9rem; }
  .donation-seal svg { width: 38px; height: 38px; }
}

.cor-wrap { white-space: nowrap; display: inline-block; }

/* grade da quickbar adapta-se ao numero de cards ativos */
.quickbar-grid.cards-1 { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin: 0 auto; }
.quickbar-grid.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.quickbar-grid.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 1100px) and (min-width: 641px) {
  .quickbar-grid.cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* === Header mais compacto === */
.header-inner { min-height: 104px; }
.brand-crest { flex-basis: 62px; width: 62px; height: 90px; }
.brand-name span { font-size: .98rem; }
.brand-name strong { font-size: clamp(1.22rem, 1.6vw, 1.5rem); }

/* === Quickbar: titulos em Inter (mais legivel em tamanho pequeno) === */
.quick-card h2 { font-family: 'Inter', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; font-weight: 800; font-size: 1.18rem; line-height: 1.22; letter-spacing: -.01em; }
.mass-card h2 { font-size: 1.28rem; }
.liturgy-card h2 { font-size: 1.02rem; line-height: 1.32; }
.prayer-card h2 { font-size: 1.1rem; }
.donation-card h2 { font-size: 1.08rem; }
.mass-times strong { font-size: 1.12rem; font-weight: 800; }

@media (max-width: 900px) {
  .header-inner { min-height: 80px; }
  .brand-crest { flex-basis: 48px; width: 48px; height: 70px; }
  .brand-name strong { font-size: 1.08rem; }
  .brand-name span { font-size: .82rem; }
}

/* === Quickbar: textos centralizados === */
.quick-card > div:last-child, .mass-carousel-body { text-align: center; }
.mass-times { justify-content: center; }
.mass-dots { justify-content: center; }

.quick-card .cor-wrap { display: inline-block; }
.quick-card .cor-liturgica { display: inline-block; }

.icone-dourado { background: #f7efe1; border-color: #eee4d2; color: #a87018; }
.icone-dourado svg { width: 48px; height: 48px; }

/* corrige especificidade das variantes cards-N nos breakpoints */
@media (max-width: 1100px) and (min-width: 641px) {
  .quickbar-grid.cards-2, .quickbar-grid.cards-3, .quickbar-grid.cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .quickbar-grid, .quickbar-grid.cards-1, .quickbar-grid.cards-2, .quickbar-grid.cards-3, .quickbar-grid.cards-4 { grid-template-columns: 1fr; }
}

/* === Versiculo do dia (topbar) === */
.top-versiculo { flex: 1; min-width: 0; text-align: center; font-style: italic; font-size: .88rem; color: rgba(255, 255, 255, .92); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 12px; }
.top-versiculo em { font-style: normal; color: var(--gold-soft); font-weight: 700; }

/* === Icones SVG dos servicos === */
.service-icon-svg { width: 84px; height: 84px; display: grid; place-items: center; border-radius: 50%; background: #f7efe1; border: 3px solid #eee4d2; color: #a87018; margin-bottom: 4px; }
.service-icon-svg svg { width: 44px; height: 44px; }
.service-feature-icon.icone-dourado svg { width: 50px; height: 50px; }

/* === Card Siga a Basilica === */
.follow-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 14px; padding: 18px 22px; background: linear-gradient(135deg, #0d3357 0%, #124a79 100%); border-radius: 14px; color: #fff; box-shadow: 0 12px 30px rgba(13, 51, 87, .25); }
.follow-card strong { display: block; font-family: 'Playfair Display', Georgia, serif; font-size: 1.2rem; }
.follow-card p { margin: 2px 0 0; color: rgba(255, 255, 255, .75); font-size: .9rem; }
.follow-links { display: flex; gap: 10px; }
.follow-links a { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .12); color: var(--gold-soft); transition: background .15s ease, transform .15s ease; }
.follow-links a:hover { background: var(--gold); color: #1c2940; transform: translateY(-2px); }
.follow-links svg { width: 20px; height: 20px; }

/* === Missas no rodape === */
.footer-missa { display: block; margin: 6px 0; color: rgba(255, 255, 255, .78); font-size: .94rem; }
.footer-missa strong { color: #fff; font-weight: 700; }
.footer-grid { grid-template-columns: 1.8fr 1fr 1fr; }

/* === Palavra do Paroco === */
.palavra-paroco { background: linear-gradient(160deg, #fdfaf2 0%, #eef5fb 100%); border-top: 1px solid #eadfc9; border-bottom: 1px solid var(--line); }
.palavra-paroco-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; align-items: center; }
.paroco-foto img { width: 200px; height: 200px; object-fit: cover; object-position: top; border-radius: 50%; border: 5px solid #fff; box-shadow: var(--shadow); margin: 0 auto; }
.paroco-citacao { margin: 14px 0 12px; font-family: 'Playfair Display', Georgia, serif; font-size: clamp(1.2rem, 2.2vw, 1.6rem); line-height: 1.45; color: var(--blue-dark); }
.paroco-assinatura { color: var(--muted); margin: 0 0 18px; }

/* === Aviso no topo da home === */
.aviso-home { background: linear-gradient(90deg, #b8860b, var(--gold)); color: #fff; }
.aviso-home-inner { display: flex; align-items: center; gap: 14px; padding: 10px 0; flex-wrap: wrap; }
.aviso-badge { background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .4); padding: 2px 12px; border-radius: 999px; font-size: .75rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.aviso-texto { font-weight: 700; flex: 1; min-width: 200px; }
.aviso-link { font-weight: 900; color: #fff; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

@media (max-width: 900px) {
  .top-versiculo { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .palavra-paroco-grid { grid-template-columns: 1fr; text-align: center; gap: 20px; }
  .paroco-foto img { width: 150px; height: 150px; }
  .follow-card { justify-content: center; text-align: center; }
}

.service-card .service-icon-svg { color: #a87018; margin-top: 0; }

/* === Bloco de horarios em 3 cards === */
.horarios-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
.horario-card { background: #fff; border: 1px solid #ead8b8; border-bottom: 4px solid var(--gold); border-radius: 14px; padding: 28px 24px 24px; text-align: center; box-shadow: 0 12px 32px rgba(13, 51, 87, .08); display: flex; flex-direction: column; align-items: center; }
.horario-card .quick-seal { width: 84px; height: 84px; margin-bottom: 14px; }
.horario-card .quick-seal svg { width: 42px; height: 42px; }
.horario-card h3 { margin: 0 0 2px; color: var(--blue-dark); font-size: 1.22rem; }
.horario-sub { margin: 0 0 16px; color: var(--muted); font-size: .88rem; }
.horario-linhas { width: 100%; display: grid; gap: 0; }
.horario-linha { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 9px 2px; border-bottom: 1px dashed #e8dcc4; }
.horario-linha:last-child { border-bottom: 0; }
.horario-linha span { color: #475569; font-weight: 600; text-align: left; }
.horario-linha strong { color: #a87018; font-weight: 800; white-space: nowrap; }
.horario-vazio { color: var(--muted); font-size: .9rem; margin: 8px 0 0; }

@media (max-width: 1100px) and (min-width: 641px) {
  .horarios-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .horarios-grid { grid-template-columns: 1fr; }
}
