/* Shared public-page custom styles extracted from inline blocks. */
:root {
  --nepa-btn-color: #ffc800;
  --nepa-btn-text-color: #212529;
  --nepa-nav-color: #212529;
}

.btn-primary {
  background-color: var(--nepa-btn-color) !important;
  border-color: var(--nepa-btn-color) !important;
  color: var(--nepa-btn-text-color) !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  filter: brightness(0.92);
}

#mainNav,
#mainNav.navbar-shrink {
  background-color: var(--nepa-nav-color) !important;
}

#mainNav .nav-more-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 992px) {
  #mainNav,
  #mainNav.navbar-shrink {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  #mainNav .navbar-brand,
  #mainNav.navbar-shrink .navbar-brand {
    font-size: 1.25em;
  }

  #mainNav .navbar-brand img,
  #mainNav.navbar-shrink .navbar-brand img {
    height: 1.5rem;
    transition: none !important;
  }

  #mainNav {
    transition: none !important;
  }

  #mainNav #navbarResponsive {
    flex: 1 1 auto;
    min-width: 0;
    margin-left: 1rem;
    justify-content: flex-end;
    gap: 0.25rem;
  }

  #mainNav #mainNavLinks {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: flex-end;
    flex-wrap: nowrap;
  }

  #mainNav #mainNavLinks > .nav-item {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  #mainNav #mainNavOverflowHost {
    flex: 0 0 auto;
    margin-left: 0.25rem;
  }

  #mainNav #mainNavMoreItem {
    flex: 0 0 auto;
    margin-right: 0 !important;
  }

  #mainNav #mainNavMoreMenu .in-nav-overflow {
    margin-right: 0 !important;
  }

  #mainNav #mainNavMoreMenu .in-nav-overflow > .dropdown-item {
    white-space: nowrap;
  }

  #mainNav .nav-more-label {
    display: none;
  }
}

header.masthead {
  background-image: var(--nepa-masthead-bg, url("../assets/img/header-bg.jpg"));
  background-position: center bottom;
  position: relative;
  isolation: isolate;
}

header.masthead::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(to bottom, rgba(8, 20, 38, 0.06) 0%, rgba(8, 20, 38, 0.01) 38%, rgba(8, 20, 38, 0.08) 100%),
    radial-gradient(ellipse at center, rgba(0, 0, 0, 0.00) 0%, rgba(0, 0, 0, 0.04) 100%);
}

header.masthead .container {
  position: relative;
  z-index: 1;
}

header.masthead .masthead-subheading,
header.masthead .masthead-heading {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.50), 0 1px 2px rgba(0, 0, 0, 0.75);
}

header.masthead .masthead-heading {
  -webkit-text-stroke: 0.45px rgba(0, 0, 0, 0.35);
}

.home-masthead-logo-wrap {
  margin: 0 auto 1rem;
  max-width: min(90vw, 700px);
}

.home-masthead-logo {
  width: 100%;
  max-height: 230px;
  object-fit: contain;
  object-position: center center;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}

.home-masthead-logo-wrap.logo-only {
  max-width: min(96vw, 1200px);
  margin-top: 1.75rem;
  margin-bottom: 1.75rem;
}

.home-masthead-logo-wrap.logo-only .home-masthead-logo {
  max-height: clamp(250px, 44vh, 460px);
}

/* Home page cards and media */
.home-featured-layout {
  align-items: flex-start;
}

.home-facebook-card {
  border-radius: 14px;
}

.home-facebook-followers {
  color: #334155;
  font-size: 0.98rem;
}

.home-facebook-embed {
  width: 100%;
  min-height: 620px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.home-facebook-embed iframe {
  width: 100%;
  min-height: 620px;
  display: block;
}

.home-spotlight-image-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.home-spotlight-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.home-newsletter-card {
  border-radius: 14px;
  overflow: hidden;
}

.home-newsletter-image {
  width: 100%;
  height: 100%;
  min-height: 640px;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.home-newsletter-copy {
  max-width: 720px;
}

.home-newsletter-form-wrap {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px;
}

/* Shared reCAPTCHA responsive wrapper */
.captcha-responsive {
  width: 100%;
  min-height: 78px;
  max-width: 304px;
}

.captcha-responsive .g-recaptcha {
  display: inline-block;
  transform-origin: left top;
  width: 304px;
  height: 78px;
}

/* Home partners logos */
.partners-logo-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  row-gap: 18px;
  column-gap: 0;
  align-items: stretch;
}

.partners-logo-col {
  flex: 0 1 calc((100% - 54px) / 4);
  max-width: calc((100% - 54px) / 4);
  min-width: 0;
}

.partner-brand-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
  padding: 10px 14px;
}

