/* 404 Page Styles */
.error-404-hero {
  position: relative;
  min-height: 600px;
  background-size: contain;
  background-position: bottom;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  padding: 60px 0;
  overflow: hidden;
}

.error-404-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.error-404-hero .container {
  position: relative;
  z-index: 2;
}

.error-404-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1e3a8a;
  margin-bottom: 1rem;
}

.error-404-content p {
  font-size: 1rem;
  color: #6b7280;
  margin-bottom: 2rem;
}

.error-404-search-form {
  max-width: 600px;
}

.error-404-search-form input[type="search"] {
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px 50px 12px 20px;
  font-size: 1rem;
  width: 100%;
  transition: border-color 0.3s;
}

.error-404-search-form input[type="search"]:focus {
  border-color: #1e3a8a;
  outline: none;
}

.error-404-search-form button {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.error-404-character {
  position: absolute;
  right: 10%;
  bottom: 0;
  max-width: 450px;
  height: auto;
  z-index: 2;
  pointer-events: none;
}

.error-404-featured {
  padding: 30px 0;
}

.error-404-featured h2 {
  font-size: 24px;
  font-weight: 600;
  color: var(--main-gray-950);
  margin-bottom: 30px;
}

.error-404-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.error-404-posts-grid .blog-homepage-card-post {
  height: 100%;
}

.error-404-posts-grid .blog-homepage-card-post-thumbnail img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

.error-404-posts-grid .entry-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: 1rem;
  line-height: 1.4;
}

.error-404-posts-grid .entry-title a {
  color: #111827;
  text-decoration: none;
  transition: color 0.3s;
}

.error-404-posts-grid .entry-title a:hover {
  color: #1e3a8a;
}

@media (max-width: 991px) {
  .error-404-character {
    max-width: 300px;
  }

  .error-404-hero::before {
    background: rgba(255, 255, 255, 0.95);
  }
}

@media (max-width: 767px) {
  .error-404-character {
    display: none;
  }

  .error-404-content h1 {
    font-size: 2rem;
  }

  .error-404-posts-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}
