body {
  background: #fff;
  color: #000;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.42857143;
  margin: 0 0 68px;
}

.static-top.navbar-dark .nav-link {
  text-decoration: none;
  color: #004985; /* Blau für Links */
}

.static-top.navbar-dark .nav-link:visited {
  color: #004985; /* Blau auch nach Besuch */
}

.static-top.navbar-dark .nav-link:hover {
  color: #004985; /* Dunkleres Blau bei Hover */
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* footer {
  position: fixed;
  bottom: 0;
  width: 94.75vw;
  background: #000;
  color: #fff;
  padding: 10px 50px;
} */

hr {
  width: 100%;
  border-top: 1px solid #b3b3b3;
}

/* Home Page */

/* Navbar styles */

.navbar,
.static-top.navbar-dark {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* padding: 0.5em 2em; */
  height: 100px;
  background-color: #ffffff;
  -webkit-box-shadow: none;
  box-shadow: none;
}

.nav-ul {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-ul a {
  color: #004985; /* Blue for normal state */
  text-decoration: none;
}

.nav-ul a:visited {
  color: #004985; /* Same blue for visited links */
}

.nav-ul a:hover {
  color: #004985; /* Optional: darker blue on hover */
}
.homeBtn {
  display: flex;
  color: #000;
  font-size: 1.5em;
  font-weight: 700;
}

#logo {
  width: 28px;
  height: 28px;
  margin-right: 0.5em;
}

.loginBtn {
  display: flex !important;
  justify-content: center;
  align-items: center;
  height: 47px;
  width: 121px;
  border-radius: 8px;
  background-color: #004985;
  color: #02569b !important;
  font-size: 18px;
}

.loginBtn:visited {
  color: #004985;
}

.header-container {
  display: flex;
  justify-content: space-between;
  margin: 3% 10%;
  width: 100%;
}

/* Header styles */

.header {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 350px;
  background-color: #f0eee8;
}

#header-title {
  font-size: 4.5em;
  font-weight: 700;
  font-family: 'Patient Discharge/Header 1', 'Poppins', sans-serif;
  font-style: normal;
  margin: 0;
  margin-bottom: 48px;
}

#search-input-home {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80px;
  width: 50vw;
  max-width: 900px;
  border-radius: 8px;
  background-color: var(--portalThemeColor7);
  color: var(--portalThemeOnColor7);
  font-size: 18px;
  border: none;
  box-shadow: 0px 0.3px 0.9px rgba(0, 0, 0, 0.1), 0px 1.6px 3.6px rgba(0, 0, 0, 0.13);
  padding-left: 60px;
}

#search-input-home::placeholder {
  color: var(--portalThemeOnColor7) !important;
}

#header-subtitle {
  font-size: 1.5em;
  font-weight: 400;
  font-style: normal;
  margin: 0;
  color: #505254;
  margin-bottom: 88px;
}

.searchContainer {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 64px;
}

#searchIcon {
  position: absolute !important;
  width: 28px;
  height: 28px;
  margin-left: 20px;
}

@media only screen and (max-width: 900px) {
  .header {
    height: 300px;
  }
  #search-input-home {
    font-size: 1em;
    width: 70vw;
  }
  #header-title {
    font-size: 2.5em;
  }
  #header-subtitle {
    font-size: 1em;
    margin: 0 10%;
  }
}

@media only screen and (max-width: 450px) {
  .header {
    height: 300px;
  }
  #search-input-home {
    font-size: 1em;
  }
  #header-title {
    font-size: 2.5em;
  }
  #header-subtitle {
    font-size: 1em;
    margin: 0 5%;
  }
}

/* Topic Styles */

#topic-container-header {
  margin-top: 88px;
  margin-left: 20%;
  margin-bottom: 0;
  font-weight: 700;
  font-size: 50px;
  line-height: 55px;
}

.topicsContainer {
  display: flex;
  /* flex-direction: row; */
  justify-content: center;
  /* align-items: center;
  height: 100%;
  background-color: #fff; */
  flex-wrap: wrap;
  /* margin-inline: auto; */
  margin: 40px 20% 112px;
}

.topic {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  height: 100%;
  background-color: #fff;
  border: 2px solid #004985;
  border-radius: 8px;
  flex-basis: 31%;
  height: auto;
  min-height: 253px;
  margin: 0.5em;
  cursor: pointer;
}

