/* General Body & Typography */
:root {
   --primary-color: #4CAF50; /* A vibrant green, symbolizing growth/life */
   --secondary-color: #2196F3; /* A calming blue, symbolizing water/healing */
   --accent-color: #FFC107; /* A warm yellow, symbolizing hope/light */
   --dark-text: #333;
   --light-text: #f4f4f4;
   --background-light: #ffffff;
   --background-dark: #f0f2f5;
   --border-color: #ddd;
   --box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

body {
   font-family: 'Open Sans', sans-serif;
   line-height: 1.6;
   margin: 0;
   padding: 0;
   color: var(--dark-text);
   background-color: var(--background-light);
   -webkit-font-smoothing: antialiased;
   -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
   font-family: 'Montserrat', sans-serif;
   color: var(--dark-text);
   margin-bottom: 0.5em;
}

h1 { font-size: 2.5em; }
h2 { font-size: 2em; }
h3 { font-size: 1.75em; }

p {
   margin-bottom: 1em;
}

a {
   color: var(--secondary-color);
   text-decoration: none;
   transition: color 0.3s ease;
}

a:hover {
   color: var(--primary-color);
}

.container {
   max-width: 1200px;
   margin: 0 auto;
   padding: 0 20px;
}

/* Buttons */
.btn {
   display: inline-block;
   padding: 12px 25px;
   border-radius: 5px;
   font-weight: bold;
   text-align: center;
   transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
   cursor: pointer;
   border: none;
   font-size: 1em;
}

.btn-primary {
   background-color: var(--primary-color);
   color: var(--light-text);
   border: 2px solid var(--primary-color);
}

.btn-primary:hover {
   background-color: #43A047; /* Slightly darker green */
   border-color: #43A047;
}

.btn-secondary {
   background-color: transparent;
   color: var(--primary-color);
   border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
   background-color: var(--primary-color);
   color: var(--light-text);
}

.btn-text {
   background: none;
   border: none;
   padding: 0;
   color: var(--secondary-color);
   font-weight: 600;
}

.btn-text:hover {
   color: var(--primary-color);
   text-decoration: underline;
}


/* Header Styles */
.main-header {
   background-color: var(--background-light);
   padding: 15px 0;
   border-bottom: 1px solid var(--border-color);
   box-shadow: var(--box-shadow);
   position: sticky;
   top: 0;
   z-index: 1000;
}

.main-header .container {
   display: flex;
   justify-content: space-between;
   align-items: center;
}

.logo {
   margin: 0;
   font-size: 1.8em;
}

.logo a {
   color: var(--primary-color);
   text-decoration: none;
   font-weight: 700;
}

.main-nav ul {
   list-style: none;
   margin: 0;
   padding: 0;
   display: flex;
}

.main-nav ul li {
   margin-left: 30px;
}

.main-nav ul li a {
   color: var(--dark-text);
   font-weight: 600;
   position: relative;
   padding-bottom: 5px;
}

.main-nav ul li a::after {
   content: '';
   position: absolute;
   width: 0;
   height: 2px;
   display: block;
   margin-top: 5px;
   right: 0;
   background: var(--primary-color);
   transition: width 0.3s ease;
}

.main-nav ul li a:hover::after,
.main-nav ul li a.active::after {
   width: 100%;
   left: 0;
   background: var(--primary-color);
}

/* Mobile Navigation Toggle */
.nav-toggle {
   display: none; /* Hidden by default on desktop */
   background: none;
   border: none;
   font-size: 1.5em;
   cursor: pointer;
   color: var(--dark-text);
   padding: 5px;
   position: relative;
   width: 30px;
   height: 20px;
   flex-direction: column;
   justify-content: space-between;
}

.nav-toggle .bar {
   display: block;
   width: 100%;
   height: 3px;
   background-color: var(--dark-text);
   border-radius: 2px;
   transition: all 0.3s ease;
}

/* Hero Section */
.hero-section {
   background: url('../images/hero-bg.jpg') no-repeat center center/cover; /* Make sure to add a background image here! */
   color: var(--light-text);
   text-align: center;
   padding: 100px 20px;
   display: flex;
   align-items: center;
   justify-content: center;
   min-height: 500px;
   position: relative;
}

.hero-section::before { /* Overlay for better text readability */
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background-color: rgba(0, 0, 0, 0.5); /* Dark overlay */
   z-index: 1;
}

.hero-section .container {
   position: relative;
   z-index: 2;
}

.hero-section h2 {
   font-size: 3em;
   margin-bottom: 20px;
   color: var(--light-text);
}

.hero-section p {
   font-size: 1.2em;
   margin-bottom: 40px;
   max-width: 700px;
   margin-left: auto;
   margin-right: auto;
}

.hero-section .btn {
   margin: 0 10px;
}

/* Services Section */
.services-section {
   background-color: var(--background-dark);
   padding: 60px 0;
   text-align: center;
}

.services-section h3 {
   margin-bottom: 40px;
   font-size: 2.2em;
   color: var(--primary-color);
}

.service-grid {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
   gap: 30px;
}

.service-item {
   background-color: var(--background-light);
   padding: 30px;
   border-radius: 10px;
   box-shadow: var(--box-shadow);
   transition: transform 0.3s ease;
   display: flex;
   flex-direction: column;
   align-items: center;
   text-align: center;
}

.service-item:hover {
   transform: translateY(-5px);
}

.service-item i {
   font-size: 3em;
   color: var(--secondary-color);
   margin-bottom: 20px;
}

.service-item h4 {
   font-size: 1.4em;
   margin-bottom: 15px;
   color: var(--dark-text);
}

.service-item p {
   font-size: 0.95em;
   color: #666;
   flex-grow: 1; /* Allows text to take available space */
}

/* CTA Testimonials Section */
.cta-testimonials {
   background-color: var(--primary-color);
   color: var(--light-text);
   padding: 80px 20px;
   text-align: center;
}

.cta-testimonials h3 {
   font-size: 2.5em;
   margin-bottom: 20px;
   color: var(--light-text);
}

.cta-testimonials p {
   font-size: 1.1em;
   max-width: 800px;
   margin: 0 auto 40px auto;
   font-style: italic;
}

/* Footer Styles */
.main-footer {
   background-color: #222;
   color: var(--light-text);
   padding: 40px 0;
   font-size: 0.9em;
}

.main-footer .container {
   display: flex;
   flex-wrap: wrap; /* Allows wrapping on smaller screens */
   justify-content: space-between;
   gap: 30px;
}

.footer-content {
   display: flex;
   flex-wrap: wrap;
   justify-content: space-between;
   width: 100%;
}

.footer-col {
   flex: 1;
   min-width: 250px; /* Ensures columns don't get too narrow */
   margin-bottom: 20px;
}

.footer-col h4 {
   color: var(--primary-color);
   margin-bottom: 15px;
   font-size: 1.2em;
}

.footer-col ul {
   list-style: none;
   padding: 0;
   margin: 0;
}

.footer-col ul li {
   margin-bottom: 10px;
}

.footer-col ul li a {
   color: var(--light-text);
   transition: color 0.3s ease;
}

.footer-col ul li a:hover {
   color: var(--primary-color);
}

.footer-col p {
   color: #bbb;
}

.social-links {
   margin-top: 15px;
}

.social-links a {
   color: var(--light-text);
   font-size: 1.5em;
   margin-right: 15px;
   transition: color 0.3s ease;
}

.social-links a:hover {
   color: var(--primary-color);
}

.footer-bottom {
   border-top: 1px solid #444;
   padding-top: 20px;
   margin-top: 20px;
   text-align: center;
   width: 100%;
   color: #bbb;
}

/* --- Responsive Design (Media Queries) --- */

/* For screens smaller than 900px */
@media (max-width: 900px) {
   .hero-section h2 {
       font-size: 2.5em;
   }
   .main-nav ul {
       display: none; /* Hide navigation on smaller screens by default */
       flex-direction: column;
       width: 100%;
       position: absolute;
       top: 100%; /* Position below header */
       left: 0;
       background-color: var(--background-light);
       box-shadow: var(--box-shadow);
       border-top: 1px solid var(--border-color);
   }

   .main-nav.active ul {
       display: flex; /* Show when active */
   }

   .main-nav ul li {
       margin: 0;
       border-bottom: 1px solid var(--border-color);
       width: 100%;
       text-align: center;
   }

   .main-nav ul li:last-child {
       border-bottom: none;
   }

   .main-nav ul li a {
       padding: 15px 20px;
       display: block;
   }

   .nav-toggle {
       display: flex; /* Show hamburger icon */
   }
}

/* For screens smaller than 768px */
@media (max-width: 768px) {
   .hero-section {
       padding: 80px 15px;
       min-height: 400px;
   }
   .hero-section h2 {
       font-size: 2em;
   }
   .hero-section p {
       font-size: 1em;
   }
   .btn {
       padding: 10px 20px;
       font-size: 0.9em;
   }
   .hero-section .btn {
       margin-bottom: 15px; /* Stack buttons on small screens */
   }

   .service-grid {
       grid-template-columns: 1fr; /* Stack services vertically */
   }

   .footer-content {
       flex-direction: column;
       align-items: center;
       text-align: center;
   }

   .footer-col {
       min-width: unset; /* Remove min-width to allow full width */
       width: 100%;
   }

   .social-links {
       margin-top: 10px;
   }
}

/* For screens smaller than 480px */
@media (max-width: 480px) {
   .logo {
       font-size: 1.5em;
   }
   .hero-section h2 {
       font-size: 1.8em;
   }
   .cta-testimonials h3 {
       font-size: 2em;
   }
}

/* Navigation Toggle Animation (JavaScript will add/remove 'active' class) */
.nav-toggle.active .bar:nth-child(1) {
   transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active .bar:nth-child(2) {
   opacity: 0;
}

.nav-toggle.active .bar:nth-child(3) {
   transform: translateY(-8px) rotate(-45deg);
}
#backToTop {
   position: fixed;
   bottom: 30px;
   right: 30px;
   background-color: var(--primary-color);
   color: white;
   border: none;
   padding: 10px 15px;
   border-radius: 50%;
   font-size: 1.2em;
   cursor: pointer;
   display: none;
   box-shadow: var(--box-shadow);
   z-index: 999;
   transition: background-color 0.3s ease;
}

#backToTop:hover {
   background-color: #43A047;
}

