/* ============================================================
   Legion Post 518 — Stylesheet
   Colors: Navy #1a2d5a | Red #b22234 | Gold #c9a84c | Gray bg #f4f4f4
   ============================================================ */

:root {
  /* Official American Legion palette (from Anna's color scheme PDF) */
  --navy:      #003F87;   /* Emblem Blue — Pantone 541C, CMYK 100/57/0/38 */
  --navy-dark: #1C3041;   /* Newsletter Blue — dark slate */
  --red:       #C8102E;   /* Wordmark Red */
  --gold:      #FFD100;   /* Riders Gold */
  --tan:       #C4A96B;   /* Newsletter Tan */
  --bg:        #EDEDED;   /* Newsletter Grey — CMYK 0/0/0/7 */
  --white:     #ffffff;
  --text:      #1a1a1a;
  --muted:     #5a5a5a;
  --border:    #d4d4d4;
  --radius: 4px;
  --shadow: 0 2px 8px rgba(0,0,0,.10);
}

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

body {
  font-family: 'Futura PT', Futura, 'Trebuchet MS', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
}

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--red); }

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

/* ============================================================
   Below-hero row: featured event left, hours right
   ============================================================ */
.hero-bottom-row {
  display: flex;
  align-items: stretch;
  background: var(--white);
  border-bottom: 2px solid var(--border);
}
.hero-featured {
  flex: 1;
  padding: 20px 28px;
  min-height: 80px;
}
.hero-featured .featured-event {
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  margin: 0;
}
.hours-panel {
  flex-shrink: 0;
  width: 220px;
  background: var(--white);
  padding: 16px 20px;
  border-left: 3px solid var(--red);
}
.hours-panel-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 10px;
}
.hours-panel-title span {
  display: block;
  font-weight: 400;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
  font-size: 11px;
}
.hours-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  padding: 3px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.hours-row:last-child { border-bottom: none; }
.hours-day { font-weight: 600; color: var(--navy); }
.hours-time { color: var(--muted); }

/* ============================================================
   Navbar — modeled on post36tucson.org structure
   ============================================================ */
.navbar {
  background: var(--navy);
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 32px;
  height: 64px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  text-decoration: none;
}
.nav-emblem { height: 48px; width: auto; flex-shrink: 0; }
.nav-brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.nav-title { font-family: 'League Spartan', sans-serif; font-size: 18px; font-weight: 700; color: var(--white); }
.nav-sub   { font-size: 11px; color: var(--tan); letter-spacing: .05em; text-transform: uppercase; }

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-links a {
  display: block;
  padding: 8px 13px;
  color: rgba(255,255,255,.85);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius);
  transition: background .15s, color .15s;
}
.nav-links a:hover,
.nav-links a.active {
  background: rgba(255,255,255,.12);
  color: var(--white);
}
.nav-links a.nav-admin {
  color: var(--tan);
}

.nav-social {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 4px;
}
.nav-social a,
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: var(--white);
  border-radius: var(--radius);
  transition: background .15s, color .15s, opacity .15s;
}
.nav-social a {
  background: rgba(255,255,255,.14);
  padding: 0;
}
.nav-social a:hover {
  background: rgba(255,255,255,.26);
  color: var(--white);
}
.nav-social svg,
.footer-social svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

/* Dropdown */
.nav-dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--navy);
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
  list-style: none;
  min-width: 200px;
  z-index: 200;
  overflow: hidden;
}
.dropdown-menu li a {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  color: rgba(255,255,255,.85);
  border-radius: 0;
  white-space: nowrap;
}
.dropdown-menu li a:hover { background: rgba(255,255,255,.1); color: var(--white); }
.nav-dropdown:hover .dropdown-menu { display: block; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 22px;
  cursor: pointer;
}

/* ============================================================
   Flash messages
   ============================================================ */
