/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: #333;
    line-height: 1.7;
    padding-top: 70px; /* Adjust based on your header height */
}

h2{
    text-align: center;
    font-weight: bolder;
    font-family: Roboto;
    color: white;
}



/* Header Section */
header {
    position: fixed; /* Fixed position at the top */
    top: 0;
    left: 0;
    width: 100%; /* Full width */
    height: 10%; /* Adjust based on your needs */
    z-index: 1000; /* Ensure it stays on top */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 0;
    background-color: #7c0d95;
    background-image: url(Images/Sunset\ large.jpg);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%; /* Ensure full width of the header */
    max-width: 1200px;
    flex-grow: 0; /* Prevent unwanted stretching */
    box-sizing: border-box; /* Make padding part of the width/height */
}

/* Logo Styling */
.logo img {
    max-width: 80px;
    height: auto;
    opacity: 0; /* Hidden initially */
    transform: translateX(-100%); /* Off-screen */
    animation: slideInLeft 1s forwards ease-out;
    animation-delay: 0.2s; /* Smooth animation delay */
}

/* Navbar Styling */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: grey;
    padding: 15px 20px;
    z-index: 1000;
    position: relative;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    opacity: 0; /* Start hidden */
    transform: translateX(100%); /* Start off-screen to the right */
    animation: slideInRight 1s forwards ease-out;
    animation-delay: 0.5s;
    box-sizing: border-box; /* Include padding in width/height */
}

/* Navbar Links Styling */
.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.nav-links li {
    margin: 0 1.5rem;
    position: relative;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1.0rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.nav-links a:hover {
    background-color: #007bff; /* Brighter blue on hover */
    color: #fff; /* White text on hover */
    transform: scale(1.05);
}

/* Dropdown Menu Styling */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 160px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1;
    border-radius: 5px;
}

.dropdown:hover .dropdown-content {
    display: block; /* Show dropdown on hover */
}

.dropdown-content a {
    color: #004d7a;
    padding: 0.5rem 1rem;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s ease;
    border-bottom: 1px solid #f1f1f1;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

/* Keyframes for Animations */
@keyframes slideInLeft {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}
/* Responsive navbar improvement */
@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    align-items: center;
    background-color: #7c0d95;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    margin: 1rem 0;
  }

/* ===== MODERN HAMBURGER TOGGLE ===== */
.menu-toggle {
  width: 35px;
  height: 30px;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  height: 4px;
  background-color: #004d7a;
  border-radius: 2px;
  transition: 0.3s ease;
}

/* Positioning in header */
@media (max-width: 1024px) {
  .menu-toggle {
    display: flex;
    margin-left: auto;
    margin-right: 10px;
  }

  .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1.5rem;
    gap: 1rem;
  }

  .logo img {
    max-width: 80px;
  }
}


  nav {
    flex-grow: 1;
  }
}


/* Hero Section */
.hero-container {
    text-align: center;
    padding: 50px;
    background-color: #ffffff;
    background-image: url('Images/IMG_5950.jpg'); /* Background image */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 1480px;
    height: auto;
    margin: auto;
    position: relative;
    animation: fadeIn 2s ease-in;
    margin-top: 0.99rem;
    z-index: 1;
}
.hero-wrapper {
    width: 100%;
    max-width: 1480px;
    margin: 0 auto;
    z-index: 2;
    text-align: center;
    position: relative;
}


.hero-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-container h1, .hero-container h2, .btn {
    position: relative; /* Ensure text is above the overlay */
    z-index: 2;
}
/* ===== HERO CONTENT ===== */
.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    margin-bottom: 2rem;
}

.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(to right, #ffffff, #ffb3ec);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.hero-content h3 {
    font-size: 1.5rem;
    font-weight: 400;
    color: #f5f5f5;
    margin-bottom: 2rem;
}

/* Hero Headings */
h1 {
    font-size: 2.90rem;
    font-weight: 750;
    color: #004d7a;
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0;
    animation: slideDown 1.0s ease forwards 0.5s;
    background-color: white;
    -webkit-background-clip: text;
    color: transparent;
    white-space: nowrap;
}

