/* ====================================================
   ST. SEBASTIAN MADATHIL CHURCH — DESIGN SYSTEM
   Professional Church Website CSS
   ==================================================== */

/* ====== CUSTOM PROPERTIES ====== */
:root {
  /* Brand Colors */
  --bg:          #faf8f5;
  --surface:     #ffffff;
  --surface-alt: #f5f0e8;
  --primary:     #7a1c2e;
  --primary-dk:  #5c1422;
  --primary-lt:  #9a2438;
  --gold:        #b8966a;
  --gold-lt:     #d4b896;
  --text:        #2c2c2c;
  --text-md:     #555555;
  --text-lt:     #888888;
  --border:      #e4ddd0;
  --overlay:     rgba(20, 8, 12, 0.55);

  /* Typography */
  --font-head: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-ml:   'Noto Sans Malayalam', sans-serif;

  /* Layout */
  --container: 1160px;
  --section-py: 88px;
  --header-h: 76px;

  /* Radius */
  --r-sm:  6px;
  --r-md:  12px;
  --r-lg:  20px;
  --r-xl:  32px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 6px 24px rgba(0,0,0,0.10);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.14);
  --shadow-xl: 0 28px 72px rgba(0,0,0,0.18);

  /* Transition */
  --ease: 0.3s ease;
  --ease-slow: 0.5s ease;
}

/* ====== RESET & BASE ====== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  padding-top: var(--header-h);
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
iframe { display: block; }

/* ====== TYPOGRAPHY ====== */
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  line-height: 1.2;
  font-weight: 600;
  color: var(--text);
}
h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1rem, 2vw, 1.35rem); }
h4 { font-size: 0.95rem; font-family: var(--font-body); font-weight: 600; }
p  { color: var(--text-md); line-height: 1.8; }

/* Malayalam body font when active */
body.ml-active h1,
body.ml-active h2,
body.ml-active h3,
body.ml-active h4,
body.ml-active p,
body.ml-active span:not(.lang-divider),
body.ml-active a,
body.ml-active li,
body.ml-active button {
  font-family: var(--font-ml), var(--font-body), sans-serif;
}

/* ====== LAYOUT ====== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.section { padding: var(--section-py) 0; }
.section--alt   { background: var(--surface-alt); }
.section--white { background: var(--surface); }
.section--dark  { background: var(--primary-dk); }

/* ====== SECTION HEADER ====== */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.section-header h2 { color: var(--primary); margin-bottom: 14px; }
.section-header p  { max-width: 560px; margin: 0 auto; font-size: 1rem; }

.gold-divider {
  width: 52px;
  height: 2px;
  background: var(--gold);
  margin: 12px auto 0;
}

/* Left-aligned variant */
.section-header.left-align { text-align: left; }
.section-header.left-align .gold-divider { margin-left: 0; }
.section-header.left-align p { margin-left: 0; }

/* ====== SHARED BUTTONS ====== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 4px;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 2px solid transparent;
  transition: all var(--ease);
  white-space: nowrap;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 18px rgba(122,28,46,0.25);
}
.btn-primary:hover {
  background: var(--primary-dk);
  border-color: var(--primary-dk);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(122,28,46,0.35);
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.7);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn-gold {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}
.btn-gold:hover {
  background: #9d7c4e;
  border-color: #9d7c4e;
  transform: translateY(-2px);
}

/* ====== SITE HEADER ====== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--ease), background var(--ease);
  transform: translateZ(0);
}
.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 32px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  transition: opacity var(--ease);
}
.nav-logo:hover { opacity: 0.85; }
.nav-logo img { width: 46px; height: 46px; object-fit: contain; }

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.nav-logo-name {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
}
.nav-logo-sub {
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Desktop Nav */
.desktop-nav ul {
  display: flex;
  align-items: center;
  gap: 2px;
}
.desktop-nav ul li a {
  display: block;
  padding: 7px 13px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-md);
  border-radius: var(--r-sm);
  transition: color var(--ease), background var(--ease);
  letter-spacing: 0.02em;
  position: relative;
}
.desktop-nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 13px;
  right: 13px;
  height: 1.5px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform var(--ease);
  border-radius: 1px;
}
.desktop-nav ul li a:hover,
.desktop-nav ul li a.active {
  color: var(--primary);
}
.desktop-nav ul li a:hover::after,
.desktop-nav ul li a.active::after {
  transform: scaleX(1);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Language Toggle */
.lang-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 15px;
  border: 1.5px solid var(--border);
  border-radius: 24px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-md);
  background: transparent;
  transition: border-color var(--ease), color var(--ease), background var(--ease);
  white-space: nowrap;
  cursor: pointer;
}
.lang-btn:hover { border-color: var(--primary); color: var(--primary); background: rgba(122,28,46,0.04); }
.lang-btn .lang-divider { color: var(--border); font-weight: 300; margin: 0 2px; }
.lang-btn .lang-ml-text { font-family: var(--font-ml), sans-serif; }
.lang-btn .lang-active { color: var(--primary); font-weight: 700; }

/* Hamburger Button */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  transition: background var(--ease);
}
.menu-toggle:hover { background: var(--surface-alt); }
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.35s ease, opacity 0.35s ease, width 0.35s ease;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; width: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ====== MOBILE NAV ====== */
.mobile-nav {
  position: fixed;
  top: var(--header-h);
  right: 0;
  bottom: 0;
  width: 300px;
  background: var(--surface);
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  border-left: 1px solid var(--border);
  padding: 28px 0 48px;
  box-shadow: var(--shadow-xl);
}
.mobile-nav.open { transform: translateX(0); }

.mobile-nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 24px 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}
.mobile-nav-logo img { width: 38px; height: 38px; object-fit: contain; }
.mobile-nav-logo span {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.3;
}

.mobile-nav ul { padding: 0 12px; }
.mobile-nav ul li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--r-md);
  transition: background var(--ease), color var(--ease);
  margin-bottom: 2px;
}
.mobile-nav ul li a i { width: 20px; color: var(--gold); font-size: 0.88rem; }
.mobile-nav ul li a:hover,
.mobile-nav ul li a.active {
  background: rgba(122,28,46,0.07);
  color: var(--primary);
}

.mobile-nav-bottom {
  padding: 20px 24px 0;
  margin-top: 20px;
  border-top: 1px solid var(--border);
}
.mobile-lang-btn {
  width: 100%;
  padding: 10px 16px;
  border: 1.5px solid var(--border);
  border-radius: 24px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-md);
  text-align: center;
  background: transparent;
  cursor: pointer;
  transition: border-color var(--ease), color var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.mobile-lang-btn:hover { border-color: var(--primary); color: var(--primary); }
.mobile-lang-btn .lang-ml-text { font-family: var(--font-ml), sans-serif; }

/* Mobile Overlay */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.42);
  z-index: 998;
  backdrop-filter: blur(2px);
}
.mobile-overlay.show { display: block; }

/* ====== BACK TO TOP ====== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 28px;
  z-index: 900;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity var(--ease), transform var(--ease), background var(--ease);
}
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { background: var(--primary-dk); transform: translateY(-2px); }

/* ====== HOME HERO ====== */
.home-hero {
  position: relative;
  height: calc(100vh - var(--header-h));
  min-height: 560px;
  max-height: 920px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #1a0a0d;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.68;
  transition: opacity 0.6s ease;
}
.hero-bg.mobile-src { display: none; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(20,5,10,0.30) 0%,
    rgba(20,5,10,0.55) 55%,
    rgba(20,5,10,0.78) 100%
  );
}

.hero-body {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  max-width: 780px;
  animation: heroReveal 1.1s ease both;
}

@keyframes heroReveal {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-cross {
  font-size: 1.4rem;
  color: var(--gold-lt);
  letter-spacing: 0.25em;
  opacity: 0.9;
  margin-bottom: 22px;
  animation: heroReveal 1s 0.15s ease both;
}

.hero-church-name {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 7.5vw, 6rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.06em;
  line-height: 1.05;
  text-shadow: 0 2px 28px rgba(0,0,0,0.45);
  margin-bottom: 20px;
  animation: heroReveal 1s 0.25s ease both;
}

.hero-tagline {
  font-size: clamp(0.75rem, 1.8vw, 0.9rem);
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-lt);
  margin-bottom: 24px;
  animation: heroReveal 1s 0.35s ease both;
}

.hero-divider {
  width: 48px;
  height: 1.5px;
  background: var(--gold-lt);
  margin: 0 auto 24px;
  opacity: 0.7;
  animation: heroReveal 1s 0.4s ease both;
}

.hero-subtitle {
  font-size: clamp(0.92rem, 2.2vw, 1.1rem);
  color: rgba(255,255,255,0.82);
  max-width: 460px;
  margin: 0 auto 40px;
  line-height: 1.75;
  animation: heroReveal 1s 0.45s ease both;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  animation: heroReveal 1s 0.55s ease both;
}

