/* =====================================================
   Catholic Church Directory — Main Stylesheet
   ===================================================== */

/* ---- CSS Variables ---- */
:root {
  --navy:       #1a2744;
  --navy-dark:  #111b30;
  --navy-light: #243560;
  --gold:       #c9a84c;
  --gold-light: #e0c070;
  --gold-dark:  #a8883a;
  --white:      #ffffff;
  --off-white:  #f8f7f4;
  --light-gray: #f0eeeb;
  --mid-gray:   #d1cdc7;
  --text:       #2d2d2d;
  --text-muted: #6b6b6b;
  --border:     #e5e0d8;
  --shadow-sm:  0 2px 8px rgba(0,0,0,.08);
  --shadow-md:  0 4px 20px rgba(0,0,0,.12);
  --shadow-lg:  0 8px 40px rgba(0,0,0,.16);
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --transition: 0.25s ease;
  --font-head:  'Playfair Display', Georgia, serif;
  --font-body:  'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --container:  1240px;
  --header-h:   72px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-dark); }
ul { list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* =====================================================
   HEADER
   ===================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

/* Header Top Bar */
.header-top {
  background: var(--navy);
  color: rgba(255,255,255,.75);
  font-size: .8rem;
  padding: 6px 0;
}
.header-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-contact-info {
  display: flex;
  align-items: center;
  gap: 6px;
}
.header-contact-info i { color: var(--gold); }
.header-social { display: flex; gap: 12px; }
.header-social a {
  color: rgba(255,255,255,.7);
  font-size: .85rem;
  transition: color var(--transition);
}
.header-social a:hover { color: var(--gold); }

/* Main Nav */
.main-nav {
  height: var(--header-h);
  display: flex;
  align-items: center;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}

/* Logo */
.site-branding .text-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-icon {
  width: 42px; height: 42px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.logo-name {
  display: block;
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}
.logo-tagline {
  display: block;
  font-size: .7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.custom-logo { max-height: 56px; width: auto; }

/* Primary Menu */
.nav-menu-wrap { flex: 1; display: flex; justify-content: center; }
.primary-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}
.primary-menu li { position: relative; }
.primary-menu li a {
  display: block;
  padding: 8px 14px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--navy);
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
.primary-menu li a:hover,
.primary-menu li.current-menu-item > a {
  background: var(--off-white);
  color: var(--gold-dark);
}

/* Dropdown */
.primary-menu li ul {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 200px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 8px 0;
  z-index: 200;
}
.primary-menu li:hover > ul { display: block; }
.primary-menu li ul li a {
  padding: 8px 16px;
  border-radius: 0;
  font-size: .875rem;
}

/* Nav Actions */
.nav-actions { display: flex; align-items: center; gap: 10px; }
.search-toggle, .mobile-menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--navy);
  font-size: 1rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.search-toggle:hover, .mobile-menu-toggle:hover { background: var(--off-white); }

/* Hamburger */
.hamburger { display: flex; flex-direction: column; gap: 5px; }
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--navy);
  transition: transform var(--transition), opacity var(--transition);
  border-radius: 2px;
}
.mobile-menu-toggle.active .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-toggle.active .hamburger span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Header Search Bar */
.header-search-bar {
  background: var(--navy);
  padding: 14px 0;
  display: none;
}
.header-search-bar.open { display: block; }
.header-search-form {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-search-form input[type="search"] {
  flex: 1;
  border: none;
  background: rgba(255,255,255,.12);
  color: var(--white);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: .95rem;
  outline: none;
}
.header-search-form input[type="search"]::placeholder { color: rgba(255,255,255,.5); }
.header-search-form button {
  background: var(--gold);
  color: var(--navy);
  border: none;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: .95rem;
  transition: background var(--transition);
}
.header-search-form button:hover { background: var(--gold-light); }
.search-close { background: transparent !important; color: rgba(255,255,255,.7) !important; }
.search-close:hover { color: var(--white) !important; background: transparent !important; }

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.btn-sm  { padding: 6px 14px; font-size: .82rem; }
.btn-lg  { padding: 14px 30px; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; margin-bottom: 10px; }

.btn-primary  { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-primary:hover { background: var(--navy-light); color: var(--white); border-color: var(--navy-light); }

.btn-gold  { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-dark); color: var(--navy); border-color: var(--gold-dark); }

.btn-outline-primary { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline-primary:hover { background: var(--navy); color: var(--white); }

.btn-outline-white { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline-white:hover { background: var(--white); color: var(--navy); }

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero-section {
  position: relative;
  min-height: 580px;
  display: flex;
  flex-direction: column;
  background: var(--navy-dark);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .25;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,39,68,.92) 0%, rgba(26,39,68,.7) 100%);
}
.hero-section .container {
  position: relative;
  z-index: 2;
  padding-top: 80px;
  padding-bottom: 40px;
  flex: 1;
}
.hero-content { max-width: 780px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,168,76,.15);
  border: 1px solid rgba(201,168,76,.35);
  color: var(--gold);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 16px;
}
.text-gold { color: var(--gold); }
.hero-subtitle {
  color: rgba(255,255,255,.75);
  font-size: 1.1rem;
  margin-bottom: 32px;
  max-width: 560px;
}

