/* =========================================================================
   RS Kesrem Lhokseumawe — Master Stylesheet
   Professional hospital theme. Loaded last to override all broken refs.
   ========================================================================= */

:root {
  --rs-green:        #0d8f3f;
  --rs-green-dark:   #075a28;
  --rs-green-light:  #e8f5ec;
  --rs-green-hover:  #0a7a35;
  --rs-gold:         #f0b429;
  --rs-red:          #dc2626;
  --rs-red-dark:     #991b1b;

  --rs-text:         #1e293b;
  --rs-text-muted:   #64748b;
  --rs-text-light:   #94a3b8;
  --rs-bg:           #ffffff;
  --rs-bg-subtle:    #f8fafc;
  --rs-bg-accent:    #f1f5f9;
  --rs-border:       #e2e8f0;
  --rs-border-dark:  #cbd5e1;

  --rs-font-body:    'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --rs-font-display: 'Outfit', 'Poppins', sans-serif;

  --rs-radius-sm: 6px;
  --rs-radius:    10px;
  --rs-radius-lg: 16px;

  --rs-shadow-sm: 0 1px 2px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.04);
  --rs-shadow:    0 4px 6px -1px rgba(15,23,42,.08), 0 2px 4px -2px rgba(15,23,42,.05);
  --rs-shadow-lg: 0 12px 24px -8px rgba(15,23,42,.12), 0 4px 8px -4px rgba(15,23,42,.06);

  --rs-container: 1200px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.home,
body[class*="page-"] {
  background-color: var(--rs-bg) !important;
  background-image: none !important;
  color: var(--rs-text);
  font-family: var(--rs-font-body);
  font-size: 15px;
  line-height: 1.65;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--rs-green);
  text-decoration: none;
  transition: color .15s ease;
}
a:hover { color: var(--rs-green-dark); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--rs-font-display);
  color: var(--rs-text);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 .6em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.15rem; }

p  { margin: 0 0 1em; color: var(--rs-text); }

ul, ol { padding-left: 1.25rem; }

/* ---------- Top announcement marquee ---------- */
marquee {
  display: block;
  background: linear-gradient(90deg, var(--rs-green-dark), var(--rs-green));
  color: #ffffff !important;
  padding: 10px 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .02em;
  border: none;
}

/* ---------- Header / top bar ---------- */
#uicore-tb-header {
  background: var(--rs-bg);
  border-bottom: 1px solid var(--rs-border);
  box-shadow: var(--rs-shadow-sm);
  position: sticky;
  top: 0;
  z-index: 999;
}

/* The contact/social strip (above the main bar) */
#uicore-tb-header .elementor-element-2cbdafa,
#uicore-tb-header .elementor-element-318de72 {
  background: var(--rs-green-dark) !important;
  color: #fff;
  font-size: 13px;
}
#uicore-tb-header .elementor-element-2cbdafa .e-con-inner,
#uicore-tb-header .elementor-element-318de72 .e-con-inner {
  max-width: var(--rs-container);
  margin: 0 auto;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
#uicore-tb-header .elementor-element-2cbdafa *,
#uicore-tb-header .elementor-element-318de72 *,
#uicore-tb-header .elementor-element-2cbdafa a,
#uicore-tb-header .elementor-element-318de72 a { color: #fff !important; }

#uicore-tb-header .pix-header-text { font-size: 13px; }

#uicore-tb-header .elementor-icon-list-items {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}
#uicore-tb-header .elementor-icon-list-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}
#uicore-tb-header .elementor-icon-list-icon svg {
  width: 14px; height: 14px;
  fill: #fff;
}

#uicore-tb-header .elementor-social-icons-wrapper {
  display: inline-flex;
  gap: 8px;
}
#uicore-tb-header .elementor-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  background: rgba(255,255,255,.12);
  border-radius: 50%;
  transition: background .15s ease, transform .15s ease;
}
#uicore-tb-header .elementor-social-icon:hover {
  background: var(--rs-gold);
  transform: translateY(-1px);
}
#uicore-tb-header .elementor-social-icon svg {
  width: 13px; height: 13px;
  fill: #fff;
}