.topic:focus,
.topic:hover {
  color: #fff;
  background-color: #004985;
}

.topicTitle {
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
}

a:not(.btn):hover {
  text-decoration: none;
}

.topic:hover > .topicTitle,
.topic:focus > .topicTitle {
  color: #fff;
}

@media only screen and (max-width: 1500px) {
  .topicsContainer {
    margin: 3% 10%;
  }
  #topic-container-header {
    margin-left: 10%;
  }
  .home-topArticles-container {
    margin: 10% !important;
  }
}

@media only screen and (max-width: 1000px) {
  .topicsContainer {
    margin: 3% 7%;
  }
  #topic-container-header {
    margin-left: 7%;
  }
  .home-topArticles-container {
    margin: 7% !important;
  }
  .topic {
    flex-basis: 45%;
  }
}

@media only screen and (max-width: 600px) {
  .topic {
    flex-basis: 100%;
  }
}

/* Top Articles */

#featured-article-title {
  margin: 0;
  font-weight: 700;
  font-size: 50px;
}

.home-topArticles-container {
  display: flex;
  flex-direction: column;
  /* justify-content: space-evenly;
  align-items: center;
  height: 100%;
  background-color: #fff;
  flex-wrap: wrap;
  margin-inline: auto; */
  margin: 0 20% 112px;
}

.home-topArticles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-row-gap: 48px;
  grid-column-gap: 48px;
  min-width: 300px;
  width: 100%;
  margin-inline: auto;
  text-align: left;
}

@media screen and (max-width: 1200px) {
  .home-topArticles {
    grid-template-columns: 1fr;
  }
}

.featured-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.fa-chevron-right {
  color: var(--portalThemeColor4);
  font-size: 2em;
}

.home-topArticles-header {
  width: 100%;
}

.top-article-h2 {
  font-size: 30px;
  font-weight: 700;
  font-style: normal;
  margin: 0;
  text-align: start;
}

.top-article-p {
  font-size: 1.5em;
  font-weight: 400;
  font-style: normal;
  margin: 0;
  color: #505254;
}

.featured-article-a {
  font-size: 30px;
  font-weight: 700;
  line-height: 34px;
}

.featured-article-a:nth-child(even) {
  justify-self: end;
}

.featured-article-a:nth-child(odd) {
  justify-self: start;
}
/* Accordion */

.top-articles {
  margin: 20px 20%;
}

.accordion {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fff;
  color: #444;
  cursor: pointer;
  padding: 18px;
  width: 100%;
  max-height: 70px;
  border: none;
  text-align: left;
  outline: none;
  font-size: 1em;
  font-weight: 700;
  transition: 0.4s;
  border-bottom: 1px solid #eee;
}

.active,
.accordion:hover {
  background-color: #ccc;
}

.card {
  padding: 0 18px;
  display: none;
  background-color: white;
  overflow: hidden;
}

.expand-btn {
  font-size: 2em;
  font-weight: 300;
}

@media only screen and (max-width: 900px) {
  .top-articles {
    margin: 20px 10%;
  }
  .top-article-h2 {
    font-size: 1.5em;
  }
  .top-article-p {
    font-size: 1em;
  }
}

/* Call to Action */

.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 375px;
  background-color: #1d2a42;
}

.cta-header {
  color: #fff;
  font-size: 50px;
  margin-top: 88px;
  margin-bottom: 0;
  font-weight: 700;
  border-radius: 17.641px;
}

.cta-btn {
  background-color: #004985;
  border-radius: 8px;
  padding: 10px 50px;
  color: #fff;
  margin-bottom: 88px;
  height: 86px;
  display: flex;
  align-items: center;
  font-size: 30px;
  width: 352px;
  justify-content: center;
  font-weight: 700;
}

.cta-btn:hover,
.cta-btn:focus {
  background-color: #fff;
}

.cta-btn:visited {
  color: #fff;
}

@media only screen and (max-width: 900px) {
  .cta-header {
    margin: 10px 5%;
    text-align: center;
  }
}

/* Categories Page */

/* Search */

.categories-header {
  display: flex;
  align-items: center;
  height: 150px;
  background-color: #f0eee8;
}

