/* =========================================================================
   RSUD Palopo / Dr. Soedarso — Master Stylesheet
   Theme: better-health + Bootstrap + Elementor. Loaded last to override.
   Palette: royal navy + warm orange accent
   ========================================================================= */

:root {
  --ps-primary:       #1e40af;
  --ps-primary-dark:  #1e3a8a;
  --ps-primary-darker:#172554;
  --ps-primary-light: #dbeafe;
  --ps-primary-hover: #1d4ed8;

  --ps-accent:        #f97316;
  --ps-accent-dark:   #ea580c;
  --ps-accent-light:  #ffedd5;

  --ps-text:          #0f172a;
  --ps-text-muted:    #475569;
  --ps-text-light:    #94a3b8;
  --ps-bg:            #ffffff;
  --ps-bg-subtle:     #f8fafc;
  --ps-bg-accent:     #f1f5f9;
  --ps-border:        #e2e8f0;
  --ps-border-dark:   #cbd5e1;

  --ps-font-body:    'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ps-font-display: 'Rubik', system-ui, sans-serif;

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

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

  --ps-container: 1200px;
}

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

html { scroll-behavior: smooth; }

body,
body.home,
body[class*="page-"] {
  background: var(--ps-bg) !important;
  color: var(--ps-text);
  font-family: var(--ps-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(--ps-primary);
  text-decoration: none;
  transition: color .15s ease;
}
a:hover { color: var(--ps-primary-dark); }

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

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

ul, ol { padding-left: 1.25rem; margin: 0 0 1em; }

hr { border: none; height: 1px; background: var(--ps-border); margin: 24px 0; }

.sr-only, .screen-reader-text {
  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;
}

/* ---------- Bootstrap 3 grid replacement ---------- */
.container {
  width: 100%;
  max-width: var(--ps-container);
  margin: 0 auto;
  padding: 0 15px;
}
.container-fluid { width: 100%; padding: 0 15px; }

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}
[class*="col-"] {
  position: relative;
  padding: 0 15px;
  width: 100%;
  min-width: 0;
}

.col-xs-12 { flex: 0 0 100%; max-width: 100%; }
.col-xs-6  { flex: 0 0 50%; max-width: 50%; }
.col-xs-4  { flex: 0 0 33.3333%; max-width: 33.3333%; }
.col-xs-3  { flex: 0 0 25%; max-width: 25%; }

@media (min-width: 768px) {
  .col-sm-12 { flex: 0 0 100%; max-width: 100%; }
  .col-sm-9  { flex: 0 0 75%; max-width: 75%; }
  .col-sm-8  { flex: 0 0 66.6666%; max-width: 66.6666%; }
  .col-sm-6  { flex: 0 0 50%; max-width: 50%; }
  .col-sm-4  { flex: 0 0 33.3333%; max-width: 33.3333%; }
  .col-sm-3  { flex: 0 0 25%; max-width: 25%; }
}

@media (min-width: 992px) {
  .col-md-1  { flex: 0 0 8.3333%; max-width: 8.3333%; }
  .col-md-2  { flex: 0 0 16.6666%; max-width: 16.6666%; }
  .col-md-3  { flex: 0 0 25%; max-width: 25%; }
  .col-md-4  { flex: 0 0 33.3333%; max-width: 33.3333%; }
  .col-md-5  { flex: 0 0 41.6666%; max-width: 41.6666%; }
  .col-md-6  { flex: 0 0 50%; max-width: 50%; }
  .col-md-7  { flex: 0 0 58.3333%; max-width: 58.3333%; }
  .col-md-8  { flex: 0 0 66.6666%; max-width: 66.6666%; }
  .col-md-9  { flex: 0 0 75%; max-width: 75%; }
  .col-md-10 { flex: 0 0 83.3333%; max-width: 83.3333%; }
  .col-md-12 { flex: 0 0 100%; max-width: 100%; }
}

@media (min-width: 1200px) {
  .col-lg-3  { flex: 0 0 25%; max-width: 25%; }
  .col-lg-4  { flex: 0 0 33.3333%; max-width: 33.3333%; }
  .col-lg-6  { flex: 0 0 50%; max-width: 50%; }
  .col-lg-8  { flex: 0 0 66.6666%; max-width: 66.6666%; }
  .col-lg-12 { flex: 0 0 100%; max-width: 100%; }
}

.text-left   { text-align: left; }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.pull-left  { float: left; }
.pull-right { float: right; }

/* ---------- Page wrapper ---------- */
#page, .site { position: relative; overflow-x: hidden; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px; height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  position: fixed;
  left: 20px; top: 20px;
  width: auto; height: auto;
  background: var(--ps-primary);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--ps-radius);
  z-index: 9999;
}

/* ---------- Top header bar (thin) ---------- */
.top-header {
  background: var(--ps-primary-darker);
  color: #fff;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 2px solid var(--ps-accent);
}
.top-header .container { max-width: var(--ps-container); }
.top-header .row {
  align-items: center;
  justify-content: space-between;
  margin: 0;
}
.top-header .social-links,
.top-header .social-links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}
.top-header .social-links a {
  width: 28px; height: 28px;
  justify-content: center;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  transition: background .15s;
}
.top-header .social-links a:hover { background: var(--ps-accent); }

