body {
  padding-top: 56px;
}

body.layout-home {
  padding-top: 0px;
}

body.layout-singlelogin {
  padding-top: 0px;
}



/* featurebox defaults */
#e107bootstrapcarousel .carousel-item {
  height: 65vh;
  min-height: 300px;
  background: no-repeat center center scroll;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}

#e107fullpagecarousel .carousel-item {
  height: 100vh;
  min-height: 300px;
  background: no-repeat center center scroll;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  background-color: #272B30;
  color: white;
}


ul.social-buttons li a {
    font-size: 20px;
    line-height: 50px;
    display: block;
    width: 50px;
    height: 50px;
    -webkit-transition: all .3s;
    transition: all .3s;
    color: #fff;
    border-radius: 100%;
    outline: 0;
    background-color: #212529;
}


/* fix for comment avatar */

.rounded-circle img.rounded {
    border-radius: 50%!important;
}

@media (min-width: 768px) {
    .offset1 {
        margin-left: 8.33333%;
    }
}

/*

.list-group-item.active a {
    z-index: 2;
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
}
*/

/* fix for caret bootstrap user nav */
.profile-photo-small {
  display: inline;
}

/* fix for fixed-top on login page - to save custom header */
.layout-singlelogin .fixed-top {
  position: initial;
}

/* fix for too small core login box width */

#login-template {
    max-width: 95%;
}

@media (min-width: 768px) { 
  #login-template {
      max-width: 800px;
      margin-right: auto;
      margin-left: auto;
  }
}

/* fix for too big margin */
#login-template .login-page-footer {
    margin-bottom: initial;  
}



#carousel-hero.carousel {
  position: relative;
  left: 0;
  top: 70px;
  width: 100%;
  height: 100%;
  overflow: hidden;
  margin-bottom: 60px;
}

/* NerdDual CMS home polish */
:root {
  --nd-cms-bg: #0b1118;
  --nd-cms-panel: #101923;
  --nd-cms-panel-soft: #162230;
  --nd-cms-text: #eef4fb;
  --nd-cms-muted: #a8b6c8;
  --nd-cms-paper: #f7f9fc;
  --nd-cms-paper-text: #17202c;
  --nd-cms-border: rgba(148, 163, 184, 0.24);
  --nd-cms-accent: #20c7b5;
  --nd-cms-accent-soft: rgba(32, 199, 181, 0.14);
  --nd-cms-shadow: 0 22px 60px rgba(0, 0, 0, 0.3);
  --nd-cms-radius: 8px;
}

body.layout-home {
  background:
    radial-gradient(circle at 18% 4%, rgba(32, 199, 181, 0.14), transparent 28rem),
    linear-gradient(180deg, #0b1118 0%, #111a25 34rem, #f7f9fc 34.1rem);
  color: var(--nd-cms-text);
  overflow-x: hidden;
  padding-top: 74px;
}

body.layout-home .navbar {
  min-height: 74px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(9, 14, 21, 0.94) !important;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(12px);
}

body.layout-home .navbar .container {
  gap: 0.75rem;
}

body.layout-home .navbar-brand {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

body.layout-home .navbar .btn-outline-info {
  border-color: rgba(32, 199, 181, 0.74);
  border-radius: 999px;
  color: #c9fff8;
  font-weight: 700;
  padding: 0.45rem 0.9rem;
}

body.layout-home .navbar .btn-outline-info:hover,
body.layout-home .navbar .btn-outline-info:focus {
  background: var(--nd-cms-accent);
  border-color: var(--nd-cms-accent);
  color: #071116;
}

body.layout-home #carousel-hero.carousel {
  top: 0;
  min-height: 500px;
  margin-bottom: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: #0b1118;
  overflow-x: hidden;
}

body.layout-home #carousel-hero .carousel-inner,
body.layout-home #carousel-hero .carousel-item {
  min-height: 500px;
}

body.layout-home #carousel-hero.carousel-fade .carousel-item {
  transition: none !important;
}

body.layout-home #carousel-hero.carousel-fade .carousel-item.active,
body.layout-home #carousel-hero.carousel-fade .active.carousel-item-start,
body.layout-home #carousel-hero.carousel-fade .active.carousel-item-end {
  opacity: 1 !important;
}

body.layout-home #carousel-hero.carousel-fade .carousel-item:not(.active) {
  display: none !important;
}

body.layout-home #carousel-hero .carousel-item {
  position: relative;
  background-position: center;
  background-size: cover;
  isolation: isolate;
}

