/* ==========================================================================
   Template: ugan_clean (АУ Санаторий "Юган")
   Modernized Authentic Design & Layout (Healthcare & Wellness)
   Clean, secure, lightweight - NO Helix framework backend
   ========================================================================== */

:root {
  --ugan-green: #047607;
  --ugan-green-dark: #035e05;
  --ugan-green-light: #73b401;
  --ugan-green-forest: #113813;
  --ugan-green-tint: #f0fdf4;
  --ugan-accent: #2ba84a;
  --ugan-text-main: #2d3748;
  --ugan-text-muted: #64748b;
  --ugan-bg-page: #f8faf9;
  --ugan-bg-card: #ffffff;
  --ugan-border: #e2ece4;
  --ugan-shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.04);
  --ugan-shadow-md: 0 6px 18px rgba(4, 118, 7, 0.06);
  --ugan-shadow-lg: 0 12px 28px rgba(4, 118, 7, 0.10);
  --ugan-radius: 12px;
  --ugan-transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ugan-text-main);
  background-color: var(--ugan-bg-page);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #0345bf;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #022f87;
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  border-style: none;
}

a img {
  border: none !important;
  outline: none !important;
}

/* ==========================================================================
   1. #sp-header: Top Green Navigation Bar
   ========================================================================== */
#sp-header {
  background: linear-gradient(135deg, #035e05 0%, #047607 60%, #0b8a0f 100%);
  min-height: 52px;
  position: relative;
  z-index: 1000;
  box-shadow: 0 3px 12px rgba(3, 94, 5, 0.2);
}

#sp-header .container,
#sp-header .container-inner {
  position: relative;
}

/* Menu items */
.sp-megamenu-parent,
#sp-header ul.nav.menu,
#sp-header ul.menu,
#sp-header ul.nav,
.sp-megamenu-wrapper ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.sp-megamenu-parent > li,
#sp-header ul.nav.menu > li,
#sp-header ul.menu > li,
#sp-header ul.nav > li,
.sp-megamenu-wrapper > ul > li {
  position: relative;
  margin: 0 2px;
  padding: 0;
}

.sp-megamenu-parent > li > a,
.sp-megamenu-parent > li > span,
#sp-header ul.nav.menu > li > a,
#sp-header ul.nav.menu > li > span,
#sp-header ul.menu > li > a,
#sp-header ul.menu > li > span,
#sp-header ul.nav > li > a,
#sp-header ul.nav > li > span,
.sp-megamenu-wrapper > ul > li > a,
.sp-megamenu-wrapper > ul > li > span {
  font-family: inherit;
  color: #ffffff !important;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.1px;
  line-height: 36px;
  padding: 0 14px;
  margin: 8px 0;
  border-radius: 6px;
  text-decoration: none;
  display: block;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.sp-megamenu-parent > li:hover > a,
.sp-megamenu-parent > li:hover > span,
#sp-header ul.nav.menu > li:hover > a,
#sp-header ul.menu > li:hover > a,
#sp-header ul.nav > li:hover > a,
.sp-megamenu-wrapper > ul > li:hover > a {
  background-color: rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  text-decoration: none;
  transform: translateY(-1px);
}

.sp-megamenu-parent > li.active > a,
.sp-megamenu-parent > li.active:hover > a,
.sp-megamenu-parent > li.current-item > a,
.sp-megamenu-parent > li.current > a,
#sp-header ul.nav.menu > li.active > a,
#sp-header ul.nav.menu > li.current > a,
#sp-header ul.menu > li.active > a,
#sp-header ul.menu > li.current > a,
.sp-megamenu-wrapper > ul > li.active > a {
  background: #73b401 !important;
  color: #ffffff !important;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(115, 180, 1, 0.35);
}

/* ==========================================================================
   DROPDOWN MENUS (SOLID OPAQUE WHITE BACKGROUND - NO TRANSPARENCY)
   ========================================================================== */

/* All dropdown containers: div.sp-dropdown, ul.nav-child, ul.menu-child, li ul */
.sp-dropdown,
.sp-megamenu-parent .sp-dropdown-main,
#sp-header ul.nav.menu > li ul,
#sp-header ul.menu > li ul,
#sp-header ul.nav > li ul,
#sp-header li ul,
.sp-megamenu-wrapper li ul,
#mainNavWrapper li ul,
ul.nav-child,
ul.menu-child,
li.deeper > ul,
li.parent > ul,
li.menu-parent > ul,
li.sp-has-child > ul {
  position: absolute;
  top: calc(100% - 2px);
  left: 0;
  min-width: 250px;
  width: max-content;
  max-width: 360px;
  z-index: 99999 !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 6px 0 !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  opacity: 1 !important;
  border-radius: 10px !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16), 0 2px 6px rgba(0, 0, 0, 0.06) !important;
  display: none;
}