.flash-wrap { background: #e8f4e8; padding: 10px 20px; border-left: 4px solid #4caf50; }
.flash { color: #2e7d32; }

/* ============================================================
   Hero / Banner — flag video background, slim
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1920 / 200;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #000;
}
.hero-overlay { display: none; }

.ticker-bar {
  background: var(--gold);
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 2px solid var(--navy);
}
.ticker-track {
  display: inline-flex;
  animation: ticker-scroll 30s linear infinite;
}
.ticker-item {
  padding: 8px 40px;
  font-weight: 600;
  font-size: 14px;
  color: var(--navy-dark);
  white-space: nowrap;
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.hero-content {
  position: relative;
  z-index: 1;
}
.hero-badge-cluster {
  position: absolute;
  left: 40px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  filter: drop-shadow(2px 2px 6px rgba(0,0,0,.6));
}
.hero-badge-row {
  display: flex;
  gap: 24px;
  align-items: center;
}
.hero-badge-row img { height: 60px; width: auto; }
.hero-badge-cluster > img { height: 50px; width: auto; }
.hero h1 { font-size: 46px; font-weight: 800; margin-bottom: 10px; letter-spacing: .02em; text-shadow: 2px 2px 4px rgba(0,0,0,.9), 0 0 30px rgba(0,0,0,.8), 0 0 60px rgba(0,0,0,.5); }
.hero p   { font-size: 22px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,1); text-shadow: 1px 1px 4px rgba(0,0,0,.9), 0 0 20px rgba(0,0,0,.8); }

.contact-hero-logos {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.contact-hero-logos img {
  height: 60px;
  width: auto;
  filter: drop-shadow(1px 1px 4px rgba(0,0,0,.4));
}

/* Static hero fallback (inner pages) */
.hero-static {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 32px 20px;
  text-align: center;
  border-bottom: 4px solid var(--red);
}
.hero-static h1 { font-size: 28px; font-weight: 700; margin-bottom: 6px; }
.hero-static p  { font-size: 15px; color: rgba(255,255,255,.80); }

/* ============================================================
   Featured alert strip (Belgrade, featured event)
   ============================================================ */
.alert-strip {
  background: var(--red);
  color: var(--white);
  padding: 10px 20px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
}
.alert-strip a { color: var(--white); text-decoration: underline; }

/* ============================================================
   Page wrapper
   ============================================================ */
.page-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 20px;
}

.home-wrap {
  max-width: 1180px;
}

.home-top-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 32px;
}

.home-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 24px;
}

.home-card h2,
.home-section-header h2 {
  font-size: 18px;
  color: var(--navy);
  margin-bottom: 12px;
}

.home-card-subtitle {
  color: var(--muted);
  font-size: 13px;
  margin-top: -8px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.home-slideshow-card {
  min-width: 0;
  padding-bottom: 24px;
}

.home-slideshow-card .slideshow-wrap {
  border-radius: var(--radius);
  box-shadow: none;
  margin-bottom: 0;
}

.home-hours-card {
  display: flex;
  flex-direction: column;
}

.home-hours-list {
  margin-top: 4px;
}

.home-hours-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.home-hours-row:last-child { border-bottom: none; }
.home-hours-row span {
  color: var(--navy);
  font-weight: 600;
}
.home-hours-row strong {
  color: var(--muted);
  font-weight: 500;
  text-align: right;
}

.home-posts-section {
  margin-top: 4px;
}

.home-section-header {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 24px;
  margin-bottom: 18px;
  border-left: 4px solid var(--red);
}

.home-section-header h2 {
  margin-bottom: 0;
}

.empty-posts-card p {
  color: var(--muted);
}

/* ============================================================
   Section headings
   ============================================================ */
.section-heading {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  border-bottom: 3px solid var(--red);
  padding-bottom: 6px;
  margin-bottom: 20px;
}

/* ============================================================
   Slideshow
   ============================================================ */
/* Slideshow + Hours side-by-side row */
.slideshow-row {
  display: flex;
  align-items: stretch;
  margin-bottom: 36px;
}
.slideshow-row .slideshow-wrap {
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
}
.slideshow-row .hours-panel {
  flex-shrink: 0;
  width: 220px;
  border-left: 3px solid var(--red);
}

.slideshow-wrap {
  position: relative;
  background: var(--bg);
  overflow: hidden;
  margin-bottom: 36px;
}

/* Prev/Next arrow buttons */
.slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0,0,0,.45);
  color: var(--white);
  border: none;
  font-size: 22px;
  line-height: 1;
  padding: 12px 14px;
  cursor: pointer;
  opacity: 0;
  transition: background .2s, opacity .2s;
}
.slideshow-wrap:hover .slide-arrow { opacity: 1; }
.slide-arrow:hover { background: rgba(0,0,0,.75); }
.slide-arrow-prev { left: 0; border-radius: 0 var(--radius) var(--radius) 0; }
.slide-arrow-next { right: 0; border-radius: var(--radius) 0 0 var(--radius); }
.slideshow {
  position: relative;
  width: 100%;
  height: 400px;
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .6s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slide.active { opacity: 1; }
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slide-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.3);
  font-size: 14px;
}
.slideshow-controls {
  position: absolute;
  bottom: 12px;
  right: 16px;
  display: flex;
  gap: 8px;
  z-index: 10;
}
.slideshow-controls button {
  background: rgba(0,0,0,.5);
  color: var(--white);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: var(--radius);
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
}
.slideshow-controls button:hover { background: rgba(0,0,0,.75); }
.slide-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}
.slide-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  transition: background .2s;
}
.slide-dot.active { background: var(--white); }

