/* =========================
   SEGMENTS SECTION
========================= */

.segments {
  margin: 60px auto;
  max-width: 1200px;
  padding: 0 20px;
}

.segments h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  text-align: left;
}


/* =========================
   GRID
========================= */

.segments-grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 768px) {
  .segments-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}


/* =========================
   LINK WRAPPER
========================= */

.segment-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.segment-link:visited,
.segment-link:hover,
.segment-link:active {
  text-decoration: none;
  color: inherit;
}

.segment-link:focus-visible {
  outline: 2px solid #7a1c1c;
  outline-offset: 4px;
}


/* =========================
   BOX LAYOUT
========================= */

.segment-item {
  text-align: center;   /* Everything centered */
}


/* =========================
   ICON
========================= */

.segments .na-box-icon {
  display: block;
  margin: 0 auto 16px;
  color: var(--na-icon-color);
}

/* Inline SVG */
.segments .na-box-icon svg {
  width: 56px;
  height: 56px;
  display: block;
  margin: 0 auto;
  transition: transform 0.18s ease;
}

/* Force SVG to inherit color */
.segments .na-box-icon svg path {
  fill: currentColor;
}

/* Hover animation */
.segments .segment-link:hover .na-box-icon svg {
  transform: scale(1.12);
}


/* =========================
   CONTENT
========================= */

.segment-item h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.segment-item p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {
  .segments h2 {
    text-align: center;
  }
}