/* Dr. Parvendra Singh ENT Website */
:root {
  --blue: #006f9f;
  --blue2: #0097c7;
  --navy: #063a58;
  --ink: #173042;
  --muted: #607786;
  --red: #ef3340;
  --ice: #eff8fc;
  --line: #d7e9f1;
  --white: #fff;
  --shadow: 0 18px 55px rgba(8, 68, 96, .12);
  --radius: 24px;
  --container: min(1180px, calc(100% - 40px))
}

/* Final home banner, compact profile and responsive clinic maps */
.mobile-ent-hero { min-height:clamp(430px,45.38vw,845px); background:url('../images/bannerimg.png') center/cover no-repeat; }
.mobile-ent-hero::before,.mobile-ent-hero::after,.mobile-ent-hero-inner {  }
.stats.section { padding-top:44px; padding-bottom:44px; }
.stats-grid { min-height:0; }
.responsive-map { width:100%; height:clamp(320px,38vw,480px); overflow:hidden; border:1px solid var(--line); border-radius:24px; box-shadow:0 14px 36px rgba(8,68,96,.10); background:#eaf7fb; }
.responsive-map iframe { display:block; width:100%; height:100%; border:0; }
@media(max-width:767px) {
  .mobile-ent-hero { min-height:520px; background-position:center; }
  .stats.section { padding-top:38px; padding-bottom:38px; }
  .responsive-map { height:360px; border-radius:18px; }
}

/* Final mobile quick-actions and developer credit */
.quick-item {
  position:relative;
  overflow:hidden;
  animation:quickCardIn .65s both;
  will-change:transform;
}
.quick-item:nth-child(2){animation-delay:.08s}
.quick-item:nth-child(3){animation-delay:.16s}
.quick-item:nth-child(4){animation-delay:.24s}
.quick-item::after {
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(115deg,transparent 25%,rgba(255,255,255,.65) 48%,transparent 72%);
  transform:translateX(-120%);
  transition:transform .65s ease;
  pointer-events:none;
}
.quick-item:hover::after,.quick-item:focus-visible::after { transform:translateX(120%); }
.quick-item:hover,.quick-item:focus-visible { transform:translateY(-3px); background:#f0faff; }
.quick-item .icon-box { transition:transform .3s ease,box-shadow .3s ease; }
.quick-item:hover .icon-box,.quick-item:focus-visible .icon-box { transform:scale(1.08) rotate(-3deg); box-shadow:0 8px 20px rgba(0,111,159,.18); }
@keyframes quickCardIn { from{opacity:0;transform:translateY(18px)} to{opacity:1;transform:translateY(0)} }

.developer-credit {
  margin-top:22px;
  padding-top:18px;
  border-top:1px solid rgba(255,255,255,.12);
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  color:#c8dce7;
  font-size:.78rem;
}
.developer-credit a { display:inline-flex;align-items:center;padding:7px 10px;border-radius:10px;background:#fff;transition:transform .25s ease,box-shadow .25s ease; }
.developer-credit a:hover { transform:translateY(-2px);box-shadow:0 10px 24px rgba(0,0,0,.2); }
.developer-credit img { display:block;width:155px;height:auto; }

@media(max-width:520px) {
  .quick-strip { padding:10px 0;background:linear-gradient(180deg,#f5fbfe,#fff); }
  .quick-strip .container { padding-left:10px;padding-right:10px; }
  .quick-grid { grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:10px; }
  .quick-item {
    min-height:132px;
    padding:14px 9px;
    border:1px solid #d7e8ef !important;
    border-radius:18px;
    background:#fff;
    box-shadow:0 8px 22px rgba(8,68,96,.07);
    flex-direction:column;
    justify-content:center;
    text-align:center;
    gap:9px;
  }
  .quick-item .icon-box { flex:0 0 44px;width:44px;height:44px;border-radius:14px; }
  .quick-copy { display:block;min-width:0; }
  .quick-copy strong { display:block;font-size:.78rem;line-height:1.25; }
  .quick-copy>span { display:block;margin-top:4px;font-size:.67rem;line-height:1.3;color:var(--muted); }
  .developer-credit { flex-direction:column;text-align:center;gap:8px; }
  .developer-credit img { width:140px; }
}

/* Final compact Professional Profile: two statistics per mobile row */
@media(max-width:767px) {
  .stats .stats-grid {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:12px;
  }
  .stats .stats-grid>div:first-child {
    grid-column:1 / -1;
    margin-bottom:4px;
  }
  .stats .stats-grid>div:first-child h2 {
    font-size:clamp(1.75rem,8vw,2.35rem);
    line-height:1.08;
    margin-bottom:4px;
  }
  .stats .stat {
    min-height:128px;
    padding:18px 14px;
    border:1px solid rgba(255,255,255,.18);
    border-radius:18px;
    background:linear-gradient(145deg,rgba(255,255,255,.12),rgba(255,255,255,.045));
    box-shadow:0 12px 28px rgba(0,0,0,.12);
    display:flex;
    flex-direction:column;
    justify-content:center;
    animation:statCardUp .6s both;
  }
  .stats .stat:nth-child(3){animation-delay:.08s}
  .stats .stat:nth-child(4){animation-delay:.16s}
  .stats .stat:nth-child(5){animation-delay:.24s}
  .stats .stat b { font-size:2.05rem;line-height:1;margin-bottom:8px; }
  .stats .stat span { font-size:.76rem;line-height:1.35; }
}
@keyframes statCardUp { from{opacity:0;transform:translateY(16px)} to{opacity:1;transform:translateY(0)} }
.float-call { background:#20b95a !important; }
.float-mail { background:#087fad !important; }

/* Absolute final banner rendering: natural 1600x583 ratio, no crop or gap */
main,
.mobile-ent-hero {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.mobile-ent-hero {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  margin-right: 0 !important;
  margin-bottom: 0 !important;
  margin-left: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  aspect-ratio: auto !important;
  background: none !important;
  border: 0 !important;
  line-height: 0;
}

.mobile-ent-hero::before,
.mobile-ent-hero::after,
.mobile-ent-hero-inner {
  display: none !important;
}

.mobile-ent-hero .hero-banner-img {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: contain !important;
  object-position: center top !important;
}

@media (max-width: 767px) {
  .mobile-ent-hero,
  .mobile-ent-hero .hero-banner-img {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}

/* FINAL BANNER FIX — keep this block at the very end of the stylesheet */
html,
body,
main {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.mobile-ent-hero {
  display: block !important;
  position: relative;
  width: 100%;
  height: clamp(320px, 45.38vw, 845px);
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  aspect-ratio: auto !important;
  background-color: #eef5fb !important;
  background-image: url("../images/banner121.png") !important;
  background-repeat: no-repeat !important;
  background-position: center top !important;
  background-size: cover !important;
  border: 0 !important;
}

.mobile-ent-hero::before,
.mobile-ent-hero::after,
.mobile-ent-hero-inner {
  display: none !important;
}

@media (max-width: 767px) {
  .mobile-ent-hero {
    display: block !important;
    width: 100%;
    height: clamp(190px, 58vw, 300px);
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background-position: center top !important;
    background-size: cover !important;
  }
}

@media (max-width: 390px) {
  .mobile-ent-hero {
    height: 205px;
  }
}
.floating-actions .float-btn { transition:transform .25s ease,box-shadow .25s ease; }
.floating-actions .float-btn:hover { transform:translateY(-4px) scale(1.05);box-shadow:0 14px 28px rgba(0,0,0,.22); }
@media(prefers-reduced-motion:reduce) { .stats .stat{animation:none!important}.floating-actions .float-btn{transition:none!important} }

@media(prefers-reduced-motion:reduce) {
  .quick-item,.quick-item::after,.quick-item .icon-box,.developer-credit a { animation:none !important;transition:none !important; }
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  font-family: Inter, Segoe UI, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.65
}

img {
  max-width: 100%;
  display: block
}

a {
  color: inherit;
  text-decoration: none
}

button,
input,
select,
textarea {
  font: inherit
}

.container {
  width: var(--container);
  margin: auto
}

.section {
  padding: 88px 0
}

.section-sm {
  padding: 58px 0
}

.soft {
  background: linear-gradient(180deg, #f7fcfe, #edf7fb)
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .78rem;
  font-weight: 800;
  color: var(--blue)
}

.eyebrow:before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--red)
}

h1,
h2,
h3,
h4 {
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 16px
}

h1 {
  font-size: clamp(2.6rem, 5vw, 5.15rem);
  letter-spacing: -.055em
}

h2 {
  font-size: clamp(2rem, 3.6vw, 3.35rem);
  letter-spacing: -.04em
}

h3 {
  font-size: 1.35rem
}

p {
  margin: 0 0 18px
}

.lead {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 720px
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: end;
  margin-bottom: 38px
}

.section-head p {
  max-width: 600px;
  color: var(--muted);
  margin: 0
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: .25s;
  cursor: pointer
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue2));
  box-shadow: 0 12px 28px rgba(0, 111, 159, .25)
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0, 111, 159, .33)
}

.btn-light {
  background: #fff;
  border-color: var(--line);
  color: var(--navy)
}

.btn-light:hover {
  border-color: var(--blue);
  color: var(--blue)
}

.btn-red {
  background: var(--red);
  color: #fff
}

.topbar {
  background: var(--navy);
  color: #d9edf5;
  font-size: .86rem
}

.topbar .container {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px
}

.topbar-list {
  display: flex;
  gap: 20px;
  align-items: center
}

.topbar a:hover {
  color: #fff
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(215, 233, 241, .8)
}

.navbar {
  height: 82px;
  display: flex;
  align-items: center;
  gap: 28px
}

.brand {
  display: flex;
  align-items: center;
  margin-right: auto
}

.brand img {
  width: 210px;
  height: auto
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px
}

.nav>a,
.drop-toggle {
  padding: 10px 11px;
  border-radius: 10px;
  color: #294a5c;
  font-weight: 700;
  font-size: .94rem;
  background: none;
  border: 0;
  cursor: pointer
}

.nav>a:hover,
.drop-toggle:hover,
.nav .active {
  color: var(--blue);
  background: #eef8fb
}

.drop {
  position: relative
}

.drop-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  width: 290px;
  padding: 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: .2s
}

.drop:hover .drop-menu,
.drop:focus-within .drop-menu {
  opacity: 1;
  visibility: visible;
  transform: none
}

.drop-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 10px;
  color: #355768;
  font-weight: 650
}

.drop-menu a:hover {
  background: var(--ice);
  color: var(--blue)
}

.nav-cta {
  white-space: nowrap
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  color: var(--navy);
  font-size: 1.25rem
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 60px;
  background: radial-gradient(circle at 78% 15%, rgba(0, 151, 199, .16), transparent 32%), linear-gradient(135deg, #f9fdff, #edf8fc)
}

.hero:after {
  content: "";
  position: absolute;
  inset: auto -170px -370px auto;
  width: 700px;
  height: 700px;
  background: url('../images/ent-pattern.svg') center/cover no-repeat;
  opacity: .65;
  transform: rotate(12deg)
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: 52px
}

.hero-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0 28px
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid #c9e4ee;
  background: rgba(255, 255, 255, .78);
  border-radius: 999px;
  color: #31596b;
  font-size: .88rem;
  font-weight: 700
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap
}

.doctor-visual {
  position: relative;
  min-height: 530px
}

.doctor-frame {
  position: absolute;
  inset: 25px 15px 0 65px;
  border-radius: 48% 48% 28px 28px;
  background: linear-gradient(145deg, #dff2f8, #cce7f1);
  border: 1px solid #c1e0eb;
  overflow: hidden;
  box-shadow: var(--shadow)
}

.doctor-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%
}

.floating-card {
  position: absolute;
  z-index: 2;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: var(--shadow)
}

.floating-card strong {
  display: block;
  color: var(--navy);
  font-size: 1.04rem
}

.floating-card small {
  color: var(--muted)
}

.fc-one {
  left: 0;
  bottom: 72px
}

.fc-two {
  right: 0;
  top: 72px
}

.quick-strip {
  margin-top: -1px;
  background: #fff;
  border-bottom: 1px solid var(--line)
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr)
}

.quick-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 24px 20px;
  border-right: 1px solid var(--line)
}

.quick-item:last-child {
  border-right: 0
}

.icon-box {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: #eaf7fb;
  color: var(--blue);
  font-size: 1.25rem
}

.quick-item strong {
  display: block;
  color: var(--navy)
}

.quick-item span {
  display: block;
  color: var(--muted);
  font-size: .86rem
}

.about-grid {
  display: grid;
  grid-template-columns: .88fr 1.12fr;
  gap: 64px;
  align-items: center
}

.about-card {
  position: relative;
  border-radius: 28px;
  background: linear-gradient(145deg, #eaf7fb, #d8edf5);
  padding: 34px 34px 0;
  min-height: 490px;
  overflow: hidden
}

.about-card img {
  height: 480px;
  width: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 22px 22px 0 0
}

.exp-badge {
  position: absolute;
  left: 22px;
  bottom: 22px;
  background: var(--navy);
  color: #fff;
  border-radius: 18px;
  padding: 16px 20px;
  box-shadow: 0 15px 30px rgba(6, 58, 88, .28)
}

.exp-badge b {
  font-size: 1.9rem;
  display: block;
  line-height: 1
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 25px 0
}

.check {
  display: flex;
  gap: 12px;
  align-items: flex-start
}

.check i {
  color: var(--red);
  margin-top: 5px
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px
}

.service-card {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(12, 75, 104, .06);
  transition: .28s
}

.service-card:after {
  content: "";
  position: absolute;
  right: -38px;
  bottom: -42px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: #e7f5fa;
  transition: .28s
}

.service-card:hover {
  transform: translateY(-7px);
  border-color: #b5dae8;
  box-shadow: var(--shadow)
}

.service-card:hover:after {
  transform: scale(1.5);
  background: #d8eff7
}

.service-icon {
  position: relative;
  z-index: 1;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  background: linear-gradient(145deg, var(--blue), var(--blue2));
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 24px
}

.service-card p {
  color: var(--muted);
  font-size: .94rem
}

.service-link {
  position: relative;
  z-index: 1;
  color: var(--blue);
  font-weight: 800;
  font-size: .92rem
}

.stats {
  background: linear-gradient(135deg, var(--navy), #075b7e);
  color: #fff
}

.stats h2,
.stats h3 {
  color: #fff
}

.stats-grid {
  display: grid;
  grid-template-columns: 1.35fr repeat(4, 1fr);
  gap: 20px;
  align-items: center
}

.stat {
  padding: 25px;
  border-left: 1px solid rgba(255, 255, 255, .18)
}

.stat b {
  display: block;
  font-size: 2.2rem;
  line-height: 1;
  color: #fff
}

.stat span {
  color: #cce6ef;
  font-size: .9rem
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px
}

.timeline-item {
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff
}

.timeline-item .year {
  display: inline-flex;
  padding: 6px 11px;
  background: #eaf7fb;
  color: var(--blue);
  border-radius: 999px;
  font-weight: 800;
  font-size: .82rem;
  margin-bottom: 16px
}

.timeline-item p {
  color: var(--muted);
  font-size: .92rem
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center
}

.feature-panel {
  padding: 34px;
  border-radius: 28px;
  background: linear-gradient(145deg, #eaf7fb, #f9fdff);
  border: 1px solid var(--line)
}

.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px
}

.feature {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px
}

.feature i {
  color: var(--blue);
  font-size: 1.1rem;
  margin-top: 4px
}

.feature strong {
  display: block;
  color: var(--navy);
  font-size: .95rem
}

.feature span {
  color: var(--muted);
  font-size: .83rem
}

.cta {
  padding: 42px;
  border-radius: 30px;
  background: linear-gradient(135deg, var(--blue), #008fbd);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  box-shadow: var(--shadow)
}

.cta h2 {
  color: #fff;
  margin-bottom: 8px
}

.cta p {
  color: #d9f1f8;
  margin: 0
}

.cta .btn {
  background: #fff;
  color: var(--blue)
}

.page-hero {
  padding: 76px 0;
  background: radial-gradient(circle at 85% 0, rgba(0, 151, 199, .17), transparent 30%), linear-gradient(135deg, #f8fdff, #edf8fc);
  border-bottom: 1px solid var(--line)
}

.breadcrumbs {
  display: flex;
  gap: 9px;
  align-items: center;
  color: var(--muted);
  font-size: .9rem;
  margin-bottom: 18px
}

.breadcrumbs a {
  color: var(--blue);
  font-weight: 700
}

.page-hero h1 {
  font-size: clamp(2.4rem, 4.5vw, 4.4rem)
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 42px
}

.article h2 {
  font-size: 2rem;
  margin-top: 36px
}

.article h3 {
  margin-top: 28px
}

.article p,
.article li {
  color: #4f6877
}

.article ul {
  padding-left: 20px
}

.side-card {
  position: sticky;
  top: 110px;
  padding: 24px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 12px 35px rgba(8, 68, 96, .08)
}

.side-card h3 {
  font-size: 1.2rem
}

.side-links {
  display: grid;
  gap: 8px
}

.side-links a {
  padding: 10px 12px;
  border-radius: 10px;
  background: #f3f9fb;
  color: #3d6172;
  font-weight: 700;
  font-size: .9rem
}

.side-links a:hover {
  background: #e6f4f9;
  color: var(--blue)
}

.profile-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 50px;
  align-items: start
}

.profile-photo {
  position: sticky;
  top: 112px;
  border-radius: 26px;
  overflow: hidden;
  background: #e8f3f7;
  border: 1px solid var(--line);
  box-shadow: var(--shadow)
}

.profile-photo img {
  width: 100%;
  height: 470px;
  object-fit: cover;
  object-position: top
}

.profile-info {
  padding: 22px
}

.profile-info .tag {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eaf7fb;
  color: var(--blue);
  font-weight: 800;
  font-size: .8rem
}

.credential-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px
}

.credential {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff
}

.credential i {
  color: var(--red);
  margin-right: 8px
}

.contact-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 34px
}

.contact-card {
  padding: 28px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: #fff
}

.contact-list {
  display: grid;
  gap: 16px
}

.contact-row {
  display: flex;
  gap: 14px
}

.contact-row i {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: #eaf7fb;
  color: var(--blue);
  border-radius: 14px;
  flex: 0 0 44px
}

.form-card {
  padding: 32px;
  border-radius: 24px;
  background: #f7fcfe;
  border: 1px solid var(--line)
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px
}

.field.full {
  grid-column: 1/-1
}

.field label {
  display: block;
  font-weight: 800;
  color: var(--navy);
  font-size: .88rem;
  margin-bottom: 7px
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #cfe3ec;
  background: #fff;
  border-radius: 13px;
  padding: 13px 14px;
  outline: none;
  color: var(--ink)
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 111, 159, .1)
}

.field textarea {
  min-height: 120px;
  resize: vertical
}

.form-note {
  font-size: .8rem;
  color: var(--muted);
  margin-top: 12px
}

.map-box {
  min-height: 330px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #eaf7fb, #d5edf6);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px
}

.blog-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 8px 25px rgba(8, 68, 96, .06)
}

.blog-cover {
  height: 180px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #e5f5fa, #f8fcfe);
  color: var(--blue);
  font-size: 3.5rem
}

.blog-body {
  padding: 22px
}

.blog-meta {
  font-size: .8rem;
  color: var(--muted);
  margin-bottom: 8px
}

.blog-body p {
  color: var(--muted);
  font-size: .92rem
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px
}

.gallery-card {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, #eef9fc, #d9eef6);
  display: flex;
  align-items: end;
  padding: 24px
}

.gallery-card:before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../images/ent-pattern.svg') center/cover no-repeat;
  opacity: .45
}

