
  
  /* Layout basics */
  body {
    overflow-x: hidden;
  }
  
  .image-stack {
    position: relative;
    width: 700px;           /* fixed width cluster area */
    height: 620px;          /* fixed height cluster area */
    margin: -60px auto;
    left: 40px; 
  }
  
  .stack-img {
    position: absolute;
    width: 270px;
    height: 350px;
    object-fit: cover;
    border-radius: 25px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transition: transform 0.35s ease;
  }
  
  /* Layered card positioning (anchored layout that doesn’t drift) */
  .img1 {
    top: -20px;
    left: 0;
    transform: rotate(-4deg);
    z-index: 3;
  }
  .img2 {
    top: 0px;
    left: 230px;
    transform: rotate(3deg);
    z-index: 2;
  }
  .img3 {
    top: 220px;
    left: 30px;
    transform: rotate(-2deg);
    z-index: 4;
  }
  .img4 {
    top: 190px;
    left: 270px;
    transform: rotate(-2deg);
    z-index: 1;
  }
  
  /* Hover effect */
  .stack-img:hover {
    transform: scale(1.06);
    z-index: 5;
  }
  

  
.stack-img:nth-child(1) { transform: rotate(-5deg); }
.stack-img:nth-child(2) { transform: rotate(3deg); }
.stack-img:nth-child(3) { transform: rotate(-2deg); }
.stack-img:nth-child(4) { transform: rotate(4deg); }

  
  /* Transparent / glassy search bar */
  .search-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 55%;
    z-index: 10;
    text-align: center;
  }
  
  .search-bar {
    background-color: rgba(255, 255, 255, 0.35);  /* less opacity */
    backdrop-filter: blur(8px);
    border: none; /* no stroke */
    border-radius: 40px;
    padding: 12px 20px;
    font-size: 1.05rem;
    color: var(--dark-brown);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); /* subtle softness */
    width: 100%;
  }
  .search-bar::placeholder {
    color: #8c6e5b;
    opacity: 0.8;
  }
  
  /* Search button */
  .btn-search {
    background-color: #9F9A7F;
    border: none;
    color: white;
    border-radius: 40px;
    padding: 10px 25px;
    font-weight: 500;
    transition: all 0.3s ease;
  }
  .btn-search:hover {
    background-color: #D2B0A2;
  }

  @media (max-width: 768px) {
  .vh-100 {
    height: auto !important;
    min-height: auto !important;
  }

  .image-stack {
    width: 100%;
    height: auto;
    margin: 20px auto 10px;
    left: 0;
    transform: scale(0.7);
    transform-origin: center top;
  }

  .stack-img {
    width: 180px;
    height: 240px;
  }

  .img1 {
    top: 0;
    left: 10px;
  }

  .img2 {
    top: 10px;
    left: 140px;
  }

  .img3 {
    top: 150px;
    left: 20px;
  }

  .img4 {
    top: 140px;
    left: 170px;
  }

  .search-overlay {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    padding: 0 16px;
    margin-top: 20px;
  }

  .search-bar {
    width: 100%;
    max-width: 100%;
    font-size: 1rem;
  }

  .btn-search {
    width: 100%;
    padding: 12px 18px;
  }

  .col-md-5 {
    padding: 24px 20px !important;
    text-align: center;
    align-items: center !important;
  }

  .col-md-5 h1 {
    font-size: 1.7rem;
  }

  .col-md-5 p {
    font-size: 1rem;
  }
}

.homepage-search-form {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.homepage-search-form .search-bar {
  flex: 1;
  min-width: 0;
}

.homepage-search-form .btn-search {
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .row.vh-100 {
    flex-direction: column;
  }

  .col-md-7,
  .col-md-5 {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }

  .col-md-7 {
    min-height: auto !important;
    padding: 24px 16px 8px !important;
  }

  .col-md-5 {
    padding: 24px 20px 36px !important;
    text-align: center !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .image-stack {
    display: none !important;
  }

  .search-overlay {
    position: static !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: 100% !important;
    padding: 0 16px !important;
    margin-top: 0 !important;
  }

  .homepage-search-form {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    width: 100% !important;
  }

  .homepage-search-form .search-bar {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 1rem !important;
  }

  .homepage-search-form .btn-search {
    width: 100% !important;
    margin: 0 !important;
    padding: 12px 18px !important;
  }

  .col-md-5 h1 {
    font-size: 1.8rem !important;
    line-height: 1.2 !important;
    margin-bottom: 12px !important;
  }

  .col-md-5 p {
    font-size: 1rem !important;
    line-height: 1.5 !important;
    margin-bottom: 0 !important;
  }
}
  
  