/* Inner dropdown container (uganRenderDesktopTree) */
.sp-dropdown-inner {
  background: #ffffff !important;
  background-color: #ffffff !important;
  border-radius: 10px !important;
  border: none !important;
  padding: 0 !important;
  overflow: hidden !important;
  width: 100% !important;
  box-shadow: none !important;
}

ul.sp-dropdown-items {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  width: 100% !important;
}

/* Show dropdowns on hover */
.sp-megamenu-parent li:hover > .sp-dropdown,
.sp-dropdown li:hover > .sp-dropdown-sub,
#sp-header ul.nav.menu > li:hover > ul,
#sp-header ul.menu > li:hover > ul,
#sp-header ul.nav > li:hover > ul,
#sp-header li:hover > ul,
.sp-megamenu-wrapper li:hover > ul,
#mainNavWrapper li:hover > ul,
li.deeper:hover > ul,
li.parent:hover > ul,
li.menu-parent:hover > ul,
li.sp-has-child:hover > ul {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  animation: dropdownFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dropdownFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Submenu items (li) */
.sp-dropdown li,
.sp-dropdown-inner li,
ul.sp-dropdown-items li,
#sp-header ul.nav.menu li ul li,
#sp-header ul.menu li ul li,
#sp-header ul.nav li ul li,
#sp-header li ul li,
.sp-megamenu-wrapper li ul li,
#mainNavWrapper li ul li,
ul.nav-child li,
ul.menu-child li {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  position: relative !important;
  display: block !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  border: none !important;
  text-align: left !important;
}

/* Submenu links and headings (a, span) */
.sp-dropdown li > a,
.sp-dropdown li > span,
.sp-dropdown-inner li > a,
.sp-dropdown-inner li > span,
ul.sp-dropdown-items li > a,
ul.sp-dropdown-items li > span,
#sp-header ul.nav.menu li ul li > a,
#sp-header ul.nav.menu li ul li > span,
#sp-header ul.menu li ul li > a,
#sp-header ul.menu li ul li > span,
#sp-header ul.nav li ul li > a,
#sp-header ul.nav li ul li > span,
#sp-header li ul li > a,
#sp-header li ul li > span,
.sp-megamenu-wrapper li ul li > a,
.sp-megamenu-wrapper li ul li > span,
#mainNavWrapper li ul li > a,
#mainNavWrapper li ul li > span,
ul.nav-child li > a,
ul.nav-child li > span,
ul.menu-child li > a,
ul.menu-child li > span {
  font-family: inherit !important;
  font-size: 13.5px !important;
  color: #1e293b !important;
  font-weight: 500 !important;
  line-height: 1.45 !important;
  padding: 9px 18px !important;
  margin: 0 !important;
  display: block !important;
  border-bottom: 1px solid #f1f5f9 !important;
  border-radius: 0 !important;
  text-decoration: none !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  opacity: 1 !important;
  letter-spacing: normal !important;
  white-space: normal !important;
  transition: all 0.15s ease !important;
  text-transform: none !important;
}

/* Remove bottom border on last item */
.sp-dropdown li:last-child > a,
.sp-dropdown li:last-child > span,
.sp-dropdown-inner li:last-child > a,
ul.sp-dropdown-items li:last-child > a,
#sp-header ul.nav.menu li ul li:last-child > a,
#sp-header ul.menu li ul li:last-child > a,
#sp-header li ul li:last-child > a,
.sp-megamenu-wrapper li ul li:last-child > a,
#mainNavWrapper li ul li:last-child > a,
ul.nav-child li:last-child > a,
ul.menu-child li:last-child > a {
  border-bottom: none !important;
}

/* Hover and active states for submenu links */
.sp-dropdown li > a:hover,
.sp-dropdown-inner li > a:hover,
ul.sp-dropdown-items li > a:hover,
#sp-header ul.nav.menu li ul li > a:hover,
#sp-header ul.menu li ul li > a:hover,
#sp-header ul.nav li ul li > a:hover,
#sp-header li ul li > a:hover,
.sp-megamenu-wrapper li ul li > a:hover,
#mainNavWrapper li ul li > a:hover,
ul.nav-child li > a:hover,
ul.menu-child li > a:hover,
.sp-dropdown li.active > a,
.sp-dropdown li.current-item > a,
.sp-dropdown-inner li.active > a,
#sp-header li ul li.active > a,
#sp-header li ul li.current > a,
.sp-megamenu-wrapper li ul li.active > a,
ul.nav-child li.active > a,
ul.menu-child li.active > a {
  color: #047607 !important;
  background: #f0fdf4 !important;
  background-color: #f0fdf4 !important;
  padding-left: 22px !important;
  text-decoration: none !important;
}

/* Nested submenus (3rd level) */
.sp-dropdown .sp-dropdown-sub,
#sp-header ul.nav.menu li ul li ul,
#sp-header ul.menu li ul li ul,
#sp-header ul.nav li ul li ul,
#sp-header li ul li ul,
.sp-megamenu-wrapper li ul li ul,
#mainNavWrapper li ul li ul,
ul.nav-child li ul,
ul.menu-child li ul {
  top: 0 !important;
  left: 100% !important;
  margin-left: 2px !important;
  padding: 6px 0 !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  border-radius: 10px !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16) !important;
}

