.transparent-brand {
  gap: 14px;
  min-width: 322px;
}

.transparent-brand .brand-mark {
  width: 68px;
  height: 68px;
  object-fit: contain;
  flex: 0 0 auto;
}

.transparent-brand .brand-wordmark {
  display: block;
  width: 240px;
  height: auto;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand-nav {
  height: 88px;
}

.nav-inner {
  height: 100%;
}

.nav-links {
  align-self: stretch;
  align-items: stretch;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-item > a {
  display: inline-flex;
  align-items: center;
  height: 100%;
  white-space: nowrap;
}

.nav-item > a::after {
  content: "";
  width: 6px;
  height: 6px;
  margin: -3px 0 0 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.nav-submenu {
  position: absolute;
  top: 100%;
  left: -18px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  min-width: 230px;
  max-height: min(70vh, 520px);
  overflow-y: auto;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 0 0 16px 16px;
  background: #fff;
  box-shadow: 0 18px 36px rgba(17, 26, 42, .14);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}

.nav-item:hover .nav-submenu,
.nav-item:focus-within .nav-submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-submenu a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: #38445a;
  white-space: nowrap;
}

.nav-submenu a:hover,
.nav-submenu a:focus-visible {
  background: #fff3e9;
  color: var(--orange-dark);
  outline: none;
}

.nav-item:first-child .nav-submenu { min-width: 310px; }
.mobile-nav-menu { display: none; }

@media (max-width: 850px) {
  .nav-inner > .btn-primary { display: none; }
  .mobile-nav-menu { display: block; position: relative; margin-left: auto; }
  .mobile-nav-menu summary { list-style: none; cursor: pointer; padding: 9px 14px; border: 1px solid #e2e8f0; border-radius: 999px; font-weight: 750; color: #111a2a; background: #fff; }
  .mobile-nav-menu summary::-webkit-details-marker { display: none; }
  .mobile-nav-panel { position: absolute; z-index: 40; top: calc(100% + 12px); right: 0; width: min(340px, calc(100vw - 28px)); max-height: 75vh; overflow-y: auto; padding: 10px; border: 1px solid #e2e8f0; border-radius: 16px; background: #fff; box-shadow: 0 18px 36px rgba(17,26,42,.16); }
  .mobile-nav-panel a { display: block; padding: 9px 12px; border-radius: 8px; font-size: .9rem; color: #38445a; }
  .mobile-nav-panel a:hover,.mobile-nav-panel a:focus-visible { background: #fff3e9; color: var(--orange-dark); }
  .mobile-nav-label { display: block; padding: 12px 12px 4px; color: var(--orange-dark); font-size: .7rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
}

.footer .transparent-brand {
  margin-bottom: 10px;
}

.footer .transparent-brand .brand-mark {
  width: 78px;
  height: 78px;
}

.footer .transparent-brand .brand-wordmark {
  width: 265px;
}

.resource-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 920px;
  margin: auto;
}

.resource-card-media {
  height: 360px;
  min-height: 360px;
  padding: 28px;
  background: #fff;
}

.resource-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #fff;
}

.resource-card-media--eposter {
  position: relative;
  overflow: hidden;
  padding: 0;
}

.resource-card-media--eposter img {
  position: absolute;
  top: 26%;
  left: 50%;
  width: 100%;
  height: auto;
  max-width: none;
  object-fit: initial;
  transform: translate(-50%, -50%) scale(1.55);
  transform-origin: center;
}

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 18px;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 10px 28px rgba(20, 80, 45, .28);
  transition: transform .2s ease, background .2s ease;
}

.whatsapp-float::before {
  content: "";
  width: 20px;
  height: 20px;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath fill='%23fff' d='M16 3a13 13 0 0 0-11 20L3 29l6-2a13 13 0 1 0 7-24Zm0 21a10 10 0 0 1-5-1l-3 1 1-3a10 10 0 1 1 7 3Zm6-7c-.3-.2-2-1-2.3-1.1-.3-.1-.5-.2-.7.2-.2.3-.8 1.1-1 1.3-.2.2-.4.2-.7.1-2-.8-3.3-2.7-3.4-2.9-.2-.3 0-.5.1-.6l.5-.6.3-.5c.1-.2 0-.4 0-.6-.1-.2-.7-1.8-1-2.4-.3-.6-.5-.5-.7-.5h-.6c-.2 0-.6.1-.9.4-.3.3-1.2 1.2-1.2 3s1.3 3.5 1.5 3.8c.2.2 2.6 4 6.4 5.4.9.4 1.6.6 2.1.7.9.3 1.7.2 2.4.1.7-.1 2-.8 2.3-1.6.3-.8.3-1.5.2-1.6-.1-.2-.3-.3-.6-.4Z'/%3E%3C/svg%3E");
}

.whatsapp-float:hover {
  background: #18b957;
  transform: translateY(-2px);
}

@media (max-width: 850px) {
  .brand-nav {
    height: 78px;
  }

  .transparent-brand {
    min-width: auto;
  }

  .transparent-brand .brand-mark {
    width: 52px;
    height: 52px;
  }

  .transparent-brand .brand-wordmark {
    width: 158px;
  }
}

@media (max-width: 560px) {
  .transparent-brand {
    gap: 8px;
  }

  .transparent-brand .brand-mark {
    width: 48px;
    height: 48px;
  }

  .transparent-brand .brand-wordmark {
    width: 115px;
  }

  .footer .transparent-brand .brand-mark {
    width: 64px;
    height: 64px;
  }

  .footer .transparent-brand .brand-wordmark {
    width: 205px;
  }

  .resource-cards {
    grid-template-columns: 1fr;
  }

  .resource-card-media {
    height: 300px;
    min-height: 300px;
    padding: 20px;
  }

  .whatsapp-float {
    right: 14px;
    bottom: 14px;
    width: 48px;
    height: 48px;
    padding: 12px;
    justify-content: center;
  }

  .whatsapp-float span {
    display: none;
  }
}