h2 {
    font-size: 1.8rem;
    font-weight: 300;
    color: whitesmoke;
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeInUp 1.5s ease-in forwards 1s;
}

/* Button Styling */
.btn {
    padding: 15px 40px;
    font-size: 1.2rem;
    color: #fff;
    background-color: #004d7a;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    animation: bounce 3s infinite 1.0s;
    margin-bottom: 20px;
    z-index: 2; /* Button stays above the overlay */
}

.btn:hover {
    background-color: #ff6347;
    transform: scale(1.1);
}

button {
    padding: 15px 40px;
    font-size: 1.2rem;
    color: #fff;
    background-color: maroon;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    animation: bounce 3s infinite 1.5s;
    margin-bottom: 20px; /* Space below the button */
}

/* Bounce Animation */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Slide Down Animation for Heading */
@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.type-once {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  border-right: none; /* No cursor */
}


/* Fade In Up Animation for Subtitle */
@keyframes fadeInUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Service Item Styling */
/* ===== HERO CONTENT ===== */

/* ===== SERVICE TIMES ===== */
.service-times {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 12px;
    backdrop-filter: blur(6px);
    color: white;
    z-index: 2;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.service-times h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 0 0 5px #000;
}

.service-times .service-item {
    margin-bottom: 0.8rem;
    font-size: 1rem;
    line-height: 1.6;
}

.service-item {
    opacity: 0; /* Start hidden */
    transform: translateY(30px) scale(0.95); /* Start slightly lower and smaller */
    animation: fadeInUpService 0.7s ease forwards; /* Animation to fade in and move up */
    animation-delay: calc(0.3s * var(--delay)); /* Stagger the appearance */
    transform: translate(30px) scale(0.95) rotate(-5deg); /* Slight rotation */

}


/* Keyframes for fade in, slide up, and scale effect */
@keyframes fadeInUpService {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95); /* Start below and smaller */
    }
    70% {
        opacity: 1;
        transform: translateY(-5px) scale(1.05); /* Slight bounce above position and larger */
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1); /* Settle in the final position at normal scale */
    }
}

.combined-bg{
    background-image: url(Images/Sunset\ large.jpg);

}
/* ===== WHO WE ARE SECTION WITH ICONS AND ANIMATION ===== */
.who-we-are {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  padding: 3rem 1rem;
  background-color: #000;
}

.who-box {
  background-color: #1a1a1a;
  color: #fff;
  flex: 1 1 280px;
  max-width: 320px;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  transform: translateY(30px);
  opacity: 0;
  transition: transform 0.6s ease, opacity 0.6s ease;
  transition-delay: calc(0.1s * var(--delay));
  text-align: center;
  cursor: pointer;
}

.who-box i {
  font-size: 2.5rem;
  color: #ff7e5f;
  margin-bottom: 1rem;
  display: block;
}

.who-box h2 {
  font-size: 1.8rem;
  color: #ff7e5f;
  margin-bottom: 1rem;
}

.who-box p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #ccc;
}

.who-we-are.visible .who-box {
  opacity: 1;
  transform: translateY(0);
}

.who-box:hover {
  background-color: #222;
  transform: translateY(-5px);
}

/* ===== UPCOMING EVENT SECTION (FULL WIDTH + FLYER) ===== */
.upcoming-event {
  padding: 4rem 2rem;
  background: linear-gradient(to right, #ffffff, #f3f3ff);
  text-align: center;
}

.upcoming-event h2 {
  font-size: 2rem;
  color: #7c0d95;
  margin-bottom: 1rem;
}

.event-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  background-color: #fff;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s ease;
}

.upcoming-event.visible .event-wrapper,
.upcoming-event.visible .event-fallback {
  opacity: 1;
  transform: translateY(0);
}