/* Utilities (Search & Accessibility) */
.header-right-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search {
  display: flex;
  align-items: center;
}

.search a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  transition: all 0.2s ease;
}

.search a:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.06);
}

.search .layer {
  max-height: 18px;
  width: auto;
  cursor: pointer;
  display: block;
}

.col-data-wrapper-2 {
  display: flex;
  align-items: center;
}

.col-data-wrapper-2 a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  text-decoration: none;
  transition: all 0.2s ease;
}

.col-data-wrapper-2 a:hover {
  background: #ffffff;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.layer-2 {
  max-width: 20px;
  height: auto;
  display: block;
  transition: filter 0.2s ease;
}

.col-data-wrapper-2 .text {
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.2px;
  transition: color 0.2s ease;
}

.col-data-wrapper-2 a:hover .text {
  color: #047607 !important;
}

/* ==========================================================================
   Mobile Header & Offcanvas Navigation Drawer
   ========================================================================== */

/* 1. Top Bar Mobile Toggler Button */
.mobile-toggler-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 24px;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
  font-family: inherit;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.mobile-toggler-btn:hover,
.mobile-toggler-btn:focus {
  background: #ffffff;
  color: #047607;
  border-color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.mobile-toggler-btn .burger-icon-bar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 18px;
  height: 13px;
}

