/* ─── PAGE HERO ── */
.page-hero {
  padding: 8rem 0 4rem;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--secondary) 100%);
  position: relative;
  overflow: hidden;
}
.page-hero--img {
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  position: relative;
}
.page-hero--img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.52);
  z-index: 0;
}
.page-hero--img .page-hero-inner { position: relative; z-index: 1; }
.page-hero--img .hero-label,
.page-hero--img h1,
.page-hero--img p { text-shadow: 0 1px 6px rgba(0,0,0,.4); }

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}
.page-hero-inner { position: relative; z-index: 1; text-align: center; }
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
  padding: .45rem 1rem;
  border-radius: 9999px;
  margin-bottom: 1.25rem;
}
.hero-label .dot { width: .45rem; height: .45rem; background: #fff; border-radius: 50%; opacity: .8; }
.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -.5px;
  margin-bottom: 1rem;
}
.page-hero p { color: rgba(255,255,255,.75); font-size: 1rem; max-width: 36rem; margin: 0 auto; }

/* ─── KATEGORIJE ── */
.categories-bar {
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 68px;
  z-index: 50;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.categories-inner {
  padding: 1rem 0;
  display: flex;
  gap: .5rem;
  align-items: center;
  flex-wrap: wrap;
}
.cat-btn {
  padding: .4rem 1rem;
  border-radius: 9999px;
  font-family: inherit;
  font-size: .8rem;
  font-weight: 600;
  border: 1.5px solid var(--gray-200);
  background: #fff;
  color: var(--gray-500);
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.cat-btn:hover { border-color: var(--primary); color: var(--primary); }
.cat-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ─── FEATURED POST ── */
.blog-section { padding: 4rem 0 5rem; }

.featured-post {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,.12);
  margin-bottom: 4rem;
  background: #fff;
  text-decoration: none;
  transition: transform .3s, box-shadow .3s;
}
.featured-post:hover { transform: translateY(-4px); box-shadow: 0 20px 60px rgba(0,0,0,.16); }
@media (max-width: 900px) { .featured-post { grid-template-columns: 1fr; } }

.featured-img-wrap { position: relative; overflow: hidden; }
.featured-img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  background-size: cover;
  background-position: center;
  transition: transform .6s ease;
}
.featured-post:hover .featured-img { transform: scale(1.05); }
.featured-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 60%, rgba(255,255,255,.08));
}
@media (max-width: 900px) {
  .featured-img { min-height: 260px; }
  .featured-img-overlay { background: linear-gradient(to top, transparent 60%, rgba(0,0,0,.08)); }
}

.featured-body {
  padding: 2.5rem 2.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.featured-label {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .72rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(168,135,74,.1);
  border: 1px solid rgba(168,135,74,.2);
  padding: .3rem .75rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  width: fit-content;
}
.featured-label svg { width: .75rem; height: .75rem; }
.featured-body h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -.3px;
}
.featured-body p {
  color: var(--gray-500);
  font-size: .92rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}
.featured-meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: .78rem;
  color: var(--gray-400);
  margin-bottom: 1.75rem;
}
.featured-meta span { display: flex; align-items: center; gap: .3rem; }
.featured-meta svg { width: .85rem; height: .85rem; color: var(--primary); }
.btn-read {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--primary);
  color: #fff;
  font-size: .875rem;
  font-weight: 700;
  padding: 0 1.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  width: fit-content;
  transition: background .2s, transform .15s;
}
.btn-read:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-read svg { width: .9rem; height: .9rem; transition: transform .2s; }
.btn-read:hover svg { transform: translateX(3px); }

/* ─── SECTION HEADER ── */
.section-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}
.section-label-sm {
  font-size: .72rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: .15em;
  margin-bottom: .35rem;
}
.section-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -.3px;
  line-height: 1.15;
}
.results-info {
  font-size: .82rem;
  font-weight: 600;
  color: var(--gray-400);
}

/* ─── POSTS GRID ── */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.post-card {
  background: #fff;
  border-radius: 1.1rem;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,.07);
  transition: transform .3s, box-shadow .3s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
}
.post-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(0,0,0,.13); }