.event-flyer img {
  width: 100%;
  max-width: 400px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.event-details {
  flex: 1;
  text-align: left;
  max-width: 600px;
}

.event-details h3 {
  font-size: 1.6rem;
  color: #004d7a;
  margin: 1rem 0 0.5rem;
}

.event-details p {
  font-size: 1rem;
  color: #444;
  margin-bottom: 1rem;
}

.event-details button {
  background: #004d7a;
  color: white;
  padding: 0.6rem 1.5rem;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.event-details button:hover {
  background-color: #ff7e5f;
}



/* Visibility toggle */
.hide { display: none; }
.show { display: flex; flex-wrap: wrap; }





/* Animation for background gradient */
.who-we-are div::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background: linear-gradient(to right, rgba(255, 126, 95, 0.7), rgba(254, 180, 123, 0.7));*/
    transform: translateY(-100%); /* Start off-screen */
    transition: transform 0.5s ease-in-out;
}

.who-we-are div:hover::before {
    transform: translateY(0); /* Slide in the gradient on hover */
}

.heading {
    transform: translateY(20px); /* Start below */
    opacity: 0; /* Initially hidden */
    transition: transform 0.5s ease, opacity 0.5s ease; /* Transition for smooth effect */
}

.heading.slide-up {
    transform: translateY(0); /* Slide to original position */
    opacity: 1; /* Fade in */
}


/* ===== ANNUAL CALENDAR REDESIGN WITH BACKGROUND, ICONS, TAGS ===== */
.annual-calendar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 4rem 2rem;
   /* background: url('Images/Sunset\ small.jpg') no-repeat center center / cover;
  /* Replace 'nature-bg.jpg' with your own background image.
   Ideal size: 1600px wide by 1000px tall for best quality on all screens */
  background-color: #230224;
  position: relative;
  z-index: 1;
}

/* Optional: overlay blur 
.annual-calendar::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  z-index: -1;
}*/

.annual-calendar div {
  background: #ffffffd9;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
  display: flex;
  flex-direction: column;
}

.annual-calendar div.visible {
  opacity: 1;
  transform: translateY(0);
}
.annual-calendar h2{
    font-size: 2.5rem;
    color: #ff7e5f;
    margin-top: 3rem;
    font-weight: 700
}