.mobile-toggler-btn .burger-icon-bar span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-toggler-btn .toggler-label {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

/* 2. Backdrop Overlay */
.mobile-drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 25, 15, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-drawer-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

/* Body lock when mobile menu is open */
body.mobile-menu-open {
  overflow: hidden !important;
  touch-action: none;
}

/* 3. Offcanvas Drawer */
.mobile-menu-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 86%;
  max-width: 380px;
  height: 100%;
  background: #ffffff;
  z-index: 10001;
  box-shadow: 6px 0 30px rgba(0, 0, 0, 0.25);
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.mobile-menu-drawer.is-open {
  transform: translateX(0);
}

.mobile-drawer-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* 4. Drawer Header */
.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: linear-gradient(135deg, #035e05 0%, #047607 100%);
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  position: sticky;
  top: 0;
  z-index: 10;
}

.drawer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.drawer-logo {
  height: 42px;
  width: auto;
  border-radius: 4px;
  background: #ffffff;
  padding: 2px;
}

.drawer-brand-text {
  display: flex;
  flex-direction: column;
}

.drawer-brand-text strong {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.drawer-brand-text span {
  font-size: 11.5px;
  color: #d1fae5;
  letter-spacing: 0.3px;
}

.drawer-close-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.drawer-close-btn:hover {
  background: #ffffff;
  color: #047607;
  transform: rotate(90deg);
}

/* 5. Drawer Search */
.mobile-drawer-search {
  padding: 16px 18px 10px;
  background: #f8faf9;
  border-bottom: 1px solid #eef2f0;
}

.mobile-search-form {
  position: relative;
  display: flex;
  align-items: center;
}

.mobile-search-input {
  width: 100%;
  height: 44px;
  padding: 10px 44px 10px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 22px;
  font-size: 14px;
  font-family: inherit;
  background: #ffffff;
  color: #1e293b;
  outline: none;
  transition: all 0.2s ease;
}

.mobile-search-input:focus {
  border-color: #047607;
  box-shadow: 0 0 0 3px rgba(4, 118, 7, 0.15);
}

.mobile-search-submit {
  position: absolute;
  right: 6px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: #047607;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: background 0.2s ease;
}

.mobile-search-submit:hover {
  background: #73b401;
}

/* 6. Quick Action (Accessibility) */
.mobile-drawer-actions {
  padding: 10px 18px 14px;
  background: #f8faf9;
  border-bottom: 1px solid #eef2f0;
}

.mobile-action-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 10px 16px;
  border-radius: 22px;
  color: #047607;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.mobile-action-pill:hover {
  background: #dcfce7;
  border-color: #86efac;
  color: #035e05;
  text-decoration: none;
}

.mobile-action-pill .action-icon {
  max-width: 20px;
  height: auto;
  display: block;
}

/* 7. Navigation Tree */
.mobile-drawer-nav {
  flex-grow: 1;
  padding: 8px 0;
  background: #ffffff;
}

.mobile-drawer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-drawer-nav li.sp-menu-item,
.mobile-drawer-nav li.deeper,
.mobile-drawer-nav li {
  border-bottom: 1px solid #f1f5f9;
  margin: 0;
  padding: 0;
}

.mobile-drawer-nav .mobile-item-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  padding: 2px 18px;
  transition: background-color 0.15s ease;
}

.mobile-drawer-nav .mobile-item-wrap:hover {
  background-color: #f8fafc;
}

.mobile-drawer-nav li.current-item > .mobile-item-wrap,
.mobile-drawer-nav li.active > .mobile-item-wrap {
  background-color: #f0fdf4;
}

.mobile-drawer-nav .mobile-item-wrap a,
.mobile-drawer-nav .mobile-item-wrap .sp-menu-separator {
  flex-grow: 1;
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  color: #1e293b;
  text-decoration: none;
  padding: 11px 0;
  line-height: 1.4;
}

.mobile-drawer-nav li.current-item > .mobile-item-wrap a {
  color: #047607 !important;
  font-weight: 700 !important;
}

.mobile-drawer-nav .mobile-item-wrap a:hover {
  color: #047607;
  text-decoration: none;
}

/* Chevron Dropdown Buttons */
.mobile-dropdown-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #64748b;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: 8px;
  outline: none;
  transition: all 0.2s ease;
}

.mobile-dropdown-btn:hover {
  background: #047607;
  color: #ffffff;
  border-color: #047607;
}

.mobile-dropdown-btn.is-active {
  background: #047607;
  color: #ffffff;
  border-color: #047607;
}

