:root {
  --deep-indigo: #151630;
  --soft-cream: #fdf5ec;
  --golden: #f0b35c;
  --rose: #ff8fa8;
  --sage: #6ca69a;
  --text-muted: #5d6478;
  --card-bg: #ffffffdd;
  --shadow: 0 30px 80px rgba(8, 14, 35, 0.45);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Source Sans 3", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: var(--soft-cream);
  background: linear-gradient(135deg, #0c0d1d 0%, #1e1f44 50%, #291f3a 100%) fixed,
    #0c0d1d;
  min-height: 100vh;
}

header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(9px);
  background: rgba(12, 13, 31, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

nav {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
}

.logo {
  font-family: "Marcellus", serif;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-size: 1.1rem;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
}

nav a {
  text-decoration: none;
  color: var(--soft-cream);
  font-weight: 600;
  letter-spacing: 0.05em;
  font-size: 0.95rem;
  transition: color 0.25s ease;
}

nav a:hover {
  color: var(--golden);
}

.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.8rem;
  color: rgba(253, 245, 236, 0.7);
}

.hero h1 {
  font-family: "Marcellus", serif;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  margin: 0 0 1rem;
  color: var(--soft-cream);
}

.hero p {
  color: rgba(253, 245, 236, 0.9);
  font-size: 1.1rem;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.btn {
  padding: 0.85rem 1.5rem;
  border-radius: 50px;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: linear-gradient(120deg, var(--golden), var(--rose));
  color: #1c1429;
  box-shadow: 0 20px 40px rgba(240, 179, 92, 0.35);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(253, 245, 236, 0.4);
  color: var(--soft-cream);
}

.btn:hover {
  transform: translateY(-3px);
}

section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--card-bg);
  color: var(--deep-indigo);
  padding: 1.75rem;
  border-radius: 18px;
  box-shadow: var(--shadow);
  min-height: 200px;
}

.card h3 {
  margin-top: 0;
  font-family: "Marcellus", serif;
  letter-spacing: 1px;
  color: var(--deep-indigo);
}

.card p {
  color: var(--text-muted);
  line-height: 1.6;
}

.schedule {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.schedule button {
  border: none;
  border-radius: 14px;
  padding: 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  background: rgba(253, 245, 236, 0.08);
  color: var(--soft-cream);
  transition: background 0.3s ease, transform 0.2s ease;
}

.schedule button.active {
  background: rgba(240, 179, 92, 0.2);
  color: var(--golden);
}

.events {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.event-item {
  border-left: 4px solid var(--rose);
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
}

.event-item h4 {
  margin: 0 0 0.5rem;
  color: var(--golden);
}

.contact {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

form {
  display: grid;
  gap: 1rem;
}

input,
textarea {
  border: none;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
}

footer {
  text-align: center;
  padding: 2rem 1.5rem 3rem;
  color: rgba(253, 245, 236, 0.7);
}

.announcement {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 16px;
  background: rgba(108, 166, 154, 0.15);
  color: var(--soft-cream);
}

.ministries-root {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.ministries-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.ministries-form-card form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ministries-form label {
  display: flex;
  flex-direction: column;
  font-weight: 600;
  color: var(--deep-indigo);
}

.ministries-form input,
.ministries-form textarea {
  margin-top: 0.3rem;
}

.form-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.ministries-status {
  min-height: 1.25rem;
  color: var(--sage);
  font-weight: 600;
}

.ministries-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ministry-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(21, 22, 48, 0.1);
  border-radius: 14px;
  background: #fff;
}

.ministry-focus {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  color: var(--rose);
  margin: 0 0 0.4rem;
}

.ministry-actions {
  display: flex;
  gap: 0.5rem;
}

.ministry-card .btn-outline {
  border-color: rgba(21, 22, 48, 0.2);
  color: var(--deep-indigo);
  background: rgba(21, 22, 48, 0.05);
}

.ministry-card .btn-outline:hover {
  background: rgba(21, 22, 48, 0.12);
}

.empty-state {
  margin: 0;
  padding: 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.5);
  color: var(--text-muted);
}

/* Schedules Section */
#schedules h2 {
  font-family: "Marcellus", serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 1rem;
  text-align: center;
  color: var(--soft-cream);
}

.schedules-intro {
  text-align: center;
  color: rgba(253, 245, 236, 0.8);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.schedules-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.schedule-card {
  background: var(--card-bg);
  color: var(--deep-indigo);
  padding: 1.75rem;
  border-radius: 18px;
  box-shadow: var(--shadow);
  border-left: 5px solid var(--sage);
}

.schedule-date {
  font-family: "Marcellus", serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--deep-indigo);
  margin-bottom: 0.5rem;
}

.schedule-time {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--golden);
  margin-bottom: 1rem;
}

.schedule-description {
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0.75rem 0;
}

.schedule-details {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.badge {
  display: inline-block;
  background: rgba(108, 166, 154, 0.15);
  color: var(--sage);
  padding: 0.4rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.schedules-notes {
  background: rgba(255, 255, 255, 0.04);
  color: var(--soft-cream);
  padding: 2rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 2rem;
}

.schedules-notes h3 {
  color: var(--golden);
  margin-top: 0;
  font-family: "Marcellus", serif;
}

.schedules-notes ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.schedules-notes li {
  padding: 0.75rem 0;
  line-height: 1.8;
  color: rgba(253, 245, 236, 0.9);
}

.schedules-contact {
  text-align: center;
  color: var(--soft-cream);
  padding: 1.5rem;
  background: rgba(108, 166, 154, 0.1);
  border-radius: 14px;
}

.schedules-contact p {
  margin: 0;
  font-size: 1.05rem;
}

@media (max-width: 640px) {
  nav ul {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .hero {
    padding-top: 4rem;
  }

  .schedules-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}