body.layout-home #carousel-hero .carousel-item::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background:
    linear-gradient(90deg, rgba(8, 13, 19, 0.78) 0%, rgba(8, 13, 19, 0.66) 48%, rgba(8, 13, 19, 0.38) 100%),
    linear-gradient(180deg, rgba(8, 13, 19, 0.02) 0%, rgba(8, 13, 19, 0.5) 100%);
  pointer-events: none;
}

body.layout-home #carousel-hero .carousel-item > .container {
  position: relative;
  z-index: 2;
}

body.layout-home #carousel-hero .carousel-caption {
  position: absolute;
  inset: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex !important;
  align-items: center;
  padding: 2rem 0;
  text-align: left;
}

body.layout-home #carousel-hero .carousel-caption > .hero-text-container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  border: 1px solid var(--nd-cms-border);
  border-radius: var(--nd-cms-radius);
  background: rgba(9, 15, 22, 0.92);
  box-shadow: var(--nd-cms-shadow);
  opacity: 1 !important;
}

body.layout-home #carousel-hero .animated {
  animation: none !important;
  opacity: 1 !important;
}

body.layout-home #carousel-hero .hero-text-container .hero-title {
  margin: 0 0 1.5rem;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

body.layout-home #carousel-hero .hero-title h1 {
  margin-bottom: 0.4rem;
  color: #ffffff !important;
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: 0;
  opacity: 1 !important;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.55);
}

body.layout-home #carousel-hero .hero-title h2 {
  max-width: 820px;
  margin-bottom: 1.5rem;
  color: #cdd8e5 !important;
  font-size: clamp(1.05rem, 2vw, 1.55rem);
  font-weight: 500;
  line-height: 1.35;
  opacity: 1 !important;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}

body.layout-home #carousel-hero .row {
  align-items: center;
}

body.layout-home #carousel-hero .hero-list {
  display: grid;
  gap: 0.9rem;
  width: 100%;
  max-width: 100%;
  margin: 0;
}

body.layout-home #carousel-hero .hero-list li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  max-width: 100%;
  min-height: 42px;
}

body.layout-home #carousel-hero .hero-icon {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: var(--nd-cms-accent-soft) !important;
  color: #aafff3;
  box-shadow: none !important;
}

body.layout-home #carousel-hero .hero-list-text {
  display: block;
  min-width: 0;
  max-width: 100%;
  color: #eef4fb;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.35;
  opacity: 1 !important;
  overflow-wrap: anywhere;
  white-space: normal !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.48);
}

body.layout-home #carousel-hero .hero-media-container {
  display: flex;
  justify-content: flex-end;
}

body.layout-home #carousel-hero .hero-media-container img {
  width: min(100%, 300px) !important;
  max-height: 300px;
  object-fit: cover;
  border: 1px solid var(--nd-cms-border);
  border-radius: var(--nd-cms-radius);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
}

body.layout-home #carousel-hero .hero-buttons a[href=""],
body.layout-home #carousel-hero .hero-buttons a:not([href]) {
  display: none;
}

body.layout-home #carousel-hero .carousel-control-prev,
body.layout-home #carousel-hero .carousel-control-next {
  width: 4rem;
}

body.layout-home .p-5 {
  padding: clamp(3rem, 7vw, 5rem) 1rem !important;
  background: var(--nd-cms-paper);
  color: var(--nd-cms-paper-text);
}

