/*
Theme Name: Astra Child
Template: astra
Version: 1.0.0
Text Domain: astra-child
*/

/* Nagłówek przed postami */
.latest-posts-heading {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 3rem 0 1.5rem;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.wp-block-latest-posts__post {
    list-style: none;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.wp-block-latest-posts__post:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.wp-block-latest-posts__post-title {
    font-size: 1.25rem;
}


/* ====== Sekcja 404 – niezależna od motywu ====== */

/* Reset w obrębie bloku, żeby nie dziedziczyć dziwnych styli z motywu */
.e404, .e404 * { box-sizing: border-box; }

/* Kontener i „karta” */

.e404__card {
  background: #ffffff;
  max-width: auto;
  margin: 0 auto;
  padding: 40px 60px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
}

/* Nagłówek i opis */
.e404__title {
  margin: 0 0 16px;
  font-size: 28px;
  line-height: 1.25;
  color: #1c2a39;
}
.e404__text {
  margin: 0 0 24px;
  font-size: 16px;
  color: #333;
}

/* Wyszukiwarka – własne klasy, brak kolizji z motywem */
.e404__search {
  display: flex;
  align-items: stretch;
  justify-content: center;
  max-width: 420px;          /* kontrola długości */
  margin: 0 auto;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

/* Pole */
.e404__input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 12px 14px;
  font-size: 16px;
  border: none !important;   /* nadpisanie motywu */
  outline: none;
  appearance: none;
  background: #fff;
}

/* Przycisk */
.e404__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 0;
  background: #cacaca;
  cursor: pointer;
  transition: filter .15s ease;
}
.e404__btn:hover { 
    filter: brightness(0.95);
    background: #49ace6;
}
.e404__icon { display: block; width: 18px; height: 18px; }
