body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
    margin: 0;
    padding: 0;
}


html {
    scroll-behavior: smooth;
}

/* 
header {
    background: linear-gradient(135deg, #009688, #0077b6); /* Darker green-blue gradient /
    color: #ffffff; /* White text color /
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Optional: Adds a subtle shadow /
    font-family: 'Poppins', sans-serif; /* Modern font /
}

header h1 {
    margin: 0;
    font-size: 2em;
    font-weight: 600; /* Semi-bold for emphasis /
    letter-spacing: 1px; /* Adds a bit of spacing between letters /
} */


/* Top Section */
.top {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: flex-end; /* Push content to the right */
  padding-right: 20px; /* Adds some spacing from the edge */
 background-color: whitesmoke;

}

/* Logo Styling */
.top img {
  width: 60px; /* Ensures correct width */
  height: 60px; /* Ensures correct height */
  object-fit: contain; /* Keeps image proportions */
  background: transparent;
}


/* Header Styling */
header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px;
  background: linear-gradient(135deg, #009688, #0077b6); /* Darker green-blue gradient */
  color: #ffffff;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px); /* Frosted glass effect */
  position: relative;
}

/* H1 Styling - Modern & Eccentric */
header h1 {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: linear-gradient(90deg, #ffffff, #c0c0c0); /* Metallic Text Effect */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 2px 2px 10px rgba(255, 255, 255, 0.1);
  margin-bottom: 10px;
}





/* Back Button - Minimalist & Modern */
.back-button {
  position: fixed;
  top: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(50, 50, 50, 0.8); /* Subtle dark background */
  color: #e0e0e0; /* Soft gray text */
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  border: 1px solid rgba(200, 200, 200, 0.3); /* Soft border */
  border-radius: 25px;
  backdrop-filter: blur(5px); /* Frosted glass effect */
  transition: all 0.3s ease-in-out;
  z-index: 1000;
}

/* Hover Effect */
.back-button:hover {
  background: rgba(80, 80, 80, 0.9); /* Slightly darker */
  color: #fff;
  transform: translateY(-2px);
}

/* Icon Styling */
.back-button i {
  font-size: 18px;
}

/* Responsive Design */
@media (max-width: 600px) {
  .back-button {
    top: 10px;
    left: 10px;
    padding: 8px 14px;
    font-size: 14px;
  }

  .back-button i {
    font-size: 14px;
  }
}










/* #searchBar {
    width: 90%;
    max-width: 500px;
    padding: 10px;
    margin-top: 10px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.9); /* Slightly transparent white background /
    color: #333; /* Dark text color for better readability /
    font-family: 'Poppins', sans-serif; /* Consistent font for the search bar /
} */



/* Search Bar Styling */
#searchBar {
  width: 80%;
  max-width: 400px;
  padding: 12px 15px;
  font-size: 16px;
  border: none;
  border-radius: 25px;
  outline: none;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  transition: 0.3s;
  text-align: center;
}

#searchBar::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* Search Bar Focus Effect */
#searchBar:focus {
  background: rgba(255, 255, 255, 0.2);
  /* box-shadow: 0 0 10px rgba(255, 255, 255, 0.3); */
}

/* Responsive Design */
@media (max-width: 600px) {
  header h1 {
    font-size: 1.5rem; /* Smaller font on mobile */
    letter-spacing: 1px;
  }

  #searchBar {
    width: 90%;
    padding: 10px;
    font-size: 14px;
  }
}



/* Layout */
.container {
    display: flex;
    gap: 20px;
    padding: 20px;
}

.regions-container {
    flex: 1;
    min-width: 300px;
    max-height: 80vh;
    overflow-y: auto; 
}



.map-container {
    flex: 2;
    height: 500px;
}

#map {
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

/* Regions */
.region {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    
}

/* Region Headers */
.region h2 {
    background-color: #006060; /* Dark teal for region headers */
    color: white;
    padding: 15px;
    margin: 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2em;
    font-weight: 600; /* Semi-bold for emphasis */
    border-radius: 5px 5px 0 0; /* Rounded corners at the top */
    transition: background-color 0.3s; /* Smooth hover effect */
}

.region h2:hover {
    background-color: #004d4d; /* Slightly darker teal on hover */
}