body.layout-home .p-5 .container.text-center {
  box-sizing: border-box;
  width: min(calc(100vw - 2rem), 980px);
  max-width: calc(100vw - 2rem);
  padding: clamp(1.25rem, 3vw, 2.5rem);
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: var(--nd-cms-radius);
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

body.layout-home .p-5 .display-4 {
  max-width: 100%;
  margin-bottom: 1.5rem;
  color: #101826;
  font-size: clamp(2rem, 8vw, 3.25rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

body.layout-home .p-5 .lead {
  margin: 0;
  color: #263344;
  font-size: 1.02rem;
  font-weight: 400;
  line-height: 1.75;
  text-align: left;
}

body.layout-home .p-5 .lead h1,
body.layout-home .p-5 .lead h2,
body.layout-home .p-5 .lead h3,
body.layout-home .p-5 .lead h4 {
  max-width: 840px;
  margin: 2rem auto 1rem;
  color: #111827;
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: 0;
}

body.layout-home .p-5 .lead h1 {
  font-size: clamp(1.65rem, 3.4vw, 2.55rem);
}

body.layout-home .p-5 .lead h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.9rem);
}

body.layout-home .p-5 .lead h3 {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
}

body.layout-home .p-5 .lead h4 {
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
}

body.layout-home .p-5 .lead p {
  max-width: 840px;
  margin: 1rem auto;
  text-align: left !important;
}

body.layout-home .p-5 img,
body.layout-home .p-5 .lead img {
  display: block;
  float: none !important;
  width: auto !important;
  height: auto !important;
  max-width: min(100%, 420px);
  max-height: 320px !important;
  margin: 1.2rem auto;
  object-fit: contain;
  border-radius: var(--nd-cms-radius);
}

body.layout-home .nd-home-editorial {
  max-width: 920px;
  margin: 0 auto;
  text-align: left;
}

body.layout-home .nd-home-editorial .nd-kicker {
  margin: 0 auto 0.9rem;
  color: #0f766e;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: center !important;
  text-transform: uppercase;
}

body.layout-home .nd-home-editorial h2 {
  max-width: 760px;
  margin: 0 auto 1.2rem;
  color: #101826;
  font-size: clamp(1.8rem, 8vw, 3.3rem);
  font-weight: 900;
  line-height: 1;
  text-align: center !important;
}

body.layout-home .nd-home-editorial > p {
  max-width: 780px;
  color: #334155;
  font-size: 1.05rem;
  line-height: 1.75;
}

body.layout-home .nd-home-editorial .nd-cms-feature-image {
  max-width: 680px;
  margin: 2rem auto;
}

body.layout-home .nd-home-editorial .nd-cms-feature-image img {
  width: 100% !important;
  max-width: 100% !important;
  max-height: none !important;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
}

body.layout-home .nd-editorial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

body.layout-home .nd-editorial-card {
  padding: 1.15rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: var(--nd-cms-radius);
  background: #f8fafc;
}

body.layout-home .nd-editorial-card h3 {
  margin: 0 0 0.5rem !important;
  color: #0f172a !important;
  font-size: 1rem !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
  text-align: left !important;
}

body.layout-home .nd-editorial-card p {
  margin: 0;
  color: #475569;
  font-size: 0.94rem;
  line-height: 1.55;
}

body.layout-home .nd-signal-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

body.layout-home .nd-signal-list li {
  padding: 0.8rem 0.9rem;
  border-left: 3px solid var(--nd-cms-accent);
  border-radius: 0 var(--nd-cms-radius) var(--nd-cms-radius) 0;
  background: #eef6f6;
  color: #263344;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
}

body.layout-home #gallery-slideshow-wrapper,
body.layout-home .gallery-slideshow-controls {
  max-width: 980px;
  margin-right: auto;
  margin-left: auto;
}

body.layout-home #gallery-slideshow-wrapper {
  margin-top: 0;
  padding: 1.25rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: var(--nd-cms-radius);
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.1);
}

body.layout-home .gallery-slide-item img {
  border-radius: var(--nd-cms-radius) !important;
}

body.layout-home .gallery-slideshow-controls {
  margin-bottom: 4rem;
  padding: 0.75rem 0;
}

body.layout-home .gallery-slideshow-controls .btn {
  border-radius: 999px;
  font-weight: 700;
}

body.layout-home .gallery-slide-jumper {
  display: inline-grid;
  width: 2rem;
  height: 2rem;
  margin: 0 0.15rem;
  place-items: center;
  border-radius: 50%;
  background: #e7edf5;
  color: #17202c;
  font-weight: 700;
  text-decoration: none;
}

body.layout-home > .container {
  max-width: 1180px;
}

body.layout-home .news-menu-grid {
  padding: 4rem 0 1.5rem;
}

body.layout-home .news-menu-grid .card {
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
  border-radius: var(--nd-cms-radius);
  background: #ffffff !important;
  color: #17202c;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12) !important;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

body.layout-home .news-menu-grid .card-body,
body.layout-home .news-menu-grid .card-footer {
  background: #ffffff !important;
  color: #17202c;
}

body.layout-home .news-menu-grid .card:hover,
body.layout-home .news-menu-grid .card:focus-within {
  transform: translateY(-3px);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.16) !important;
}

body.layout-home .news-menu-grid .card-img-top {
  height: 230px;
  object-fit: cover;
}

body.layout-home .news-menu-grid .badge {
  border-radius: 999px !important;
  background: #142235 !important;
  color: #bdfaf1;
  font-weight: 750;
}