/* Main header row (logo + nav) */
#uicore-tb-header .elementor-element-cb9bd62 > .e-con-inner,
#uicore-tb-header .elementor-element-8849be6 > .e-con-inner {
  max-width: var(--rs-container);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

/* Logo size — the 2029px original is gigantic, constrain hard */
#uicore-tb-header .elementor-widget-theme-site-logo img,
#uicore-tb-header .elementor-widget-image img {
  max-height: 56px !important;
  width: auto !important;
  object-fit: contain;
}

/* ---------- Navigation (Elementor + BDT) ---------- */
.elementor-nav-menu,
.bdt-navbar-nav {
  display: flex !important;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
  flex-wrap: wrap;
}

.elementor-nav-menu > li,
.bdt-navbar-nav > li { position: relative; }

.elementor-nav-menu > li > a,
.bdt-navbar-nav > li > a,
.elementor-nav-menu .elementor-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--rs-text) !important;
  text-transform: none;
  letter-spacing: 0;
  border-radius: var(--rs-radius-sm);
  transition: all .15s ease;
  text-decoration: none;
  position: relative;
}

.elementor-nav-menu > li > a:hover,
.bdt-navbar-nav > li > a:hover,
.elementor-nav-menu .elementor-item:hover,
.elementor-nav-menu .elementor-item-active,
.bdt-navbar-nav > li.bdt-active > a {
  color: var(--rs-green) !important;
  background: var(--rs-green-light);
}

.elementor-nav-menu .elementor-item-active::after,
.bdt-navbar-nav > li.bdt-active > a::after {
  content: '';
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 2px;
  background: var(--rs-green);
  border-radius: 2px;
}

/* Dropdown (Elementor sub-menu) */
.elementor-nav-menu .sub-menu,
.elementor-nav-menu--dropdown,
.bdt-navbar-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: #ffffff;
  border: 1px solid var(--rs-border);
  border-radius: var(--rs-radius);
  box-shadow: var(--rs-shadow-lg);
  padding: 8px;
  list-style: none;
  margin: 6px 0 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 1000;
}
.elementor-nav-menu li:hover > .sub-menu,
.elementor-nav-menu li:hover > .elementor-nav-menu--dropdown,
.bdt-navbar-nav > li:hover > .bdt-navbar-dropdown,
.bdt-navbar-nav > li.bdt-parent:hover .bdt-navbar-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.elementor-nav-menu .sub-menu li,
.bdt-navbar-dropdown li { display: block; }

.elementor-nav-menu .sub-menu a,
.elementor-nav-menu--dropdown a,
.elementor-sub-item,
.bdt-navbar-dropdown a {
  display: block !important;
  padding: 10px 14px !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  color: var(--rs-text) !important;
  border-radius: var(--rs-radius-sm);
  text-decoration: none;
  white-space: nowrap;
  border-left: 3px solid transparent;
  background: transparent !important;
}
.elementor-nav-menu .sub-menu a:hover,
.elementor-sub-item:hover,
.bdt-navbar-dropdown a:hover {
  background: var(--rs-green-light) !important;
  color: var(--rs-green) !important;
  border-left-color: var(--rs-green);
}

/* Emergency Call button in header */
#uicore-tb-header .elementor-button,
.elementor-element-e764793 .elementor-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--rs-red) !important;
  color: #fff !important;
  font-weight: 600;
  font-size: 13px;
  border-radius: 999px;
  border: none;
  box-shadow: 0 4px 10px rgba(220,38,38,.25);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none;
  animation: rs-pulse 2.2s ease-in-out infinite;
}
#uicore-tb-header .elementor-button:hover {
  background: var(--rs-red-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(220,38,38,.35);
}
@keyframes rs-pulse {
  0%, 100% { box-shadow: 0 4px 10px rgba(220,38,38,.25), 0 0 0 0 rgba(220,38,38,.4); }
  50%      { box-shadow: 0 4px 10px rgba(220,38,38,.25), 0 0 0 10px rgba(220,38,38,0); }
}