/* Hero Search */
.hero-search-form { margin-bottom: 24px; }
.hero-search-inner {
  display: flex;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-width: 680px;
}
.search-input-wrap {
  display: flex;
  align-items: center;
  flex: 1;
  padding: 0 16px;
  gap: 10px;
}
.search-input-wrap i { color: var(--text-muted); }
.search-input-wrap input {
  flex: 1;
  border: none;
  outline: none;
  font-size: .95rem;
  padding: 14px 0;
  color: var(--text);
}
.hero-search-inner .btn-gold {
  border-radius: 0;
  padding: 14px 24px;
}

/* Quick Filters */
.hero-quick-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.filter-label { color: rgba(255,255,255,.6); font-size: .85rem; }
.filter-chip {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: var(--white);
  border-radius: 50px;
  font-size: .8rem;
  transition: all var(--transition);
}
.filter-chip:hover { background: rgba(255,255,255,.2); color: var(--white); }
.filter-chip-outline { border-color: var(--gold); color: var(--gold); }
.filter-chip-outline:hover { background: var(--gold); color: var(--navy); }

/* Hero Stats */
.hero-stats {
  background: rgba(0,0,0,.3);
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255,255,255,.1);
}
.stats-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 20px 0;
}
.stat-item {
  text-align: center;
  padding: 0 40px;
}
.stat-number {
  display: block;
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
}
.stat-label {
  display: block;
  color: rgba(255,255,255,.65);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: 2px;
}
.stat-divider {
  width: 1px; height: 40px;
  background: rgba(255,255,255,.15);
}

/* =====================================================
   SECTIONS
   ===================================================== */
.section { padding: 80px 0; }
.section-light { background: var(--off-white); }
.section-dark  { background: var(--navy); }

.section-header { text-align: center; margin-bottom: 50px; }
.section-header-light .section-title,
.section-header-light .section-subtitle { color: var(--white); }

.section-badge {
  display: inline-block;
  background: rgba(201,168,76,.12);
  color: var(--gold-dark);
  border: 1px solid rgba(201,168,76,.3);
  padding: 4px 14px;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 12px;
}
.section-badge-gold { background: rgba(201,168,76,.2); color: var(--gold); border-color: var(--gold); }

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.25;
}
.section-subtitle { color: var(--text-muted); max-width: 520px; margin: 0 auto; }
.section-cta { text-align: center; margin-top: 40px; }

/* =====================================================
   CHURCH CARDS
   ===================================================== */
.church-grid {
  display: grid;
  gap: 28px;
}
.church-grid-3 { grid-template-columns: repeat(3, 1fr); }
.church-grid-2 { grid-template-columns: repeat(2, 1fr); }

.church-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.church-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Card Image */
.card-img-link { display: block; overflow: hidden; }
.card-img-wrap {
  position: relative;
  aspect-ratio: 3/2;
  overflow: hidden;
  background: var(--light-gray);
}
.card-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.church-card:hover .card-img { transform: scale(1.04); }
.card-img-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: rgba(255,255,255,.3);
  font-size: 3rem;
}
.card-diocese-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--navy);
  color: var(--white);
  font-size: .7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* Card Body */
.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  margin-bottom: 8px;
  line-height: 1.3;
}
.card-title a { color: var(--navy); }
.card-title a:hover { color: var(--gold-dark); }
.card-patron {
  font-size: .8rem;
  color: var(--gold-dark);
  font-weight: 500;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.card-meta {
  font-size: .82rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-bottom: 6px;
}
.card-meta i { color: var(--gold); margin-top: 3px; flex-shrink: 0; }
.card-meta a { color: var(--text-muted); }
.card-meta a:hover { color: var(--navy); }
.card-schedule {
  margin-top: 10px;
  padding: 10px 12px;
  background: var(--off-white);
  border-radius: var(--radius-sm);
  font-size: .8rem;
  border-left: 3px solid var(--gold);
}
.schedule-label { display: block; font-weight: 600; color: var(--navy); margin-bottom: 3px; }
.schedule-preview { color: var(--text-muted); }
.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 14px;
  color: var(--gold-dark);
  font-size: .85rem;
  font-weight: 600;
  transition: gap var(--transition);
}
.card-cta:hover { gap: 10px; color: var(--navy); }

