/* ======================================================
   404 PAGE
   Framework uyumlu: content-page + content-surface
====================================================== */

/* Sayfa yüksekliği */
.page-404{
  min-height: 70vh;
}

/* content-surface üzerinde 404'e özel padding/spacing */
.page-404-surface{
  padding: 40px 24px;
}

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

.error-404-content{
  text-align: center;
  padding-bottom: 40px;
}

/* LOGO */
.error-logo{
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.error-logo img{
  max-width: 180px;
  width: 100%;
  height: auto;
  max-height: 68px;
}

/* 404 Code */
.error-code{
  font-size: 96px;
  font-weight: 800;
  color: #d32f2f;
  line-height: 1;
  margin-bottom: 10px;
}

.error-404-content h1{
  font-size: 26px;
  margin-bottom: 10px;
}

.error-404-content p{
  max-width: 520px;
  margin: 0 auto 28px;
  color: #444;
  line-height: 1.7;
}

/* ======================================================
   SEARCH
====================================================== */

.error-search{
  max-width: 420px;
  margin: 0 auto 32px;
}

.error-search form{
  position: relative;
}

.error-search input[type="search"]{
  width: 100%;
  height: 48px;
  padding: 0 52px 0 18px;
  font-size: 15px;
  border-radius: 999px;
  border: 1px solid #ddd;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.error-search input[type="search"]::placeholder{
  color: #999;
}

.error-search input[type="search"]:focus{
  border-color: #d32f2f;
  box-shadow: 0 0 0 3px rgba(211,47,47,.15);
}

/* Submit button */
.error-search button,
.error-search input[type="submit"]{
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: #d32f2f;
  color: #fff;
  cursor: pointer;
  transition: background .2s ease;
}

.error-search button:hover,
.error-search input[type="submit"]:hover{
  background: #b71c1c;
}

/* ======================================================
   LATEST POSTS
====================================================== */

.error-latest-posts{
  margin-top: 60px;
}

.error-latest-posts h2{
  text-align: center;
  font-size: 22px;
  margin-bottom: 24px;
}

/* Grid */
.latest-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Card */
.latest-card{
  border: 1px solid #e0e0e0;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  transition: transform .2s ease, box-shadow .2s ease;
}

.latest-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
}

.latest-card a{
  text-decoration: none;
  color: inherit;
  display: block;
}

/* Thumb + badge */
.latest-thumb{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.latest-thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.latest-badge{
  position: absolute;
  top: 12px;
  left: 12px;
  background: #d32f2f;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
  letter-spacing: .3px;
  z-index: 2;
}

/* Title */
.latest-card h3{
  font-size: 14px;
  font-weight: 600;
  padding: 14px 16px;
  line-height: 1.4;
  color: #111;
}

.latest-card:hover h3{
  color: #d32f2f;
}

/* ======================================================
   MOBILE
====================================================== */
@media (max-width: 992px){

  .page-404-surface{
    padding: 28px 16px;
  }

  .latest-grid{
    grid-template-columns: 1fr;
  }

  .error-code{
    font-size: 72px;
  }
}