/* 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;
}

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

.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-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;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 34px;
}

.partners-logo-col {
  flex: 0 0 270px;
  max-width: 270px;
}

.partner-brand-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 165px;
  padding: 8px 12px;
}

.partner-logo {
  width: auto;
  max-width: 252px;
  height: 126px;
  object-fit: contain;
  display: block;
  filter: grayscale(100%);
  opacity: 0.85;
  transition: filter 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.partner-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
  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;
}

@media (max-width: 991.98px) {
  .home-newsletter-image {
    min-height: 420px;
  }

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

@media (max-width: 767.98px) {
  .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: 180px;
    max-width: 180px;
  }
}

@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;
  }
}