/* Search toggle */
.bdt-search-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border: 1px solid var(--rs-border);
  border-radius: 50%;
  color: var(--rs-text);
  transition: all .15s ease;
}
.bdt-search-toggle:hover {
  background: var(--rs-green);
  color: #fff;
  border-color: var(--rs-green);
}

.bdt-search-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--rs-border);
  border-radius: var(--rs-radius);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.bdt-search-input:focus {
  border-color: var(--rs-green);
  box-shadow: 0 0 0 3px rgba(13,143,63,.12);
}

/* ---------- Elementor generic layout containers ---------- */
.elementor, .elementor-section, .elementor-container,
.e-con, .e-con-inner, .e-flex {
  box-sizing: border-box;
}

.elementor-section,
.elementor-top-section {
  display: block;
  width: 100%;
  padding: 48px 0;
}
.elementor-section-boxed > .elementor-container,
.e-con-boxed > .e-con-inner {
  max-width: var(--rs-container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.elementor-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.elementor-column {
  flex: 1 1 0;
  min-width: 0;
}
.elementor-col-100 { flex: 1 1 100%; }
.elementor-col-66  { flex: 1 1 calc(66.666% - 16px); min-width: 280px; }
.elementor-col-50  { flex: 1 1 calc(50% - 12px); min-width: 260px; }
.elementor-col-33  { flex: 1 1 calc(33.333% - 16px); min-width: 260px; }
.elementor-col-25  { flex: 1 1 calc(25% - 18px); min-width: 220px; }

.elementor-widget-wrap,
.elementor-element-populated {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.e-con, .e-con-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  width: 100%;
}
.e-con.e-flex,
.e-con-inner { align-items: stretch; }

.e-con-boxed > .e-con-inner {
  max-width: var(--rs-container);
  margin: 0 auto;
  padding: 0 20px;
}

.e-parent { padding: 24px 0; }
.e-child  { flex: 1 1 auto; min-width: 0; }

.elementor-widget { margin-bottom: 14px; }
.elementor-widget:last-child { margin-bottom: 0; }

.elementor-widget-container { width: 100%; }

/* ---------- Headings inside widgets ---------- */
.elementor-heading-title {
  font-family: var(--rs-font-display);
  color: var(--rs-text);
  margin: 0 0 .4em;
  line-height: 1.25;
}
h2.elementor-heading-title { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
h3.elementor-heading-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--rs-green) !important;
  font-weight: 700;
  margin-bottom: .3em;
}

/* ---------- Buttons (Elementor generic) ---------- */
.elementor-button-wrapper { display: inline-block; }
.elementor-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: var(--rs-green);
  color: #ffffff !important;
  font-family: var(--rs-font-body);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--rs-radius);
  border: none;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  text-decoration: none;
  box-shadow: var(--rs-shadow-sm);
}
.elementor-button:hover {
  background: var(--rs-green-dark);
  transform: translateY(-1px);
  box-shadow: var(--rs-shadow);
}
.elementor-button.elementor-size-sm { padding: 8px 16px; font-size: 13px; }
.elementor-button.elementor-size-lg { padding: 14px 28px; font-size: 15px; }

/* "Selengkapnya >" underline animated link */
.underline_animated_button a,
.underline_animated_button-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--rs-green) !important;
  background: transparent;
  border: 1.5px solid var(--rs-green);
  border-radius: var(--rs-radius-sm);
  transition: all .15s ease;
  text-decoration: none;
}
.underline_animated_button a:hover,
.underline_animated_button-link:hover {
  background: var(--rs-green);
  color: #fff !important;
}
.underline_animated_button .line { display: none !important; }

