/* Medicare Betegszállítás — content redesign (BetegszallitasEnhanceHtml) */

body.subpage-fallback-t2:has(.bs-page) #fallbackSecBody.tpl-section {
  padding-top: 40px !important;
  padding-bottom: 64px !important;
  background: #f3f6f9 !important;
}

.wp-import-content .bs-page,
#fallbackSecBody .bs-page {
  width: 100%;
  max-width: 100%;
  color: var(--text, #2c3e50);
}

.wp-import-content .bs-page h2,
body.subpage-fallback-t2 .tpl-section--white .tpl-prose .bs-page h2 {
  margin: 2.6rem 0 1.15rem !important;
  font-size: clamp(1.45rem, 2.4vw, 1.85rem) !important;
  line-height: 1.3 !important;
  letter-spacing: -0.02em;
  color: var(--navy, #1e3a50) !important;
  font-weight: 700 !important;
  background: none !important;
}

.wp-import-content .bs-page h3,
body.subpage-fallback-t2 .tpl-section--white .tpl-prose .bs-page h3 {
  margin: 0 0 0.85rem !important;
  font-size: 1.12rem !important;
  line-height: 1.4 !important;
  color: var(--navy, #1e3a50) !important;
  font-weight: 700 !important;
}

.bs-kicker {
  display: inline-flex;
  align-items: center;
  margin: 0 0 16px !important;
  padding: 7px 14px;
  border-radius: 999px;
  background: #e8f4f8;
  border: 1px solid rgba(74, 142, 166, 0.28);
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy, #1e3a50) !important;
}

.bs-lead {
  margin: 0 0 22px !important;
  font-size: 17px !important;
  line-height: 1.75 !important;
  color: var(--text, #2c3e50) !important;
  max-width: 40rem;
}

.bs-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  gap: 36px 48px;
  align-items: center;
  margin: 0 0 48px;
}

.bs-intro__media {
  margin: 0 !important;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(30, 58, 80, 0.1);
  box-shadow:
    0 4px 14px rgba(30, 58, 80, 0.08),
    0 24px 48px -20px rgba(30, 58, 80, 0.28);
  background: #fff;
}

.bs-intro__media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 6 / 5;
  margin: 0 !important;
  border-radius: 0 !important;
}

.bs-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 8px 0 14px;
}

.bs-contact__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 13px 22px !important;
  border-radius: 999px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  border: 1px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}

/* Prose/link színek felülírása — különben beleolvad a szöveg */
body.subpage-fallback-t2 .tpl-section--white .tpl-prose .bs-page .bs-contact__btn--primary,
.wp-import-content .bs-page .bs-contact__btn--primary,
#fallbackSecBody .bs-page .bs-contact__btn--primary {
  background: var(--navy, #1e3a50) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border-color: transparent !important;
}
body.subpage-fallback-t2 .tpl-section--white .tpl-prose .bs-page .bs-contact__btn--primary:hover,
.wp-import-content .bs-page .bs-contact__btn--primary:hover,
#fallbackSecBody .bs-page .bs-contact__btn--primary:hover {
  background: #163044 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

body.subpage-fallback-t2 .tpl-section--white .tpl-prose .bs-page .bs-contact__btn--phone,
.wp-import-content .bs-page .bs-contact__btn--phone,
#fallbackSecBody .bs-page .bs-contact__btn--phone {
  background: #2a6f8f !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border-color: transparent !important;
}
body.subpage-fallback-t2 .tpl-section--white .tpl-prose .bs-page .bs-contact__btn--phone:hover,
.wp-import-content .bs-page .bs-contact__btn--phone:hover,
#fallbackSecBody .bs-page .bs-contact__btn--phone:hover {
  background: #245f7a !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

