.primary-header {
  font-family: 'Raleway', sans-serif;
  background-color: initial;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: center;
  justify-content: center;

  position: sticky;
  top: 0;
  z-index: 1000;

  /*box-shadow: 0 16px 48px 0 rgb(189 195 199 / 60%);*/
  box-shadow: 0 8px 18px 0 rgb(189 195 199 / 60%);

  display: block;
  width: 100%;
  background: var(--header-bg-color);
  color: var(--primary-color);
  box-shadow: 0px 1px 4px 1px rgba(0, 0, 0, 0.2);
  padding: 3px 1px;
}

.primary-header-wrap {
  display: flex;
  /* align-items: flex-start; ->:  For hover menus*/
  align-items: center;
  justify-content: flex-end;
  position: relative;
  z-index: 0;
  color: var(--header-color);
  flex-wrap: wrap;
}

.primary-header-wrap .dummy-space-filler {
  flex: 1 1 auto;
}

.primary-header-wrap .logo-section {
  font-weight: 800;
  flex: 1 0 auto;
  background-color: initial;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  margin-left: 32px;
}

.primary-header-wrap .logo-section img {
  height: 32px;
  margin-right: 3px;
}

.primary-header-wrap .menu-section {
  flex: 1 1 auto;
  color: black;
  font-size: 14px;
}

.primary-header-wrap .site-menu-nav-class {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start; /* For hover menus*/
  justify-content: flex-end;
  margin-left: 8px;
}
.site-menu-nav-class a {
  margin-right: 16px;
  color: var(--primary-color);
}

.logo-section img {
  flex: 0 0 1em;
  /*border: 1px solid var(--border-color-1);*/
  border-radius: 5px;
}

.logo-section .firm-name {
  padding: 0 2px;
  color: var(--brand-name-color);
  font-family: var(--brand-name-font-family);
  font-size: var(--brand-name-font-size);
}

.dh-logo-section {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
}
.dh-logo-section h1 {
  font-family: Arial, Helvetica, sans-serif;
  font:
    normal normal normal 14px open sans,
    sans-serif;
  color: rgb(70 70 70);
  padding: 5px;
  margin: 0;
}
.dh-logo-section img {
  flex: 0 0 1em;
  height: 20px;
  /*border: 1px solid #555;*/
  margin-left: 6px;
  margin-right: 6px;
  border-radius: 6px;
}

/* User Logo*/
.header-right-section {
  flex: 1 1 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  /*margin-right: 16px;*/
  margin: 0;
}
.user-logo-section {
  flex: 1 1 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  margin: 0;
}

.user-logo-section h1 {
  font-family: Arial, Helvetica, sans-serif;
  font:
    normal normal normal 12px open sans,
    sans-serif;
  color: rgb(70 70 70);
  padding: 5px;
  margin: 0;
}

.user-logo-section button {
  font-family: Arial, Helvetica, sans-serif;
  font:
    normal normal normal 12px open sans,
    sans-serif;
  padding: 1px;
  margin: 0;
  margin-left: 8px;
  border: none;
  background: none;
}

/* User Image */
.user-logo-section img {
  flex: 0 0 1em;
  height: 32px;
  margin-left: 6px;
  margin-right: 6px;
  border-radius: 50%;
}

.dhen-user-initials-icon p {
  flex: 0 0 1em;

  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  width: 32px;
  font-size: 18px;
  color: rgb(70 70 70);
  background-color: goldenrod;
  margin: 0;
  padding: 0;
  border-radius: 50%;
}

.dhen-user-initials-icon span {
  flex: 0 0 1em;

  display: flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  width: 28px;
  font-size: 28px;
  margin: 0;
  padding: 0;
  border-radius: 50%;
}

/* Inside Mene */
.ts-inside-secondary-menu-items-wrap {
  margin: 0;
  color: var(--primary-color);
}

.ts-inside-secondary-menu-heading {
  margin-right: 16px;
  color: var(--primary-color);
  text-align: left;
}

.ts-inside-secondary-menu-items-all {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: relative;
  /*top: 25px;
  left:-10px;*/
  list-style-type: none;
  margin: 0;
  background-color: var(--selected-item-bg-color-1);
  border-radius: 4px;
}

.ts-inside-secondary-menu-items-text {
  margin: 0;
  padding: 8px 8px 8px 12px;
}

.ts-inside-secondary-menu-wrap:hover .ts-inside-secondary-menu-items-all {
  display: flex;
}

.ts-inside-secondary-menu-wrap:hover {
  background-color: var(--selected-item-bg-color-1);
  margin: 0 16px 4px 0;
  padding: 0 0px 8px 0px;
  border-radius: 4px;
}

.ts-inside-secondary-menu-wrap:hover .ts-inside-secondary-menu-heading {
  background-color: var(--selected-item-bg-color-2);
  margin: 0;
}
/*
.ts-inside-secondary-menu-wrap:hover .tsh-course-card-bottom-row {
  margin-top: 4px;
  margin-bottom: 0;
}

.ts-inside-secondary-menu-wrap:hover .tsh-course-card-img-row img {
  padding: 3px;
  border-radius: 5px;
  object-fit: cover;
}
*/

/* Popup Menu */

