/* ====== Base Styling ====== */
.error-404 {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  gap: 5rem;
  padding: 80px 20px;
  margin: 0 auto;
  max-width: 1400px;
}

.error-404 img {
  width: 100%;
  max-width: 800px;
  height: auto;
  object-fit: contain;
}

.wrapper-404 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  text-align: center;
  max-width: 600px;
  padding: 0 20px;
}

.error-404-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #1F3B73;
}

.error-404-header h1 {
  font-size: clamp(80px, 12vw, 200px);
  margin: 0;
  line-height: 1;
}

.error-404-header p {
  font-size: clamp(24px, 5vw, 60px);
  margin: 0;
}

.error-404-content {
  color: #1F3B73;
  font-size: clamp(16px, 4vw, 40px);
}

.wrapper-404 a {
    display: flex;
    width: 255px;
    height: 40px;
    padding: 10px 40px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    border-radius: 20px 0;
    background: #CF7525;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 600;
    color: #ffffff;
    line-height: 2px;
}

.wrapper-404 a:hover{
    background: #dd8e49;
}



/* ====== Tablet Styling (769px–1024px) ====== */
@media (min-width: 769px) and (max-width: 1024px) {
  .error-404 {
    flex-direction: column; /* stack vertically for more breathing room */
    gap: 3rem;
    padding: 60px 40px;
    flex-wrap: wrap; /* allows stacking on smaller screens */
  }

  .error-404 img {
    max-width: 500px;
  }

  .wrapper-404 {
    max-width: 500px;
    gap: 1.5rem;
  }

  .error-404-header h1 {
    font-size: clamp(100px, 15vw, 160px);
  }

  .error-404-header p {
    font-size: clamp(28px, 6vw, 48px);
  }

  .error-404-content {
    font-size: clamp(18px, 4vw, 28px);
  }
}

/* ====== Mobile Styling (max 768px) ====== */
@media (max-width: 768px) {
  .error-404 {
    flex-direction: column;
    gap: 2rem;
    padding: 40px 20px;
  }

  .error-404 img {
    max-width: 100%;
  }

  .wrapper-404 {
    width: 100%;
    max-width: 100%;
    gap: 1.5rem;
  }

  .error-404-header h1 {
    font-size: clamp(80px, 20vw, 120px);
  }

  .error-404-header p {
    font-size: clamp(20px, 6vw, 32px);
  }

  .error-404-content {
    font-size: clamp(16px, 5vw, 24px);
  }
}
