/* Reset and Base */
body {
  margin: 0;
  font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;
}

main{
  font-family: 'Poppins', 'Segoe UI', 'Helvetica Neue', sans-serif;
}

html {
  scroll-behavior: smooth;
}

/* Loader */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff6ef;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  transition: opacity 0.5s ease;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 6px solid #e0d6cf;
  border-top: 6px solid #4B2743;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Top Bar and Navigation */
.top-bar {
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

header {
  background-color: #fff6ef;
  padding: 0;
  margin: 0;
  font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;
}

.logo-title {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-img {
  width: 100px;
  height: auto;
}

.logo-title h1 {
  font-weight: 400;
  font-size: 1.8rem;
  margin: 0;
  color: #222;
}

nav {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 1rem 2rem;
  background-color: #fff6ef;
  border-top: 1px solid #e0d6cf;
  border-bottom: 1px solid #e0d6cf;
  font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;
}

.friends{
  color:rgb(0, 4, 255)
}

.nav-left ul {
  display: flex;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-left a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.nav-right {
  display: flex;
  gap: 1rem;
}

.nav-right a {
  text-decoration: none;
  color: #555;
  font-size: 0.9rem;
  white-space: nowrap;
}

nav a {
  position: relative;
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 2px;
  background-color: #4B2743;
  transition: width 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 1rem 2rem;
  position: absolute;
  right: 1rem;
  top: 1rem;
  z-index: 1001;
}

@media (max-width: 900px) {
  .hamburger {
    display: block;
  }

  nav {
    display: none;
    flex-direction: column;
    width: 100%;
  }

  nav.active {
    display: flex;
  }

  .nav-left ul {
    flex-direction: column;
    gap: 0.5rem;
  }

  .nav-right {
    display: none;
  }

  .logo-title {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    padding: 1rem 0;
  }

  .logo-img {
    width: 80px;
  }

  .events-grid {
    flex-direction: column;
    align-items: center;
  }

  .event-card {
    width: 90%;
  }

  .notice-board {
    width: 90%;
    margin: 0 auto 2rem auto;
  }

  footer {
    padding: 1.5rem 1rem;
  }

  .social-media a {
    display: inline-block;
    margin: 0.3rem;
  }
}

/* Events Section */
.events {
  background-color: #fff6ef;
  padding: 1rem 2rem;
  text-align: center;
  border-top: 1px solid #e0d6cf;
  border-bottom: 1px solid #e0d6cf;
}

.event-title h2 {
  font-size: 2.2rem;
  font-weight: 400;
  color: #4B2743;
  margin-bottom: 0.5rem;
}

.event-title p {
  font-size: 1.2rem;
  font-weight: 300;
  color: #333;
  margin-bottom: 2rem;
}

.events button {
  background-color: #4B2743;
  color: #fff;
  border: none;
  padding: 0.8rem 1.6rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.events button:hover {
  background-color: #3a1f35;
}

.notice-board {
  background-color: #4B2743;
  color: #ffffff;
  padding: 2rem;
  max-width: 900px;
  margin: 0 auto 3rem auto;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.notice-board h3 {
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: 2rem;
  border-bottom: 1px solid #e0d6cf;
  padding-bottom: 0.5rem;
  color: #fff;
}

.notice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  text-align: left;
}

.notice-card {
  background-color: #fdf4ec;
  border-left: 4px solid #4B2743;
  padding: 1rem 1.5rem;
  box-shadow: 0 2px 6px rgba(75, 39, 67, 0.1);
  border-radius: 6px;
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.5;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.notice-card:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(75, 39, 67, 0.2);
  z-index: 1;
}


.notice-card strong {
  display: block;
  font-size: 1.3rem;
  color: #4B2743;
  margin-bottom: 0.5rem;
  font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;
}

.notice-card .span-color {
  color: #4B2743;
  font-weight: 500;
}

#toggleNotice {
  display: none;
}

/* Hide extra cards on mobile */
@media (max-width: 768px) {
  .notice-card.extra {
    display: none;
  }

  .notice-grid.expanded .notice-card.extra {
    display: block;
  }

  #toggleNotice {
    display: block;
    margin: 1rem auto 0 auto;
    background-color: #4B2743;
    color: #fff;
    border: none;
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }

  #toggleNotice:hover {
    background-color: #3a1f35;
  }
}

/* Hide button on desktop */
@media (min-width: 769px) {
  #toggleNotice {
    display: none;
  }
}