.gallery-card .gcontent {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, .9);
  padding: 16px;
  border-radius: 16px;
  width: 100%
}

.gallery-card i {
  color: var(--blue);
  margin-right: 7px
}

.footer {
  background: #042f49;
  color: #c8e0e9;
  padding: 64px 0 24px
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr .8fr .9fr 1fr;
  gap: 38px
}

.footer-logo {
  width: 205px;
  filter: brightness(0) invert(1);
  opacity: .95;
  margin-bottom: 18px
}

.footer h4 {
  color: #fff;
  margin-bottom: 18px
}

.footer p,
.footer a {
  color: #b8d2dc;
  font-size: .9rem
}

.footer-links {
  display: grid;
  gap: 9px
}

.footer a:hover {
  color: #fff
}

.socials {
  display: flex;
  gap: 10px;
  margin-top: 20px
}

.socials a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(255, 255, 255, .09)
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-top: 22px;
  margin-top: 42px;
  font-size: .82rem
}

.floating-actions {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  display: grid;
  gap: 10px
}

.float-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, .2);
  font-size: 1.2rem
}

.float-call {
  background: var(--blue)
}

.float-mail {
  background: var(--red)
}

.notice {
  padding: 16px 18px;
  border-radius: 14px;
  background: #fff8e8;
  border: 1px solid #f1d79e;
  color: #725615;
  font-size: .9rem
}