#cat-search-input-home {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 60px;
  width: 40vw;
  border-radius: 8px;
  background-color: var(--portalThemeColor7);
  color: var(--portalThemeOnColor7);
  font-size: 18px;
  border: none;
  box-shadow: 0px 0.3px 0.9px rgba(0, 0, 0, 0.1), 0px 1.6px 3.6px rgba(0, 0, 0, 0.13);
  padding-left: 60px;
}

#cat-search-input-home::placeholder {
  color: var(--portalThemeOnColor7);
}

#cat-searchIcon {
  position: absolute !important;
  width: 28px;
  height: 28px;
  margin-left: 1%;
}

.cat-searchContainer {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding-left: 10%;
}

@media screen and (max-width: 900px) {
  #cat-search-input-home {
    width: 100%;
    padding-left: 40px;
    font-size: 14px;
  }
  .cat-searchContainer {
    width: 100%;
    margin: 0 5%;
    padding: 0;
  }
}

/* Main */

/* Sidebar */

.search-categories-container {
  display: flex;
  background-color: #fff;
  margin: 0 15%;
  padding: 72px 0;
  gap: 64px;
}

.categories-container {
  display: flex;
  background-color: #fff;
  margin: 0 15%;
  padding: 72px 0;
}

.category-list-container {
  display: flex;
  flex-direction: column;
  width: 25%;
}

.category-list-item {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 32px;
}

.category-list-item > a:hover {
  color: #004985;
  text-decoration: none;
}

.category-list-title {
  font-size: 1em;
  font-weight: 700;
}

.category-list-title-active {
  font-size: 1em;
  font-weight: 700;
  color: #004985 !important;
}

.list-icon {
  height: 20px;
  width: 20px;
}

.category-main {
  width: 65%;
  margin-left: 100px;
}

.category-list-a {
  margin: 0;
}

@media screen and (max-width: 900px) {
  .categories-container {
    flex-direction: column;
    margin: 0 5%;
  }
  .category-list-container {
    width: 100%;
    margin-bottom: 20px;
  }
  .category-main {
    width: 100%;
    margin-left: 0;
  }
}

#img-back-breadcrumb {
  margin-right: 16px;
}

#img-next-breadcrumb {
  margin: 0 16px;
}

/* Main Section */

.category-h1 {
  margin: 48px 0 0;
  font-size: 50px;
  line-height: 55px;
  font-weight: 700;
}

.category-h2 {
  font-size: 30px;
  font-weight: 700;
  margin: 0 0 16px;
}

.category-a {
  font-size: 18px;
}

.category-a:hover {
  color: #004985;
}

.category-list-ul > li {
  padding: 16px 0;
}

/* Answers Page */

.answers-container {
  display: flex;
  flex-direction: column;
  background-color: #fff;
  margin: 0 25%;
  padding: 2% 0;
}

.answer-title {
  font-size: 3em;
  font-weight: 700;
  margin: 48px 0 0;
}

.answer-p {
  font-size: 1.5em;
  font-weight: 400;
  margin-bottom: 56px;
  color: #505254;
}

/* List Styling */

.input-group-btn:last-child > .btn,
.input-group-btn:last-child > .btn-group {
  z-index: 4;
 margin-left: -280px;
 border: none;
  width: 16px;
  /*margin-top: 10px;*/
}

#list-search-input {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 53px;
  width: 100%;
  border-radius: 8px;
  background-color: var(--portalThemeColor7);
  color: var(--portalThemeOnColor7);
  font-size: 18px!important;
  border: none;
  box-shadow: 0px 0.3px 0.9px rgba(0, 0, 0, 0.1), 0px 1.6px 3.6px rgba(0, 0, 0, 0.13);
  padding-left: 60px;
}

#list-search-input::placeholder {
  color: var(--portalThemeOnColor7);
}

.crmEntityFormView,
.entitylist,
.modal-content,
.popover-content {
  background-color: #f0eee8;
  color: #000000;
  border: 1px solid #f0eee8;
}

footer .footer-bottom {
  height: 100px;
  background-color: #000;
  color: #fff;
}

body > footer > div {
  padding: 0;
}

footer .footer-bottom p {
  color: #fff;
}
/* keep navbar links tidy */
.static-top.navbar-dark .menu-bar .nav-link {
  text-decoration: none !important;
}