.annual-calendar h3 {
  font-size: 1.4rem;
  color: #fff;
  background-color: #7c0d95;
  padding: 1rem;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.annual-calendar img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.annual-calendar div:hover img {
  transform: scale(1.05);
}

.annual-calendar button {
  max-width: 50%;
  font-size: 1rem;
  font-weight: 500;
  border: none;
  background-color: #004d7a;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: auto;
}

.annual-calendar button:hover {
  background-color: #ff7e5f;
}

.annual-calendar .tag {
  display: inline-block;
  font-size: 0.55rem;
  margin-top: 0.5rem;
  padding:0.2rem 0.5rem;
  border-radius: 999px;
  font-weight: bold;
  color: white;
}

/* Tag colors */
.tag.youth { background-color: #007bff; }
.tag.prayer { background-color: #6f42c1; }
.tag.men { background-color: #343a40; }
.tag.women { background-color: #e83e8c; }
.tag.couples { background-color: #dc3545; }
.tag.worship { background-color: #28a745; }
.tag.family { background-color: #fd7e14; }



.service-times {
    color: #fff; /* Ensures visibility over the black background */
    z-index: 10; /* Ensures it's in front of the black layer */
    position: relative; /* Keeps positioning intact */
    text-align: center; /* Center the text if necessary */
    margin: 0 auto;
}

.service-item {
    margin: 15px 0; /* Adds spacing between each item */
    font-size: 1.2em; /* Adjust the font size for readability */
    position: relative;
}

/* Adding reflection effect */
.service-item::after {
    content: attr(data-reflection); /* Reuse the content for reflection */
    display: block;
    position: absolute;
    top: 100%; /* Positioned below the original text */
    left: 0;
    right: 0;
    opacity: 0.3; /* Faded reflection */
    transform: scaleY(-1); /* Flip vertically for reflection effect */
    font-size: 1.2em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); /* Optional shadow for better visibility */
}
.service-item::after {
    white-space: nowrap;/* Ensure reflection text lines up */
}
/* ===== CCM IN NUMBERS (GRADIENT + ICONS) ===== */
.ccm-numbers {
  background: linear-gradient(135deg, #1f1c2c, #928DAB);
  color: #fff;
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.ccm-numbers h2 {
  font-size: 2.5rem;
  color: #ffffff;
  margin-bottom: 3rem;
  font-weight: 700;
}

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.number-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease;
  position: relative;
  overflow: hidden;
}

.number-card:hover {
  transform: translateY(-6px);
}

.icon-circle {
  width: 60px;
  height: 60px;
  background-color: #ff7e5f;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.number-card h3 {
  font-size: 2.5rem;
  color: #ffffff;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.number-card p {
  font-size: 1.1rem;
  color: #ddd;
}

@keyframes bounceIn {
  0% {
    transform: scale(0.9);
    opacity: 0;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}

.ccm-numbers.bounce-visible {
  animation: bounceIn 0.9s ease both;
}

.announcement-carousel {
  position: relative;
  overflow: hidden;
  height: 400px; /* Increased height */
  background: linear-gradient(to right, #2c3e50, #d6bd98);
  display: flex;
  align-items: center;
  justify-content: center;

}


.carousel-track {
  display: flex;
  transition: transform 0.8s ease;
  width: 100%;
  max-width: 600px;
  height: 100%;
  position: relative;
}

.carousel-card {
  min-width: 100%;
  height: 100%; /* make it stretch to full section height */
  background: white;
  border-radius: 15px;

  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  opacity: 0;
  transform: scale(0.95) translateX(100%);
  position: absolute;
  top: 0;
  left: 0;
  transition: all 0.6s ease-in-out;

  display: flex;
  flex-direction: column;
  justify-content: center;
}
.carousel-card .btn {
  padding: 8px 20px;
  font-size: 0.9rem;
  max-width: fit-content;
  border-radius: 30px;
  background-color: #004d7a;
  color: #fff;
  font-weight: 600;
  border: none;
  transition: background-color 0.3s ease;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.carousel-card .btn:hover {
  background-color: #ff7e5f;
}


.carousel-card.active {
  opacity: 1;
  transform: scale(1.02) translateX(0);
  z-index: 2;
}




 /*-----------------------PRAYER AND TESTIMONY PAGE-------------------------------------------------------------------------------- */
/* === Header Title Section === */
/* === HEADER TITLE SECTION === */
.prayer-header {
  padding: 40px 20px;
  text-align: center;
 background-color: #548CA8;



}

.prayer-header  {
  font-size: 1.0rem;
  margin: 0;
  color: #ffffff;
  line-height: 1.3;
  word-wrap: break-word;
}

/* === SCRIPTURE VERSE ROTATOR === */
.prayer-verse-slider {
  max-width: 800px;
  height: 300px;
  margin: 30px auto;

  border-radius: 15px;
  font-size: 2.2rem;
  text-align: center;
  min-height: 100px;
  color: #2c3e50;
  line-height: 1.6;
}

/* === BUTTONS SECTION === */
.prayer-button-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 30px 0;
  padding: 0 10px;
}

.prayer-action-btn {
  padding: 14px 28px;
  background: #677D6A;
  color: #fff;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.prayer-action-btn:hover {
  background-color: #D6BD98;
  color: #1a1a1a;
}

/* === MODAL OVERLAY FOR BOTH FORMS === */
.prayer-modal,
.testimony-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 2rem 1rem;
  overflow-y: auto;
}

/* === MODAL CONTENT WRAPPER === */
.prayer-modal-content {
  background-color: #ffffff;
  margin: 3rem auto;
  padding: 1.5rem;
  border-radius: 12px;
  max-width: 850px;
  width: 100%;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.4);
  position: relative;
}

/* === CLOSE BUTTON === */
.prayer-modal-content .close {
  position: absolute;
  top: 10px;
  right: 16px;
  font-size: 28px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
}

/* === IFRAME STYLING === */
.prayer-modal-content iframe {
  width: 100%;
  height: 800px;
  border: none;
  border-radius: 8px;
}

/* === RESPONSIVE MEDIA QUERIES === */
@media screen and (max-width: 1080px) and (min-width: 769px) {
  .prayer-header h1 {
    font-size: 2.2rem;
  }

  .prayer-verse-slider {
    font-size: 1.1rem;
    padding: 18px;
    max-width: 90%;
  }

  .prayer-action-btn {
    font-size: 1rem;
    padding: 12px 24px;
  }

  .prayer-modal-content {
    max-width: 90%;
    padding: 1.5rem;
  }

  .prayer-modal-content iframe {
    height: 800px;
  }
}

@media screen and (max-width: 480px) {
  .prayer-modal-content iframe {
    height: 800px;
  }
}

/*-----------------------END PRAYER AND TESTIMONY PAGE-------------------------------------------------------------------------------- */

/* === Audio Sermons Section === */
.audio-sermons-section {
  padding: 60px 20px;
  background: linear-gradient(to right, #2c3e50, #d6bd98);
  background-color: #f7f7f7;
}

.audio-sermons-section h1 {
  text-align: center;
  font-size: 2.5rem;
  color: #fcfcfc;
  margin-bottom: 40px;
}

/* Container holding all sermon columns */
.sermons-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 30px;
}

/* Each vertical column */
.sermon-box {
  background-color: rgba(255, 255, 255, 0.95); /* slight transparency */
  backdrop-filter: blur(4px); /* optional glass effect */
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  flex: 1 1 300px;
  background-color: #ffffff;
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 30px; /* ✅ Add spacing between boxes */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  min-width: 280px;
  max-width: 350px;
  text-align: center;
  transition: transform 0.3s ease;
  min-height: 450px; /* allow room for the iframe */
}


.sermon-box:hover {
  transform: translateY(-5px);
}

.sermon-box h2 {
  font-size: 1.5rem;
  color: #677D6A;
  margin-bottom: 15px;
}

.sermon-box iframe {
  width: 100%;
  height: 450px; /* 🔼 previously 300px */
  border-radius: 10px;
}

/* === Responsive Stack on Mobile === */
@media screen and (max-width: 768px) {
  .sermons-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 30px; /* ✅ extra vertical spacing between stacked items */
  }

  .sermon-box {
    width: 90%;
  }
}


main {
    display: flex;
    justify-content: space-between;
    max-width: 1800px;
    margin: 60px auto;
    padding: 0 20px;
    gap: 40px;
  }
  
  /* Left column (telephone, map, social) */
  .left-column {
    width: 50%;
    display: flex;
    flex-direction: column; 
    gap: 30px;
  }
  #contact-location {
    width: 80%; /* Adjust as needed */
    margin: 0 auto; /* Center the container horizontally */
    padding: 30px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
  }
  #contact-telephone,
  #contact-social {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease-in-out;
  }
  
  #contact-telephone:hover, 
  #contact-location:hover, 
  #contact-social:hover {
    transform: translateY(-5px);
  }
  
  #contact-telephone h2, 
  #contact-location h2, 
  #contact-social h2 {
    font-size: 26px;
    margin-bottom: 15px;
    color: #333;
  }
  
  #contact-telephone ul, 
  #contact-social ul {
    list-style: none;
    padding: 0;
  }
  
  #contact-telephone li, 
  #contact-social li {
    margin-bottom: 15px;
    font-size: 18px;
    color: #555;
  }
  
  #contact-telephone a, 
  #contact-social a {
    color: #0073e6;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
  }
  
  #contact-telephone a:hover, 
  #contact-social a:hover {
    color: #005bb5;
    text-decoration: underline;
  }
  
  iframe {
    width: 100%; /* Ensures the map stretches within the container */
    height: 450px;
    border: 0;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  }
  
  /* Right column (form) */
  #contact-form {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
    width: 45%;
  }
  
  #contact-form h2 {
    font-size: 26px;
    margin-bottom: 25px;
    color: #333;
  }
  
  form div {
    margin-bottom: 20px;
  }
  
  label {
    font-size: 16px;
    margin-bottom: 10px;
    display: block;
    color: #444;
  }
  
  input[type="text"],
  input[type="email"],
  textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
    color: #333;
  }
  
  textarea {
    resize: vertical;
  }
  
  button {
    padding: 14px 24px;
    background-color: #0073e6;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease-in-out;
  }
  
  button:hover {
    background-color: #005bb5;
  }
  
  /* Responsive adjustments */
  
  
    
    iframe {
      height: 300px;
    }
  
    #contact-telephone li, 
    #contact-social li {
      font-size: 16px;
    }
  
    button {
      font-size: 14px;
      padding: 12px 18px;
    }

 
  
    .left-column,
    #contact-form {
      width: 100%;
    }
    
    iframe {
      height: 250px;
    }
  
    #contact-telephone h2,
    #contact-location h2,
    #contact-social h2,
    #contact-form h2 {
      font-size: 22px;
    }
  
    input[type="text"],
    input[type="email"],
    textarea {
      font-size: 14px;
    }
  
    button {
      font-size: 14px;
    }

  
    #contact-telephone h2,
    #contact-location h2,
    #contact-social h2,
    #contact-form h2 {
      font-size: 20px;
    }
  
    button {
      font-size: 12px;
      padding: 10px 16px;
    }
    @media screen and (max-width: 1024px) {
  main {
    flex-direction: column;
    align-items: center;
    padding: 0 15px;
  }

  .left-column,
  #contact-form {
    width: 100%;
    max-width: 100%;
    margin-bottom: 40px;
  }

  iframe {
    height: 300px;
  }

  #contact-form form {
    width: 100%;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
  }

  .footer-contact,
  .footer-socials {
    width: 100%;
    text-align: center;
  }

  .footer-bottom {
    padding: 10px 20px;
  }
}


  