.prayer-link {
  text-decoration: none;
  color: #000;
  font-weight: 500;
}
.prayer-link:hover {
  text-decoration: underline;
}



/* Footer */
footer {
  background-color: #4B2743;
  color: #fff;
  padding: 2rem;
  text-align: center;
}

footer p {
  font-size: 0.9rem;
  font-weight: 300;
  margin-bottom: 1rem;
}

.social-media {
  margin-bottom: 1rem;
}

.social-media a {
  color: #fff;
  margin: 0 0.5rem;
  text-decoration: none;
  font-weight: 400;
  transition: color 0.3s ease;
}

.social-media a:hover {
  color: #e0d6cf;
}

.footer-logos {
  margin-top: 2rem;
  text-align: center;
}

.parent-org {
  font-size: 0.95rem;
  font-weight: 300;
  color: #fff;
  margin-bottom: 1rem;
}

.developer-details {
  font-size: 0.9rem;
  color: #fff;
  margin-top: 1rem;
}

.developer-details a {
  color: #fff;
  text-decoration: none;
  font-weight: 400;
}

.developer-details a:hover {
  text-decoration: underline;
}

.developer-name:hover {
  color: beige;
  cursor: pointer;
  transition: color 0.3s ease;
}

/* Gallery Section */
.gallery-grid {
  display: flex;
  flex-wrap: wrap; /* Allows wrapping */
  gap: 1rem;
  justify-content: center;
  align-items: flex-start;
}

.gallery-images {
  height: auto;
  max-height: 600px;
  width: 500px;
  object-fit: contain;
  transition: transform 0.3s ease; /* Smooth animation */
}

.gallery-images:hover {
  transform: scale(1.05); /* Slight enlargement */
  z-index: 1; /* Optional: bring image above others */
}

.prayer-link {
  text-decoration: none;
  color: #000;
  font-weight: 500;
}
.prayer-link:hover {
  text-decoration: underline;
}
/* Lightbox Styles */
.lightbox {
  display: none;
  position: fixed;
  z-index: 3000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  cursor: zoom-out;
}

.lightbox-img {
  max-width: 90%;
  max-height: 90%;
  transition: transform 0.3s ease;
}

.lightbox-img:hover {
  transform: scale(1.05);
}

.lightbox .close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}

/* Optional: smooth fade-in */
.lightbox.show {
  display: flex;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 768px) {
  .gallery-grid {
    flex-direction: column;
    align-items: center;
  }

  .gallery-images {
    max-width: 100%;
    height: auto;
  }
}

.events-gallery h3{
  font-size: 1.8rem;
  font-weight: 400;
  color: #4B2743;
  margin-bottom: 1rem;
  padding: 50px 0px;
}

.event-cta {
  margin-top: 4rem;
  text-align: center;
  background-color: #fff6ef;
  padding: 2rem;
  border: 1px solid #e0d6cf;
  border-radius: 8px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 2px 6px rgba(75, 39, 67, 0.1);
  font-family: 'Poppins', 'Segoe UI', 'Helvetica Neue', sans-serif;
  margin-bottom: 4rem;

}

.event-cta h3 {
  font-size: 1.6rem;
  font-weight: 500;
  color: #4B2743;
  margin-bottom: 0.5rem;
}

.event-cta p {
  font-size: 1.1rem;
  font-weight: 300;
  color: #333;
  margin-bottom: 1.5rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.cta-buttons button {
  background-color: #4B2743;
  color: #fff;
  border: none;
  padding: 0.8rem 1.6rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-family: 'Poppins', 'Segoe UI', 'Helvetica Neue', sans-serif;

}

.cta-buttons button:hover {
  background-color: #3a1f35;
}

@media (max-width: 768px) {
  .notice-board {
    width: 100%;
    max-width: 90%;
    margin: 0 auto 2rem auto;
    padding: 1rem;
    box-sizing: border-box;
    text-align: center;
    overflow-wrap: break-word;
  }
  .notice-card{
    text-align: center;
  }
}