.top-header .search {
  position: relative;
  margin-left: auto;
  padding: 0 15px;
}
.top-header .search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  cursor: pointer;
  color: #fff;
  margin: 0;
  transition: background .15s;
}
.top-header .search-btn:hover { background: var(--ps-accent); }
.top-header .search-block {
  position: absolute;
  top: 110%;
  right: 0;
  width: 280px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--ps-border);
  border-radius: var(--ps-radius);
  box-shadow: var(--ps-shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all .2s ease;
  z-index: 100;
}
.top-header .search:hover .search-block,
.top-header .search:focus-within .search-block {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.top-header .search-block form > div { display: flex; gap: 6px; }
.top-header .blog-search-field {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--ps-border);
  border-radius: var(--ps-radius-sm);
  font-family: inherit;
  font-size: 13px;
  background: #fff;
  color: var(--ps-text);
  outline: none;
}
.top-header .blog-search-field:focus { border-color: var(--ps-primary); }
.top-header .searchsubmit {
  padding: 8px 12px;
  background: var(--ps-primary);
  color: #fff;
  border: none;
  border-radius: var(--ps-radius-sm);
  cursor: pointer;
}

/* ---------- Main header (logo + contact) ---------- */
#header.head {
  background: #fff;
  border-bottom: 1px solid var(--ps-border);
  box-shadow: var(--ps-shadow-sm);
}
#header .navbar,
#header #site-navigation {
  background: transparent;
  border: none;
  padding: 14px 0;
  margin: 0;
}
#header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.navbar-header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.navbar-brand {
  display: flex !important;
  align-items: center;
  padding: 0 !important;
  margin: 0 !important;
  height: auto !important;
}
.navbar-brand img,
.custom-logo {
  height: 60px !important;
  width: auto !important;
  max-width: 320px !important;
  object-fit: contain;
}
.site-branding { display: flex; align-items: center; }

/* Mobile toggle */
.navbar-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 42px; height: 42px;
  padding: 0 10px;
  background: transparent;
  border: 1px solid var(--ps-border);
  border-radius: var(--ps-radius-sm);
  cursor: pointer;
}
.navbar-toggle .icon-bar {
  display: block;
  width: 22px; height: 2px;
  background: var(--ps-primary-dark);
  border-radius: 1px;
}

/* Contact info in header */
.better-health-info { flex: 0 1 auto; }
.better-health-info .contact-detail2 {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.better-health-info .contact-detail2 li { list-style: none; }
.better-health-info .contact-detail2 a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ps-text) !important;
  font-size: 13.5px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--ps-radius);
  background: var(--ps-bg-subtle);
  border: 1px solid var(--ps-border);
  transition: all .15s ease;
}
.better-health-info .contact-detail2 a:hover {
  background: var(--ps-primary-light);
  border-color: var(--ps-primary);
  color: var(--ps-primary-dark) !important;
  transform: translateY(-1px);
}
.better-health-info .fa {
  font-size: 16px !important;
  color: var(--ps-accent);
  width: 20px;
  text-align: center;
}
.better-health-info .fa-2x { font-size: 16px !important; }

/* ---------- Main menu (nav bar below header) ---------- */
#menu-bar.main-menu {
  background: var(--ps-primary-dark);
  box-shadow: 0 2px 8px rgba(15,23,42,.08);
  position: sticky;
  top: 0;
  z-index: 900;
}
#menu-bar .container {
  display: flex;
  align-items: center;
}
#menu-bar .navbar-collapse {
  width: 100%;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent;
  border: none;
}

.nav.navbar-nav,
#menu-registrasi-online {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2px;
  width: 100%;
}
.nav.navbar-nav.navbar-right { justify-content: flex-start; }

.nav.navbar-nav > li,
.navbar-nav > li { position: relative; list-style: none; }

.nav.navbar-nav > li > a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #fff !important;
  text-transform: none;
  letter-spacing: 0;
  transition: all .15s ease;
  text-decoration: none;
  position: relative;
}

.nav.navbar-nav > li > a:hover,
.nav.navbar-nav > li.active > a,
.nav.navbar-nav > li.current-menu-item > a,
.nav.navbar-nav > li.current_page_item > a,
.nav.navbar-nav > li.current-menu-ancestor > a {
  background: rgba(255,255,255,.08);
  color: #fff !important;
}

.nav.navbar-nav > li.active > a::after,
.nav.navbar-nav > li.current-menu-item > a::after {
  content: '';
  position: absolute;
  left: 16px; right: 16px; bottom: 4px;
  height: 2px;
  background: var(--ps-accent);
  border-radius: 2px;
}

/* Caret arrow */
.caret {
  display: inline-block;
  width: 0; height: 0;
  margin-left: 4px;
  vertical-align: middle;
  border-top: 4px solid currentColor;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
  transition: transform .2s ease;
}
li:hover > a > .caret { transform: rotate(180deg); }

/* Dropdown menu */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--ps-border);
  border-radius: var(--ps-radius);
  box-shadow: var(--ps-shadow-lg);
  padding: 8px;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all .18s ease;
  z-index: 1001;
}
li.dropdown:hover > .dropdown-menu,
.dropdown.open > .dropdown-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}

.dropdown-menu > li { list-style: none; position: relative; }
.dropdown-menu > li > a {
  display: block !important;
  padding: 10px 14px !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  color: var(--ps-text) !important;
  border-radius: var(--ps-radius-sm);
  text-decoration: none;
  white-space: nowrap;
  border-left: 3px solid transparent;
  background: transparent !important;
  transition: all .15s ease;
}
.dropdown-menu > li > a:hover,
.dropdown-menu > li.current-menu-item > a {
  background: var(--ps-primary-light) !important;
  color: var(--ps-primary-dark) !important;
  border-left-color: var(--ps-accent);
}

/* Nested submenu */
.dropdown-menu .dropdown > a::after {
  content: '›';
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  line-height: 1;
  color: var(--ps-text-muted);
}
.dropdown-menu .dropdown > .dropdown-menu {
  top: 0;
  left: 100%;
  margin-left: 4px;
}