/* lock font on top-level items */
.static-top.navbar-dark .menu-bar > .navbar-nav > li > a {
  font-family: 'Segoe UI', SegoeUI, sans-serif !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
}

/* normalize sizing to match theme height */
.static-top.navbar-dark .menu-bar .nav-link {
  line-height: 21px !important;
  padding: 14px 18px !important;
  display: inline-block;
}

/* ACTIVE = rounded rectangle (not pill) */
.static-top.navbar-dark .menu-bar .nav-link.active,
.static-top.navbar-dark .menu-bar .nav-item .nav-link[aria-current="page"] {
  background: #004985 !important;
  color: #fff !important;
  border-radius: 10px !important;   /* <-- was 999px */
  box-shadow: inset 0 -1px 0 rgba(0,0,0,.08);
  transition: background .2s ease-in-out;
}

/* hover for the active tab */
.static-top.navbar-dark .menu-bar .nav-link.active:hover,
.static-top.navbar-dark .menu-bar .nav-item .nav-link[aria-current="page"]:hover {
  background: #004985 !important;
}

/* neutralize theme hover that paints the whole item */
.navbar-dark .navbar-nav > li > a:hover,
.navbar-dark .navbar-nav > li.dropdown > a:hover,
.navbar-dark .navbar-nav > li > a:focus,
.navbar-dark .navbar-nav > li.dropdown > a:focus {
  background-color: transparent !important;
}

/* hide the vertical divider li's */
.static-top.navbar-dark .divider-vertical { 
  display: none !important; 
}

/* Bigger brand logo (+20%) */
.static-top.navbar-dark .navbar-brand img,
.static-top.navbar-dark .navbar-header img{
  height: 86.4px !important;  /* was 72px */
  width: auto !important;
}

@media (max-width: 768px){
  .static-top.navbar-dark .navbar-brand img,
  .static-top.navbar-dark .navbar-header img{
    height: 52.8px !important; /* was 44px */
  }
}
/* Keep logo nicely centered vertically */
.static-top.navbar-dark .navbar-brand,
.static-top.navbar-dark .navbar-header,
.static-top.navbar-dark .navbar-brand a {
  display: flex;
  align-items: center;
}

/* Optional: slightly smaller on phones */
@media (max-width: 768px) {
  .static-top.navbar-dark .navbar-brand img,
  .static-top.navbar-dark .navbar-header img {
    height: 44px !important;
  }
}

:root{
  --app-font: "Segoe UI", SegoeUI, Arial, sans-serif;
  --bs-font-sans-serif: var(--app-font);
  --bs-body-font-family: var(--app-font);
}

html, body{
  font-family: var(--app-font) !important;
}

/* Force font inside Power Pages editable/content wrappers */
.xrm-editable-html,
.xrm-editable-text,
.xrm-attribute,
.xrm-attribute-value {
  font-family: var(--app-font) !important;
}

.xrm-editable-html *:not(i):not(.fa):not([class*="fa-"]):not(.ms-Icon),
.xrm-editable-text *:not(i):not(.fa):not([class*="fa-"]):not(.ms-Icon),
.xrm-attribute-value *:not(i):not(.fa):not([class*="fa-"]):not(.ms-Icon) {
  font-family: var(--app-font) !important;
}

/* Komponenten sollen einfach erben – so vermeidest du Mehrfach-Stacks */
h1, h2, h3, h4, h5, h6,
.navbar, .btn, .form-control, .dropdown-menu, .modal, .card {
  font-family: inherit !important;
}

/* keep input + button on one line and flush together */
.dropdown-search .search-inline{
  display:flex;
  align-items:stretch;
  flex-wrap:nowrap;
  gap:0;
}
.dropdown-search .search-inline .form-control{
  flex:1 1 auto;
  width:auto;          /* kill any 100% inline width */
  min-width:0;         /* prevent overflow */
  border-radius:4px 0 0 4px;
}
.dropdown-search .search-inline .btn{
  flex:0 0 auto;
  border-radius:0 4px 4px 0;
  margin-left:-1px;            /* overlap borders so no white seam */
  border-left:1px solid transparent;
}
/* normalize height */
.dropdown-search .search-inline .form-control,
.dropdown-search .search-inline .btn{ height:38px; }

