/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #7A0000;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    transition: top 0.3s ease-in-out;
    z-index: 900;
    box-sizing: border-box;
    margin-bottom: 80px;
}

/* Update the container to handle absolute positioning inside it */
.navbar-form {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #7A0000;
    color: #fff;
    display: flex;
    justify-content: center; /* Keeps the Logo in the middle */
    align-items: center;
    padding: 1rem 2rem;
    transition: top 0.3s ease-in-out;
    z-index: 1500;
    box-sizing: border-box;
    margin-bottom: 80px;
}

/* New style for the Back Button */
.back-btn {
    position: absolute;       /* Takes it out of the flex flow */
    left: 2rem;               /* Aligns it to the left (matches navbar padding) */
    top: 50%;                 /* Centers it vertically */
    transform: translateY(-50%); /* Perfect vertical centering */
    color: #fff;              /* Sets the icon color to White */
    display: flex;            /* Ensures the SVG aligns correctly */
    align-items: center;
    transition: color 0.3s ease;
}

.back-btn:hover {
    color: #ccc; /* Optional: Light gray on hover */
}

/* Ensure the SVG inherits the white color */
.back-btn svg {
    stroke: currentColor;
}

/* Mobile Responsiveness */
@media (max-width: 850px) {
    .back-btn {
        left: 1rem; /* Adjust spacing for smaller screens */
    }
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 50px; /* adjust as needed */
  margin-right: 10px;
}

.logo-text {
  display: flex;
  flex-direction: column;
    align-items: center; /* Center the text block */
  line-height: 1.2;
}

.parish-name {
  font-weight: bold;
  font-size: 12px;
  color: white; /* or your header color */
}

.logo-divider {
  width: 100%;
  border: none;
  border-top: 1px solid white;
  margin: 4px 0;
}

.parish-location {
  font-size: 10px;
  color: #ddd; /* lighter tone */
}

.menu-toggle {
    font-size: 1.5em;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
    display: none;
    margin-left: auto; /* Push menu toggle to the right */
}

nav {
    flex: 1;
    display: flex;
    justify-content: flex-end; /* Centering nav links */
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li {
    text-align: center;
    font-size: 12px
}

nav ul li a {
    position: relative;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: #fff;
    transition: all 0.3s ease;
}


nav ul li a:hover::after {
    width: 100%;
    left: 0;
    transform: translateX(0);
}

nav ul li a.active::after {
    width: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.divider {
  margin-top: 100px;
}

@media (max-width: 850px) {

  .parish-name,
.logo-divider,
.parish-location {
}

    
.divider {
  margin-top: 12px;
}

.menu-toggle {
display: block;
position: relative; /* Ensures it stays above */

}

.navbar {
  z-index: 2;
}

nav {
justify-content: flex-start;

}

nav ul {
position: absolute;
margin-top: 12px;
top: 85%;
left: 50%;
transform: translateX(-50%);
width: 100%;
background: #5f0000;
flex-direction: column;
display: flex;
opacity: 0;
visibility: hidden;
transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
align-items: center;
justify-content: center;
padding: 15px 0;

}

nav ul li {
width: 100%;
text-align: center;
padding: 12px 0;
}

nav ul.show {
opacity: 1;
visibility: visible;
}

nav ul.show li {
opacity: 1;
transform: translateY(0);
background-color: #5f0000;
}

nav ul.show li:nth-child(1) {
transition-delay: 0.2s;
}
nav ul.show li:nth-child(2) {
transition-delay: 0.3s;
}
nav ul.show li:nth-child(3) {
transition-delay: 0.4s;
}
nav ul.show li:nth-child(4) {
transition-delay: 0.5s;
}
nav ul.show li:nth-child(5) {
transition-delay: 0.6s;
}

nav ul.show li:nth-child(6) {
transition-delay: 0.8s;
}

@media (max-width: 768px) {

body {
padding-top: 70px; /* Adjust based on navbar height */

}
}
}