/* Placeholder card */
.church-card-placeholder { opacity: .5; pointer-events: none; }

/* =====================================================
   HOW IT WORKS
   ===================================================== */
.steps-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.step-item {
  text-align: center;
  flex: 1;
  max-width: 280px;
  padding: 30px 20px;
  color: var(--white);
}
.step-icon {
  position: relative;
  width: 80px; height: 80px;
  background: rgba(201,168,76,.15);
  border: 2px solid rgba(201,168,76,.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--gold);
  margin: 0 auto 20px;
}
.step-number {
  position: absolute;
  top: -8px; right: -8px;
  width: 24px; height: 24px;
  background: var(--gold);
  color: var(--navy);
  border-radius: 50%;
  font-size: .75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-item h3 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 10px;
}
.step-item p { color: rgba(255,255,255,.65); font-size: .9rem; }
.step-arrow {
  color: rgba(255,255,255,.2);
  font-size: 1.2rem;
  padding: 0 10px;
}

/* =====================================================
   DIOCESE GRID
   ===================================================== */
.diocese-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.diocese-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  text-align: center;
  transition: all var(--transition);
  color: var(--text);
}
.diocese-card:hover {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,.15);
  color: var(--text);
  transform: translateY(-2px);
}
.diocese-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.1rem;
  margin: 0 auto 12px;
}
.diocese-name {
  font-family: var(--font-head);
  font-size: .95rem;
  color: var(--navy);
  margin-bottom: 6px;
  line-height: 1.3;
}
.diocese-count { font-size: .78rem; color: var(--text-muted); }

/* =====================================================
   CTA SECTION
   ===================================================== */
.cta-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 70px 0;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-text h2 {
  font-family: var(--font-head);
  font-size: 2rem;
  color: var(--white);
  margin-bottom: 10px;
}
.cta-text p { color: rgba(255,255,255,.7); max-width: 440px; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* =====================================================
   POST CARDS
   ===================================================== */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.post-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.post-card-img-link { display: block; overflow: hidden; aspect-ratio: 16/9; }
.post-card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.post-card:hover .post-card-img { transform: scale(1.04); }
.post-card-body { padding: 20px; }
.post-meta-row { display: flex; gap: 16px; margin-bottom: 10px; }
.post-date, .post-author { font-size: .78rem; color: var(--text-muted); display: flex; align-items: center; gap: 5px; }
.post-title { font-family: var(--font-head); font-size: 1.05rem; margin-bottom: 10px; line-height: 1.35; }
.post-title a { color: var(--navy); }
.post-title a:hover { color: var(--gold-dark); }
.post-excerpt { font-size: .85rem; color: var(--text-muted); margin-bottom: 14px; }
.read-more-link { color: var(--gold-dark); font-size: .85rem; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.read-more-link:hover { gap: 8px; color: var(--navy); }

/* =====================================================
   PAGE BANNER
   ===================================================== */
.page-banner {
  position: relative;
  background: var(--navy);
  min-height: 240px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.page-banner-sm { min-height: 180px; }
.page-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,39,68,.88) 0%, rgba(26,39,68,.7) 100%);
}
.page-banner-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .3;
}
.page-banner .container { position: relative; z-index: 2; padding-top: 40px; padding-bottom: 40px; }
.page-banner-content { }
.page-banner-title {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  color: var(--white);
  margin-bottom: 10px;
  margin-top: 8px;
  line-height: 1.2;
}
.page-banner-title em { color: var(--gold); font-style: normal; }
.page-banner-subtitle { color: rgba(255,255,255,.75); font-size: .95rem; margin-top: 6px; }
.page-banner-desc { color: rgba(255,255,255,.7); margin-top: 10px; max-width: 600px; }

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  color: rgba(255,255,255,.55);
}
.breadcrumb a { color: rgba(255,255,255,.65); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb i { font-size: .6rem; opacity: .5; }

/* =====================================================
   ARCHIVE PAGE
   ===================================================== */
.archive-page { padding: 40px 0 60px; }

/* Filters Bar */
.filters-bar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-sm);
}
.filters-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.filter-search { flex: 1; min-width: 200px; }
.filter-search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
}
.filter-search-form i { color: var(--text-muted); font-size: .9rem; }
.filter-search-form input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: .9rem;
  color: var(--text);
}
.filter-select-wrap {
  position: relative;
  min-width: 180px;
}
.filter-select {
  width: 100%;
  appearance: none;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 36px 9px 12px;
  font-size: .88rem;
  color: var(--text);
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition);
}
.filter-select:focus { border-color: var(--navy); }
.filter-select-wrap i {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: .75rem;
  pointer-events: none;
}
.view-toggle { display: flex; gap: 4px; }
.view-btn {
  background: var(--off-white);
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: .85rem;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.view-btn.active, .view-btn:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.filters-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.results-count { font-size: .85rem; color: var(--text-muted); }
.clear-filters {
  background: none;
  border: none;
  color: var(--gold-dark);
  font-size: .85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
}
.clear-filters:hover { color: var(--navy); }

/* Archive Layout */
.archive-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 30px;
  align-items: start;
}
.archive-main { min-width: 0; }

