/* =========================
   Variables (theme)
========================= */
:root {
  --ec-bg: #f3f0ec;
  --ec-white: #fff;
  --ec-text: #3c3c3c;
  --ec-muted: #6a6a6a;

  --ec-gold: #b67a3c;
  --ec-mutedBtn: #6b6b6b;

  --ec-bdr: 1px solid rgba(0, 0, 0, .06);

  --ec-r10: 10px;
  --ec-r12: 12px;
  --ec-r14: 14px;
  --ec-r16: 16px;

  --ec-shadow-md: 0 10px 22px rgba(0, 0, 0, .10);
  --ec-shadow-lg: 0 12px 28px rgba(0, 0, 0, .10);
  --ec-shadow-hover: 0 18px 40px rgba(0, 0, 0, .14);

  --ec-gold-border: rgba(182, 122, 60, .35);
  --ec-gold-ring: rgba(182, 122, 60, .12);
  --ec-gold-ring-h: rgba(182, 122, 60, .16);

  --ec-header-fade-h: 110px;
  --ec-hero-h: 220px;
  --ec-hero-pad: 84px;
}

/* =========================
   Headings (global)
========================= */

h1,
h2,
h3,
h4 {
  font-family: inherit;
  /* ili stavi svoj font ako koristiš varijablu */
  color: rgba(0, 0, 0, .78);
  letter-spacing: .2px;
  font-weight: 900;
  line-height: 1.18;
  margin: 0 0 12px;
}

/* H1 – glavni naslov stranice */
h1 {
  font-size: 34px;
}

/* H2 – sekcije */
h2 {
  font-size: 24px;
  margin-top: 18px;
}

/* H3 – podsekcije */
h3 {
  font-size: 20px;
  margin-top: 16px;
  font-weight: 800;
}

/* H4 – manji podnaslovi */
h4 {
  font-size: 16px;
  margin-top: 14px;
  font-weight: 800;
  color: rgba(0, 0, 0, .72);
}

/* Razmak kada naslov ide posle teksta */
p+h2,
p+h3,
p+h4 {
  margin-top: 18px;
}

/* Mobile */
@media (max-width: 768px) {
  h1 {
    font-size: 24px;
  }

  h2 {
    font-size: 20px;
  }

  h3 {
    font-size: 18px;
  }

  h4 {
    font-size: 16px;
  }
}

/* =========================
   Base
========================= */
.ec-body {
  background: var(--ec-bg);
  font-size: 17px;
  color: #1a1a1a;
}

.ec-brand,
.ec-lang,
.ec-lang-btn,
.ec-nav a {
  color: var(--ec-white);
}

.ec-brand {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.ec-brand-title {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: .3px;
}

.ec-brand-sub {
  font-size: 13px;
  opacity: .9;
  margin-top: 2px;
}

.ec-nav a {
  text-decoration: none;
  margin: 0 12px;
  opacity: .92;
}

.ec-nav a:hover {
  opacity: 1;
  text-decoration: underline;
}

.ec-lang {
  font-size: 13px;
  white-space: nowrap;
}

.ec-lang-btn {
  text-decoration: none;
  opacity: .75;
}

.ec-lang-btn.active {
  opacity: 1;
  font-weight: 600;
}

.ec-lang-sep {
  opacity: .6;
}

/* =========================
   Header over hero
========================= */
.ec-header {
  position: relative;
  left: 0;
  right: 0;
  top: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 0;
}

.ec-header::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: var(--ec-header-fade-h);
  background: linear-gradient(to bottom, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0));
  z-index: 4;
  pointer-events: none;
}

.ec-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;

  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 5;

  padding: 18px 0;
}

/* =========================
   Logo (responsive)
========================= */
.ec-logo {
  display: block;
  height: 112px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.ec-logo-wrap {
  display: inline-flex;
  align-items: center;
  padding: 7px;
  border-radius: 18px;
  background: rgba(0, 0, 0, .13);
  border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .22);
}

@media (max-width: 992px) {
  .ec-logo {
    height: 85px;
  }
}

@media (max-width: 768px) {
  .ec-logo {
    height: 52px;
  }
}

/* =========================
   Hero / Main
========================= */
.ec-hero {
  height: var(--ec-hero-h);
  position: relative;
  padding-top: var(--ec-hero-pad);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, .25)),
    url("/img/hero.webp") center/cover no-repeat;
}

.ec-main {
  margin-top: 0px;
  padding-bottom: 40px;
}

/* =========================
   Searchbar (Bootstrap overrides)
========================= */
.ec-searchbar {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  position: relative;
  z-index: 5;
  margin-top: 60px;
}

/* donja “linija/senka” ispod cele trake */
.ec-searchbar::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 14px;
  background: rgba(0, 0, 0, .12);
  opacity: .35;
}

/* razmak između polja (Bootstrap g-2 već postoji, ali nek bude konzistentno) */
.ec-searchbar .row {
  row-gap: 12px;
}

/* polja */
.ec-searchbar .form-control,
.ec-searchbar .form-select {
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(0, 0, 0, .08);
  box-shadow:
    0 10px 22px rgba(0, 0, 0, .10),
    0 1px 0 rgba(255, 255, 255, .60) inset;
  padding: 0 14px;
  font-size: 15px;
  outline: none;
}

/* focus */
.ec-searchbar .form-control:focus,
.ec-searchbar .form-select:focus {
  border-color: rgba(182, 122, 60, .45);
  box-shadow:
    0 12px 26px rgba(0, 0, 0, .12),
    0 0 0 3px rgba(182, 122, 60, .14);
}

/* da select strelica ne “udara” u tekst */
.ec-searchbar .form-select {
  padding-right: 40px;
}

/* dugme (kada koristi .btn.ec-btn-gold) */
.ec-searchbar .btn.ec-btn-gold {
  height: 44px;
  border-radius: 10px;
  font-weight: 800;
  box-shadow: 0 12px 26px rgba(0, 0, 0, .16);
}

@media (max-width: 768px) {
  .ec-searchbar::after {
    margin-top: 12px;
  }
}

/* =========================
   Marquee
========================= */
.ec-marquee {
  position: relative;
  overflow: hidden;
  padding: 10px 0 6px;
}

.ec-marquee-track {
  display: flex;
  gap: 14px;
  width: max-content;
  will-change: transform;
  animation: none;
}

.ec-marquee.ec-marquee--loop .ec-marquee-track {
  animation: ec-marquee-left 70s linear infinite;
  justify-content: flex-start;
  width: max-content;
}

.ec-marquee:hover .ec-marquee-track {
  animation-play-state: paused;
}

@keyframes ec-marquee-left {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.ec-marquee:not(.ec-marquee--loop) .ec-marquee-track {
  justify-content: center;
  width: 100%;
}

/* =========================
   Cards
========================= */
.ec-card {
  background: var(--ec-white);
  border-radius: var(--ec-r16);
  overflow: hidden;

  /* statičan izgled (uvek) */
  border: 1px solid rgba(182, 122, 60, .18);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .10);

  transition: none;
}