.dhen-popup-menu-container {
  display: none;
  outline: none;
  z-index: 2000;
  position: fixed;
  right: 8px;
  top: 64px;
}

.dhen-popup-menu-content-wrapper {
  width: 310px;
  height: auto;

  border: 1px solid var(--border-color-1);
  background-color: var(--selected-item-bg-color-1);
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 16px 0 32px 0;
}

.popup-menu-item-row-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  padding: 4px 4px 4px 24px;
  font-size: 14px;
  margin: 4px 16px;
}

.popup-menu-item-row-wrapper p,
.popup-menu-item-row-wrapper label {
  flex-grow: 1;
  margin: 0 8px;
  text-align: left;
}

/* Notifications */
#notification-popup-wrap {
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Shadow for a bit of depth */
  padding: 10px;
  max-height: 500px;
  overflow: auto; /* Enable scrolling if the content is too long */
  background-color: var(--selected-item-bg-color-1);
}

.notification-item {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-color-1);
  padding: 6px;
  margin: 4px;
  max-height: 96px;
  text-align: start;
  flex-wrap: nowrap;

  transition: background-color 0.3s; /* Smooth transition for hover effect */
  overflow: hidden;
}

.notification-img img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 16px;
}

.notification-info {
  width: 30%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
}

.notification-info p {
  margin: 0;
  font-size: 15px;
  text-overflow: ellipsis;
}

.notification-text {
  width: 100%;
  padding: 2px 8px 2px 20px;
  font-size: 14px;
  max-height: 64px;
  text-align: start;
  overflow: hidden;
  text-overflow: ellipsis;
}
.notification-link {
  text-decoration: none; /* Remove underline from links */
  color: inherit; /* Inherit text color to prevent link-specific colors */
  display: block; /* Make the link a block element to fill the container */
}

.notification-link:hover {
  text-decoration: none;
}
.notification-link:hover .notification-item {
  background-color: var(--selected-item-bg-color-2);
  border-radius: 5px;
  cursor: pointer; /* Change cursor to indicate clickability */
}

/* custom popup*/
#custom-popup-wrap {
  display: none;
  outline: none;
  z-index: 2000;
  /* position: fixed; */
  right: 8px;
}

/* Footer*/
.primary-footer {
  font-family: 'Raleway', sans-serif;
  background-color: initial;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: center;
  justify-content: center;

  background: var(--footer-bg-color);
  /*box-shadow: 0 16px 48px 0 rgb(189 195 199 / 60%);
  box-shadow: 0 8px 18px 0 rgb(189 195 199 / 60%);
  box-shadow: 0px 1px 4px 1px rgba(0, 0, 0, 0.2);*/

  display: block;
  width: 100%;
  color: var(--primary-color);
}

.primary-footer-wrap {
  min-height: 40px;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  position: relative;
  color: var(--footer-color);
  margin: 0 16px 4px 16px;
}

.primary-footer-menu-wrap {
  max-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.ts-social-icon-img {
  height: 24px;
  width: 24px;
  margin: 0 3px;
}

.footer-link-p {
  margin: 2px 0 2px 24px;
  font-size: 14px;
  text-align: left;
}

/* Screen width adjustments for medium devices */
@media (min-width: 1200px) {
  /*
  .primary-header-wrap {
    padding: 8px 16px 8px 0;
  }
    */

  .primary-header-wrap h1 {
    font-size: 24px;
  }

  .primary-header-wrap .logo-section img {
    height: 30px;
  }

  .primary-footer-menu-wrap {
    margin: 16px 0 16px 80px;
  }
}

@media (max-width: 1200px) {
  .dhen-hamburger-menu-empty {
    width: 0;
  }
  /*
  .primary-header-wrap {
    padding: 6px 12px 6px 0;
  }
*/

  .primary-header-wrap h1 {
    font-size: 22px;
  }

  .primary-header-wrap .logo-section img {
    height: 32px;
  }

  .primary-footer-menu-wrap {
    margin: 16px 0;
  }
}

/* Screen width adjustments for medium devices */
@media (max-width: 1000px) {
  .dhen-hamburger-menu-empty {
    width: 0;
  }

  .dhen-hamburger-menu-empty {
    width: 0;
  }
  /*
  .primary-header-wrap {
    padding: 4px 16px 4px 0;
  }
    */

  .primary-header-wrap h1 {
    font-size: 20px;
  }

  .primary-header-wrap .logo-section img {
    height: 30px;
  }

  .primary-footer-menu-wrap {
    margin: 16px 0;
  }

  /*
  .primary-header-wrap > *:not(:first-child):not(:last-child) {
    margin-top: 16px;
  }
  .primary-header-wrap > *:last-child {
    margin-top: 16px;
    flex-grow: 0;
  }
  */
}

@media (max-width: 600px) {
  .primary-header-wrap h1 {
    font-size: 18px;
  }

  .primary-header-wrap .logo-section img {
    height: 26px;
  }
  /*
  .primary-header-wrap > *:first-child {
    padding-top: 10px;
  }
  */
  .primary-header-wrap .logo-section {
    margin-left: 0;
  }
}

/*
@media (min-width: 600px) {
  .header-right-section {
    margin-right: 16px;
  }
  .primary-header-wrap {
    padding: 8px 16px 8px 16px;
  }
}

    */
