/*HomePage: Hero Section*/

.background_img {
  position: fixed;
  z-index: -1;
  opacity: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}  

.home {
  padding: auto;
  background: var(--background);
}
.inner-section {
  background: var(--background);
  padding: 50px 20px;
  padding-bottom: 100px;
  margin: 0px auto;
  max-width: 1200px;
  border-bottom: 2px solid rgba(0, 0, 0, 0.12);
/*
  border-left: 5px solid rgba(0,0,0,0.12);
  border-right: 5px solid rgba(0,0,0,0.12);
*/
}

#hero .inner-section,
#hero-cta .inner-section {
  background: none;
  padding-top: 25vh;
  padding-bottom: 0px;
  border: 0px;
}

#hero,
#hero-cta {
  position: relative;
  inset: 0;
  background: rgba(0,0,0,0.45);
  pointer-events: none;
  z-index: 1;
}

#hero .content,
#hero-cta .content {
  position: relative;
  max-width: 650px;
  z-index: 2;
  color: #ffff;
  padding-bottom: 10px;
}

#hero .content h1,
#hero-cta .content h1 {
  font-size: clamp(35px, 4vw, 58px);
  margin: 0 0 12px;
}

#hero .content p,
#hero-cta .content p {
  font-size: 18px;
  margin: 0 0 18px;
  opacity: 0.95;
}

/*HomePage Service Section*/
#home_page .header {
  max-width: 800px;
  background: var(--background);  
  padding: 10px;      
  margin-top: 10px; 
  margin-bottom: 10px;
  border-radius: 14px;
  margin: auto;
  margin-bottom: 10px;
  text-align: center;
}
#home_page .header h2 {    
  font-size: 3.5vh;
  font-family: var(--font-heading);
  margin: 12px 0px;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--highlight);
  display:  inline-block;
}
#home_page .header p {    
  text-align: left;
}

/*
.home_page_header{
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}
  */

/* Slideshow container - fixed size prevents layout jump when switching slides */
.slideshow-container {
  max-width: 820px;
  position: relative;
  margin: auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--background);
}

.mySlides {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.mySlides img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}

.text {
  color: #f2f2f2;
  font-size: 15px;
  padding: 8px 12px;
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
}

.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

.dot {
  cursor: pointer;
  height: 12px;
  width: 12px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
  padding: 14px;
  box-sizing: content-box;
  background-clip: content-box;
}

.active, .dot:hover {
  background-color: #717171;
}

.fade {
  animation-name: fade;
  animation-duration: 3s;
}

@keyframes fade {
  from {opacity: .8}
  to {opacity: 1}
}

/*HomePage Gallery Section*/
#home_page #gallery #cards{
  max-width: 820px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 0px auto;
}

#home_page #gallery .header{
  margin-bottom: 20px; 
}

#home_page #gallery .card{
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: var(--navHiLi);
  background: var(--highlight);
}

#home_page #gallery .card:hover{
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(0,0,0,0.18);
  background: var(--navHiLi);
  color: var(--background);

}

#home_page #gallery .card:hover img{
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(0,0,0,0.18);
  background: var(--sec-highlight);
}

#home_page #gallery .card img{
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

#home_page #gallery .card h3{
  margin: 12px 14px 6px;
  font-size: 17px;
}

#home_page #gallery .card p{
  margin: 0 14px 14px;
  font-size: 14px;
  opacity: 0.7;
}

.btn-home-div {
  text-align: center;
  margin-top: 40px;
}
.btn-home {
  background-color: var(--highlight);
  padding: 10px 50px;
  font-size: 25px;
  font-family: var(--font-heading);
}
.btn-home:hover {
  background-color: var(--navHiLi);
  color: var(--background);
  padding: 10px 50px;
}

@media (max-width: 900px){
  #home_page #gallery #cards{
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px){
  #home_page #gallery #cards{
    grid-template-columns: 1fr;
  }
  .btn-home {
    font-size: 20px;
  }


}
