:root {
  --bg-page: #faf7f1;
  --bg-card: #ffffff;
  --bg-warm: #f2ece0;
  --bg-dark: #19293a;
  --bg-dark-2: #22364c;
  --text-main: #23201c;
  --text-muted: #5e574e;
  --text-light: #f9f6f0;
  --gold: #9a7332;
  --gold-light: #dfc48e;
  --gold-soft: #f6eedc;
  --crimson: #7c2f29;
  --border: #e4dccb;
  --success: #246b43;
  --danger: #9e2a2b;
  --shadow-sm: 0 4px 16px rgba(28, 24, 18, 0.05);
  --shadow-md: 0 12px 32px rgba(28, 24, 18, 0.09);
  --radius: 14px;
  --radius-sm: 9px;
  --font-serif: "Cormorant Garamond", "Georgia", "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--crimson);
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Urgent Parish Announcement Banner */
.urgent-banner {
  background: linear-gradient(90deg, #6e2722 0%, #87352e 50%, #6e2722 100%);
  color: #fff9ef;
  padding: 10px 16px;
  font-size: 0.94rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 232, 185, 0.25);
}

.urgent-banner-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.urgent-badge {
  background: rgba(255, 243, 214, 0.2);
  border: 1px solid rgba(255, 243, 214, 0.45);
  padding: 2px 9px;
  border-radius: 99px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 241, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--text-main);
}

.brand:hover {
  color: var(--text-main);
}

.brand-emblem {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--bg-dark), var(--bg-dark-2));
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(25, 41, 58, 0.18);
  border: 1.5px solid var(--gold);
}

.brand-text-title {
  font-family: var(--font-serif);
  font-size: 1.32rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--bg-dark);
}

.brand-text-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: block;
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--text-main);
  font-size: 0.93rem;
  font-weight: 500;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.main-nav .nav-cta {
  background: var(--gold);
  color: #fff !important;
  padding: 8px 15px;
  border-radius: 99px;
  font-size: 0.88rem;
  font-weight: 600;
  border-bottom: none;
  box-shadow: 0 3px 10px rgba(154, 115, 50, 0.25);
}

.main-nav .nav-cta:hover {
  background: #825f26;
  color: #fff !important;
}

.mobile-menu-btn {
  display: none;
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--bg-dark);
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  background: var(--bg-dark);
  color: var(--text-light);
  overflow: hidden;
  padding: 72px 0 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 35%;
  opacity: 0.34;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    rgba(20, 33, 47, 0.93) 0%,
    rgba(25, 41, 58, 0.82) 55%,
    rgba(25, 41, 58, 0.62) 100%
  );
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.hero-diocese {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-light);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 14px;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4.2vw, 3.35rem);
  line-height: 1.12;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 18px;
}

