/* ==========================================================================
   News (posts) listing, pagination and single post
   ========================================================================== */

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
}

/* ---- Listing page ------------------------------------------------------- */
.kf-page {
  padding: 170px 0 90px;
  background-color: #2e2d32;
}
@media (max-width: 1170px) { .kf-page { padding-top: 110px; } }
@media (max-width: 600px)  { .kf-page { padding-top: 90px; } }

.kf-page-header { text-align: center; margin-bottom: 50px; }
.kf-kicker {
  color: #B58B6B; font-size: 13px; font-weight: 600;
  letter-spacing: .3em; text-transform: uppercase; margin: 0 0 10px;
}
.kf-page-header h1 {
  color: #fff; font-size: 42px; font-weight: 700; line-height: 1.15;
  margin: 0; text-transform: uppercase; letter-spacing: .04em;
}
.kf-page-header h1:after {
  content: ""; display: block; width: 70px; height: 4px; border-radius: 2px;
  background: #f58434; margin: 20px auto 0;
}
@media (max-width: 600px) { .kf-page-header h1 { font-size: 30px; } }

/* ---- Card grid ---------------------------------------------------------- */
.kf-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}
@media (max-width: 991px) { .kf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .kf-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; } }

.kf-card {
  position: relative; display: flex; flex-direction: column;
  background: #3a393f; border-radius: 15px; overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  transition: transform .25s ease, box-shadow .25s ease;
}
.kf-card:hover, .kf-card:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .5);
}

.kf-card__media {
  display: block; position: relative; overflow: hidden;
  padding-bottom: 62.5%; background: #2e2d32;
}
.kf-card__media img {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover; display: block; border-radius: 0; margin: 0;
  transition: transform .6s ease;
}
.kf-card:hover .kf-card__media img { transform: scale(1.05); }
.kf-card__media--empty img.kf-card__placeholder {
  object-fit: contain; padding: 18%; opacity: .25;
}

.kf-card__date {
  position: absolute; top: 14px; left: 14px; z-index: 1;
  min-width: 52px; padding: 7px 8px 8px; border-radius: 10px;
  background: #f58434; color: #fff; text-align: center; line-height: 1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .35);
}
.kf-card__date b { display: block; font-size: 22px; font-weight: 700; }
.kf-card__date span {
  display: block; font-size: 11px; font-weight: 600; margin-top: 4px;
  text-transform: uppercase; letter-spacing: .08em;
}