.ec-card:hover {
  transform: none;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .15);
  border-color: rgba(182, 122, 60, .18);
}

/* =========================
   Masonry layout (objave bez slika)
========================= */
.ec-masonry {
  position: relative;
  width: 100%;
}

.ec-masonry-item {
  transition: left 0.25s ease, top 0.25s ease;
  margin-bottom: 16px;
}

.ec-card-media {
  position: relative;
  padding-top: 14px;
}

.ec-card-img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  display: block;
  margin: 12px auto 0;
  border-radius: 18px;
  background: #eee;

  border: 3px solid rgba(182, 122, 60, .65);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .18), 0 0 0 6px var(--ec-gold-ring);

  outline: 2px solid rgba(255, 255, 255, .70);
  outline-offset: 3px;
}

.ec-card:hover .ec-card-img {
  box-shadow: 0 14px 30px rgba(0, 0, 0, .22), 0 0 0 6px var(--ec-gold-ring-h);
}

.ec-card-body {
  padding: 12px 16px 16px;
}

.ec-card-name {
  font-weight: 800;
  color: var(--ec-text);
  letter-spacing: .2px;
  line-height: 1.2;
  margin: 10px 0 6px;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ec-card-desc {
  font-size: 15px;
  color: var(--ec-muted);
  line-height: 1.45;
  margin-bottom: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ec-card-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 12px;
  background: rgba(245, 240, 236, .55);
  border-bottom: 1px solid rgba(0, 0, 0, .05);
  min-height: 30px;
}

.ec-card-topbar-badge {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #fff;
  background: var(--ec-gold);
  padding: 2px 8px;
  border-radius: 6px;
  line-height: 1.4;
}

.ec-card-topbar-date {
  font-size: 11px;
  font-weight: 700;
  color: rgba(0, 0, 0, .65);
  letter-spacing: .2px;
}

/* equal height */
.ec-card--equal {
  display: flex;
  flex-direction: column;
}

.ec-card--equal .ec-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* dugmad u kartici uvek na dnu (Bootstrap .d-grid.mt-2 wrapper) */
.ec-card.ec-card--equal .ec-card-body .d-grid.mt-2 {
  margin-top: auto !important;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, .06);
}

/* =========================
   Badge
========================= */
.ec-badge {
  position: absolute;
  top: 10px;
  left: 12px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .2px;
  color: #3b2a14;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(182, 122, 60, .35);
  box-shadow: 0 8px 16px rgba(0, 0, 0, .12);
  backdrop-filter: blur(6px);
}

/* =========================
   Buttons / Actions
========================= */
.ec-btn-gold,
.ec-btn-muted,
.ec-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.ec-btn-gold,
.ec-btn-muted {
  border: 0;
  font-weight: 800;
}

.ec-btn-gold {
  background: linear-gradient(135deg, #c9a84c 0%, #b67a3c 100%);
  color: var(--ec-white) !important;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 10px;
  border: none;
  box-shadow: 0 8px 20px rgba(182, 122, 60, 0.22);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.ec-btn-gold:hover {
  background: linear-gradient(135deg, #d4b459 0%, #c9a84c 100%);
  color: var(--ec-white) !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(182, 122, 60, 0.38);
  filter: none;
}

.ec-btn-gold:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(182, 122, 60, 0.2);
}

.ec-btn-muted {
  background: var(--ec-mutedBtn);
  color: var(--ec-white);
  padding: 11px 14px;
  border-radius: var(--ec-r14);
  box-shadow: 0 10px 18px rgba(0, 0, 0, .14);
}

.ec-btn-muted:hover {
  filter: brightness(1.03);
  color: var(--ec-white);
}

/* action buttons inside cards */
.ec-card-actions {
  margin-top: auto;
  display: flex;
  gap: 10px;
  align-items: center;
}

.ec-card-actions .ec-action {
  flex: 1;
}

/* FINAL look (kept from last overrides) */
.ec-action {
  height: 34px;
  padding: 0 12px;
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .1px;

  box-shadow: none;
  border: 1px solid rgba(0, 0, 0, .10);
  background: rgba(255, 255, 255, .75);
  color: #4b4b4b;

  white-space: nowrap;
}

.ec-action--gold {
  background: rgba(182, 122, 60, .10);
  border-color: rgba(182, 122, 60, .28);
  color: #7a4d23;
}

.ec-action--muted {
  background: rgba(0, 0, 0, .04);
  border-color: rgba(0, 0, 0, .12);
  color: #4b4b4b;
}

.ec-action--gold:hover,
.ec-action--muted:hover {
  filter: none;
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, .08);
  color: inherit;
}

/* pill */
.ec-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  min-width: 22px;
  height: 22px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 900;
}

.ec-action .ec-pill {
  min-width: 20px;
  height: 20px;
  padding: 0 7px;
  font-size: 11px;
  background: rgba(0, 0, 0, .08);
  color: #444;
}

/* =========================
   Featured
========================= */
.ec-featured-card {
  width: 280px;
  min-width: 280px;
  background: var(--ec-white);
  border-radius: var(--ec-r14);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--ec-shadow-md);
  display: flex;
  flex-direction: column;
  transition: transform .16s ease, box-shadow .16s ease;
}

.ec-featured-top {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  padding: 12px;
  align-items: center;
}

.ec-featured-card img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 16px;
  border: 2px solid rgba(182, 122, 60, .55);
  box-shadow: 0 10px 18px rgba(0, 0, 0, .16), 0 0 0 5px rgba(182, 122, 60, .10);
  background: #eee;
}

.ec-featured-body {
  min-width: 0;
}

.ec-featured-desc {
  font-size: 13px;
  color: var(--ec-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ec-featured-date {
  font-size: 11px;
  font-weight: 700;
  color: var(--ec-gold);
  margin-bottom: 4px;
  letter-spacing: .3px;
  opacity: .85;
}

.ec-featured-link {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ec-gold);
}

.ec-featured-bottom {
  padding: 10px 12px 12px;
  border-top: var(--ec-bdr);
  text-align: center;
}

.ec-featured-name {
  font-weight: 800;
  color: var(--ec-text);
  line-height: 1.15;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ec-featured-years {
  margin-top: 4px;
  font-size: 13px;
  color: #777;
}

.ec-featured-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, .14);
}

/* =========================
   CTA / Footer
========================= */
.ec-cta {
  margin-top: 30px;
  background: #f7f4f0;
  border-radius: 12px;
  padding: 26px 18px;
  text-align: center;
  border: var(--ec-bdr);
}

.ec-footer {
  background: #1a1a1a;
  padding: 40px 0 0;
  border-top: 3px solid var(--ec-gold);
}

.ec-footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ec-footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding-bottom: 30px;
}

.ec-footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ec-footer-heading {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--ec-gold);
  margin-bottom: 6px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.ec-footer-col a {
  text-decoration: none;
  color: rgba(255, 255, 255, .85);
  font-size: 13.5px;
  font-weight: 500;
  padding: 3px 0;
  transition: color .2s ease, padding-left .2s ease;
}

