* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: #f4f4f4;
  color: #333;
  overflow-x: hidden;
  position: relative;
}


/* Heading Section */
.events-heading {
  text-align: center;
  margin-top: 100px;
  color: #333;
}

.events-heading h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.events-heading p {
  font-size: 1.2rem;
  color: #666;
}


/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  background: #020f88;
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Menu button */
.menu-btn {
  background: #eee;
  border: none;
  font-size: 1.5rem;
  padding: 10px 15px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}
.menu-btn:hover {
  background: #ddd;
}

/* Side navigation */
.side-nav {
  position: fixed;
  top: 0;
  right: -300px;
  width: 250px;
  height: 100%;
  background: #fff;
  box-shadow: -2px 0 10px rgba(0,0,0,0.2);
  transition: right 0.4s ease;
  z-index: 999;
}
.side-nav.open {
  right: 0;
}

/* Close button */
.close-butn {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #0b08d0;
  transition: color 0.3s;
}
.close-butn:hover {
  color: #d22;
}

/* Nav links */
.side-nav ul {
  list-style: none;
  padding: 80px 20px;
  margin: 0;
}

.side-nav li {
  margin: 20px 0;
}

.side-nav a {
  text-decoration: none;
  color: #333;
  font-size: 1.1rem;
  transition: color 0.3s;
}

.side-nav a:hover {
  color: #d22;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  width: 60px;
  height: auto;
  border-radius: 50%;
}


/* Overlay (for dim effect when menu opens) */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: none;
  z-index: 500;
}
.overlay.show {
  display: block;
}

/* JESUS CROSS FALLING EFFECT */
.cross {
  position: fixed;
  top: -50px;
  font-size: 30px;
  color: rgb(10, 201, 234);
  animation: fall linear infinite;
  z-index: 0;
}
.events-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding: 40px;
}

/* Event Cards */
.event-card {
  background: #fff;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.event-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
}

.modal-content {
  background: #fff;
  margin: 8% auto;
  padding: 30px;
  border-radius: 10px;
  width: 60%;
  max-width: 500px;
  text-align: center;
  animation: fadeIn 0.4s ease;
}


.gallery-btn {
  position: fixed;         /* stays in place when scrolling */
  top: 50%;                /* vertically middle */
  left: 20px;              /* small offset from the left edge */
  transform: translateY(-50%);
  
  background-color: #020f88; /* transparent background */
  color: #fff;             /* white text (change to match theme) */
  border: 2px solid #fff;  /* white border */
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;   /* remove underline */
  transition: all 0.3s ease;
  z-index: 1000;           /* ensures it appears above content */
}

.gallery-btn:hover {
  background: #fff;
  color: #333;             /* text color changes on hover */
}

.modal-content img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.close {
  float: right;
  font-size: 22px;
  cursor: pointer;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Close button */
.close-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  background: red;
  color: white;
  border: none;
  font-size: 1.5rem;
  padding: 8px 12px;
  border-radius: 50%;
  cursor: pointer;
  display: none; /* hidden until video plays */
  z-index: 999;
}

/* Back Home button */
.back-home {
  position: fixed;      /* stays at the bottom */
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #020f88;
  padding: 12px 24px;
  border-radius: 30px;
  box-shadow: 0 4px 12px rgb(255, 255, 255);
  transition: all 0.3s ease;
}
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.back-home a {
  text-decoration: none;
  font-size: 1rem;
  color: #ffffff;
  font-weight: bold;
}

.back-home:hover {
  background: #2b7fd8;
  transform: translateX(-50%) scale(1.05);
}


/* Footer */
footer {
  background-color: #020f88;
  color: #fff;
  padding: 15px 20px;
  text-align: center;
  font-size: 0.9rem;
}


.update-btn {
  position: fixed;         /* stays in place when scrolling */
  top: 50%;                /* vertically middle */
  right: 20px;              /* small offset from the left edge */
  transform: translateY(-50%);
  
  background-color: #020f88; /* transparent background */
  color: #fff;             /* white text (change to match theme) */
  border: 2px solid #fff;  /* white border */
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;   /* remove underline */
  transition: all 0.3s ease;
  z-index: 1000;           /* ensures it appears above content */
}

.update-btn:hover {
  background: #fff;
  color: #333;             /* text color changes on hover */
}
