.ftn-module,
.ftn-module * {
  box-sizing: border-box;
}

.ftn-module {
  --ftn-navy: #003b60;
  --ftn-blue: #0877b9;
  --ftn-border: #d8dce0;
  width: 100%;
  max-width: 1120px;
  margin: 38px auto 50px;
  padding: 0 20px;
  color: #183a52;
  font-family: inherit;
}

.ftn-heading {
  margin: 0 auto 20px;
  text-align: center;
  text-transform: uppercase;
}

.ftn-heading h2 {
  margin: 0;
  color: #24465e;
  font: 400 21px/1.25 inherit;
  letter-spacing: 0;
}

.ftn-heading h2 strong {
  color: var(--ftn-navy);
  font-weight: 700;
}

.ftn-heading > span {
  display: block;
  width: 80px;
  height: 3px;
  margin: 15px auto 0;
  background: var(--ftn-blue);
}

.ftn-search-box {
  width: min(100%, 510px);
  margin: 0 auto 42px;
  padding: 28px 38px 31px;
  border: 1px solid var(--ftn-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .16);
}

.ftn-select-wrap {
  position: relative;
  margin-bottom: 16px;
}

.ftn-select-wrap::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 17px;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--ftn-navy);
  border-bottom: 1.5px solid var(--ftn-navy);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.ftn-module select {
  width: 100%;
  height: 44px;
  margin: 0;
  padding: 0 44px 0 16px;
  border: 1px solid #79a8ff;
  border-radius: 3px;
  outline: 0;
  background: #fff;
  color: #24465e;
  font: 400 13px/1 inherit;
  appearance: none;
  -webkit-appearance: none;
}

.ftn-module select:focus {
  border-color: var(--ftn-blue);
  box-shadow: 0 0 0 3px rgba(8, 119, 185, .15);
}

.ftn-module select:disabled {
  cursor: not-allowed;
  background: #f6f7f8;
  color: #7b8790;
}

.ftn-search-button {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 10px 20px;
  border: 0;
  border-radius: 3px;
  background: var(--ftn-navy);
  color: #fff;
  font: 700 13px/1.2 inherit;
  text-align: center;
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
}

.ftn-search-button:hover:not(:disabled),
.ftn-search-button:focus-visible:not(:disabled) {
  background: var(--ftn-blue);
}

.ftn-search-button:active:not(:disabled) {
  transform: translateY(1px);
}

.ftn-search-button:disabled {
  cursor: not-allowed;
  opacity: .58;
}

.ftn-feedback {
  display: none;
  margin: 12px 0 -8px;
  color: #a14300;
  font-size: 13px;
  text-align: center;
}

.ftn-feedback:not(:empty) {
  display: block;
}

.ftn-results {
  width: 100%;
  margin: -14px auto 46px;
  padding: 0 0 8px;
}

.ftn-results[hidden],
.ftn-file-card[hidden] {
  display: none !important;
}

.ftn-results-heading {
  margin: 0 0 24px;
  text-align: left;
}

.ftn-results-heading h3 {
  margin: 0 0 3px;
  color: var(--ftn-navy);
  font: 700 13px/1.3 inherit;
}

.ftn-results-heading p {
  margin: 0;
  color: #71808a;
  font-size: 11px;
}

.ftn-file-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
  gap: 38px 25px;
  align-items: start;
}

.ftn-file-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  width: 100%;
  max-width: 132px;
  justify-self: center;
  color: #4d565c;
  text-align: center;
  text-decoration: none !important;
  transition: color .2s ease, transform .2s ease;
}

.ftn-file-card:hover,
.ftn-file-card:focus-visible {
  color: var(--ftn-blue);
  transform: translateY(-3px);
}

.ftn-file-card:focus-visible {
  outline: 2px solid #65b8e9;
  outline-offset: 5px;
  border-radius: 4px;
}

.ftn-pdf-icon {
  width: 58px;
  height: 66px;
  color: #969b9e;
}

.ftn-file-card > span {
  display: -webkit-box;
  width: 100%;
  overflow: hidden;
  color: inherit;
  font: 400 12px/1.3 inherit;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.ftn-banner-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 38px;
  width: 100%;
  margin: 0 auto;
}

.ftn-banner {
  position: relative;
  isolation: isolate;
  flex: 0 1 254px;
  height: 218px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 24px;
  background: var(--ftn-navy);
  color: #fff;
  cursor: pointer;
  box-shadow: none;
  text-align: center;
  text-decoration: none !important;
  transition: transform .2s ease, box-shadow .2s ease;
}

.ftn-category-page {
  width: 100%;
}

.ftn-back-link {
  display: inline-flex;
  align-items: center;
  margin: 0 0 18px;
  color: var(--ftn-navy);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
}

.ftn-back-link:hover,
.ftn-back-link:focus-visible {
  color: var(--ftn-blue);
  text-decoration: underline !important;
}

.ftn-category-heading {
  margin-bottom: 40px;
}

.ftn-subcategory-group {
  width: 100%;
  margin: 0 0 46px;
}

.ftn-subcategory-group h3 {
  margin: 0 0 24px;
  color: var(--ftn-navy);
  font: 700 13px/1.35 inherit;
  text-transform: uppercase;
}

.ftn-category-alert {
  width: min(100%, 720px);
  margin: 0 auto 24px;
  padding: 12px 16px;
  border: 1px solid #f0c36d;
  border-radius: 5px;
  background: #fff8e8;
  color: #76520c;
  font-size: 13px;
  text-align: center;
}

.ftn-banner:hover,
.ftn-banner:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 9px 22px rgba(0, 59, 96, .22);
}

.ftn-banner:focus-visible {
  outline: 3px solid #65b8e9;
  outline-offset: 3px;
}

.ftn-banner img {
  position: absolute;
  z-index: -2;
  inset: 0 0 34px;
  width: 100%;
  height: calc(100% - 34px);
  margin: 0;
  object-fit: cover;
}

.ftn-banner-overlay {
  position: absolute;
  z-index: -1;
  inset: 0 0 34px;
  background: linear-gradient(to bottom, rgba(25, 120, 180, .12) 8%, rgba(19, 124, 190, .64) 100%);
}

.ftn-banner-title {
  position: absolute;
  right: 12px;
  bottom: 46px;
  left: 12px;
  color: #fff;
  font: 700 20px/1.05 inherit;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .18);
}

.ftn-banner-action {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 34px;
  padding: 11px 8px 0;
  background: var(--ftn-navy);
  color: #fff;
  font: 700 11px/1 inherit;
  text-transform: uppercase;
}

.ftn-empty {
  padding: 26px;
  text-align: center;
}

.ftn-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 640px) {
  .ftn-module { margin-top: 28px; padding: 0 14px; }
  .ftn-search-box { padding: 22px 20px 24px; margin-bottom: 30px; }
  .ftn-banner-grid { gap: 16px; }
  .ftn-banner { flex-basis: min(100%, 300px); }
  .ftn-file-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
}

@media (min-width: 641px) and (max-width: 900px) {
  .ftn-file-grid { grid-template-columns: repeat(auto-fill, minmax(105px, 1fr)); }
}