/* Page Hero Section (can be used for any internal page) */
.page-hero {
   background: url('../images/default-page-bg.jpg') no-repeat center center/cover; /* Default or specific image */
   color: var(--light-text);
   text-align: center;
   padding: 80px 20px;
   min-height: 250px;
   display: flex;
   align-items: center;
   justify-content: center;
   position: relative;
   box-shadow: inset 0 -5px 10px rgba(0, 0, 0, 0.2); /* Soft shadow at bottom */
}

.page-hero::before {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background-color: rgba(0, 0, 0, 0.4); /* Darker overlay for internal pages */
   z-index: 1;
}

.page-hero .container {
   position: relative;
   z-index: 2;
}

.page-hero h2 {
   font-size: 2.8em;
   margin-bottom: 10px;
   color: var(--light-text);
}

.page-hero p {
   font-size: 1.1em;
   max-width: 600px;
   margin-left: auto;
   margin-right: auto;
}

/* Form Section Styles */
.form-section {
   padding: 60px 0;
   background-color: var(--background-light);
}

.form-section h3 {
   text-align: center;
   margin-bottom: 20px;
   font-size: 2em;
   color: var(--primary-color);
}

.form-section p {
   text-align: center;
   margin-bottom: 40px;
   max-width: 700px;
   margin-left: auto;
   margin-right: auto;
   color: #555;
}