.ec-footer-col a:hover {
  color: #fff;
  padding-left: 4px;
}

.ec-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 18px 0;
  text-align: center;
}

.ec-footer-copy {
  color: rgba(255, 255, 255, .75);
  font-size: 13px;
}

/* Footer tablet */
@media (max-width: 768px) {
  .ec-footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
}

/* Footer mobile */
@media (max-width: 480px) {
  .ec-footer {
    padding: 30px 0 0;
  }
  .ec-footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* =========================
   Layout tweaks (Bootstrap)
========================= */
.row.g-3 {
  --bs-gutter-x: 18px;
  --bs-gutter-y: 18px;
}

/* =========================
   Pagination
========================= */
.ec-pagination {
  margin-top: 24px;
  gap: 8px;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
}

.ec-pagination .page-link,
.ec-pagination span.page-link {
  border-radius: 12px;
  padding: 8px 14px;
  min-width: 42px;
  height: 42px;
  text-align: center;
  font-weight: 800;
  font-size: 15px;
  color: #444;
  background: var(--ec-white);
  border: 1px solid rgba(0, 0, 0, .08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .04);
  transition: all .2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  line-height: 1;
}

.ec-pagination a.page-link:hover {
  background: #fff;
  color: var(--ec-gold);
  border-color: rgba(182, 122, 60, .3);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .08);
}

.ec-pagination .active .page-link {
  background: linear-gradient(135deg, #c68a4c 0%, #b67a3c 100%);
  color: #fff !important;
  border-color: transparent;
  pointer-events: none;
  cursor: default;
  box-shadow: 0 6px 16px rgba(182, 122, 60, .35);
  transform: translateY(-1px);
}

.ec-pagination .disabled .page-link {
  opacity: .5;
  pointer-events: none;
  background: #f8f8f8;
  color: #999;
  box-shadow: none;
  border-color: rgba(0, 0, 0, .05);
}

/* optional pager */
.ec-pager {
  margin-top: 18px;
}

.ec-pager .page-link {
  border-radius: 10px;
  padding: 6px 12px;
  color: #4b4b4b;
}

.ec-pager .page-item.active .page-link {
  background: var(--ec-gold);
  border-color: var(--ec-gold);
  color: var(--ec-white);
}

@media (max-width:480px) {
  .ec-pagination {
    justify-content: center;
    gap: 6px;
    margin-top: 18px;
  }

  .ec-pagination .page-link,
  .ec-pagination span.page-link {
    padding: 6px 8px;
    min-width: 36px;
    height: 36px;
    font-size: 14px;
  }
}

/* =========================
   Burger nav (no JS)
========================= */
.ec-burger {
  display: none;
  width: 44px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(0, 0, 0, .18);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.ec-burger span {
  width: 18px;
  height: 2px;
  background: rgba(255, 255, 255, .92);
  border-radius: 999px;
  display: block;
}

/* checkbox: sakrij input (da se ne vidi kvadratić) */
.ec-nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* =========================
   Language chips (mobile menu)
========================= */
.ec-nav-lang {
  display: none;
}

.ec-lang-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(0, 0, 0, .18);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
}

.ec-lang-chip.active {
  border-color: rgba(182, 122, 60, .55);
  background: rgba(182, 122, 60, .22);
}

/* =========================
   Responsive nav rules
========================= */

/* Desktop (>=769px) */
@media (min-width: 769px) {
  .ec-burger {
    display: none !important;
  }

  .ec-nav {
    display: flex !important;
    align-items: center;
    gap: 18px;
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  /* jezik: desktop u headeru */
  .ec-lang {
    display: flex !important;
    align-items: center;
    gap: 8px;
  }

  .ec-nav-lang {
    display: none !important;
  }
}

/* Mobile (<=768px) */
@media (max-width: 768px) {
  .ec-header-inner {
    padding: 12px 0;
    gap: 10px;
  }

  .ec-brand-title {
    font-size: 22px;
  }

  .ec-brand-sub {
    font-size: 12px;
  }

  .ec-burger {
    display: flex !important;
  }

  .ec-nav {
    display: none;
    position: absolute;
    left: 12px;
    right: 12px;
    top: calc(100% + 10px);
    background: rgba(245, 242, 238, .98);
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .18);
    padding: 10px;
    z-index: 50;
  }

  .ec-nav a {
    display: block;
    margin: 0;
    padding: 2px 6px;
    border-radius: 12px;
    color: #2e2e2e;
    opacity: 1;
    font-weight: 800;
    text-decoration: none;
  }

  .ec-nav a:hover {
    background: rgba(182, 122, 60, .12);
    text-decoration: none;
  }

  /* otvaranje menija */
  .ec-nav-toggle:checked~.ec-nav {
    display: block;
  }

  /* jezik: mobile u meniju */
  .ec-lang {
    display: none !important;
  }

  .ec-nav-lang {
    display: flex !important;
    gap: 10px;
    padding: 12px 10px 6px;
    margin-top: 10px;
    border-top: 1px solid rgba(0, 0, 0, .08);
  }

  /* chips u meniju na svetloj pozadini */
  .ec-lang-chip {
    border: 1px solid rgba(0, 0, 0, .12);
    background: rgba(182, 122, 60, .10);
    color: #2e2e2e;
  }

  .ec-lang-chip.active {
    background: rgba(182, 122, 60, .20);
    border-color: rgba(182, 122, 60, .35);
    color: #2e2e2e;
  }
}

.ec-section-title {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0 14px;

  /* da ne ode desno */
  justify-content: flex-start;
  text-align: left;
}

.ec-section-title {
  flex: 0 0 auto;
  /* tekst ne sme da se rasteže */
  font-size: 20px;
  font-weight: 900;
  letter-spacing: .2px;
  color: rgba(0, 0, 0, .72);
  order: 1;
}

/* linija */
.ec-section-title::before {
  content: "";
  flex: 1 1 auto;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(0, 0, 0, .16), rgba(0, 0, 0, .05));
  opacity: .70;
  transform: translateY(2px);
  order: 2;
}

/* tri tačke */
.ec-section-title::after {
  content: "";
  order: 3;
  width: 6px;
  height: 6px;
  margin-right: 24px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .28);
  box-shadow:
    12px 0 0 rgba(0, 0, 0, .18),
    24px 0 0 rgba(0, 0, 0, .10);
}

/* mobile */
@media (max-width: 768px) {
  .ec-section-title {
    font-size: 18px;
  }
}

/* =========================
   Featured cards (Izdvojene objave) – ulepsan okvir
========================= */

.ec-featured-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: 18px;

  box-shadow: 0 10px 26px rgba(0, 0, 0, .08);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

/* hover: lagano podizanje */
.ec-featured-card:hover {
  transform: translateY(-3px);
  border-color: rgba(213, 84, 55, .20);
  /* diskretna zlatno-crvena nijansa */
  box-shadow: 0 18px 40px rgba(0, 0, 0, .12);
}

