@import url('https://fonts.googleapis.com/css2?family=Arvo&display=swap');
@import url(https://fonts.googleapis.com/css?family=Tiro+Devanagari+Hindi&display=swap);


/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Tiro Devanagari Hindi', sans-serif;
  background: #fcf8f2;
}

ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Navigation Styles */
.primary-navigation {
  position: fixed;
  top: 0;
  width: 100%;
  background: white;
  z-index: 999;
  transition: box-shadow 0.3s ease;
}

body.scrolled .primary-navigation {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.primary-navigation .nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #a3050b;
  padding: 10px;
  width: 100%;
}

.home-link {
  display: inline-block;
  padding: 0;
}

.home-link:hover {
  color: #3ca0e7;
}

.home-logo {
  height: 50px; /* Adjust as needed */
  width: auto;
}

.menu-icon {
  order: 2;
  display: none;
  font-size: 2rem;
  cursor: pointer;
  padding: 1rem;
}

.menu {
  order: 3;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 80px;
}

.menu li {
  position: relative;
  color: #FFD342;;
  padding: 0 30px;
  font-weight: 800; 
  /*border-left: 2px solid #3ca0e7;*/
}

.menu li:first-child {
  border-left: none;
}

.menu li a {
  text-decoration: none;
  color: #FFD342;
  font-size: 16px;
  font-weight: 800; 
}

.menu li a:hover,
.submenu-label:hover {
  color: white;
}

.menu li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #FFD342;
  padding: 12px 20px;
  border-radius: 20px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  width: 260px; /* Set to match or slightly exceed max expected content width */
  box-sizing: border-box;
  white-space: nowrap;
  
}

.menu li:hover > ul {
  display: block;
}

.menu li ul li {
  padding: 10px 15px;
}

.menu li ul li a {
  padding: 8px 30px 8px 12px; /* top, right, bottom, left */
  display: block;
  border-left: 2px solid transparent;
  transition: border-color 0.3s ease;
  color: #A3050B !important;
}

.menu li ul li a:hover {
  border-left-color: #3ca0e7;
  color: #A3050B !important; /* stay maroon on hover */
}

.menu li:last-child ul {
  right: 0;
  left: auto;
  width: 260px; /* match all others */
}

@media (min-width: 769px) {
  .primary-navigation .nav-container {
    padding-top: 0;
    padding-bottom: 0;
  }
    .home-link {
    margin-left: 140px;
  }
  
  .home-logo {
    height: 70px;
  }
  .menu li:last-child {
    margin-right: 80px; /* Adjust as needed */
  }
}


/* Mobile Styles */
@media (max-width: 768px) {
  .primary-navigation .nav-container {
    flex-direction: row;
    flex-wrap: wrap;
  }
  
  ul.menu {
  display: none;
  width: 100%;
  flex-direction: column;
  align-items: flex-start;
  background: #a3050b;
  border-radius: 0;
  margin: 0;
  padding: 15px 20px;
}

ul.menu li ul {
  width: 100%;
  position: static;
  box-shadow: none;
  background: #eee;
  padding: 0;
  display: none;
}
  .menu-icon {
    display: block;
    font-size: 28px;
    padding: 10px 20px;
    color: #FFD342;
  }

  .menu {
    display: none;
    background: #FFD342;
    flex-direction: column;
    width: 100%;
    /*background: #f9f9f9;*/
    border-radius: 20px;
    margin-top: 10px;
  }

  #menu-toggle:checked + .menu-icon + .menu {
    display: flex;
  }

  .menu li {
    width: 100%;
    padding: 15px 20px;
    border-left: none;
    
  }

  .menu li ul {
    position: static;
    display: none;
    background: #FFD342 !important;
    padding: 0;
    box-shadow: none;
    width: 100%;
    font-weight: 800; 
  }

  .submenu-label {
	color: #FFD342;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 800; 
  }

  .submenu-label::after {
    content: "▼";
    font-size: 12px;
    margin-left: auto;
  }

  .submenu-toggle:checked + .submenu-label::after {
    content: "▲";
  }

  .submenu-toggle:checked + .submenu-label + ul {
    display: block;
  }

  .menu li ul li {
    width: 100%;
    padding: 15px 20px;
    /*border-top: 1px solid #ccc;*/
  }

  .menu li:hover > ul {
    display: none; /* prevent hover behavior on touch devices */
  }
  
    .home-link {
    margin-left: 2rem; /* or use 10px, 8px, etc. */
  }
  
   .menu li ul li a {
    font-weight: 800; /* Slightly lighter submenu links */
  }
    .content {
    text-align: justify;
  }

  .content p {
    text-align: justify;
  }
}



/* Content Padding */
.content {
  background: #fcf8f2;
  padding: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 120px; /* enough space for fixed nav */
  padding-bottom: 80px;
}

@media (min-width: 769px) {
  .content {
	background: #fcf8f2;
    padding-top: 120px; /* more space for nav */
    padding-left: 4rem;
    padding-right: 4rem;
    padding-bottom: 100px;
    
    font-size: 1.4rem;         /* Adjust as needed */
	line-height: 1.7;         /* Improves readability */
    text-align: justify;
  }
}

.myGallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.myGallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  aspect-ratio: auto; /* Ensures no stretching */
  border-radius: 8px;
  cursor: pointer;
}


/* Lightbox */

.lightbox {
  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: 1000;
  flex-direction: column;
}

.lightbox-content {
  max-width: 90%;
  max-height: 80%;
  border: 4px solid white;
  border-radius: 10px;
}

.close,
.prev,
.next {
  position: absolute;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
}

.close {
  top: 30px;
  right: 40px;
}

.prev {
  top: 50%;
  left: 30px;
  transform: translateY(-50%);
}

.next {
  top: 50%;
  right: 30px;
  transform: translateY(-50%);
}

.lightbox-img {
  cursor: pointer;
}

.brochure {
    max-width: 45em;     /* keeps it from being too wide */
    margin: 2em auto;    /* center with spacing */
    text-align: center;
  }

  .brochure img {
    width: 100%;         /* responsive */
    height: auto;        /* keep aspect ratio */
    display: block;
    margin: 0 auto;
    border-radius: 10px; /* optional styling */
  }