.mobile-dropdown-btn i {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Nested Submenus (Accordion) */
.mobile-drawer-nav ul.nav-child,
.mobile-drawer-nav ul.menu-child,
.mobile-drawer-nav li ul,
.mobile-submenu {
  display: none;
  background: #f8faf9 !important;
  background-color: #f8faf9 !important;
  border-left: 3px solid #2ba84a;
  margin-left: 20px;
  padding: 4px 0 8px;
  overflow: hidden;
  animation: submenuSlideDown 0.25s ease;
}

.mobile-submenu.is-expanded {
  display: block;
}

@keyframes submenuSlideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.mobile-submenu li.sp-menu-item {
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

.mobile-submenu li.sp-menu-item:last-child {
  border-bottom: none;
}

.mobile-submenu .mobile-item-wrap {
  min-height: 44px;
  padding: 2px 14px;
}

.mobile-submenu .mobile-item-wrap a {
  font-size: 13.5px;
  font-weight: 500;
  color: #475569;
  padding: 8px 0;
}

.mobile-submenu .mobile-item-wrap a:hover {
  color: #047607;
}

.mobile-submenu .mobile-dropdown-btn {
  width: 38px;
  height: 38px;
  min-width: 38px;
  font-size: 12px;
}

/* Level 3 Submenus */
.mobile-submenu .mobile-submenu {
  border-left-color: #73b401;
  margin-left: 14px;
  background: #f1f5f2;
}

/* 8. Drawer Footer */
.mobile-drawer-footer {
  padding: 20px 18px 24px;
  background: #f8fafc;
  border-top: 1px solid #eef2f0;
  text-align: center;
}

.mobile-drawer-footer .footer-dept {
  font-size: 11.5px;
  color: #64748b;
  margin-bottom: 6px;
  line-height: 1.35;
}

.mobile-drawer-footer .footer-copy {
  font-size: 12px;
  font-weight: 600;
  color: #1e293b;
}

@media (max-width: 576px) {
  #sp-header {
    min-height: 48px;
  }
  .mobile-toggler-btn {
    padding: 6px 12px;
    font-size: 12.5px;
  }
  .mobile-toggler-btn .burger-icon-bar {
    width: 16px;
    height: 12px;
  }
  .col-data-wrapper-2 .text {
    display: none;
  }
  .col-data-wrapper-2 a {
    padding: 6px 10px;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    justify-content: center;
  }
  .layer-2 {
    margin-right: 0;
  }
}

/* ==========================================================================
   2. #sp-header-topbar: Logo & Organization Title
   ========================================================================== */
#sp-header-topbar {
  background: #ffffff;
  padding: 18px 0;
  position: relative;
  z-index: 98;
  border-bottom: 1px solid #eef2f0;
}

#sp-header-topbar .container-inner > .row {
  min-height: 85px;
}

.logo {
  display: inline-block;
  transition: transform 0.2s ease;
}

.logo:hover {
  transform: scale(1.02);
}

.logo-image {
  height: 85px;
  width: auto;
  display: inline-block;
}

.logo-image-phone {
  height: 85px;
  width: auto;
}

.header-titles {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.dept-title-text {
  font-size: 12.5px !important;
  font-weight: 600 !important;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #64748b !important;
  margin-bottom: 6px;
  line-height: 1.35;
}

.sanatorium-title-text {
  font-size: 24pt !important;
  font-weight: 800 !important;
  letter-spacing: -0.3px;
  color: #113813 !important;
  line-height: 1.15;
  margin: 0;
  padding: 0;
}

@media (max-width: 992px) {
  .logo-image,
  .logo-image-phone {
    height: 50px;
  }
  .sanatorium-title-text {
    font-size: 18pt !important;
  }
  .dept-title-text {
    font-size: 11px !important;
    letter-spacing: 0.4px;
  }
}

@media (max-width: 576px) {
  .logo-image,
  .logo-image-phone {
    height: 42px;
  }
  .sanatorium-title-text {
    font-size: 14pt !important;
  }
  .dept-title-text {
    font-size: 10px !important;
  }
}

#sp-contact .custom {
  text-align: center;
}

/* ==========================================================================
   3. #sp-section-1: Slider
   ========================================================================== */
