﻿:root {
  --brand-600: #2f557f;
  --brand-700: #255760;
  --accent: #c9a34a;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-300: #cbd5e1;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-900: #0f172a;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: "Source Sans 3", "Segoe UI", Tahoma, Arial, sans-serif; background: var(--slate-50); color: #1e293b; }
a { color: inherit; text-decoration: none; }
.container-page { max-width: 1440px; margin: 0 auto; padding: 0 22px; }
.brand-header-link { display: inline-flex; flex-direction: row; align-items: center; gap: .55rem; color: #fff; }
.brand-header-logo { width: 38px; height: 48px; object-fit: contain; display: block; filter: none; background: transparent; border-radius: 0; padding: 0; }
.brand-header-text { font-size: 1rem; font-weight: 700; line-height: 1.1; letter-spacing: .01em; }
.brand-header-text-desktop { display: none; }
.nav-dropdown { position: relative; }
.nav-dropdown-trigger {
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
  font: inherit;
  padding: 0;
}
.nav-dropdown-trigger:hover,
.nav-dropdown:hover .nav-dropdown-trigger,
.nav-dropdown:focus-within .nav-dropdown-trigger { color: var(--accent); }
.nav-dropdown-panel {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 260px;
  background: #fff;
  color: #1f2937;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,.18);
  padding: .55rem;
  z-index: 50;
}
.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown:focus-within .nav-dropdown-panel { display: grid; gap: .2rem; }
.nav-dropdown-item {
  display: block;
  padding: .45rem .55rem;
  border-radius: .4rem;
  color: #324f70;
  font-size: .9rem;
}
.nav-dropdown-item:hover { background: #f1f5f9; color: #1f3854; text-decoration: none; }
.nav-dropdown-item-strong { font-weight: 700; color: var(--brand-700); }
.section { padding: 3rem 0; }
.card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 1.5rem; }
.heading-xl { font-size: 2rem; line-height: 1.2; font-weight: 700; margin: 0; }
.heading-lg { font-size: 1.6rem; line-height: 1.25; font-weight: 700; margin: 0; }
.btn-primary, .btn-secondary { display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; padding: .55rem .9rem; font-size: .92rem; font-weight: 600; }
.btn-primary { background: var(--brand-600); color: #fff; border: 1px solid var(--brand-600); }
.btn-primary:hover { background: var(--brand-700); }
.btn-secondary { background: #f0f5f8; color: var(--brand-700); border: 1px solid var(--brand-700); }
.btn-secondary:hover { background: #dbe6ed; }
.btn-on-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: .55rem .9rem;
  font-size: .92rem;
  font-weight: 600;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.7);
}
.btn-on-dark:hover { background: rgba(255,255,255,.1); }

.grid { display: grid; }
.flex { display: flex; }
.inline { display: inline; }
.inline-block { display: inline-block; }
.hidden { display: none; }
.cursor-pointer { cursor: pointer; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: .5rem; }
.gap-3 { gap: .75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.min-h-screen { min-height: 100vh; }
.max-w-md { max-width: 28rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.w-full { width: 100%; }
.w-max { width: max-content; }
.min-w-full { min-width: 100%; }
.overflow-x-auto { overflow-x: auto; }

.p-2 { padding: .5rem; } .p-3 { padding: .75rem; } .p-4 { padding: 1rem; } .p-8 { padding: 2rem; }
.px-3 { padding-left: .75rem; padding-right: .75rem; }
.py-1 { padding-top: .25rem; padding-bottom: .25rem; }
.py-2 { padding-top: .5rem; padding-bottom: .5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.pb-4 { padding-bottom: 1rem; }
.mb-1 { margin-bottom: .25rem; } .mb-4 { margin-bottom: 1rem; } .mb-6 { margin-bottom: 1.5rem; }
.mt-1 { margin-top: .25rem; } .mt-2 { margin-top: .5rem; } .mt-3 { margin-top: .75rem; }
.mt-4 { margin-top: 1rem; } .mt-6 { margin-top: 1.5rem; }
.ml-3 { margin-left: .75rem; }

.rounded { border-radius: .25rem; }
.rounded-md { border-radius: .375rem; }
.rounded-lg { border-radius: .5rem; }
.rounded-2xl { border-radius: 1rem; }
.border { border: 1px solid #e2e8f0; }
.border-t { border-top: 1px solid #e2e8f0; }
.border-slate-300 { border-color: var(--slate-300); }
.border-white { border-color: #fff; }
.border-white\/30 { border-color: rgba(255,255,255,.3); }

.bg-slate-100 { background: var(--slate-100); }
.bg-slate-900 { background: var(--slate-900); }
.bg-brand-700 { background: var(--brand-700); }
.bg-accent { background: var(--accent); }
.bg-emerald-100 { background: #d1fae5; }
.bg-red-100 { background: #fee2e2; }
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--brand-700), var(--brand-600)); }
.from-brand-700 { background-color: var(--brand-700); }
.to-brand-600 { background-color: var(--brand-600); }

.text-left { text-align: left; }
.text-center { text-align: center; }
.text-xs { font-size: .75rem; }
.text-sm { font-size: .875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-3xl { font-size: 1.875rem; }
.uppercase { text-transform: uppercase; }
.underline { text-decoration: underline; }
.whitespace-pre-line { white-space: pre-line; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.text-white { color: #fff; }
.text-brand-50 { color: #eff6ff; }
.text-brand-700 { color: var(--brand-700); }
.text-slate-300 { color: var(--slate-300); }
.text-slate-500 { color: var(--slate-500); }
.text-slate-600 { color: var(--slate-600); }
.text-slate-700 { color: var(--slate-700); }
.text-slate-900 { color: var(--slate-900); }
.text-red-600 { color: #dc2626; }
.text-red-700 { color: #b91c1c; }
.text-red-800 { color: #991b1b; }
.text-emerald-800 { color: #065f46; }

.hover\:text-accent:hover { color: var(--accent); }
.hover\:bg-amber-300:hover { background: #fcd34d; }
.hover\:bg-white\/10:hover { background: rgba(255,255,255,.1); }
.ring-white { box-shadow: inset 0 0 0 1px #fff; }

table { border-collapse: collapse; }
input, textarea, select { font: inherit; }

@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:text-right { text-align: right; }
}
@media (min-width: 768px) {
  .md\:hidden { display: none !important; }
  .md\:flex { display: flex !important; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  nav.hidden.md\:flex { display: none !important; }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .container-page { padding: 0 28px; }
  .brand-header-logo { width: 44px; height: 56px; }
  .brand-header-text { font-size: 1.08rem; }
  .brand-header-text-desktop { display: inline; }
}

.site-footer {
  background: #e5e7eb;
  color: #24364d;
  border-top: 1px solid #d1d5db;
  padding-top: 3.2rem;
}
.site-footer a { color: #324f70; }
.site-footer a:hover { color: #1f3854; text-decoration: underline; }
.site-footer-grid {
  display: grid;
  gap: 2.2rem;
  grid-template-columns: 1fr;
}
.site-footer-brand {
  margin: 0;
  font-size: 2.05rem;
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #2a3647;
}
.site-footer-subtitle {
  margin-top: 1rem;
  margin-bottom: .75rem;
  font-size: 1.8rem;
  color: #273b56;
}
.site-footer-text {
  margin: .3rem 0;
  font-size: 1.05rem;
  color: #334d6d;
}
.site-footer-links-wrap h4,
.site-footer-section-title {
  margin: 0 0 1rem 0;
  font-size: 2rem;
  font-weight: 700;
  color: #213047;
}
.site-footer-top-links {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
.site-footer-top-links a {
  font-size: 1.25rem;
}
.site-footer-divider {
  border: 0;
  border-top: 1px solid #bcc3cc;
  margin: 1.4rem 0;
}
.site-footer-departments {
  display: grid;
  gap: .95rem 2rem;
  grid-template-columns: 1fr;
}
.site-footer-departments a {
  font-size: 1.25rem;
}
.site-footer-copy {
  border-top: 1px solid #cfd4dc;
  margin-top: 2rem;
  padding: 1rem 0 1.4rem;
  color: #415b78;
  font-size: .95rem;
}

.admin-shell {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.admin-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  box-shadow: 0 4px 14px rgba(15, 23, 42, .18);
}

.admin-content-wrap {
  padding-top: 96px;
  padding-bottom: 24px;
  padding-left: 10px;
}

.admin-sidebar {
  align-self: start;
  padding: .9rem .55rem;
}

.admin-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .8rem;
}

.admin-sidebar-title {
  margin: 0;
}

.admin-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: .45rem;
}

.admin-sidebar-link {
  display: block;
  padding: .55rem .5rem;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #255760;
  font-weight: 600;
  font-size: .92rem;
  display: flex;
  align-items: center;
  gap: .55rem;
}

.admin-sidebar-link:hover {
  background: #eef2f7;
  color: #1f3854;
}

.admin-sidebar-icon {
  width: 1.25rem;
  text-align: center;
  flex: 0 0 1.25rem;
}

.admin-sidebar-text {
  white-space: nowrap;
}

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


.ministry-rail-wrap {
  margin-bottom: 1.2rem;
}

.ministry-rail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .7rem;
}

.ministry-rail {
  display: flex;
  gap: .9rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: .5rem;
}

.ministry-rail::-webkit-scrollbar {
  height: 8px;
}

.ministry-rail::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 999px;
}

.ministry-rail-item {
  margin: 0;
  flex: 0 0 290px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

.ministry-rail-image {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

.ministry-rail-item iframe {
  width: 100%;
  height: 190px;
  border: 0;
  display: block;
}

.home-rail {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding-bottom: .5rem;
}

.home-rail::-webkit-scrollbar {
  height: 8px;
}

.home-rail::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 999px;
}

.home-rail-card {
  flex: 0 0 min(84vw, 330px);
  scroll-snap-align: start;
}

.event-crop-wrap {
  position: relative;
  width: 100%;
  max-width: 520px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  overflow: hidden;
  background: #f8fafc;
}

.event-crop-preview {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  cursor: pointer;
}

.event-crop-box {
  position: absolute;
  border: 2px solid #fff;
  box-shadow: 0 0 0 9999px rgba(15, 23, 42, .35);
  border-radius: 8px;
  cursor: grab;
  pointer-events: auto;
}

.event-image-16x9 {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.donation-card-image {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}

.media-link-image {
  width: 100%;
  height: 130px;
  object-fit: cover;
  display: block;
  border-radius: .5rem;
}

.event-detail-image {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.event-detail-video {
  width: 100%;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

.embed-16x9 {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: .5rem;
  background: #000;
}

.embed-16x9 iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (min-width: 768px) {
  .site-footer-grid {
    grid-template-columns: 1fr 2.2fr;
  }
  .site-footer-top-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .site-footer-departments {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .admin-shell {
    grid-template-columns: 235px 1fr;
    align-items: start;
  }

  .admin-sidebar {
    position: sticky;
    top: 88px;
  }

  .home-rail-card {
    flex-basis: 320px;
  }
}


.home-hero {
  background-image: linear-gradient(to right, var(--brand-700), var(--brand-600));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

