* {

    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

body {
    background-color: #FAF9F6;
  color: #222222;
  font-family: 'Noto Sans', sans-serif;
  overflow-x: hidden;
  }

  /* navbar start */
.navbar-toggler{
    border-color: black;
  }

nav{
    background-color: #7ea815;
    color: #fff;
    }

.navbar-nav .nav-link {
      margin: 0 10px;
      transition: color 0.3s ease;
      color: #fff;
      text-decoration: none;
      font-weight: bold;
      background: none;
      border: none;
      cursor: pointer;
      font-size: 1rem;

    }
        
    .navbar-nav .nav-link:hover {
      text-decoration: underline;
      color: black;
    }

  /* navbar end  */
/* headings style  */

.section-1 h2{
  font-weight: 900;
  text-align: center;
  color: #4B2E1B;
}
.container1 h2{
  color: #4B2E1B;
  text-align: center;
  font-weight: 900;
  text-transform:capitalize;
}

#googlemap h2{
  text-align: center;
  color: #4B2E1B;
  font-weight: 900;

}
.section-2 h2{
  text-align: center;
  font-weight:900 ;
  padding-top: 30px;
  color: #4B2E1B;
}
#about h2{
  text-align: center;
  font-weight:900 ;
  color: #4B2E1B;
}

#timing h2{
  text-align: center;
  font-weight:900 ;
  color: #4B2E1B;

}

#contact-persons h2{
  font-weight: 900;
  font-size: 30px;
  color: #4B2E1B;
  margin-bottom: 10px;
} 

/* hedaings style  */
    header {
      background-color:#fff;
      color:#9F2021;
      padding-left: 10px;
      padding-right: 10px;
      padding-top: 1.5rem;
      padding-bottom: 1.5rem;
      text-align: center;
     
    
    }

    header h5{
      font-size: 25px;
      font-display:initial;
      color: #4B2E1B;
    }
/* Hero Section */
.hero {
  height: 100vh;
  background: linear-gradient(rgba(1, 1, 1, 0.1),  #FAF9F6),
  url(images/home.avif)    no-repeat center center/cover;
  background-size: cover;

  background-position: center;
  overflow: hidden;
  position: relative;
  margin-top:0px;
  
}

.hero-text h5 {
  font-size: clamp(20px, 4vw, 32px);
  line-height: 1.5;
  color: #4B2E1B;
}

.hero-text h6 {
  font-size: clamp(14px, 2vw, 20px);
  color: #4B2E1B;
}
/* hero section end */
/* home page end  */
  .section-1 .sec1start{
    font-weight: 500;
    color: black;
    font-size: 20px;
    margin-top: 10px;
    text-align: left;
    text-indent: 5%;
  }

  .section-1 .point-1{
    text-align: center;
    background-color:#7ea815;
    padding-top: 10px;
   margin-bottom: 20px;
   font-size: 18px;
   font-weight: 500;
   color: #fff;

  }
  .section-1 .point-2{
    text-align: justify;
    font-size: 18px;

  }
  .section-1 .point-3{
    text-align: justify;
    color: #a02020;
    font-weight: 500;
    font-size: 18px;
  }
  /* home page end */
  /* about start */
  .about li{
    line-height:40px;
    text-align: justify;
  }
  #about .point-1{
    padding: 15px;

  }
  /* kalvetu start */
  .inscriptone {
    line-height:40px;
    text-align: justify;
  }
  .inscripttwo {
    line-height:40px;
    text-align: justify;

  }
  .inscriptthree {
    line-height:40px;
    text-align: justify;

  }
  /* kalvettu end */


.section-2 p{
  line-height:40px;
  text-align: justify;

}

  
  .login-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    z-index: 9999;
  }
  
  .login-box {
    background: white;
    padding: 30px;
    border-radius: 10px;
    width: 300px;
    text-align: center;
  }
  
  .login-box input {
    width: 90%;
    padding: 8px;
    margin: 10px 0;
  }
  
  .login-box button {
    margin: 5px;
    padding: 8px 15px;
    cursor: pointer;
  }
  
  .close-btn {
    background-color: red;
    color: white;
    border: none;
  }

/* end */

/* ===== GALLERY START ===== */
#galleryh h1,
#galleryh h2 {
  color: #4B2E1B;
  text-align: center;
  font-weight: 900;
  padding-top: 30px;
  text-transform: capitalize;
}

/* Common grid layout for both static and dynamic images */
.gallery, 
#renovatingWork #dynamicGallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  padding: 2rem;
}

/* Image wrapper */
.image {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.image:hover {
  transform: scale(1.02);
}

.image img {
  width: 100%;
  height: 50vh;
  object-fit: cover;
  display: block;
}

#renovationWork #dynamicGallery{
  width: 100%;
  height: 50vh;
  object-fit: cover;
  display: block;
}
/* Title + Description for dynamic images */
.image-text {
  padding: 0.75rem 1rem;
  text-align: center;
}

.image-title {
  font-size: 1rem;
  font-weight: 600;
  color: #4B2E1B;
  margin-bottom: 6px;
}

.image-description {
  font-size: 0.875rem;
  color: #666;
}

/* Responsive image height and grid columns */
@media screen and (max-width: 810px) {
  .gallery,
  #renovatingWork #dynamicGallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (max-width: 500px) {
  .gallery,
  #renovatingWork #dynamicGallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .image img {
    height: 40vh;
  }
}

@media screen and (max-width: 400px) {
  .gallery,
  #renovatingWork #dynamicGallery {
    grid-template-columns: 1fr;
  }

  .image img {
    height: 35vh;
  }
}
/* ===== GALLERY END ===== */



  


  @media (max-width: 768px) {
    .hero {
      height: 40vh;
      font-size: 1rem;
    }
    nav {
      flex-wrap: wrap;
    }
  }


/* footer start  */
  footer {
    background-color:#4B2E1B;
    color: #fff;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
  }
  #contactpersons p{
    font-weight: 400;
  }
  
/* footer end  */

/* Style the scroll button */
#scrollTopBtn {
  position: fixed;
  bottom: 50px;
  right: 50px;
  z-index: 99;
  font-size: 18px;
  border: none;
  outline: none;
  background-color: #333;
  color: white;   
  cursor: pointer;
  padding: 10px 15px;
  border-radius: 50%;
  display: none; /* Hidden by default */
  transition: opacity 0.3s ease;
}

#scrollTopBtn:hover {
  background-color: #555;
}
/*  */
