/* ===========================================
   404 Error Page — Professional layout
   =========================================== */

.error-404 {
  background: linear-gradient(135deg, #fefefe 0%, #f8f9fa 100%);
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.25rem;
  margin-top: 5rem;
}

.error-404-wrap {
  max-width: 600px;
  text-align: center;
}

.error-404-content {
  margin-bottom: 3rem;
}

.error-404-heading {
  font-size: 7rem;
  font-weight: 900;
  color: #0d437e;
  line-height: 1;
  margin: 0 0 0.5rem;
  letter-spacing: -0.05em;
}

.error-404-title {
  font-size: 2rem;
  font-weight: 700;
  color: #2c3340;
  margin: 0 0 1rem;
  line-height: 1.25;
}

.error-404-message {
  font-size: 1.1rem;
  color: #6c757d;
  line-height: 1.65;
  margin: 0 0 2rem;
}

/* ---- Navigation section ---- */
.error-404-nav {
  text-align: left;
}

.error-404-section-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #0d437e;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #d2232a;
}

.error-404-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1rem;
}

.error-404-list li {
  margin: 0;
}

.error-404-link {
  display: inline-block;
  color: #0d437e;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0;
  border-left: 3px solid transparent;
  padding-left: 0.75rem;
  transition: all 0.2s ease;
}

.error-404-link:hover,
.error-404-link:focus {
  color: #d2232a;
  border-left-color: #d2232a;
}

/* ---- CTA buttons ---- */
.error-404-cta-wrap {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.error-404-cta-wrap .button {
  padding: 0.85rem 1.75rem;
  font-weight: 600;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

/* ---- Responsive ---- */
@media only screen and (min-width: 540px) {
  .error-404 {
    margin-top: 7.5rem;
  }

  .error-404-heading {
    font-size: 8.5rem;
  }

  .error-404-list {
    grid-template-columns: 1fr;
  }
}

@media only screen and (min-width: 1080px) {
  .error-404 {
    margin-top: 8.5rem;
  }

  .error-404-wrap {
    max-width: 700px;
  }

  .error-404-heading {
    font-size: 10rem;
  }

  .error-404-title {
    font-size: 2.25rem;
  }

  .error-404-cta-wrap {
    justify-content: center;
  }
}