/* gornji deo (slika + opis) lepši padding */
.ec-featured-top {
  padding: 14px 14px 10px;
  gap: 12px;
}

/* separator linija iznad imena */
.ec-featured-bottom {
  border-top: 1px solid rgba(0, 0, 0, .06);
  padding: 10px 14px 12px;
}

/* naslov/ime malo jače */
.ec-featured-name {
  font-weight: 800;
  color: rgba(0, 0, 0, .78);
}

/* godine svetlije */
.ec-featured-years {
  color: rgba(0, 0, 0, .45);
  font-weight: 600;
}

/* okvir oko slike – moderniji “ring” */
.ec-featured-top img {
  width: 74px;
  height: 74px;
  object-fit: cover;

  border-radius: 16px;
  border: 1px solid rgba(213, 84, 55, .28);

  /* dvostruki ring efekat (unutrašnji i spoljašnji) */
  box-shadow:
    0 0 0 3px rgba(213, 84, 55, .10),
    0 10px 18px rgba(0, 0, 0, .12);
}

/* opis mekši */
.ec-featured-desc {
  color: rgba(0, 0, 0, .55);
  line-height: 1.25;
}

/* link “Pogledajte” malo elegantniji */
.ec-featured-link {
  color: #c47a36;
  font-weight: 800;
}

/* mobile: malo manja senka i radius */
@media (max-width:768px) {
  .ec-featured-card {
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
  }
}

.ec-featured-card {
  backdrop-filter: blur(6px);
}

/* =========================
   Featured marquee container (boks u kome se kreću objave)
========================= */

#ecFeaturedMarquee {
  position: relative;

  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: 22px;

  padding: 12px 10px;
  margin: 10px 0 24px;

  box-shadow: 0 14px 34px rgba(0, 0, 0, .08);
  overflow: hidden;
  /* bitno da kartice ne izlaze van boksa */
}

/* malo “fade” na ivicama (lepši ulaz/izlaz kartica) */
#ecFeaturedMarquee::before,
#ecFeaturedMarquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 44px;
  z-index: 3;
  pointer-events: none;
}

/* levo zatamnjenje */
#ecFeaturedMarquee::before {
  left: 0;
  background: linear-gradient(90deg,
      rgba(245, 240, 236, 1),
      rgba(245, 240, 236, 0));
}

/* desno zatamnjenje */
#ecFeaturedMarquee::after {
  right: 0;
  background: linear-gradient(270deg,
      rgba(245, 240, 236, 1),
      rgba(245, 240, 236, 0));
}

/* track neka ima malo unutrašnjeg razmaka */
#ecFeaturedMarquee .ec-marquee-track {
  padding: 6px 10px;
}

/* kartice nek imaju dobar razmak dok klize */
#ecFeaturedMarquee .ec-featured-card {
  margin: 0 10px;
}

/* Featured CTA "Pogledajte" – kao mali link dole desno */
.ec-featured-body {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.ec-featured-link {
  margin-top: auto;
  /* gura na dno */
  align-self: flex-end;
  /* ili flex-end ako želiš desno */
  display: inline-flex;
  align-items: center;
  gap: 6px;

  font-size: 13px;
  font-weight: 800;
  color: #c47a36;
  text-decoration: none;
  opacity: .95;
}

/* mala strelica */
.ec-featured-link::after {
  content: "→";
  font-weight: 900;
  transform: translateY(-1px);
  opacity: .9;
}

/* hover diskretno */
.ec-featured-card:hover .ec-featured-link {
  text-decoration: underline;
}

/* Featured bottom bar: ime/levo + CTA/desno */
.ec-featured-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  padding: 10px 14px 12px;
  border-top: 1px solid rgba(0, 0, 0, .06);
}

/* ime i godine ostaju u centru, ali da mogu da se lome lepo */
.ec-featured-name {
  font-weight: 800;
  color: rgba(0, 0, 0, .78);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 55%;
}

.ec-featured-years {
  color: rgba(0, 0, 0, .45);
  font-weight: 600;
  white-space: nowrap;
}

/* CTA desno, diskretno, premium */
.ec-featured-cta {
  margin-left: auto;
  /* gura desno */
  display: inline-flex;
  align-items: center;
  gap: 6px;

  font-size: 13px;
  font-weight: 900;
  color: #c47a36;
  opacity: .95;
}

/* strelica */
.ec-featured-cta::after {
  content: "→";
  font-weight: 900;
  transform: translateY(-1px);
  opacity: .9;
}

/* hover efekat kad je kartica hover */
.ec-featured-card:hover .ec-featured-cta {
  text-decoration: underline;
}

/* =========================
   Featured: slika levo, ime+godine desno, opis+cta dole
========================= */

/* top: slika + head */
.ec-featured-top {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
  padding: 14px 14px 10px;
  align-items: center;
}

/* slika */
.ec-featured-top img {
  width: 74px;
  height: 74px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(213, 84, 55, .28);
  box-shadow: 0 0 0 3px rgba(213, 84, 55, .10), 0 10px 18px rgba(0, 0, 0, .12);
}

/* desno: ime + godine */
.ec-featured-head {
  min-width: 0;
}

.ec-featured-head .ec-featured-name {
  font-weight: 900;
  color: rgba(0, 0, 0, .78);
  line-height: 1.15;

  /* WRAP umesto clamp/ellipsis */
  display: block !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  -webkit-line-clamp: unset !important;
}

/* godine ispod, diskretno */
.ec-featured-head .ec-featured-years {
  margin-top: 4px;
  font-size: 12.5px;
  font-weight: 700;
  color: rgba(0, 0, 0, .45);
}

/* bottom: opis + CTA (tu gde su ranije bile godine/ime) */
.ec-featured-bottom {
  border-top: 1px solid rgba(0, 0, 0, .06);
  padding: 10px 14px 12px;
  text-align: left;
}

.ec-featured-bottom .ec-featured-desc {
  font-size: 13px;
  color: rgba(0, 0, 0, .55);
  line-height: 1.25;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.ec-featured-bottom .ec-featured-link {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;

  font-size: 13px;
  font-weight: 900;
  color: #c47a36;
  opacity: .95;
}

.ec-featured-bottom .ec-featured-link::after {
  content: "→";
  font-weight: 900;
  transform: translateY(-1px);
  opacity: .9;
}

/* Featured bottom: opis levo, "Pogledajte" desno */
.ec-featured-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;

  border-top: 1px solid rgba(0, 0, 0, .06);
  padding: 10px 14px 12px;
}

/* opis levo - uzima širinu i skraćuje se */
.ec-featured-bottom .ec-featured-desc {
  flex: 1 1 auto;
  min-width: 0;

  font-size: 13px;
  color: rgba(0, 0, 0, .55);
  line-height: 1.25;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

/* CTA desno */
.ec-featured-bottom .ec-featured-link {
  flex: 0 0 auto;
  white-space: nowrap;

  display: inline-flex;
  align-items: center;
  gap: 6px;

  font-size: 13px;
  font-weight: 900;
  color: #c47a36;
  opacity: .95;
}

/* strelica */
.ec-featured-bottom .ec-featured-link::after {
  content: "→";
  font-weight: 900;
  transform: translateY(-1px);
  opacity: .9;
}

/* na hover */
.ec-featured-card:hover .ec-featured-link {
  text-decoration: underline;
}

/* =========================
   View page (announce detail)
========================= */

.ec-view-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin: 10px 0 12px;
}