.partner-logo {
  width: 100%;
  max-width: 320px;
  height: 300px;
  object-fit: contain;
  display: block;
  transition: transform 0.2s ease;
}

.partner-logo:hover {
  transform: translateY(-1px);
}

#home_message.home-contact-message {
  min-height: 164px;
  height: 164px;
  resize: vertical;
}

/* Newsletter hero masthead */
header.masthead.newsletter-masthead .masthead-subheading {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.15;
}

header.masthead.newsletter-masthead .masthead-heading {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.05;
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
}

/* Contact hero masthead */
header.masthead.contact-masthead .masthead-subheading {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.15;
}

header.masthead.contact-masthead .masthead-heading {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.05;
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
}

/* Newsletter preview block */
.newsletter-preview-card {
  border-radius: 14px;
  overflow: hidden;
}

.newsletter-preview-image {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.newsletter-preview-copy {
  max-width: 720px;
}

.newsletter-preview-bullets {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 18px;
}

.team-member .team-member-avatar {
  width: 14rem;
  height: 14rem;
  object-fit: cover;
}

.team-member .text-muted {
  font-size: 1rem;
  line-height: 1.35;
}

@media (max-width: 991.98px) {
  .home-facebook-embed,
  .home-facebook-embed iframe {
    min-height: 560px;
  }

  .home-newsletter-image {
    min-height: 420px;
  }

  .newsletter-preview-image {
    min-height: 380px;
  }

  .team-member .team-member-avatar {
    width: 12rem;
    height: 12rem;
  }
}

@media (max-width: 767.98px) {
  .home-facebook-embed,
  .home-facebook-embed iframe {
    min-height: 520px;
  }

  .home-masthead-logo {
    max-height: 170px;
  }
  .home-masthead-logo-wrap.logo-only .home-masthead-logo {
    max-height: clamp(180px, 34vh, 290px);
  }

  header.masthead.newsletter-masthead .masthead-subheading,
  header.masthead.contact-masthead .masthead-subheading {
    font-size: 1.9rem;
    line-height: 1.1;
  }

  header.masthead.newsletter-masthead .masthead-heading,
  header.masthead.contact-masthead .masthead-heading {
    font-size: 2.1rem;
    line-height: 1.1;
  }

  header.masthead.newsletter-masthead .btn-xl,
  header.masthead.contact-masthead .btn-xl {
    padding: 1rem 2rem;
    font-size: 1rem;
  }
}

@media (max-width: 575.98px) {
  .partners-logo-col {
    flex-basis: 100%;
    max-width: 100%;
  }

  .partner-brand-wrap {
    min-height: 240px;
    padding: 8px 10px;
  }

  .partner-logo {
    height: 200px;
    max-width: 280px;
  }

  .team-member .team-member-avatar {
    width: min(11rem, 72vw);
    height: min(11rem, 72vw);
  }
}

@media (max-width: 991.98px) {
  .partners-logo-col {
    flex-basis: calc((100% - 36px) / 3);
    max-width: calc((100% - 36px) / 3);
  }

  .partner-brand-wrap {
    min-height: 300px;
  }

  .partner-logo {
    height: 240px;
  }
}

@media (max-width: 767.98px) {
  .partners-logo-col {
    flex-basis: calc((100% - 18px) / 2);
    max-width: calc((100% - 18px) / 2);
  }

  .partner-brand-wrap {
    min-height: 260px;
  }

  .partner-logo {
    height: 220px;
  }
}

@media (max-width: 575.98px) {
  .partners-logo-col {
    flex-basis: 100%;
    max-width: 100%;
  }

  .partner-brand-wrap {
    min-height: 240px;
    padding: 8px 10px;
  }

  .partner-logo {
    height: 200px;
    max-width: 280px;
  }
}

@media (max-width: 479.98px) {
  header.masthead.newsletter-masthead .masthead-subheading,
  header.masthead.contact-masthead .masthead-subheading {
    font-size: 1.75rem;
    line-height: 1.05;
  }

  header.masthead.newsletter-masthead .masthead-heading,
  header.masthead.contact-masthead .masthead-heading {
    font-size: 1.95rem;
    line-height: 1.05;
  }
}