/* ============================================================
   Featured event box
   ============================================================ */
.featured-event {
  background: var(--white);
  border: 2px solid var(--tan);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 32px;
  box-shadow: var(--shadow);
}
.featured-event .tag {
  display: inline-block;
  background: var(--tan);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 2px;
  margin-bottom: 8px;
}
.featured-event h2 { font-size: 20px; color: var(--navy); margin-bottom: 4px; }
.featured-event .meta { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.featured-event p { font-size: 15px; }
.featured-event .actions { margin-top: 12px; display: flex; gap: 10px; flex-wrap: wrap; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-block;
  padding: 9px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity .15s;
}
.btn:hover { opacity: .85; }
.btn-red    { background: var(--red);   color: var(--white); }
.btn-navy   { background: var(--navy);  color: var(--white); }
.btn-gold   { background: var(--gold);  color: var(--navy-dark);  }
.btn-outline { background: transparent; color: var(--navy); border: 2px solid var(--navy); }

/* ============================================================
   Upcoming events strip
   ============================================================ */
.events-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
  margin-bottom: 36px;
}
.event-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  border-top: 3px solid var(--navy);
}
.event-card .date {
  font-size: 12px;
  color: var(--red);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.event-card h3 { font-size: 16px; color: var(--navy); margin-bottom: 6px; }
.event-card p  { font-size: 13px; color: var(--muted); }
.event-card .actions { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.event-card .actions a { font-size: 12px; }

/* ============================================================
   Post cards (Anna's content feed)
   ============================================================ */
.posts-feed { display: flex; flex-direction: column; gap: 28px; }

.post-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.post-card-inner { padding: 20px 24px; }
.post-card h2 { font-size: 20px; color: var(--navy); margin-bottom: 8px; }
.post-card .post-body { font-size: 15px; color: var(--text); line-height: 1.7; }
.post-card .post-meta { font-size: 12px; color: var(--muted); margin-top: 10px; }

/* Layout variants */
.layout-img-left .post-card-inner,
.layout-img-right .post-card-inner {
  display: grid;
  gap: 20px;
  align-items: start;
}
.layout-img-left .post-card-inner  { grid-template-columns: 400px 1fr; }
.layout-img-right .post-card-inner { grid-template-columns: 1fr 400px; }
.layout-img-right .post-img        { order: 2; }
.layout-img-right .post-text       { order: 1; }

.layout-img-above .post-card-inner,
.layout-img-below .post-card-inner { display: flex; flex-direction: column; }
.layout-img-below .post-img        { order: 2; }
.layout-img-below .post-text       { order: 1; }

.post-img { display: block; cursor: zoom-in; }
.post-img img { display: block; width: 100%; height: auto; max-height: 560px; object-fit: contain; }

.post-img-multi {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 6px;
}
.post-img-multi a { display: block; cursor: zoom-in; }
.post-img-multi { align-items: start; }
.post-img-multi img { display: block; width: 100%; height: auto; }

.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.85); cursor: zoom-out; padding: 24px;
}
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* ============================================================
   Calendar page
   ============================================================ */
