* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: #f4f4f4;
  color: #333;
  overflow-x: hidden;
  position: relative;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}


.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 */
}

/* 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;
}
/* Close button */
.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #0c06ce;
  transition: color 0.3s;
}
.close-btn:hover {
  color: #d22;
}


/* Side navigation (hidden by default) */
.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;
}

.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%;
}

.nav-links a {
  color: white;
  text-decoration: none;
  margin: 0 12px;
  transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #65d6ff;
}

/* ===== Sermon Section ===== */
.sermons {
  text-align: center;
  padding: 60px 20px;
  background: #f9f9f9;
}

.sermons-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 30px;
}

.sermon-card {
  background: #fff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  border-radius: 10px;
  max-width: 350px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.sermon-card:hover {
  transform: scale(1.03);
}

.sermon-thumbnail {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.sermon-info {
  padding: 20px;
}

.play-btn {
  background: #b12b2b;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.play-btn:hover {
  background: #8e1f1f;
}

/* ===== Video Modal ===== */
.video-modal {
  display: none; 
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.video-modal.active {
  display: flex;
}

.video-wrapper {
  position: relative;
  width: 90%;
  max-width: 900px;
}

.video-wrapper video {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.close-video {
  position: absolute;
  top: 30px;
  right: 50px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
  font-weight: bold;
  transition: color 0.3s;
}

.close-video:hover {
  color: #b12b2b;
}

/* Back Home button */
.back-home {
  position: fixed;      /* stays at the bottom */
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #063679;
  padding: 12px 24px;
  border-radius: 30px;
  box-shadow: 0 4px 12px rgb(255, 255, 255);
  transition: all 0.3s ease;
}

.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 */
}