/* ====== PAGE BANNER HERO ====== */
.page-banner {
  position: relative;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--primary-dk);
}

.banner-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.4;
}

.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(92,20,34,0.88) 0%, rgba(35,8,15,0.80) 100%);
}

.banner-body {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  animation: heroReveal 0.8s ease both;
}

.banner-body h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.4rem);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.3);
}

.banner-tagline {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-lt);
  margin-bottom: 14px;
}

.breadcrumb {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.breadcrumb a { color: rgba(255,255,255,0.72); transition: color var(--ease); }
.breadcrumb a:hover { color: var(--gold-lt); }
.breadcrumb .bc-sep { color: rgba(255,255,255,0.35); }

/* ====== ABOUT PAGE ====== */
.about-intro .inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.about-img-wrap {
  position: relative;
}
.about-img-wrap::before {
  content: '';
  position: absolute;
  top: -18px;
  left: -18px;
  right: 18px;
  bottom: 18px;
  border: 2px solid var(--gold);
  border-radius: var(--r-lg);
  z-index: 0;
  opacity: 0.6;
}
.about-img-wrap img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 26px;
}
.about-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  background: var(--bg);
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
}
.about-feature-item i { color: var(--primary); font-size: 0.95rem; flex-shrink: 0; }
.about-feature-item span { font-size: 0.87rem; font-weight: 600; color: var(--text); }

/* Mission & Vision */
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.mv-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 44px 38px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform var(--ease), box-shadow var(--ease);
}
.mv-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.mv-card > i { font-size: 2.1rem; color: var(--primary); margin-bottom: 20px; display: block; }
.mv-card h3 { color: var(--primary); font-size: 1.5rem; margin-bottom: 18px; }
.mv-card ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 11px;
  color: var(--text-md);
  font-size: 0.93rem;
  line-height: 1.65;
}
.mv-card ul li::before { content: '✦'; color: var(--gold); font-size: 0.62rem; margin-top: 5px; flex-shrink: 0; }

/* Patron Saint */
.patron-inner {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 72px;
  align-items: center;
}
.patron-img img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
}

.saint-highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 28px;
}
.highlight-box {
  text-align: center;
  padding: 18px 8px;
  background: var(--bg);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  transition: transform var(--ease), box-shadow var(--ease);
}
.highlight-box:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.highlight-box i { font-size: 1.3rem; color: var(--primary); margin-bottom: 8px; display: block; }
.highlight-box h4 { font-size: 0.78rem; font-weight: 700; color: var(--text); text-transform: uppercase; letter-spacing: 0.06em; }

/* Join / CTA */
.join-section {
  position: relative;
  text-align: center;
  overflow: hidden;
}
.join-section .join-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.12;
}
.join-section .join-overlay {
  position: absolute;
  inset: 0;
  background: var(--primary);
}
.join-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: 0 auto;
}
.join-section h2 { color: #fff; margin-bottom: 12px; }
.join-section .gold-divider { background: var(--gold-lt); margin-bottom: 22px; }
.scripture {
  font-family: var(--font-head);
  font-size: clamp(1.1rem, 2.8vw, 1.55rem);
  color: rgba(255,255,255,0.88);
  font-style: italic;
  line-height: 1.55;
  margin-bottom: 8px;
}
.scripture-ref {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-lt);
  margin-bottom: 20px;
  display: block;
}
.join-section > .container > .join-content > p { color: rgba(255,255,255,0.75); margin-bottom: 32px; }
.join-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ====== HISTORY PAGE ====== */
.history-body { max-width: 840px; margin: 0 auto; }
.history-body p { margin-bottom: 18px; font-size: 0.97rem; }

/* Timeline */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 8px 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent 0%, var(--gold) 10%, var(--gold) 90%, transparent 100%);
  transform: translateX(-50%);
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr 56px 1fr;
  align-items: center;
  margin-bottom: 52px;
}

/* Odd items: card left, dot center, empty right */
.timeline-item:nth-child(odd)  .tl-card  { grid-column: 1; text-align: right; margin-right: 28px; margin-left: 0; }
.timeline-item:nth-child(odd)  .tl-dot   { grid-column: 2; }
.timeline-item:nth-child(odd)  .tl-empty { grid-column: 3; }
/* Even items: empty left, dot center, card right */
.timeline-item:nth-child(even) .tl-empty { grid-column: 1; }
.timeline-item:nth-child(even) .tl-dot   { grid-column: 2; }
.timeline-item:nth-child(even) .tl-card  { grid-column: 3; text-align: left;  margin-left: 28px; margin-right: 0; }

.tl-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}
.tl-dot-inner {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary);
  border: 4px solid var(--surface-alt);
  box-shadow: 0 0 0 3px var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tl-dot-inner i { color: #fff; font-size: 1rem; }

.tl-card {
  background: var(--surface);
  border-radius: var(--r-md);
  padding: 24px 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--ease), box-shadow var(--ease);
}
.tl-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.tl-year {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.tl-card h3 { color: var(--primary); font-size: 1.1rem; margin-bottom: 8px; }
.tl-card p  { font-size: 0.9rem; color: var(--text-md); margin: 0; }

/* Former Priests */
.priests-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.priest-hist-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 28px 20px;
  text-align: center;
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.priest-hist-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.priest-hist-card .ph-icon {
  width: 50px;
  height: 50px;
  background: rgba(122,28,46,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.priest-hist-card .ph-icon i { color: var(--primary); font-size: 1rem; }
.priest-hist-card h3 { font-size: 1.0rem; color: var(--primary); margin-bottom: 6px; }
.priest-hist-card .ph-years {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gold);
  background: rgba(184,150,106,0.12);
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 10px;
}
.priest-hist-card p { font-size: 0.83rem; color: var(--text-lt); margin: 0; }

/* History Image Grid */
.hist-img-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.hist-img-grid img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--ease), box-shadow var(--ease);
}
.hist-img-grid img:hover { transform: scale(1.02); box-shadow: var(--shadow-md); }

/* ====== PARISH PRIEST PAGE ====== */
.priest-profile-inner {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 72px;
  align-items: start;
}
.priest-photo-wrap {
  position: sticky;
  top: calc(var(--header-h) + 28px);
}
.priest-photo-wrap img {
  width: 100%;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  aspect-ratio: 3/4;
}
.priest-caption {
  margin-top: 16px;
  text-align: center;
  padding: 18px 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.priest-caption .pc-name {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
}
.priest-caption .pc-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 4px;
  display: block;
}

.priest-welcome-quote {
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: var(--text);
  font-style: italic;
  line-height: 1.65;
  padding: 18px 22px;
  border-left: 3px solid var(--gold);
  margin-bottom: 20px;
  background: var(--bg);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

/* Responsibilities */
.resp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.resp-card {
  background: var(--surface);
  border-radius: var(--r-md);
  padding: 32px 20px;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.resp-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(122,28,46,0.18); }
.resp-card .rc-icon {
  width: 62px;
  height: 62px;
  background: rgba(122,28,46,0.07);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  transition: background var(--ease);
}
.resp-card:hover .rc-icon { background: rgba(122,28,46,0.13); }
.resp-card .rc-icon i { color: var(--primary); font-size: 1.4rem; }
.resp-card h3 { color: var(--primary); margin-bottom: 8px; font-size: 1rem; }
.resp-card p  { font-size: 0.87rem; color: var(--text-md); margin: 0; }

/* Priest Blockquote */
.priest-blockquote {
  position: relative;
  padding: 52px 56px;
  background: var(--bg);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.priest-blockquote::before {
  content: '\201C';
  position: absolute;
  top: 4px;
  left: 28px;
  font-family: var(--font-head);
  font-size: 7rem;
  color: var(--gold);
  opacity: 0.25;
  line-height: 1;
}
.priest-blockquote p {
  font-family: var(--font-head);
  font-size: 1.45rem;
  color: var(--text);
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 16px;
}
.priest-blockquote .attribution {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Office Cards */
.office-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.office-card {
  background: var(--surface);
  border-radius: var(--r-md);
  padding: 32px 24px;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--ease), box-shadow var(--ease);
}
.office-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.office-card i { font-size: 1.6rem; color: var(--primary); margin-bottom: 14px; display: block; }
.office-card h3 { color: var(--primary); font-size: 1rem; margin-bottom: 10px; }
.office-card p  { font-size: 0.9rem; color: var(--text-md); margin: 0; line-height: 1.65; }

/* ====== MASS TIMINGS PAGE ====== */
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.schedule-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 40px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform var(--ease), box-shadow var(--ease);
}
.schedule-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.schedule-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gold);
}
.schedule-card.featured { background: var(--primary); border-color: var(--primary); }
.schedule-card.featured::before { background: var(--gold-lt); }

