body{
  padding-top: 60px;
}
@media (width<900px) {
  body{
  padding-top: 50px;
}
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.image {
  width: 100%;
  height: 50vh;           /* half page height */
  margin-top: 0;           /* ensures it starts right below navbar */
}
.image img {
  width: 100%;         /* stretch full width */
  height: 100%;        /* fill the container height */
  object-fit: cover; 
  display: block;      /* removes bottom white gap */
}
.image-text{
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.6);
}
.text{
   line-height: 1.8;
}

/* phone css */
@media (width<600px) {
  /* full container */
.image img{
  display: none;
}
.text{
display: inline-block;
line-height: 1;
}

 .image {
    height: auto;
    display: block;
    background: linear-gradient(135deg, #e8f0ff, #ffffff); /* soft light blue gradient */
    padding: 15px 10px;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }

  .image-text {
    position: static;
    transform: none;
    color: #0d47a1; /* deep blue text color */
    font-size: 1rem;
    font-weight: 600;
    text-align: justify;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-left: 5px solid #1e88e5; /* blue accent border */
  }
  .image-text .text {
    line-height: 1.2;
    background-color:white;
    font-family:Cambria, Cochin, Georgia, Times, 'Times New Roman', serif
  }
}

@media (max-width:750px){
  .image-text{
    font-size: large;
  }
}
@media(max-height:400px){
     .image-text .text {
      font-size: medium;
    line-height: 1.5;
  margin-top: 60px;
  }
}