/*New ConvertS Page */
.new_convert_container {
    max-width: 600px;
    margin: 50px auto;
    background-color: #fff;
    /*background-image: url(Images/sunset\ medium.jpg);*/
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#new_coverts{
    color: #007bff;
    font-weight: bolder;
}


label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #444;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.attendance-type {
    margin-bottom: 20px;
}

#online-options {
    margin-bottom: 20px;
}

textarea {
    resize: none;
}

/* ========== SPIRITUAL FATHER BIO SECTION ========== */
/* ========= BIO SECTION FIXED AND RESPONSIVE ========= */
.bio-section {
  padding: 4rem 1rem;
  background: linear-gradient(to right, #f9f9f9, #ffffff);
  color: #333;
  width: 100%;
}

.bio-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-direction: row;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.bio-image img {
  width: 100%;
  max-width: 320px;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.bio-content {
  flex: 1 1 300px;
  min-width: 0;
  max-width: 700px;
  padding: 1rem;
  text-align: left;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.bio-content h1 {
  font-size: 2rem;
  color: #7c0d95;
  margin-bottom: 1rem;
  word-break: break-word;
  line-height: 1.3;
  text-align: inherit;}
.bio-content p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  color: #444;
}

/* ========= MOBILE FIX ========= */
@media screen and (max-width: 768px) {
  .bio-container {
    flex-direction: column;
    text-align: center;
    padding: 0;
  }

  .bio-content {
    text-align: center;
    padding: 0 1rem;
    max-width: 100%;
  }

  .bio-content h1 {
    font-size: 1.6rem;
     padding: 0 1rem;
  }

  .bio-content p {
    font-size: 0.95rem;
  }

  .bio-image img {
    max-width: 90vw;
  }
}



/* ==========  END SPIRITUAL FATHER BIO SECTION ========== */

/* Main container */
.main_of_Men_G {
    max-width: 1200px; /* Limit the width for better layout */
    margin: auto; /* Center the content */
    padding: 20px; /* Add some padding */
}

/* Header */
.MainHeading {
    text-align: center; /* Center the main heading */
    font-size: 2.5em; /* Larger font size */
    margin-bottom: 20px; /* Space below heading */
    color: #2c3e50; /* Dark blue color */
}

/* Image Styles */
.img_main {
    text-align: center; /* Center the banner image */
    margin-bottom: 30px; /* Space below the image */
}

.img_main img {
    max-width: 100%; /* Responsive image */
    height: auto; /* Maintain aspect ratio */
    border-radius: 10px; /* Add rounded corners */
}

/* About Section */
.about_menG {
    display: flex; /* Flexbox for layout */
    margin-bottom: 40px; /* Space below section */
    align-items: center; /* Align items vertically */
}

.about_menG img {
    flex: 1; /* Image takes one part of the flex container */
    border-radius: 10px; /* Rounded corners */
    margin-right: 20px; /* Space between image and text */
    max-width: 400px; /* Limit the image width */
}

.text_menG {
    flex: 2; /* Text takes two parts of the flex container */
}

.text_menG h2 {
    font-size: 2em; /* Font size for subheading */
    margin-bottom: 10px; /* Space below heading */
    color: #2980b9; /* Lighter blue color */
}

.text_menG h4 {
    font-size: 1.5em; /* Smaller font for the message */
    margin-bottom: 15px; /* Space below */
}

.text_menG p {
    margin-bottom: 15px; /* Space below paragraphs */
}

blockquote {
    font-style: italic; /* Italics for blockquote */
    margin: 15px 0; /* Space around blockquote */
    padding: 10px; /* Padding inside blockquote */
    background: #e9ecef; /* Light background */
    border-left: 5px solid #2980b9; /* Left border for emphasis */
}

/* Archive Section */
.Previous_Men_Gs {
    margin-bottom: 40px; /* Space below section */
}

.men_G_Season_title {
    font-size: 1.5em; /* Slightly smaller font size */
    margin: 10px 0; /* Space above and below titles */
    color: #2c3e50; /* Dark blue color */
}

/* New Container for the Archive Items */
.archive_container {
    display: flex; /* Flexbox for layout */
    flex-wrap: wrap; /* Allow items to wrap to the next line */
    justify-content: space-between; /* Space items evenly */
    margin: 0 -10px; /* Negative margin to compensate for item margins */
}

.archive_item {
    flex: 1 1 calc(30% - 20px); /* Each item takes about 30% width, adjust as needed */
    margin: 10px; /* Space around each item */
    background: #ffffff; /* White background for each item */
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    overflow: hidden; /* Ensure no overflow */
}

.archive_item iframe {
    width: 100%; /* Full width for the video */
    height: 200px; /* Set a standard height */
    border: none; /* Remove default border */
}


/* Gallery Section */
.MenG_gallery {
    margin-bottom: 40px; /* Space below section */
}

.MenG_gallery h2 {
    font-size: 2em; /* Font size for gallery heading */
    text-align: center; /* Center the heading */
    margin-bottom: 20px; /* Space below */
}

.gallery_images {
    display: grid; /* Use grid for gallery layout */
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* Responsive columns */
    gap: 10px; /* Space between images */
}

.gallery_images img {
    width: 100%; /* Full width for images */
    border-radius: 8px; /* Rounded corners for images */
    transition: transform 0.3s; /* Animation for hover effect */
    cursor: pointer; /* Pointer on hover */
}

.gallery_images img:hover {
    transform: scale(1.05); /* Scale effect on hover */
}

/*-----------------------FOOTER INFORMATION-------------------------------------------------------------------------------- */
.footer-enhanced {
  background: #1a1a1a;
  color: #f5f5f5;
  padding: 40px 20px 20px;
  text-align: center;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  max-width: 1200px;
  margin: auto;
  gap: 30px;
}

.footer-contact,
.footer-socials {
  flex: 1 1 300px;
}

.footer-contact h3,
.footer-socials h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: #d6bd98;
}

.footer-contact p {
  font-size: 1rem;
  line-height: 1.6;
}

.footer-contact a {
  color: #f5f5f5;
  text-decoration: none;
}

.social-icons {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 0;
  margin-top: 10px;
}

.social-icons li a {
  color: #f5f5f5;
  font-size: 1.3rem;
  transition: transform 0.3s, color 0.3s;
}

.social-icons li a:hover {
  color: #d6bd98;
  transform: scale(1.2);
}

.footer-bottom {
  margin-top: 30px;
  font-size: 0.9rem;
  color: #aaa;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
  }

  .footer-contact,
  .footer-socials {
    text-align: center;
  }
}




