/*all pages */
.section-0 {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background: #fff;
    }
.section-1, .section-2, .section-3, .section-4, .section-5 {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    }
.h-sty {
    padding: 50px;
    color: #00BFFF;
    text-shadow: 0px 4px 4px rgba(0, 0, 0, 2.5);
    }
.h-sty-2 {
    color: #03339F;
    }
.h1-ch-co {
    color: #f5f5f5;

    text-shadow: 0px 4px 4px rgba(0, 0, 0, 2.5);
    }
.h4-fon-si {
    font-size: 28px;
    color: #ffffff;
    text-shadow: 0px 4px 4px rgba(0, 0, 0, 2.5);
    }
/*header navigaiton section*/
#header-bor-top-b-5 {
    position: sticky;
    top: 0;
    background: #f5f5f5;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    border-top: 10px solid #03339F;    
    min-height: 100px;
    height: auto;
    width: 100%;
}
/*footer*/
#footer {
    width: 100%;
}
/*header image section*/
#home-builder-banner-ch-bg {
    background-image: url('https://rapidkconstruction.com/images/rapid-k-expert-home-builders.webp');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    }
#home-builder-banner-con-overlay {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 750px;
    background-color: transparent;
    }
    
      .main-content {
      flex: 1 0 auto;
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 0; /* for proper flex shrinking */
      flex-direction: column;
      height: 780px;
    }
.header-title-adjust {
    position: relative;
    z-index: 999;
    top: 300px;
    }
    .slideshow-container {
      width: 100vw;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      background: #222;
      position: relative;
      z-index: 10;
      min-height: 0;
    margin-top: -150px;
    }

    .slide {
      width: 100vw;
      height: 100%;
      background: #222;
      display: none;
      align-items: center;
      justify-content: center;
      position: absolute;
      top: 0;
      left: 0;
      overflow: hidden;
    }

    .slide.active {
      display: flex;
    }

    .slide img {
      width: 100vw;
      height: 100%;
      object-fit: cover; /* default mode */
      display: block;
      background: #222;
      transition: object-fit 0.2s;
    }

    /* Toggle Button */
    #toggle-fit {
      position: fixed;
      top: 30px;
      right: 30px;
      z-index: 20;
      padding: 10px 16px;
      background: #555;
      color: #fff;
      border: none;
      border-radius: 5px;
      cursor: pointer;
      font-size: 14px;
    }
        #toggle-fit:hover {
      background: #777;
    }

/*custom home builder section*/
#custom-home-builder-con-overlay {
    height: 100%;
    min-height: 700px;
    }
#bg-co-b{
    background-image: url('https://rapidkconstruction.com/images/custom-home-builder-v6.webp');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
   /* border-top: 10px solid  #03339F; */
   /* border-bottom: 10px solid  #03339F; */
    box-shadow:
    inset 10px 10px 18px rgba(0, 0, 0, 0.5),    /*bottom-right dark shadow */
    inset -10px -10px 18px rgba(255, 255, 255, 0.8); /*top-left white light */
    }
#custom {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    }
.custom-head {
    margin-top: 100px;
}
.custom-body {
    width: 100%;
}
.grid-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 100px;
    }
.grid-container-1 {
    display: flex;
    max-width: 1200px;
    width: 100%;
    justify-content: center;
    }
.grid-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    width: calc(100% / 3);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    margin: 20px;
    height: 250px;
    }
.grid-item img {
    width: 100%;
    border-radius: 10px;
    flex-shrink: 0;
    transition: all 0.4s ease-in-out;
    box-shadow: -4px -4px 8px rgba(255, 255, 255, 0.6),  /* top-left white glow */
     4px  4px 8px rgba(0, 0, 0, 0.4); 
    }
#img-bg-1 {
    position: relative;
    background: url('https://rapidkconstruction.com/images/home-community-block.webp') center center / cover no-repeat;
    }
#img-bg-2 {
    position: relative;
    background: url('https://rapidkconstruction.com/images/home-house-plan-block.webp') center center / cover no-repeat;
    }
#img-bg-3 {
    position: relative;
    background: url('https://rapidkconstruction.com/images/home-gallery-block.webp') center center / cover no-repeat;
    }
#img-bg-4 {
    position: relative;
    background: url('https://rapidkconstruction.com/images/home-festival-block.webp') center center / cover no-repeat;
    }
#img-bg-5 {
    position: relative;
    background: url('https://rapidkconstruction.com/images/home-luxury-block.webp') center center / cover no-repeat;
    }