.event-list { display: flex; flex-direction: column; gap: 12px; }
.event-row {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 18px;
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 12px;
  align-items: start;
}
.event-row .event-side {
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.event-row .date-block {
  text-align: center;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 10px 6px;
  font-size: 13px;
}
.event-photo-link { display: block; }
.event-photo {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  display: block;
  box-shadow: var(--shadow);
  cursor: zoom-in;
}
.event-row .date-block .month { font-size: 10px; text-transform: uppercase; }
.event-row .date-block .day   { font-size: 22px; font-weight: 700; line-height: 1; }
.event-row h3 { font-size: 16px; color: var(--navy); margin-bottom: 2px; }
.event-row p  { font-size: 13px; color: var(--muted); }

/* ============================================================
   Community Impact
   ============================================================ */
.impact-section { background: var(--white); }
.impact-section-alt { background: var(--bg); }
.impact-section .page-wrap { padding-top: 40px; padding-bottom: 40px; }
.impact-section p { margin-bottom: 14px; }
.impact-section p:last-child { margin-bottom: 0; }
.impact-stat-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px 32px;
}
.impact-stat-list li {
  position: relative;
  padding-left: 22px;
  font-size: 16px;
  color: var(--text);
}
.impact-stat-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
}

/* ============================================================
   Belgrade update page
   ============================================================ */
.vom-list { display: flex; flex-direction: column; gap: 16px; }
.vom-entry {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 22px;
  border-left: 4px solid var(--tan);
}
.vom-entry .ts { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.vom-entry p   { font-size: 15px; }

.ceremony-panel {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 22px;
  border-left: 4px solid var(--red);
}
.ceremony-panel-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 10px;
}
.ceremony-row {
  display: flex;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.ceremony-row:last-child { border-bottom: none; }
.ceremony-label { flex: 0 0 160px; font-weight: 600; color: var(--navy); font-size: 14px; }
.ceremony-value { color: var(--text); font-size: 14px; }

/* ============================================================
   Newsletter page
   ============================================================ */
.newsletter-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.newsletter-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  text-align: center;
}
.newsletter-card .icon { font-size: 36px; margin-bottom: 8px; }
.newsletter-card h3   { font-size: 15px; color: var(--navy); margin-bottom: 10px; }

/* ============================================================
   Contact page
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}
.contact-main,
.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 24px;
}
.contact-card h2 {
  font-size: 18px;
  color: var(--navy);
  margin-bottom: 12px;
}
.contact-address {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 16px;
}
.contact-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.contact-map {
  height: 340px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
}
.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.contact-methods dl {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-methods dt {
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.contact-methods dd {
  font-size: 14px;
  color: var(--text);
  overflow-wrap: anywhere;
}
.contact-person-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
}
.contact-person-role {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-top: 2px;
}
.contact-person-email {
  font-size: 14px;
  color: var(--text);
  overflow-wrap: anywhere;
  margin-top: 4px;
}
.contact-hours-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.contact-hours-row:last-child { border-bottom: none; }
.contact-hours-row span {
  color: var(--navy);
  font-weight: 600;
}
.contact-hours-row strong {
  color: var(--muted);
  font-weight: 500;
  text-align: right;
}
.contact-muted {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 14px;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.65);
  font-size: 13px;
  margin-top: 48px;
  padding: 20px;
}
.site-footer a { color: rgba(255,255,255,.75); }
.site-footer a:hover { color: var(--white); }
.site-footer p { margin: 4px 0; }
.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}
.footer-text {
  flex: 1;
  min-width: 0;
  text-align: center;
}
.footer-link-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 10px;
}
.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.footer-nav a {
  color: rgba(255,255,255,.76);
  font-size: 13px;
  white-space: nowrap;
}
.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-shrink: 0;
}
.footer-social a {
  background: rgba(255,255,255,.10);
}
.footer-social a:hover {
  background: rgba(255,255,255,.20);
  color: var(--white);
}
.footer-emblem { height: 64px; width: auto; }
.footer-emblem-brand { height: 72px; }
.footer-emblems-left  { flex: 1; display: flex; gap: 16px; align-items: center; justify-content: flex-start; }
.footer-emblems-right { flex: 1; display: flex; gap: 16px; align-items: center; justify-content: flex-end; }

/* ============================================================
   Admin styles
   ============================================================ */
.admin-wrap {
  max-width: 960px;
  margin: 30px auto;
  padding: 0 20px;
}
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.admin-header h1 { font-size: 22px; color: var(--navy); }

.admin-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.admin-nav a {
  padding: 7px 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--navy);
  font-weight: 500;
}
.admin-nav a:hover, .admin-nav a.active { background: var(--navy); color: var(--white); }

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.admin-table th {
  background: var(--navy);
  color: var(--white);
  padding: 10px 14px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
}
.admin-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: #f9f9fc; }

