/*all pages */
.section-0 {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    flex-direction: column;
    }
.section-1, .section-2, .section-3, .section-4, .section-5 {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    }
.h-sty {
    padding: 50px;
    color: #84aaff;
    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-p-sty {
    color: #03339f;
    padding: 10px 0;
}
.com-p-sty {
    color: #fff;
    font-size: 16px;
}
/*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;
}
/*footer*/
#footer {
    width: 100%;
}
/*gallery*/
:root {
      --thumb-size: 100px;
      --thumb-gap: 10px;
      --thumb-border-radius: 8px;
      --thumb-border: 4px solid #17485e;
      --thumb-bg: #17485e;
      --main-border: 2px solid #17485e;
      --gallery-bg: #15394a;
    }
#cus-homes-bg {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-image: url('/images/custom-homes-bg(1920x1441).webp');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    min-height: 600px;
    height: auto;

}
#cus-homes-sty {
    padding: 50px 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 550px;
    height: auto;
}
.headings-con-b-rel {
    max-width: 700px;
    width: auto;
    background-color: rgba(3, 51, 159, 0.7);
    padding: 20px;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    top: 100px;
    left: 30%;
    transform: translateX(-10%);
}
#header {
    background: #fff;
}
#galleries {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.gallery-container {
      max-width: 90vw;
      width: 100%;
      max-height: 92vh;
      height: 100%;
      border-bottom: 10px solid #fff;
      margin: 30px 0;
      background: transparent;
      display: flex;
      flex-direction: column;
      align-items: center;
      transition: all 0.3s ease-in-out;
      box-shadow: -4px -4px 8px rgba(255, 255, 255, 0.6), 4px 4px 8px rgba(0, 0, 0, 0.4);
      border-radius: 10px;
    }
    .main-image-wrapper {
      position: relative;
      width: 100%;
      margin: 0 auto;
      background: #222;
      border: #03339F;
      box-sizing: border-box;
      border-radius: 10px 10px 0 0;
    }
    .main-image {
      width: 100%;
      height: 100%;
      max-height: 750px;
      object-fit: cover;
      display: block;
      border-radius: 10px;
      transition: opacity 0.2s;
      background: #e0e0e0;
    }
    .gallery-title {
      position: absolute;
      top: 24px;
      left: 32px;
      font-size: 2.2rem;
      font-weight: bold;
      color: #fff;
      text-shadow: 1px 1px 6px #111;
      z-index: 1;
      letter-spacing: 1px;
      font-family: 'Source Sans 3', 'Source Sans Variable', Arial, Helvetica, sans-serif;
    }
    .arrow {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      color: #fff;
      background: rgba(40,60,80,0.5);
      border: none;
      font-size: 2.5rem;
      width: 48px;
      height: 48px;
      border-radius: 50%;
      cursor: pointer;
      z-index: 2;
      transition: background 0.2s;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .arrow.left { left: 12px; }
    .arrow.right { right: 12px; }
    .arrow:hover { background: rgba(40,60,80,0.8); }

    .thumbnails {
      width: 100%;
      display: flex;
      gap: var(--thumb-gap);
      padding: 10px 0 10px 0;
      justify-content: center;
      background: rgb(3 51 159 / 15%);
      flex-wrap: wrap;
      border-radius: 0 0 10px 10px;
      backdrop-filter: blur(5px);
      -webkit-backdrop-filter: blur(15px);
    }
    .thumb-img {
      width: var(--thumb-size);
      height: var(--thumb-size);
      object-fit: cover;
      border-radius: var(--thumb-border-radius);
      border: 2px solid transparent;
      background: #fff;
      cursor: pointer;
      transition: border 0.2s, transform 0.2s;
      box-sizing: border-box;
    }
    .thumb-img.selected {
      border: 2px solid #ffd600;
      transform: scale(1.06);
      box-shadow: 0 2px 8px #1117;
    }
/*services or floor plan or our expertise*/
.headings-con-w-rel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 100px 0;
}

#bg-color-lg {
        background: url('https://rapidkconstruction.com/images/our-expertise-background-v2.webp') center center / cover no-repeat;
}

.card-title {
    font-size: 1.3em;
    font-weight: 700;
    color: #222;
    padding: 24px 0 0 24px;
}