/* ---------- Icon lists ---------- */
.elementor-icon-list-items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.elementor-icon-list-items.elementor-inline-items {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
}
.elementor-icon-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 0;
  color: var(--rs-text);
  font-size: 14px;
}
.elementor-icon-list-item a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}
.elementor-icon-list-icon svg {
  width: 16px; height: 16px;
  flex-shrink: 0;
  fill: var(--rs-green);
}
.elementor-icon-list-text { line-height: 1.5; }

/* ---------- Social icons (generic) ---------- */
.elementor-social-icons-wrapper {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}
.elementor-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: var(--rs-green);
  color: #fff;
  border-radius: 50%;
  transition: all .15s ease;
}
.elementor-social-icon:hover {
  background: var(--rs-green-dark);
  transform: translateY(-2px);
}
.elementor-social-icon svg {
  width: 14px; height: 14px;
  fill: #fff;
}

/* ---------- Images inside widgets ---------- */
.elementor-widget-image img {
  border-radius: var(--rs-radius);
  max-width: 100%;
}

/* ---------- Cards / post grid (news) ---------- */
.uicore-post-thumbnail,
.uicore-post-grid-item,
.uicore-blog-item {
  background: #fff;
  border: 1px solid var(--rs-border);
  border-radius: var(--rs-radius-lg);
  overflow: hidden;
  box-shadow: var(--rs-shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display: flex;
  flex-direction: column;
}
.uicore-post-thumbnail:hover,
.uicore-post-grid-item:hover,
.uicore-blog-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--rs-shadow-lg);
  border-color: var(--rs-green-light);
}
.uicore-post-thumbnail img,
.uicore-post-grid-item img {
  aspect-ratio: 16/10;
  object-fit: cover;
  width: 100%;
  border-radius: 0;
}
.uicore-post-footer,
.uicore-post-meta {
  padding: 14px 18px;
  font-size: 13px;
  color: var(--rs-text-muted);
  border-top: 1px solid var(--rs-border);
  background: var(--rs-bg-subtle);
  margin-top: auto;
}
.uicore-post-title,
.uicore-post-headline {
  padding: 16px 18px 4px;
  font-family: var(--rs-font-display);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.35;
  color: var(--rs-text);
  text-decoration: none;
  display: block;
}
.uicore-post-title:hover { color: var(--rs-green); }
.uicore-post-excerpt, .uicore-post-body {
  padding: 0 18px 14px;
  color: var(--rs-text-muted);
  font-size: 13.5px;
}

/* Grid container for posts */
.uicore-post-grid,
.uicore-posts-grid,
.uc-grid-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