/* Responsive Styles */
@media (max-width: 768px) {
    .annual-calendar div {
        flex: 1 1 calc(50% - 1rem);
    }

    .annual-calendar img {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .annual-calendar div {
        flex: 1 1 100%;
    }

    .annual-calendar img {
        height: 120px;
    }

    .annual-calendar h3 {
        font-size: 1.5rem;
    }
}


/* ===== MOBILE FIXES AND POLISH ===== */

/* Prevent horizontal scroll */
html, body {
    overflow-x: hidden;
}

/* Fix hero heading cut-off */
.hero-container h1 {
    font-size: 2rem;
    white-space: normal;
    word-wrap: break-word;
}

.hero-container {
    width: 100%;
    max-width: 100%;
    padding: 1.5rem;
    box-sizing: border-box;
}

.give-section {
  padding: 60px 20px;
   background: linear-gradient(to right, #2c3e50, #d6bd98);

  text-align: center;
}
.give-logo {
  height: 40px;
  width: auto;
  vertical-align: middle;
  margin-right: 8px;
}


.give-section h2 {
  font-size: 2.5rem;
  color: whitesmoke;
  margin-bottom: 20px;
}

.give-intro {
  font-size: 1.2rem;
  margin-bottom: 40px;
  color: white;
}

.giving-box {
  max-width: 500px;
  margin: 20px auto;
  padding: 25px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
  text-align: left;
}

.giving-box h3 {
  color: #677D6A;
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.giving-box p {
  font-size: 1.05rem;
  margin: 5px 0;
  color: #333;
}

.give-note {
  font-size: 1rem;
  margin-top: 40px;
  color: #666;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
  .give-section h2 {
    font-size: 2rem;
  }

  .giving-box {
    padding: 20px;
  }

  .give-intro,
  .give-note {
    font-size: 1rem;
    padding: 0 10px;
  }
}

/* ===== UPPER ROOM SUMMIT FLYER ===== */
.summit-flyer {
  padding: 40px 20px;
  text-align: center;
  background: #f5f5f5;
}

.summit-flyer img {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ===== UPPER ROOM SUMMIT CONTENT ===== */
.summit-prospectus {
  padding: 60px 20px;
  background: linear-gradient(to right, #fdfdfd, #f7f2ec);
  color: #222;
}

.summit-container {
  max-width: 1000px;
  margin: auto;
  background: #ffffff;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
  font-size: 1.1rem;
  line-height: 1.7;
}

.summit-container h2 {
  text-align: center;
  font-size: 2.2rem;
  color: #004d7a;
  margin-bottom: 20px;
}

.summit-container h3 {
  font-size: 1.5rem;
  color: #555;
  margin-top: 30px;
}

.summit-container .summit-theme {
  font-style: italic;
  margin-bottom: 20px;
  font-size: 1.2rem;
  color: #333;
}

.summit-container ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-top: 10px;
}

.summit-container ul li {
  margin-bottom: 10px;
}

@media screen and (max-width: 768px) {
  .summit-container {
    padding: 20px;
    font-size: 1rem;
  }

  .summit-container h2 {
    font-size: 1.6rem;
  }

  .summit-flyer {
    padding: 20px 10px;
  }
}




