.image-container {
    position: relative;
    width: 600px;
    height: 300px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

#infrasture h4 {
    /* font-size: 20px; */
    font-family: "PT Serif", serif;
    font-weight: 600;
    color: #20497C;
    text-align: center;
    margin-top: 20px;
  
}

.image-container img {
    width: 100%;
    height: 100%;
    display: block;
    border:3px solid #20497C;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    
}

.hover-text {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    padding: 15px;
    font-size: 18px;
    font-weight: bold;
    transition: bottom 0.4s ease-in-out;
}


@media (max-width: 768px) {
    .image-container {
        width: 97%;
        height: 90%;
        margin: 0 auto;
    }
    
  
}
.image-container:hover .hover-text , .image {
    bottom: 0;
}

  
/* POPUP DISTANCE SECTION  */
.distance div:hover, #cross-btn:hover, #airport-cross-btn:hover, #bus-stand-cross-btn:hover {
    cursor: pointer;
  }
  
  #railway-popup, #airport-popup, #bus-stand-popop {
    display: none;
    border: 3px solid rgba(0, 0, 0, 0.527);
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.671);
    
  }
  
  /* nagpur */
  #airport-cross-btn, #bus-stand-cross-btn {
    margin: 15px 15px 0px 0px;
  }
  
  .nagpur-airport, .gadchiroli-busstop {
    width: 50%;
    border: 2px solid rgba(17, 66, 225, 0.765);
    margin: auto;
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.471);
    background-color: rgba(127, 255, 212, 0.52);
    border-radius: 10px;
  }
  
  .nagpur-airport p, .gadchiroli-busstop p {
    padding: 15px;
    font-weight: 600;
  
  }
  
  .nagpur-airport h5, .gadchiroli-busstop h5 {
    color: rgb(185, 27, 27);
    font-weight: 600;
    padding: 15px;
  }
  
  .nagpur-airport span, .gadchiroli-busstop span {
    color: rgb(91, 87, 87);
    font-weight: 600;
  }
  
  
  
  
  /* RAILWAYS */
  
  #railway-popup, #airport-popup, #bus-stand-popop {
    position: fixed;
    background-color: #f1f1f1;
    top: 10px;
    left: 0;
    right: 0;
    bottom: 0;
    width: 70%;
    height: 80%;
    margin: auto;
    overflow-x: hidden;
    overflow-y: auto;
  }
  
  .wadsa img {
    margin-top: 10px;
    margin-right: 10px;
  
  }
  
  .railway-text div {
    border-right: 2px solid black;
  }
  
  .railway-text div:nth-last-child(1) {
    border-right: none;
  }
  
  .railway h2::after {
  
    position: relative;
    content: '';
    display: block;
    width: 400px;
    height: 4px;
    background: rgba(8, 162, 152, 25);
    margin: 10px auto;
  }
  
  .railway-text h5 {
    font-weight: 600;
    color: rgb(185, 27, 27);
  }
  
  .railway-text p {
    font-size: 20px;
    font-weight: 600;
    color: #000000;
    margin: 10px;
    text-align: justify;
  
  }
  
  .railway-text span {
    font-size: 15px;
    font-weight: 400;
    color: #59595e;
  }
  