body.subpage-fallback-t2 .tpl-section--white .tpl-prose .bs-page .bs-contact__btn--ghost,
.wp-import-content .bs-page .bs-contact__btn--ghost,
#fallbackSecBody .bs-page .bs-contact__btn--ghost {
  background: #fff !important;
  color: var(--navy, #1e3a50) !important;
  -webkit-text-fill-color: var(--navy, #1e3a50) !important;
  border-color: #c9d5e0 !important;
}
body.subpage-fallback-t2 .tpl-section--white .tpl-prose .bs-page .bs-contact__btn--ghost:hover,
.wp-import-content .bs-page .bs-contact__btn--ghost:hover,
#fallbackSecBody .bs-page .bs-contact__btn--ghost:hover {
  border-color: var(--navy, #1e3a50) !important;
  color: var(--navy, #1e3a50) !important;
  -webkit-text-fill-color: var(--navy, #1e3a50) !important;
}

.bs-contact__hint {
  margin: 0 !important;
  font-size: 14.5px !important;
  line-height: 1.55 !important;
  color: var(--text-mid, #5a6b7d) !important;
}

.bs-section {
  margin: 0 0 52px;
}

.bs-section > h2:first-child {
  margin-top: 0 !important;
}

.bs-section:first-of-type {
  margin-top: 8px;
}

.bs-section__lead {
  margin: 0 0 22px !important;
  font-size: 16.5px !important;
  line-height: 1.7 !important;
  color: var(--text-mid, #5a6b7d) !important;
  max-width: 46rem;
}

.bs-grid {
  display: grid;
  gap: 20px;
}
.bs-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bs-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.bs-card {
  background: #fff;
  border: 1px solid var(--border, #dbe2ea);
  border-radius: 18px;
  padding: 26px 24px 22px;
  box-shadow: 0 2px 12px rgb(30 58 80 / .05);
  min-height: 100%;
}
.bs-card--soft {
  background: linear-gradient(180deg, #f7fafc 0%, #fff 60%);
}
.bs-card p {
  margin: 0 !important;
  font-size: 15.5px !important;
  line-height: 1.65 !important;
  color: var(--text-mid, #5a6b7d) !important;
}

.bs-price-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 0 0 22px;
}

.bs-price {
  background: #fff;
  border: 1px solid var(--border, #dbe2ea);
  border-radius: 18px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 2px 12px rgb(30 58 80 / .05);
}
.bs-price__label {
  margin: 0 0 10px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-soft, #7a8a99) !important;
}
.bs-price__value {
  margin: 0 !important;
  font-size: clamp(1.55rem, 2.6vw, 2rem) !important;
  font-weight: 800 !important;
  color: var(--navy, #1e3a50) !important;
  line-height: 1.2 !important;
}

.bs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 28px;
}

.bs-notes {
  background: #fff;
  border: 1px solid #dbe2ea;
  border-radius: 18px;
  padding: 26px 28px 18px;
  box-shadow: 0 2px 10px rgb(30 58 80 / .04);
}
.bs-notes h3 {
  margin: 0 0 14px !important;
}
.bs-notes ul,
body.subpage-fallback-t2 .tpl-section--white .tpl-prose .bs-page .bs-notes ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.bs-notes li,
body.subpage-fallback-t2 .tpl-section--white .tpl-prose .bs-page .bs-notes li {
  position: relative;
  margin: 0 0 14px !important;
  padding: 0 0 0 18px !important;
  font-size: 15.5px !important;
  line-height: 1.65 !important;
  color: var(--text, #2c3e50) !important;
}
.bs-notes li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2a6f8f;
}

.bs-steps {
  list-style: none !important;
  margin: 0 0 24px !important;
  padding: 0 !important;
  display: grid;
  gap: 16px;
}
.bs-steps > li,
body.subpage-fallback-t2 .tpl-section--white .tpl-prose .bs-page .bs-steps > li {
  display: grid !important;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 18px;
  align-items: center !important;
  margin: 0 !important;
  padding: 22px 28px 22px 20px !important;
  background: #fff;
  border: 1px solid var(--border, #dbe2ea);
  border-radius: 18px;
  box-shadow: 0 2px 10px rgb(30 58 80 / .04);
  font-size: 16px !important;
  line-height: 1.6 !important;
  color: var(--text, #2c3e50) !important;
}
.bs-steps > li::before { display: none !important; content: none !important; }
.bs-steps__n {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy, #1e3a50);
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-weight: 800;
  font-size: 16px;
}
body.subpage-fallback-t2 .tpl-section--white .tpl-prose .bs-page .bs-steps__n,
.wp-import-content .bs-page .bs-steps__n,
#fallbackSecBody .bs-page .bs-steps__n {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}
.bs-steps a {
  color: #2a6f8f !important;
  font-weight: 700;
  text-decoration: none !important;
}
.bs-steps a:hover { text-decoration: underline !important; }

.bs-quotes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-items: start;
}

/* Erősebb szelektorok: a globális .bs-page h2 (2.6rem) különben nyer */
body.subpage-fallback-t2 .tpl-section--white .tpl-prose .bs-page .bs-section--quotes,
.wp-import-content .bs-page .bs-section--quotes,
#fallbackSecBody .bs-page .bs-section--quotes {
  margin: 0 0 10px !important;
  padding: 0 !important;
}
body.subpage-fallback-t2 .tpl-section--white .tpl-prose .bs-page .bs-section--quotes > h2,
.wp-import-content .bs-page .bs-section--quotes > h2,
#fallbackSecBody .bs-page .bs-section--quotes > h2 {
  margin: 0 0 8px !important;
  padding: 0 !important;
}
body.subpage-fallback-t2 .tpl-section--white .tpl-prose .bs-page .bs-section:has(+ .bs-section--quotes),
.wp-import-content .bs-page .bs-section:has(+ .bs-section--quotes),
#fallbackSecBody .bs-page .bs-section:has(+ .bs-section--quotes) {
  margin-bottom: 8px !important;
}
body.subpage-fallback-t2 .tpl-section--white .tpl-prose .bs-page .bs-section--quotes + .bs-section > h2,
.wp-import-content .bs-page .bs-section--quotes + .bs-section > h2,
#fallbackSecBody .bs-page .bs-section--quotes + .bs-section > h2 {
  margin-top: 4px !important;
}

body.subpage-fallback-t2 .tpl-section--white .tpl-prose .bs-page .bs-quote,
.wp-import-content .bs-page .bs-quote,
#fallbackSecBody .bs-page .bs-quote {
  margin: 0 !important;
  padding: 8px 12px !important;
  min-height: 0 !important;
  height: auto !important;
  background: #fff;
  border: 1px solid var(--border, #dbe2ea);
  border-left: 3px solid var(--navy, #1e3a50);
  border-radius: 10px;
  box-shadow: none;
}
body.subpage-fallback-t2 .tpl-section--white .tpl-prose .bs-page .bs-quote p,
.wp-import-content .bs-page .bs-quote p,
#fallbackSecBody .bs-page .bs-quote p {
  margin: 0 0 4px !important;
  padding: 0 !important;
  min-height: 0 !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  color: #2c3e50 !important;
  -webkit-text-fill-color: #2c3e50 !important;
  font-style: italic;
}
body.subpage-fallback-t2 .tpl-section--white .tpl-prose .bs-page .bs-quote footer,
.wp-import-content .bs-page .bs-quote footer,
#fallbackSecBody .bs-page .bs-quote footer {
  display: block;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.3;
  color: #5a6b7d !important;
  -webkit-text-fill-color: #5a6b7d !important;
}

.bs-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.bs-gallery__item {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  background: #e8eef3;
  border: 1px solid rgba(30, 58, 80, 0.08);
  box-shadow: 0 2px 12px rgb(30 58 80 / .08);
}
.bs-gallery__item img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .25s ease;
}
.bs-gallery__item:hover img {
  transform: scale(1.03);
}

@media (max-width: 900px) {
  .bs-intro {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 40px;
  }
  .bs-intro__media { order: -1; }
  .bs-intro__media img { aspect-ratio: 16 / 10; max-height: 420px; }
  .bs-grid--3,
  .bs-grid--2,
  .bs-quotes,
  .bs-gallery { grid-template-columns: 1fr 1fr; }
  .bs-section { margin-bottom: 40px; }
}

@media (max-width: 640px) {
  .bs-grid--3,
  .bs-grid--2,
  .bs-price-row,
  .bs-quotes,
  .bs-gallery { grid-template-columns: 1fr; }
  .bs-contact__btn { width: 100%; }
  .bs-card { padding: 22px 20px; }
  .bs-section { margin-bottom: 36px; }
}