.kf-card__body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.kf-card__title {
  margin: 0 0 12px !important; font-size: 19px; line-height: 1.35; font-weight: 600;
}
.kf-card__title a { color: #fff; transition: color .2s; }
.kf-card__title a:hover { color: #f58434; }
.kf-card__excerpt { flex: 1; color: #c9c7ce; font-size: 14px; line-height: 1.6; }
.kf-card__excerpt p { margin: 0; }
.kf-card__more {
  display: inline-block; margin-top: 18px; color: #f58434;
  font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.kf-card__more i { margin-left: 6px; transition: transform .2s; }
.kf-card:hover .kf-card__more i { transform: translateX(5px); }

/* ---- Empty state -------------------------------------------------------- */
.kf-empty { text-align: center; padding: 40px 0 20px; color: #c9c7ce; font-size: 17px; }
.kf-empty img { width: 140px; opacity: .25; margin: 0 auto 20px; display: block; }

/* ---- Pagination --------------------------------------------------------- */
.kf-pagination { margin-top: 60px; text-align: center; }
.kf-pagination .nav-links {
  display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 8px;
}
.kf-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; height: 44px; padding: 0 16px; border-radius: 22px;
  background: #3a393f; color: #fff; font-size: 14px; font-weight: 600;
  transition: background .2s, color .2s, transform .2s;
}
.kf-pagination a.page-numbers:hover { background: #f58434; transform: translateY(-2px); }
.kf-pagination .page-numbers.current { background: #f58434; }
.kf-pagination .page-numbers.dots { background: transparent; color: #B58B6B; }
.kf-pagination .prev, .kf-pagination .next { text-transform: uppercase; letter-spacing: .08em; font-size: 12px; }
.kf-pagination .prev i { margin-right: 6px; }
.kf-pagination .next i { margin-left: 6px; }
@media (max-width: 600px) { .kf-pagination .kf-pg-label { display: none; } }

/* ---- Year page templates (2017-2019) intro text ------------------------- */
.kf-page-intro { max-width: 820px; margin: -20px auto 50px; color: #e6e4ea; font-size: 16px; line-height: 1.7; text-align: center; }
.kf-page-intro p { margin: 0 0 1em; }

/* ---- Single post -------------------------------------------------------- */
.kf-single { background-color: #2e2d32; }

.kf-hero {
  position: relative; min-height: 62vh; display: flex; align-items: flex-end;
  background: #2e2d32 center center / cover no-repeat;
}
.kf-hero:before {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(to bottom, rgba(46, 45, 50, .45) 0%, rgba(46, 45, 50, .15) 35%, rgba(46, 45, 50, .96) 100%);
}
.kf-hero__inner { position: relative; width: 100%; padding: 160px 0 48px; }
@media (max-width: 1170px) { .kf-hero__inner { padding-top: 110px; } }
.kf-hero__meta {
  color: #f58434; font-size: 13px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; margin: 0 0 14px;
}
.kf-hero__title {
  color: #fff; font-size: 44px; font-weight: 700; line-height: 1.18;
  margin: 0; max-width: 900px; text-shadow: 0 2px 24px rgba(0, 0, 0, .55);
}
@media (max-width: 767px) { .kf-hero { min-height: 50vh; } .kf-hero__title { font-size: 28px; } }

.kf-article {
  max-width: 820px; margin: 0 auto; padding: 56px 15px 30px;
  color: #e6e4ea; font-size: 17px; line-height: 1.75;
}
.kf-article p { margin: 0 0 1.4em; }
.kf-article > p:first-child { font-size: 19px; color: #fff; }
.kf-article h2, .kf-article h3, .kf-article h4 { color: #fff; font-weight: 700; margin: 1.6em 0 .6em; line-height: 1.3; }
.kf-article h2 { font-size: 28px; }
.kf-article h3 { font-size: 22px; }
.kf-article a { color: #f58434; text-decoration: underline; text-underline-offset: 3px; }
.kf-article a:hover { color: #f3ab6f; }
.kf-article strong { color: #fff; }
.kf-article em { color: #f3ab6f; }
.kf-article ul, .kf-article ol { padding-left: 1.4em; margin: 0 0 1.4em; }
.kf-article li { margin-bottom: .4em; list-style: disc; }
.kf-article ol li { list-style: decimal; }
.kf-article img { max-width: 100%; height: auto; border-radius: 14px; margin: 2em auto; display: block; }
.kf-article figure { margin: 2em 0; }
.kf-article figcaption { text-align: center; font-size: 13px; color: #B58B6B; margin-top: -1.2em; }
.kf-article blockquote {
  margin: 1.8em 0; padding: 1em 1.4em; border-left: 4px solid #f58434;
  background: rgba(255, 255, 255, .04); border-radius: 0 14px 14px 0;
  color: #f3ab6f; font-style: italic; font-size: 18px;
}
.kf-article blockquote p:last-child { margin-bottom: 0; }
.kf-article iframe { max-width: 100%; border-radius: 14px; }

.kf-section-title {
  text-align: center; color: #fff; font-size: 26px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; margin: 0 0 26px;
}
.kf-gallery { max-width: 1000px; margin: 20px auto 40px; padding: 0 15px; }
.kf-gallery .fotorama { border-radius: 14px; overflow: hidden; }

.kf-post-nav {
  max-width: 1000px; margin: 30px auto 0; padding: 40px 15px 10px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
@media (max-width: 600px) { .kf-post-nav { grid-template-columns: 1fr; } }
.kf-post-nav a {
  display: block; padding: 20px 24px; border-radius: 15px;
  background: #3a393f; color: #fff; font-weight: 600; line-height: 1.4;
  transition: background .2s, transform .2s;
}
.kf-post-nav a:hover { background: #4a494f; transform: translateY(-3px); }
.kf-post-nav small {
  display: block; margin-bottom: 8px; color: #f58434;
  font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
}
.kf-post-nav__next { text-align: right; }

.kf-back { text-align: center; padding: 50px 15px 90px; }
.kf-btn {
  display: inline-block; padding: 14px 34px; border-radius: 30px;
  background: #f58434; color: #fff !important; font-size: 13px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.kf-btn:hover { background: #f28f27; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(245, 132, 52, .35); }

/* ---- Front page news section -------------------------------------------- */
#hirek .container { position: relative; z-index: 1; }
#hirek .kf-grid--front { margin-top: 40px; }
#hirek .kf-card { background: #2e2d32; }
#hirek .kf-empty { color: #fff; }
.kf-front-more { text-align: center; margin-top: 50px; }