/* ---------- Hero / slider ---------- */
#slider.slider { position: relative; background: var(--ps-primary-darker); }
#main-slide.carousel { position: relative; width: 100%; overflow: hidden; }
.carousel-inner { position: relative; width: 100%; }
.carousel-inner > .item {
  display: none;
  width: 100%;
  min-height: clamp(300px, 42vw, 520px);
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  position: relative;
}
.carousel-inner > .item.active,
.carousel-inner > .item:first-child { display: flex; align-items: center; }

.carousel-inner .over-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(23,37,84,.55) 0%, rgba(30,64,175,.3) 60%, rgba(249,115,22,.25) 100%);
  z-index: 1;
}
.carousel-inner .slider-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 60px 20px;
  color: #fff;
}
.carousel-inner .slide-sub-title {
  color: #fff;
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  font-weight: 700;
  margin: 0 0 12px;
  text-shadow: 0 2px 12px rgba(0,0,0,.3);
}
.carousel-inner .slider-description {
  color: rgba(255,255,255,.92);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  max-width: 720px;
  margin: 0 auto;
  text-shadow: 0 1px 8px rgba(0,0,0,.25);
}

/* Carousel controls */
.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  background: rgba(255,255,255,.15);
  color: #fff !important;
  border-radius: 50%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  z-index: 10;
  transition: background .15s, transform .15s;
  opacity: 0.8;
}
.carousel-control:hover {
  background: var(--ps-accent);
  opacity: 1;
  transform: translateY(-50%) scale(1.05);
}
.carousel-control.left  { left: 20px; }
.carousel-control.right { right: 20px; }
.carousel-control .carousel-arrow i { font-size: 20px; }

/* ---------- Feature boxes (Section 1) ---------- */
#section1.section-margine {
  padding: 56px 0;
  background: var(--ps-bg);
}
#section1 .row {
  row-gap: 24px;
}
#section1 .col-md-3 {
  display: flex;
}
#section1 .col-md-3 > .row {
  flex: 1;
  margin: 0;
  width: 100%;
}
.feature-link {
  display: flex !important;
  width: 100%;
  text-decoration: none !important;
}
.section-1-box {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 32px 24px;
  background: #fff;
  border: 1px solid var(--ps-border);
  border-radius: var(--ps-radius-lg);
  box-shadow: var(--ps-shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  overflow: hidden;
  height: 100%;
}
.section-1-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--ps-primary), var(--ps-accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.feature-link:hover .section-1-box {
  transform: translateY(-4px);
  box-shadow: var(--ps-shadow-lg);
  border-color: var(--ps-primary-light);
}
.feature-link:hover .section-1-box::before { transform: scaleX(1); }

.section-1-box-icon-background {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 16px;
}
.section-1-box-icon-background i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  background: linear-gradient(135deg, var(--ps-primary-light), #fff);
  color: var(--ps-primary);
  border-radius: 14px;
  font-size: 22px;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px var(--ps-primary-light);
  transition: all .25s ease;
}
.feature-link:hover .section-1-box-icon-background i {
  background: linear-gradient(135deg, var(--ps-primary), var(--ps-primary-dark));
  color: #fff;
  transform: rotate(-4deg);
}
.section-1-box-icon-background h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ps-text);
  line-height: 1.3;
}
.section-1-box p {
  color: var(--ps-text-muted);
  font-size: 13.5px;
  line-height: 1.7;
  margin: 0;
}

/* ---------- Main content area (Section 16) ---------- */
#section16.section16 {
  padding: 48px 0;
  background: var(--ps-bg-subtle);
  border-top: 1px solid var(--ps-border);
  border-bottom: 1px solid var(--ps-border);
}
.left-block,
.right-block { padding: 0 15px; }

#section16 article,
.post, .page {
  background: #fff;
  border: 1px solid var(--ps-border);
  border-radius: var(--ps-radius-lg);
  padding: 32px;
  box-shadow: var(--ps-shadow-sm);
}

.entry-title, .post-title {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  color: var(--ps-text);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ps-primary-light);
}

.entry-content, .post-content {
  font-size: 15px;
  line-height: 1.75;
}
.entry-content h2, .entry-content h3, .entry-content h4 { margin-top: 1.6em; }
.entry-content img { border-radius: var(--ps-radius); margin: 20px 0; }
.entry-content ul, .entry-content ol { margin-bottom: 1em; padding-left: 1.5rem; }
.entry-content li { margin-bottom: .3em; }

/* ---------- Sidebar / widgets ---------- */
.widget {
  background: #fff;
  border: 1px solid var(--ps-border);
  border-radius: var(--ps-radius);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--ps-shadow-sm);
}
.widget-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ps-text);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ps-primary-light);
  position: relative;
}
.widget-title::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 40px; height: 2px;
  background: var(--ps-accent);
}
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget ul li {
  padding: 8px 0;
  border-bottom: 1px solid var(--ps-border);
  font-size: 14px;
}
.widget ul li:last-child { border-bottom: none; }
.widget ul li a { color: var(--ps-text); }
.widget ul li a:hover { color: var(--ps-primary); }