.success-card {
  text-align: center;
  max-width: 760px;
  margin: auto;
  padding: 55px;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow)
}

.success-icon {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e7f8ef;
  color: #1b8b50;
  font-size: 2.2rem;
  margin: 0 auto 22px
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: .65s ease
}

.reveal.visible {
  opacity: 1;
  transform: none
}

/* Homepage full-width banner */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important
}

.homepage-banner {
  width: 100%;
  overflow: hidden;
  background: #eaf3fb;
  border-bottom: 1px solid var(--line)
}

.homepage-banner-link {
  display: block;
  width: 100%
}

.homepage-banner picture,
.homepage-banner img {
  display: block;
  width: 100%
}

.homepage-banner img {
  height: auto;
  object-fit: cover;
  object-position: center
}

.mobile-ent-hero {
  display: none
}

@media(max-width:767px) {
  .homepage-banner {
    display: none
  }

  .mobile-ent-hero {
    display: block;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 84% 24%, rgba(69, 155, 238, .25), transparent 35%), linear-gradient(150deg, #f9fcff 0%, #e7f2ff 58%, #c9e3ff 100%);
    border-bottom: 1px solid #cbdff2
  }

  .mobile-ent-hero:before {
    content: "";
    position: absolute;
    left: -28%;
    right: -28%;
    bottom: -165px;
    height: 260px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0c61b8, #073875);
    transform: rotate(-4deg)
  }

  .mobile-ent-hero:after {
    content: "";
    position: absolute;
    right: -95px;
    top: 135px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: rgba(24, 117, 210, .2)
  }

  .mobile-ent-hero-inner {
    position: relative;
    z-index: 1;
    padding: 24px 18px 34px;
    text-align: center
  }

  .mobile-ent-logo {
    width: 174px;
    max-height: 62px;
    object-fit: contain;
    margin: 0 auto 18px
  }

  .mobile-ent-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .68rem;
    font-weight: 900;
    color: #145ba0;
    margin-bottom: 9px
  }

  .mobile-ent-kicker:before,
  .mobile-ent-kicker:after {
    content: "";
    width: 20px;
    height: 2px;
    background: #1974c9
  }

  .mobile-ent-hero h1 {
    font-size: clamp(2.2rem, 11vw, 3.45rem);
    line-height: .97;
    letter-spacing: -.055em;
    text-transform: uppercase;
    color: #062b63;
    margin: 0 0 9px
  }

  .mobile-ent-hero h2 {
    font-size: 1.05rem;
    letter-spacing: .055em;
    text-transform: uppercase;
    color: #273849;
    margin: 0 0 12px
  }

  .mobile-ent-tagline {
    font-size: .98rem;
    line-height: 1.45;
    color: #2a3b4d;
    margin: 0 auto 14px
  }

  .mobile-ent-tagline strong {
    color: #1167b7
  }

  .mobile-ent-photo-wrap {
    position: relative;
    height: 345px;
    margin: 4px auto 8px;
    max-width: 360px;
    overflow: hidden
  }

  .mobile-ent-photo-ring {
    position: absolute;
    width: 305px;
    height: 305px;
    border-radius: 50%;
    left: 50%;
    top: 34px;
    transform: translateX(-50%);
    background: linear-gradient(145deg, #5ab1f4, #136fc6);
    box-shadow: 0 22px 55px rgba(5, 68, 130, .18)
  }

  .mobile-ent-photo-wrap img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 20px 20px rgba(9, 45, 82, .18))
  }

  .mobile-ent-feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin: -14px auto 18px;
    max-width: 520px
  }

  .mobile-ent-feature-grid div {
    display: flex;
    align-items: center;
    gap: 9px;
    text-align: left;
    min-height: 58px;
    padding: 10px 11px;
    border-radius: 13px;
    background: rgba(255, 255, 255, .9);
    border: 1px solid rgba(135, 179, 221, .65);
    box-shadow: 0 8px 22px rgba(12, 72, 125, .08)
  }

  .mobile-ent-feature-grid i {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #e5f1ff;
    color: #0a64b6;
    font-size: .92rem
  }

  .mobile-ent-feature-grid span {
    font-size: .72rem;
    line-height: 1.25;
    font-weight: 800;
    color: #183653
  }

  .mobile-ent-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
    position: relative;
    z-index: 2
  }

  .mobile-ent-actions .btn {
    width: 100%;
    min-height: 48px;
    border-radius: 12px
  }

  .mobile-ent-location {
    position: relative;
    z-index: 2;
    margin: 13px 0 0;
    color: #fff;
    font-size: .82rem;
    font-weight: 800
  }
}