/* Sidebar */
.archive-sidebar { position: sticky; top: calc(var(--header-h) + 16px); }
.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
}
.widget-title {
  font-family: var(--font-head);
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold);
  display: flex;
  align-items: center;
  gap: 8px;
}
.widget-title i { color: var(--gold); }
.sidebar-tax-list li + li { border-top: 1px solid var(--light-gray); }
.sidebar-tax-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 4px;
  font-size: .88rem;
  color: var(--text);
  transition: color var(--transition), padding var(--transition);
}
.sidebar-tax-list a:hover, .sidebar-tax-list a.active {
  color: var(--gold-dark);
  padding-left: 8px;
}
.tax-count {
  background: var(--off-white);
  color: var(--text-muted);
  font-size: .75rem;
  padding: 2px 8px;
  border-radius: 50px;
}

/* List View */
.church-grid.list-view {
  grid-template-columns: 1fr;
}
.church-grid.list-view .church-card {
  flex-direction: row;
}
.church-grid.list-view .card-img-wrap {
  width: 200px;
  aspect-ratio: auto;
  height: 160px;
  flex-shrink: 0;
}

/* No Results */
.ccd-no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.ccd-no-results i {
  font-size: 3rem;
  color: var(--mid-gray);
  margin-bottom: 16px;
  display: block;
}
.ccd-no-results h3 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 10px;
}
.ccd-no-results p { margin-bottom: 20px; }

/* =====================================================
   SINGLE CHURCH
   ===================================================== */
.single-church-page { padding: 40px 0 60px; }
.church-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 30px;
  align-items: start;
}
.church-main { min-width: 0; }
.church-sidebar { position: sticky; top: calc(var(--header-h) + 16px); }

/* Quick Info Bar */
.quick-info-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  margin-bottom: 24px;
}
.quick-info-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .85rem;
  color: rgba(255,255,255,.8);
  flex: 1;
  min-width: 160px;
}
.quick-info-item i { color: var(--gold); flex-shrink: 0; }
.quick-info-item a { color: rgba(255,255,255,.8); }
.quick-info-item a:hover { color: var(--gold); }
.quick-info-actions { display: flex; gap: 8px; margin-left: auto; }

/* Church Hero Image */
.church-hero-img {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 30px;
  aspect-ratio: 16/7;
}
.church-feature-img { width: 100%; height: 100%; object-fit: cover; }

/* Church Sections */
.church-section { margin-bottom: 36px; }
.church-section-title {
  font-family: var(--font-head);
  font-size: 1.35rem;
  color: var(--navy);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gold);
  display: flex;
  align-items: center;
  gap: 10px;
}
.church-section-title i { color: var(--gold); }
.church-content { line-height: 1.85; color: var(--text); }
.church-content p { margin-bottom: 16px; }

/* Mass Schedule */
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.schedule-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.schedule-card-primary { border-color: var(--gold); }
.schedule-card-header {
  background: var(--off-white);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}
.schedule-card-primary .schedule-card-header { background: var(--navy); color: var(--white); }
.schedule-card-header i { color: var(--gold); }
.schedule-card-header h3 { font-family: var(--font-head); font-size: .95rem; margin: 0; }
.schedule-card-primary .schedule-card-header h3 { color: var(--white); }
.schedule-content { padding: 14px 16px; }
.schedule-list { list-style: none; }
.schedule-list li {
  padding: 6px 0;
  border-bottom: 1px solid var(--light-gray);
  font-size: .88rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}
.schedule-list li:last-child { border-bottom: none; }
.schedule-list li::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Map */
.church-map {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
}
.map-address { font-size: .85rem; color: var(--text-muted); display: flex; align-items: center; gap: 7px; margin-top: 10px; }
.map-address i { color: var(--gold); }