.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 5px;
}
.form-group input[type=text],
.form-group input[type=password],
.form-group input[type=date],
.form-group input[type=time],
.form-group input[type=number],
.form-group input[type=url],
.form-group input[type=email],
.form-group input[type=tel],
.form-group input[type=file],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  background: var(--white);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-check { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 8px; }

.layout-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.layout-option { display: none; }
.layout-option + label {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 8px;
  text-align: center;
  font-size: 12px;
  cursor: pointer;
  background: var(--white);
  transition: border-color .15s;
}
.layout-option:checked + label {
  border-color: var(--navy);
  background: #eef1f8;
  font-weight: 600;
}

.image-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.image-thumb-wrap { position: relative; }
.image-thumb-wrap img {
  width: 100px; height: 80px; object-fit: cover;
  border-radius: var(--radius); border: 1px solid var(--border);
}
.image-thumb-wrap .del-img {
  position: absolute; top: 3px; right: 3px;
  background: var(--red); color: white;
  border: none; border-radius: 2px;
  font-size: 10px; padding: 1px 5px;
  cursor: pointer;
}

.admin-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 24px;
}
.admin-card h2 { font-size: 17px; color: var(--navy); margin-bottom: 16px; }
.slideshow-builder {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.builder-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
}
.builder-row img {
  width: 80px;
  height: 54px;
  object-fit: cover;
  border-radius: var(--radius);
  flex-shrink: 0;
}
.builder-caption {
  flex: 1;
  font-size: 13px;
  color: var(--muted);
}
.builder-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.slideshow-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.slideshow-admin-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
}
.slideshow-admin-card img {
  width: 100%;
  height: 130px;
  object-fit: cover;
}
.slide-caption {
  font-size: 12px;
  color: var(--muted);
  padding: 6px 8px 4px;
}

/* ============================================================
   About Us
   ============================================================ */
.about-section {
  margin-bottom: 48px;
}
.about-body {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  max-width: 760px;
  margin-bottom: 12px;
}
.family-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.family-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.family-card img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin: 0 auto 16px;
}
.family-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.family-card p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1100px) {
  .nav-toggle { display: block; margin-left: auto; }
  .nav-brand { position: relative; flex: 1; }
  .nav-brand-text {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    align-items: center;
    text-align: center;
    white-space: nowrap;
  }
  .nav-brand-text .nav-title { font-size: 15px; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 64px;
    right: 0;
    left: auto;
    width: fit-content;
    min-width: 180px;
    background: var(--navy);
    padding: 8px 0;
    gap: 0;
    box-shadow: -2px 4px 12px rgba(0,0,0,.3);
    border-radius: 0 0 0 var(--radius);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 11px 20px; border-radius: 0; }
  .nav-social { margin-left: 0; }
  .navbar { position: relative; }
}

@media (max-width: 768px) {
  .pdf-embed-calendar { height: 320px; }
  .pdf-embed-newsletter { height: 480px; }
  .ceremony-row { flex-direction: column; gap: 2px; }
  .ceremony-label { flex-basis: auto; }
  .hero-badge-cluster { display: none; }
  .hero-bottom-row { flex-direction: column; }
  .home-top-row { grid-template-columns: 1fr; }
  .home-card { padding: 18px; }
  .slideshow-row { flex-direction: column; }
  .slideshow-row .hours-panel { width: 100%; border-left: none; border-top: 3px solid var(--red); border-bottom: 1px solid var(--border); }
  .family-grid { grid-template-columns: 1fr; }

  .slideshow { height: 240px; }

  .layout-img-left .post-card-inner,
  .layout-img-right .post-card-inner {
    grid-template-columns: 1fr;
  }
  .layout-img-right .post-img { order: 0; }

  .event-row { grid-template-columns: 70px 1fr; }
  .event-row .actions { grid-column: 1/-1; }

  .contact-layout,
  .contact-form-grid {
    grid-template-columns: 1fr;
  }
  .contact-map { height: 260px; }

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

  .footer-inner {
    flex-direction: column;
    gap: 18px;
  }
}

.fmt-toolbar { display: flex; gap: 6px; margin-bottom: 4px; }
.fmt-toolbar button {
  padding: 3px 12px; font-size: 13px; cursor: pointer;
  background: var(--white); border: 1px solid #bbb; border-radius: 4px;
}
.fmt-toolbar button:hover { background: var(--bg); }
