/* Simple reset */
* { box-sizing: border-box; margin: 0; padding: 0; }

/* Page basics */
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: #f4f6f8;
  color: #222;
  line-height: 1.5;
}

/* Header */
.site-header {
  background: #2c3e50;
  color: white;
  padding: 12px 18px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img { height: 44px; width: auto; vertical-align: middle; }
.site-name { margin-left: 8px; font-weight: 700; vertical-align: middle; }

/* Navigation */
.main-nav a {
  color: #fff;
  margin-left: 14px;
  text-decoration: none;
  font-weight: 600;
}
.main-nav a:hover { text-decoration: underline; }

/* Hero */
.hero {
  background-color: #6aa0d0; /* visible fallback */
  background-image: url('../images/church.jpg');
  background-position: center;
  background-size: cover;
  color: white;
  padding: 60px 20px;
  text-align: center;
}
.hero-inner { max-width: 900px; margin: 0 auto; }
.hero h1 { font-size: 2.2rem; margin-bottom: 10px; }
.lead { font-size: 1.05rem; margin-bottom: 18px; }

/* Simple button */
.btn {
  display:inline-block;
  background:#f1c40f;
  color:#222;
  padding:10px 16px;
  border-radius:6px;
  text-decoration:none;
  font-weight:700;
}

/* Content areas */
.content, .page .content {
  max-width: 900px;
  margin: 28px auto;
  padding: 0 16px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.05);
  padding: 20px;
}

/* Footer */
.site-footer {
  margin-top: 28px;
  background: #2c3e50;
  color: #fff;
  text-align: center;
  padding: 14px 10px;
}

/* Small screens */
@media (max-width: 600px) {
  .header-inner { padding: 0 8px; }
  .hero h1 { font-size: 1.5rem; }
  .main-nav a { margin-left: 8px; font-size: 0.95rem; }
}

/* Dashboard Styles */
.dashboard {
  text-align: center;
  padding: 3rem 1rem;
  background: linear-gradient(135deg, #e0f7fa, #f1f8ff);
  border-radius: 10px;
  margin: 2rem auto;
  max-width: 1100px;
}

.dashboard h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #003366;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  padding: 2.5rem;
  border-radius: 15px;
  text-decoration: none;
  color: #333;
  font-size: 1.3rem;
  font-weight: bold;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: 0.3s ease-in-out;
}

.card:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  color: white;
}

/* Individual card colors */
.card.sermons { background: #ffebee; }
.card.sermons:hover { background: #e53935; }

.card.events { background: #e8f5e9; }
.card.events:hover { background: #43a047; }

.card.donate { background: #fff3e0; }
.card.donate:hover { background: #fb8c00; }

.card.gallery { background: #ede7f6; }
.card.gallery:hover { background: #5e35b1; }

.dashboard-btn {
  display: inline-block;
  background: #0077cc;
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  font-size: 1.1rem;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.dashboard-btn:hover {
  background: #005fa3;
}

/* Sermons Page */
.sermons {
  max-width: 900px;
  margin: 2rem auto;
  padding: 1rem;
}

.sermons h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: #003366;
}

.sermon {
  background: #f9f9f9;
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.sermon h3 {
  margin-bottom: 0.5rem;
  color: #222;
}

.sermon p {
  margin: 0.5rem 0;
}

.media {
  margin-top: 1rem;
}
/* Sermons Scrollable */
.sermons {
  max-width: 900px;
  margin: 2rem auto;
  padding: 1rem;
  max-height: 80vh;   /* limit height */
  overflow-y: auto;   /* add scroll if too long */
}

.sermon {
  background: #fff;
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
/* Welcome banner */
.welcome-banner {
  background: #004aad;
  color: white;
  text-align: center;
  padding: 1rem;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f5f5f5;
  padding: 0.5rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar .logo {
  height: 50px;
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.navbar ul li a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
}

.navbar ul li a:hover {
  color: #004aad;
}

/* Hero section */
.hero {
  width: 100%;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  display: block;
}

/* Footer */
footer {
  background: #004aad;
  color: white;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
}

/* Sermons Page */
.sermons {
  padding: 2rem;
  text-align: center;
}

.sermons h2 {
  margin-bottom: 1.5rem;
  font-size: 2rem;
  color: #0077cc;
}

.sermon-card {
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1rem;
  margin: 1.5rem auto;
  max-width: 700px;
  text-align: left;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.sermon-card h3 {
  margin-bottom: 0.5rem;
  color: #333;
}

.sermon-card p {
  margin: 0.3rem 0;
  color: #555;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  margin-top: 1rem;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
}
.sermons {
  padding: 40px 20px;
  text-align: center;
}

.sermon-item {
  margin: 30px 0;
}

.video-wrapper {
  max-width: 100%;
  overflow: hidden;
}

.video-wrapper iframe {
  width: 100%;
  height: 315px;
}

.download-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 20px;
  background: #0077cc;
  color: white;
  text-decoration: none;
  border-radius: 5px;
}

.download-btn:hover {
  background: #005fa3;
}

/* Events Page */
.events {
  padding: 40px 20px;
  text-align: center;
}

.event-item {
  background: #ffffff;
  padding: 20px;
  margin: 20px 0;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  text-align: left;
  transition: transform 0.2s ease-in-out;
}

.event-item:hover {
  transform: translateY(-5px);
}

.event-item h2 a {
  color: #0077cc;
  text-decoration: none;
}

.event-item h2 a:hover {
  text-decoration: underline;
}

.event-item .date {
  font-weight: bold;
  color: #444;
  margin-bottom: 10px;
}

.event-img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

/* Donations Page */
.donations {
  padding: 80px 20px;
  text-align: center;
  min-height: 100vh;
  background: url("images/donations-bg.jpg") no-repeat center center/cover;
}

.donations h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #003366;
}

.donations p {
  max-width: 600px;
  margin: 0 auto 30px;
  font-size: 1.1rem;
  color: #333;
}

.donate-btn {
  display: inline-block;
  padding: 12px 25px;
  font-size: 1.2rem;
  background: #ffcc00;
  color: #003366;
  text-decoration: none;
  border-radius: 6px;
  margin-bottom: 30px;
  transition: 0.3s;
}

.donate-btn:hover {
  background: #e6b800;
}

.bank-details {
  background: rgba(255,255,255,0.9);
  padding: 20px;
  margin: 20px auto;
  max-width: 400px;
  border-radius: 8px;
  text-align: left;
}

.pledge-form {
  background: rgba(255,255,255,0.95);
  padding: 20px;
  margin: 30px auto;
  max-width: 400px;
  border-radius: 8px;
}

.pledge-form input, 
.pledge-form button {
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  font-size: 1rem;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.pledge-form button {
  background: #003366;
  color: white;
  font-weight: bold;
  cursor: pointer;
}

.pledge-form button:hover {
  background: #002244;
}