/* Sidebar Cards */
.sidebar-details-card .details-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 0;
  border-bottom: 1px solid var(--light-gray);
  font-size: .87rem;
}
.sidebar-details-card .details-list li:last-child { border-bottom: none; }
.detail-label { font-weight: 600; color: var(--navy); display: flex; align-items: center; gap: 6px; }
.detail-label i { color: var(--gold); width: 14px; }
.detail-value { color: var(--text-muted); padding-left: 20px; }
.detail-value a { color: var(--gold-dark); }
.detail-value a:hover { color: var(--navy); }

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--light-gray);
  font-size: .87rem;
  color: var(--text);
}
.contact-list li:last-child { border-bottom: none; }
.contact-list i { color: var(--gold); margin-top: 3px; width: 16px; flex-shrink: 0; }
.contact-list a { color: var(--text); }
.contact-list a:hover { color: var(--gold-dark); }

/* Nearby Churches */
.nearby-list { display: flex; flex-direction: column; gap: 12px; }
.nearby-item { display: flex; align-items: center; gap: 10px; }
.nearby-img-link { flex-shrink: 0; }
.nearby-img { width: 52px; height: 52px; object-fit: cover; border-radius: var(--radius-sm); }
.nearby-info { flex: 1; min-width: 0; }
.nearby-title {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}
.nearby-title:hover { color: var(--gold-dark); }
.nearby-city { font-size: .78rem; color: var(--text-muted); }
.sidebar-view-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--gold-dark);
  font-size: .82rem;
  font-weight: 600;
  margin-top: 12px;
}
.sidebar-view-more:hover { gap: 8px; }

/* Back to directory */
.back-to-directory {
  background: var(--off-white);
  padding: 20px 0;
  border-top: 1px solid var(--border);
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font-size: .9rem;
  font-weight: 500;
  transition: gap var(--transition);
}
.back-link:hover { gap: 12px; color: var(--gold-dark); }

/* =====================================================
   BLOG & PAGES
   ===================================================== */
.blog-page, .static-page, .search-results-page { padding: 40px 0 60px; }
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 30px;
  align-items: start;
}
.blog-sidebar { position: sticky; top: calc(var(--header-h) + 16px); }
.page-content-wrap { max-width: 800px; margin: 0 auto; }
.page-content .entry-content { line-height: 1.85; }
.page-content .entry-content p { margin-bottom: 16px; }
.page-content .entry-content h2, h3 { font-family: var(--font-head); color: var(--navy); margin: 28px 0 12px; }
.page-feature-img { border-radius: var(--radius-md); overflow: hidden; margin-bottom: 30px; }
.feature-img { width: 100%; }
.search-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.search-count { font-size: .95rem; color: var(--text-muted); }
.search-refine-form { display: flex; gap: 10px; }
.search-refine-form input {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  font-size: .9rem;
  outline: none;
  min-width: 240px;
}
.search-refine-form input:focus { border-color: var(--navy); }

/* =====================================================
   404 PAGE
   ===================================================== */
.error-page {
  min-height: calc(100vh - var(--header-h) - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}
.error-content { text-align: center; max-width: 500px; margin: 0 auto; }
.error-icon { font-size: 4rem; color: var(--mid-gray); margin-bottom: 16px; }
.error-code {
  font-family: var(--font-head);
  font-size: 7rem;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 8px;
}
.error-title { font-family: var(--font-head); font-size: 1.8rem; color: var(--navy); margin-bottom: 12px; }
.error-message { color: var(--text-muted); margin-bottom: 28px; }
.error-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 32px; }
.error-search p { color: var(--text-muted); margin-bottom: 12px; font-size: .9rem; }
.error-search-form {
  display: flex;
  gap: 8px;
  justify-content: center;
}
.error-search-form input {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  outline: none;
  font-size: .9rem;
  min-width: 240px;
}

/* =====================================================
   PAGINATION
   ===================================================== */
