/* Reliance Hospital homepage - mobile department cards hard fix
   Keeps "বিশেষজ্ঞ বিভাগ ও ডাক্তার" as proper cards on Android/mobile. */
@media (max-width: 767px){
  body.hospital-home .hospital-department-home{
    overflow:hidden!important;
    padding-left:0!important;
    padding-right:0!important;
  }
  body.hospital-home .hospital-department-home .hospital-wrap{
    width:100%!important;
    max-width:100%!important;
    padding-left:14px!important;
    padding-right:14px!important;
    box-sizing:border-box!important;
  }
  body.hospital-home .hospital-department-home .hospital-section-head{
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    gap:12px!important;
    margin-bottom:16px!important;
  }
  body.hospital-home .hospital-department-home .hospital-section-head>div{
    width:100%!important;
    min-width:0!important;
  }
  body.hospital-home .hospital-department-home .hospital-section-head h2{
    display:block!important;
    width:100%!important;
    margin:0 0 8px!important;
    color:#0d6471!important;
    font-size:25px!important;
    line-height:1.25!important;
    font-weight:900!important;
    white-space:normal!important;
  }
  body.hospital-home .hospital-department-home .hospital-section-head p{
    display:block!important;
    margin:0!important;
    color:#607a80!important;
    font-size:13px!important;
    line-height:1.65!important;
    white-space:normal!important;
  }
  body.hospital-home .hospital-department-home .hospital-section-head>a.hospital-link-btn{
    align-self:flex-start!important;
    width:auto!important;
    min-width:0!important;
    min-height:40px!important;
    padding:9px 14px!important;
    border-radius:12px!important;
    display:inline-flex!important;
  }

  body.hospital-home .home-department-grid{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    gap:12px!important;
    width:100%!important;
    margin:0!important;
    padding:0!important;
  }
  body.hospital-home .home-department-grid>.home-department-card{
    position:relative!important;
    display:grid!important;
    grid-template-columns:50px minmax(0,1fr) 28px!important;
    grid-template-rows:auto!important;
    align-items:start!important;
    gap:11px!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    min-height:0!important;
    margin:0!important;
    padding:14px 13px 14px 16px!important;
    border:1px solid #dce9ec!important;
    border-radius:17px!important;
    background:linear-gradient(145deg,#fff 0%,#fbfefe 72%,#f3fafb 100%)!important;
    color:#183f46!important;
    text-decoration:none!important;
    box-shadow:0 8px 22px rgba(18,77,86,.07)!important;
    overflow:hidden!important;
    box-sizing:border-box!important;
  }
  body.hospital-home .home-department-grid>.home-department-card::before{
    content:""!important;
    position:absolute!important;
    left:0!important;
    top:0!important;
    bottom:0!important;
    width:4px!important;
    background:linear-gradient(180deg,#1a8a99,#1aad73)!important;
  }
  body.hospital-home .home-department-icon{
    grid-column:1!important;
    width:48px!important;
    height:48px!important;
    margin:0!important;
    display:grid!important;
    place-items:center!important;
    border:1px solid #d6ecef!important;
    border-radius:14px!important;
    background:linear-gradient(145deg,#e8f8fa,#eefaf4)!important;
    color:#117684!important;
    font-size:23px!important;
    line-height:1!important;
    box-sizing:border-box!important;
  }
  body.hospital-home .home-department-content{
    grid-column:2!important;
    display:block!important;
    min-width:0!important;
    width:100%!important;
    padding:0!important;
  }
  body.hospital-home .home-department-content h3{
    display:block!important;
    margin:0 0 8px!important;
    color:#0d5d69!important;
    font-size:16px!important;
    line-height:1.35!important;
    font-weight:900!important;
    white-space:normal!important;
    overflow:visible!important;
  }
  body.hospital-home .home-department-doctors{
    display:flex!important;
    flex-direction:row!important;
    flex-wrap:wrap!important;
    align-items:center!important;
    gap:5px!important;
    width:100%!important;
    margin:0!important;
    padding:0!important;
    color:#536f75!important;
    font-size:11px!important;
    line-height:1.35!important;
  }
  body.hospital-home .home-department-doctors span,
  body.hospital-home .home-department-doctors small{
    float:none!important;
    position:static!important;
    display:inline-flex!important;
    align-items:center!important;
    width:auto!important;
    max-width:100%!important;
    min-height:26px!important;
    margin:0!important;
    padding:4px 8px!important;
    border-radius:999px!important;
    box-sizing:border-box!important;
    white-space:normal!important;
    overflow:visible!important;
    text-overflow:clip!important;
    font-size:11px!important;
    line-height:1.3!important;
  }
  body.hospital-home .home-department-doctors span{
    border:1px solid #e1ecee!important;
    background:#f7fbfc!important;
    color:#41646b!important;
  }
  body.hospital-home .home-department-doctors small{
    border:0!important;
    background:#eaf8f2!important;
    color:#0e7a55!important;
    font-weight:800!important;
  }
  body.hospital-home .home-department-arrow{
    grid-column:3!important;
    align-self:center!important;
    justify-self:end!important;
    position:static!important;
    width:28px!important;
    height:28px!important;
    display:grid!important;
    place-items:center!important;
    margin:0!important;
    border-radius:50%!important;
    background:#edf8fa!important;
    color:#137786!important;
    font-size:22px!important;
    line-height:1!important;
  }
  body.hospital-home .home-department-actions{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:8px!important;
    width:100%!important;
    margin:16px 0 0!important;
  }
  body.hospital-home .home-department-actions .hospital-link-btn{
    display:flex!important;
    width:100%!important;
    min-height:44px!important;
    align-items:center!important;
    justify-content:center!important;
    box-sizing:border-box!important;
  }
}

@media (max-width: 380px){
  body.hospital-home .hospital-department-home .hospital-wrap{padding-left:10px!important;padding-right:10px!important}
  body.hospital-home .home-department-grid>.home-department-card{grid-template-columns:44px minmax(0,1fr) 24px!important;gap:9px!important;padding:12px 10px 12px 13px!important}
  body.hospital-home .home-department-icon{width:42px!important;height:42px!important;font-size:21px!important}
  body.hospital-home .home-department-content h3{font-size:15px!important}
  body.hospital-home .home-department-doctors span,
  body.hospital-home .home-department-doctors small{font-size:10.5px!important;padding:4px 7px!important}
}