.hero-lead {
  font-size: 1.08rem;
  color: rgba(249, 246, 240, 0.9);
  max-width: 620px;
  margin-bottom: 28px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 10px;
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-gold {
  background: linear-gradient(135deg, #b0863e, #916a29);
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(154, 115, 50, 0.35);
}

.btn-gold:hover {
  background: linear-gradient(135deg, #bf9448, #9e7530);
  transform: translateY(-1px);
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn-secondary {
  background: var(--bg-warm);
  color: var(--bg-dark) !important;
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: #e7decb;
}

.hero-card {
  background: rgba(255, 252, 246, 0.97);
  color: var(--text-main);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--gold);
}

.hero-card-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--bg-dark);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.mini-schedule-item {
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
}

.mini-schedule-item:last-of-type {
  border-bottom: none;
}

.mini-schedule-top {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 0.93rem;
  color: var(--crimson);
}

.mini-schedule-service {
  font-size: 0.92rem;
  color: var(--text-main);
  margin-top: 2px;
}

.hero-card-footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Ornamental Section Headers */
.section {
  padding: 70px 0;
}

.section-warm {
  background-color: var(--bg-warm);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 44px;
}

.section-kicker {
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  color: var(--bg-dark);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
}

.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 12px auto 14px;
  color: var(--gold);
}

.section-divider::before,
.section-divider::after {
  content: "";
  width: 60px;
  height: 1px;
  background: var(--gold-light);
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.02rem;
}

/* News Grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 26px;
}

.news-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.news-card-img-wrap {
  position: relative;
  height: 220px;
  background: #e9e2d4;
  overflow: hidden;
}

.news-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.news-card:hover .news-card-img-wrap img {
  transform: scale(1.04);
}

.news-category {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(25, 41, 58, 0.88);
  color: var(--gold-light);
  padding: 4px 11px;
  border-radius: 99px;
  font-size: 0.76rem;
  font-weight: 600;
}

.news-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-date {
  font-size: 0.83rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.news-card-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  line-height: 1.26;
  color: var(--bg-dark);
  margin-bottom: 10px;
  font-weight: 700;
}

.news-card-title a {
  color: inherit;
}

.news-card-title a:hover {
  color: var(--crimson);
}

.news-summary {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 18px;
  flex-grow: 1;
}

.news-read-more {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Single News Page */
.article-shell {
  max-width: 820px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.article-hero-img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: 10px;
  margin: 20px 0 26px;
}

.article-content p {
  font-size: 1.08rem;
  line-height: 1.8;
  margin-bottom: 18px;
  color: var(--text-main);
}

.share-row {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

/* Schedule Section */
.schedule-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.schedule-note-bar {
  background: var(--gold-soft);
  padding: 15px 24px;
  border-bottom: 1px solid var(--border);
  color: #5c4318;
  font-size: 0.95rem;
  font-weight: 500;
}

.schedule-list {
  divide-y: 1px solid var(--border);
}

.schedule-row {
  display: grid;
  grid-template-columns: 220px 150px 1fr;
  gap: 20px;
  padding: 20px 26px;
  border-bottom: 1px solid var(--border);
  align-items: center;
}

.schedule-row:last-child {
  border-bottom: none;
}

.schedule-day {
  font-family: var(--font-serif);
  font-size: 1.32rem;
  font-weight: 700;
  color: var(--bg-dark);
}

.schedule-sublabel {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}

.schedule-time {
  font-weight: 700;
  color: var(--crimson);
  font-size: 1.05rem;
  background: #fdf4f2;
  border: 1px solid #f0d5d1;
  padding: 6px 12px;
  border-radius: 8px;
  text-align: center;
}

.schedule-service-title {
  font-weight: 700;
  font-size: 1.04rem;
  color: var(--text-main);
}

.schedule-service-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 3px;
}

/* About & History */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 38px;
  align-items: start;
}

.history-prose p {
  margin-bottom: 16px;
  font-size: 1.01rem;
}

.timeline {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.timeline-item {
  position: relative;
  padding-left: 24px;
  padding-bottom: 20px;
  border-left: 2px solid var(--gold-light);
}

.timeline-item:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid #fff;
}

.timeline-year {
  font-weight: 700;
  color: var(--crimson);
  font-size: 0.92rem;
}

.timeline-text {
  font-size: 0.93rem;
  color: var(--text-muted);
  margin-top: 3px;
}

/* Clergy Card */
.clergy-card {
  margin-top: 34px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 5px solid var(--gold);
  border-radius: var(--radius);
  padding: 28px;
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 22px;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

/* Clergy / Rector Section */
.rector-profile-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 34px;
  align-items: start;
}

.rector-portrait-wrap {
  background: #ffffff;
  border: 2px solid var(--gold-light);
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 6px 18px rgba(28, 24, 18, 0.07);
  text-align: center;
  cursor: pointer;
}

.rector-portrait-wrap img {
  width: 100%;
  max-width: 210px;
  height: auto !important;
  object-fit: contain !important;
  margin: 0 auto;
  border-radius: 8px;
}