.pagination-wrap {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.page-numbers {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
.page-numbers a,
.page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .88rem;
  color: var(--text);
  transition: all var(--transition);
}
.page-numbers a:hover { border-color: var(--navy); background: var(--navy); color: var(--white); }
.page-numbers .current { background: var(--navy); color: var(--white); border-color: var(--navy); font-weight: 600; }
.page-numbers .dots { border: none; cursor: default; }
.load-more-btn { margin-top: 8px; }

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,.7); }
.footer-top { padding: 60px 0 40px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  margin-bottom: 16px;
  text-decoration: none;
}
.footer-logo-icon {
  width: 38px; height: 38px;
  background: rgba(201,168,76,.15);
  border: 1px solid rgba(201,168,76,.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1rem;
}
.footer-logo-name { font-family: var(--font-head); font-size: 1.1rem; color: var(--white); }
.footer-description { font-size: .85rem; line-height: 1.7; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.65);
  font-size: .85rem;
  transition: all var(--transition);
}
.footer-social a:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.footer-heading {
  font-family: var(--font-head);
  font-size: .95rem;
  color: var(--white);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-menu li + li { margin-top: 8px; }
.footer-menu a { font-size: .85rem; color: rgba(255,255,255,.6); transition: color var(--transition), padding var(--transition); }
.footer-menu a:hover { color: var(--gold); padding-left: 4px; }
.footer-widget-title { color: var(--white); font-size: .95rem; margin-bottom: 12px; }
.footer-contact-list li { display: flex; align-items: center; gap: 8px; font-size: .85rem; margin-bottom: 10px; }
.footer-contact-list i { color: var(--gold); width: 14px; flex-shrink: 0; }
.footer-contact-list a { color: rgba(255,255,255,.65); }
.footer-contact-list a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.copyright, .footer-credits { font-size: .8rem; }
.footer-credits i { color: #e74c3c; }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1100px) {
  .archive-layout { grid-template-columns: 1fr; }
  .archive-sidebar { position: static; }
  .church-layout { grid-template-columns: 1fr; }
  .church-sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .church-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { flex-direction: column; align-items: center; }
  .step-arrow { transform: rotate(90deg); }
  .cta-inner { flex-direction: column; text-align: center; }
  .cta-actions { justify-content: center; }
  .stats-grid { flex-wrap: wrap; }
  .stat-item { padding: 0 24px; }
  .blog-layout { grid-template-columns: 1fr; }
  .blog-sidebar { position: static; }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }

  .header-top { display: none; }

  /* Mobile Nav */
  .nav-menu-wrap {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--white);
    padding: 16px 24px 24px;
    box-shadow: var(--shadow-md);
    z-index: 999;
    border-top: 1px solid var(--border);
  }
  .nav-menu-wrap.open { display: block; }
  .primary-menu { flex-direction: column; align-items: flex-start; gap: 2px; }
  .primary-menu li { width: 100%; }
  .primary-menu li a { padding: 10px 12px; border-radius: var(--radius-sm); }
  .primary-menu li ul { display: none !important; }

  .nav-actions .btn-primary.btn-sm { display: none; }

  .church-grid-3, .church-grid-2 { grid-template-columns: 1fr; }
  .posts-grid { grid-template-columns: 1fr; }

  .hero-section { min-height: 480px; }
  .hero-search-inner { flex-direction: column; border-radius: var(--radius-sm); }
  .hero-search-inner .btn-gold { border-radius: var(--radius-sm); width: 100%; justify-content: center; }

  .quick-info-bar { flex-direction: column; align-items: flex-start; }
  .quick-info-actions { width: 100%; }

  .church-grid.list-view .church-card { flex-direction: column; }
  .church-grid.list-view .card-img-wrap { width: 100%; height: auto; aspect-ratio: 3/2; }

  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }

  .search-header { flex-direction: column; align-items: flex-start; }
  .search-refine-form { width: 100%; }
  .search-refine-form input { min-width: unset; flex: 1; }

  .filters-inner { flex-direction: column; align-items: stretch; }
  .filter-search { min-width: unset; }
  .filter-select-wrap { min-width: unset; }
  .view-toggle { align-self: flex-end; }
}

@media (max-width: 480px) {
  .section { padding: 50px 0; }
  .hero-stats .stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
  .stat-divider { display: none; }
  .stat-item { border: 1px solid rgba(255,255,255,.1); padding: 16px; }
  .diocese-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =====================================================
   UTILITIES
   ===================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }

/* =====================================================
   DIRECTORY STATS BAR
   ===================================================== */
.dir-stats-bar {
  background: var(--navy);
  border-bottom: 3px solid var(--gold);
  padding: 14px 0;
}
.dir-stats-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.dir-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.8);
  font-size: .9rem;
}
.dir-stat i { color: var(--gold); }
.dir-stat strong { color: var(--white); }

/* =====================================================
   DIRECTORY PAGE
   ===================================================== */
.directory-page { padding: 40px 0 60px; }

.dir-search-wrap { margin-bottom: 40px; }
.dir-search-form { max-width: 600px; }
.dir-search-inner {
  display: flex;
  align-items: center;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition);
}
.dir-search-inner:focus-within { border-color: var(--navy); }
.dir-search-inner i { padding: 0 14px; color: var(--text-muted); font-size: .95rem; }
.dir-search-inner input {
  flex: 1;
  border: none;
  outline: none;
  font-size: .95rem;
  padding: 13px 0;
  color: var(--text);
}
.dir-search-inner .btn { border-radius: 0; padding: 13px 22px; }