.post-img-wrap { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.post-img {
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform .5s;
}
.post-card:hover .post-img { transform: scale(1.07); }
.post-cat-badge {
  position: absolute;
  top: .85rem; left: .85rem;
  font-size: .68rem;
  font-weight: 700;
  color: #fff;
  background: var(--primary);
  padding: .25rem .7rem;
  border-radius: .4rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.post-read-time {
  position: absolute;
  top: .85rem; right: .85rem;
  font-size: .68rem;
  font-weight: 600;
  color: #fff;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(4px);
  padding: .25rem .65rem;
  border-radius: 9999px;
}

.post-body { padding: 1.25rem 1.4rem; flex: 1; display: flex; flex-direction: column; }
.post-dest {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .7rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(168,135,74,.08);
  padding: .2rem .6rem;
  border-radius: 9999px;
  margin-bottom: .65rem;
  width: fit-content;
}
.post-dest svg { width: .7rem; height: .7rem; }
.post-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.35;
  margin-bottom: .65rem;
  transition: color .2s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card:hover h3 { color: var(--primary); }
.post-excerpt {
  font-size: .82rem;
  color: var(--gray-500);
  line-height: 1.65;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: .85rem;
  border-top: 1px solid var(--gray-100);
  margin-top: auto;
}
.post-date {
  font-size: .72rem;
  color: var(--gray-400);
  display: flex;
  align-items: center;
  gap: .3rem;
}
.post-date svg { width: .75rem; height: .75rem; color: var(--primary); }
.post-arrow {
  width: 1.9rem; height: 1.9rem;
  border-radius: 50%;
  background: rgba(168,135,74,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.post-card:hover .post-arrow { background: var(--primary); }
.post-arrow svg { width: .85rem; height: .85rem; color: var(--primary); transition: color .2s; }
.post-card:hover .post-arrow svg { color: #fff; }

/* ─── NEWSLETTER CTA ── */
.newsletter-cta {
  margin-top: 5rem;
  border-radius: 1.5rem;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--secondary) 100%);
  padding: 3.5rem 3rem;
  text-align: center;
  position: relative;
}
.newsletter-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}
.newsletter-cta > * { position: relative; z-index: 1; }
.newsletter-cta h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: .75rem;
  letter-spacing: -.3px;
}
.newsletter-cta p {
  color: rgba(255,255,255,.75);
  font-size: .95rem;
  max-width: 30rem;
  margin: 0 auto 2rem;
  line-height: 1.7;
}
.nl-row {
  display: flex;
  gap: .75rem;
  justify-content: center;
  flex-wrap: wrap;
}
.nl-input-cta {
  height: 3rem;
  background: rgba(255,255,255,.15);
  border: 1.5px solid rgba(255,255,255,.3);
  color: #fff;
  border-radius: 9999px;
  padding: 0 1.5rem;
  font-family: inherit;
  font-size: .9rem;
  outline: none;
  width: 20rem;
  max-width: 100%;
  transition: border-color .2s;
}
.nl-input-cta::placeholder { color: rgba(255,255,255,.5); }
.nl-input-cta:focus { border-color: rgba(255,255,255,.7); }
.nl-btn-cta {
  height: 3rem;
  background: #fff;
  color: var(--primary-dark);
  font-family: inherit;
  font-size: .9rem;
  font-weight: 800;
  border: none;
  border-radius: 9999px;
  padding: 0 2rem;
  cursor: pointer;
  transition: opacity .2s, transform .15s;
  white-space: nowrap;
}
.nl-btn-cta:hover { opacity: .92; transform: translateY(-1px); }

/* ─── NO RESULTS ── */
.no-results { text-align: center; padding: 5rem 1rem; color: var(--gray-400); }
.no-results svg { width: 3.5rem; height: 3.5rem; margin: 0 auto 1rem; opacity: .3; }
.no-results p { font-size: 1rem; font-weight: 600; }
.no-results small { font-size: .85rem; }

@media (max-width: 640px) {
  .blog-section { padding: 3rem 0 4rem; }
  .featured-body { padding: 1.75rem; }
  .newsletter-cta { padding: 2.5rem 1.5rem; }
}