@media(max-width:390px) {
  .mobile-ent-photo-wrap {
    height: 315px
  }

  .mobile-ent-photo-ring {
    width: 275px;
    height: 275px
  }

  .mobile-ent-feature-grid {
    gap: 7px
  }

  .mobile-ent-feature-grid div {
    padding: 9px;
    min-height: 55px
  }

  .mobile-ent-feature-grid span {
    font-size: .67rem
  }
}

/* Final overrides */
.mobile-ent-hero { min-height:clamp(430px,45.38vw,845px); background:url('../images/bannerimg.png') center/cover no-repeat; }
.mobile-ent-hero::before,.mobile-ent-hero::after,.mobile-ent-hero-inner { display:none !important; }
.stats.section { padding-top:44px; padding-bottom:44px; }
.stats-grid { min-height:0; }
.responsive-map { width:100%; height:clamp(320px,38vw,480px); overflow:hidden; border:1px solid var(--line); border-radius:24px; box-shadow:0 14px 36px rgba(8,68,96,.10); background:#eaf7fb; }
.responsive-map iframe { display:block; width:100%; height:100%; border:0; }
@media(max-width:767px) {
  .mobile-ent-hero { min-height:520px; background-position:center; }
  .stats.section { padding-top:38px; padding-bottom:38px; }
  .responsive-map { height:360px; border-radius:18px; }
}

@media(max-width:1050px) {
  .nav {
    display: none
  }

  .menu-toggle {
    display: grid;
    place-items: center
  }

  .nav-cta {
    display: none
  }

  .hero-grid,
  .about-grid,
  .feature-grid,
  .profile-grid,
  .contact-grid {
    grid-template-columns: 1fr
  }

  .doctor-visual {
    max-width: 650px;
    width: 100%;
    margin: auto
  }

  .about-card {
    max-width: 620px
  }

  .cards {
    grid-template-columns: repeat(2, 1fr)
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr 1fr
  }

  .stats-grid>div:first-child {
    grid-column: 1/-1
  }

  .timeline {
    grid-template-columns: repeat(2, 1fr)
  }

  .content-grid {
    grid-template-columns: 1fr
  }

  .side-card {
    position: static
  }

  .profile-photo {
    position: static;
    max-width: 440px
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr
  }

  .blog-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media(max-width:700px) {
  :root {
    --container: min(100% - 28px, 1180px)
  }

  .section {
    padding: 66px 0
  }

  .topbar {
    display: none
  }

  .navbar {
    height: 72px
  }

  .brand img {
    width: 170px
  }

  .hero {
    padding: 52px 0 40px
  }

  .hero-grid {
    gap: 24px
  }

  .hero h1 {
    font-size: 2.75rem
  }

  .doctor-visual {
    min-height: 430px
  }

  .doctor-frame {
    inset: 20px 12px 0 32px
  }

  .floating-card {
    padding: 12px 14px
  }

  .fc-two {
    right: 0;
    top: 28px
  }

  .fc-one {
    left: 0;
    bottom: 25px
  }

  .quick-grid {
    grid-template-columns: 1fr 1fr
  }

  .quick-item {
    border-bottom: 1px solid var(--line)
  }

  .quick-item:nth-child(2) {
    border-right: 0
  }

  .section-head {
    align-items: start;
    flex-direction: column
  }

  .cards,
  .feature-list,
  .credential-grid,
  .blog-grid,
  .gallery-grid,
  .form-grid {
    grid-template-columns: 1fr
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr
  }

  .stat {
    padding: 18px 12px
  }

  .timeline {
    grid-template-columns: 1fr
  }

  .cta {
    padding: 28px;
    align-items: flex-start;
    flex-direction: column
  }

  .footer-grid {
    grid-template-columns: 1fr
  }

  .footer-bottom {
    flex-direction: column
  }

  .about-card {
    padding: 22px 22px 0;
    min-height: 400px
  }

  .about-card img {
    height: 390px
  }

  .profile-photo img {
    height: 430px
  }

  .page-hero {
    padding: 58px 0
  }

  .floating-actions {
    right: 14px;
    bottom: 14px
  }

  .float-btn {
    width: 48px;
    height: 48px
  }
}

.mobile-panel {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(390px, 90vw);
  background: #fff;
  z-index: 120;
  transform: translateX(100%);
  transition: .3s;
  box-shadow: -20px 0 60px rgba(0, 0, 0, .18);
  padding: 25px;
  overflow: auto
}

.mobile-panel.open {
  transform: none
}

.mobile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line)
}

.mobile-head img {
  width: 180px
}

.mobile-close {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff
}

.mobile-links {
  display: grid;
  padding-top: 15px
}

.mobile-links>a,
.mobile-links details>summary {
  padding: 13px 5px;
  border-bottom: 1px solid #e7f1f5;
  font-weight: 750;
  color: var(--navy);
  cursor: pointer
}

.mobile-links details a {
  display: block;
  padding: 10px 16px;
  color: #456372;
  font-size: .92rem
}

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 32, 48, .55);
  z-index: 110;
  opacity: 0;
  visibility: hidden;
  transition: .25s
}

.menu-overlay.show {
  opacity: 1;
  visibility: visible
}