.sc-icon {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: rgba(122,28,46,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.schedule-card.featured .sc-icon { background: rgba(255,255,255,0.14); }
.sc-icon i { font-size: 1.5rem; color: var(--primary); }
.schedule-card.featured .sc-icon i { color: #fff; }

.schedule-card h3 { color: var(--primary); font-size: 1.25rem; margin-bottom: 24px; }
.schedule-card.featured h3 { color: #fff; }

.time-entry { padding: 9px 0; border-bottom: 1px solid var(--border); }
.schedule-card.featured .time-entry { border-color: rgba(255,255,255,0.15); }
.time-entry:last-child { border-bottom: none; }
.t-label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-lt); margin-bottom: 2px; }
.schedule-card.featured .t-label { color: rgba(255,255,255,0.58); }
.t-time { font-family: var(--font-head); font-size: 1.35rem; font-weight: 700; color: var(--text); }
.schedule-card.featured .t-time { color: #fff; }

/* Adoration */
.adoration-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.adoration-card {
  background: var(--surface);
  border-radius: var(--r-md);
  padding: 36px 32px;
  border: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 22px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--ease), box-shadow var(--ease);
}
.adoration-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.ac-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(122,28,46,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ac-icon i { color: var(--primary); font-size: 1.2rem; }
.adoration-card h3 { color: var(--primary); font-size: 1.1rem; margin-bottom: 8px; }
.adoration-card p { font-size: 0.9rem; color: var(--text-md); margin: 0; }
.adoration-card .ac-when { font-weight: 600; color: var(--text); }
.adoration-card .ac-time { font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; color: var(--primary); margin-top: 4px; }

/* Holy Days */
.holy-days-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.holy-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 32px 24px;
  text-align: center;
  transition: transform var(--ease), box-shadow var(--ease);
}
.holy-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.holy-card i { font-size: 1.8rem; color: var(--primary); margin-bottom: 14px; display: block; }
.holy-card h3 { color: var(--primary); margin-bottom: 6px; font-size: 1rem; }
.holy-card p  { font-size: 0.87rem; color: var(--text-md); margin: 0; }

/* Notice Box */
.notice-box {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 40px 48px;
  border-left: 4px solid var(--primary);
  box-shadow: var(--shadow-sm);
  max-width: 840px;
  margin: 0 auto;
}
.notice-box ul li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--text-md);
}
.notice-box ul li:last-child { border-bottom: none; }
.notice-box ul li::before { content: '✝'; color: var(--primary); font-size: 0.72rem; margin-top: 5px; flex-shrink: 0; }

/* ====== GALLERY PAGE ====== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-md);
  aspect-ratio: 4/3;
  cursor: pointer;
  background: var(--surface-alt);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(92,20,34,0.62);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--ease);
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-overlay i { font-size: 2rem; color: #fff; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.93);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  backdrop-filter: blur(8px);
}
.lightbox.open { display: flex; }
.lightbox-content {
  position: relative;
  max-width: 920px;
  width: 100%;
  animation: lbReveal 0.3s ease both;
}
@keyframes lbReveal {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}
.lightbox-content img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-xl);
  display: block;
  margin: 0 auto;
}
.lightbox-close {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 46px;
  height: 46px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  border: 3px solid rgba(255,255,255,0.25);
  transition: background var(--ease), transform var(--ease);
}
.lightbox-close:hover { background: var(--primary-dk); transform: rotate(90deg); }

/* ====== CONTACT PAGE ====== */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 40px 24px;
  text-align: center;
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.contact-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(122,28,46,0.18); }
.cc-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(122,28,46,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  transition: background var(--ease);
}
.contact-card:hover .cc-icon { background: rgba(122,28,46,0.14); }
.cc-icon i { color: var(--primary); font-size: 1.5rem; }
.contact-card h3 { color: var(--primary); font-size: 1rem; margin-bottom: 10px; }
.contact-card p  { font-size: 0.93rem; color: var(--text-md); margin-bottom: 18px; line-height: 1.65; }
.cc-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 22px;
  background: var(--primary);
  color: #fff;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: background var(--ease), transform var(--ease);
}
.cc-action:hover { background: var(--primary-dk); transform: translateY(-2px); }

/* Map */
.map-wrapper {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.map-wrapper iframe { display: block; width: 100%; height: 420px; border: 0; }

/* Office Hours Table */
.hours-table {
  max-width: 560px;
  margin: 0 auto;
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.hours-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 28px;
  border-bottom: 1px solid var(--border);
}
.hours-row:last-child { border-bottom: none; }
.hours-row:nth-child(even) { background: rgba(245,240,232,0.55); }
.hours-row .day  { font-weight: 600; color: var(--text); font-size: 0.93rem; }
.hours-row .time { color: var(--primary); font-weight: 600; font-size: 0.9rem; }

/* FAQ */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: 10px;
}
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  cursor: pointer;
  transition: background var(--ease);
}
.faq-q:hover { background: rgba(245,240,232,0.6); }
.faq-q h4 { font-size: 0.95rem; font-weight: 600; color: var(--text); flex: 1; margin-right: 16px; }
.faq-q i { color: var(--primary); font-size: 0.85rem; flex-shrink: 0; transition: transform var(--ease); }
.faq-item.open .faq-q i { transform: rotate(180deg); }
.faq-a { padding: 0 24px; max-height: 0; overflow: hidden; transition: max-height 0.32s ease, padding 0.32s ease; }
.faq-item.open .faq-a { max-height: 200px; padding: 0 24px 20px; }
.faq-a p { font-size: 0.9rem; color: var(--text-md); margin: 0; }

/* Social Cards */
.social-cards {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.social-card {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 18px 28px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  min-width: 188px;
  transition: transform var(--ease), box-shadow var(--ease), background var(--ease), border-color var(--ease), color var(--ease);
}
.social-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.social-card i  { font-size: 1.4rem; transition: color var(--ease); }
.social-card h3 { font-size: 0.93rem; font-weight: 600; }
.social-card.fb i { color: #1877f2; }
.social-card.fb:hover { background: #1877f2; border-color: #1877f2; color: #fff; }
.social-card.fb:hover i { color: #fff; }
.social-card.ig i { color: #c13584; }
.social-card.ig:hover { background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); border-color: transparent; color: #fff; }
.social-card.ig:hover i { color: #fff; }
.social-card.wa i { color: #25d366; }
.social-card.wa:hover { background: #25d366; border-color: #25d366; color: #fff; }
.social-card.wa:hover i { color: #fff; }

/* ====================================================
   FOOTER — PROFESSIONAL RESPONSIVE DESIGN
   ==================================================== */

.site-footer {
  background: #180810;
  color: rgba(255, 255, 255, 0.72);
  padding: 42px 0 0;
  width: 100%;
}

/* Main footer layout */
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 48px;
  align-items: start;
  padding: 0 0 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* =========================
   LEFT — CHURCH INFORMATION
   ========================= */

.footer-brand {
  min-width: 0;
}

.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 10px;
}

.footer-logo-wrap img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: brightness(1.1);
}

.footer-church-name {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}

.footer-tagline {
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-lt);
  margin: 0 0 10px;
}

.footer-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.52);
  max-width: 390px;
  line-height: 1.65;
  margin: 0;
}

/* =========================
   SOCIAL MEDIA
   ========================= */

.footer-social {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  flex-shrink: 0;
  transition:
    background var(--ease),
    color var(--ease),
    transform var(--ease);
}

.footer-social a:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-3px);
}

/* =========================
   RIGHT — QUICK LINKS
   ========================= */

.footer-nav {
  align-self: start;
}

.footer-nav h4 {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-lt);
  margin: 2px 0 14px;
}

.footer-nav ul {
  margin: 0;
  padding: 0;
}

.footer-nav ul li {
  margin-bottom: 7px;
}

.footer-nav ul li:last-child {
  margin-bottom: 0;
}

.footer-nav ul li a {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.58);
  display: flex;
  align-items: center;
  gap: 7px;
  line-height: 1.5;
  transition: color var(--ease), transform var(--ease);
}

.footer-nav ul li a::before {
  content: '›';
  color: var(--gold);
  font-size: 1rem;
}

.footer-nav ul li a:hover {
  color: var(--gold-lt);
  transform: translateX(2px);
}

/* =========================
   COPYRIGHT
   ========================= */

.footer-bottom {
  padding: 14px 18px;
  text-align: center;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.3);
}

.footer-bottom p {
  margin: 0;
  line-height: 1.5;
}


/* ====================================================
   FOOTER — TABLET
   ==================================================== */

