/* =========================================================
   ST MICHAEL THE ARCHANGEL — DESIGN SYSTEM
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600&display=swap');

/* ----- Variables ----- */
:root {
  --bg:        #FAFAF8;
  --surface:   #F5F0E8;
  --surface2:  #EDE6D6;
  --border:    #DDD5C4;
  --text:      #2C2A24;
  --text-muted:#7A7468;
  --heading:   #3B3630;
  --gold:      #C9A84C;
  --gold-dark: #A8863A;
  --red:       #8B2020;
  --white:     #FFFFFF;
  --shadow:    0 2px 12px rgba(44,42,36,0.10);
  --shadow-lg: 0 8px 32px rgba(44,42,36,0.14);
  --radius:    6px;
  --radius-lg: 12px;
  --nav-h:     68px;
  --font-serif: 'EB Garamond', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ----- Typography ----- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--heading);
  line-height: 1.2;
  font-weight: 500;
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; font-weight: 600; }
p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.serif { font-family: var(--font-serif); }

/* ----- Layout ----- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: 72px 0;
}
.section--alt {
  background: var(--surface);
}
.section-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.5rem;
}
.section-title {
  margin-bottom: 0.5rem;
}
.section-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  max-width: 560px;
}

/* ----- Navigation ----- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
  display: flex;
  align-items: center;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.nav-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  line-height: 1.1;
  margin-left: -10px;
}
.nav-brand-icon {
  flex-shrink: 0;
}
.nav-brand-text {
  display: flex;
  flex-direction: column;
}
.nav-brand-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--heading);
}
.nav-brand-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
  align-items: center;
  margin-left: 20px;
}
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: block;
  padding: 8px 18px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius);
  transition: color 0.15s, background 0.15s;
}
.nav-links > li > a:hover,
.nav-links > li.active > a {
  color: var(--red);
  background: var(--surface);
  text-decoration: none;
}
.nav-links .nav-donate a {
  background: var(--gold);
  color: var(--white) !important;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-weight: 600;
}
.nav-links .nav-donate a:hover {
  background: var(--gold-dark);
}

/* Dropdown */
.nav-links > li .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  padding: 6px 0;
  list-style: none;
}
.nav-links > li:hover .dropdown { display: block; }
.dropdown li a {
  display: block;
  padding: 9px 18px;
  font-size: 0.875rem;
  color: var(--text);
  transition: background 0.1s;
}
.dropdown li a:hover {
  background: var(--surface);
  color: var(--red);
  text-decoration: none;
}

/* Mobile nav */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--heading);
  transition: all 0.2s;
}
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 200;
  padding: 24px;
  overflow-y: auto;
  flex-direction: column;
}
.mobile-nav.open { display: flex; }
.mobile-nav-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--heading);
  margin-bottom: 24px;
}
.mobile-nav ul { list-style: none; }
.mobile-nav ul li a {
  display: block;
  padding: 14px 0;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--heading);
  border-bottom: 1px solid var(--border);
}
.mobile-nav ul li a:hover { color: var(--red); text-decoration: none; }

/* ----- Hero ----- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  transform: scale(1.02);
  transition: transform 8s ease;
}
.hero:hover .hero-bg { transform: scale(1.0); }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(30,25,20,0.90) 0%,
    rgba(30,25,20,0.55) 45%,
    rgba(30,25,20,0.15) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 64px 0;
  max-width: 680px;
}
.hero-founded {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 1.25rem;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  color: var(--white);
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.hero-title em {
  font-style: italic;
  color: #E8D9B8;
}
.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.82);
  margin-bottom: 2rem;
  max-width: 500px;
}
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.15s;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-gold {
  background: var(--gold);
  color: var(--white);
}
.btn-gold:hover { background: var(--gold-dark); color: var(--white); }
.btn-outline-white {
  border: 2px solid rgba(255,255,255,0.6);
  color: var(--white);
  background: transparent;
}
.btn-outline-white:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
  color: var(--white);
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ----- Services Card ----- */
.services-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  box-shadow: var(--shadow);
}
.services-card h2 {
  margin-bottom: 1.5rem;
}
.services-list {
  display: grid;
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.service-row {
  display: grid;
  grid-template-columns: 110px 130px 1fr;
  gap: 16px;
  align-items: center;
  background: var(--white);
  padding: 16px 20px;
  transition: background 0.15s;
}
.service-row:hover { background: var(--surface); }
.service-day {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--red);
}
.service-time {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}
.service-name {
  font-size: 0.9rem;
  color: var(--text);
}
.services-note {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ----- History Teaser ----- */
.history-teaser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.history-teaser-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-lg);
}
.history-teaser-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.history-year-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: rgba(30,25,20,0.85);
  backdrop-filter: blur(8px);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius);
  border-left: 3px solid var(--gold);
}
.history-year-badge .year {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 500;
  line-height: 1;
  color: var(--gold);
}
.history-year-badge .year-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.75);
  margin-top: 2px;
}
.history-teaser-text blockquote {
  border-left: 3px solid var(--gold);
  padding-left: 20px;
  margin: 1.5rem 0;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--heading);
}