/* ---------- Post slider ---------- */
.uc_fbps_slide {
  min-height: clamp(280px, 42vw, 480px);
  border-radius: var(--rs-radius-lg);
  overflow: hidden;
  position: relative;
}
.uc_fbps_content {
  max-width: 720px;
  padding: 32px;
  background: rgba(15,23,42,.55);
  color: #fff !important;
  border-radius: var(--rs-radius);
  backdrop-filter: blur(4px);
}
.uc_fbps_content *, .uc_fbps_content h1, .uc_fbps_content h2, .uc_fbps_content h3 { color: #fff !important; }
.uc_more_btn {
  display: inline-block;
  margin-top: 14px;
  padding: 10px 20px;
  background: var(--rs-green);
  color: #fff !important;
  border-radius: var(--rs-radius);
  font-weight: 600;
  text-decoration: none;
}
.uc_more_btn:hover { background: var(--rs-gold); }

/* Owl carousel nav */
.owl-nav button {
  background: #fff !important;
  color: var(--rs-green) !important;
  width: 40px; height: 40px;
  border-radius: 50% !important;
  box-shadow: var(--rs-shadow);
  border: none !important;
}
.owl-dots { margin-top: 14px; text-align: center; }
.owl-dots .owl-dot span {
  background: var(--rs-border-dark);
  width: 10px; height: 10px;
  margin: 0 4px;
  border-radius: 50%;
  display: inline-block;
}
.owl-dots .owl-dot.active span { background: var(--rs-green); width: 28px; border-radius: 6px; }

/* ---------- Section backgrounds / gradients ---------- */
#blog, .elementor-element-760b4885 {
  background: linear-gradient(180deg, var(--rs-bg-subtle), #fff) !important;
  border-top: 1px solid var(--rs-border);
}

/* ---------- Generic content block ---------- */
.elementor-widget-text-editor {
  color: var(--rs-text);
  font-size: 15px;
  line-height: 1.7;
}
.elementor-widget-text-editor h1,
.elementor-widget-text-editor h2,
.elementor-widget-text-editor h3 { color: var(--rs-text); }
.elementor-widget-text-editor strong { color: var(--rs-text); font-weight: 700; }
.elementor-widget-text-editor a { color: var(--rs-green); text-decoration: underline; text-underline-offset: 2px; }
.elementor-widget-text-editor ul, .elementor-widget-text-editor ol {
  padding-left: 1.25rem;
  margin: 0 0 1em;
}
.elementor-widget-text-editor li { margin-bottom: .35em; }

/* ---------- Footer ---------- */
#uicore-tb-footer {
  background: linear-gradient(180deg, #0a3d1f 0%, #062415 100%);
  color: #cbd5e1;
  padding: 56px 0 0;
  margin-top: 64px;
  font-size: 14px;
}
#uicore-tb-footer .elementor-section-boxed > .elementor-container {
  max-width: var(--rs-container);
  margin: 0 auto;
  padding: 0 20px;
}
#uicore-tb-footer .elementor-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}
#uicore-tb-footer .elementor-column { flex: unset; width: 100%; }
#uicore-tb-footer h1, #uicore-tb-footer h2, #uicore-tb-footer h3, #uicore-tb-footer h4 {
  color: #fff;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 16px;
}
#uicore-tb-footer h2.elementor-heading-title { font-size: 18px; letter-spacing: .04em; color: var(--rs-gold); }
#uicore-tb-footer p,
#uicore-tb-footer .elementor-widget-text-editor { color: #cbd5e1; font-size: 13.5px; line-height: 1.7; }
#uicore-tb-footer a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color .15s ease, padding-left .15s ease;
}
#uicore-tb-footer a:hover { color: var(--rs-gold); padding-left: 4px; }
#uicore-tb-footer .elementor-icon-list-items { gap: 10px; }
#uicore-tb-footer .elementor-icon-list-item { color: #cbd5e1; font-size: 13.5px; }
#uicore-tb-footer .elementor-icon-list-icon svg { fill: var(--rs-gold); }
#uicore-tb-footer img { max-height: 70px; width: auto; filter: brightness(1.1); }
#uicore-tb-footer .elementor-social-icon {
  background: rgba(255,255,255,.08);
  width: 34px; height: 34px;
}
#uicore-tb-footer .elementor-social-icon:hover { background: var(--rs-gold); }
#uicore-tb-footer .elementor-background-overlay { display: none; }

/* ---------- Page hero/title (inner pages) ---------- */
.uicore-blog-header,
.elementor-element.elementor-section:first-of-type h1.elementor-heading-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

/* ---------- Utility fixes for scraped artifacts ---------- */
.elementor-hidden-mobile { display: block; }
.elementor-hidden-desktop { display: none; }
@media (max-width: 768px) {
  .elementor-hidden-mobile { display: none !important; }
  .elementor-hidden-desktop { display: block !important; }
  .elementor-hidden-tablet { display: none !important; }
}

/* Hide orphan stylesheets that render as text (rare edge-case) */
body > link { display: none; }

/* Ensure SVG icons don't explode in size */
.e-font-icon-svg { width: 1em; height: 1em; display: inline-block; vertical-align: -0.125em; }