/* Ecclesias List */
.ecclesias {
    padding: 0 15px;
    max-height: 0;
    overflow:auto;
    transition: max-height 0.5s ease-out;
    background-color: #f0f0f0; /* Light gray background for ecclesias */
    border-radius: 0 0 5px 5px; /* Rounded corners at the bottom */
}

.ecclesias p {
    background-color: #e0e0e0; /* Light gray for ecclesia items */
    padding: 10px;
    border-radius: 5px;
    margin: 5px 0;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s;
    color: #333; /* Dark text color for readability */
}

.ecclesias p:hover {
    background-color: #d0d0d0; /* Slightly darker gray on hover */
}

/* Active Region */
.region.active .ecclesias {
    max-height: 500px;
    padding: 15px;
}




/* Popup Overlay */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.popup-overlay.active {
    display: flex;
}

/* Popup Card */
.popup-card {
    background: white;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.popup-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.popup-content {
    padding: 20px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 15px; /* Adds space between elements */
}

.popup-contacts h3 {
    margin: 0 0 10px;
    font-size: 1.5em;
}

.popup-contacts h4 {
    margin: 10px 0 5px;
    font-size: 1.2em;
    color: #333;
}

.popup-contacts p {
    margin: 0;
    font-size: 1em;
    color: #555;
}

.visit-location-button {
    background: #3f51b5;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    align-self: flex-end; /* Aligns the button to the right */
    margin-top: 10px; /* Adds space above the button */
}

.visit-location-button:hover {
    background: #303f9f;
}

.close-popup-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    color: #333;
}

.close-popup-button:hover {
    color: #000;
}

/* Hide popup on desktop screens */
@media (min-width: 769px) {
    .popup-overlay {
        display: none !important;
    }
}






/* scroll-upbuttom */



#scrollToTopBtn {
    display: none; /* Hidden by default */
    position: fixed; /* Fixed/sticky position */
    bottom: 20px; /* Place the button at the bottom */
    right: 20px; /* Place the button at the right */
    z-index: 99; /* Make sure it's on top of other elements */
    border: none; /* Remove borders */
    outline: none; /* Remove outline */
    background-color: #007bff; /* Background color */
    color: white; /* Text color */
    cursor: pointer; /* Add a mouse pointer on hover */
    padding: 15px; /* Padding */
    border-radius: 50%; /* Rounded corners */
    font-size: 18px; /* Increase font size */
    transition: opacity 0.3s, visibility 0.3s; /* Smooth transitions */
  }
  
  #scrollToTopBtn:hover {
    background-color: #0056b3; /* Darker background on hover */
  }
  
  
  /* scroll-top-button ends here */
  
  






