.hero {
    background: url('../../Comprehensive Medical Care.webp') no-repeat right center;
    background-size: 97%;
    background-repeat: no-repeat;
    background-position: right center;
    width: 97%;
    height: 125vh;
    padding-top: 100px;
    margin-top: -120px;
    display: flex;
    align-items: center;
    position: relative;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
    display: none;
}

.hero .overlay-image {
    position: absolute;
    right: 0;
    top: 160px;
    width: 30%;
    height: auto;
    z-index: 10;
    display: none !important;
}

.hero-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: flex-start;
}

.hero-content {
    background: rgba(242, 245, 247, 0.9);
    padding: 40px;
    border-radius: 15px;
    max-width: 900px;
    width: 550px;
    height: 450px;
    margin-top: 90px;
    margin-left: -30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hero h1 {
    font-size: 30px;
    font-weight: 500;
    color: #1d1d1f;
    margin-bottom: 20px;
}

.hero p {
    font-size: 16px;
    color: #4f4f4f;
    margin-bottom: 30px;
    line-height: 1.6;
}

.buttons {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.buttons a {
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    min-width: 180px;
    text-align: center;
    transition: all 0.3s ease;
}

.book {
    background-color: #003366;
    color: white;
    border: none;

}

.book:hover {
    background-color: #003366;
    transform: translateY(-2px);
}

.shop {
    background-color: white;
    color: #003366;
    border: 2px solid #003366;
}

.shop:hover {
    background-color: #f5f5f5;
    transform: translateY(-2px);
}

.icons {
    display: flex;
    gap: 100px;
    margin-top: 10px;
    color: #003366;
}

.icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 13px;
    color: #003366;
    font-weight: 500;
}

.icon-item img {
    width: 32px;
    height: 32px;
    margin-bottom: 6px;
}
 
@media (max-width: 768px) {
    .hero {
      position: relative;
      flex-direction: column;
      height: auto;
      min-height: 130vh;
      background: none;
      padding-top: 80px;
      display: flex;
      justify-content: flex-start;
      align-items: center;
    }
  
    .hero img.visually-hidden {
      position: relative;
      width: 100%;
      height: 500px;
      max-height: 500px;
      object-fit: cover;
      display: block !important;
      margin: 0;
      z-index: 1;
    }
  
    .hero-inner {
      width: 100%;
      max-width: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      padding: 0 20px;
      position: relative;
      z-index: 2;
    }
  
    .hero-content {
      width: 90%;
      max-width: 230px;
      height: auto;
      min-height: 100px;
      padding: 15px;
      text-align: center;
      background: rgba(242, 245, 247, 0.95);
      border-radius: 10px;
      box-shadow: 0 4px 15px rgba(0,0,0,0.1);
      position: absolute;
      top: 48%;
      left: 43%;
      transform: translate(-50%, -50%);
      z-index: 3;
      margin-top: -200px;
    }
  
    .hero h1 {
      font-size: 18px;
      font-weight: 500;
      color: #1d1d1f;
      margin-bottom: 10px;
    }
  
    .hero p {
      font-size: 12px;
      color: #4f4f4f;
      margin-bottom: 15px;
      line-height: 1.4;
    }
  
    .buttons {
      flex-direction: column;
      gap: 8px;
      margin-bottom: 10px;
      width: 100%;
    }
  
    .buttons a {
      width: 100%;
      padding: 8px 15px;
      font-size: 10px;
      min-width: auto;
    }
  
    .icons {
      display: flex;
      gap: 5px;
      margin-top: 15px;
      color: #003366;
      flex-wrap: nowrap;
      justify-content: center;
      font-size: 10px;
      gap: 40px;
    }
  
    .icon-item {
      width: 60px;
      text-align: center;
      padding: 0 5px;
    }
  
    .icon-item img {
      width: 20px;
      height: 20px;
      margin-bottom: 3px;
    }
  
    .icon-item span {
      font-size: 7.5px;
      display: block;
      white-space: nowrap;
    }
  }