/* base shape: make every tab slightly rounded (rectangular) */
.static-top.navbar-dark .menu-bar .nav-link,
.static-top.navbar-dark .menu-bar > .navbar-nav > li > a.nav-link,
.static-top.navbar-dark .menu-bar .dropdown-toggle.nav-link {
  border-radius: 6px !important;   /* ← was pill elsewhere; keep small */
}

/* ACTIVE = rounded rectangle (not pill) */
.static-top.navbar-dark .menu-bar .nav-link.active,
.static-top.navbar-dark .menu-bar .nav-item .nav-link[aria-current="page"] {
  background: #004985 !important;
  color: #fff !important;
  border-radius: 6px !important;    /* ← change from 10px to 6px (or 4px) */
  box-shadow: inset 0 -1px 0 rgba(0,0,0,.08);
  transition: background .2s ease-in-out;
}
/* Sichtbar machen */
.site-header, header, .navbar {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative;
  z-index: 1050;
}

/* Falls die Inhalte geclippt wurden */
#navbar, .navbar-collapse {
  max-height: none !important;
  width: auto !important;
}


/* Tame the article fonts/spacing */
body .knowledge-article-content,
body .knowledge-article-content *:not(i):not(.fa) {
  font-family: "Segoe UI", SegoeUI, Arial, sans-serif !important;
}

/* Example: adjust main title & paragraph rhythm */
.knowledge-article-content h1 { margin-bottom: .6rem; }
.knowledge-article-content p  { line-height: 1.6; }
/* make sure the global header sits above the article canvas */
header, .navbar, .site-header { display:block !important; position:relative; z-index: 1000; }

h2, h3 {
  color: #000 !important;
}
/* === NAV: einheitliche Farbe + Shape für alle Links === */
.static-top.navbar-dark .menu-bar .navbar-nav .nav-link,
.static-top.navbar-dark .menu-bar .dropdown-toggle.nav-link {
  color: #004985 !important;         /* Text immer schwarz */
  background: transparent !important;
  border-radius: 6px !important;  /* gleiche "Shape" wie aktiv */
}

/* Hover/Focus (nicht aktiv) */
.static-top.navbar-dark .menu-bar .navbar-nav .nav-link:hover,
.static-top.navbar-dark .menu-bar .navbar-nav .nav-link:focus {
  background: #f4f8ff !important; /* sanfter Hintergrund */
  color: #000 !important;
  text-decoration: none !important;
}

/* Dropdown: gleiche Regeln */
.static-top.navbar-dark .menu-bar .dropdown-menu .dropdown-item {
  color: #f4f8ff !important;
  border-radius: 6px !important;
}

.static-top.navbar-dark .menu-bar .dropdown-menu .dropdown-item:hover,
.static-top.navbar-dark .menu-bar .dropdown-menu .dropdown-item:focus {
  background: #f4f8ff !important;
  color: #000 !important;
}

/* Optional: Icon-Links (z.B. Suche) gleich behandeln */
.static-top.navbar-dark .menu-bar .navbar-icon {
  color: #000 !important;
  border-radius: 6px !important;
}
.static-top.navbar-dark .menu-bar .navbar-icon:hover {
  background: #f4f8ff !important;
  color: #000 !important;
}

/* Make only the active nav link a "button" */
.static-top.navbar-dark .menu-bar .nav-link[aria-current="page"] {
    background: #004985 !important;  /* dark blue */
    color: #fff !important;          /* white text */
    border-radius: 6px !important;
    font-weight: 600;
    padding: 10px 18px !important;
    box-shadow: inset 0 -1px 0 rgba(0,0,0,.08);
}

/* Hover on active button */
.static-top.navbar-dark .menu-bar .nav-link[aria-current="page"]:hover {
    background: #003864 !important;  /* slightly darker blue */
    color: #fff !important;
}

/* Default (not active) nav links stay normal text */
.static-top.navbar-dark .menu-bar .nav-link {
    background: transparent !important;
    color: #004985 !important;   /* same dark blue as theme */
    border-radius: 0 !important;
    padding: 10px 18px !important;
}

/* Special: Sign in button always styled */
.static-top.navbar-dark .menu-bar .loginBtn {
    background: #004985 !important;
    color: #fff !important;          /* force white text */
    border-radius: 6px !important;
    padding: 10px 18px !important;
    font-weight: 600;
}

