/* Feature and solution pages (/features/, /solutions/). Built on style.css variables. */

.feature-hero h1.feature-h1 {
  font-size: var(--h2);
  line-height: 1.1;
  color: var(--color-secondary);
  margin-bottom: 18px;
}
.feature-points { background: var(--color-white); }
.feature-point {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 8px 0;
  font-size: var(--font-body-4);
  line-height: 1.45;
  color: var(--color-secondary);
}
.feature-point i { color: var(--color-primary); font-size: 20px; line-height: 1.2; flex: 0 0 auto; }

.feature-prose { font-size: var(--font-body-3); line-height: var(--line-height-b2); }

.feature-card h4 { font-size: 24px; margin-bottom: 10px; }
.feature-card p { font-size: var(--font-body-4); line-height: 1.55; }
.feature-card-ic {
  font-size: 30px;
  color: var(--color-primary);
  display: inline-block;
  margin-bottom: 14px;
}
.feature-card-link { color: inherit; text-decoration: none; transition: var(--transition); }
.feature-card-link:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(51, 57, 82, 0.12) !important; }
.feature-card-link .feature-more { color: var(--color-link); font-weight: 600; font-size: var(--font-body-4); }

.feature-step {
  background: var(--color-white);
  border-radius: 12px;
  padding: 26px 24px;
  height: 100%;
  box-shadow: 0 1px 3px rgba(51, 57, 82, 0.08);
}
.feature-step-n {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.feature-step h5 { font-size: 22px; margin-bottom: 8px; }
.feature-step p { font-size: var(--font-body-4); line-height: 1.55; }

.feature-options { border-top: 1px solid #e5e7ef; }
.feature-option {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid #e5e7ef;
}
.feature-option-name { font-weight: 700; color: var(--color-secondary); font-size: var(--font-body-4); }
.feature-option-text { font-size: var(--font-body-4); line-height: 1.55; }
@media (max-width: 767px) {
  .feature-option { grid-template-columns: 1fr; gap: 4px; }
  .feature-hero h1.feature-h1 { font-size: 36px; }
}

.feature-api-label { font-weight: 700; color: var(--color-secondary); font-size: var(--font-body-4); margin: 18px 0 6px; }
.feature-code {
  background: var(--color-secondary-dark);
  color: #e8eaf2;
  border-radius: 10px;
  padding: 16px 18px;
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-all;
  margin-bottom: 0;
}
.feature-code code { color: inherit; }

.feature-faq .accordion-button { font-weight: 700; color: var(--color-secondary); font-size: var(--font-body-4); }
.feature-faq .accordion-button:not(.collapsed) { background: rgba(216, 7, 88, 0.06); color: var(--color-secondary); box-shadow: none; }
.feature-faq .accordion-button:focus { box-shadow: 0 0 0 0.2rem rgba(216, 7, 88, 0.15); }
.feature-faq .accordion-body { font-size: var(--font-body-4); line-height: 1.6; }
.feature-faq h3 { margin: 0; }

/* Virtual patching: list of recent patches */
.vp-list { border-top: 1px solid #e5e7ef; }
.vp-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid #e5e7ef;
}
.vp-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary);
  background: rgba(216, 7, 88, 0.08);
  border-radius: 20px;
  padding: 3px 10px;
  white-space: nowrap;
}
.vp-item h5 { font-size: 20px; margin-bottom: 4px; }
.vp-item p { font-size: var(--font-body-4); line-height: 1.55; margin-bottom: 0; }
@media (max-width: 767px) { .vp-item { grid-template-columns: 1fr; gap: 6px; } }

/* Hubs */
.hub-group-title { font-size: 26px; margin: 40px 0 18px; color: var(--color-secondary); }
.hub-group-title:first-child { margin-top: 0; }

/* Header menus */
.dropdown-menu.noc-mega { min-width: 560px; padding: 18px 10px; }
.noc-mega .mega-col-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a8a8a;
  padding: 4px 16px 8px;
}
.noc-mega .dropdown-item { display: flex; align-items: center; gap: 10px; padding: 6px 16px; }
.noc-mega .dropdown-item i { color: var(--color-primary); width: 18px; text-align: center; }
@media (max-width: 767px) {
  .dropdown-menu.noc-mega { min-width: 0; padding: 6px 0; }
}
.dropdown-menu.noc-mega:not(.noc-mega-3) { min-width: 280px; }
.noc-mega-cols { display: grid; grid-template-columns: 1fr; gap: 0; }
@media (min-width: 992px) {
  .navbar .nav-item:hover .dropdown-menu.noc-mega,
  .navbar .dropdown-menu.noc-mega.show { padding: 18px 10px; }
  .noc-mega-cols { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  /* Centre the 3-column menu in the navbar container, not under the Products link,
     so it can never run past the right edge of the viewport. */
  .navbar > .container { position: relative; }
  .navbar .nav-item.noc-mega-host { position: static; }
  .navbar .dropdown-menu.noc-mega-3 {
    width: min(820px, calc(100vw - 32px));
    min-width: 0;
    top: auto; /* stay directly under the Products link, not the bottom of the container */
    left: 50%;
    transform: translateX(-50%);
  }
}
@media (min-width: 768px) and (max-width: 991px) {
  .dropdown-menu.noc-mega, .dropdown-menu.noc-mega-3 { min-width: 0; max-height: 70vh; overflow-y: auto; }
}
/* Collapsed phone menu: let the whole panel scroll so Login and Free Trial stay reachable
   when the Products menu is open. */
@media (max-width: 767px) {
  .navbar-collapse { max-height: calc(100vh - 80px); overflow-y: auto; }
}

/* Homepage */
.home-audience { font-weight: 600; color: var(--color-secondary); font-size: var(--font-body-4); }
.home-audience a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