.cards-section {
    background: transparent;
    padding: 48px 0;
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.info-card {
    border-radius: 12px;
    width: calc(30%);
    min-height: 220px;
    padding: 0 0 20px 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    margin-bottom: 16px;
    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); 
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    background: #ffffffa1;
}
.info-card:hover{
 /*   box-shadow:
    -6px -6px 12px rgba(255, 255, 255, 0.7), 
     6px  6px 12px rgba(0, 0, 0, 0.5); */

     transform: scale(1.03); 
}

.info-card-c1 {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 20px;
    align-items: center;
}

.floorplan-img-size {
    width: 50%;
}

.info-card .card-view-btn {
    position: absolute;
    top: 239px;
    right: 24px;
    background: #03339F;
    color: #fff;
    font-weight: 700;
    border: none;
    padding: 7px 20px;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.2s; 
    text-decoration: none;
    letter-spacing: 0.5px;
    border-radius: 10px;
}

.info-card .card-view-btn:hover {
    color:#03339F;
    box-shadow: 
    inset -6px -6px 12px rgba(255, 255, 255, 0.7),  /* inner top-left white glow */
    inset  6px  6px 12px rgba(0, 0, 0, 0.5);  
    background: none;
    transform: scale(1.05);
    border-radius: 20px;

}

.info-card .card-list {
    margin: 20px;
    color: #222;
    font-size: 1.03em;
    line-height: 1.6;
    font-weight: 400;
}

/*contact-form*/
#cont-f-con {
    background: lightgray;
}
.cont-f-con-1 {
    width: 40%;
    padding: 20px;
    font-size: 18px;
    font-weight: 600;
    color: #03339f;
}
#cont-f-sty {
    display: flex;
    align-items: center;
    justify-content: center;
}
.ct-btn-sty {
    padding: 10px;
    font-size: 16px;
    color: #03339F;
    font-weight: 600;
    text-decoration: none;
    }
.form-container {
    width: 100%;
    max-width: 400px;
    background: #03339f;
    margin: 20px auto;
    border: 1px solid #03339f;
    padding: 18px 18px 40px 18px;
    box-sizing: border-box;
        }
        label {
            display: block;
            margin-bottom: 6px;
            font-weight: 500;
            color: #fff;
        }
        input[type="text"], input[type="email"], textarea {
            width: 100%;
            padding: 10px;
            margin-bottom: 18px;
            border: 1px solid #b0b0b0;
            border-radius: 2px;
            box-sizing: border-box;
            font-size: 1em;
            background: #f7f7f7;
            color: #0f3e4e;
        }
        input[type="text"].phone {
            width: 50%;
        }
        textarea {
            min-height: 120px;
            resize: vertical;
        }
        .submit-button {
            display: block;
            margin-left: auto;
            background: #aaa;
            color: #03339f;
            border: none;
            padding: 12px 36px;
            font-size: 1.1em;
            border-radius: 2px;
            cursor: pointer;
            font-weight: bold;
            letter-spacing: 1px;
            transition: background 0.2s;
        }
        .submit-button:hover {
            background: #666;
    }
.ct-form-title-style {
    font-size: 4rem;
    font-weight: 600;
    border-top: 7px double;
    }
/* Responsive adjustments */
/* Fluid responsiveness for tablets */
@media (max-width: 1024px) {
  .headings-con-b-rel {
    left: 50%;
    transform: translateX(-50%);
    top: 100px;
    padding: 16px;
  }

  .info-card {
    width: 45%;
  }
#cont-f-con-1-1 {
    text-align: center;
  }
  .arrow {
    font-size: 2rem;
    width: 40px;
    height: 40px;
  }

  .gallery-title {
    font-size: 1.8rem;
  }
}

/* Fluid responsiveness for mobile devices */
@media (max-width: 768px) {
  .h-sty,
  .headings-con-b-rel {
    padding: 20px;
    top: 80px;
    font-size: 1.1rem;
  }

  .gallery-title {
    font-size: 1.5rem;
    top: 12px;
    left: 16px;
  }

  .info-card {
    width: 100%;
    margin: 0 16px 24px 16px;
  }

  .floorplan-img-size {
    width: 80%;
  }

  .form-container {
    margin: 20px;
    padding: 16px;
  }

  input[type="text"].phone {
    width: 100%;
  }

  .main-image {
    height: 60vw;
  }

  .thumbnails {
    gap: 6px;
    padding: 12px 0;
  }

  .thumb-img {
    width: 60px;
    height: 60px;
  }

  .arrow {
    font-size: 1.8rem;
    width: 36px;
    height: 36px;
  }
  #cont-f-sty {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
  }
    .cont-f-con-1 {
        width: 100%;
        display: flex;
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }

}