.ec-page-title {
  margin: 0;
  font-size: 34px;
  line-height: 1.2;
  font-weight: 800;
  color: #1a1a1a;
  letter-spacing: -0.5px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.05);
}

.ec-view-card {
  overflow: hidden;
  /* da media lepo “seče” */
}

/* Slika gore kao “hero u kartici” */
.ec-view-media {
  padding: 18px 16px 6px;
  display: flex;
  justify-content: center;
}

.ec-view-img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 18px;
  background: #eee;

  border: 3px solid rgba(182, 122, 60, .55);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .14), 0 0 0 6px rgba(182, 122, 60, .12);
  outline: 2px solid rgba(255, 255, 255, .70);
  outline-offset: 3px;
}

.ec-view-body {
  padding: 12px 16px 18px;
}

.ec-view-content {
  color: rgba(0, 0, 0, .68);
  line-height: 1.65;
  font-size: 16px;
}

/* Ujednači tipografiju HTML-a koji dolazi iz baze */
.ec-view-content p {
  margin: 0 0 10px;
}

.ec-view-content h2,
.ec-view-content h3 {
  margin: 18px 0 10px;
  font-weight: 900;
  color: rgba(0, 0, 0, .78);
}

/* Prazan sadržaj */
.ec-view-empty {
  padding: 8px 0;
  color: rgba(0, 0, 0, .55);
  font-weight: 700;
}

/* View header (ime + godine + badge) */
.ec-view-header {
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.ec-view-name {
  font-size: 24px;
  font-weight: 900;
  color: rgba(0, 0, 0, .82);
  letter-spacing: .2px;
  line-height: 1.2;
}

.ec-view-years {
  font-size: 16px;
  font-weight: 700;
  color: rgba(0, 0, 0, .42);
  margin-left: 6px;
}

.ec-view-badge {
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
  padding: 6px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .2px;
  color: #3b2a14;
  background: rgba(182, 122, 60, .10);
  border: 1px solid var(--ec-gold-border);
}

.ec-view-subtitle {
  margin-top: 10px;
  font-size: 17px;
  font-weight: 700;
  color: rgba(0, 0, 0, .60);
  font-style: italic;
}

/* Signer bar */
.ec-view-signer {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(0, 0, 0, .06);
  font-size: 15px; /* Povećano malo radi bolje čitljivosti sa italic-om */
  color: rgba(0, 0, 0, .75); /* Malo tamnije da se bold bolje vidi */
  font-weight: 700;
  font-style: italic;
  text-align: right;
}

.ec-view-signer-label {
  font-weight: 800;
  color: rgba(0, 0, 0, .45);
  margin-right: 6px;
}

@media (max-width: 768px) {
  .ec-page-title {
    font-size: 22px;
  }

  .ec-view-topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .ec-view-name {
    font-size: 20px;
  }

  .ec-view-years {
    font-size: 14px;
  }

  .ec-view-subtitle {
    font-size: 15px;
  }
}

/* =========================
   Static Page (PageController view)
========================= */

.ec-page-card {
  overflow: hidden;
}

.ec-page-head {
  padding: 16px 16px 10px;
  border-bottom: 1px solid rgba(0, 0, 0, .06);
  background: rgba(255, 255, 255, .55);
}

.ec-page-title {
  margin: 0;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 900;
  color: rgba(0, 0, 0, .78);
  letter-spacing: .2px;
}

.ec-page-body {
  padding: 14px 16px 18px;
}

.ec-page-content {
  color: rgba(0, 0, 0, .68);
  font-size: 16px;
  line-height: 1.7;
}

.ec-page-content p {
  margin: 0 0 12px;
}

.ec-page-content ul,
.ec-page-content ol {
  margin: 0 0 12px 18px;
}

.ec-page-content h2,
.ec-page-content h3 {
  margin: 18px 0 10px;
  font-weight: 900;
  color: rgba(0, 0, 0, .78);
}

.ec-page-content a {
  color: #c47a36;
  font-weight: 800;
  text-decoration: none;
}

.ec-page-content a:hover {
  text-decoration: underline;
}

.ec-page-empty {
  padding: 6px 0;
  color: rgba(0, 0, 0, .55);
  font-weight: 700;
}

@media (max-width:768px) {
  .ec-page-title {
    font-size: 22px;
  }
}

.ec-page-media {
  padding: 14px 16px 0;
}

.ec-page-img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, .08);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .12);
}

/* Section title (NASLOV ----------- ···) */
.ec-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ec-section-title-text {
  font-weight: 900;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: rgba(0, 0, 0, .72);
  white-space: nowrap;
}

/* =========================
   Person page (sve objave jedne osobe)
========================= */

/* Hero kartica */
.ec-person-hero {
  overflow: hidden;
}

.ec-person-hero-inner {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 24px;
}

.ec-person-hero-media {
  flex: 0 0 auto;
}

.ec-person-hero-img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 18px;
  background: #eee;
  border: 3px solid rgba(182, 122, 60, .55);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .14), 0 0 0 6px rgba(182, 122, 60, .12);
  outline: 2px solid rgba(255, 255, 255, .70);
  outline-offset: 3px;
}

.ec-person-hero-info {
  flex: 1 1 auto;
  min-width: 0;
}

.ec-person-hero-info .ec-view-name {
  font-size: 26px;
}

.ec-person-hero-info .ec-view-years {
  margin-top: 4px;
  margin-left: 0;
}

.ec-person-count {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
  color: #3b2a14;
  background: rgba(182, 122, 60, .10);
  border: 1px solid var(--ec-gold-border);
}

/* Lista objava */
.ec-person-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ec-person-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: var(--ec-white);
  border-radius: var(--ec-r16);
  border: 1px solid rgba(182, 122, 60, .18);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .06);
  text-decoration: none;
  color: inherit;
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}

.ec-person-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .10);
  border-color: rgba(182, 122, 60, .30);
  color: inherit;
}

/* Slika u listi (samo ako je drugačija od hero) */
.ec-person-item-media {
  flex: 0 0 auto;
}

.ec-person-item-img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 14px;
  border: 2px solid rgba(182, 122, 60, .40);
  box-shadow: 0 6px 14px rgba(0, 0, 0, .10);
  background: #eee;
}

/* Body */
.ec-person-item-body {
  flex: 1 1 auto;
  min-width: 0;
}

.ec-person-item-top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.ec-person-item-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .2px;
  color: #3b2a14;
  background: rgba(182, 122, 60, .10);
  border: 1px solid var(--ec-gold-border);
}