.rector-portrait-caption {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 8px;
  font-weight: 500;
}

.clergy-name {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 2.8vw, 2.2rem);
  font-weight: 700;
  color: var(--bg-dark);
  line-height: 1.2;
  margin-bottom: 14px;
}

.clergy-role {
  color: var(--crimson);
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.rector-facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 16px 0 18px;
}

.rector-fact-item {
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: 9px;
  padding: 12px 15px;
}

.rector-fact-label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 3px;
}

.rector-fact-val {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--bg-dark);
}

.rector-ministry-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--bg-dark);
  font-weight: 700;
  margin: 30px 0 16px;
  text-align: center;
}

.rector-ministry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* Treby & Donations */
.two-col-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}

.info-card h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--bg-dark);
  margin-bottom: 14px;
}

.treby-list {
  list-style: none;
}

.treby-list li {
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.96rem;
}

.treby-list li:last-child {
  border-bottom: none;
}

.req-box {
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  margin: 14px 0;
  font-size: 0.92rem;
}

.req-row {
  margin-bottom: 8px;
}

.req-row:last-child {
  margin-bottom: 0;
}

.req-label {
  color: var(--text-muted);
  font-size: 0.82rem;
  display: block;
}

.req-val {
  font-weight: 600;
  color: var(--bg-dark);
  word-break: break-word;
}

/* Photo Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.gallery-item {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
}

.gallery-item:hover {
  transform: translateY(-3px);
}

.gallery-item img {
  width: 100%;
  height: 235px;
  object-fit: cover;
  object-position: center 20%;
}

.gallery-caption {
  padding: 12px 14px;
}

.gallery-caption strong {
  display: block;
  font-size: 0.94rem;
  color: var(--bg-dark);
  margin-bottom: 3px;
}

.gallery-caption span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Contacts & Map */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 28px;
}

.contact-detail {
  margin-bottom: 18px;
}

.contact-detail-label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 3px;
}

.contact-detail-value {
  font-size: 1.03rem;
  font-weight: 500;
  color: var(--bg-dark);
}

.map-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

/* Footer */
.site-footer {
  background: var(--bg-dark);
  color: rgba(249, 246, 240, 0.82);
  padding: 46px 0 30px;
  font-size: 0.92rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom {
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.84rem;
  color: rgba(249, 246, 240, 0.62);
}

.admin-login-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold-light) !important;
  background: rgba(255, 255, 255, 0.08);
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid rgba(223, 196, 142, 0.3);
  font-weight: 500;
}

.admin-login-link:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(12, 18, 26, 0.9);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.open {
  display: flex;
}

.lightbox-inner {
  max-width: 920px;
  width: 100%;
  text-align: center;
  color: #fff;
}

.lightbox-inner img {
  max-height: 76vh;
  margin: 0 auto 14px;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: none;
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
}

/* =========================================================
   PRIEST'S ADMIN PANEL (/admin) — Extra Clear & Large UI!
   ========================================================= */
.admin-body {
  background: #f3efe6;
  min-height: 100vh;
}

.admin-topbar {
  background: var(--bg-dark);
  color: #fff;
  padding: 16px 0;
  border-bottom: 3px solid var(--gold);
}

.admin-topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-container {
  max-width: 880px;
  margin: 28px auto 60px;
  padding: 0 16px;
}

.admin-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.admin-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}

.admin-tab-btn {
  padding: 14px 10px;
  border-radius: 10px;
  border: 2px solid var(--border);
  background: #fff;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--bg-dark);
  cursor: pointer;
  text-align: center;
  transition: all 0.18s;
}

.admin-tab-btn.active {
  background: var(--bg-dark);
  color: #fff;
  border-color: var(--bg-dark);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--bg-dark);
  margin-bottom: 7px;
}