/* Personal doctor branding and supplied clinical imagery */
.brand-name {
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  line-height: 1.05;
  min-width: 215px
}

.brand-title {
  font-size: 1.34rem;
  font-weight: 900;
  color: #07386d;
  letter-spacing: -.025em
}

.brand-subtitle {
  font-size: .68rem;
  font-weight: 800;
  color: #1671b8;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-top: 5px
}

.mobile-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1
}

.mobile-brand strong {
  font-size: 1.15rem;
  color: #07386d
}

.mobile-brand span {
  font-size: .68rem;
  color: #1671b8;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: 4px
}

.footer-brand {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
  line-height: 1.12
}

.footer-brand strong {
  font-size: 1.65rem;
  color: #fff;
  letter-spacing: -.025em
}

.footer-brand span {
  font-size: .72rem;
  color: #8fd3ee;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 800;
  margin-top: 7px
}

.homepage-banner img {
  width: 100%;
  height: clamp(320px, 40vw, 650px);
  object-fit: cover;
  object-position: center
}

.service-card {
  padding: 0 22px 24px;
  min-height: 410px;
  display: flex;
  flex-direction: column
}

.service-media {
  display: block;
  height: 190px;
  margin: 0 -22px 20px;
  overflow: hidden;
  border-radius: 21px 21px 0 0;
  background: #dceef7
}

.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease
}

.service-card:hover .service-media img {
  transform: scale(1.055)
}

.service-card .service-icon {
  position: absolute;
  top: 160px;
  left: 22px;
  width: 50px;
  height: 50px;
  margin: 0;
  box-shadow: 0 10px 24px rgba(0, 85, 145, .24);
  border: 4px solid #fff
}

.service-card h3 {
  margin-top: 22px
}

.service-card .service-link {
  margin-top: auto;
  padding-top: 8px
}

.treatment-feature-image,
.article-feature {
  margin: 0 0 30px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 16px 38px rgba(8, 68, 96, .11);
  background: #eef8fc
}

.treatment-feature-image img {
  width: 100%;
  height: clamp(280px, 38vw, 500px);
  object-fit: cover
}

.article-feature img {
  width: 100%;
  height: clamp(260px, 34vw, 460px);
  object-fit: cover
}

.blog-cover {
  display: block;
  height: 220px;
  overflow: hidden;
  background: #e8f4fa
}

.blog-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease
}

.blog-card:hover .blog-cover img {
  transform: scale(1.05)
}

.blog-card {
  transition: transform .28s ease, box-shadow .28s ease
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow)
}

.image-gallery-card {
  padding: 0;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  background: #dceff7
}

.image-gallery-card:before {
  display: none
}

.image-gallery-card>img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease
}

.image-gallery-card:hover>img {
  transform: scale(1.06)
}

.image-gallery-card:after {
  content: "";
  position: absolute;
  inset: 30% 0 0;
  background: linear-gradient(transparent, rgba(1, 28, 52, .76))
}

.image-gallery-card .gcontent {
  margin: 18px;
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px)
}

.home-articles {
  background: #fff
}

.mobile-ent-hero-inner {
  padding-top: 28px
}

@media(max-width:1050px) {
  .brand-name {
    min-width: 190px
  }

  .brand-title {
    font-size: 1.18rem
  }

  .brand-subtitle {
    font-size: .61rem
  }

  .service-card {
    min-height: 420px
  }
}

@media(max-width:767px) {
  .homepage-banner {
    display: none
  }

  .mobile-ent-hero {
    display: block
  }

  .mobile-ent-hero-inner {
    padding-top: 27px
  }

  .service-card {
    min-height: 0
  }

  .service-media {
    height: 220px
  }

  .treatment-feature-image img,
  .article-feature img {
    height: 260px
  }

  .blog-cover {
    height: 220px
  }

  .image-gallery-card {
    min-height: 300px
  }
}

@media(max-width:700px) {
  .brand-name {
    min-width: 0
  }

  .brand-title {
    font-size: 1.03rem
  }

  .brand-subtitle {
    font-size: .55rem;
    letter-spacing: .08em
  }
}

@media(max-width:390px) {
  .brand-title {
    font-size: .96rem
  }

  .brand-subtitle {
    font-size: .51rem
  }

  .service-media {
    height: 205px
  }
}

/* =========================================================
   FINAL RESPONSIVE HEADER + MOBILE OVERFLOW FIX (v5)
   ========================================================= */
html,
body {
  max-width: 100%;
  overflow-x: clip
}

.header .container,
.topbar .container {
  width: min(1360px, calc(100% - 40px))
}

.navbar {
  gap: 14px
}

.navbar>* {
  min-width: 0
}

.brand-name {
  flex: 0 0 auto;
  min-width: 220px;
  overflow: visible
}

.brand-title,
.brand-subtitle {
  display: block;
  white-space: nowrap
}

.nav {
  gap: 2px;
  min-width: 0;
  flex: 0 1 auto
}

.nav>a,
.drop-toggle {
  white-space: nowrap;
  padding: 9px 8px;
  font-size: .88rem
}

.nav-cta {
  flex: 0 0 auto;
  min-height: 46px;
  padding: 0 18px;
  font-size: .9rem
}

.quick-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr))
}

.quick-grid>* {
  min-width: 0
}

.quick-item {
  min-width: 0
}

.quick-item>span:last-child {
  min-width: 0
}

.quick-item strong,
.quick-item>span:last-child>span {
  overflow-wrap: anywhere
}

/* Use the compact mobile navigation before the desktop menu can wrap. */
@media(max-width:1240px) {
  .nav {
    display: none
  }

  .menu-toggle {
    display: grid;
    place-items: center;
    flex: 0 0 46px;
    margin-left: auto
  }

  .nav-cta {
    display: none
  }
}

@media(max-width:767px) {
  .header .container {
    width: calc(100% - 24px)
  }

  .header {
    width: 100%
  }

  .navbar {
    height: auto;
    min-height: 72px;
    padding: 8px 0;
    gap: 10px
  }

  .brand-name {
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100% - 56px);
    margin-right: 0;
    overflow: visible
  }

  .brand-title {
    font-size: 1.02rem;
    line-height: 1.08;
    letter-spacing: -.02em;
    white-space: nowrap
  }

  .brand-subtitle {
    font-size: .53rem;
    line-height: 1.15;
    letter-spacing: .07em;
    margin-top: 4px;
    white-space: nowrap
  }

  .menu-toggle {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
    border-radius: 12px
  }

  .quick-strip {
    overflow: hidden
  }

  .quick-strip .container {
    width: 100%;
    max-width: none
  }

  .quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%
  }

  .quick-item {
    min-width: 0;
    padding: 18px 14px;
    gap: 10px;
    align-items: flex-start;
    flex-direction: column;
    overflow: hidden
  }

  .quick-item:nth-child(2n) {
    border-right: 0
  }

  .quick-item:nth-last-child(-n+2) {
    border-bottom: 0
  }

  .icon-box {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 13px
  }

  .quick-item strong {
    font-size: .94rem;
    line-height: 1.35
  }

  .quick-item>span:last-child>span {
    font-size: .82rem;
    line-height: 1.5
  }

  .mobile-panel {
    width: min(360px, 100vw);
    padding: 18px
  }

  .mobile-head {
    gap: 12px
  }

  .mobile-brand {
    min-width: 0;
    overflow: visible
  }

  .mobile-brand strong {
    font-size: 1.05rem;
    white-space: nowrap
  }

  .mobile-brand span {
    font-size: .6rem;
    white-space: nowrap
  }

  .mobile-close {
    flex: 0 0 42px
  }

  .mobile-links>a,
  .mobile-links details>summary {
    white-space: normal;
    overflow-wrap: anywhere
  }

  .footer p,
  .footer a {
    overflow-wrap: anywhere
  }
}