#sp-section-1 {
  width: 100%;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

#sp-slide {
  width: 100%;
}

#sp-slide img,
#sp-section-1 img {
  border: none !important;
  outline: none !important;
}

/* ==========================================================================
   4. #sp-section-2: Welcome (position1)
   ========================================================================== */
#sp-section-2 {
  padding: 28px 0 16px;
  background: transparent;
}

.welcome-card,
#sp-section-2 .sp-column {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2ece4;
  box-shadow: 0 4px 20px rgba(4, 118, 7, 0.04);
  padding: 36px 42px;
  position: relative;
  overflow: hidden;
}

.welcome-card::before,
#sp-section-2 .sp-column::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #047607, #73b401);
}

#sp-position1 {
  font-family: inherit;
  font-size: 15px;
  line-height: 1.75;
  color: #374151;
  text-align: left;
}

#sp-position1 h1,
#sp-position1 h2,
#sp-position1 h3 {
  color: #113813;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 18px;
}

#sp-position1 p {
  margin-bottom: 16px;
  text-align: left !important;
}

#sp-position1 p:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .welcome-card,
  #sp-section-2 .sp-column {
    padding: 24px 20px;
    border-radius: 12px;
  }
}

/* ==========================================================================
   5. #sp-main-body: Main Content
   ========================================================================== */
body.is-home #sp-main-body {
  display: none !important;
}

#sp-main-body {
  padding: 24px 0;
  min-height: 250px;
}

#sp-main-body .container {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e5e9e6;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

/* ==========================================================================
   6. #sp-bottom: Banners in 3 Columns
   ========================================================================== */
#sp-bottom {
  background-color: #f1efef;
  padding: 32px 0 20px;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

#sp-bottom .sp-column {
  display: flex;
  flex-direction: column;
}

#sp-bottom .sp-module,
#sp-bottom .custom {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  transform: none !important;
}

#sp-bottom .sp-module:hover,
#sp-bottom .custom:hover {
  transform: none !important;
  box-shadow: none !important;
  border: none !important;
}

#sp-bottom p,
#sp-bottom div {
  margin-bottom: 14px;
  text-align: center;
}

#sp-bottom p:last-child,
#sp-bottom div:last-child {
  margin-bottom: 0;
}

#sp-bottom a {
  display: inline-block;
  max-width: 100%;
  text-decoration: none;
  border: none !important;
  outline: none !important;
}

#sp-bottom img {
  max-width: 100%;
  height: auto;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: block;
  margin: 0 auto;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

#sp-bottom a:hover img {
  opacity: 0.92;
  transform: translateY(-2px);
}

/* ==========================================================================
   7. #sp-section-5: Latest News & Right Column
   ========================================================================== */
#sp-section-5 {
  padding: 32px 0 24px;
  margin: 16px 0;
  background: transparent;
}

h3.sp-module-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #113813;
  margin-bottom: 22px;
  position: relative;
  padding-bottom: 10px;
  letter-spacing: -0.2px;
}

h3.sp-module-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, #047607, #73b401);
  border-radius: 2px;
}

/* mod_bloglatestnews modern CSS Grid layout (2 columns in user1) */
.blog1latestnews1,
[class*="latestnews1"],
.mod-bloglatestnews-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 20px !important;
  padding: 0 !important;
  margin: 15px 0 25px !important;
}

.blog1latestnews2,
[class*="latestnews2"],
.news-card {
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  background: #ffffff !important;
  border-radius: 12px !important;
  border: 1px solid #e5e9e6 !important;
  overflow: hidden !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
  display: flex !important;
  flex-direction: column !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.blog1latestnews2:hover,
[class*="latestnews2"]:hover,
.news-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 10px 24px rgba(4, 118, 7, 0.1) !important;
  border-color: #cde2d1 !important;
}

.blog1latestnews3,
[class*="latestnews3"],
.news-thumb {
  height: 180px !important;
  overflow: hidden !important;
  position: relative !important;
  margin: 0 !important;
  padding: 0 !important;
  background-color: #f1f5f9 !important;
}