/* ---------- Elementor containers (some pages use Elementor) ---------- */
.elementor-section { padding: 32px 0; }
.elementor-container {
  display: flex;
  flex-wrap: wrap;
  max-width: var(--ps-container);
  margin: 0 auto;
  padding: 0 15px;
  gap: 20px;
}
.elementor-row { display: flex; flex-wrap: wrap; width: 100%; gap: 20px; }
.elementor-column {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0;
}
.elementor-col-100 { flex: 1 1 100%; }
.elementor-col-50  { flex: 1 1 calc(50% - 10px); min-width: 260px; }
.elementor-col-33  { flex: 1 1 calc(33.333% - 14px); min-width: 240px; }
.elementor-col-25  { flex: 1 1 calc(25% - 15px); min-width: 200px; }
.elementor-column-wrap,
.elementor-widget-wrap { width: 100%; display: flex; flex-direction: column; gap: 14px; }
.elementor-widget { width: 100%; }
.elementor-widget-container { width: 100%; }
.elementor-heading-title { color: var(--ps-text); font-weight: 700; margin: 0 0 .5em; }

/* Elementor tabs */
.elementor-tabs-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  border-bottom: 2px solid var(--ps-border);
  margin-bottom: 20px;
}
.elementor-tab-title,
.elementor-tab-desktop-title {
  padding: 12px 18px;
  background: var(--ps-bg-subtle);
  border: 1px solid var(--ps-border);
  border-bottom: none;
  border-radius: var(--ps-radius-sm) var(--ps-radius-sm) 0 0;
  cursor: pointer;
  font-weight: 600;
  color: var(--ps-text-muted);
  font-size: 14px;
  transition: all .15s ease;
}
.elementor-tab-title:hover { color: var(--ps-primary); }
.elementor-tab-title.elementor-active,
.elementor-tab-desktop-title.elementor-active {
  background: var(--ps-primary);
  color: #fff;
  border-color: var(--ps-primary);
}
.elementor-tab-content { padding: 20px 0; }

/* ---------- Buttons (generic) ---------- */
.btn,
button:not(.navbar-toggle):not(.carousel-control):not(.joinchat__button),
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-family: var(--ps-font-body);
  font-size: 14px;
  font-weight: 600;
  color: #fff !important;
  background: var(--ps-primary);
  border: 1px solid var(--ps-primary);
  border-radius: var(--ps-radius);
  cursor: pointer;
  transition: all .15s ease;
  text-decoration: none;
  line-height: 1.4;
}
.btn:hover,
button:not(.navbar-toggle):not(.carousel-control):not(.joinchat__button):hover,
input[type="submit"]:hover {
  background: var(--ps-primary-dark);
  border-color: var(--ps-primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--ps-shadow);
}

input[type="text"],
input[type="search"],
input[type="email"],
input[type="tel"],
textarea,
select {
  width: 100%;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--ps-border);
  border-radius: var(--ps-radius);
  font-family: inherit;
  font-size: 14px;
  color: var(--ps-text);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--ps-primary);
  box-shadow: 0 0 0 3px rgba(30,64,175,.12);
}

/* Tables */
table.tablepress, table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 20px;
  font-size: 14px;
  background: #fff;
  border-radius: var(--ps-radius);
  overflow: hidden;
}
table.tablepress th, table th {
  background: var(--ps-primary-dark);
  color: #fff;
  font-weight: 600;
  padding: 12px 14px;
  text-align: left;
}
table.tablepress td, table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--ps-border);
  color: var(--ps-text);
}
table.tablepress tbody tr:nth-child(even) { background: var(--ps-bg-subtle); }
table.tablepress tbody tr:hover { background: var(--ps-primary-light); }

