html {
  font-size: 14px;
  scroll-behavior: smooth;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  font-family: 'Open Sans', sans-serif;
  color: #1a1a1a;
  line-height: 1.6;
  background-color: #e8e8e8;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: #1a1a1a;
}

/* Header & Navigation */
.navbar {
  padding: 1rem 0;
  background-color: #ffffff !important;
  border-bottom: 2px solid #e0e0e0;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 600;
}

.church-logo {
  height: 50px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

.church-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a1a;
  font-family: 'Playfair Display', serif;
  white-space: nowrap;
}

.navbar-nav .nav-link {
  color: #333;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
}

.navbar-nav .nav-link:hover {
  color: #1557a0;
  border-bottom: 2px solid #1557a0;
}

.navbar-nav .nav-item.active .nav-link {
  color: #1557a0;
  font-weight: 600;
}

.btn-search {
  background: none;
  border: 2px solid #333;
  color: #333;
  font-size: 1.1rem;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.btn-search:hover {
  background-color: #1557a0;
  border-color: #1557a0;
  color: #fff;
}

/* Hero Section */
.hero-section {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  margin-bottom: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: linear-gradient(135deg, #d4a574 0%, #c9a882 50%, #b8946d 100%);
}

.hero-overlay {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.98);
  padding: 0.75rem 2.5rem;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  border: 1px solid rgba(0,0,0,0.1);
}

.breadcrumb-text {
  margin: 0;
  font-size: 1rem;
  color: #333;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Welcome Section */
.welcome-section {
  padding: 3rem 0;
  background-color: #ffffff;
}

.welcome-title {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: left;
  color: #1a1a1a;
}

/* Scripture Quote */
.scripture-quote {
  background: linear-gradient(135deg, #e8f4ff 0%, #d1e7f9 100%);
  border-left: 5px solid #1557a0;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(21, 87, 160, 0.1);
}

.scripture-quote p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #1a1a1a;
  margin-bottom: 0.75rem;
  font-family: 'Playfair Display', serif;
  font-style: italic;
}

.scripture-quote footer {
  font-size: 0.95rem;
  color: #1557a0;
  font-weight: 700;
  font-style: normal;
  text-align: right;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 2px solid rgba(21, 87, 160, 0.2);
  background-color: transparent;
}

blockquote footer {
  background-color: transparent !important;
  color: #1557a0;
}

/* Content Section */
.content-section {
  line-height: 1.8;
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.content-section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #1a1a1a;
  border-bottom: 3px solid #1557a0;
  padding-bottom: 0.5rem;
}

.content-section h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.75rem;
  color: #1a1a1a;
  border-bottom: 3px solid #1557a0;
  padding-bottom: 0.5rem;
}

.content-section p {
  margin-bottom: 1rem;
  color: #333;
}

.content-section ul {
  margin-bottom: 1.5rem;
}

.content-section .card {
  border: 2px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  background-color: #ffffff;
}

.content-section .card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  border-color: #1557a0;
}

.content-section .card-title {
  color: #1557a0;
  font-size: 1.25rem;
  font-weight: 600;
}

/* Pastor Section */
.pastor-section {
  background: #ffffff;
  padding: 3rem 2rem;
  border-radius: 8px;
  margin-top: 3rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border: 1px solid #e0e0e0;
}

.pastor-image-wrapper {
  text-align: center;
}

.pastor-image {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid #1557a0;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  background: #e0e0e0;
}

.pastor-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #1a1a1a;
}

.pastor-profile {
  background: #ffffff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.btn-pastor, .btn-primary {
  background-color: #1557a0;
  border: 2px solid #1557a0;
  padding: 0.85rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  color: #fff;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(21, 87, 160, 0.3);
}

.btn-pastor:hover, .btn-primary:hover {
  background-color: #0d3d6e;
  border-color: #0d3d6e;
  color: #fff;
  box-shadow: 0 4px 12px rgba(21, 87, 160, 0.4);
  transform: translateY(-2px);
}