@media (max-width: 1024px) {

  .site-footer {
    padding-top: 38px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 36px;
    padding-bottom: 30px;
  }

  .footer-desc {
    max-width: 360px;
  }
}


/* ====================================================
   FOOTER — MOBILE
   ==================================================== */

@media (max-width: 768px) {

  .site-footer {
    padding-top: 30px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-bottom: 26px;
  }

  .footer-brand {
    width: 100%;
  }

  .footer-logo-wrap {
    gap: 10px;
    margin-bottom: 9px;
  }

  .footer-logo-wrap img {
    width: 40px;
    height: 40px;
  }

  .footer-church-name {
    font-size: 1.1rem;
  }

  .footer-tagline {
    font-size: 0.7rem;
    margin-bottom: 8px;
  }

  .footer-desc {
    max-width: 100%;
    font-size: 0.82rem;
    line-height: 1.6;
  }

  .footer-social {
    margin-top: 15px;
    gap: 9px;
  }

  .footer-social a {
    width: 36px;
    height: 36px;
    font-size: 0.85rem;
  }

  .footer-nav {
    width: 100%;
    padding-top: 2px;
  }

  .footer-nav h4 {
    margin-bottom: 10px;
  }

  .footer-nav ul li {
    margin-bottom: 5px;
  }

  .footer-nav ul li a {
    font-size: 0.82rem;
  }

  .footer-bottom {
    padding: 12px 18px;
    font-size: 0.68rem;
  }
}


/* ====================================================
   FOOTER — SMALL PHONES
   ==================================================== */

@media (max-width: 480px) {

  .site-footer {
    padding-top: 26px;
  }

  .footer-inner {
    gap: 22px;
    padding-bottom: 22px;
  }

  .footer-church-name {
    font-size: 1.02rem;
  }

  .footer-desc {
    font-size: 0.78rem;
  }

  .footer-social {
    margin-top: 13px;
  }

  .footer-social a {
    width: 34px;
    height: 34px;
  }

  .footer-nav h4 {
    font-size: 0.66rem;
  }

  .footer-nav ul li {
    margin-bottom: 4px;
  }

  .footer-nav ul li a {
    font-size: 0.79rem;
  }
}
/* =========================================================
   FINAL HOME HERO DESKTOP RESET
   ========================================================= */