.ec-person-item-title {
  font-size: 16px;
  font-weight: 800;
  color: rgba(0, 0, 0, .75);
  line-height: 1.2;
}

.ec-person-item-desc {
  font-size: 14px;
  color: var(--ec-muted);
  line-height: 1.4;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ec-person-item-signer {
  margin-top: 6px;
  font-size: 12.5px;
  color: rgba(0, 0, 0, .40);
  font-weight: 700;
}

/* Strelica desno */
.ec-person-item-arrow {
  flex: 0 0 auto;
  font-size: 20px;
  font-weight: 900;
  color: var(--ec-gold);
  opacity: .6;
  transition: opacity .14s ease, transform .14s ease;
}

.ec-person-item:hover .ec-person-item-arrow {
  opacity: 1;
  transform: translateX(3px);
}

/* Mobile */
@media (max-width: 768px) {
  .ec-person-hero-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    padding: 20px 16px;
  }

  .ec-person-hero-info .ec-view-name {
    font-size: 22px;
  }

  .ec-person-item {
    padding: 14px;
    gap: 12px;
  }

  .ec-person-item-img {
    width: 56px;
    height: 56px;
  }

  .ec-person-item-title {
    font-size: 14px;
  }

  .ec-person-item-desc {
    font-size: 13px;
  }
}

/* =========================
   Media page (Mediji – accordion)
========================= */

.ec-media-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ec-media-item {
  background: var(--ec-white);
  border-radius: var(--ec-r16);
  border: 1px solid rgba(0, 0, 0, .06);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .05);
  overflow: hidden;
  transition: box-shadow .18s ease, border-color .18s ease;
}

.ec-media-item:hover {
  border-color: rgba(182, 122, 60, .22);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .08);
}

/* Toggle checkbox – skriveno */
.ec-media-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Header (klikabilni deo) */
.ec-media-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
  cursor: pointer;
  user-select: none;
  transition: background .14s ease;
}

.ec-media-header:hover {
  background: rgba(182, 122, 60, .04);
}

.ec-media-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1 1 auto;
}

/* Ikona (video / tekst) */
.ec-media-icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.ec-media-icon--video {
  background: rgba(220, 50, 50, .10);
  color: #c0392b;
  border: 1px solid rgba(220, 50, 50, .18);
}

.ec-media-icon--text {
  background: rgba(182, 122, 60, .10);
  color: #7a4d23;
  border: 1px solid var(--ec-gold-border);
}

/* Info */
.ec-media-header-info {
  min-width: 0;
  flex: 1 1 auto;
}

.ec-media-title {
  font-size: 15px;
  font-weight: 800;
  color: rgba(0, 0, 0, .78);
  line-height: 1.25;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ec-media-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  font-size: 12.5px;
  color: rgba(0, 0, 0, .42);
  font-weight: 700;
}

.ec-media-source {
  color: var(--ec-gold);
}

/* Chevron */
.ec-media-chevron {
  flex: 0 0 auto;
  font-size: 24px;
  font-weight: 900;
  color: rgba(0, 0, 0, .28);
  transition: transform .22s ease, color .18s ease;
  transform: rotate(0deg);
}

/* Otvoreno stanje */
.ec-media-toggle:checked~.ec-media-header .ec-media-chevron {
  transform: rotate(90deg);
  color: var(--ec-gold);
}

.ec-media-toggle:checked~.ec-media-header {
  background: rgba(182, 122, 60, .04);
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}

/* Body (sadržaj – skriveno po defaultu) */
.ec-media-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}

.ec-media-toggle:checked~.ec-media-body {
  max-height: 2000px;
}

.ec-media-body-inner {
  padding: 18px 20px 20px;
}

/* YouTube embed (16:9 responsive) */
.ec-media-video {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 14px;
  background: #000;
  margin-bottom: 16px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .16);
}

.ec-media-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 14px;
}

/* Tekstualni sadržaj */
.ec-media-content {
  color: rgba(0, 0, 0, .65);
  font-size: 15px;
  line-height: 1.65;
}

.ec-media-content p {
  margin: 0 0 10px;
}

.ec-media-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 10px 0;
}

.ec-media-content iframe[src*="youtube.com"],
.ec-media-content iframe[src*="youtu.be"] {
  display: block;
  width: min(100%, 560px);
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  margin: 12px auto;
  border-radius: 12px;
}

/* Read more link */
.ec-media-readmore {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, .06);
}

/* Mobile */
@media (max-width: 768px) {
  .ec-media-header {
    padding: 14px 14px;
    gap: 10px;
  }

  .ec-media-icon {
    width: 34px;
    height: 34px;
    font-size: 14px;
    border-radius: 10px;
  }

  .ec-media-title {
    font-size: 14px;
  }

  .ec-media-body-inner {
    padding: 14px;
  }

  .ec-media-video {
    border-radius: 10px;
  }

  .ec-media-video iframe {
    border-radius: 10px;
  }

  .ec-media-content iframe[src*="youtube.com"],
  .ec-media-content iframe[src*="youtu.be"] {
    width: min(100%, 420px);
    border-radius: 10px;
  }
}

/* =========================
   FAQ page (Accordion)
========================= */

/* Intro kartica */
.ec-faq-intro {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  margin-bottom: 24px;

  background: linear-gradient(135deg, #ffffff 0%, rgba(182, 122, 60, 0.12) 100%);
  border-radius: var(--ec-r16);
  border: 1px solid rgba(182, 122, 60, .25);
  border-left: 5px solid var(--ec-gold);
  box-shadow: 0 10px 25px rgba(182, 122, 60, .12);
}

.ec-faq-intro-icon {
  flex: 0 0 auto;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 900;
  color: var(--ec-gold);
  background: rgba(182, 122, 60, .10);
  border: 1px solid var(--ec-gold-border);
}

.ec-faq-intro p {
  margin: 0;
  color: rgba(0, 0, 0, .85);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
}

/* Lista */
.ec-faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Stavka */
.ec-faq-item {
  background: var(--ec-white);
  border-radius: var(--ec-r16);
  border: 1px solid rgba(0, 0, 0, .06);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .04);
  overflow: hidden;
  transition: box-shadow .18s ease, border-color .18s ease;
}

.ec-faq-item:hover {
  border-color: rgba(182, 122, 60, .18);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .07);
}

/* Checkbox toggle – skriveno */
.ec-faq-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Pitanje (klikabilno) */
.ec-faq-question {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  cursor: pointer;
  user-select: none;
  transition: background .14s ease;
}

.ec-faq-question:hover {
  background: rgba(182, 122, 60, .03);
}

/* Broj */
.ec-faq-num {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  color: var(--ec-gold);
  background: rgba(182, 122, 60, .08);
  border: 1px solid rgba(182, 122, 60, .15);
  transition: background .18s ease, color .18s ease;
}

/* Tekst pitanja */
.ec-faq-q-text {
  flex: 1 1 auto;
  font-size: 15px;
  font-weight: 800;
  color: rgba(0, 0, 0, .76);
  line-height: 1.3;
}