/* Form Styles */
.form-label {
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

.form-control {
  border: 2px solid #ccc;
  border-radius: 6px;
  padding: 0.75rem;
  transition: all 0.3s ease;
  background-color: #ffffff;
}

.form-control:focus {
  border-color: #1557a0;
  box-shadow: 0 0 0 0.2rem rgba(21, 87, 160, 0.25);
  background-color: #ffffff;
}

/* Sidebar */
.sidebar {
  padding-left: 2rem;
}

.sidebar-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid #1557a0;
  color: #1a1a1a;
  font-weight: 700;
}

.upcoming-events, .contact-section {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 8px;
  border: 2px solid #ddd;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-bottom: 2rem;
}

.contact-section p {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.contact-section em {
  color: #1557a0;
  font-size: 0.95rem;
}

.events-placeholder {
  padding: 2rem 1rem;
  text-align: center;
  background-color: #f8f9fa;
  border-radius: 6px;
}

/* Cards */
.card {
  border: 2px solid #ddd;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
  background-color: #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  transform: translateY(-2px);
}

.card-title {
  color: #1a1a1a;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.card-body {
  padding: 1.5rem;
}

/* Alerts */
.alert {
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  border: 2px solid;
  font-weight: 500;
}

.alert-info {
  background-color: #e7f3ff;
  border-color: #9dd1ff;
  color: #004085;
}

.alert-info h5 {
  color: #1557a0;
  font-size: 1.1rem;
}

.alert-info p {
  font-size: 1rem;
  line-height: 1.8;
}

/* Footer */
footer {
  background-color: #2c2c2c !important;
  border-top: 3px solid #1557a0;
  margin-top: 0;
}

footer p {
  margin: 0;
  color: #ccc;
}

footer a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #9dd1ff;
  text-decoration: underline;
}

/* Dropdown Menu */
.dropdown-menu {
  border: 2px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  padding: 0.5rem 0;
}

.dropdown-item {
  color: #333;
  transition: all 0.3s ease;
  padding: 0.5rem 1.5rem;
  font-weight: 500;
}

.dropdown-item:hover {
  background-color: #1557a0;
  color: #fff;
}

/* Container Backgrounds */
.container, .container-fluid {
  background-color: transparent;
}

.bg-light {
  background-color: #e8e8e8 !important;
}

.container > .row {
  background-color: #ffffff;
  margin: 0 -15px;
  padding: 2rem 15px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Responsive */
@media (max-width: 991px) {
  .sidebar {
    padding-left: 0;
    margin-top: 3rem;
  }
  
  .pastor-image {
    width: 250px;
    height: 250px;
  }
  
  .welcome-title {
    font-size: 2rem;
  }
  
  .hero-section {
    height: 300px;
  }
}

@media (max-width: 767px) {
  .church-logo {
    height: 40px;
  }
  
  .church-name {
    font-size: 1rem;
  }
  
  .scroll-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }

  .pastor-section {
    padding: 2rem 1rem;
  }
  
  .pastor-image {
    width: 200px;
    height: 200px;
    margin-bottom: 1.5rem;
  }
  
  .pastor-title {
    font-size: 1.5rem;
    text-align: center;
  }
  
  .btn-pastor {
    display: block;
    text-align: center;
    width: 100%;
  }
  
  .welcome-title {
    font-size: 1.75rem;
    text-align: center;
  }
  
  .hero-section {
    height: 250px;
  }
  
  .navbar-nav {
    text-align: center;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
  }
  
  .content-section {
    padding: 1.5rem;
  }

  .scripture-quote {
    padding: 1rem 1.5rem;
  }

  .scripture-quote p {
    font-size: 1rem;
  }
}

/* Focus styles */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(21, 87, 160, 0.5);
}

/* Font Awesome Icon Styles */
.alert-info i.fas {
  font-size: 1.1rem;
  vertical-align: middle;
}

.content-section i.fas {
  font-size: 1.1rem;
  vertical-align: middle;
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: #1557a0;
  color: #ffffff;
  border: none;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-to-top:hover {
  background-color: #0d3d6e;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:active {
  transform: translateY(-1px);
}