@media (min-width: 1025px) {

    .home-hero {
        position: relative !important;
        width: 100% !important;
        height: 650px !important;
        min-height: 650px !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    /* Completely reset hero content positioning */
    .home-hero .hero-body {
        position: absolute !important;

        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;

        width: 100% !important;
        max-width: none !important;

        margin: 0 !important;
        padding: 40px !important;

        transform: none !important;

        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;

        box-sizing: border-box !important;

        text-align: center !important;

        overflow: visible !important;
    }

    /* Church name */
    .home-hero .hero-church-name {
        display: block !important;

        width: 100% !important;
        max-width: 1000px !important;

        margin: 0 auto 16px !important;
        padding: 0 !important;

        font-size: clamp(3rem, 4vw, 4.6rem) !important;
        line-height: 0.98 !important;
        letter-spacing: 0.02em !important;

        text-align: center !important;

        white-space: normal !important;
        overflow: visible !important;
    }

    .home-hero .hero-cross {
        margin: 0 0 12px !important;
    }

    .home-hero .hero-tagline {
        margin: 0 0 18px !important;
        text-align: center !important;
    }

    .home-hero .hero-divider {
        margin: 0 auto 20px !important;
    }

    .home-hero .hero-subtitle {
        width: 100% !important;
        max-width: 750px !important;

        margin: 0 auto 28px !important;

        text-align: center !important;
    }

    .home-hero .hero-actions {
        display: flex !important;

        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;

        gap: 16px !important;

        width: 100% !important;

        margin: 0 !important;
        padding: 0 !important;
    }

    .home-hero .hero-actions .btn {
        width: auto !important;
        min-width: 180px !important;
    }
}


/* =========================================================
   LARGE DESKTOP
   ========================================================= */

@media (min-width: 1400px) {

    .home-hero .hero-church-name {
        max-width: 1050px !important;
        font-size: 4.6rem !important;
    }

}
/* ===== ABOUT PAGE IMAGE - DESKTOP SQUARE ===== */

@media (min-width: 1025px) {

    .about-intro .inner {
        align-items: center;
    }

    .about-intro .about-img-wrap {
        width: 560px !important;
        height: 560px !important;
        max-width: 560px !important;
        max-height: 560px !important;
        overflow: hidden;
    }

    .about-intro .about-img-wrap img {
        width: 560px !important;
        height: 560px !important;
        max-width: none !important;
        max-height: none !important;
        object-fit: cover !important;
        display: block;
    }
}
/* =========================================================
   ST. SEBASTIAN MADATHIL CHURCH
   GALLERY — 4 MAIN CATEGORY CARDS
   Responsive: Phone + Desktop Site + Laptop
   ========================================================= */

.gallery-category-grid {
    width: 100%;
    max-width: 1100px;
    margin: 45px auto 0;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 28px;
}


/* =========================================================
   CATEGORY CARD
   ========================================================= */

.gallery-category-card {
    width: 100%;
    min-width: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
    text-decoration: none;

    padding: 38px 30px;

    background: #ffffff;

    border: 1px solid rgba(123, 17, 19, 0.15);
    border-radius: 18px;

    box-sizing: border-box;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}


/* Hover — laptop/desktop */

@media (hover: hover) {

    .gallery-category-card:hover {
        transform: translateY(-6px);

        border-color: rgba(123, 17, 19, 0.4);

        box-shadow:
            0 15px 35px rgba(0, 0, 0, 0.12);
    }

}


/* =========================================================
   ICON
   ========================================================= */

.gallery-category-icon {
    width: 68px;
    height: 68px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 18px;

    border-radius: 50%;

    background: rgba(123, 17, 19, 0.08);

    color: #7b1113;

    font-size: 25px;

    transition:
        background 0.3s ease,
        color 0.3s ease;
}


@media (hover: hover) {

    .gallery-category-card:hover .gallery-category-icon {
        background: #7b1113;
        color: #ffffff;
    }

}


/* =========================================================
   CATEGORY TITLE
   ========================================================= */

.gallery-category-card h3 {
    width: 100%;

    margin: 0 0 10px;

    font-family: "Cormorant Garamond", serif;

    font-size: clamp(1.45rem, 2.2vw, 2rem);

    line-height: 1.15;

    font-weight: 600;

    color: #7b1113;
}


/* =========================================================
   CATEGORY DESCRIPTION
   ========================================================= */

.gallery-category-card p {
    width: 100%;
    max-width: 430px;

    margin: 0 auto 18px;

    font-family: "Inter", sans-serif;

    font-size: 0.88rem;

    line-height: 1.6;

    color: #666666;
}


/* =========================================================
   VIEW GALLERY
   ========================================================= */

.gallery-category-link {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 7px;

    margin-top: auto;

    font-family: "Inter", sans-serif;

    font-size: 0.78rem;

    font-weight: 600;

    color: #9a7542;

    white-space: nowrap;
}


.gallery-category-link i {
    transition: transform 0.25s ease;
}


@media (hover: hover) {

    .gallery-category-card:hover
    .gallery-category-link i {
        transform: translateX(5px);
    }

}


/* =========================================================
   TABLET / SMALL LAPTOP
   ========================================================= */

@media (max-width: 1024px) {

    .gallery-category-grid {
        max-width: 850px;

        gap: 22px;

        margin-top: 40px;
    }

    .gallery-category-card {
        padding: 32px 24px;
    }

    .gallery-category-icon {
        width: 62px;
        height: 62px;

        font-size: 23px;

        margin-bottom: 16px;
    }

    .gallery-category-card h3 {
        font-size: 1.55rem;
    }

    .gallery-category-card p {
        font-size: 0.82rem;
    }

}


/* =========================================================
   PHONE
   ========================================================= */

@media (max-width: 768px) {

    .gallery-category-grid {
        width: 100%;

        grid-template-columns: 1fr;

        gap: 16px;

        margin-top: 32px;
    }

    .gallery-category-card {
        padding: 27px 20px;

        border-radius: 15px;
    }

    .gallery-category-icon {
        width: 58px;
        height: 58px;

        font-size: 21px;

        margin-bottom: 14px;
    }

    .gallery-category-card h3 {
        font-size: 1.4rem;

        line-height: 1.2;

        margin-bottom: 8px;
    }

    .gallery-category-card p {
        max-width: 330px;

        font-size: 0.78rem;

        line-height: 1.5;

        margin-bottom: 14px;
    }

    .gallery-category-link {
        font-size: 0.72rem;
    }

}


/* =========================================================
   SMALL PHONE
   ========================================================= */

@media (max-width: 480px) {

    .gallery-category-grid {
        gap: 13px;

        margin-top: 28px;
    }

    .gallery-category-card {
        padding: 23px 17px;

        border-radius: 14px;
    }

    .gallery-category-icon {
        width: 52px;
        height: 52px;

        font-size: 19px;

        margin-bottom: 12px;
    }

    .gallery-category-card h3 {
        font-size: 1.25rem;
    }

    .gallery-category-card p {
        font-size: 0.74rem;

        line-height: 1.45;
    }

    .gallery-category-link {
        font-size: 0.68rem;
    }

}


/* =========================================================
   VERY NARROW PHONE
   ========================================================= */

@media (max-width: 360px) {

    .gallery-category-card {
        padding: 21px 14px;
    }

    .gallery-category-card h3 {
        font-size: 1.15rem;
    }

    .gallery-category-card p {
        font-size: 0.7rem;
    }

}
/* =========================================================
   GALLERY SUBCATEGORY PAGES
   PARISH CELEBRATIONS / ORGANIZATIONS / HISTORY / SPECIAL
   ========================================================= */

.gallery-subcategories {
  padding: 90px 6%;
  background: #f8f6f2;
}

.gallery-subcategories .section-heading {
  max-width: 800px;
  margin: 0 auto 55px;
  text-align: center;
}

.gallery-subcategories .section-eyebrow {
  color: #a88655;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 4px;
  margin-bottom: 12px;
}

.gallery-subcategories .section-heading h1 {
  color: #7b1828;
  font-family: "Cormorant Garamond", serif;
  font-size: 3.2rem;
  line-height: 1.15;
  margin: 0;
}

.gallery-subcategories .heading-line {
  width: 55px;
  height: 3px;
  background: #b8945f;
  margin: 18px auto 20px;
}

.gallery-subcategories .section-heading > p:last-child {
  color: #666;
  font-size: 1.05rem;
  line-height: 1.7;
}


/* =========================================================
   SUBCATEGORY CARDS — LAPTOP / DESKTOP
   ========================================================= */

.gallery-subcategory-grid {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: repeat(3, 1fr);

  gap: 28px;
}

.gallery-subcategory-card {
  display: block;

  text-decoration: none;

  background: #ffffff;

  border: 1px solid #e5ddd2;
  border-radius: 18px;

  padding: 42px 30px;

  text-align: center;

  box-shadow: 0 8px 25px rgba(60, 30, 20, 0.08);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.gallery-subcategory-card:hover {
  transform: translateY(-7px);

  box-shadow:
    0 15px 35px rgba(60, 30, 20, 0.14);
}

.gallery-subcategory-icon {
  width: 72px;
  height: 72px;

  margin: 0 auto 20px;

  border-radius: 50%;

  background: #f5e8e8;

  color: #8a1830;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 28px;
}

.gallery-subcategory-card h2 {
  font-family: "Cormorant Garamond", serif;

  color: #7b1828;

  font-size: 2rem;

  margin: 10px 0 12px;
}

.gallery-subcategory-card p {
  color: #666;

  font-size: 0.96rem;

  line-height: 1.7;

  margin: 0 auto 20px;

  max-width: 360px;
}

.gallery-subcategory-card span {
  color: #a88655;

  font-weight: 700;

  font-size: 0.9rem;
}


/* =========================================================
   PHONE DESKTOP MODE
   Usually wider layout / viewport
   ========================================================= */

@media (min-width: 769px) and (max-width: 1024px) {

  .gallery-subcategories {
    padding: 75px 5%;
  }

  .gallery-subcategories .section-heading h1 {
    font-size: 2.8rem;
  }

  .gallery-subcategory-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }

  .gallery-subcategory-card {
    padding: 35px 25px;
  }

  .gallery-subcategory-card h2 {
    font-size: 1.8rem;
  }

}


/* =========================================================
   NORMAL PHONE VIEW
   ========================================================= */

@media (max-width: 768px) {

  .gallery-subcategories {
    padding: 55px 20px;
  }

  .gallery-subcategories .section-heading {
    margin-bottom: 35px;
  }

  .gallery-subcategories .section-eyebrow {
    font-size: 0.7rem;
    letter-spacing: 3px;
  }

  .gallery-subcategories .section-heading h1 {
    font-size: 2.25rem;
    line-height: 1.15;
  }

  .gallery-subcategories .section-heading > p:last-child {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .gallery-subcategory-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .gallery-subcategory-card {
    padding: 30px 22px;
    border-radius: 15px;
  }

  .gallery-subcategory-icon {
    width: 62px;
    height: 62px;

    font-size: 23px;

    margin-bottom: 15px;
  }

  .gallery-subcategory-card h2 {
    font-size: 1.7rem;
  }

  .gallery-subcategory-card p {
    font-size: 0.88rem;
    line-height: 1.6;
  }

  .gallery-subcategory-card span {
    font-size: 0.82rem;
  }

}
/* =========================================================
   BOOKING STATUS CHECK
   ========================================================= */

.booking-status-section {
    max-width: 900px;
    margin: 60px auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.booking-status-section h2 {
    margin-bottom: 12px;
    color: #7b1113;
    font-family: Georgia, serif;
    font-size: 32px;
}

.booking-status-section p {
    color: #666;
    font-size: 16px;
    margin-bottom: 25px;
}

.status-check-form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    max-width: 650px;
    margin: 0 auto;
}

.status-check-form input {
    flex: 1;
    padding: 14px 16px;
    border: 1px solid #d8d0c5;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    background: #fff;
}

.status-check-form input:focus {
    border-color: #7b1113;
    box-shadow: 0 0 0 3px rgba(123, 17, 19, 0.1);
}

.status-check-form button {
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    background: #7b1113;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
}

.status-check-form button:hover {
    background: #5f0d0f;
    transform: translateY(-1px);
}

/* Result box */

#result {
    margin-top: 30px;
}

/* Pending */

.status.pending {
    padding: 25px;
    border-radius: 12px;
    background: #fff8e6;
    border: 1px solid #e7c96b;
    color: #765900;
}

.status.pending h3 {
    margin-bottom: 10px;
}

/* Approved */

.status.approved {
    padding: 25px;
    border-radius: 12px;
    background: #edf9f0;
    border: 1px solid #8ac99a;
    color: #17652a;
}

.status.approved h3 {
    margin-bottom: 10px;
}

/* Rejected */

.status.rejected {
    padding: 25px;
    border-radius: 12px;
    background: #fff0f0;
    border: 1px solid #e1a0a0;
    color: #9b1c1c;
}

.status.rejected h3 {
    margin-bottom: 10px;
}

/* Pay Now button */

.pay-btn {
    display: inline-block;
    margin-top: 18px;
    padding: 13px 25px;
    background: #7b1113;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.3s ease;
}

.pay-btn:hover {
    background: #5f0d0f;
    transform: translateY(-1px);
}

/* Error */

.error {
    padding: 20px;
    border-radius: 10px;
    background: #fff0f0;
    border: 1px solid #e1a0a0;
    color: #9b1c1c;
}

/* Mobile */

@media (max-width: 700px) {

    .booking-status-section {
        margin: 40px 15px;
        padding: 25px 18px;
    }

    .booking-status-section h2 {
        font-size: 26px;
    }

    .status-check-form {
        flex-direction: column;
        width: 100%;
    }

    .status-check-form input,
    .status-check-form button {
        width: 100%;
        box-sizing: border-box;
    }

}
.status-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 14px 28px;

    background: #8b1014;
    color: white;

    text-decoration: none;

    border-radius: 30px;

    font-weight: 600;

    transition: 0.3s ease;
}

.status-btn:hover {
    background: #650b0e;
    transform: translateY(-2px);
}
.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #7b1113;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: 0.3s ease;
}

.read-more-btn:hover {
    background: #5f0d0f;
}
/* =====================================================
   PROFESSIONAL PAYMENT RECEIPT
   ===================================================== */

.professional-receipt {
  max-width: 720px;
  margin: 30px auto;
  background: #ffffff;
  border: 1px solid #e5e0d6;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 35px rgba(0,0,0,0.10);
}


.receipt-header {
  background: #641114;
  color: white;
  text-align: center;
  padding: 35px 25px;
}


.receipt-church-icon {
  font-size: 42px;
  margin-bottom: 8px;
}


.receipt-header h1 {
  margin: 0;
  font-size: 25px;
}


.receipt-header p {
  margin: 8px 0 20px;
  opacity: 0.9;
}


.receipt-title {
  display: inline-block;
  padding: 8px 18px;
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 20px;
  font-size: 13px;
  letter-spacing: 1px;
}