@media(max-width:380px) {
  .header .container {
    width: calc(100% - 20px)
  }

  .brand-title {
    font-size: .96rem
  }

  .brand-subtitle {
    font-size: .49rem;
    letter-spacing: .055em
  }

  .quick-item {
    padding: 16px 12px
  }

  .quick-item strong {
    font-size: .88rem
  }

  .quick-item>span:last-child>span {
    font-size: .78rem
  }
}


/* Home gallery + testimonials (v6) */
.home-gallery {
  background: #fff
}

.home-gallery-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr .75fr;
  grid-template-rows: 260px 260px;
  gap: 18px
}

.home-gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #dceff7;
  box-shadow: 0 12px 34px rgba(7, 65, 94, .1);
  isolation: isolate
}

.home-gallery-large {
  grid-row: 1/3
}

.home-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s ease
}

.home-gallery-item:after {
  content: "";
  position: absolute;
  inset: 28% 0 0;
  background: linear-gradient(transparent, rgba(1, 27, 51, .86));
  z-index: 1
}

.home-gallery-item span {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 20px;
  z-index: 2;
  color: #fff
}

.home-gallery-item strong {
  display: block;
  font-size: 1.05rem;
  line-height: 1.25
}

.home-gallery-large strong {
  font-size: 1.35rem
}

.home-gallery-item small {
  display: block;
  margin-top: 4px;
  color: #dceef7;
  font-size: .82rem
}

.home-gallery-item:hover img {
  transform: scale(1.06)
}

.home-gallery-item:focus-visible {
  outline: 4px solid rgba(0, 151, 199, .35);
  outline-offset: 4px
}

.testimonial-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #eef8fc 0%, #f9fdff 52%, #edf6fb 100%)
}

.testimonial-section:before {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  right: -120px;
  top: -160px;
  background: rgba(0, 151, 199, .08)
}

.testimonial-heading {
  position: relative;
  max-width: 760px;
  margin: 0 auto 40px;
  text-align: center
}

.testimonial-heading .eyebrow:before {
  display: none
}

.testimonial-heading p {
  color: var(--muted);
  max-width: 650px;
  margin: 0 auto
}

.testimonial-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  min-height: 310px;
  padding: 30px;
  border: 1px solid #d5e9f1;
  border-radius: 24px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 12px 34px rgba(7, 65, 94, .08)
}

.testimonial-card.featured {
  transform: translateY(-10px);
  border-color: #acd7e7;
  box-shadow: 0 20px 46px rgba(7, 65, 94, .13)
}

.testimonial-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px
}

.testimonial-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(145deg, var(--blue), var(--blue2));
  font-size: 1.1rem
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  color: #f2aa20;
  font-size: .78rem
}

.testimonial-card>p {
  color: #365565;
  font-size: 1.02rem;
  line-height: 1.8;
  flex: 1
}

.testimonial-person {
  display: flex;
  align-items: center;
  gap: 13px;
  padding-top: 18px;
  border-top: 1px solid var(--line)
}

.testimonial-person>span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e8f6fb;
  color: var(--blue);
  font-weight: 900
}

.testimonial-person strong,
.testimonial-person small {
  display: block
}

.testimonial-person strong {
  color: var(--navy);
  font-size: .92rem
}

.testimonial-person small {
  color: var(--muted);
  font-size: .78rem
}

@media(max-width:1050px) {
  .home-gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 330px 230px 230px
  }

  .home-gallery-large {
    grid-column: 1/3;
    grid-row: auto
  }

  .testimonial-grid {
    grid-template-columns: 1fr 1fr
  }

  .testimonial-card.featured {
    transform: none
  }

  .testimonial-card:last-child {
    grid-column: 1/3;
    max-width: 560px;
    width: 100%;
    margin: auto
  }
}

@media(max-width:700px) {
  .home-gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 14px
  }

  .home-gallery-large {
    grid-column: auto
  }

  .home-gallery-item,
  .home-gallery-large {
    height: 250px
  }

  .home-gallery-item span {
    left: 18px;
    right: 18px;
    bottom: 16px
  }

  .home-gallery-item strong,
  .home-gallery-large strong {
    font-size: 1.05rem
  }

  .testimonial-heading {
    text-align: left;
    margin-bottom: 28px
  }

  .testimonial-heading .eyebrow:before {
    display: block
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
    gap: 16px
  }

  .testimonial-card,
  .testimonial-card:last-child {
    grid-column: auto;
    max-width: none;
    min-height: auto;
    padding: 24px
  }

  .testimonial-card>p {
    font-size: .96rem;
    line-height: 1.7
  }
}


/* Consultation icons + testimonial carousel fix (v7) */
.quick-strip {
  overflow: hidden;
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line)
}

.quick-strip .container {
  max-width: 1180px
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%
}

.quick-item {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  min-height: 96px;
  padding: 18px 20px;
  border-right: 1px solid var(--line);
  color: var(--navy);
  transition: background .25s ease, transform .25s ease
}

.quick-item:last-child {
  border-right: 0
}

.quick-item:hover {
  background: #f4fbfe
}

.quick-item .icon-box {
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(145deg, #e8f7fb, #dff1f7);
  color: #0b789e
}

.quick-svg {
  display: block;
  width: 23px;
  height: 23px;
  fill: currentColor
}

.quick-copy {
  display: block;
  min-width: 0
}

.quick-copy strong,
.quick-copy>span {
  display: block;
  overflow-wrap: normal;
  word-break: normal
}

.quick-copy strong {
  font-size: .93rem;
  line-height: 1.28;
  color: var(--navy)
}

.quick-copy>span {
  margin-top: 4px;
  font-size: .82rem;
  line-height: 1.4;
  color: var(--muted)
}

.testimonial-slider {
  position: relative;
  padding: 0 48px
}

.testimonial-viewport {
  overflow: hidden;
  padding: 12px 4px 22px
}

.testimonial-track {
  display: flex;
  gap: 22px;
  will-change: transform;
  transition: transform .55s cubic-bezier(.22, .61, .36, 1)
}

.testimonial-card {
  flex: 0 0 calc((100% - 44px)/3);
  min-width: 0;
  min-height: 310px;
  margin: 0;
  transform: none !important
}

.testimonial-icon .quote-svg {
  width: 23px;
  height: 23px;
  fill: currentColor
}

.testimonial-stars>span {
  display: block;
  letter-spacing: 2px;
  color: #f2aa20;
  font-size: .88rem;
  line-height: 1
}

.testimonial-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  width: 42px;
  height: 42px;
  margin-top: -21px;
  display: grid;
  place-items: center;
  border: 1px solid #b9dce8;
  border-radius: 50%;
  background: #fff;
  color: var(--blue);
  box-shadow: 0 10px 26px rgba(7, 65, 94, .13);
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease
}

.testimonial-arrow:hover {
  transform: scale(1.06);
  background: var(--blue);
  color: #fff
}

.testimonial-arrow:disabled {
  opacity: .42;
  cursor: not-allowed;
  transform: none
}

.testimonial-arrow svg {
  width: 17px;
  height: 17px;
  fill: currentColor
}

.testimonial-prev {
  left: 0
}

.testimonial-next {
  right: 0
}

.testimonial-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 5px
}

.testimonial-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #bfd9e4;
  cursor: pointer;
  transition: width .25s ease, background .25s ease
}

.testimonial-dot.active {
  width: 27px;
  border-radius: 20px;
  background: var(--blue)
}

@media(max-width:1050px) {
  .testimonial-card {
    flex-basis: calc((100% - 22px)/2)
  }
}