/* ---------- FontAwesome 4 fallback ---------- */
.fa, i[class*="fa-"] {
  font-style: normal;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.fa-2x { font-size: 1.5em; }

/* Provide SVG fallback for most-used icons (in case font file doesn't load) */
.fa::before { font-family: 'FontAwesome', 'Font Awesome 5 Free', sans-serif; font-weight: 900; }

/* Masked SVG fallbacks when FontAwesome font fails to load */
.fa-home::before, .fa-phone::before, .fa-envelope-o::before,
.fa-globe::before, .fa-search::before, .fa-desktop::before,
.fa-bed::before, .fa-user-md::before, .fa-stethoscope::before,
.fa-angle-left::before, .fa-angle-right::before, .fa-angle-double-up::before {
  display: inline-block;
}

/* If icon font doesn't render, use CSS mask as fallback */
@supports (mask: url('')) {
  .fa.fa-home {
    --fa-svg: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 576 512'><path fill='black' d='M280.37 148.26L96 300.11V464a16 16 0 0 0 16 16l112.06-.29a16 16 0 0 0 15.92-16V368a16 16 0 0 1 16-16h64a16 16 0 0 1 16 16v95.64a16 16 0 0 0 16 16.05L464 480a16 16 0 0 0 16-16V300L295.67 148.26a12.19 12.19 0 0 0-15.3 0zM571.6 251.47L488 182.56V44.05a12 12 0 0 0-12-12h-56a12 12 0 0 0-12 12v72.61L318.47 43a48 48 0 0 0-61 0L4.34 251.47a12 12 0 0 0-1.6 16.9l25.5 31A12 12 0 0 0 45.15 301l235.22-193.74a12.19 12.19 0 0 1 15.3 0L530.9 301a12 12 0 0 0 16.9-1.6l25.5-31a12 12 0 0 0-1.7-16.93z'/></svg>");
  }
  .fa.fa-phone {
    --fa-svg: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'><path fill='black' d='M493.4 24.6l-104-24c-11.3-2.6-22.9 3.3-27.5 13.9l-48 112c-4.2 9.8-1.4 21.3 6.9 28l60.6 49.6c-36 76.7-98.9 140.5-177.2 177.2l-49.6-60.6c-6.8-8.3-18.2-11.1-28-6.9l-112 48C3.9 366.5-2 378.1.6 389.4l24 104C27.1 504.2 36.7 512 48 512c256.1 0 464-207.5 464-464 0-11.2-7.7-20.9-18.6-23.4z'/></svg>");
  }
  .fa.fa-envelope-o {
    --fa-svg: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'><path fill='black' d='M464 64H48C21.5 64 0 85.5 0 112v288c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zM48 96h416c8.8 0 16 7.2 16 16v41.4c-21.9 18.5-53.2 44-150.6 121.3-16.9 13.4-50.2 45.7-73.4 45.3-23.2.4-56.6-31.9-73.4-45.3C85.2 197.4 53.9 171.9 32 153.4V112c0-8.8 7.2-16 16-16zm416 320H48c-8.8 0-16-7.2-16-16V195c22.8 18.7 58.8 47.6 130.7 104.7 20.5 16.4 56.7 52.5 93.3 52.3 36.4.3 72.3-35.5 93.3-52.3 71.9-57.1 107.9-86 130.7-104.7v205c0 8.8-7.2 16-16 16z'/></svg>");
  }
  .fa.fa-globe {
    --fa-svg: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 496 512'><path fill='black' d='M336.5 160C322 70.7 287.8 8 248 8s-74 62.7-88.5 152h177zM152 256c0 22.2 1.2 43.5 3.3 64h185.3c2.1-20.5 3.3-41.8 3.3-64s-1.2-43.5-3.3-64H155.3c-2.1 20.5-3.3 41.8-3.3 64zm324.7-96c-28.6-67.9-86.5-120.4-158-141.6 24.4 33.8 41.2 84.7 50 141.6h108zM177.2 18.4C105.8 39.6 47.8 92.1 19.3 160h108c8.7-56.9 25.5-107.8 49.9-141.6zM487.4 192H372.7c2.1 21 3.3 42.5 3.3 64s-1.2 43-3.3 64h114.6c5.5-20.5 8.6-41.8 8.6-64s-3.1-43.5-8.5-64zM120 256c0-21.5 1.2-43 3.3-64H8.6C3.2 212.5 0 233.8 0 256s3.2 43.5 8.6 64h114.6c-2-21-3.2-42.5-3.2-64zm39.5 96c14.5 89.3 48.7 152 88.5 152s74-62.7 88.5-152h-177zm159.3 141.6c71.4-21.2 129.4-73.7 158-141.6h-108c-8.8 56.9-25.6 107.8-50 141.6zM19.3 352c28.6 67.9 86.5 120.4 158 141.6-24.4-33.8-41.2-84.7-50-141.6h-108z'/></svg>");
  }
  .fa.fa-search {
    --fa-svg: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'><path fill='black' d='M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z'/></svg>");
  }
  .fa.fa-desktop {
    --fa-svg: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 576 512'><path fill='black' d='M528 0H48C21.5 0 0 21.5 0 48v320c0 26.5 21.5 48 48 48h192l-16 48h-72c-13.3 0-24 10.7-24 24s10.7 24 24 24h272c13.3 0 24-10.7 24-24s-10.7-24-24-24h-72l-16-48h192c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zm-16 352H64V64h448v288z'/></svg>");
  }
  .fa.fa-bed {
    --fa-svg: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 512'><path fill='black' d='M176 256c44.11 0 80-35.89 80-80s-35.89-80-80-80-80 35.89-80 80 35.89 80 80 80zm352-128H304c-8.84 0-16 7.16-16 16v144H64V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v352c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16v-48h512v48c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16V240c0-61.86-50.14-112-112-112z'/></svg>");
  }
  .fa.fa-user-md {
    --fa-svg: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'><path fill='black' d='M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm96 64c-3.1 0-6.1.5-9.1 1.2-25 10.3-52.3 16.4-81 16.4-28.7 0-55.9-6.1-80.9-16.4-3-.7-6.1-1.2-9.2-1.2C60.2 320 0 380.2 0 454.4V480c0 17.7 14.3 32 32 32h256c5.6 0 10.6-2.4 14.7-5.8-1.8-11.9-2.7-23.9-2.7-36.2V421c0-40.3 21.5-76.1 53.9-95.4C338.6 321.6 328 320 320 320zm117 118c-23.2-9.7-41-38-41-38-15.6 0-25.3 14.2-41 13-26.3-1.9-45-25-45-58v-4.2C350.3 341.4 320 306.4 320 264c0-57-48-192-224-192S64 207 64 264c0 42.4-30.3 77.4 10 116v4.2c0 33-18.7 56.1-45 58-15.7 1.2-25.4-13-41-13 0 0-17.8 28.3-41 38 0 0 23 90 131 90s131-90 131-90z'/></svg>");
  }
  .fa.fa-stethoscope {
    --fa-svg: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'><path fill='black' d='M447.1 112c-10.5 0-19.8 5.1-25.7 12.9C490.9 158.8 512 232.9 512 299.2 512 399.8 431.6 480 332.8 480c-99.2 0-179.2-79.6-179.2-180.8 0-67.2 23.2-141 97.6-175.4 0 0-19.8-7.7-28-7.7-20.4 0-30.9 5.5-48 15.2v224c-92.8 8-160 88.1-160 192v64c0 17.7 14.3 32 32 32h64c17.7 0 32-14.3 32-32s-14.3-32-32-32h-32v-32c0-70.6 58.8-128 128-128 70.6 0 128 57.4 128 128v32h-32c-17.7 0-32 14.3-32 32s14.3 32 32 32h64c17.7 0 32-14.3 32-32v-64c0-104-67.2-184-160-192V176c0 0 19-7.7 29.3-7.7 73 0 119.1 65.5 119.1 139.1 0 60.3-48 107.5-108.3 107.5C246 415 198.4 367.8 198.4 308.3c0-58.1 45.8-104.3 103.3-104.3 15.6 0 28.3 12.7 28.3 28.3 0 15.6-12.7 28.3-28.3 28.3-23.4 0-42.3 18.9-42.3 42.3s18.9 42.3 42.3 42.3c47 0 85-38 85-85 0-50.9-41.2-92.1-92.1-92.1-73.1 0-132.3 59.2-132.3 132.3 0 85.1 69 154.1 154.1 154.1 97.8 0 177.1-79.3 177.1-177.1 0-74.9-45.2-139-110.1-166.7 2.1-8.4 10.6-14.6 20.5-14.6h9.2c35.4 0 64 28.6 64 64s-28.6 64-64 64h-9.2z'/></svg>");
  }
  .fa.fa-angle-left, .fa.fa-angle-right {
    --fa-svg: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 512'><path fill='black' d='M31.7 239l136-136c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9L127.9 256l96.4 96.4c9.4 9.4 9.4 24.6 0 33.9L201.7 409c-9.4 9.4-24.6 9.4-33.9 0l-136-136c-9.5-9.4-9.5-24.6-.1-34z'/></svg>");
  }
  .fa.fa-angle-right { transform: scaleX(-1); }
  .fa.fa-angle-double-up {
    --fa-svg: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512'><path fill='black' d='M177 159.7l136 136c9.4 9.4 9.4 24.6 0 33.9l-22.6 22.6c-9.4 9.4-24.6 9.4-33.9 0L160 255.9l-96.4 96.4c-9.4 9.4-24.6 9.4-33.9 0L7 329.7c-9.4-9.4-9.4-24.6 0-33.9l136-136c9.4-9.5 24.6-9.5 34-.1zm-34-128L7 167.7c-9.4 9.4-9.4 24.6 0 33.9l22.6 22.6c9.4 9.4 24.6 9.4 33.9 0L160 127.9l96.4 96.4c9.4 9.4 24.6 9.4 33.9 0l22.6-22.6c9.4-9.4 9.4-24.6 0-33.9l-136-136c-9.3-9.5-24.5-9.5-33.9-.1z'/></svg>");
  }
  .fa.fa-facebook, .fa.fa-facebook-f {
    --fa-svg: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512'><path fill='black' d='M279.14 288l14.22-92.66h-88.91v-60.13c0-25.35 12.42-50.06 52.24-50.06h40.42V6.26S260.43 0 225.36 0c-73.22 0-121.08 44.38-121.08 124.72v70.62H22.89V288h81.39v224h100.17V288z'/></svg>");
  }
  .fa.fa-instagram {
    --fa-svg: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'><path fill='black' d='M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z'/></svg>");
  }

  .fa[class*="fa-"] {
    position: relative;
  }
  .fa.fa-home::before,
  .fa.fa-phone::before,
  .fa.fa-envelope-o::before,
  .fa.fa-globe::before,
  .fa.fa-search::before,
  .fa.fa-desktop::before,
  .fa.fa-bed::before,
  .fa.fa-user-md::before,
  .fa.fa-stethoscope::before,
  .fa.fa-angle-left::before,
  .fa.fa-angle-right::before,
  .fa.fa-angle-double-up::before,
  .fa.fa-facebook::before, .fa.fa-facebook-f::before,
  .fa.fa-instagram::before {
    content: '';
    display: inline-block;
    width: 1em; height: 1em;
    background: currentColor;
    -webkit-mask: var(--fa-svg) no-repeat center / 100%;
            mask: var(--fa-svg) no-repeat center / 100%;
  }
}

/* Icon-only elements where FA renders via text content should still display the glyph */
i[class*="fa-"]:empty { min-width: 1em; min-height: 1em; }

/* ---------- Footer ---------- */
#footer-top.footer-top {
  background: var(--ps-primary-darker);
  color: rgba(255,255,255,.88);
  padding: 48px 0 24px;
  position: relative;
}
#footer-top::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ps-primary), var(--ps-accent), var(--ps-primary));
}
.footer-widget-top { padding-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 24px; }