.receipt-success {
  margin: 20px;
  padding: 14px;
  text-align: center;
  border-radius: 9px;
  background: #e9f7ed;
  color: #18733a;
  font-weight: 700;
}


.receipt-section {
  padding: 22px 28px;
  border-bottom: 1px solid #eeeeee;
}


.receipt-section h3 {
  margin: 0 0 17px;
  color: #641114;
  font-size: 17px;
}


.receipt-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}


.receipt-grid div,
.receipt-payment-info div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}


.receipt-grid span,
.receipt-payment-info span {
  font-size: 12px;
  color: #777;
}


.receipt-grid strong,
.receipt-payment-info strong {
  font-size: 14px;
  color: #333;
  word-break: break-word;
}


.amount-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px dashed #ddd;
}


.amount-row span {
  color: #555;
}


.amount-row strong {
  font-size: 16px;
}


.amount-row.paid strong {
  color: #18733a;
}


.amount-row.remaining strong {
  color: #8c681c;
}


.receipt-payment-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 20px;
  padding: 15px;
  background: #faf8f3;
  border-radius: 9px;
}


.receipt-footer {
  text-align: center;
  padding: 25px;
  color: #777;
  font-size: 13px;
}


.receipt-footer p {
  margin: 5px 0;
}


.receipt-actions {
  max-width: 720px;
  margin: 0 auto 30px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}


.receipt-button {
  border: none;
  border-radius: 8px;
  padding: 12px 20px;
  background: #641114;
  color: white;
  cursor: pointer;
  font-weight: 600;
}


.receipt-button:hover {
  opacity: 0.9;
}


.email-receipt-button {
  background: #8c681c;
}


@media print {

  body * {
    visibility: hidden;
  }

  #professionalReceipt,
  #professionalReceipt * {
    visibility: visible;
  }

  #professionalReceipt {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    box-shadow: none;
  }

  .receipt-actions {
    display: none !important;
  }

}
.church-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.church-brand img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.church-brand h1 {
    margin: 0;
    font-size: 22px;
    color: #7b1113;
}

.church-brand p {
    margin: 3px 0 0;
    font-family: "Noto Sans Malayalam", sans-serif;
    font-size: 14px;
    color: #7b1113;
}
/* Make 2nd and 3rd Mass Timing boxes red */
.schedule-card:nth-child(2),
.schedule-card:nth-child(3) {
    background: #8b1e2d;
    color: white;
    border-color: #8b1e2d;
}

/* Text inside 2nd and 3rd boxes */
.schedule-card:nth-child(2) h3,
.schedule-card:nth-child(3) h3,
.schedule-card:nth-child(2) p,
.schedule-card:nth-child(3) p,
.schedule-card:nth-child(2) .t-label,
.schedule-card:nth-child(3) .t-label,
.schedule-card:nth-child(2) .t-time,
.schedule-card:nth-child(3) .t-time {
    color: white;
}

/* Icons */
.schedule-card:nth-child(2) .sc-icon,
.schedule-card:nth-child(3) .sc-icon {
    color: white;
    background: rgba(255, 255, 255, 0.15);
}
/* =========================================================
   ARCHDIOCESE SECTION
========================================================= */

.archdiocese-section {
    padding: var(--section-py) 0;
}

.archdiocese-content {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr);
    gap: 55px;
    align-items: center;
    max-width: 1150px;
    margin: 0 auto;
}

.archdiocese-text {
    min-width: 0;
}

.archdiocese-text h3 {
    color: #7b1113;
    font-family: var(--font-head);
    font-size: clamp(24px, 3vw, 32px);
    line-height: 1.3;
    margin-bottom: 20px;
}

.archdiocese-text p {
    color: var(--text-md);
    font-size: clamp(15px, 1.3vw, 17px);
    line-height: 1.85;
    margin-bottom: 20px;
}

.archdiocese-text p:last-child {
    margin-bottom: 0;
}

.archbishop-profile {
    min-width: 0;
    text-align: center;
}

.archbishop-photo-frame {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    padding: 8px;
    background: #ffffff;
    border: 1px solid rgba(176, 138, 69, 0.55);
    border-radius: 22px;
    box-shadow: 0 18px 45px rgba(60, 20, 20, 0.14);
    box-sizing: border-box;
}

.archbishop-photo-inner {
    overflow: hidden;
    border-radius: 16px;
}

.archbishop-photo-inner img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.archbishop-divider {
    margin: 18px auto 10px;
    color: #b08a45;
    font-size: 15px;
    line-height: 1;
}

.archbishop-info {
    text-align: center;
}

.archbishop-title {
    display: block;
    color: #b08a45;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.archbishop-info h4 {
    margin: 7px 0 0;
    color: #7b1113;
    font-family: var(--font-head);
    font-size: clamp(24px, 2.5vw, 27px);
    font-weight: 600;
}

/* =========================================================
   ARCHDIOCESE RESPONSIVE
========================================================= */

@media (max-width: 1024px) {
    .archdiocese-content {
        gap: 40px;
    }

    .archbishop-photo-frame {
        max-width: 350px;
    }
}

@media (max-width: 768px) {
    .archdiocese-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .archbishop-profile {
        order: 2;
        width: 100%;
    }

    .archbishop-photo-frame {
        max-width: 340px;
    }

    .archdiocese-text {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .archdiocese-content {
        gap: 30px;
    }

    .archdiocese-text h3 {
        font-size: 22px;
    }

    .archdiocese-text p {
        font-size: 15px;
        line-height: 1.75;
        margin-bottom: 16px;
    }

    .archbishop-photo-frame {
        max-width: 320px;
        padding: 6px;
    }

    .archbishop-info h4 {
        font-size: 24px;
    }
}

/* =========================================================
   PARISH WARD UNITS SECTION
========================================================= */

.parish-wards-section {
  padding: var(--section-py, 88px) 0;
  background: var(--surface-alt, #f5f0e8);
}

.ward-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.ward-card {
  background: #ffffff;
  border: 1px solid #e4ddd0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(60, 20, 20, 0.07);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.ward-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(60, 20, 20, 0.14);
  border-color: rgba(176, 138, 69, 0.6);
}

.ward-card-image-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #f0ebe1;
}

.ward-card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.ward-card:hover .ward-card-image-wrap img {
  transform: scale(1.06);
}

.ward-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(123, 17, 19, 0.92);
  color: #ffffff;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(212, 184, 150, 0.6);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(4px);
}

.ward-card-body {
  padding: 22px 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
  gap: 18px;
  background: #ffffff;
}

.ward-card-info {
  display: flex;
  flex-direction: column;
}

.ward-sub-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: #b08a45;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.ward-title {
  font-family: var(--font-head, 'Cormorant Garamond', serif);
  font-size: 1.45rem;
  font-weight: 600;
  color: #7b1113;
  line-height: 1.25;
  margin: 0;
}

.btn-ward-gallery {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 18px;
  background: #7b1113;
  color: #ffffff;
  border: 1px solid #7b1113;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
}

.btn-ward-gallery:hover {
  background: #5c1422;
  border-color: #5c1422;
  box-shadow: 0 4px 14px rgba(123, 17, 19, 0.3);
  transform: translateY(-1px);
}

.btn-ward-gallery:focus-visible {
  outline: 2px solid #b08a45;
  outline-offset: 2px;
}

/* =========================================================
   WARD GALLERY MODAL
========================================================= */

.ward-modal {
  position: fixed;
  inset: 0;
  z-index: 9990;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.ward-modal.open {
  opacity: 1;
  visibility: visible;
}

.ward-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 8, 12, 0.7);
  backdrop-filter: blur(5px);
}

.ward-modal-container {
  position: relative;
  width: 100%;
  max-width: 920px;
  max-height: 85vh;
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(176, 138, 69, 0.35);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1;
  transform: scale(0.95) translateY(10px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ward-modal.open .ward-modal-container {
  transform: scale(1) translateY(0);
}

.ward-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  border-bottom: 1px solid #e4ddd0;
  background: #fbf9f6;
}

.ward-modal-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ward-modal-badge {
  background: #7b1113;
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 14px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ward-modal-title {
  font-family: var(--font-head, 'Cormorant Garamond', serif);
  font-size: 1.6rem;
  color: #7b1113;
  margin: 0;
  font-weight: 600;
}

.ward-modal-close {
  background: transparent;
  border: none;
  font-size: 32px;
  color: #777;
  cursor: pointer;
  line-height: 1;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.ward-modal-close:hover {
  background: #f0ebe1;
  color: #7b1113;
}

.ward-modal-body {
  padding: 28px;
  overflow-y: auto;
  flex-grow: 1;
}

.ward-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 18px;
}

.ward-gallery-thumb {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: #ede6da;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(176, 138, 69, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ward-gallery-thumb:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
}

.ward-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ward-gallery-empty {
  text-align: center;
  padding: 50px 20px;
  color: #666;
}

.ward-gallery-empty i {
  font-size: 48px;
  color: #b08a45;
  margin-bottom: 16px;
  display: block;
}

.ward-gallery-empty h4 {
  font-family: var(--font-head, 'Cormorant Garamond', serif);
  font-size: 1.6rem;
  color: #7b1113;
  margin-bottom: 8px;
}

.ward-gallery-empty p {
  font-size: 0.95rem;
  color: #777;
  max-width: 400px;
  margin: 0 auto;
}

/* =========================================================
   WARD LIGHTBOX
========================================================= */

.ward-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.ward-lightbox.open {
  opacity: 1;
  visibility: visible;
}

.ward-lb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 4, 6, 0.94);
  backdrop-filter: blur(8px);
}