/* Plus/minus ikona */
.ec-faq-plus {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 300;
  color: rgba(0, 0, 0, .30);
  background: rgba(0, 0, 0, .04);
  transition: transform .25s ease, background .18s ease, color .18s ease;
}

/* Otvoreno stanje */
.ec-faq-toggle:checked~.ec-faq-question {
  background: rgba(182, 122, 60, .04);
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.ec-faq-toggle:checked~.ec-faq-question .ec-faq-num {
  background: var(--ec-gold);
  color: #fff;
  border-color: var(--ec-gold);
}

.ec-faq-toggle:checked~.ec-faq-question .ec-faq-plus {
  transform: rotate(45deg);
  background: rgba(182, 122, 60, .12);
  color: var(--ec-gold);
}

/* Odgovor – skriveno po defaultu */
.ec-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}

.ec-faq-toggle:checked~.ec-faq-answer {
  max-height: 1200px;
}

.ec-faq-answer-inner {
  padding: 16px 20px 20px;
  padding-left: 68px;
  /* poravnanje sa tekstom pitanja (34px num + 14px gap + 20px padding) */
  color: rgba(0, 0, 0, .62);
  font-size: 15px;
  line-height: 1.65;
}

.ec-faq-answer-inner p {
  margin: 0 0 10px;
}

.ec-faq-answer-inner ul {
  margin: 0 0 10px 18px;
  padding: 0;
}

.ec-faq-answer-inner li {
  margin-bottom: 6px;
  - line-height: 1.5;
}

.ec-faq-answer-inner strong {
  color: rgba(0, 0, 0, .75);
}

/* Kontakt CTA na dnu */
.ec-faq-contact {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px;
  margin-top: 28px;

  background: var(--ec-white);
  border-radius: var(--ec-r16);
  border: 1px solid rgba(182, 122, 60, .15);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .06);
}

.ec-faq-contact-icon {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: rgba(182, 122, 60, .10);
  border: 1px solid var(--ec-gold-border);
}

.ec-faq-contact-text {
  flex: 1 1 auto;
  font-size: 14px;
  color: rgba(0, 0, 0, .58);
  line-height: 1.5;
}

.ec-faq-contact-text strong {
  color: rgba(0, 0, 0, .78);
  font-size: 15px;
}

/* Mobile */
@media (max-width: 768px) {
  .ec-faq-intro {
    flex-direction: column;
    text-align: center;
    gap: 12px;
    padding: 18px;
  }

  .ec-faq-question {
    padding: 14px 14px;
    gap: 10px;
  }

  .ec-faq-num {
    width: 30px;
    height: 30px;
    font-size: 13px;
    border-radius: 8px;
  }

  .ec-faq-q-text {
    font-size: 14px;
  }

  .ec-faq-answer-inner {
    padding: 14px 14px 16px;
    padding-left: 14px;
    font-size: 14px;
  }

  .ec-faq-contact {
    flex-direction: column;
    text-align: center;
    gap: 14px;
    padding: 20px;
  }
}

/* =========================
   Contact page
========================= */

/* Info kartice (email, tel, radno vreme) */
.ec-contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.ec-contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 22px 16px;
  text-align: center;
  text-decoration: none;
  color: inherit;

  background: var(--ec-white);
  border-radius: var(--ec-r16);
  border: 1px solid rgba(0, 0, 0, .06);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .05);
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}

.ec-contact-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .09);
  border-color: rgba(182, 122, 60, .22);
  color: inherit;
}

.ec-contact-card-icon {
  font-size: 28px;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(182, 122, 60, .08);
  border: 1px solid var(--ec-gold-border);
}

.ec-contact-card-label {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: rgba(0, 0, 0, .40);
}

.ec-contact-card-value {
  font-size: 15px;
  font-weight: 800;
  color: rgba(0, 0, 0, .78);
}

/* Poruka o uspešnom slanju */
.ec-contact-success {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  margin-bottom: 18px;

  background: rgba(46, 125, 50, .08);
  border: 1px solid rgba(46, 125, 50, .20);
  border-radius: var(--ec-r16);
  color: #2e7d32;
  font-size: 14px;
  line-height: 1.45;
}

.ec-contact-success-icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
  background: rgba(46, 125, 50, .14);
  color: #2e7d32;
}

/* Forma kartica */
.ec-contact-form-card {
  overflow: hidden;
}

.ec-contact-form-head {
  padding: 16px 20px 10px;
  border-bottom: 1px solid rgba(0, 0, 0, .06);
  background: rgba(255, 255, 255, .55);
}

.ec-contact-form-body {
  padding: 20px;
}

/* Forma elementi */
.ec-form-group {
  margin-bottom: 16px;
}

.ec-form-label {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 800;
  color: rgba(0, 0, 0, .60);
  letter-spacing: .2px;
}

.ec-form-input {
  display: block;
  width: 100%;
  padding: 12px 14px;
  font-size: 17px;
  font-weight: 600;
  color: rgba(0, 0, 0, .78);
  background: rgba(245, 240, 236, .50);
  border: 1.5px solid rgba(0, 0, 0, .10);
  border-radius: 12px;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
  font-family: inherit;
}

.ec-form-input:focus {
  border-color: var(--ec-gold);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(182, 122, 60, .12);
}

.ec-form-input::placeholder {
  color: rgba(0, 0, 0, .30);
  font-weight: 600;
}

.ec-form-textarea {
  resize: vertical;
  min-height: 120px;
}

.ec-form-error {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #c0392b;
}

/* Submit dugme */
.ec-contact-form-actions {
  margin-top: 8px;
  text-align: right;
}