.blog1latestnews3 img,
[class*="latestnews3"] img,
.news-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
  transition: transform 0.4s ease !important;
}

.blog1latestnews2:hover .blog1latestnews3 img,
.news-card:hover .news-thumb img {
  transform: scale(1.05) !important;
}

.news-card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog1latestnews4,
[class*="latestnews4"],
.news-title {
  padding: 14px 16px 8px !important;
  margin: 0 !important;
  font-size: 15px !important;
  line-height: 1.35 !important;
  font-weight: 700 !important;
  text-align: left !important;
}

.blog1latestnews4 a,
[class*="latestnews4"] a,
.news-title a {
  color: #1e293b !important;
  font-size: 15px !important;
  line-height: 1.35 !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  transition: color 0.2s ease !important;
}

.blog1latestnews2:hover .blog1latestnews4 a,
.news-card:hover .news-title a {
  color: #047607 !important;
}

.blog1latestnews5,
[class*="latestnews5"],
.news-intro {
  padding: 0 16px 14px !important;
  margin: 0 !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
  color: #64748b !important;
  flex-grow: 1 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.blog1latestnews6,
[class*="latestnews6"],
.news-date {
  padding: 10px 16px !important;
  margin-top: auto !important;
  font-size: 12px !important;
  line-height: 1 !important;
  color: #94a3b8 !important;
  border-top: 1px solid #f1f5f9 !important;
  text-align: right !important;
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  gap: 6px;
}

.blog1latestnews7a,
.blog1latestnews7b_2,
.blog1latestnews7b_3 {
  display: none !important;
  clear: both;
}

@media (max-width: 575px) {
  .blog1latestnews1,
  [class*="latestnews1"],
  .mod-bloglatestnews-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Right Column Widgets & Banners */
#sp-right .sp-column > .sp-module,
#sp-right .sp-module,
#sp-right .custom {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin-bottom: 20px;
  box-shadow: none !important;
}

#sp-right p,
#sp-right div.banner-item {
  margin-bottom: 14px;
}

#sp-right p:last-child {
  margin-bottom: 0;
}

#sp-right a {
  display: inline-block;
  max-width: 100%;
  text-decoration: none;
  border: none !important;
  outline: none !important;
}

#sp-right img {
  max-width: 100%;
  height: auto;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

#sp-right a:hover img {
  transform: translateY(-2px);
  opacity: 0.92;
}

@media (min-width: 992px) {
  #sp-right .sticky-sidebar {
    position: sticky;
    top: 70px;
  }
}

/* ==========================================================================
   8. #sp-footer: Footer
   ========================================================================== */
#sp-footer {
  background-color: #1a221d;
  color: #e2e8f0;
  padding: 48px 0 32px;
  font-size: 14px;
  border-top: 3px solid #047607;
}

#sp-footer a {
  color: #94a3b8;
  text-decoration: none;
  transition: all 0.2s ease;
}

#sp-footer a:hover {
  color: #86efac;
}

#sp-footer h3.sp-module-title {
  color: #ffffff;
  font-size: 1.15rem;
  margin-bottom: 20px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

#sp-footer h3.sp-module-title::after {
  background: #73b401;
}

#sp-footer ul.menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 28px;
}

#sp-footer ul.menu li {
  width: 100%;
  margin: 0;
}

#sp-footer ul.menu li a {
  color: #94a3b8;
  font-size: 13.5px;
  line-height: 1.5;
  display: inline-block;
  padding: 3px 0;
}

#sp-footer ul.menu li a:hover {
  color: #ffffff;
  transform: translateX(3px);
}

@media (max-width: 767px) {
  #sp-footer ul.menu {
    grid-template-columns: 1fr;
  }
}

/* Scroll Up Button */
.sp-scroll-up {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #047607, #2ba84a);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(4, 118, 7, 0.35);
  transition: all 0.25s ease;
}

.sp-scroll-up:hover {
  background: linear-gradient(135deg, #73b401, #84cc03);
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(115, 180, 1, 0.45);
  color: #ffffff;
}