/* Fix naked bullet lists that appear before CSS loads in nav fallback */
.elementor-nav-menu--main ul.elementor-nav-menu { list-style: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .elementor-col-33 { flex: 1 1 calc(50% - 12px); }
  .elementor-col-25 { flex: 1 1 calc(50% - 12px); }
}
@media (max-width: 768px) {
  body { font-size: 14px; }
  #uicore-tb-header .elementor-element-cb9bd62 > .e-con-inner,
  #uicore-tb-header .elementor-element-8849be6 > .e-con-inner {
    padding: 10px 16px;
    gap: 12px;
  }
  #uicore-tb-header .elementor-widget-theme-site-logo img { max-height: 44px !important; }
  .elementor-nav-menu,
  .bdt-navbar-nav {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 2px;
    padding: 8px 0;
    border-top: 1px solid var(--rs-border);
    margin-top: 10px;
  }
  .elementor-nav-menu .sub-menu,
  .elementor-nav-menu--dropdown,
  .bdt-navbar-dropdown {
    position: static;
    box-shadow: none;
    border: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    padding: 4px 0 4px 16px;
    margin: 0;
    background: transparent;
  }
  .elementor-section, .elementor-top-section { padding: 32px 0; }
  .elementor-col-33, .elementor-col-25, .elementor-col-50 { flex: 1 1 100%; }
  #uicore-tb-footer { padding: 40px 16px 0; }
  #uicore-tb-footer .elementor-container { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 480px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.3rem; }
  .elementor-section-boxed > .elementor-container,
  .e-con-boxed > .e-con-inner { padding-left: 14px; padding-right: 14px; }
}

/* ---------- Print ---------- */
@media print {
  #uicore-tb-header, #uicore-tb-footer, marquee, .bdt-search-container { display: none !important; }
  body { background: #fff !important; color: #000; }
}

/* =========================================================================
   FIXES PATCH v2 — override bugs from base rules
   ========================================================================= */

/* 1) Hide screen-reader-only labels (fixes giant "Facebook/X-twitter/Youtube" text) */
.elementor-screen-only,
.screen-reader-text,
.elementor-social-icon .elementor-screen-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;
  font-size: 0 !important;
}

/* 2) Reorder header: contact strip (green) on TOP, nav row below */
#uicore-tb-header > .elementor {
  display: flex !important;
  flex-direction: column !important;
}
#uicore-tb-header .elementor-element-2cbdafa { order: -1 !important; }
#uicore-tb-header .elementor-element-cb9bd62 { order: 1 !important; }
#uicore-tb-header .elementor-element-8849be6 { order: 2 !important; }

/* 3) Fix main header row — single horizontal row, no wrap, no stacking */
#uicore-tb-header .elementor-element-cb9bd62 > .e-con-inner {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 24px !important;
  padding: 14px 20px !important;
  max-width: var(--rs-container);
  margin: 0 auto !important;
  width: 100%;
}
#uicore-tb-header .elementor-element-cb9bd62 > .e-con-inner > .e-con,
#uicore-tb-header .elementor-element-cb9bd62 > .e-con-inner > .elementor-element {
  width: auto !important;
  flex: 0 0 auto !important;
  padding: 0 !important;
  min-width: 0;
}
/* Logo column */
#uicore-tb-header .elementor-element-2f3db71 {
  flex: 0 0 auto !important;
  display: flex !important;
  align-items: center !important;
}
/* Nav column stretches to fill */
#uicore-tb-header .elementor-element-c79fcfc {
  flex: 1 1 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  min-width: 0;
}
#uicore-tb-header .elementor-element-8e82914 {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 10px !important;
  width: auto !important;
  padding: 0 !important;
}
/* Emergency Call column — stays compact */
#uicore-tb-header .elementor-element-4de0d01 {
  flex: 0 0 auto !important;
  padding: 0 !important;
}
#uicore-tb-header .elementor-element-4de0d01 > .e-con-inner {
  padding: 0 !important;
  display: block !important;
}

