body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #f7f7f7;
  padding-top: 80px; /* Add padding to avoid content overlapping the fixed header */
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;

}

/* Header Styles */
.navbar {
  background-color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 0;
  position: fixed; /* Fix the header at the top */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000; /* Ensure the header is on top of all content */
}

/* Logo (Mobile View - Align Left) */
.logo {
  margin: 0;
  position: relative; /* Remove absolute positioning */
  left: 0; /* Align logo to the left */
  top: 0; /* Align to top */
  
}

.logo img {
  height: 70px; /* Larger logo for visibility */
  display: block;
}

/* Menu Button Styles (Positioned Top Right in Mobile View) */
.menu-button {
  background: none;
  border: none;
  cursor: pointer;
  display: block; /* Visible on mobile */
  position: absolute; /* Position the menu button absolute */
  top: 16px; /* Align to the top */
  right: 16px; /* Align to the right */
}

.menu-button svg {
  height: 24px;
  width: 24px;
}

/* Navigation Menu */
.nav-menu {
  display: none; /* Hidden by default for mobile */
  flex-direction: column;
  padding: 16px 0;
  background-color: white;
  border-top: 1px solid #ddd;
}

.nav-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  margin: 8px 0;
}
.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    padding: 8px 16px;
    position: relative;
}

/* Underline Effect for Active Link */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: #8b0008; /* Red underline color */
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Active Link Underline */
.nav-link.active::after {
    width: 100%;
}

/* Active Link Underline and Enlarged Font */
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    font-size: 1.3rem;  /* Increase font size for active link */
}


.nav-menu a {
  text-decoration: none;
  color: #333;
  padding: 8px 16px;
  display: block;
  border-radius: 4px;
  position: relative;
}

.nav-menu a:hover {
  background-color: white;;
  text-decoration: none;
  color: #8b0008;
}

.nav-menu a:hover::after {
  content: ''; /* Pseudo-element for the underline */
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px; /* Thickness of the underline */
  background-color: #8b0008; /* Color of the underline */
}

/* Desktop Styles */
@media (min-width: 640px) {
  .navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .logo {
  position: absolute; /* Position it absolutely within the navbar */
  top: 16px; /* Adjust top padding to align the logo to the top */
  left: 16px; /* Align logo to the left edge */
  margin: 0;   
  margin-left: 40px; 
  }

  .logo img {
  height: 80px; /* Adjust logo size */
  display: block;
}


  .nav-menu {
    display: flex; /* Show menu items as a row */
    flex-direction: row;
    align-items: center;
    border-top: none;
    padding: 0;
    font-weight: bold;

  }

  .nav-menu ul {
    display: flex; /* Make the menu items row-wise */
    flex-direction: row;
    gap: 16px;

  }

  .nav-menu li {
    margin: 0;

  }

  .nav-menu a {
    margin-right: 16px;
    padding: 8px 16px;
    font-size: 18px;
  }
  .nav-menu a:hover {
  background-color: white; /* Change the background color to yellow on hover */
  color: #333; /* Retain the text color when hovered */
  text-decoration: none; /* Remove default underline */
}

.nav-menu a:hover::after {
  content: ''; /* Create a pseudo-element for the underline */
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px; /* Thickness of the underline */
  background-color: #8b0008; /* Color of the underline */

}

  .menu-button {
    display: none; /* Hide menu button on desktop */
  }
}



.about {
    max-width: 1300px;
    width: 100%;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    margin: auto;
    margin-top: 20px;
}

.row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

/* Image Section */
.aboutimage {
    flex: 1;
    display: flex;
    justify-content: center;
}

.aboutimage img {
    width: 100%;
    max-width: 450px;
    border-radius: 10px;
    max-height: 600px; /* Adjust this value as needed */
    object-fit: cover; /* Ensures the image maintains aspect ratio while fitting within the height */
}

/* Text Section */
.aboutpara {
    flex: 1.5;
    text-align: left;
    padding: 20px;
}

.title {
    font-size: 27px;
    color: #333;
    margin-bottom: 10px;
}

.aboutpara p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 10px;
}

.aboutpara ul {
    margin-left: 20px;
    padding-left: 10px;
}

.aboutpara ul li {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .row {
        flex-direction: column;
        text-align: center;
    }

    .aboutimage img {
        max-width: 100%;
    }

    .aboutpara {
        text-align: center;
    }
}

.dieties{
    padding: 30px;
}
.dieties h2{
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 35px;
}

.dieties-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns */
    gap: 20px;
    justify-items: center;
}

/* For 4th and 5th images to be centered */
.dieties-grid .deity:nth-child(-n+3) {
    margin-bottom: 0; /* Remove bottom margin between first 3 images */
}
.dieties-grid .deity:nth-child(4),
.dieties-grid .deity:nth-child(5) {
    grid-column: span 1; /* Each takes one column */
}

/* Deity Image */
.deity {
    background: #fff;
    padding: 8px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 100%;
    max-width: 350px;
    height: 430px;
}

.deity img {
    width: 100%;
    max-width: 330px;
    height: 350px;
    object-fit: cover;
    border-radius: 15px;
    padding: 10px;
}

/* Deity Title */
.deity h3 {
    font-size: 20px;
    color: #333;
    margin-top: 10px;
    padding: 10px;

}

/* Responsive Design */
@media (max-width: 768px) {
    .dieties-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for tablets */
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .dieties-grid {
        grid-template-columns: repeat(1, 1fr); /* 1 column for mobile */
        gap: 5px;
    }
}


.priestbg {
    background-color: #fafcfc;
    padding: 15px;
    margin-top: 5px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}
* {
  box-sizing: border-box; /* Include padding and borders in the element's total width and height */
}
.priest {
    text-align: center;
    padding: 10px;
}

.priest h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 20px;
}

.priest h3 {
    font-size: 22px;
    color: #555;
    margin-top: 10px;
}

.priestimg img {
    width: 100%;
    max-width: 250px;
    border-radius: 10px;
    margin-bottom: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .priestimg img {
        max-width: 200px; /* Adjust size for smaller screens */
    }

    .priest h2 {
        font-size: 24px;
    }

    .priest h3 {
        font-size: 20px;
    }
}

.social-follow-section {
  text-align: center;
  background-color: #fff;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.social-follow-section h3 {
    margin-top: 20px;
  font-size: 18px;
  margin-bottom: 15px;
  color: #333;

}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 35px;
}

.social-link {
  display: inline-block;
  text-decoration: none;
}

.social-icon {
  width: 40px;
  height: 40px;
  transition: transform 0.3s ease;
}

.social-icon:hover {
  transform: scale(1.1);
}

/* Footer */
.footer {
    background-color: #8b0008;
    color: white;
    text-align: center;
    padding: 1rem 0;
    bottom: 0;
    width: 100%;
}

.footer p {
    margin: 0;
}