/* ── Reset & Base ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: var(--color-background); color: var(--color-text); line-height: 1.5; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ── Layout ── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ── Header ── */
.site-header {
  background: var(--color-header-bg);
  box-shadow: 0px 1px 3px rgba(0,0,0,.1), 0px 1px 2px -1px rgba(0,0,0,.1);
  position: sticky; top: 0; z-index: 200;
  height: 69px; display: flex; align-items: center;
  padding: 0 80px;  /* poravnanje sa footer — isti padding kao site-footer */
}
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px; height: 68px; width: 100%;
  max-width: 1280px;   /* = footer-inner max-width */
  margin: 0 auto;      /* = footer-inner centring  */
  padding: 0 24px;     /* = footer-inner side pad  */
}

/* Logo */
.site-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; text-decoration: none; }
.logo-badge {
  width: 40px; height: 40px; background: var(--color-primary);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; color: #FAFAFA; flex-shrink:0;
}
.logo-name { font-weight: 900; font-size: 20px; line-height: 28px; letter-spacing: -0.5px; color: var(--color-text); white-space: nowrap; }

/* Nav */
.site-nav { display: flex; flex-direction: row; justify-content: center; align-items: center; gap: 2px; flex: 1; }
.site-nav a {
  display: flex; align-items: center; padding: 8px 16px;
  border-radius: 10px; font-weight: 600; font-size: 14px;
  color: #4A5565; transition: background .15s, color .15s; white-space: nowrap;
}
.site-nav a:hover { background: #F3F4F6; color: #101828; }
.site-nav a.active { background: var(--color-primary); color: #FFFFFF; }
.site-nav .has-dropdown { position: relative; }
.site-nav .has-dropdown .dropdown {
  display: none; position: absolute; top: calc(100% + 4px); left: 0;
  background: #fff; border: 1px solid #E5E7EB; border-radius: 12px;
  min-width: 180px; padding: 6px 0;
  box-shadow: 0 8px 24px rgba(0,0,0,.1); z-index: 300;
}
.site-nav .has-dropdown:hover .dropdown { display: block; }
.site-nav .dropdown a { display: block; padding: 8px 16px; border-radius: 0; font-size: 13px; font-weight: 500; color: #4A5565; }
.site-nav .dropdown a:hover { background: #F9FAFB; color: #101828; }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; justify-content: flex-end; }
.btn-search {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 12px; border-radius: 10px;
  background: rgba(106,20,44,.08); color: var(--color-primary);
  border: none; cursor: pointer; font-weight: 700; font-size: 13px;
  text-decoration: none; transition: all .15s;
}
.btn-search:hover { background: rgba(106,20,44,.15); }
.btn-login {
  display: flex; align-items: center; justify-content: center;
  padding: 8px 16px; background: var(--color-primary); border-radius: 10px;
  font-weight: 700; font-size: 14px; color: #FFFFFF; transition: opacity .15s;
}
.btn-login:hover { opacity: .85; }

/* Lang switcher */
.lang-switch { display: flex; gap: 4px; align-items: center; }
.lang-btn { padding: 4px 8px; border-radius: 6px; font-size: 11px; font-weight: 600; color: #4A5565; border: 1px solid transparent; transition: all .15s; cursor: pointer; }
.lang-btn:hover { background: #F3F4F6; color: #101828; }
.lang-btn.active { background: rgba(106,20,44,.1); color: var(--color-primary); border-color: rgba(106,20,44,.2); }

/* ── Ad Banner ── */
.ad-banner { background: #F9FAFB; padding: 12px 80px; display: flex; justify-content: center; }
.ad-banner-inner {
  background: #101828; border-radius: 16px;
  padding: 0 32px; height: 90px;
  display: flex; align-items: center; gap: 24px;
  position: relative; max-width: 934px; width: 100%;
}
.ad-logo-box { width: 48px; height: 48px; background: #6A142C; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ad-content { flex: 1; }
.ad-tag { font-size: 11px; font-weight: 600; letter-spacing: 1.1px; text-transform: uppercase; color: #99A1AF; margin-bottom: 2px; }
.ad-title { font-size: 16px; font-weight: 900; color: #FFFFFF; }
.ad-desc { font-size: 14px; color: #99A1AF; line-height: 20px; flex: 1; }
.ad-cta { display: flex; align-items: center; justify-content: center; padding: 10px 20px; background: #6A142C; border-radius: 12px; font-weight: 700; font-size: 14px; color: #FFFFFF; transition: opacity .15s; white-space: nowrap; flex-shrink: 0; }
.ad-cta:hover { opacity: .85; }
.ad-label { position: absolute; top: 8px; right: 8px; font-size: 9px; font-weight: 600; color: #4A5565; letter-spacing: .5px; text-transform: uppercase; }

/* ── Page layout ── */
.page-main { padding: 32px 104px; }
.content-grid { display: flex; gap: 32px; max-width: 1232px; margin: 0 auto; }
.content-area { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.sidebar { width: 300px; flex-shrink: 0; display: flex; flex-direction: column; gap: 20px; }

/* ── Section headers ── */
.section-header { display: flex; flex-direction: row; align-items: center; gap: 12px; padding: 12px 0 0; }
.section-bar { width: 4px; height: 20px; background: var(--color-primary); border-radius: 999px; flex-shrink: 0; }
.section-title { font-weight: 900; font-size: 14px; letter-spacing: .35px; text-transform: uppercase; color: var(--color-text); }
.section-divider { flex: 1; height: 1px; background: #E5E7EB; }
.section-link { font-weight: 700; font-size: 12px; color: var(--color-primary); white-space: nowrap; }

/* ── Category filter tabs ── */
.filter-tabs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filter-tab {
  display: flex; align-items: center; justify-content: center;
  padding: 6px 16px; border-radius: 999px;
  font-weight: 700; font-size: 12px; cursor: pointer;
  transition: all .15s; text-decoration: none;
  border: 1px solid #E5E7EB; background: #FFFFFF; color: #4A5565;
}
.filter-tab:hover { background: #F9FAFB; }
.filter-tab.active { background: var(--color-primary); border-color: var(--color-primary); color: #FFFFFF; }

/* ── Featured + sidebar article grid ── */
.featured-section { display: flex; flex-direction: row; gap: 16px; align-items: flex-start; }

.article-featured {
  width: 595px; flex-shrink: 0;
  border: 1px solid #F3F4F6; border-radius: 16px; overflow: hidden;
  display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: box-shadow .2s;
}
.article-featured:hover { box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.article-featured-img { width: 100%; height: 372px; object-fit: cover; display: block; background: #F3F4F6; }
.article-featured-img-placeholder { width: 100%; height: 372px; background: #F3F4F6; }
.article-featured-overlay {
  position: relative; margin-top: -372px; height: 372px; pointer-events: none;
  background: linear-gradient(0deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.3) 50%, rgba(0,0,0,0) 100%);
}
.article-featured-body { position: absolute; bottom: 0; left: 0; right: 0; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.article-featured-info { display: flex; flex-direction: column; gap: 10px; }
.article-featured-footer { background: #FFFFFF; padding: 16px 24px; display: flex; flex-direction: column; gap: 0; }

.articles-side-stack { display: flex; flex-direction: column; gap: 16px; flex: 1; }
.article-card-sm {
  border: 1px solid #F3F4F6; border-radius: 16px; overflow: hidden;
  background: #FFFFFF; display: flex; flex-direction: column;
  text-decoration: none; color: inherit; transition: box-shadow .2s;
}
.article-card-sm:hover { box-shadow: 0 4px 16px rgba(0,0,0,.07); }
.article-card-sm-img { width: 100%; height: 162px; object-fit: cover; display: block; background: #F3F4F6; }
.article-card-sm-img-placeholder { width: 100%; height: 162px; background: #F3F4F6; }
.article-card-sm-body { padding: 12px 16px 16px; }

/* Horizontal article list */
.article-list-item {
  display: flex; flex-direction: row; align-items: flex-start;
  gap: 16px; padding: 12px; background: #FFFFFF;
  border: 1px solid #F3F4F6; border-radius: 16px;
  text-decoration: none; color: inherit; transition: box-shadow .2s;
}
.article-list-item:hover { box-shadow: 0 4px 16px rgba(0,0,0,.07); }
.article-list-thumb { width: 131px; height: 101px; object-fit: cover; border-radius: 12px; background: #F3F4F6; flex-shrink: 0; }
.article-list-thumb-placeholder { width: 131px; height: 101px; background: #F3F4F6; border-radius: 12px; flex-shrink: 0; }
.article-list-body { flex: 1; display: flex; flex-direction: column; justify-content: space-between; padding: 2px 0; }
.article-list-top { display: flex; flex-direction: column; gap: 6px; }
.article-list-meta { display: flex; align-items: center; gap: 8px; }
.article-list-title { font-weight: 900; font-size: 14px; color: var(--color-text); line-height: 20px; }
.article-list-excerpt { font-size: 11px; color: var(--color-text-light); line-height: 18px; }
.read-more { font-weight: 700; font-size: 11px; color: var(--color-primary); }

/* Ad block inline */
.ad-block-inline { background: #101828; border-radius: 16px; display: flex; flex-direction: row; align-items: center; min-height: 110px; overflow: hidden; position: relative; }
.ad-block-inline-label-area { background: var(--color-primary); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 20px; align-self: stretch; min-width: 200px; gap: 4px; }
.ad-block-inline-body { display: flex; align-items: center; justify-content: space-between; padding: 0 28px; flex: 1; gap: 20px; }
.ad-block-inline-text { display: flex; flex-direction: column; gap: 4px; }
.ad-block-inline-title { font-weight: 900; font-size: 18px; color: #FFFFFF; }
.ad-block-inline-desc { font-size: 14px; color: #99A1AF; line-height: 20px; }
.ad-block-inline-cta { padding: 12px 24px; background: var(--color-primary); border-radius: 16px; font-weight: 700; font-size: 14px; color: #FFFFFF; white-space: nowrap; flex-shrink: 0; transition: opacity .15s; }
.ad-block-inline-cta:hover { opacity: .85; }
.ad-block-inline-oglas { position: absolute; top: 8px; right: 8px; font-size: 9px; color: #4A5565; letter-spacing: .5px; text-transform: uppercase; }

/* Brand grid */
.brand-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.brand-card { display: flex; flex-direction: column; align-items: center; padding: 16px; gap: 8px; background: #FFFFFF; border: 1px solid #E5E7EB; border-radius: 16px; text-decoration: none; color: inherit; transition: box-shadow .15s; }
.brand-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.brand-avatar { width: 44px; height: 44px; background: #F3F4F6; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 12px; color: #6A7282; }
.brand-name { font-weight: 700; font-size: 10px; color: var(--color-primary); text-align: center; }

/* ── Category badge ── */
.cat-badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 8px; font-size: 10px; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; }
.cat-badge.novosti { background: rgba(106,20,44,.3); color: var(--color-primary); }
.cat-badge.trziste  { background: rgba(21,93,252,.3); color: #155DFC; }
.cat-badge.testovi  { background: rgba(0,153,102,.3); color: #009966; }
.cat-badge.lifestyle { background: rgba(96,81,83,.4); color: #605153; }
.cat-badge.default  { background: rgba(74,85,101,.2); color: #4A5565; }

.article-date { font-size: 10px; color: #99A1AF; font-weight: 500; }
.article-date-sm { font-size: 11px; color: #99A1AF; font-weight: 500; }

/* ── Sidebar widgets ── */
.widget { background: #FFFFFF; border: 1px solid #E5E7EB; border-radius: 16px; overflow: hidden; }
.widget-header { background: rgba(106,20,44,.08); padding: 14px 20px; font-weight: 500; font-size: 14px; letter-spacing: .5px; text-transform: uppercase; color: var(--color-primary); }
.widget-body { padding: 16px; }

.popular-item { display: flex; flex-direction: row; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid #F3F4F6; text-decoration: none; color: inherit; }
.popular-item:last-child { border-bottom: none; }
.popular-num { font-weight: 900; font-size: 30px; line-height: 30px; color: #E5E7EB; width: 24px; text-align: right; flex-shrink: 0; padding-top: 4px; }
.popular-num.first { color: #0A0A0A; }
.popular-content { flex: 1; position: relative; min-height: 84px; }
.popular-title { font-weight: 700; font-size: 12px; line-height: 18px; color: #0A0A0A; }
.popular-date { font-weight: 400; font-size: 10px; color: #99A1AF; margin-top: 4px; }

.widget-dark { border-radius: 16px; overflow: hidden; position: relative; }
.widget-dark-insurance { background: #101828; }
.widget-dark-loan { background: linear-gradient(180deg, #101828 0%, #1E2939 100%); }
.widget-dark-body { display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 32px 20px; gap: 0; min-height: 380px; }
.widget-ad-tag { font-size: 9px; font-weight: 600; letter-spacing: .9px; text-transform: uppercase; color: #6A7282; text-align: center; margin-bottom: 8px; }
.widget-icon-box { width: 56px; height: 56px; background: rgba(106,20,44,.1); border: 1px solid rgba(106,20,44,.3); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.widget-icon-box-sq { width: 64px; height: 64px; background: rgba(106,20,44,.3); border: 1px solid rgba(106,20,44,.3); border-radius: 16px; display: flex; align-items: center; justify-content: center; }
.widget-dark-title { font-weight: 900; font-size: 18px; color: #FFFFFF; text-align: center; margin-top: 12px; }
.widget-dark-sub { font-size: 11px; color: #99A1AF; text-align: center; line-height: 18px; margin-top: 4px; }
.widget-dark-price { font-weight: 900; font-size: 24px; color: #009966; text-align: center; margin-top: 4px; }
.widget-dark-price.blue { color: #155DFC; }
.widget-dark-desc { font-size: 11px; color: #6A7282; text-align: center; line-height: 18px; margin-top: 8px; }
.widget-dark-cta { width: 100%; padding: 12px 0; background: var(--color-primary); border-radius: 16px; font-weight: 700; font-size: 14px; color: #FFFFFF; text-align: center; display: block; margin-top: 16px; transition: opacity .15s; }
.widget-dark-cta:hover { opacity: .85; }
.widget-oglas { position: absolute; top: 8px; right: 8px; font-size: 9px; color: #4A5565; letter-spacing: .5px; text-transform: uppercase; }

/* Newsletter */
.widget-newsletter { background: var(--color-primary); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.widget-nl-title { font-weight: 900; font-size: 14px; color: #FFFFFF; }
.widget-nl-sub { font-size: 12px; color: rgba(255,255,255,.7); line-height: 20px; }
.widget-nl-input { width: 100%; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 12px; padding: 9.5px 12px; color: rgba(255,255,255,.8); font-size: 14px; font-family: inherit; outline: none; }
.widget-nl-input::placeholder { color: rgba(255,255,255,.4); }
.widget-nl-btn { width: 100%; padding: 8px 0; background: #FFFFFF; border-radius: 12px; font-weight: 700; font-size: 14px; color: var(--color-primary); border: none; cursor: pointer; font-family: inherit; transition: opacity .15s; }
.widget-nl-btn:hover { opacity: .9; }

/* ── Footer ── */
.site-footer { background: var(--color-footer-bg); padding: 0 80px; }
.footer-inner { max-width: 1280px; padding: 48px 24px 24px; margin: 0 auto; display: flex; flex-direction: column; gap: 40px; }
.footer-cols { display: flex; flex-direction: row; gap: 40px; justify-content: center; }
.footer-col { display: flex; flex-direction: column; gap: 12px; flex: 1; }
.footer-logo-row { display: flex; align-items: center; gap: 10px; }
.footer-logo-badge { width: 36px; height: 36px; background: var(--color-primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; color: #FAFAFA; flex-shrink: 0; }
.footer-logo-name { font-weight: 700; font-size: 18px; color: #FBF9FA; }
.footer-desc { font-size: 14px; color: rgba(251,249,250,.6); line-height: 22px; }
.footer-col-title { font-weight: 600; font-size: 14px; letter-spacing: .5px; text-transform: uppercase; color: #FBF9FA; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-link { font-size: 14px; color: rgba(251,249,250,.6); transition: color .15s; }
.footer-link:hover { color: #FBF9FA; }
.footer-bottom { border-top: 1px solid rgba(251,249,250,.1); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; }
.footer-copy { font-size: 12px; color: rgba(251,249,250,.4); }

/* ── Search overlay ── */
.bu-search-overlay {
  display: none; position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,.55); backdrop-filter: blur(4px);
  align-items: flex-start; justify-content: center; padding-top: 80px;
}
.bu-search-overlay.open { display: flex; }
.bu-search-box {
  background: #fff; border-radius: 16px; padding: 20px;
  width: 100%; max-width: 600px; box-shadow: 0 16px 48px rgba(0,0,0,.18);
}
.bu-search-form { display: flex; gap: 8px; }
.bu-search-input {
  flex: 1; border: 1.5px solid #E5E7EB; border-radius: 10px;
  padding: 10px 16px; font-size: 15px; font-family: inherit;
  outline: none; transition: border-color .15s;
}
.bu-search-input:focus { border-color: var(--color-primary); }
.bu-search-btn {
  padding: 10px 20px; background: var(--color-primary); color: #fff;
  border: none; border-radius: 10px; font-weight: 700; font-size: 14px;
  cursor: pointer; font-family: inherit; transition: opacity .15s;
}
.bu-search-btn:hover { opacity: .85; }
.bu-search-close {
  display: block; margin-top: 12px; text-align: center;
  font-size: 13px; color: #6A7282; cursor: pointer;
}
.bu-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
  color: var(--color-primary);
  margin-left: auto;
}
.bu-mobile-nav {
  display: none;
  flex-direction: column;
  gap: .25rem;
  padding: 1rem 1.5rem;
  background: var(--color-header-bg);
  border-bottom: 1px solid var(--color-border);
}
.bu-mobile-nav.open {
  display: flex;
}
.bu-mobile-nav a {
  padding: .65rem .85rem;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--color-text-light);
  text-decoration: none;
}
.bu-mobile-nav a:hover {
  background: rgba(0,0,0,0.04);
  color: var(--color-primary);
}

@media (max-width: 1100px) {
  .page-main { padding: 24px 24px; }
  .ad-banner { padding: 12px 24px; }
  .site-footer { padding: 0 24px; }
  .site-header { padding: 0 24px; }
}
@media (max-width: 900px) {
  .site-nav { display: none !important; }
  .bu-hamburger { display: flex; align-items: center; }
  .content-grid { flex-direction: column; }
  .sidebar { width: 100%; }
  .featured-section { flex-direction: column; }
  .article-featured { width: 100%; }
  .articles-side-stack { flex-direction: row; }
  .brand-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-cols { flex-wrap: wrap; }
}
@media (max-width: 600px) {
  .header-inner { gap: 8px; padding: 0 16px; }
  .articles-side-stack { flex-direction: column; }
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-cols { flex-direction: column; }
}