.top-widget-contacts > .row { row-gap: 20px; }
.top-widget-contacts .widget {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--ps-radius);
  padding: 18px 20px;
  margin-bottom: 0;
  box-shadow: none;
  transition: all .2s ease;
}
.top-widget-contacts .widget:hover {
  background: rgba(255,255,255,.07);
  border-color: var(--ps-accent);
  transform: translateY(-2px);
}
.widget-contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--ps-primary), var(--ps-accent));
  color: #fff !important;
  border-radius: 12px;
  flex-shrink: 0;
  float: none !important;
  font-size: 20px;
}
.widget-contact-icon .fa { font-size: 20px; }
.widget-contact-info { flex: 1; min-width: 0; }
.top-widget-contacts-title {
  color: rgba(255,255,255,.7);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin: 0 0 4px;
}
.top-widget-contacts-content {
  color: #fff !important;
  font-size: 14.5px;
  font-weight: 500;
  margin: 0;
  word-break: break-word;
}
.top-widget-contacts-content a { color: #fff !important; }
.top-widget-contacts-content a:hover { color: var(--ps-accent) !important; }

.footer-top-box {
  text-align: center;
  padding: 16px 0;
  color: rgba(255,255,255,.75);
  font-size: 13px;
}
#xtvccount,
#xtvctable { color: rgba(255,255,255,.85); }
#xtvctable > div {
  display: inline-block;
  margin: 4px 8px;
  padding: 4px 12px;
  background: rgba(255,255,255,.05);
  border-radius: var(--ps-radius-sm);
  font-size: 12px;
}