/* Hover for Sign in */
.static-top.navbar-dark .menu-bar .loginBtn:hover {
    background: #003864 !important;
    color: #fff !important;
}
/* global – Breadcrumbs schwarz */
.breadcrumb,
.breadcrumb .breadcrumb-item,
.breadcrumb .breadcrumb-item a {
  color: #000 !important;
}

/* aktiver Eintrag auch schwarz */
.breadcrumb .breadcrumb-item.active {
  color: #000 !important;
}

/* Divider (/) schwarz machen */
.breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  color: #000 !important;
}

/* optional: Hover nicht umlackieren */
.breadcrumb .breadcrumb-item a:hover,
.breadcrumb .breadcrumb-item a:focus {
  color: #000 !important;
  text-decoration: underline; /* falls du keinen underline willst: auskommentieren */
}
/* ========== BRAND ==========\ */
:root { --brand-blue: #004985; }

/* ========== NAVBAR TOGGLER (BS5) ==========\ */
.navbar-dark .custom-navbar-toggler{
  background-color: var(--brand-blue) !important;
  border-color: var(--brand-blue) !important;
  color: #fff;
}
.navbar-dark .custom-navbar-toggler:hover,
.navbar-dark .custom-navbar-toggler:focus,
.navbar-dark .custom-navbar-toggler[aria-expanded="true"]{
  background-color: var(--brand-blue) !important;
  border-color: var(--brand-blue) !important;
  box-shadow: 0 0 0 .25rem rgba(0,73,133,.25) !important;
}
.navbar-dark .custom-navbar-toggler .navbar-toggler-icon{
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath stroke='rgba(255,255,255,0.95)' stroke-width='2' stroke-linecap='round' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E");
}

/* ========== HIDE REGISTER LINKS ==========\ */
.nav-account a[aria-label="Register"],
.nav-account a[title="Register"],
.nav-account a[aria-label="Registrieren"],
.nav-account a[title="Registrieren"] {
  display: none !important;
}
.nav-account li:has(a[aria-label="Register"]),
.nav-account li:has(a[title="Register"]),
.nav-account li:has(a[aria-label="Registrieren"]),
.nav-account li:has(a[title="Registrieren"]) {
  display: none !important;
}

/* ========== STICKY FOOTER BASELINE ==========\ */
html, body { height: 100%; }
body {
  min-height: 100svh;           /* safe viewport height on mobile */
  display: flex;
  flex-direction: column;
}

/* Your main content area grows */
.pageHeight, main, #mainContent, .page-content, .content-wrapper, .wrapper-body {
  flex: 1 0 auto;
}

/* Footer sits at bottom naturally, no fixed/absolute */
footer.footer {
  margin-top: auto !important;
  position: relative;
  isolation: isolate;            /* prevents last-child margin from collapsing into footer */
}
.footer .footer-bottom {
  position: static !important;
  min-height: 180px;             /* optional baseline height */
  padding-top: 24px;
  padding-bottom: 24px;
  border-top: 1px solid rgba(0,0,0,.06);
}

/* ========== UNIVERSAL GAP BEFORE FOOTER (robust) ==========\ */
/* Inserts a guaranteed spacer after the main content wrapper */
main::after,
#mainContent::after,
.page-content::after,
.content-wrapper::after,
.wrapper-body::after {
  content: "";
  display: block;
  height: 60px;                  /* adjust 40–80px if you want more/less space */
}

/* ========== FOOTER CONTACT TYPO & LAYOUT ==========\ */
footer.footer .footer-contact {
  font-size: 16px;
  line-height: 1.8;
  white-space: nowrap;           /* keep trio in one line on desktop */
}
footer.footer .footer-contact a,
footer.footer .footer-contact .label {
  font-size: inherit !important;
  line-height: inherit !important;
  vertical-align: baseline;
}
footer.footer .footer-contact .dot {
  display: inline-block;
  margin: 0 24px;                /* spacing between contact items */
  line-height: 1;
  vertical-align: middle;
  opacity: .9;
}

/* Mobile: allow wrapping + tighter dot spacing */
@media (max-width: 768px){
  footer.footer .footer-contact { white-space: normal; }
  footer.footer .footer-contact .dot { margin: 0 12px; }
}