/* #img-bg-1,
#img-bg-2,
#img-bg-3,
#img-bg-4,
#img-bg-5 {
    flex-shrink: 0;
    transition: all 0.3s ease-in-out; 
    box-shadow: -4px -4px 8px rgba(255, 255, 255, 0.6), */  /* top-left white glow */
/*     4px  4px 8px rgba(0, 0, 0, 0.4); 
}

#img-bg-1:hover,
#img-bg-2:hover,
#img-bg-3:hover,
#img-bg-4:hover,
#img-bg-5:hover {
  filter: grayscale(0%) brightness(1);
  transition: filter 0.5s ease;
  transform: scale(1.10); */
/*  box-shadow: 0 0 12px 4px rgba(3, 51, 159, 0.6); */
  /*    box-shadow:
    -6px -6px 12px rgba(255, 255, 255, 0.7), 
     6px  6px 12px rgba(0, 0, 0, 0.5);
} */
.grid-item:hover{
    filter: grayscale(0%) brightness(1);
    transition: filter 0.4s ease;
    transform: scale(1.05);
    box-shadow:
    -6px -6px 12px rgba(255, 255, 255, 0.7), 
     6px  6px 12px rgba(0, 0, 0, 0.5);
    }
.custom-builder-button-style {
    text-decoration: none;
}
/*Services
.ser-r-c {
    display: flex;
    justify-content: center;
    align-items: center;
    }
.Services-container {
    width: 1200px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: center;
    margin: 50px 0;
    }
.service-item {
    width: 30%;
    margin: 20px;
    height: 250px;
    text-align: center;
    color: #03339F;
    }
.img-ser-sty {
    width: 120px;
    } */
/*testemonials*/  
#testimonials-con{
    background-image: url('https://rapidkconstruction.com/images/luxury-custom-rapid-k-home-designs.webp'); /* Replace with actual background image */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    text-align: center;
    min-height: 60vh;
    height: auto;
    }
.testimonials-con-ovelay {
    background-color: rgba(0, 0, 0, 0.5);
    width: 100%;
    min-height: 60vh;
    height: auto;
    }
.testimonial-section {
    padding: 30px;
    border-radius: 10px;
    margin: auto;
    }
.testimonial-con-in {
    display: flex
;
    align-items: center;
}
.testimonial {
    margin: 20px;
    padding: 20px;
    width: calc(100%/3);
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    font-size: 18px;
    border-radius: 10px;
    }
.testimonial-p-h-set {
    max-height: 200px;
    height: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    }
.testimonial-aut-h-set {
    max-height: 50px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    }
.testimonial p {
    font-size: 1.5em;
    line-height: 1.5;
    }
.author {
    font-size: 0.9em;
    color: #00BFFF;
    }
.h-sty {
    padding: 50px;
} 
/*footer section pages*/    
#f-co-ex {
    background: #03339F;
    }
/* Base styles are mobile-first — these tweaks go ON TOP of existing CSS */

/* Small devices (portrait tablets and large phones, 600px and up) */
@media screen and (min-width: 600px) {

  .grid-item {
    width: 45%; /* Two items per row on small tablets */
  }

  .testimonial {
    width: 45%;
  }
}
@media screen and (max-width: 1200px){

    .testimonial p {
      font-size: 1em;
      line-height: 1.5;
  
}
@media screen and (max-width: 800px){  
  }
}
/* Medium devices (landscape tablets, 768px and up) */
@media screen and (min-width: 768px) {
  .grid-item {
    width: 30%; /* Three items per row on larger tablets */
  }

  .testimonial {
    width: 30%;
  }

  .testimonials-con-ovelay {
    flex-direction: row;
    justify-content: center;
  }
}

/* Extra small devices (phones) */
@media screen and (max-width: 599px) {
  .grid-item, .testimonial {
    width: 90%; /* Full width on small screens */
    margin: 10px auto;
  }

  #header-bor-top-b-5 {
    flex-direction: column;
    align-items: center;
    padding: 10px;
  }

  .h-sty, .h4-fon-si, .h1-ch-co {
    text-align: center;
    padding: 20px 10px;
  }

  .grid-container-1 {
    flex-direction: column;
    align-items: center;
  }
  .testimonial{
      height: 280px;
  }
  .testimonial-p-h-set {
    max-height: 100px;
  }
      .testimonial-con-in {
    display: flex;
    align-items: center;
    flex-direction: column;
      }
}