/* =====================================================
   CITY GRID
   ===================================================== */
.city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.city-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  color: var(--text);
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.city-card:hover {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,.12);
  transform: translateY(-2px);
  color: var(--text);
}
.city-card-icon {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: .95rem;
  flex-shrink: 0;
}
.city-card-info { flex: 1; min-width: 0; }
.city-card-name {
  font-family: var(--font-head);
  font-size: .95rem;
  color: var(--navy);
  margin-bottom: 3px;
  line-height: 1.3;
}
.city-card:hover .city-card-name { color: var(--gold-dark); }
.city-card-count { font-size: .78rem; color: var(--text-muted); }
.city-card-arrow {
  color: var(--mid-gray);
  font-size: .8rem;
  flex-shrink: 0;
  transition: transform var(--transition), color var(--transition);
}
.city-card:hover .city-card-arrow { transform: translateX(4px); color: var(--gold); }

/* Dir latest section */
.dir-latest-section { }

/* =====================================================
   SINGLE POST extras
   ===================================================== */
.single-post-article { }
.post-feature-img { border-radius: var(--radius-md); overflow: hidden; margin-bottom: 24px; }
.post-meta-bar {
  display: flex; gap: 20px; margin-bottom: 20px;
  padding-bottom: 16px; border-bottom: 1px solid var(--border);
}
.post-meta-bar span { font-size: .85rem; color: var(--text-muted); display: flex; align-items: center; gap: 5px; }
.entry-content { line-height: 1.85; }
.entry-content p  { margin-bottom: 16px; }
.entry-content h2,
.entry-content h3 { font-family: var(--font-head); color: var(--navy); margin: 28px 0 12px; }
.entry-content ul,
.entry-content ol { padding-left: 24px; margin-bottom: 16px; }
.entry-content li { margin-bottom: 6px; }
.entry-content img { border-radius: var(--radius-sm); margin: 16px 0; }
.entry-content a { color: var(--gold-dark); text-decoration: underline; }
.entry-content table { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.entry-content th,
.entry-content td { padding: 10px 12px; border: 1px solid var(--border); text-align: left; font-size: .9rem; }
.entry-content th { background: var(--off-white); font-weight: 600; color: var(--navy); }

/* card excerpt fallback */
.card-excerpt { font-size: .82rem; color: var(--text-muted); margin-bottom: 6px; }

/* =====================================================
   CHURCH COMMENTS SECTION
   ===================================================== */
.church-comments-section {
  background: var(--off-white);
  border-top: 1px solid var(--border);
  padding: 60px 0;
}

.church-comments-wrap { max-width: 860px; margin: 0 auto; }

/* Section header */
.comments-section-header { margin-bottom: 32px; }
.comments-section-title {
  font-family: var(--font-head);
  font-size: 1.6rem;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.comments-section-title i { color: var(--gold); }
.comments-section-subtitle { color: var(--text-muted); font-size: .9rem; }

/* ---- Tabs ---- */
.comment-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0;
}
.comment-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: .88rem;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color var(--transition), border-color var(--transition);
  border-radius: 0;
  white-space: nowrap;
}
.comment-tab i { font-size: .85rem; }
.comment-tab:hover { color: var(--navy); }

