/* JetHaber – Modern UI Tweaks
   Goal: slightly more modern look (spacing, typography, softer cards)
   Safe: additive overrides only.
*/

:root {
  --jh-radius-lg: 18px;
  --jh-radius-md: 12px;
  --jh-shadow-sm: 0 6px 18px rgba(0,0,0,.06);
  --jh-shadow-md: 0 10px 28px rgba(0,0,0,.10);
}

/* Better readability */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Card-like blocks */
.single-main,
.widget,
.latest8-card,
.post-item,
.side-posts .post {
  border-radius: var(--jh-radius-lg);
}

.single-main {
  background: rgba(255,255,255, .92);
  box-shadow: var(--jh-shadow-sm);
  border: 1px solid rgba(0,0,0,.06);
  padding: 18px;
}

.night-mode .single-main {
  background: rgba(255,255,255, .08);
  border-color: rgba(255,255,255,.10);
}

/* Title spacing */
.post-title {
  letter-spacing: -0.01em;
  line-height: 1.12;
}

/* Buttons / pills */
.post-categories li a,
.pagination .page-numbers,
.g-news-link img,
.g-news-btn {
  border-radius: var(--jh-radius-md);
}

/* Make images feel more modern */
.post-thumbnail img,
.wp-post-image,
.post-content img {
  border-radius: var(--jh-radius-lg);
}

/* Reduce harsh dividers */
hr {
  opacity: .5;
}

/* Mobile: keep padding tight */
@media (max-width: 576px) {
  .single-main { padding: 14px; }
}

/* -----------------------------
   Discover/CWV helpers
   - Reduce CLS by reserving image space
   - Make home sections look more "editorial"
-------------------------------- */

/* Reserve space for cards before images load (CLS) */
.card-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--jh-radius-lg);
  background: rgba(0,0,0,.04);
}

.card-image img,
.card-image picture,
.card-image .post-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Swiper containers: avoid a “jump” before JS initializes */
.swiper.slider--top,
.swiper.slider--main {
  min-height: 220px;
}

@media (max-width: 576px) {
  .swiper.slider--top,
  .swiper.slider--main { min-height: 180px; }
}

/* Home section headings */
.home-block { margin-bottom: 8px; }

.home-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 12px 0;
}

.home-section-title {
  font-size: 1.05rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0;
}

.home-section-link {
  font-size: .9rem;
  opacity: .85;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.08);
}

.night-mode .home-section-link {
  border-color: rgba(255,255,255,.18);
}

/* Slightly more breathing room on home grids */
.middle-posts,
.bottom-posts {
  row-gap: 16px;
}