.ward-lb-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 95vw;
  max-height: 95vh;
  padding: 20px;
}

.ward-lb-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 92vw;
  max-height: 80vh;
}

.ward-lb-image-wrap img {
  max-width: 92vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.6);
}

.ward-lb-close {
  position: absolute;
  top: -15px;
  right: -10px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-size: 32px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
  transition: background 0.2s ease, transform 0.2s ease;
}

.ward-lb-close:hover {
  background: rgba(123, 17, 19, 0.9);
  transform: scale(1.1);
}

.ward-lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-size: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 2;
}

.ward-lb-prev { left: -30px; }
.ward-lb-next { right: -30px; }

.ward-lb-nav:hover {
  background: rgba(123, 17, 19, 0.9);
  transform: translateY(-50%) scale(1.1);
}

.ward-lb-footer {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #ffffff;
  width: 100%;
  max-width: 600px;
}

.ward-lb-caption {
  font-family: var(--font-head, 'Cormorant Garamond', serif);
  font-size: 1.25rem;
  color: #d4b896;
}

.ward-lb-counter {
  font-size: 0.9rem;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 500;
}

/* =========================================================
   RESPONSIVE LAYOUT
========================================================= */

@media (max-width: 1200px) {
  .ward-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
}

@media (max-width: 992px) {
  .ward-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .ward-lb-prev { left: 5px; }
  .ward-lb-next { right: 5px; }
}

@media (max-width: 768px) {
  .ward-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .ward-modal-container {
    max-height: 90vh;
    border-radius: 16px;
  }
  .ward-modal-header {
    padding: 16px 20px;
  }
  .ward-modal-body {
    padding: 20px 16px;
  }
  .ward-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .ward-lb-close {
    top: 5px;
    right: 5px;
  }
}

@media (max-width: 580px) {
  .ward-grid {
    grid-template-columns: 1fr;
    max-width: 380px;
    margin: 0 auto;
  }
  .ward-card-image-wrap {
    height: 210px;
  }
  .ward-modal-title {
    font-size: 1.3rem;
  }
}
/* =========================================================
   WARD UNITS
========================================================= */

.ward-units-section {
    background: #f8f4ee;
    padding: 90px 20px;
}

.ward-units-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    margin-top: 55px;
}

.ward-unit-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-height: 260px;
    padding: 35px 25px;

    background: #ffffff;
    border: 1px solid rgba(123, 17, 19, 0.12);
    border-radius: 18px;

    text-decoration: none;
    text-align: center;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.ward-unit-card:hover {
    transform: translateY(-8px);
    border-color: #b28a4a;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.ward-icon {
    width: 68px;
    height: 68px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 18px;

    border-radius: 50%;
    background: #f5e7e7;

    color: #7b1113;
    font-size: 27px;
}

.ward-number {
    color: #b28a4a;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 6px;
}

.ward-unit-card h2 {
    margin: 5px 0 16px;

    color: #7b1113;
    font-family: Georgia, "Times New Roman", serif;

    font-size: 27px;
    font-weight: 500;
}

.ward-link {
    color: #b28a4a;
    font-size: 15px;
    font-weight: 600;

    transition: color 0.3s ease;
}

.ward-unit-card:hover .ward-link {
    color: #7b1113;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .ward-units-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .ward-units-section {
        padding: 65px 16px;
    }

    .ward-units-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-top: 35px;
    }

    .ward-unit-card {
        min-height: 210px;
        padding: 28px 20px;
    }

    .ward-unit-card h2 {
        font-size: 24px;
    }

    .ward-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

}


/* =========================================================
   DESKTOP-MODE PHONE / SMALL LANDSCAPE
========================================================= */

@media (min-width: 601px) and (max-width: 850px) {

    .ward-units-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ward-unit-card {
        min-height: 220px;
    }

}
/* =========================================================
   PROFESSIONAL ADMIN MANAGEMENT
   St. Sebastian Madathil Church
   ========================================================= */

.admin-modern-card {
    width: 100%;
    background: #ffffff;
    border: 1px solid #e8dfd5;
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(73, 20, 20, 0.07);
    overflow: hidden;
}

/* ---------- Header ---------- */

.admin-modern-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 30px;
    border-bottom: 1px solid #eee7df;
    background: linear-gradient(
        135deg,
        #fffdf9 0%,
        #ffffff 100%
    );
}

.admin-section-label {
    color: #b18438;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.admin-modern-header h2 {
    margin: 0;
    color: #6f0d12;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 27px;
    font-weight: 600;
}

.admin-modern-header p {
    margin: 7px 0 0;
    color: #77716d;
    font-size: 13px;
}

/* ---------- Add Button ---------- */

.admin-add-btn {
    border: none;
    background: #761015;
    color: #ffffff;
    padding: 12px 19px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(118, 16, 21, 0.18);
}

.admin-add-btn i {
    margin-right: 7px;
}

.admin-add-btn:hover {
    background: #5d0b10;
    transform: translateY(-1px);
    box-shadow: 0 7px 16px rgba(118, 16, 21, 0.22);
}

/* ---------- Current User ---------- */

.admin-current-box {
    margin: 24px 30px;
    padding: 18px 20px;
    border: 1px solid #eadfcf;
    border-radius: 14px;
    background: linear-gradient(
        135deg,
        #fffaf0,
        #fffdf9
    );

    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-current-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #f2e6cc;
    color: #8a681f;

    font-size: 20px;
}

.admin-current-info {
    flex: 1;
    min-width: 0;
}

.admin-current-caption {
    color: #a37a2e;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 4px;
}

.admin-current-email {
    color: #321619;
    font-size: 15px;
    font-weight: 700;
    word-break: break-word;
}

.admin-current-subtext {
    color: #918781;
    font-size: 11px;
    margin-top: 4px;
}

.admin-role-badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;

    border-radius: 30px;

    background: #f0e2bd;
    color: #745719;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;

    white-space: nowrap;
}

/* ---------- List Heading ---------- */

.admin-list-title {
    padding: 0 30px;
    margin: 5px 0 14px;
}

.admin-list-title h3 {
    margin: 0;
    color: #6f0d12;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    font-weight: 600;
}

.admin-list-title p {
    margin: 5px 0 0;
    color: #817973;
    font-size: 12px;
}

/* ---------- Administrator List ---------- */

.admin-users-list {
    padding: 0 30px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ---------- Administrator Row ---------- */

.admin-user-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;

    align-items: center;

    gap: 18px;

    padding: 16px 18px;

    border: 1px solid #ebe5dd;
    border-radius: 13px;

    background: #ffffff;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.admin-user-row:hover {
    border-color: #d9c9af;

    box-shadow:
        0 5px 18px rgba(70, 25, 25, 0.07);

    transform: translateY(-1px);
}

/* ---------- User Information ---------- */

.admin-user-main {
    min-width: 0;

    display: flex;
    align-items: center;
    gap: 13px;
}

.admin-user-main::before {
    content: "\f007";

    width: 40px;
    height: 40px;
    min-width: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #f5eee2;
    color: #8b6b28;

    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 15px;
}

.admin-user-email {
    color: #321619;
    font-size: 14px;
    font-weight: 700;

    word-break: break-word;
}

.admin-user-id {
    margin-top: 4px;

    color: #aaa19a;

    font-size: 10px;

    word-break: break-all;
}

.admin-user-you {
    display: inline-flex;

    margin-left: 7px;
    padding: 3px 7px;

    border-radius: 5px;

    background: #e8f5ea;
    color: #27733a;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 0.5px;
}

/* ---------- Role ---------- */

.admin-user-role {
    padding: 7px 12px;

    border-radius: 30px;

    background: #f4f0e8;
    color: #705827;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 0.8px;

    text-transform: uppercase;

    white-space: nowrap;
}

/* ---------- Remove ---------- */

