/*=====
# 404 Hero Section
============*/
.error-404__hero {
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url(../images/mv.png) center/cover no-repeat;
  padding: 80px 0;
  text-align: center;
  color: #fff;
  position: relative;
}

.error-404__hero-content {
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .error-404__hero {
    padding: 60px 0;
  }
}

/*=====
# 404 Content Section
============*/
.error-404__content {
  background: #fff;
  padding: 60px 0;
}

.error-404__content-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.error-404__primary {
  width: 100%;
}

/*=====
# 404 Header
============*/
.error-404__header {
  text-align: center;
  margin-bottom: 40px;
}

.error-404__header--description {
  margin-bottom: 60px;
}

.error-404__title {
  font-family: "mgen-medium", sans-serif;
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--section-color);
  margin-bottom: 20px;
}

.error-404__title--category {
  color: var(--section-color);
}

.error-404__description {
  font-size: 1.6rem;
  line-height: 1.8;
  color: var(--main-color);
}

.error-404__back-link {
  text-align: center;
  font-size: 1.8rem;
  color: var(--section-yellow);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.error-404__back-link:hover {
  opacity: 0.7;
}

/*=====
# 404 Entry Lists
============*/
.error-404__entries {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.error-404__entries--horizontal {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/*=====
# 404 Entry Item
============*/
.error-404__entry-item {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

.error-404__entry-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.error-404__entry-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}

.error-404__entry-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.error-404__entry-item:hover .error-404__entry-image img {
  transform: scale(1.05);
}

/*=====
# 404 Entry Body
============*/
.error-404__entry-body {
  padding: 20px;
}

.error-404__entry-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 12px;
  font-size: 1.2rem;
  color: #808080;
}

.error-404__entry-tag {
  background: var(--section-yellow);
  color: #fff;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
}

.error-404__entry-published {
  display: flex;
  align-items: center;
  gap: 5px;
}

.error-404__entry-published::before {
  content: "\f073";
  font-family: "Font Awesome 5 Free", sans-serif;
  font-weight: 400;
}

.error-404__entry-title {
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 12px;
  color: var(--section-color);
}

.error-404__entry-excerpt {
  font-size: 1.4rem;
  line-height: 1.6;
  color: #666;
}

.error-404__entry-excerpt p {
  margin: 0;
}

/*=====
# 404 Pagination
============*/
.error-404__pagination {
  text-align: center;
  margin-top: 60px;
}

.error-404__pagination .page-numbers {
  background: #fff;
  border: 1px solid #e6e6e6;
  color: #808080;
  display: inline-block;
  font-family: "Lato", sans-serif;
  font-size: 20px;
  height: 40px;
  line-height: 38px;
  margin-right: 14px;
  min-width: 40px;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  border-radius: 4px;
}

.error-404__pagination .page-numbers.current {
  background: var(--section-yellow);
  border: 1px solid var(--section-yellow);
  color: #fff;
  font-weight: 700;
}

.error-404__pagination .page-numbers:last-child {
  margin-right: 0;
}

.error-404__pagination .page-numbers:hover {
  opacity: 0.6;
}

.error-404__pagination .prev,
.error-404__pagination .next {
  padding: 0 15px;
}

/*=====
# Responsive Design
============*/
@media (max-width: 768px) {
  .error-404__content-inner {
    padding: 0 20px;
  }

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

  .error-404__description {
    font-size: 1.4rem;
  }

  .error-404__back-link {
    font-size: 1.6rem;
  }

  .error-404__entries {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .error-404__entry-image {
    height: 180px;
  }

  .error-404__entry-body {
    padding: 15px;
  }

  .error-404__entry-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-size: 1.1rem;
  }

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

  .error-404__entry-excerpt {
    font-size: 1.3rem;
  }

  .error-404__pagination .page-numbers {
    font-size: 16px;
    height: 35px;
    line-height: 33px;
    margin-right: 10px;
    min-width: 35px;
  }
}