@media(max-width:700px) {
  .quick-strip .container {
    width: 100%;
    max-width: none
  }

  .quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .quick-item {
    min-height: 92px;
    padding: 15px 14px;
    gap: 11px;
    border-bottom: 1px solid var(--line)
  }

  .quick-item:nth-child(2n) {
    border-right: 0
  }

  .quick-item:nth-last-child(-n+2) {
    border-bottom: 0
  }

  .quick-item .icon-box {
    flex-basis: 44px;
    width: 44px;
    height: 44px;
    border-radius: 14px
  }

  .quick-svg {
    width: 21px;
    height: 21px
  }

  .quick-copy strong {
    font-size: .85rem
  }

  .quick-copy>span {
    font-size: .76rem
  }

  .testimonial-slider {
    padding: 0 35px
  }

  .testimonial-card {
    flex-basis: 100%;
    min-height: auto;
    padding: 24px
  }

  .testimonial-arrow {
    width: 36px;
    height: 36px;
    margin-top: -18px
  }
}

@media(max-width:520px) {
  .quick-grid {
    grid-template-columns: 1fr
  }

  .quick-item {
    min-height: 78px;
    padding: 14px 18px;
    border-right: 0 !important;
    border-bottom: 1px solid var(--line) !important;
    flex-direction: row;
    align-items: center
  }

  .quick-item:last-child {
    border-bottom: 0 !important
  }

  .quick-item .icon-box {
    flex-basis: 46px;
    width: 46px;
    height: 46px
  }

  .quick-copy strong {
    font-size: .9rem
  }

  .quick-copy>span {
    font-size: .8rem
  }

  .testimonial-slider {
    padding: 0
  }

  .testimonial-viewport {
    padding: 8px 2px 18px
  }

  .testimonial-arrow {
    position: static;
    display: inline-grid;
    margin: 14px 5px 0;
    vertical-align: middle
  }

  .testimonial-prev {
    margin-left: calc(50% - 49px)
  }

  .testimonial-dots {
    margin-top: -38px;
    padding-bottom: 12px;
    pointer-events: none
  }

  .testimonial-dot {
    display: none
  }
}

/* Mobile testimonial controls refinement */
@media(max-width:520px) {
  .testimonial-slider {
    padding: 0 25px
  }

  .testimonial-arrow {
    position: absolute;
    top: 50%;
    margin-top: -18px
  }

  .testimonial-prev {
    left: -3px;
    margin-left: 0
  }

  .testimonial-next {
    right: -3px
  }

  .testimonial-dots {
    margin-top: 4px;
    padding-bottom: 0;
    pointer-events: auto
  }

  .testimonial-dot {
    display: block
  }
}


/* =========================================================
   CLIENT CONTENT + RESPONSIVE REFINEMENT (v8)
   ========================================================= */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden
}

main,
section,
.container,
.profile-grid,
.content-grid,
.article,
.check,
.check span,
.service-card,
.feature {
  min-width: 0
}

.article,
.article p,
.article li,
.check span,
.credential,
.footer p,
.footer a {
  overflow-wrap: anywhere
}

/* Replaces the outdated image banner with editable responsive content. */
.homepage-banner {
  display: none !important
}

.mobile-ent-hero {
  display: block;
  background: radial-gradient(circle at 83% 18%, rgba(49, 143, 226, .22), transparent 34%), linear-gradient(145deg, #fbfdff 0%, #eaf4ff 58%, #d7ebff 100%);
  border-bottom: 1px solid #cbdff2;
  position: relative;
  overflow: hidden
}

.allergy-highlight {
  border: 2px solid #7ac7df !important;
  background: linear-gradient(160deg, #fff 0%, #eefaff 100%) !important;
  box-shadow: 0 18px 42px rgba(0, 111, 159, .16) !important
}

.allergy-highlight:before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--blue), var(--blue2), #62c6df);
  z-index: 3
}

.allergy-badge {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-self: flex-start;
  margin-top: 4px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #dff6fc;
  color: #056d91;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase
}

.allergy-feature {
  border-color: #89cfe3 !important;
  background: linear-gradient(145deg, #fff, #eaf9fd) !important;
  box-shadow: 0 10px 26px rgba(0, 111, 159, .1)
}

.allergy-feature i {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #dff5fb
}

.allergy-callout,
.allergy-focus-box,
.thyroid-fellowship-note {
  border: 1px solid #a8d9e8;
  background: linear-gradient(145deg, #eefaff, #fff);
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(0, 111, 159, .08)
}

.allergy-callout {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  padding: 20px;
  margin: 28px 0
}

.allergy-callout i {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--blue), var(--blue2));
  color: #fff
}

.allergy-callout strong,
.allergy-callout span {
  display: block
}

.allergy-callout strong {
  color: var(--navy);
  font-size: 1rem
}

.allergy-callout span {
  color: var(--muted);
  font-size: .9rem;
  margin-top: 4px
}

.allergy-focus-box {
  padding: 24px;
  margin: 0 0 32px;
  border-left: 5px solid var(--blue)
}

.allergy-focus-label {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: #dff6fc;
  color: #056d91;
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 10px
}

.allergy-focus-box h3 {
  margin-bottom: 8px
}

.allergy-focus-box p {
  margin: 0 !important
}

.thyroid-fellowship-note {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 17px 20px;
  margin-bottom: 28px;
  color: var(--navy);
  font-weight: 800
}

.thyroid-fellowship-note i {
  color: var(--red);
  font-size: 1.15rem
}

.timeline {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr))
}

@media(min-width:768px) {
  .mobile-ent-hero:before {
    content: "";
    position: absolute;
    left: -10%;
    right: -10%;
    bottom: -250px;
    height: 400px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0c61b8, #073875);
    transform: rotate(-2deg)
  }

  .mobile-ent-hero:after {
    content: "";
    position: absolute;
    right: -110px;
    top: 70px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(24, 117, 210, .12)
  }

  .mobile-ent-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    margin: 0 auto;
    padding: 58px 28px 72px;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
    grid-template-areas: "kicker photo" "title photo" "subtitle photo" "tagline photo" "features photo" "actions photo" "location photo";
    column-gap: 54px;
    align-items: center;
    text-align: left
  }

  .mobile-ent-kicker {
    grid-area: kicker;
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .72rem;
    font-weight: 900;
    color: #145ba0;
    margin-bottom: 9px
  }

  .mobile-ent-kicker:before {
    content: "";
    width: 24px;
    height: 2px;
    background: #1974c9
  }

  .mobile-ent-kicker:after {
    display: none
  }

  .mobile-ent-hero h1 {
    grid-area: title;
    font-size: clamp(3.4rem, 5.4vw, 5.6rem);
    line-height: .96;
    letter-spacing: -.06em;
    text-transform: uppercase;
    color: #062b63;
    margin: 0 0 10px
  }

  .mobile-ent-hero h2 {
    grid-area: subtitle;
    font-size: 1.35rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #273849;
    margin: 0 0 13px
  }

  .mobile-ent-tagline {
    grid-area: tagline;
    font-size: 1.04rem;
    line-height: 1.55;
    color: #2a3b4d;
    margin: 0 0 8px;
    max-width: 680px
  }

  .mobile-ent-tagline strong {
    color: #1167b7
  }

  .mobile-ent-photo-wrap {
    grid-area: photo;
    position: relative;
    height: 500px;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    overflow: hidden;
    align-self: end
  }

  .mobile-ent-photo-ring {
    position: absolute;
    width: 430px;
    height: 430px;
    border-radius: 50%;
    left: 50%;
    top: 42px;
    transform: translateX(-50%);
    background: linear-gradient(145deg, #5ab1f4, #136fc6);
    box-shadow: 0 22px 55px rgba(5, 68, 130, .18)
  }

  .mobile-ent-photo-wrap img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 20px 20px rgba(9, 45, 82, .18))
  }

  .mobile-ent-feature-grid {
    grid-area: features;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 18px 0;
    max-width: 680px
  }

  .mobile-ent-feature-grid div {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 62px;
    padding: 11px 13px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(135, 179, 221, .65);
    box-shadow: 0 8px 22px rgba(12, 72, 125, .08)
  }

  .mobile-ent-feature-grid i {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #e5f1ff;
    color: #0a64b6;
    font-size: .95rem
  }

  .mobile-ent-feature-grid span {
    font-size: .8rem;
    line-height: 1.3;
    font-weight: 800;
    color: #183653
  }

  .mobile-ent-actions {
    grid-area: actions;
    display: flex;
    flex-wrap: wrap;
    gap: 10px
  }

  .mobile-ent-actions .btn {
    width: auto;
    min-height: 48px
  }

  .mobile-ent-location {
    grid-area: location;
    margin: 14px 0 0;
    color: #174a72;
    font-size: .88rem;
    font-weight: 900
  }
}