.admin-remove-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    padding: 8px 12px;

    border: 1px solid #e7caca;

    border-radius: 8px;

    background: #fff8f8;
    color: #a3262e;

    font-size: 11px;
    font-weight: 700;

    cursor: pointer;

    transition: all 0.2s ease;
}

.admin-remove-btn:hover {
    background: #a3262e;
    border-color: #a3262e;
    color: #ffffff;
}

.admin-remove-btn:disabled {
    background: #f5f5f5;
    border-color: #e5e5e5;
    color: #b5b5b5;
    cursor: not-allowed;
    opacity: 0.75;
}

.admin-remove-btn:disabled:hover {
    background: #f5f5f5;
    color: #b5b5b5;
}

/* ---------- Empty State ---------- */

.admin-empty-box,
.admin-loading {
    margin: 0 30px 20px;

    min-height: 150px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    text-align: center;

    border: 1px dashed #dcd0c1;
    border-radius: 13px;

    background: #fcfaf6;

    color: #827871;

    padding: 25px;
}

.admin-empty-box i {
    margin-bottom: 10px;

    color: #b58b3c;

    font-size: 30px;
}

.admin-empty-box strong {
    color: #6f0d12;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
}

.admin-empty-box span {
    margin-top: 5px;
    font-size: 12px;
}

/* ---------- Information Note ---------- */

.admin-modern-note {
    margin: 0 30px 25px;

    display: flex;
    align-items: flex-start;

    gap: 9px;

    padding: 13px 15px;

    border-radius: 9px;

    background: #f8f5ef;

    color: #756d67;

    font-size: 11px;

    line-height: 1.55;
}

.admin-modern-note i {
    color: #b1883e;
    margin-top: 2px;
}

/* =========================================================
   ADMIN MODAL
   ========================================================= */

#adminManagementModal {
    position: fixed;
    inset: 0;

    display: none;

    align-items: center;
    justify-content: center;

    background: rgba(35, 8, 10, 0.55);

    backdrop-filter: blur(4px);

    z-index: 9999;

    padding: 20px;
}

#adminManagementModal.show {
    display: flex;
}

#adminManagementModal .modal-content {
    width: 100%;
    max-width: 540px;

    background: #ffffff;

    border-radius: 18px;

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.25);

    overflow: hidden;
}

#adminManagementModal .modal-header {
    padding: 22px 25px;

    background: #761015;
    color: #ffffff;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

#adminManagementModal .modal-header h2 {
    margin: 0;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
}

#adminManagementModal .modal-close {
    width: 34px;
    height: 34px;

    border: none;
    border-radius: 50%;

    background: rgba(255,255,255,.14);

    color: #ffffff;

    cursor: pointer;

    font-size: 17px;
}

#adminManagementModal .modal-close:hover {
    background: rgba(255,255,255,.25);
}

#adminManagementModal .modal-body {
    padding: 25px;
}

#adminManagementModal label {
    display: block;

    margin-bottom: 7px;

    color: #4b2426;

    font-size: 12px;
    font-weight: 700;
}

#adminManagementModal input,
#adminManagementModal select {
    width: 100%;

    padding: 12px 13px;

    border: 1px solid #ddd4ca;
    border-radius: 8px;

    background: #ffffff;

    color: #332022;

    font-size: 13px;

    outline: none;

    margin-bottom: 17px;

    transition: border-color .2s ease,
                box-shadow .2s ease;
}

#adminManagementModal input:focus,
#adminManagementModal select:focus {
    border-color: #9b6d2d;

    box-shadow:
        0 0 0 3px rgba(155,109,45,.10);
}

#adminManagementModal .modal-footer {
    padding: 17px 25px;

    border-top: 1px solid #eee7df;

    display: flex;
    justify-content: flex-end;

    gap: 10px;
}

#adminManagementModal .secondary-btn {
    padding: 11px 18px;

    border: 1px solid #ddd5cc;

    border-radius: 8px;

    background: #ffffff;

    color: #625954;

    font-size: 12px;
    font-weight: 700;

    cursor: pointer;
}

#adminManagementModal .secondary-btn:hover {
    background: #f7f4ef;
}

#adminManagementModal .primary-btn {
    padding: 11px 18px;

    border: none;

    border-radius: 8px;

    background: #761015;

    color: #ffffff;

    font-size: 12px;
    font-weight: 700;

    cursor: pointer;
}

#adminManagementModal .primary-btn:hover {
    background: #5d0b10;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 800px) {

    .admin-modern-header {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-add-btn {
        width: 100%;
    }

    .admin-current-box {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .admin-role-badge {
        margin-left: 67px;
    }

    .admin-user-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .admin-user-role {
        width: fit-content;
    }

    .admin-remove-btn {
        width: 100%;
    }
}

@media (max-width: 500px) {

    .admin-modern-header {
        padding: 20px;
    }

    .admin-current-box {
        margin: 18px;
    }

    .admin-list-title {
        padding: 0 18px;
    }

    .admin-users-list {
        padding: 0 18px 18px;
    }

    .admin-modern-note {
        margin: 0 18px 18px;
    }

    .admin-empty-box,
    .admin-loading {
        margin-left: 18px;
        margin-right: 18px;
    }

}
/* =====================================================
   TINY ADMIN ACCESS DOT
   ===================================================== */

.admin-access-dot {
    display: inline-block;
    margin-left: 10px;
    color: rgba(255, 255, 255, 0.35);
    text-decoration: none;
    font-size: 13px;
    line-height: 1;
    transition: all 0.2s ease;
}

.admin-access-dot:hover {
    color: rgba(255, 255, 255, 0.85);
    transform: scale(1.2);
}
/* ============================================
   SETTINGS PAGE
============================================ */

.admin-section {
    width: 100%;
}

.section-heading {
    margin-bottom: 25px;
}

.section-heading h1 {
    margin: 0 0 8px;
}

.section-heading p {
    margin: 0;
    color: #777;
}


.admin-card {
    background: #ffffff;
    border: 1px solid #eadfd4;
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
}


.card-heading {
    margin-bottom: 25px;
}

.card-heading h2 {
    margin: 0 0 7px;
    color: #7b1113;
}

.card-heading p {
    margin: 0;
    color: #777;
}


/* FORM GRID */

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #4b2c2c;
}


.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #dfd1c6;
    border-radius: 9px;
    padding: 12px 14px;
    font-size: 15px;
    font-family: inherit;
    background: #fff;
    color: #333;
    outline: none;
    transition: 0.2s;
}


.form-group textarea {
    resize: vertical;
}


.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #7b1113;
    box-shadow: 0 0 0 3px rgba(123, 17, 19, 0.08);
}


/* BUTTONS */

.primary-btn,
.secondary-btn,
.danger-btn {
    border: none;
    border-radius: 8px;
    padding: 11px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}


.primary-btn {
    background: #7b1113;
    color: white;
}

.primary-btn:hover {
    background: #651012;
}


.secondary-btn {
    background: #f4eee7;
    color: #6d2022;
    border: 1px solid #d9c8b8;
}

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


.danger-btn {
    background: #fff0f0;
    color: #b42318;
    border: 1px solid #e4b7b7;
}

.danger-btn:hover {
    background: #ffe0e0;
}


/* COLOR */

.color-input-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.color-input-wrapper input[type="color"] {
    width: 55px;
    height: 42px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 3px;
    cursor: pointer;
}

.color-input-wrapper span {
    font-family: monospace;
    font-weight: 600;
}


/* CHECKBOXES */

.settings-checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.settings-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 15px;
    color: #444;
}

.settings-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: #7b1113;
}


/* MAINTENANCE */

.maintenance-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.status-box {
    background: #faf7f3;
    border: 1px solid #e7dcd1;
    border-radius: 10px;
    padding: 18px;
}

.status-label {
    display: block;
    color: #777;
    font-size: 13px;
    margin-bottom: 7px;
}

.status-box strong {
    color: #333;
}


.status-box select {
    border: 1px solid #ddd;
    border-radius: 7px;
    padding: 7px;
}


/* ADMIN INFO */

.admin-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.info-box {
    background: #faf7f3;
    border: 1px solid #e7dcd1;
    border-radius: 10px;
    padding: 18px;
}

.info-box span {
    display: block;
    color: #777;
    font-size: 13px;
    margin-bottom: 7px;
}

.info-box strong {
    color: #333;
}


.admin-actions {
    display: flex;
    gap: 12px;
}


/* RESPONSIVE */

@media (max-width: 900px) {

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-group.full-width {
        grid-column: auto;
    }

    .maintenance-grid,
    .admin-info-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 600px) {

    .admin-card {
        padding: 20px;
    }

    .admin-actions {
        flex-direction: column;
    }

    .primary-btn,
    .secondary-btn,
    .danger-btn {
        width: 100%;
    }

}