#footer-bottom.footer-bottom {
  background: #0a0f1f;
  color: var(--ps-text-light);
  padding: 20px 0;
  font-size: 13px;
}
#footer-bottom .copyright {
  float: left;
  color: rgba(255,255,255,.7);
}
#footer-bottom .powered_by {
  float: right;
  color: rgba(255,255,255,.5);
}
#footer-bottom .powered_by a { color: rgba(255,255,255,.75); }
#footer-bottom .powered_by a:hover { color: var(--ps-accent); }
#footer-bottom .row::after { content: ''; display: block; clear: both; }

/* ---------- Scroll-to-top button ---------- */
.scrollup {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px; height: 44px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: var(--ps-primary);
  color: #fff !important;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: var(--ps-shadow-lg);
  z-index: 100;
  transition: all .2s ease;
  opacity: 0.9;
}
.scrollup:hover {
  background: var(--ps-accent);
  opacity: 1;
  transform: translateY(-3px);
  color: #fff !important;
}
.scrollup .fa { font-size: 18px; }

/* ---------- Whatsapp join-chat (leave plugin layout) ---------- */
.joinchat { z-index: 90; }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .better-health-info .contact-detail2 { gap: 10px; }
  .better-health-info .contact-detail2 a { font-size: 12.5px; padding: 4px 10px; }
}

@media (max-width: 991px) {
  .navbar-toggle { display: inline-flex; }
  #header .container { gap: 16px; }
  .better-health-info { display: none; }

  #menu-bar.main-menu { position: static; }
  #menu-bar .navbar-collapse {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  #menu-bar .navbar-collapse.in {
    max-height: 80vh;
    overflow-y: auto;
    padding: 12px 0 !important;
  }

  .nav.navbar-nav {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 2px;
  }
  .nav.navbar-nav > li > a {
    display: block;
    padding: 12px 16px;
  }
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 4px 0 4px 16px;
    margin: 0;
    background: rgba(0,0,0,.12);
    min-width: auto;
    border-radius: 0;
  }
  .dropdown-menu > li > a {
    color: rgba(255,255,255,.85) !important;
  }
  .dropdown-menu > li > a:hover {
    background: rgba(255,255,255,.08) !important;
    color: #fff !important;
  }
  .dropdown-menu .dropdown > .dropdown-menu {
    top: auto; left: auto; margin-left: 0;
    padding-left: 16px;
  }
  .dropdown-menu .dropdown > a::after { content: '+'; }

  #section1 .col-md-3 { flex: 0 0 50%; max-width: 50%; }
  .left-block, .right-block { flex: 0 0 100%; max-width: 100%; }
}

@media (max-width: 768px) {
  .top-header { font-size: 12px; }
  .top-header .search-block { width: 220px; right: -30px; }

  .navbar-brand img, .custom-logo { height: 46px !important; max-width: 240px !important; }
  .carousel-control { width: 36px; height: 36px; }
  .carousel-control.left { left: 10px; }
  .carousel-control.right { right: 10px; }

  #section1 .col-md-3 { flex: 0 0 100%; max-width: 100%; }
  #section16 article, .post, .page { padding: 20px; }

  #footer-bottom .copyright, #footer-bottom .powered_by {
    float: none;
    text-align: center;
    display: block;
  }

  .carousel-inner > .item { min-height: 260px; }
  .carousel-inner .slider-content { padding: 32px 16px; }
}

@media (max-width: 480px) {
  body { font-size: 14px; }
  .container, .container-fluid { padding: 0 12px; }
  h1, .entry-title { font-size: 1.5rem; }
  .section-1-box { padding: 24px 18px; }
  .top-widget-contacts .widget { padding: 14px 16px; }
  .scrollup { width: 40px; height: 40px; bottom: 20px; right: 20px; }
}