/* ----- News ----- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.news-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.news-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.news-card-body {
  padding: 24px;
}
.news-date {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.5rem;
}
.news-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}
.news-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.news-card-link {
  display: block;
  padding: 14px 24px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--red);
}
.news-card-link:hover { background: var(--surface); text-decoration: none; }

/* ----- Events ----- */
.events-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.event-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  align-items: start;
  transition: box-shadow 0.15s;
}
.event-item:hover { box-shadow: var(--shadow); }
.event-date-block {
  text-align: center;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 10px 8px;
}
.event-date-day {
  font-family: var(--font-serif);
  font-size: 2rem;
  line-height: 1;
  color: var(--red);
  font-weight: 500;
}
.event-date-month {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--text-muted);
}
.event-info h4 { margin-bottom: 4px; font-size: 1.05rem; }
.event-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.event-desc { font-size: 0.88rem; color: var(--text-muted); }

/* ----- History Page ----- */
.history-hero {
  background: var(--heading);
  padding: 96px 0 72px;
  position: relative;
  overflow: hidden;
}
.history-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.25;
}
.history-hero .container { position: relative; z-index: 1; }
.history-hero h1 { color: var(--white); margin-bottom: 0.5rem; }
.history-hero .lead {
  color: rgba(255,255,255,0.75);
  font-size: 1.15rem;
  max-width: 560px;
}

.timeline {
  position: relative;
  padding: 16px 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 48px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.timeline-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 32px;
  margin-bottom: 48px;
  position: relative;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-year {
  text-align: right;
  padding-top: 4px;
  position: relative;
}
.timeline-year::after {
  content: '';
  position: absolute;
  right: -21px;
  top: 10px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--gold);
}
.timeline-year span {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--gold-dark);
  display: block;
  line-height: 1;
}
.timeline-year small {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-sans);
  letter-spacing: 0.04em;
}
.timeline-content {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
}
.timeline-content h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
.timeline-content p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 0;
}
.timeline-content .timeline-img {
  margin-top: 16px;
  border-radius: var(--radius);
  overflow: hidden;
  height: 320px;
}
.timeline-content .timeline-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ----- Page Hero (inner pages) ----- */
.page-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 56px 0 48px;
}
.page-hero h1 { margin-bottom: 0.5rem; }
.page-hero .lead {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 560px;
}

/* ----- Cards ----- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
}
.card + .card { margin-top: 20px; }
.life-event-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.life-event-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-align: center;
}
.life-event-card-icon {
  background: var(--surface);
  padding: 40px 24px 24px;
  font-size: 3rem;
}
.life-event-card-body {
  padding: 24px;
}
.life-event-card h3 { margin-bottom: 0.5rem; }
.life-event-card p { font-size: 0.9rem; color: var(--text-muted); }
.life-event-card .btn { margin-top: 1rem; }

/* ----- Photo Gallery ----- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  position: relative;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.gallery-item:hover img { transform: scale(1.04); }

/* ----- Contact ----- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.contact-detail {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  align-items: flex-start;
}
.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-detail-text strong { display: block; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 2px; }
.contact-detail-text span { font-size: 0.95rem; }

/* ----- Donate ----- */
.donate-block {
  background: var(--heading);
  border-radius: var(--radius-lg);
  padding: 48px;
  color: var(--white);
  text-align: center;
}
.donate-block h2 { color: var(--white); margin-bottom: 1rem; }
.donate-block p { color: rgba(255,255,255,0.75); max-width: 480px; margin: 0 auto 1.5rem; }