.prayer-form, .donation-form {
   background-color: var(--background-dark);
   padding: 40px;
   border-radius: 10px;
   box-shadow: var(--box-shadow);
   max-width: 700px;
   margin: 0 auto;
}

.form-group {
   margin-bottom: 20px;
}

.form-group label {
   display: block;
   margin-bottom: 8px;
   font-weight: 600;
   color: var(--dark-text);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group textarea {
   width: calc(100% - 20px); /* Account for padding */
   padding: 10px;
   border: 1px solid var(--border-color);
   border-radius: 5px;
   font-size: 1em;
   color: var(--dark-text);
   background-color: var(--background-light);
   transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
   border-color: var(--primary-color);
   outline: none;
   box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

.form-group textarea {
   resize: vertical; /* Allow vertical resizing */
   min-height: 120px;
}

.form-group .required {
   color: red;
}

.checkbox-group {
   display: flex;
   align-items: center;
   margin-top: 25px;
   margin-bottom: 25px;
}

.checkbox-group input[type="checkbox"] {
   margin-right: 10px;
   width: 18px;
   height: 18px;
   cursor: pointer;
}

.checkbox-group label {
   margin-bottom: 0;
   font-weight: normal;
   font-size: 0.9em;
}

.prayer-form button, .donation-form button {
   width: 100%;
   padding: 15px;
   font-size: 1.1em;
   margin-top: 20px;
}

.form-section hr {
   border: none;
   border-top: 1px solid var(--border-color);
   margin: 60px auto;
   max-width: 500px;
}

.one-on-one-prayer {
   text-align: center;
   margin-top: 30px;
   margin-bottom: 30px;
}

.one-on-one-prayer .btn {
   margin-bottom: 15px;
}

.one-on-one-prayer .small-text {
   font-size: 0.85em;
   color: #777;
   margin-top: 10px;
}

/* Media Queries for Form Section */
@media (max-width: 768px) {
   .prayer-form, .donation-form {
       padding: 25px;
   }
   .form-section h3 {
       font-size: 1.8em;
   }
   .page-hero h2 {
       font-size: 2em;
   }
}

/* Donation Specific Styles */
.donation-options ul {
   list-style: none; 

   padding: 0;
   margin-bottom: 40px;
   max-width: 600px;
   margin-left: auto;
   margin-right: auto;
}

.donation-options ul li {
   background-color: var(--background-dark);
   padding: 15px;
   border-radius: 8px;
   margin-bottom: 10px;
   display: flex;
   align-items: center;
   box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.donation-options ul li i {
   color: var(--primary-color);
   font-size: 1.2em;
   margin-right: 15px;
}

.donation-methods {
   display: flex;
   flex-direction: column;
   gap: 30px;
   max-width: 800px;
   margin: 0 auto;
}

.payment-method {
   background-color: var(--background-dark);
   padding: 30px;
   border-radius: 10px;
   box-shadow: var(--box-shadow);
   text-align: center;
}

.payment-method h4 {
   color: var(--secondary-color);
   margin-bottom: 20px;
   font-size: 1.6em;
}

.payment-method .payment-logo {
   max-width: 150px;
   margin-bottom: 20px;
}

.payment-method p {
   margin-bottom: 20px;
   color: #666;
   font-size: 1em;
}

.bank-details, .mobile-money-details {
   background-color: var(--background-light);
   border: 1px dashed var(--border-color);
   padding: 20px;
   border-radius: 8px;
   margin-top: 25px;
   margin-bottom: 25px;
   text-align: left;
}

.bank-details p, .mobile-money-details p {
   margin-bottom: 10px;
   font-size: 0.95em;
   color: var(--dark-text);
}

.bank-details p:last-child, .mobile-money-details p:last-child {
   margin-bottom: 0;
}

.thank-you-message {
   text-align: center;
   margin-top: 50px;
   padding: 30px;
   background-color: var(--accent-color);
   color: var(--dark-text);
   border-radius: 10px;
   font-size: 1.2em;
   font-weight: 600;
}

/* Library Section Styles */
.library-section {
   padding: 60px 0;
   background-color: var(--background-dark);
   text-align: center;
}

.library-section h3 {
   margin-bottom: 20px;
   font-size: 2.2em;
   color: var(--primary-color);
}

.library-section .intro-text {
   max-width: 800px;
   margin: 0 auto 50px auto;
   font-size: 1.1em;
   color: #555;
}

.book-categories {
   margin-bottom: 40px;
   display: flex;
   flex-wrap: wrap;
   justify-content: center;
   gap: 15px;
}

.category-btn {
   background-color: var(--background-light);
   color: var(--dark-text);
   border: 1px solid var(--border-color);
   padding: 10px 20px;
   border-radius: 25px;
   cursor: pointer;
   font-weight: 600;
   transition: all 0.3s ease;
}

.category-btn:hover {
   background-color: var(--primary-color);
   color: var(--light-text);
   border-color: var(--primary-color);
}

.category-btn.active {
   background-color: var(--secondary-color);
   color: var(--light-text);
   border-color: var(--secondary-color);
   box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.book-grid {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
   gap: 30px;
   justify-content: center; /* Center items if not enough to fill grid */
}

.book-item {
   background-color: var(--background-light);
   padding: 20px;
   border-radius: 10px;
   box-shadow: var(--box-shadow);
   display: flex;
   flex-direction: column;
   align-items: center;
   text-align: center;
   transition: transform 0.3s ease;
}

.book-item:hover {
   transform: translateY(-5px);
}

.book-item img {
   max-width: 150px;
   height: auto;
   border-radius: 5px;
   margin-bottom: 15px;
   box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.book-item h4 {
   font-size: 1.3em;
   margin-bottom: 5px;
   color: var(--dark-text);
}

.book-item .author {
   font-size: 0.9em;
   color: #777;
   margin-bottom: 20px;
}

.book-item .btn {
   margin-top: auto; /* Pushes button to the bottom */
   padding: 8px 15px;
   font-size: 0.9em;
}

.upload-info {
   margin-top: 60px;
   padding: 30px;
   background-color: var(--background-light);
   border-radius: 10px;
   box-shadow: var(--box-shadow);
   max-width: 700px;
   margin-left: auto;
   margin-right: auto;
}

.upload-info h4 {
   font-size: 1.5em;
   color: var(--secondary-color);
   margin-bottom: 15px;
}

.upload-info p {
   font-size: 1em;
   color: #555;
}

.upload-info a {
   font-weight: 600;
}

/* About Section Specific Styles */
.content-section {
   padding: 60px 0;
   background-color: var(--background-light);
}

.about-section h3 {
   text-align: center;
   margin-bottom: 30px;
   font-size: 2em;
   color: var(--primary-color);
}

.about-section p {
   margin-bottom: 1.5em;
   max-width: 900px;
   margin-left: auto;
   margin-right: auto;
   text-align: justify;
}

.about-section ul {
   list-style: none;
   padding: 0;
   margin-bottom: 40px;
   max-width: 800px;
   margin-left: auto;
   margin-right: auto;
}

.about-section ul li {
   background-color: var(--background-dark);
   padding: 15px;
   border-radius: 8px;
   margin-bottom: 10px;
   display: flex;
   align-items: center;
   box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
   font-size: 1.05em;
   color: #444;
}

.about-section ul li i {
   color: var(--secondary-color);
   font-size: 1.3em;
   margin-right: 15px;
   min-width: 25px; /* Ensures icon alignment */
}

.team-grid {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
   gap: 30px;
   margin-top: 40px;
   justify-content: center;
}

.team-member {
   background-color: var(--background-dark);
   padding: 25px;
   border-radius: 10px;
   box-shadow: var(--box-shadow);
   text-align: center;
   transition: transform 0.3s ease;
}

.team-member:hover {
   transform: translateY(-5px);
}

.team-member img {
   width: 150px;
   height: 150px;
   border-radius: 50%; /* Circular images */
   object-fit: cover;
   margin-bottom: 15px;
   border: 3px solid var(--primary-color);
   box-shadow: 0 0 0 5px rgba(76, 175, 80, 0.2);
}

.team-member h4 {
   font-size: 1.4em;
   margin-bottom: 5px;
   color: var(--dark-text);
}

.team-member .role {
   font-size: 0.95em;
   color: var(--secondary-color);
   margin-bottom: 15px;
   font-weight: 600;
}

.team-member .bio {
   font-size: 0.9em;
   color: #666;
   text-align: center; /* Center bio text as well */
}

/* Reset some default styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Base styling */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f4f8fb;
  color: #222;
  line-height: 1.6;
}

/* Header */
header {
  background: #0066cc;
  color: #fff;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.5em;
  font-weight: bold;
}

/* Navigation */
.main-nav {
  display: flex;
  gap: 20px;
}

.main-nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 12px;
  transition: background 0.3s ease, color 0.3s ease;
}

.main-nav a:hover {
  background: white;
  color: #0066cc;
  border-radius: 5px;
}

/* Hamburger for mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.nav-toggle span {
  height: 3px;
  width: 25px;
  background: white;
  margin: 4px 0;
  border-radius: 2px;
}

/* Responsive nav */
@media (max-width: 768px) {
  .main-nav {
    flex-direction: column;
    width: 100%;
    display: none;
    background: #0066cc;
  }

  .main-nav.active {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }
}

/* Main content */
main {
  padding: 40px 20px;
  text-align: center;
}

h1 {
  font-size: 2.5rem;
  color: #0066cc;
  margin-bottom: 20px;
}

p {
  font-size: 1.1rem;
  color: #444;
}

/* Footer */
footer {
  background: #00264d;
  color: white;
  text-align: center;
  padding: 15px;
  position: relative;
  bottom: 0;
  width: 100%;
}

.hero-section {
   background: url('../images/hero-bg.png') no-repeat center center/cover;
   color: #fff;
   text-align: center;
   padding: 120px 20px;
   position: relative;
}

.hero-section::before {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background: rgba(0, 0, 0, 0.4); /* dark overlay for readability */
   z-index: 1;
}

.hero-section .container {
   position: relative;
   z-index: 2;
}

.logo img {
    max-height: 30px; /* Smaller size */
    width: auto;
    vertical-align: middle;
}

