:root {
  --bg: #ffffff;
  --surface: #eef3f8;
  --panel: rgba(0, 0, 0, 0.05);
  --text: #2c5282;
  --muted: #5a7d9a;
  --white: #ffffff;
  --accent: #2c5282;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.10);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  min-height: 100vh;
}

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  backdrop-filter: blur(12px);
  background: #2a6496;
  transition: background 0.3s ease;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 1rem;
  color: #ffffff;
}

.logo img {
  width: 82px;
  height: auto;
  max-height: 82px;
  display: block;
}

.nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
  color: #ffffff;
}

.nav a {
  color: #ffffff;
}

.nav a:hover {
  color: rgba(255,255,255,0.75);
}

.nav-dropdown {
  position: relative;
}
.nav-dropdown-trigger {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  color: #ffffff;
  font-size: 0.95rem;
  user-select: none;
}
.nav-dropdown-trigger:hover { color: rgba(255,255,255,0.75); }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  border-radius: 4px;
  padding: 0.5rem 0;
  min-width: 190px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  z-index: 50;
}
.nav-dropdown-menu a {
  display: block;
  padding: 0.75rem 1.25rem;
  color: #2c5282;
  font-size: 0.92rem;
  white-space: nowrap;
  transition: background 0.15s;
}
.nav-dropdown-menu a:hover { background: #f0f5fa; color: #2a6496; }
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown.open .nav-dropdown-menu { display: block; }


.top-banner {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.55)), url('church-members.jpg') center/cover no-repeat;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 120px 1.5rem 4rem;
  text-align: center;
}

.top-banner-inner {
  width: min(1140px, 100%);
  display: grid;
  gap: 1.75rem;
  align-items: center;
  justify-items: center;
}

.top-banner-title {
  font-size: clamp(2.75rem, 5vw, 5.25rem);
  margin: 0;
  line-height: 1.05;
  text-transform: none;
  letter-spacing: -0.05em;
  color: var(--white);
}

.top-banner-description {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 760px;
}

.top-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.top-banner-button {
  border: none;
  padding: 0.55rem 1.25rem;
  border-radius: 10px;
  color: #ffffff;
  background: #2a6496;
  font-weight: 600;
  min-width: 130px;
  text-align: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.top-banner-button:hover {
  background: #1e4f78;
  transform: translateY(-2px);
}

main {
  position: relative;
  z-index: 10;
  padding: 0 1.5rem 0;
}

.section {
  width: min(1800px, 100%);
  margin: 0 auto 3rem;
}

.section-heading {
  font-size: clamp(2rem, 3vw, 3.5rem);
  margin: 0 0 1.5rem;
  text-align: center;
  letter-spacing: -0.04em;
}

.cards-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.news-card,
.ministry-card,
.contact-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
  position: relative;
}

.news-card img,
.ministry-card img,
.map-card img {
  width: 100%;
  display: block;
  object-fit: cover;
  height: 230px;
}

.news-card-content,
.ministry-card-content,
.contact-card-content {
  padding: 1.5rem;
}

.news-card h3,
.ministry-card h3,
.contact-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
}

.news-card p,
.ministry-card p,
.contact-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.ministry-card {
  min-height: 340px;
  background: linear-gradient(180deg, rgba(12, 8, 6, 0.25), rgba(12, 8, 6, 0.55)), url('https://images.unsplash.com/photo-1525186402429-63c9e76f8a2d?auto=format&fit=crop&w=1200&q=80') center/cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: transform 0.2s ease;
}

.ministry-card:hover {
  transform: translateY(-4px);
}

.ministry-card-content {
  background: transparent;
  text-align: center;
}

.ministry-card-content h3 {
  color: #ffffff;
}

.ministry-card button {
  margin-top: 1rem;
  border: none;
  background: #2a6496;
  color: #ffffff;
  padding: 0.8rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.ministry-card button:hover {
  background: #1e4f78;
}

.primary-button {
  background: #2a6496;
  color: #ffffff;
  border: none;
}

.inline-section {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1.2fr 0.8fr;
}

.contact-details {
  display: grid;
  gap: 1.25rem;
}

.contact-details p {
  margin: 0;
}

.contact-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.contact-item {
  min-width: 230px;
}

.action-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  padding: 0.95rem 1.3rem;
  border-radius: 999px;
  background: #2a6496;
  border: none;
  color: #ffffff;
  font-weight: 600;
  transition: background 0.2s ease;
}

.action-link:hover {
  background: #1e4f78;
}

.footer {
  width: 100%;
  padding: 0.75rem 1.5rem;
  background: #2a6496;
  color: rgba(255,255,255,0.7);
  font-size: 0.78rem;
  display: flex;
  justify-content: center;
}

.social-icons {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.social-icons a {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
}

.map-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--surface);
}

.map-card iframe,
.map-card img {
  width: 100%;
  display: block;
  height: 100%;
  min-height: 360px;
}

.news-body-content { font-size: 0.95rem; color: var(--muted); line-height: 1.6; }
.news-body-content p { margin: 0 0 0.5rem; }
.news-body-content strong { color: var(--text); }
.news-body-content a { text-decoration: underline; }

.sermon-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}

.sermon-video {
  width: 100%;
  max-width: 800px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.sermon-video iframe {
  width: 100%;
  height: 100%;
  display: block;
}

.sermon-footer {
  text-align: center;
}

@media (max-width: 860px) {
  #sermon > .section > div,
  #sermon div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 980px) {
  .topbar {
    padding: 1rem 1rem;
  }

  .nav {
    justify-content: center;
  }

  .inline-section {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .top-banner {
    padding-top: 120px;
  }

  .top-banner-title {
    font-size: 2.8rem;
  }

  .cards-grid,
  .ministry-grid {
    grid-template-columns: 1fr;
  }
}