/* ----- Safeguarding ----- */
.safeguarding-banner {
  background: #FFF8F0;
  border: 1px solid #E8C8A0;
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 2rem;
}
.safeguarding-banner h3 { color: #7A4000; margin-bottom: 0.5rem; }
.safeguarding-banner p { font-size: 0.9rem; color: #5A3000; margin-bottom: 0; }

/* ----- Footer ----- */
.site-footer {
  background: var(--heading);
  color: rgba(255,255,255,0.8);
  padding: 56px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand-name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.footer-brand-sub {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1rem;
}
.footer-desc {
  font-size: 0.85rem;
  line-height: 1.6;
}
.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  transition: color 0.15s;
}
.footer-col ul li a:hover { color: var(--white); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 0.8rem; margin: 0; }
.footer-social {
  display: flex;
  gap: 12px;
}
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: background 0.15s, color 0.15s;
}
.footer-social a:hover {
  background: var(--gold);
  color: var(--white);
  text-decoration: none;
}

/* ----- Admin ----- */
.admin-body {
  background: #F0EDE8;
  min-height: 100vh;
}
.admin-login {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}
.admin-login-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
}
.admin-login-card h1 {
  font-size: 1.8rem;
  margin-bottom: 0.25rem;
}
.admin-login-card .sub {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}
.admin-nav {
  background: var(--heading);
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.admin-nav-brand {
  font-family: var(--font-serif);
  color: var(--white);
  font-size: 1.1rem;
}
.admin-nav-links { display: flex; gap: 8px; list-style: none; }
.admin-nav-links a {
  color: rgba(255,255,255,0.75);
  font-size: 0.85rem;
  padding: 6px 12px;
  border-radius: var(--radius);
  transition: all 0.15s;
}
.admin-nav-links a:hover,
.admin-nav-links a.active {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  text-decoration: none;
}
.admin-nav-links .logout-btn {
  color: rgba(255,120,120,0.85);
}
.admin-main {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 24px;
}
.admin-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.admin-card h2 {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.dashboard-tile {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  transition: all 0.15s;
}
.dashboard-tile:hover {
  background: var(--white);
  box-shadow: var(--shadow);
  text-decoration: none;
}
.dashboard-tile-icon { font-size: 2rem; margin-bottom: 12px; }
.dashboard-tile h3 {
  font-size: 1rem;
  margin-bottom: 4px;
  color: var(--heading);
}
.dashboard-tile p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

/* ----- Forms ----- */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--heading);
}
.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-control:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}
textarea.form-control { resize: vertical; min-height: 120px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-hint { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }

.btn-sm { padding: 7px 14px; font-size: 0.82rem; }
.btn-primary {
  background: var(--red);
  color: var(--white);
  border: none;
}
.btn-primary:hover { background: #6B1515; color: var(--white); }
.btn-secondary {
  background: var(--surface2);
  color: var(--text);
  border: none;
}
.btn-secondary:hover { background: var(--border); text-decoration: none; }
.btn-danger {
  background: transparent;
  color: var(--red);
  border: 1px solid var(--red);
}
.btn-danger:hover { background: var(--red); color: var(--white); text-decoration: none; }
.btn-success {
  background: #2D6A4F;
  color: var(--white);
  border: none;
}
.btn-success:hover { background: #1B4332; color: var(--white); }

.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}
.alert-success { background: #D8F3DC; color: #1B4332; border: 1px solid #95D5B2; }
.alert-error   { background: #FFE8E8; color: #7A0000; border: 1px solid #FFB3B3; }

.admin-list { list-style: none; }
.admin-list-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  gap: 16px;
}
.admin-list-item:last-child { border-bottom: none; }
.admin-list-info { flex: 1; }
.admin-list-info strong { display: block; font-size: 0.95rem; margin-bottom: 2px; }
.admin-list-info small { color: var(--text-muted); font-size: 0.8rem; }
.admin-list-actions { display: flex; gap: 8px; flex-shrink: 0; }

.services-editor-row {
  display: grid;
  grid-template-columns: 120px 130px 1fr 36px;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--surface2);
}
.services-editor-row:last-of-type { border-bottom: none; }
.btn-remove-row {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 4px;
  transition: color 0.15s;
}
.btn-remove-row:hover { color: var(--red); }

/* ----- Utilities ----- */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.divider { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }
.coe-logo { max-width: 300px; margin: 2rem auto; opacity: 0.7; }

/* ----- Responsive ----- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .history-teaser { grid-template-columns: 1fr; gap: 32px; }
  .history-teaser-image { aspect-ratio: 16/9; }
  .dashboard-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 48px 0; }
  .hero { min-height: 70vh; }
  .services-card { padding: 24px 20px; }
  .service-row { grid-template-columns: 1fr; gap: 2px; padding: 12px 16px; }
  .event-item { grid-template-columns: 64px 1fr; gap: 14px; }
  .timeline::before { left: 36px; }
  .timeline-item { grid-template-columns: 72px 1fr; gap: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .life-event-cards { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .admin-card { padding: 20px; }
  .donate-block { padding: 32px 24px; }
  .services-editor-row { grid-template-columns: 1fr 1fr; }
}