/* Footer */
.footer {
    padding: 50px 18%; 
    /* padding-bottom: 60px; */
    /* width: 100%; */
    
    text-align: center;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #d3d3d3;
    display: flex;
    flex-wrap: wrap; /* Allow wrapping for responsiveness */
    gap: 15px; /* Add spacing between items */
    justify-content: center; /* Center content on smaller screens */
    position: relative; /* Needed for spiral positioning */
    overflow: hidden; /* Prevents overflow issues */
  }
  
  
  
  
  
  
  .footer p{
    color: #e3e3e3;
  }
  
  .footer div {
    text-align: center;
    flex: 1 1 300px; /* Ensure each section adjusts responsively */
  }
  
  .col-2 {
    flex-grow: 2; /* Allow the second column to grow more */
  }
  
  .footer div h3 {
    font-weight: 300;
    margin-bottom: 20px;
    letter-spacing: 1px;
  }
  
  /* Form input styling */
  form input {
    width: 100%; /* Full width within the container */
    max-width: 350px; /* Set a maximum width */
    height: 45px;
    border-radius: 4px;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 40px;
    outline: none;
    border: none;
  }
  
  form button {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    border-radius: 30px;
    padding: 8px 25px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease; /* Smooth hover effect */
  }
  
  form button:hover {
    background-color: #0f172a;
    color: cyan;
  }
  
   /* Style for invalid input */
   input:invalid {
    border: 2px solid #ff0000; /* Red border for invalid input */
  }
  
  /* Style for valid input */
  input:valid {
    border: 2px solid #00ff00; /* Green border for valid input */
  }
  
  /* Optional: Add a custom error message */
  input:invalid + .error-message {
    display: block;
    color: #ff0000;
    font-size: 0.875em;
    margin-top: 5px;
  }
  
  .error-message {
    display: none; /* Hide error message by default */
  }
  
  
  
  
  
  /* Social icons */
  .social-icons {
    margin-top: 20px;
  }
  
  
  /* links social */
  
  a{
    
    background-color: transparent;
    text-decoration: none;
  }
  /* 
  a:hover {
    color: red;
    background-color: transparent;
    text-decoration: underline;
  } */
  
  
  a:visited {
    color: #efefef;
    background-color: transparent;
    text-decoration: none;
  }
  
  a:active {
    color: orangered;
    background-color: transparent;
    text-decoration: none;
  }
  
  
  .social-icons i {
    font-size: 22px;
    margin: 10px;
    cursor: pointer;
    transition: color 0.3s ease; /* Smooth hover effect */
  }
  
  .social-icons i:hover {
    color: #007bff; /* Change color on hover */
  }
  
  /* Responsive Styles */
  @media (max-width: 768px) {
    .footer {
        
      flex-direction: column; /* Stack items vertically */
      align-items: center; /* Center-align items */
      padding: 50px 5%; /* Reduce padding on smaller screens */
    }
  
    .footer div {
      flex: 1 1 auto; /* Let sections adjust naturally */
      margin-bottom: 30px; /* Add spacing between sections */
    }
  
    form input {
      max-width: 90%; /* Reduce input width on smaller screens */
    }
  }
  
  @media (max-width: 480px) {
    form button {
      padding: 8px 20px; /* Reduce button padding */
      font-size: 14px; /* Slightly smaller font size */
    }
  
    .social-icons i {
      font-size: 18px; /* Reduce icon size */
    }
  }
  
    
    /* Responsive layout - when the screen is less than 700px wide, make the two columns stack on top of each other instead of next to each other */
    @media screen and (max-width: 700px) {
      .row, .navbar {   
        flex-direction: column;
      }
      body {
        font-size: 14px; /* Adjusts the text size for better readability */
      }
    
      .navbar a {
        font-size: 16px; /* Adjust navbar text size */
        padding: 12px 16px; /* Adjust navbar padding */
      }
    }
  
  
  /* Footer horizontal line - Inside footer */
  .footer-line {
    width: 100%;
    border: 0;
    height: 1px;
    background-color: #d3d3d3;
    margin: 10px 0; /* Space between footer content & copyright */
    
  }
  
  /* Copyright Section inside Footer */
  /* Copyright Section */
  .footer-bottom {
    text-align: center;
    font-size: 12px; /* Slightly smaller font */
    color: #999;
    padding: 10px 0; /* Less padding */
    margin-bottom: -5%;
  }
  
  .footer-bottom p{
    color: #999;
  }
  
  /* Spiral Effect Positioned Above Copyright */
  .footer::after {
    content: "";
    position: absolute;
    bottom: 40px; /* Adjusted for reduced height */
    right: 10px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(26, 188, 156, 0.4) 10%, transparent 50%);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(26, 188, 156, 0.6);
    animation: spin 10s linear infinite;
    opacity: 0.7;
  }
  
  /* Additional Spiral Layer */
  .footer::before {
    content: "";
    position: absolute;
    bottom: 10px;
    right: 50px;
    width: 70px;
    height: 70px;
    background: radial-gradient(circle, rgba(26, 188, 156, 0.3) 10%, transparent 50%);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(26, 188, 156, 0.5);
    animation: spin 8s linear infinite reverse;
    opacity: 0.6;
  }
  
  /* Spiral Animation */
  @keyframes spin {
    from {
      transform: rotate(0deg);
    }
    to {
      transform: rotate(360deg);
    }
  }
  
  /* Responsive Fix for Small Screens */
  @media (max-width: 768px) {
  
    .footer {
      padding: 30px 5%;
    }
  
    .footer::after{
      width: 80px;
      height: 80px;
      bottom: 140px;
      right: -20px;
    }
  
  
  
    .footer::before {
      width: 80px;
      height: 80px;
      bottom: 180px;
      right: -40px;
    }
  }
  
  


