/* Alaa Ezzat - optional department photos and improved medical-content readability.
   Loaded LAST so it also corrects small-font values in prior responsive styles. */
body.theme-heritage .head .wrap{min-height:108px}
body.theme-heritage .head .brand{gap:14px;min-width:282px;flex-shrink:0}
body.theme-heritage .head .brand .official-logo{width:94px;height:94px;max-width:none;object-fit:contain}
body.theme-heritage .head .brand strong{font-size:clamp(22px,1.82vw,27px);font-weight:900;line-height:1.23}
body.theme-heritage .head .brand small{font-size:12px;line-height:1.3;letter-spacing:.75px}
/* General supporting copy */
body.theme-heritage .section-heading p, body.theme-heritage .page-heading p{font-size:15px;line-height:1.9}
body.theme-heritage .card p{font-size:15px;line-height:1.9;color:#566c5b}
body.theme-heritage .card .link{font-size:14px;font-weight:800}
/* One media view shared by home and the department catalogue */
body.theme-heritage .dept-photo-wrap{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center;background:#ecf3ec;color:#286039}
body.theme-heritage .dept-photo-wrap .dept-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
body.theme-heritage .dept-photo-wrap .dept-fallback{display:inline-grid;place-items:center;font-size:31px;color:#286039;line-height:1}
body.theme-heritage .dept-photo-wrap.has-image .dept-fallback{display:none}
body.theme-heritage #homeDepartments .card .glyph.dept-photo-wrap{background-image:none!important}
body.theme-heritage #homeDepartments .card h3{font-size:16px;line-height:1.55;min-height:auto;margin:18px 0 8px;color:#20542c}
body.theme-heritage #homeDepartments .card p{font-size:14px;line-height:1.8;color:#637665}
body.theme-heritage #homeDepartments .card .link{font-size:13px;margin-top:12px}
/* Service catalogue photos are wide, except sections where the admin disables the photo. */
body.theme-heritage #servicesGrid .dept-service-card{overflow:hidden;display:flex;flex-direction:column;align-items:flex-start;min-height:330px}
body.theme-heritage #servicesGrid .dept-service-card .dept-photo-wrap.has-image{width:calc(100% + 44px);height:177px;flex-shrink:0;margin:-22px -22px 14px;border-radius:15px 15px 0 0}
body.theme-heritage #servicesGrid .dept-service-card .dept-photo-wrap:not(.has-image){width:64px;height:64px;flex-shrink:0;border-radius:16px}
body.theme-heritage #servicesGrid .dept-service-card h3{font-size:20px;line-height:1.6;margin:13px 0 8px;font-weight:900}
body.theme-heritage #servicesGrid .dept-service-card p{font-size:16px;line-height:1.95;color:#526b59;margin-bottom:16px}
body.theme-heritage #servicesGrid .dept-service-card .link{font-size:14px;margin-top:auto;padding:5px 0}
body.theme-heritage #servicesGrid .card:not(.dept-service-card) p{font-size:15px;line-height:1.85}
body.theme-heritage #servicesGrid .card:not(.dept-service-card) h3{font-size:19px}
/* Desktop navigation spacing remains comfortable with enlarged branding. */
@media(min-width:1101px) and (max-width:1320px){
 body.theme-heritage .head .brand{min-width:245px;gap:9px}
 body.theme-heritage .head .brand .official-logo{width:83px;height:83px}
 body.theme-heritage .head .brand strong{font-size:21px}
 body.theme-heritage .head .nav button{padding-inline:5px;font-size:12px}
 body.theme-heritage .head .btn.head-booking{padding:9px 11px;font-size:12px}
}
@media(max-width:1100px){
 body.theme-heritage .head .wrap{min-height:88px}
 body.theme-heritage .head .brand{min-width:0;flex-shrink:1;gap:10px}
 body.theme-heritage .head .brand .official-logo{width:80px;height:80px}
 body.theme-heritage .head .brand strong{font-size:21px}
 body.theme-heritage .head .brand small{font-size:10px}
}
@media(max-width:820px){
 body.theme-heritage .head .wrap{min-height:84px}
 body.theme-heritage .head .brand .official-logo{width:76px;height:76px}
 body.theme-heritage .head .brand strong{font-size:20px}
 body.theme-heritage #homeDepartments .card h3{font-size:15px}
 body.theme-heritage #homeDepartments .card p{font-size:13.5px}
 body.theme-heritage #servicesGrid .dept-service-card h3{font-size:19px}
 body.theme-heritage #servicesGrid .dept-service-card p{font-size:15px}
}
@media(max-width:600px){
 body.theme-heritage .head .wrap{min-height:77px;gap:7px}
 body.theme-heritage .head .brand{gap:7px;min-width:0;flex:1 1 auto;max-width:calc(100% - 105px)}
 body.theme-heritage .head .brand .official-logo{width:63px;height:63px;flex-shrink:0}
 body.theme-heritage .head .brand strong{font-size:17px;line-height:1.25;overflow-wrap:normal}
 body.theme-heritage .head .brand small{font-size:8px;letter-spacing:0}
 body.theme-heritage #homeDepartments .card h3{font-size:14px;line-height:1.55}
 body.theme-heritage #homeDepartments .card p{font-size:13px;line-height:1.65}
 body.theme-heritage #servicesGrid .dept-service-card{min-height:unset}
 body.theme-heritage #servicesGrid .dept-service-card .dept-photo-wrap.has-image{height:190px}
 body.theme-heritage #servicesGrid .dept-service-card h3{font-size:19px}
 body.theme-heritage #servicesGrid .dept-service-card p{font-size:15.5px;line-height:1.9}
 body.theme-heritage .page-heading p{font-size:14px}
}
@media(max-width:390px){
 body.theme-heritage .head .brand .official-logo{width:56px;height:56px}
 body.theme-heritage .head .brand strong{font-size:16px}
 body.theme-heritage .head .brand small{display:none}
 body.theme-heritage .head .brand{max-width:calc(100% - 97px)}
}