@media(max-width:767px) {
  .mobile-ent-hero-inner {
    padding-left: 16px;
    padding-right: 16px
  }

  .mobile-ent-hero h1 {
    font-size: clamp(2.05rem, 10.7vw, 3.25rem);
    overflow-wrap: normal;
    word-break: normal
  }

  .mobile-ent-tagline {
    font-size: .93rem
  }

  .mobile-ent-feature-grid div {
    min-width: 0
  }

  .mobile-ent-feature-grid span {
    overflow-wrap: anywhere
  }

  .profile-grid {
    gap: 28px
  }

  .profile-photo {
    width: 100%;
    max-width: none
  }

  .profile-photo img {
    height: min(430px, 112vw)
  }

  .article h2 {
    font-size: clamp(1.85rem, 9.2vw, 2.65rem);
    line-height: 1.12;
    letter-spacing: -.04em;
    overflow-wrap: break-word
  }

  .article p,
  .article li {
    font-size: 1rem;
    line-height: 1.72
  }

  .check-list {
    gap: 14px;
    margin: 24px 0
  }

  .check {
    gap: 11px;
    padding-right: 0
  }

  .check i {
    flex: 0 0 auto
  }

  .check span {
    font-size: .96rem;
    line-height: 1.55
  }

  .floating-actions {
    right: 10px;
    bottom: 10px;
    display: flex;
    gap: 8px
  }

  .float-btn {
    width: 46px;
    height: 46px;
    font-size: 1rem
  }

  .section {
    padding: 56px 0
  }

  .section-sm {
    padding: 46px 0
  }

  .cta {
    padding: 24px
  }

  .allergy-callout {
    padding: 17px
  }
}

@media(max-width:390px) {
  .mobile-ent-feature-grid {
    grid-template-columns: 1fr
  }

  .mobile-ent-feature-grid {
    margin-top: -8px
  }

  .mobile-ent-photo-wrap {
    height: 300px
  }

  .mobile-ent-photo-ring {
    width: 258px;
    height: 258px
  }

  .brand-title {
    font-size: .92rem
  }

  .brand-subtitle {
    font-size: .47rem
  }
}

/* Final precedence: requested banner, compact profile and maps */
.mobile-ent-hero {
  width:100%;
  min-height:0;
  aspect-ratio:1862 / 845;
  background:#eef5fb url('../images/bannerimg.png') center center / contain no-repeat;
}
.mobile-ent-hero::before,.mobile-ent-hero::after,.mobile-ent-hero-inner { display:none !important; }
.stats.section { padding-top:44px; padding-bottom:44px; }
.stats-grid { min-height:0; }
.responsive-map { width:100%; height:clamp(320px,38vw,480px); overflow:hidden; border:1px solid var(--line); border-radius:24px; box-shadow:0 14px 36px rgba(8,68,96,.10); background:#eaf7fb; }
.responsive-map iframe { display:block; width:100%; height:100%; border:0; }
@media(max-width:767px) {
  .mobile-ent-hero {
    min-height:0;
    aspect-ratio:1862 / 845;
    background-size:100% 100%;
    background-position:center;
  }
  .stats.section { padding-top:38px; padding-bottom:38px; }
  .responsive-map { height:360px; border-radius:18px; }
}

/* Global mobile safety for every page */
html,body { width:100%; max-width:100%; overflow-x:hidden; }
img,svg,video,canvas,iframe { max-width:100%; }
.container,.header-inner,.footer-grid,.contact-grid,.feature-grid,.profile-grid,.service-grid,.blog-grid,.gallery-grid,.stats-grid { min-width:0; }
.container > *,section * { min-width:0; }
@media(max-width:767px) {
  h1,h2,h3,p,a,span,strong,li { overflow-wrap:break-word; }
  .section-head { align-items:flex-start; }
  .section-head .btn { flex:0 0 auto; }
  .contact-grid,.feature-grid,.profile-grid,.service-grid,.blog-grid,.gallery-grid,.stats-grid,.footer-grid { grid-template-columns:minmax(0,1fr); }
}

/* Highest-priority mobile quick action layout */
@media(max-width:520px) {
  .quick-strip { padding:10px 0;background:linear-gradient(180deg,#f5fbfe,#fff); }
  .quick-strip .container { padding-left:10px;padding-right:10px; }
  .quick-grid { grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:10px; }
  .quick-item { min-height:132px;padding:14px 9px;border:1px solid #d7e8ef !important;border-radius:18px;background:#fff;box-shadow:0 8px 22px rgba(8,68,96,.07);flex-direction:column;justify-content:center;text-align:center;gap:9px; }
  .quick-item .icon-box { flex:0 0 44px;width:44px;height:44px;border-radius:14px; }
  .quick-copy { display:block;min-width:0; }
  .quick-copy strong { display:block;font-size:.78rem;line-height:1.25; }
  .quick-copy>span { display:block;margin-top:4px;font-size:.67rem;line-height:1.3;color:var(--muted); }
}

/* Highest-priority Professional Profile and contact buttons */
@media(max-width:767px) {
  .stats .stats-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:12px; }
  .stats .stats-grid>div:first-child { grid-column:1 / -1;margin-bottom:4px; }
  .stats .stats-grid>div:first-child h2 { font-size:clamp(1.75rem,8vw,2.35rem);line-height:1.08;margin-bottom:4px; }
  .stats .stat { min-height:128px;padding:18px 14px;border:1px solid rgba(255,255,255,.18);border-radius:18px;background:linear-gradient(145deg,rgba(255,255,255,.12),rgba(255,255,255,.045));box-shadow:0 12px 28px rgba(0,0,0,.12);display:flex;flex-direction:column;justify-content:center; }
  .stats .stat b { font-size:2.05rem;line-height:1;margin-bottom:8px; }
  .stats .stat span { font-size:.76rem;line-height:1.35; }
}
.float-call { background:#20b95a !important; }
.float-mail { background:#087fad !important; }

/* TRUE FINAL BANNER OVERRIDE — natural 1600x583 image, zero crop */
main,.mobile-ent-hero { margin-top:0 !important;padding-top:0 !important; }
.mobile-ent-hero {
  display:block !important;
  width:100% !important;
  height:auto !important;
  min-height:0 !important;
  margin:0 !important;
  padding:0 !important;
  overflow:hidden !important;
  aspect-ratio:auto !important;
  background:none !important;
  border:0 !important;
  line-height:0 !important;
}
.mobile-ent-hero::before,.mobile-ent-hero::after,.mobile-ent-hero-inner { display:none !important; }
.mobile-ent-hero .hero-banner-img {
  display:block !important;
  width:100% !important;
  max-width:none !important;
  height:auto !important;
  margin:0 !important;
  padding:0 !important;
  object-fit:contain !important;
  object-position:center top !important;
}
@media(max-width:767px) {
  .mobile-ent-hero,.mobile-ent-hero .hero-banner-img {
    width:100% !important;
    height:auto !important;
    min-height:0 !important;
    margin:0 !important;
    padding:0 !important;
  }
}