/* ---------- Print ---------- */
@media print {
  .top-header, .main-menu, .footer-top, .footer-bottom, .scrollup, .joinchat,
  .carousel-control, #slider { display: none !important; }
  body { background: #fff !important; color: #000; }
  .section-1-box, article, .post, .page { box-shadow: none; border-color: #ccc; }
}

/* =========================================================================
   FIXES PATCH v2 — joinchat + visitor counter
   ========================================================================= */

/* 1) WhatsApp joinchat plugin — the plugin CSS is broken so all inner
      text/QR/greeting spills out as plain text. Restyle as a proper
      floating button and hide everything else. */
.joinchat {
  position: fixed !important;
  bottom: 28px !important;
  left: 20px !important;
  right: auto !important;
  top: auto !important;
  width: 56px !important;
  height: 56px !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  z-index: 95 !important;
  overflow: visible !important;
  display: block !important;
  font-size: 0 !important;   /* hide any loose text nodes */
  color: transparent !important;
}

/* Nuke every descendant's default rendering, then re-show only the button */
.joinchat * {
  font-size: 0 !important;
  color: transparent !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 0 !important;
}

/* Hide all the tooltip/QR/message/badge children */
.joinchat__tooltip,
.joinchat__qr,
.joinchat__header,
.joinchat__box,
.joinchat__chat,
.joinchat__message,
.joinchat__copy,
.joinchat__badge,
.joinchat__open,
.joinchat__close,
.joinchat .joinchat__header__link,
.joinchat img,
.joinchat svg:not(.joinchat__btn-svg) {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* The actual button — redraw as WhatsApp circle */
.joinchat__button,
.joinchat > a,
.joinchat > div:first-of-type {
  position: absolute !important;
  inset: 0 !important;
  width: 56px !important;
  height: 56px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #25D366 !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  box-shadow: 0 6px 16px rgba(37,211,102,.4), 0 0 0 0 rgba(37,211,102,.5) !important;
  transition: transform .2s ease, box-shadow .2s ease !important;
  overflow: visible !important;
  animation: joinchat-pulse 2.5s ease-in-out infinite !important;
}
.joinchat__button:hover,
.joinchat > a:hover {
  transform: scale(1.08) !important;
  background: #128C7E !important;
}

/* Draw WhatsApp glyph with ::before (pure CSS, no dependency on plugin assets) */
.joinchat__button::before,
.joinchat > a::before,
.joinchat > div:first-of-type::before {
  content: '' !important;
  display: block !important;
  width: 30px !important;
  height: 30px !important;
  background: #fff !important;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'><path fill='black' d='M380.9 97.1C339 55.1 283.2 32 223.9 32c-122.4 0-222 99.6-222 222 0 39.1 10.2 77.3 29.6 111L0 480l117.7-30.9c32.4 17.7 68.9 27 106.1 27h.1c122.3 0 224.1-99.6 224.1-222 0-59.3-25.2-115-67.1-157zm-157 341.6c-33.2 0-65.7-8.9-94-25.7l-6.7-4-69.8 18.3L72 359.2l-4.4-7c-18.5-29.4-28.2-63.3-28.2-98.2 0-101.7 82.8-184.5 184.6-184.5 49.3 0 95.6 19.2 130.4 54.1 34.8 34.9 56.2 81.2 56.1 130.5 0 101.8-84.9 184.6-186.6 184.6zm101.2-138.2c-5.5-2.8-32.8-16.2-37.9-18-5.1-1.9-8.8-2.8-12.5 2.8-3.7 5.6-14.3 18-17.6 21.8-3.2 3.7-6.5 4.2-12 1.4-32.6-16.3-54-29.1-75.5-66-5.7-9.8 5.7-9.1 16.3-30.3 1.8-3.7.9-6.9-.5-9.7-1.4-2.8-12.5-30.1-17.1-41.2-4.5-10.8-9.1-9.3-12.5-9.5-3.2-.2-6.9-.2-10.6-.2-3.7 0-9.7 1.4-14.8 6.9-5.1 5.6-19.4 19-19.4 46.3 0 27.3 19.9 53.7 22.6 57.4 2.8 3.7 39.1 59.7 94.8 83.8 35.2 15.2 49 16.5 66.6 13.9 10.7-1.6 32.8-13.4 37.4-26.4 4.6-13 4.6-24.1 3.2-26.4-1.3-2.5-5-3.9-10.5-6.6z'/></svg>") no-repeat center / contain !important;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'><path fill='black' d='M380.9 97.1C339 55.1 283.2 32 223.9 32c-122.4 0-222 99.6-222 222 0 39.1 10.2 77.3 29.6 111L0 480l117.7-30.9c32.4 17.7 68.9 27 106.1 27h.1c122.3 0 224.1-99.6 224.1-222 0-59.3-25.2-115-67.1-157zm-157 341.6c-33.2 0-65.7-8.9-94-25.7l-6.7-4-69.8 18.3L72 359.2l-4.4-7c-18.5-29.4-28.2-63.3-28.2-98.2 0-101.7 82.8-184.5 184.6-184.5 49.3 0 95.6 19.2 130.4 54.1 34.8 34.9 56.2 81.2 56.1 130.5 0 101.8-84.9 184.6-186.6 184.6zm101.2-138.2c-5.5-2.8-32.8-16.2-37.9-18-5.1-1.9-8.8-2.8-12.5 2.8-3.7 5.6-14.3 18-17.6 21.8-3.2 3.7-6.5 4.2-12 1.4-32.6-16.3-54-29.1-75.5-66-5.7-9.8 5.7-9.1 16.3-30.3 1.8-3.7.9-6.9-.5-9.7-1.4-2.8-12.5-30.1-17.1-41.2-4.5-10.8-9.1-9.3-12.5-9.5-3.2-.2-6.9-.2-10.6-.2-3.7 0-9.7 1.4-14.8 6.9-5.1 5.6-19.4 19-19.4 46.3 0 27.3 19.9 53.7 22.6 57.4 2.8 3.7 39.1 59.7 94.8 83.8 35.2 15.2 49 16.5 66.6 13.9 10.7-1.6 32.8-13.4 37.4-26.4 4.6-13 4.6-24.1 3.2-26.4-1.3-2.5-5-3.9-10.5-6.6z'/></svg>") no-repeat center / contain !important;
}

@keyframes joinchat-pulse {
  0%, 100% { box-shadow: 0 6px 16px rgba(37,211,102,.4), 0 0 0 0 rgba(37,211,102,.5); }
  50%      { box-shadow: 0 6px 16px rgba(37,211,102,.4), 0 0 0 14px rgba(37,211,102,0); }
}

/* 2) Visitor counter plugin — images load from absolute URL and 404 when
      offline. Hide the entire widget since it's decorative only. */
.widget_xt_visitor_counter,
#mvcwid,
#xtvccount,
#xtvctable,
#xtvcvisit, #xtvcmonth, #xtvcyear, #xtvcviews, #xtvctotalviews {
  display: none !important;
}
/* Also hide any other image with broken absolute URL to the original domain */
img[src*="rsuddrsoedarso.kalbarprov.go.id/wp-content/plugins/xt-visitor-counter"],
img[src*="kalbarprov.go.id/wp-content/plugins/xt-visitor-counter"] {
  display: none !important;
}

/* Hide the footer-top-box wrapper if it's now empty */
.footer-top-box:empty,
.footer-top-box:has(> section:only-child.widget_xt_visitor_counter) {
  display: none !important;
}