.form-hint {
  display: block;
  font-size: 0.87rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 14px 16px;
  font-size: 1.04rem;
  font-family: var(--font-sans);
  border: 2px solid #d5cbb8;
  border-radius: 10px;
  background: #fffdf9;
  color: var(--text-main);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--gold);
  background: #fff;
}

.form-textarea {
  min-height: 170px;
  resize: vertical;
  line-height: 1.6;
}

.photo-upload-box {
  border: 2px dashed var(--gold);
  background: var(--gold-soft);
  border-radius: 12px;
  padding: 22px;
  text-align: center;
  cursor: pointer;
}

.photo-preview-img {
  max-height: 240px;
  margin: 12px auto 0;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.btn-publish {
  width: 100%;
  background: var(--success);
  color: #fff !important;
  font-size: 1.12rem;
  padding: 16px 24px;
  border-radius: 12px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(36, 107, 67, 0.28);
}

.btn-publish:hover {
  background: #1c5735;
}

.admin-news-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 12px;
  background: #faf8f3;
}

.admin-news-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.88rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border);
  background: #fff;
}

.btn-danger {
  color: var(--danger);
  border-color: #e8bcbc;
  background: #fff5f5;
}

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--success);
  color: #fff;
  padding: 14px 22px;
  border-radius: 10px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  z-index: 1000;
  display: none;
}

.toast.show {
  display: block;
}

/* Responsive Design for Smartphones */
@media (max-width: 920px) {
  .hero-grid,
  .about-grid,
  .two-col-cards,
  .contacts-grid {
    grid-template-columns: 1fr;
  }

  .schedule-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .schedule-time {
    justify-self: start;
  }

  .admin-tabs {
    grid-template-columns: 1fr;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-page);
    flex-direction: column;
    padding: 16px 20px 22px;
    border-bottom: 2px solid var(--gold);
    box-shadow: var(--shadow-md);
    align-items: stretch;
    gap: 10px;
  }

  .main-nav.open {
    display: flex;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }
}

@media (max-width: 780px) {
  .rector-profile-box {
    grid-template-columns: 1fr;
    padding: 24px 20px;
  }
  .rector-portrait-wrap {
    max-width: 220px;
    margin: 0 auto;
  }
  .rector-ministry-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .hero {
    padding: 46px 0 54px;
  }
  .section {
    padding: 48px 0;
  }
  .rector-ministry-grid {
    grid-template-columns: 1fr;
  }
  .admin-news-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .article-shell {
    padding: 22px 18px;
  }
}

/* Pre-destruction Historical Showcase ("Так выглядел храм до разрушения") */
.pre-destruction-box {
  margin-top: 40px;
  background: var(--bg-card);
  border: 1px solid rgba(154, 115, 50, 0.35);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-md);
}

.pre-destruction-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 24px;
}

.pre-destruction-title {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  color: var(--bg-dark);
  margin-bottom: 8px;
}

.pre-destruction-sub {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.pre-destruction-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.pre-destruction-card.gallery-item {
  display: flex;
  flex-direction: column;
  background: #fff;
}

.pre-destruction-card.gallery-item img {
  width: 100%;
  height: 235px;
  object-fit: contain;
  object-position: center;
  background: #fff;
  padding: 6px;
  display: block;
}

.gallery-item-nocaption img {
  width: 100%;
  height: 265px;
  object-fit: cover;
  object-position: center;
  display: block;
}

@media (min-width: 860px) {
  .gallery-item.gallery-wide {
    grid-column: span 2;
  }
}

.gallery-credits {
  margin-top: 26px;
  text-align: center;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--text-muted);
  opacity: 0.88;
}

.gallery-credits a {
  color: var(--gold-dark);
  text-decoration: underline;
}

@media (max-width: 1080px) {
  .pre-destruction-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 760px) {
  .pre-destruction-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .pre-destruction-box {
    padding: 22px 16px;
  }
  .pre-destruction-grid {
    grid-template-columns: 1fr;
  }
}