body.layout-home .news-menu-grid .card-title {
  color: #101826;
  font-size: 1.18rem;
  font-weight: 850;
  line-height: 1.25;
}

body.layout-home .news-menu-grid a.link-dark {
  color: #101826 !important;
}

body.layout-home .news-menu-grid .card-text,
body.layout-home .news-menu-grid .text-muted {
  color: #5c6b7b !important;
}

body.layout-home .footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #080d13 !important;
}

body.layout-home .footer h4 {
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

body.layout-home .footer a {
  color: #9feee6;
}

@media (max-width: 991.98px) {
  body.layout-home {
    padding-top: 68px;
  }

  body.layout-home .navbar {
    min-height: 68px;
  }

  body.layout-home #carousel-hero.carousel,
  body.layout-home #carousel-hero .carousel-inner,
  body.layout-home #carousel-hero .carousel-item {
    min-height: 640px;
  }

  body.layout-home #carousel-hero .carousel-caption {
    left: 0 !important;
    right: 0 !important;
    width: 100vw;
    max-width: 100vw;
    padding: 1rem 0;
    overflow: hidden;
  }

  body.layout-home #carousel-hero .carousel-caption > .hero-text-container {
    box-sizing: border-box;
    width: min(340px, calc(100vw - 2rem));
    max-width: 340px;
    margin-right: auto;
    margin-left: 1rem;
  }

  body.layout-home #carousel-hero .hero-media-container {
    justify-content: flex-start;
    margin-top: 1.25rem;
  }

  body.layout-home #carousel-hero .hero-media-container img {
    max-height: 220px;
  }
}

@media (max-width: 575.98px) {
  body.layout-home {
    padding-top: 118px;
  }

  body.layout-home .navbar {
    min-height: auto;
    padding: 0.55rem 0;
  }

  body.layout-home .navbar .container {
    flex-wrap: wrap;
    row-gap: 0.45rem;
  }

  body.layout-home .navbar-brand {
    max-width: calc(100% - 58px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.layout-home .navbar .btn-outline-info {
    order: 4;
    width: 100%;
    margin: 0 !important;
    padding: 0.35rem 0.6rem;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  body.layout-home .navbar-toggler {
    margin-left: auto;
  }

  body.layout-home .navbar-collapse {
    order: 5;
    width: 100%;
  }

  body.layout-home #carousel-hero.carousel,
  body.layout-home #carousel-hero .carousel-inner,
  body.layout-home #carousel-hero .carousel-item {
    min-height: 700px;
  }

  body.layout-home #carousel-hero .carousel-item > .container {
    width: 100%;
    max-width: 100%;
    padding-right: 0;
    padding-left: 0;
  }

  body.layout-home #carousel-hero .hero-list li {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 0.65rem;
  }

  body.layout-home #carousel-hero .hero-icon {
    width: 34px;
    height: 34px;
  }

  body.layout-home #carousel-hero .hero-list-text {
    font-size: 0.94rem;
  }

  body.layout-home .p-5 .lead {
    font-size: 0.98rem;
    line-height: 1.65;
  }

  body.layout-home .p-5 .container.text-center {
    width: min(358px, 100%) !important;
    max-width: 100% !important;
    margin-right: auto;
    margin-left: 0;
    padding: 1.15rem;
  }

  body.layout-home .p-5 .display-4 {
    font-size: 2rem;
    line-height: 1.05;
    overflow-wrap: anywhere;
    white-space: normal !important;
  }

  body.layout-home .nd-home-editorial h2 {
    font-size: 1.85rem;
    line-height: 1.05;
    overflow-wrap: anywhere;
    white-space: normal !important;
  }

  body.layout-home .nd-home-editorial .nd-kicker {
    font-size: 0.72rem;
    overflow-wrap: anywhere;
    white-space: normal !important;
  }

  body.layout-home .news-menu-grid .card-img-top {
    height: 190px;
  }

  body.layout-home > .container {
    width: min(390px, 100%) !important;
    max-width: 100% !important;
    margin-right: auto;
    margin-left: 0;
  }

  body.layout-home .nd-editorial-grid,
  body.layout-home .nd-signal-list {
    grid-template-columns: 1fr;
  }

  body.layout-home .nd-home-editorial > p {
    font-size: 1rem;
    overflow-wrap: anywhere;
    white-space: normal !important;
  }
}

/* CUSTOM Responsive Styles */