/* 4) Contact strip — clean horizontal layout, top of header */
#uicore-tb-header .elementor-element-2cbdafa {
  background: linear-gradient(90deg, var(--rs-green-dark), #0a3d1f) !important;
  color: #fff !important;
  width: 100%;
}
#uicore-tb-header .elementor-element-2cbdafa > .e-con-inner {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  padding: 10px 20px !important;
  max-width: var(--rs-container);
  margin: 0 auto !important;
}
#uicore-tb-header .elementor-element-2cbdafa .e-con,
#uicore-tb-header .elementor-element-2cbdafa .elementor-element.e-con {
  width: auto !important;
  flex: 0 1 auto !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 0 !important;
}
#uicore-tb-header .elementor-element-2cbdafa .elementor-widget {
  margin: 0 !important;
}
#uicore-tb-header .elementor-element-2cbdafa .elementor-social-icons-wrapper {
  display: inline-flex !important;
  gap: 6px !important;
}
#uicore-tb-header .elementor-element-2cbdafa .elementor-grid-item {
  display: inline-flex !important;
}
#uicore-tb-header .elementor-element-2cbdafa .elementor-social-icon {
  width: 28px !important;
  height: 28px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* 5) Replace broken themify/FontAwesome icon fonts with inline SVG masks */
i.ti, .ti::before,
.bdt-search-toggle i { font-family: inherit !important; }

.bdt-search-toggle i.ti-search,
i.ti.ti-search {
  display: inline-block !important;
  width: 18px; height: 18px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='8'/><line x1='21' y1='21' x2='16.65' y2='16.65'/></svg>") no-repeat center / 100%;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='8'/><line x1='21' y1='21' x2='16.65' y2='16.65'/></svg>") no-repeat center / 100%;
}
i.ti.ti-search::before { content: none !important; }

i.ti.ti-email {
  display: inline-block !important;
  width: 15px; height: 15px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='2' y='4' width='20' height='16' rx='2'/><path d='m22 7-10 5L2 7'/></svg>") no-repeat center / 100%;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='2' y='4' width='20' height='16' rx='2'/><path d='m22 7-10 5L2 7'/></svg>") no-repeat center / 100%;
}
i.ti.ti-email::before { content: none !important; }

/* Generic themify-icon fallback: if unknown ti-*, render as small dot so it doesn't look broken */
i.ti[class*="ti-"] {
  font-style: normal;
  line-height: 1;
}

/* 6) Social icons SVG sizing (ensure they show, not the text) */
.elementor-social-icon svg,
.elementor-social-icon .e-font-icon-svg {
  width: 14px !important;
  height: 14px !important;
  display: block !important;
  fill: currentColor;
}

/* 7) Emergency button — make sure it's compact on its own, not wrapping */
#uicore-tb-header .elementor-element-e764793 {
  padding: 0 !important;
  margin: 0 !important;
}
#uicore-tb-header .elementor-element-e764793 .elementor-button-wrapper {
  display: inline-block;
}

/* 8) Logo container vertical align fix */
#uicore-tb-header .elementor-widget-theme-site-logo,
#uicore-tb-header .elementor-widget-theme-site-logo .elementor-widget-container {
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  align-items: center;
}

/* 9) Responsive — allow wrap only on tablet/mobile */
@media (max-width: 960px) {
  #uicore-tb-header .elementor-element-cb9bd62 > .e-con-inner {
    flex-wrap: wrap !important;
  }
  #uicore-tb-header .elementor-element-c79fcfc {
    flex: 1 1 100% !important;
    justify-content: center !important;
  }
}
@media (max-width: 768px) {
  #uicore-tb-header .elementor-element-2cbdafa > .e-con-inner {
    justify-content: center !important;
    text-align: center;
  }
  #uicore-tb-header .elementor-element-cb9bd62 { display: none !important; }
  /* Use mobile header variant instead */
  #uicore-tb-header .elementor-element-8849be6 {
    display: flex !important;
    order: 2 !important;
  }
}