/* Active states per type */
.comment-tab.active.tab-all            { color: var(--navy);     border-bottom-color: var(--navy); }
.comment-tab.active.tab-thanks         { color: #b45309;         border-bottom-color: #b45309; }
.comment-tab.active.tab-prayer         { color: #1d4ed8;         border-bottom-color: #1d4ed8; }
.comment-tab.active.tab-update         { color: #166534;         border-bottom-color: #166534; }

.tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  background: var(--light-gray);
  border-radius: 50px;
  font-size: .72rem;
  font-weight: 700;
  color: var(--text-muted);
}
.comment-tab.active .tab-count { background: currentColor; color: var(--white); }

/* ---- Comment List ---- */
.comment-list-wrap { margin-bottom: 40px; }
.comment-list { display: flex; flex-direction: column; gap: 16px; }

.comment-card {
  display: flex;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  transition: box-shadow var(--transition);
}
.comment-card:hover { box-shadow: var(--shadow-sm); }

/* Avatar */
.comment-avatar {
  width: 42px; height: 42px;
  min-width: 42px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
}

/* Comment body */
.comment-body { flex: 1; min-width: 0; }
.comment-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.comment-author { font-weight: 600; color: var(--navy); font-size: .9rem; }
.comment-date   { font-size: .78rem; color: var(--text-muted); margin-left: auto; }
.comment-text   { font-size: .9rem; line-height: 1.7; color: var(--text); }
.comment-text p { margin-bottom: 8px; }
.comment-text p:last-child { margin-bottom: 0; }

/* Type badges */
.comment-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.badge-thanksgiving   { background: #fef3c7; color: #92400e; }
.badge-prayer_request { background: #dbeafe; color: #1e40af; }
.badge-church_update  { background: #dcfce7; color: #166534; }

/* Empty state */
.comment-empty {
  text-align: center;
  padding: 50px 20px;
  color: var(--text-muted);
}
.comment-empty i    { font-size: 2.5rem; color: var(--mid-gray); display: block; margin-bottom: 12px; }
.comment-empty p    { font-size: .9rem; }
.comment-password-notice { padding: 20px; text-align: center; color: var(--text-muted); }

/* ---- Comment Form ---- */
.comment-form-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.comment-form-title {
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.comment-form-title i { color: var(--gold); }
.logged-in-notice { font-size: .85rem; color: var(--text-muted); margin-bottom: 16px; }

/* Type radio group */
.form-type-group { margin-bottom: 24px; }
.form-label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
}
.required { color: #dc2626; }

.type-radio-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.type-radio-item { cursor: pointer; }
.type-radio-item input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}
.type-radio-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  text-align: center;
  transition: all var(--transition);
  background: var(--off-white);
}
.type-radio-content i {
  font-size: 1.4rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.type-radio-label { font-size: .85rem; font-weight: 600; color: var(--navy); }
.type-radio-desc  { font-size: .72rem; color: var(--text-muted); line-height: 1.3; }

/* Checked states */
.type-radio-item input:checked + .type-radio-thanks  { border-color: #d97706; background: #fffbeb; }
.type-radio-item input:checked + .type-radio-thanks i { color: #d97706; }
.type-radio-item input:checked + .type-radio-prayer  { border-color: #3b82f6; background: #eff6ff; }
.type-radio-item input:checked + .type-radio-prayer i { color: #3b82f6; }
.type-radio-item input:checked + .type-radio-update  { border-color: #22c55e; background: #f0fdf4; }
.type-radio-item input:checked + .type-radio-update i { color: #22c55e; }
.type-radio-content:hover { border-color: var(--navy); }

/* Form fields */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.form-group { margin-bottom: 16px; }
.form-group:last-of-type { margin-bottom: 0; }
.ccd-comment-form input[type="text"],
.ccd-comment-form input[type="email"],
.ccd-comment-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: .9rem;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.ccd-comment-form input:focus,
.ccd-comment-form textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(26,39,68,.08);
}
.ccd-comment-form textarea { resize: vertical; min-height: 120px; }
.char-counter {
  display: block;
  text-align: right;
  font-size: .75rem;
  color: var(--text-muted);
  margin-top: 4px;
}
.char-counter.over-limit { color: #dc2626; }

.form-privacy-note {
  font-size: .78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 14px 0;
}
.form-privacy-note i { color: var(--gold); }
.form-actions { margin-top: 16px; }
.btn-submit-comment { min-width: 160px; justify-content: center; }
.btn-submit-comment.loading .fa-paper-plane { display: none; }
.btn-submit-comment.loading::after {
  content: '';
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin .6s linear infinite;
  display: inline-block;
  margin-left: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.comments-closed-notice {
  text-align: center;
  padding: 30px;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.comments-closed-notice i { color: var(--mid-gray); }

/* =====================================================
   RESPONSIVE — CITY GRID
   ===================================================== */
@media (max-width: 768px) {
  .city-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .city-card { padding: 12px 14px; gap: 10px; }
  .dir-stats-inner { gap: 20px; }

  /* Comments */
  .type-radio-group { grid-template-columns: 1fr; gap: 8px; }
  .type-radio-content { flex-direction: row; text-align: left; padding: 12px; gap: 12px; }
  .type-radio-content i { font-size: 1.1rem; }
  .type-radio-label { font-size: .85rem; }
  .type-radio-desc  { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .comment-form-section { padding: 20px 16px; }
  .comment-tabs { gap: 4px; }
  .comment-tab { padding: 8px 12px; font-size: .8rem; }
  .comment-tab span:not(.tab-count) { display: none; }
  .comment-tab i { font-size: 1rem; }
}
@media (max-width: 480px) {
  .city-grid { grid-template-columns: 1fr; }
  .church-comments-section { padding: 36px 0; }
}