.ec-btn-gold--lg {
  padding: 15px 36px;
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: 1px;
  border-radius: 12px;
  background: linear-gradient(135deg, #d2ae4d 0%, #b87b38 100%);
  box-shadow: 0 10px 24px rgba(184, 123, 56, 0.3);
}

.ec-btn-gold--lg:hover {
  background: linear-gradient(135deg, #e1bc58 0%, #c9a84c 100%);
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(184, 123, 56, 0.45);
}

/* Yii ActiveForm error highlight */
.ec-form-group.has-error .ec-form-input {
  border-color: rgba(192, 57, 43, .45);
  background: rgba(192, 57, 43, .03);
}

.ec-form-group.has-error .ec-form-input:focus {
  box-shadow: 0 0 0 3px rgba(192, 57, 43, .12);
}

/* Mobile */
@media (max-width: 768px) {
  .ec-contact-cards {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .ec-contact-form-body {
    padding: 16px;
  }

  .ec-contact-form-actions {
    text-align: center;
  }

  .ec-btn-gold--lg {
    width: 100%;
    padding: 14px 20px;
  }
}

/* =========================
   Nav CTA button
========================= */
.ec-nav-cta {
  background: var(--ec-gold) !important;
  color: #fff !important;
  padding: 6px 16px !important;
  border-radius: 10px !important;
  font-weight: 800 !important;
  font-size: 13px !important;
  letter-spacing: .3px;
  transition: background .14s ease, transform .14s ease;
  white-space: nowrap;
}

.ec-nav-cta:hover {
  background: #96662e !important;
  transform: translateY(-1px);
}

/* =========================
   Create announce page
========================= */
.ec-create-info {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  margin-bottom: 16px;

  background: var(--ec-white);
  border-radius: var(--ec-r16);
  border: 1px solid rgba(182, 122, 60, .15);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .05);
}

.ec-create-info small {
  color: rgba(0, 0, 0, .50);
  font-size: 13px;
}

.ec-create-section {
  margin-bottom: 14px;
  overflow: hidden;
}

.ec-create-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(245, 240, 236, .55);
  border-bottom: 1px solid rgba(0, 0, 0, .06);
  font-size: 14px;
  font-weight: 800;
  color: rgba(0, 0, 0, .72);
}

.ec-create-section-icon {
  font-size: 18px;
}

.ec-create-section-note {
  font-size: 11px;
  font-weight: 700;
  color: var(--ec-gold);
  margin-left: auto;
}

.ec-create-section-body {
  padding: 16px;
}

.ec-create-hint {
  display: block;
  margin-top: 4px;
  margin-bottom: 12px;
  font-size: 13px;
  color: rgba(0, 0, 0, .65);
  font-weight: 700;
}

.ec-create-sub-label {
  font-size: 13px;
  font-weight: 800;
  color: rgba(0, 0, 0, .55);
  margin-bottom: 8px;
  padding-top: 4px;
  border-top: 1px dashed rgba(0, 0, 0, .08);
}

/* Select stilizacija */
.ec-form-select {
  appearance: auto;
  -webkit-appearance: auto;
  cursor: pointer;
}

/* Checkbox uslovi */
.ec-create-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.ec-create-check-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ec-check-input {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  accent-color: var(--ec-gold);
  cursor: pointer;
}

.ec-check-label {
  font-size: 14px;
  color: rgba(0, 0, 0, .65);
  cursor: pointer;
  font-weight: 600;
}

.ec-check-label a {
  color: var(--ec-gold);
  font-weight: 700;
}

/* Submit */
.ec-create-actions {
  text-align: center;
  margin: 20px 0 10px;
}

/* Mobile */
@media (max-width: 768px) {
  .ec-create-info {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .ec-create-section-body {
    padding: 14px;
  }

  .ec-nav-cta {
    margin-top: 4px;
    text-align: center;
  }
}

/* =========================
   Custom Header Actions & Search CTA
========================= */
.ec-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 10;
}

.ec-search-top {
  margin-top: 30px;
  margin-bottom: 25px;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 10;
}

/* Remove default margin from searchbar when button is above it */
.ec-search-top+.ec-searchbar {
  margin-top: 0 !important;
}

.ec-btn-create {
  height: 52px;
  padding: 0 48px;
  background: linear-gradient(135deg, #c68a4c 0%, #b67a3c 100%);
  color: #fff;
  border-radius: 14px;
  font-weight: 800;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(182, 122, 60, .3);
  border: 1px solid rgba(255, 255, 255, .1);
  transition: all .25s ease;
}

.ec-btn-create:hover {
  background: #fff;
  color: #000 !important;
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, .15);
  border-color: var(--ec-gold);
}

@media (max-width: 768px) {
  .ec-header-actions {
    margin-left: auto;
    margin-right: 0;
    gap: 8px;
  }

  .ec-search-top {
    margin-top: 25px;
    margin-bottom: 15px;
  }

  .ec-btn-create {
    width: 100%;
    height: 48px;
    font-size: 14px;
    padding: 0 20px;
  }
}

/* =========================
   Person Header (Topbar)
========================= */
.ec-person-header {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto;
  grid-template-areas:
    "main actions";
  gap: 15px 30px;
  width: 100%;
  align-items: start;
}

.ec-person-header-main {
  grid-area: main;
}

.ec-social-share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 5px;
  margin-bottom: 8px;
  justify-content: center;
  width: 100%;
}

.ec-social-share svg {
  width: 20px;
  height: 20px;
  display: block;
}

@media (max-width: 576px) {
  .ec-social-share {
    gap: 6px;
  }

  .ec-social-share svg {
    width: 16px;
    height: 16px;
  }
}

.ec-person-header-years {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--ec-gold);
  margin-top: 2px;
  margin-bottom: 0;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #c68a4c 0%, #905d2c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.ec-person-header-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 15px;
  font-size: 15px;
  color: #555;
  background: rgba(201, 168, 76, 0.05);
  padding: 15px 20px;
  border-radius: 8px;
  border-left: 4px solid #c9a84c;
  width: fit-content;
  text-align: left;
}

.ec-person-info-item {
  font-size: 14.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #333;
}

.ec-person-info-item strong {
  color: #7a6021;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
  min-width: 110px;
}

.ec-person-info-item span {
  font-weight: 600;
}

.ec-person-header-actions {
  grid-area: actions;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.ec-btn-flex {
  height: 46px;
  padding: 0 24px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  border: none;
}

.ec-btn-muted {
  background: #f2f2f2;
  color: #555;
}

.ec-btn-muted:hover {
  background: #e8e8e8;
  color: #000;
}

@media (max-width: 1200px) {
  .ec-person-header {
    grid-template-columns: 1fr;
    grid-template-areas:
      "main"
      "actions";
    gap: 20px;
  }

  .ec-person-header-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .ec-person-header-info {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (max-width: 576px) {
  .ec-person-header-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .ec-btn-flex {
    width: 100%;
  }
}

.ec-sve-objave-prefix {
  font-weight: 500;
  font-size: 0.85em;
  color: rgba(0, 0, 0, 0.6);
  display: inline-block;
  margin-right: 6px;
}

@media (max-width: 576px) {
  .ec-sve-objave-prefix {
    display: block;
    margin-right: 0;
    margin-bottom: 4px;
    font-size: 0.8em;
  }
}

/* =========================
   Breadcrumbs
========================= */
.breadcrumb-item a {
  color: #7a6021;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s;
}
.breadcrumb-item a:hover {
  opacity: 0.8;
  color: #7a6021;
  text-decoration: underline;
}
.breadcrumb-item.active {
  color: #595959;
}
.breadcrumb-item + .breadcrumb-item::before {
  color: #888;
  content: "/";
}

/* =========================
   WCAG AA Contrast Overrides (Lighthouse)
========================= */
.ec-card-signer {
  color: #595959 !important;
}
[style*="color: #888"],
[style*="color:#888"],
[style*="color: #777"],
[style*="color:#777"],
[style*="color: rgb(119, 119, 119)"] {
  color: #595959 !important;
}
[style*="color: #c9a84c"],
[style*="color:#c9a84c"],
[style*="color: rgb(201, 168, 76)"],
[style*="color:rgb(201,168,76)"],
[style*="color: var(--ec-gold)"],
[style*="color:var(--ec-gold)"] {
  color: #7a6021 !important;
}
.ec-card-topbar-badge {
  color: #fff !important;
  background: #7a6021 !important;
}
