/*
Theme Name: UHDDR Bjelovar Astra Child
Theme URI: https://uhddr-bjelovar.com/
Description: Child tema za UHDDR Bjelovar na Astra temi. Verzija 1.8.1 pojednostavljuje naslovnicu i prikazuje popis projekata u sidebaru.
Author: UHDDR Bjelovar
Template: astra
Version: 1.8.4
Text Domain: uhddr-astra-child
*/

:root {
  --uhddr-navy: #072746;
  --uhddr-navy-2: #0b355b;
  --uhddr-red: #c8102e;
  --uhddr-gold: #c49a3a;
  --uhddr-text: #152238;
  --uhddr-white: #ffffff;
  --uhddr-border: rgba(7, 39, 70, .14);
}

body {
  color: var(--uhddr-text);
}

/* Sakrij Astra header ako ga parent tema ispiše kroz svoj standardni header markup. */
.site-header,
.ast-primary-header-bar,
.ast-mobile-header-wrap {
  display: none !important;
}

.uhddr-header {
  font-family: Georgia, 'Times New Roman', serif;
  background: #fff;
  color: var(--uhddr-navy);
  position: relative;
  z-index: 100;
  box-shadow: 0 1px 0 var(--uhddr-border);
}

.uhddr-topbar {
  background: var(--uhddr-navy);
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 12.5px;
}

.uhddr-container {
  width: min(1660px, calc(100% - 56px));
  margin: 0 auto;
}

.uhddr-topbar__inner {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.uhddr-contact,
.uhddr-social {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.uhddr-contact a,
.uhddr-social a {
  color: #fff;
  text-decoration: none;
  opacity: .92;
}

.uhddr-contact a:hover,
.uhddr-social a:hover {
  opacity: 1;
  color: #fff;
}

.uhddr-brandbar {
  position: relative;
  overflow: hidden;
  background: #ffffff;
}

.uhddr-brandbar__inner {
  min-height: 112px;
  display: grid;
  grid-template-columns: auto minmax(520px, 680px) minmax(220px, 280px) minmax(360px, 1fr);
  align-items: center;
  column-gap: 24px;
  position: relative;
  z-index: 2;
}

.uhddr-logo img {
  display: block;
  width: 86px;
  height: 86px;
  object-fit: contain;
}

.uhddr-brandcopy {
  min-width: 0;
}

.uhddr-title {
  margin: 0;
  color: var(--uhddr-navy);
  font-size: clamp(34px, 3vw, 48px);
  line-height: .98;
  font-weight: 700;
  letter-spacing: -.02em;
  white-space: nowrap;
}

.uhddr-subtitle {
  margin: 7px 0 0;
  color: #2a3c55;
  font-size: clamp(15px, 1.15vw, 19px);
  line-height: 1.2;
  white-space: nowrap;
}

.uhddr-motto {
  margin: 0;
  padding-left: 24px;
  border-left: 1px solid rgba(196,154,58,.55);
  color: #a96f17;
  font-size: 18px;
  line-height: 1.24;
  font-style: italic;
  max-width: 280px;
  text-shadow: none;
  align-self: center;
}

.uhddr-brandvisual {
  align-self: stretch;
  min-width: 0;
  min-height: 112px;
  background: url('assets/images/header-banner-v1412.png') center center / cover no-repeat;
}

.uhddr-navwrap {
  background: var(--uhddr-navy);
  border-bottom: 3px solid var(--uhddr-gold);
}

.uhddr-nav {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.uhddr-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: stretch;
  gap: 0;
}

.uhddr-menu li {
  position: relative;
  margin: 0;
}

.uhddr-menu a {
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 0 17px;
  transition: background .2s ease, color .2s ease;
}

.uhddr-menu a:hover,
.uhddr-menu .current-menu-item > a,
.uhddr-menu .current_page_item > a {
  color: #fff;
  background: rgba(255,255,255,.07);
}

.uhddr-menu .current-menu-item > a::after,
.uhddr-menu .current_page_item > a::after {
  content: '';
  position: absolute;
  left: 17px;
  right: 17px;
  bottom: 0;
  height: 3px;
  background: var(--uhddr-gold);
}

.uhddr-menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: var(--uhddr-navy);
  box-shadow: 0 14px 36px rgba(0,0,0,.2);
}

.uhddr-menu li:hover > .sub-menu {
  display: block;
}

.uhddr-menu .sub-menu a {
  min-height: auto;
  padding: 11px 18px;
  text-transform: none;
  letter-spacing: 0;
}

.uhddr-menu-toggle {
  display: none;
  border: 1px solid rgba(255,255,255,.35);
  background: transparent;
  color: #fff;
  min-width: 44px;
  min-height: 40px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 22px;
}

.uhddr-search {
  margin-left: auto;
}

.uhddr-search input[type='search'] {
  width: 230px;
  height: 36px;
  border: 0;
  border-radius: 2px;
  padding: 0 12px;
  background: #fff;
  color: var(--uhddr-text);
  font-family: Arial, sans-serif;
  font-size: 12.5px;
}


.uhddr-contact__item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.uhddr-contact__icon {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  fill: currentColor;
  opacity: .9;
}

.uhddr-topbar__label {
  margin-left: auto;
  color: rgba(255,255,255,.82);
  letter-spacing: .03em;
  white-space: nowrap;
}

@media (max-width: 1540px) {
  .uhddr-brandbar__inner {
    grid-template-columns: auto minmax(460px, 620px) minmax(200px, 245px) minmax(300px, 1fr);
    column-gap: 18px;
  }
  .uhddr-title { font-size: 42px; }
  .uhddr-subtitle { font-size: 16px; }
  .uhddr-motto { font-size: 16.5px; max-width: 245px; padding-left: 18px; }
}

@media (max-width: 1260px) {
  .uhddr-brandbar__inner {
    grid-template-columns: auto minmax(0, 1fr) minmax(280px, 360px);
    min-height: 102px;
  }
  .uhddr-motto { display: none; }
  .uhddr-brandvisual { min-height: 102px; }
  .uhddr-title { font-size: 36px; }
  .uhddr-subtitle { white-space: normal; font-size: 15px; }
}

@media (max-width: 900px) {
  .uhddr-container { width: min(100% - 28px, 1660px); }
  .uhddr-topbar__inner { min-height: 38px; }
  .uhddr-topbar__label { display: none; }
  .uhddr-brandbar__inner {
    min-height: 92px;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
  }
  .uhddr-brandvisual { display: none; }
  .uhddr-logo img { width: 70px; height: 70px; }
  .uhddr-title { font-size: 29px; white-space: normal; }
  .uhddr-subtitle { font-size: 14px; }
  .uhddr-nav { min-height: 52px; position: relative; }
  .uhddr-menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .uhddr-menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 50;
    flex-direction: column;
    background: var(--uhddr-navy);
    box-shadow: 0 16px 30px rgba(0,0,0,.22);
  }
  .uhddr-menu.is-open { display: flex; }
  .uhddr-menu a { min-height: 48px; padding: 0 20px; }
  .uhddr-menu .sub-menu {
    display: block;
    position: static;
    box-shadow: none;
    padding: 0 0 6px 18px;
    background: rgba(255,255,255,.03);
  }
}

@media (max-width: 560px) {
  .uhddr-brandbar__inner { min-height: 82px; }
  .uhddr-logo img { width: 60px; height: 60px; }
  .uhddr-title { font-size: 24px; }
  .uhddr-subtitle { font-size: 12px; }
}

/* =========================================================
   v1.4.5 — čisti, usklađeni header
   ========================================================= */

/* =========================================================
   v1.2.0 — istaknute akcije u glavnom headeru
   ========================================================= */
.uhddr-nav__main {
  display: flex;
  align-items: stretch;
  min-width: 0;
}

.uhddr-header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  font-family: Arial, sans-serif;
}

.uhddr-header-action {
  min-height: 38px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: 3px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .035em;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
}

.uhddr-header-action:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.uhddr-header-action svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  flex: 0 0 15px;
}

.uhddr-header-action--join {
  color: #fff;
  border-color: rgba(196,154,58,.88);
  background: rgba(255,255,255,.035);
}

.uhddr-header-action--join:hover {
  color: #fff;
  background: rgba(196,154,58,.14);
  border-color: var(--uhddr-gold);
}

.uhddr-header-action--donate {
  color: #fff;
  background: var(--uhddr-red);
  border-color: var(--uhddr-red);
  box-shadow: 0 5px 14px rgba(200,16,46,.2);
}

.uhddr-header-action--donate:hover {
  color: #fff;
  background: #aa0e27;
  border-color: #aa0e27;
}

.uhddr-header-action--members {
  color: var(--uhddr-navy);
  background: var(--uhddr-gold);
  border-color: var(--uhddr-gold);
}

.uhddr-header-action--members:hover {
  color: var(--uhddr-navy);
  background: #d6ad51;
  border-color: #d6ad51;
}

/* Search je premješten iz glavne trake kako bi akcije ostale jasno vidljive. */
.uhddr-search { display: none; }

@media (max-width: 1500px) {
  .uhddr-menu a { padding-left: 10px; padding-right: 10px; font-size: 11.5px; }
  .uhddr-header-action { padding-left: 10px; padding-right: 10px; font-size: 10px; }
}

@media (max-width: 1180px) {
  .uhddr-header-action span { display: none; }
  .uhddr-header-action { width: 40px; padding: 0; }
}

@media (max-width: 900px) {
  .uhddr-nav { position: relative; }
  .uhddr-nav__main { flex: 1 1 auto; }
  .uhddr-header-actions { gap: 6px; }
  .uhddr-header-action { width: auto; min-width: 40px; padding: 0 10px; }
  .uhddr-header-action span { display: inline; }
}

@media (max-width: 680px) {
  .uhddr-header-action { width: 40px; padding: 0; }
  .uhddr-header-action span { display: none; }
}

/* =========================================================
   v1.3.0 — moderna hero sekcija naslovnice
   ========================================================= */
.uhddr-home-main {
  margin: 0;
  padding: 0;
  background: #fff;
}

.uhddr-hero {
  position: relative;
  min-height: clamp(520px, 61vh, 690px);
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: stretch;
  background: #061d35;
}

.uhddr-hero__media {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image: url('assets/images/uhddr-hero.jpg');
  background-size: cover;
  background-position: center 43%;
  transform: scale(1.002);
}

.uhddr-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(3,20,37,.94) 0%, rgba(3,20,37,.82) 31%, rgba(3,20,37,.46) 53%, rgba(3,20,37,.12) 78%, rgba(3,20,37,.20) 100%),
    linear-gradient(0deg, rgba(3,20,37,.55) 0%, transparent 38%);
}

.uhddr-hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--uhddr-red) 0 34%, var(--uhddr-white) 34% 66%, #244f8b 66% 100%);
  z-index: 2;
}

.uhddr-hero__inner {
  min-height: inherit;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding-top: 54px;
  padding-bottom: 54px;
}

.uhddr-hero__content {
  width: min(720px, 66%);
  color: #fff;
  text-shadow: 0 2px 18px rgba(0,0,0,.2);
}

.uhddr-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: #f1d083;
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .23em;
  text-transform: uppercase;
}

.uhddr-hero__eyebrow::after {
  content: '';
  width: 54px;
  height: 2px;
  background: var(--uhddr-gold);
}

.uhddr-hero__title {
  margin: 0;
  max-width: 760px;
  color: #fff;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(48px, 5.3vw, 82px);
  line-height: .98;
  font-weight: 700;
  letter-spacing: -.035em;
}

.uhddr-hero__title span {
  color: #f0c768;
}

.uhddr-hero__lead {
  max-width: 630px;
  margin: 25px 0 0;
  color: rgba(255,255,255,.93);
  font-family: Arial, sans-serif;
  font-size: clamp(16px, 1.25vw, 20px);
  line-height: 1.55;
  text-shadow: 0 2px 10px rgba(0,0,0,.32);
}

.uhddr-hero__actions {
  display: flex;
  align-items: center;
  gap: 13px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.uhddr-hero__button {
  min-height: 50px;
  padding: 0 22px;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .035em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease;
}

.uhddr-hero__button:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.uhddr-hero__button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.uhddr-hero__button--primary {
  color: #fff;
  background: var(--uhddr-red);
  border: 1px solid var(--uhddr-red);
  box-shadow: 0 10px 26px rgba(200,16,46,.28);
}

.uhddr-hero__button--primary:hover {
  color: #fff;
  background: #a90d27;
  border-color: #a90d27;
}

.uhddr-hero__button--secondary {
  color: #fff;
  background: rgba(7,39,70,.34);
  border: 1px solid rgba(255,255,255,.52);
  backdrop-filter: blur(5px);
}

.uhddr-hero__button--secondary:hover {
  color: #fff;
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.78);
}

.uhddr-hero__badge {
  align-self: flex-end;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(5,29,52,.48);
  backdrop-filter: blur(7px);
  color: rgba(255,255,255,.82);
  font-family: Arial, sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.uhddr-hero__badge-dot {
  color: var(--uhddr-gold);
}

.uhddr-after-hero {
  padding: 34px 0 22px;
  background:
    linear-gradient(180deg, #fff 0%, #fbfcfd 100%);
}

.uhddr-after-hero__intro {
  display: flex;
  align-items: center;
  gap: 16px;
}

.uhddr-after-hero__mark {
  width: 5px;
  height: 54px;
  background: linear-gradient(180deg, var(--uhddr-red), var(--uhddr-gold));
}

.uhddr-after-hero__kicker {
  margin: 0 0 3px;
  font-family: Arial, sans-serif;
  color: var(--uhddr-red);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.uhddr-after-hero h2 {
  margin: 0;
  color: var(--uhddr-navy);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(28px, 2.3vw, 40px);
}

@media (max-width: 1100px) {
  .uhddr-hero {
    min-height: 570px;
  }
  .uhddr-hero__media {
    background-position: 58% center;
  }
  .uhddr-hero__content {
    width: min(670px, 78%);
  }
  .uhddr-hero__badge {
    display: none;
  }
}

@media (max-width: 760px) {
  .uhddr-hero {
    min-height: 590px;
  }
  .uhddr-hero__media {
    background-position: 59% center;
  }
  .uhddr-hero__overlay {
    background:
      linear-gradient(90deg, rgba(3,20,37,.92) 0%, rgba(3,20,37,.73) 72%, rgba(3,20,37,.45) 100%),
      linear-gradient(0deg, rgba(3,20,37,.52), transparent 45%);
  }
  .uhddr-hero__inner {
    align-items: flex-end;
    padding-top: 70px;
    padding-bottom: 52px;
  }
  .uhddr-hero__content {
    width: 100%;
  }
  .uhddr-hero__title {
    font-size: clamp(42px, 11vw, 62px);
  }
  .uhddr-hero__lead {
    font-size: 16px;
  }
}

@media (max-width: 520px) {
  .uhddr-hero {
    min-height: 610px;
  }
  .uhddr-hero__title {
    font-size: 43px;
  }
  .uhddr-hero__actions {
    align-items: stretch;
    flex-direction: column;
  }
  .uhddr-hero__button {
    width: 100%;
  }
}

html, body { overflow-x: hidden; }


/* =========================================================
   v1.5.0 — Najnovije objave + grid vijesti
   ========================================================= */
.uhddr-latest-strip {
  background: #fff;
  border-bottom: 1px solid rgba(7,39,70,.12);
  box-shadow: 0 8px 20px rgba(7,39,70,.05);
}

.uhddr-latest-strip__inner {
  display: grid;
  grid-template-columns: 210px 1fr;
  min-height: 92px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.uhddr-latest-strip__label {
  margin: -12px 0;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #b20d26 0%, var(--uhddr-red) 65%, #e12c45 100%);
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  position: relative;
}

.uhddr-latest-strip__label::after {
  content: '';
  position: absolute;
  top: 0;
  right: -22px;
  width: 24px;
  height: 100%;
  background: inherit;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.uhddr-latest-strip__label svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
  flex: 0 0 21px;
}

.uhddr-latest-strip__items {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-left: 34px;
}

.uhddr-latest-strip__item {
  min-width: 0;
  padding: 7px 18px;
  border-right: 1px solid rgba(7,39,70,.12);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  color: var(--uhddr-navy);
  text-decoration: none;
  transition: background .18s ease, transform .18s ease;
}

.uhddr-latest-strip__item:last-child { border-right: 0; }
.uhddr-latest-strip__item:hover {
  color: var(--uhddr-navy);
  background: #f8fafc;
  transform: translateY(-1px);
}

.uhddr-latest-strip__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 700;
}

.uhddr-latest-strip__date {
  color: #738195;
  font-family: Arial, sans-serif;
  font-size: 10.5px;
}

.uhddr-news-section {
  padding: 48px 0 64px;
  background:
    linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.uhddr-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(7,39,70,.14);
}

.uhddr-section-heading__titlewrap {
  display: flex;
  align-items: center;
  gap: 13px;
}

.uhddr-section-heading__symbol {
  width: 18px;
  height: 18px;
  background:
    linear-gradient(90deg, var(--uhddr-gold) 0 42%, transparent 42% 58%, var(--uhddr-gold) 58%),
    linear-gradient(0deg, var(--uhddr-gold) 0 42%, transparent 42% 58%, var(--uhddr-gold) 58%);
}

.uhddr-section-heading h2 {
  margin: 0;
  color: var(--uhddr-navy);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(30px, 2.4vw, 42px);
  line-height: 1;
}

.uhddr-section-heading__link {
  color: var(--uhddr-red);
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.uhddr-section-heading__link:hover { color: #9f0d24; }

.uhddr-news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.uhddr-news-card {
  margin: 0;
  background: #fff;
  border: 1px solid rgba(7,39,70,.10);
  box-shadow: 0 8px 26px rgba(7,39,70,.055);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}

.uhddr-news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(7,39,70,.10);
}

.uhddr-news-card__image {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e9eef3;
}

.uhddr-news-card__image > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .35s ease;
}

.uhddr-news-card:hover .uhddr-news-card__image > img { transform: scale(1.035); }

.uhddr-news-card__placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(7,39,70,.96), rgba(11,53,91,.88));
}

.uhddr-news-card__placeholder img {
  width: 94px;
  height: 94px;
  object-fit: contain;
  filter: drop-shadow(0 7px 16px rgba(0,0,0,.22));
}

.uhddr-news-card__category {
  position: absolute;
  left: 14px;
  bottom: 13px;
  padding: 6px 10px;
  background: var(--uhddr-red);
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 9px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.uhddr-news-card__body {
  padding: 18px 18px 20px;
}

.uhddr-news-card__meta {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #7d8999;
  font-family: Arial, sans-serif;
  font-size: 11px;
}

.uhddr-news-card__meta svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.uhddr-news-card h3 {
  margin: 10px 0 10px;
  color: var(--uhddr-navy);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 22px;
  line-height: 1.14;
}

.uhddr-news-card h3 a {
  color: inherit;
  text-decoration: none;
}

.uhddr-news-card h3 a:hover { color: var(--uhddr-red); }

.uhddr-news-card p {
  margin: 0;
  color: #617084;
  font-family: Arial, sans-serif;
  font-size: 13px;
  line-height: 1.55;
}

.uhddr-news-card__more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 15px;
  color: var(--uhddr-red);
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.uhddr-news-card__more:hover { color: #9f0d24; }

.uhddr-news-empty {
  padding: 30px;
  border: 1px dashed rgba(7,39,70,.22);
  background: #fff;
  color: #617084;
  font-family: Arial, sans-serif;
  text-align: center;
}

@media (max-width: 1200px) {
  .uhddr-latest-strip__inner { grid-template-columns: 185px 1fr; }
  .uhddr-latest-strip__items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .uhddr-latest-strip__item:nth-child(n+3) { display: none; }
}

@media (max-width: 900px) {
  .uhddr-news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .uhddr-news-card h3 { font-size: 20px; }
}

@media (max-width: 680px) {
  .uhddr-latest-strip__inner { display: block; padding-top: 0; }
  .uhddr-latest-strip__label {
    margin: 0;
    min-height: 48px;
    justify-content: center;
  }
  .uhddr-latest-strip__label::after { display: none; }
  .uhddr-latest-strip__items {
    padding-left: 0;
    grid-template-columns: 1fr;
  }
  .uhddr-latest-strip__item {
    padding: 14px 4px;
    border-right: 0;
    border-bottom: 1px solid rgba(7,39,70,.10);
  }
  .uhddr-latest-strip__item:nth-child(n+2) { display: none; }
  .uhddr-news-section { padding-top: 36px; }
  .uhddr-section-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .uhddr-news-grid { grid-template-columns: 1fr; gap: 18px; }
}


/* =========================================================
   v1.5.1 — balans naslovnice + desni stupac
   ========================================================= */
.uhddr-home-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 30px;
  align-items: start;
}

.uhddr-home-content-grid__main { min-width: 0; }

.uhddr-news-grid--count-1 {
  grid-template-columns: minmax(0, 520px);
}

.uhddr-news-grid--count-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.uhddr-home-sidebar {
  display: grid;
  gap: 18px;
}

.uhddr-sidebar-card {
  border: 1px solid rgba(7,39,70,.13);
  background: #fff;
  box-shadow: 0 8px 24px rgba(7,39,70,.05);
}

.uhddr-sidebar-card > h3 {
  margin: 0;
  padding: 18px 20px 14px;
  border-bottom: 1px solid rgba(7,39,70,.1);
  color: var(--uhddr-navy);
  font-size: 24px;
  line-height: 1.1;
}

.uhddr-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
}

.uhddr-quick-grid a {
  min-height: 90px;
  padding: 14px;
  border: 1px solid rgba(7,39,70,.11);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  background: #fbfcfd;
  color: var(--uhddr-navy);
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.uhddr-quick-grid a:hover {
  transform: translateY(-2px);
  border-color: rgba(196,154,58,.6);
  background: #fff;
}

.uhddr-quick-grid strong {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 16px;
}

.uhddr-quick-grid span {
  color: #68778a;
  font-family: Arial, sans-serif;
  font-size: 11px;
}

.uhddr-sidebar-card--project {
  position: relative;
  overflow: hidden;
  padding: 22px;
  background: linear-gradient(135deg, #f8fafc 0%, #fff 62%);
}

.uhddr-sidebar-card--project::after {
  content: '';
  position: absolute;
  width: 120px;
  height: 120px;
  right: -32px;
  bottom: -32px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196,154,58,.19), transparent 68%);
}

.uhddr-sidebar-card__eyebrow {
  margin: 0 0 7px;
  color: var(--uhddr-gold);
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
}

.uhddr-sidebar-card--project h3 {
  margin: 0 0 10px;
  color: var(--uhddr-navy);
  font-size: 23px;
  line-height: 1.1;
}

.uhddr-sidebar-card--project p:not(.uhddr-sidebar-card__eyebrow) {
  margin: 0 0 14px;
  color: #647286;
  font-family: Arial, sans-serif;
  font-size: 13px;
  line-height: 1.55;
}

.uhddr-sidebar-card--project a {
  position: relative;
  z-index: 1;
  color: var(--uhddr-red);
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 1180px) {
  .uhddr-home-content-grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; }
  .uhddr-quick-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .uhddr-home-content-grid { grid-template-columns: 1fr; }
  .uhddr-home-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .uhddr-news-grid--count-1 { grid-template-columns: minmax(0, 520px); }
}

@media (max-width: 640px) {
  .uhddr-home-sidebar { grid-template-columns: 1fr; }
  .uhddr-news-grid--count-1,
  .uhddr-news-grid--count-2 { grid-template-columns: 1fr; }
}


/* =========================================================
   v1.6.1 — šest vijesti, po tri u svakom redu
   ========================================================= */
.uhddr-home-content-grid__main .uhddr-news-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.uhddr-news-card {
  height: 100%;
}

.uhddr-news-card__body {
  display: flex;
  flex-direction: column;
  min-height: 250px;
}

.uhddr-news-card__more {
  margin-top: auto;
}

@media (max-width: 1180px) {
  .uhddr-home-content-grid__main .uhddr-news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .uhddr-home-content-grid__main .uhddr-news-grid {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   v1.6.1 — pojedinačna vijest + stranica svih vijesti
   ========================================================= */
.uhddr-single-main,
.uhddr-news-archive {
  background: #f7f9fb;
}

.uhddr-article-hero,
.uhddr-archive-hero {
  padding: 38px 0 42px;
  background:
    linear-gradient(135deg, rgba(7,39,70,.98), rgba(11,53,91,.95)),
    #072746;
  color: #fff;
  border-bottom: 3px solid var(--uhddr-gold);
}

.uhddr-breadcrumbs {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
  color: rgba(255,255,255,.65);
  font-family: Arial, sans-serif;
  font-size: 12px;
}
.uhddr-breadcrumbs a { color: rgba(255,255,255,.88); text-decoration: none; }
.uhddr-breadcrumbs a:hover { color: #fff; }
.uhddr-breadcrumbs span[aria-current="page"] { max-width: 620px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.uhddr-article-hero__content { max-width: 980px; }
.uhddr-article-category {
  display: inline-flex;
  padding: 6px 10px;
  margin-bottom: 12px;
  background: var(--uhddr-red);
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.uhddr-article-hero h1,
.uhddr-archive-hero h1 {
  margin: 0;
  color: #fff;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(36px, 4vw, 58px);
  line-height: 1.03;
  letter-spacing: -.02em;
}
.uhddr-article-meta {
  display: flex;
  gap: 18px;
  margin-top: 18px;
  color: rgba(255,255,255,.76);
  font-family: Arial, sans-serif;
  font-size: 13px;
}

.uhddr-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 38px;
  padding-top: 42px;
  padding-bottom: 60px;
  align-items: start;
}
.uhddr-article {
  min-width: 0;
  background: #fff;
  border: 1px solid rgba(7,39,70,.1);
  box-shadow: 0 12px 34px rgba(7,39,70,.06);
}
.uhddr-article-featured { margin: 0; overflow: hidden; }
.uhddr-article-featured img { width: 100%; max-height: 650px; object-fit: cover; display: block; }
.uhddr-article-content { padding: 34px 42px; color: #253850; font-family: Arial, sans-serif; font-size: 17px; line-height: 1.78; }
.uhddr-article-content > :first-child { margin-top: 0; }
.uhddr-article-content h2,
.uhddr-article-content h3,
.uhddr-article-content h4 { color: var(--uhddr-navy); font-family: Georgia, 'Times New Roman', serif; line-height: 1.15; }
.uhddr-article-content h2 { font-size: 32px; margin-top: 34px; }
.uhddr-article-content h3 { font-size: 25px; margin-top: 28px; }
.uhddr-article-content a { color: var(--uhddr-red); }
.uhddr-article-content blockquote { margin: 28px 0; padding: 18px 24px; border-left: 4px solid var(--uhddr-gold); background: #f8fafc; font-family: Georgia, 'Times New Roman', serif; font-size: 20px; color: #33455b; }
.uhddr-article-content img { max-width: 100%; height: auto; }
.uhddr-article-content .wp-block-gallery { margin: 28px 0; }

.uhddr-article-tags { padding: 0 42px 28px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-family: Arial, sans-serif; font-size: 12px; }
.uhddr-article-tags span { font-weight: 700; color: var(--uhddr-navy); }
.uhddr-article-tags a { padding: 5px 8px; background: #eef2f6; color: #53657a; text-decoration: none; }

.uhddr-post-nav { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid rgba(7,39,70,.1); }
.uhddr-post-nav > div { min-width: 0; }
.uhddr-post-nav > div + div { border-left: 1px solid rgba(7,39,70,.1); text-align: right; }
.uhddr-post-nav a { display: flex; flex-direction: column; gap: 6px; padding: 24px 30px; min-height: 105px; color: var(--uhddr-navy); text-decoration: none; }
.uhddr-post-nav span { font-family: Arial, sans-serif; font-size: 11px; color: #718095; text-transform: uppercase; letter-spacing: .06em; }
.uhddr-post-nav strong { font-family: Georgia, 'Times New Roman', serif; font-size: 16px; line-height: 1.2; }

.uhddr-article-sidebar { display: grid; gap: 18px; }
.uhddr-single-latest { padding: 20px; background: #fff; border: 1px solid rgba(7,39,70,.13); box-shadow: 0 8px 24px rgba(7,39,70,.05); }
.uhddr-single-latest h3 { margin: 0 0 10px; color: var(--uhddr-navy); font-size: 23px; }
.uhddr-single-latest__item { display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid rgba(7,39,70,.08); color: var(--uhddr-navy); text-decoration: none; }
.uhddr-single-latest__item:first-of-type { border-top: 0; }
.uhddr-single-latest__thumb { width: 72px; height: 58px; overflow: hidden; background: #eef2f6; }
.uhddr-single-latest__thumb img { width: 100%; height: 100%; object-fit: cover; }
.uhddr-single-latest__item time { display: block; margin-bottom: 3px; color: #8390a1; font-family: Arial, sans-serif; font-size: 10px; }
.uhddr-single-latest__item strong { display: block; font-family: Georgia, 'Times New Roman', serif; font-size: 14px; line-height: 1.2; }
.uhddr-single-latest__all { display: inline-block; margin-top: 10px; color: var(--uhddr-red); font-family: Arial, sans-serif; font-size: 12px; font-weight: 800; text-decoration: none; }

.uhddr-archive-hero__eyebrow { margin: 0 0 8px; color: #e3bd62; font-family: Arial, sans-serif; font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.uhddr-archive-hero > .uhddr-container > p:last-child,
.uhddr-archive-description { max-width: 780px; margin: 14px 0 0; color: rgba(255,255,255,.76); font-family: Arial, sans-serif; font-size: 15px; line-height: 1.6; }
.uhddr-archive-content { padding: 42px 0 60px; }
.uhddr-archive-toolbar { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 22px; padding-bottom: 14px; border-bottom: 1px solid rgba(7,39,70,.12); }
.uhddr-archive-toolbar h2 { margin: 0; color: var(--uhddr-navy); font-size: 34px; }
.uhddr-archive-toolbar span { color: #79889a; font-family: Arial, sans-serif; font-size: 12px; }
.uhddr-archive-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.uhddr-archive-card .uhddr-news-card__body { min-height: 275px; }

.uhddr-pagination { margin-top: 36px; }
.uhddr-pagination ul, .uhddr-pagination .nav-links { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.uhddr-pagination a, .uhddr-pagination span.page-numbers { display: inline-flex; min-width: 40px; min-height: 40px; align-items: center; justify-content: center; padding: 0 12px; border: 1px solid rgba(7,39,70,.14); background: #fff; color: var(--uhddr-navy); font-family: Arial, sans-serif; font-size: 12px; text-decoration: none; }
.uhddr-pagination .current { background: var(--uhddr-navy) !important; color: #fff !important; border-color: var(--uhddr-navy) !important; }

@media (max-width: 1100px) {
  .uhddr-article-layout { grid-template-columns: minmax(0, 1fr) 290px; gap: 24px; }
  .uhddr-archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .uhddr-article-layout { grid-template-columns: 1fr; }
  .uhddr-article-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .uhddr-article-content { padding: 28px 26px; }
  .uhddr-article-tags { padding-left: 26px; padding-right: 26px; }
}
@media (max-width: 640px) {
  .uhddr-article-hero, .uhddr-archive-hero { padding-top: 28px; padding-bottom: 32px; }
  .uhddr-breadcrumbs { margin-bottom: 18px; }
  .uhddr-article-hero h1, .uhddr-archive-hero h1 { font-size: 34px; }
  .uhddr-article-layout { padding-top: 24px; }
  .uhddr-article-content { padding: 24px 20px; font-size: 16px; }
  .uhddr-article-tags { padding-left: 20px; padding-right: 20px; }
  .uhddr-post-nav { grid-template-columns: 1fr; }
  .uhddr-post-nav > div + div { border-left: 0; border-top: 1px solid rgba(7,39,70,.1); text-align: left; }
  .uhddr-article-sidebar { grid-template-columns: 1fr; }
  .uhddr-archive-grid { grid-template-columns: 1fr; }
  .uhddr-archive-toolbar { align-items: flex-start; flex-direction: column; }
}


/* =========================================================
   v1.6.1 — fina dorada pojedinačne vijesti i arhive
   ========================================================= */
.single-post #content.site-content,
.page-template-page-vijesti #content.site-content,
.uhddr-vijesti-page #content.site-content,
.archive #content.site-content {
  margin: 0 !important;
  padding: 0 !important;
}

.uhddr-article-hero,
.uhddr-archive-hero {
  padding-top: 28px;
  padding-bottom: 32px;
}

.uhddr-breadcrumbs {
  margin-bottom: 18px;
  font-size: 11px;
}

.uhddr-article-hero__content {
  max-width: 900px;
}

.uhddr-article-hero h1,
.uhddr-archive-hero h1 {
  font-size: clamp(34px, 3.3vw, 52px);
  line-height: 1.04;
}

.uhddr-article-meta {
  margin-top: 14px;
  font-size: 12px;
}

.uhddr-article-layout {
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 30px;
  padding-top: 32px;
  padding-bottom: 52px;
}

.uhddr-article-featured {
  background: #eef2f6;
}

.uhddr-article-featured img {
  width: 100%;
  max-height: 590px;
  object-fit: cover;
  object-position: center center;
}

.uhddr-article-content {
  padding: 30px 36px 26px;
  font-size: 16.5px;
  line-height: 1.72;
}

.uhddr-article-content > p,
.uhddr-article-content > ul,
.uhddr-article-content > ol,
.uhddr-article-content > blockquote,
.uhddr-article-content > h2,
.uhddr-article-content > h3,
.uhddr-article-content > h4 {
  max-width: 920px;
}

.uhddr-article-tags {
  padding: 0 36px 24px;
}

.uhddr-post-nav a {
  min-height: 96px;
  padding: 20px 24px;
}

.uhddr-post-nav strong {
  font-size: 15px;
}

.uhddr-article-sidebar {
  position: sticky;
  top: 22px;
  align-self: start;
}

.uhddr-article-sidebar .uhddr-sidebar-card,
.uhddr-single-latest {
  box-shadow: 0 8px 22px rgba(7,39,70,.045);
}

.uhddr-article-sidebar .uhddr-sidebar-card > h3,
.uhddr-single-latest h3 {
  font-size: 21px;
}

.uhddr-article-sidebar .uhddr-quick-grid a {
  min-height: 92px;
  padding: 16px;
}

.uhddr-single-latest {
  padding: 18px;
}

.uhddr-single-latest__item {
  grid-template-columns: 66px 1fr;
  gap: 10px;
  padding: 10px 0;
}

.uhddr-single-latest__thumb {
  width: 66px;
  height: 54px;
}

.uhddr-single-latest__item strong {
  font-size: 13px;
  line-height: 1.22;
}

.uhddr-archive-content {
  padding-top: 34px;
}

.uhddr-archive-toolbar {
  margin-bottom: 20px;
}

.uhddr-archive-toolbar h2 {
  font-size: 30px;
}

.uhddr-archive-grid {
  gap: 22px;
}

.uhddr-archive-card .uhddr-news-card__image {
  aspect-ratio: 16 / 9;
  height: auto;
}

.uhddr-archive-card .uhddr-news-card__body {
  min-height: 250px;
}

@media (max-width: 1100px) {
  .uhddr-article-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 22px;
  }
}

@media (max-width: 820px) {
  .uhddr-article-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .uhddr-article-hero,
  .uhddr-archive-hero {
    padding-top: 22px;
    padding-bottom: 26px;
  }
  .uhddr-article-hero h1,
  .uhddr-archive-hero h1 {
    font-size: 32px;
  }
  .uhddr-article-content {
    padding: 22px 18px;
  }
  .uhddr-article-tags {
    padding-left: 18px;
    padding-right: 18px;
  }
}


/* =========================================================
   v1.6.5 — /vijesti/ + kompaktniji razmak iznad sadržaja
   ========================================================= */
body.single-post #page #content.site-content,
body.uhddr-vijesti-page #page #content.site-content,
body.page-template-page-vijesti #page #content.site-content,
body.archive #page #content.site-content {
  margin: 0 !important;
  padding: 0 !important;
}

main.uhddr-single-main,
main.uhddr-news-archive {
  margin: 0 !important;
  padding: 0 !important;
}

.uhddr-article-hero,
.uhddr-archive-hero {
  margin-top: 0 !important;
  padding-top: 20px;
  padding-bottom: 24px;
}

.uhddr-breadcrumbs {
  margin-top: 0;
  margin-bottom: 12px;
}

.uhddr-article-category {
  margin-bottom: 9px;
}

.uhddr-article-meta {
  margin-top: 10px;
}

.uhddr-article-layout {
  padding-top: 24px;
  padding-bottom: 46px;
}

.uhddr-archive-content {
  padding-top: 24px;
  padding-bottom: 50px;
}

@media (max-width: 640px) {
  .uhddr-article-hero,
  .uhddr-archive-hero {
    padding-top: 16px;
    padding-bottom: 20px;
  }
  .uhddr-breadcrumbs { margin-bottom: 10px; }
  .uhddr-article-layout,
  .uhddr-archive-content { padding-top: 18px; }
}


/* =========================================================
   v1.7.0 — dinamička stranica Projekti udruge
   ========================================================= */
body.uhddr-projekti-page #page #content.site-content {
  margin: 0 !important;
  padding: 0 !important;
}

.uhddr-projects-archive {
  margin: 0 !important;
  padding: 0 !important;
  background: #f7f9fb;
}

.uhddr-projects-hero {
  margin: 0;
  padding: 22px 0 28px;
  color: #fff;
  background:
    radial-gradient(circle at 86% 20%, rgba(196,154,58,.17), transparent 29%),
    linear-gradient(135deg, #061e36 0%, #072746 62%, #0c3a64 100%);
  border-bottom: 3px solid var(--uhddr-gold);
}

.uhddr-projects-hero__eyebrow {
  margin: 0 0 7px;
  color: #e3bd62;
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
}

.uhddr-projects-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(34px, 3.3vw, 52px);
  line-height: 1.04;
  letter-spacing: -.02em;
}

.uhddr-projects-hero > .uhddr-container > p:last-child {
  max-width: 820px;
  margin: 12px 0 0;
  color: rgba(255,255,255,.78);
  font-family: Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

.uhddr-projects-content {
  padding: 28px 0 54px;
}

.uhddr-projects-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(7,39,70,.12);
}

.uhddr-projects-toolbar__eyebrow {
  margin: 0 0 4px;
  color: var(--uhddr-gold);
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.uhddr-projects-toolbar h2 {
  margin: 0;
  color: var(--uhddr-navy);
  font-size: 31px;
}

.uhddr-projects-toolbar > span {
  color: #79889a;
  font-family: Arial, sans-serif;
  font-size: 12px;
}

.uhddr-projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.uhddr-project-card {
  display: flex;
  min-width: 0;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(7,39,70,.11);
  box-shadow: 0 10px 28px rgba(7,39,70,.055);
  transition: transform .2s ease, box-shadow .2s ease;
}

.uhddr-project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 34px rgba(7,39,70,.10);
}

.uhddr-project-card__image {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e9edf2;
}

.uhddr-project-card__image > img,
.uhddr-project-card__placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.uhddr-project-card__placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #eef2f6, #f9fafb);
}

.uhddr-project-card__placeholder img {
  width: 92px;
  height: 92px;
  object-fit: contain;
  opacity: .42;
}

.uhddr-project-card__badge {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 6px 9px;
  background: var(--uhddr-navy);
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.uhddr-project-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 255px;
  padding: 22px;
}

.uhddr-project-card__meta {
  margin-bottom: 9px;
  color: #9b762c;
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
}

.uhddr-project-card h3 {
  margin: 0 0 12px;
  font-size: 23px;
  line-height: 1.18;
}

.uhddr-project-card h3 a {
  color: var(--uhddr-navy);
  text-decoration: none;
}

.uhddr-project-card__body > p {
  margin: 0 0 18px;
  color: #536477;
  font-family: Arial, sans-serif;
  font-size: 14px;
  line-height: 1.65;
}

.uhddr-project-card__more {
  margin-top: auto;
  color: var(--uhddr-red);
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-decoration: none;
  text-transform: uppercase;
}

.uhddr-projects-empty {
  padding: 42px;
  border: 1px dashed rgba(7,39,70,.2);
  background: #fff;
  text-align: center;
}

.uhddr-projects-empty h2 {
  margin: 0 0 9px;
  color: var(--uhddr-navy);
}

.uhddr-projects-empty p {
  margin: 0;
  color: #65758a;
  font-family: Arial, sans-serif;
}

@media (max-width: 1100px) {
  .uhddr-projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .uhddr-projects-hero { padding-top: 16px; padding-bottom: 20px; }
  .uhddr-projects-hero h1 { font-size: 32px; }
  .uhddr-projects-content { padding-top: 18px; }
  .uhddr-projects-toolbar { align-items: flex-start; flex-direction: column; }
  .uhddr-projects-grid { grid-template-columns: 1fr; }
  .uhddr-project-card__body { min-height: 0; }
}

/* =========================================================
   v1.8.0 — Povezana naslovnica + završni footer
   ========================================================= */

.uhddr-home-links {
  padding: 24px 0;
  border-bottom: 1px solid rgba(7,39,70,.1);
  background: #fff;
}

.uhddr-home-links__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  border: 1px solid rgba(7,39,70,.12);
  background: #fff;
  box-shadow: 0 8px 26px rgba(7,39,70,.045);
}

.uhddr-home-link {
  min-width: 0;
  min-height: 96px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-right: 1px solid rgba(7,39,70,.1);
  color: var(--uhddr-navy);
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}

.uhddr-home-link:last-child { border-right: 0; }

.uhddr-home-link:hover {
  background: #f7f9fb;
  color: var(--uhddr-navy);
}

.uhddr-home-link__icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--uhddr-navy);
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: 800;
}

.uhddr-home-link strong,
.uhddr-home-link small {
  display: block;
}

.uhddr-home-link strong {
  margin-bottom: 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.2;
}

.uhddr-home-link small {
  color: #69798a;
  font-family: Arial, sans-serif;
  font-size: 12px;
  line-height: 1.45;
}

.uhddr-home-cta {
  padding: 42px 0;
  border-top: 4px solid var(--uhddr-gold);
  background: linear-gradient(135deg,#061e36 0%,#072746 58%,#0c3a64 100%);
  color: #fff;
}

.uhddr-home-cta__inner {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 40px;
  align-items: center;
}

.uhddr-home-cta__eyebrow {
  margin: 0 0 8px;
  color: #e4c36c;
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .15em;
}

.uhddr-home-cta h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(28px,3vw,40px);
  line-height: 1.12;
}

.uhddr-home-cta__copy > p:last-child {
  max-width: 760px;
  margin: 0;
  color: rgba(255,255,255,.78);
  font-family: Arial, sans-serif;
  font-size: 14px;
  line-height: 1.65;
}

.uhddr-home-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.uhddr-home-cta__button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid transparent;
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

.uhddr-home-cta__button--gold { background: var(--uhddr-gold); color: var(--uhddr-navy); }
.uhddr-home-cta__button--red { background: var(--uhddr-red); color: #fff; }
.uhddr-home-cta__button--outline { border-color: rgba(255,255,255,.45); color: #fff; background: transparent; }
.uhddr-home-cta__button:hover { filter: brightness(.96); }

.uhddr-footer {
  position: relative;
  z-index: 2;
  color: #dbe5ee;
  background: #051b30;
}

.uhddr-footer__main {
  padding: 54px 0 46px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.uhddr-footer__grid {
  display: grid;
  grid-template-columns: 1.45fr .9fr .95fr 1.05fr;
  gap: 38px;
  align-items: start;
}

.uhddr-footer__brand {
  min-width: 0;
}

.uhddr-footer__logo {
  float: left;
  width: 78px;
  height: 78px;
  margin: 0 16px 10px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 50%;
  background: #fff;
}

.uhddr-footer__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.uhddr-footer__brand h2 {
  margin: 3px 0 5px;
  color: #fff;
  font-size: 24px;
  line-height: 1.15;
}

.uhddr-footer__brand > div > p {
  margin: 0;
  color: #bdcad6;
  font-family: Arial, sans-serif;
  font-size: 12px;
  line-height: 1.55;
}

.uhddr-footer__motto {
  clear: both;
  margin: 22px 0 0;
  padding-left: 14px;
  border-left: 3px solid var(--uhddr-gold);
  color: #e5c36b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.5;
}

.uhddr-footer__column h3 {
  margin: 0 0 17px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(196,154,58,.45);
  color: #fff;
  font-size: 17px;
}

.uhddr-footer__column ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.uhddr-footer__column li {
  margin: 0;
  padding: 7px 0;
}

.uhddr-footer a {
  color: #c7d4df;
  text-decoration: none;
}

.uhddr-footer a:hover { color: #fff; }

.uhddr-footer__column li a,
.uhddr-footer__contact p {
  font-family: Arial, sans-serif;
  font-size: 13px;
  line-height: 1.55;
}

.uhddr-footer__contact p {
  margin: 0 0 13px;
  color: #c7d4df;
}

.uhddr-footer__donation {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid rgba(196,154,58,.34);
  background: rgba(255,255,255,.025);
}

.uhddr-footer__donation span,
.uhddr-footer__donation strong {
  display: block;
}

.uhddr-footer__donation span {
  margin-bottom: 5px;
  color: #b9c8d5;
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.uhddr-footer__donation strong {
  color: #e5c36b;
  font-family: "Courier New", monospace;
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.uhddr-footer__oib {
  color: #94a7b8 !important;
  font-size: 11px !important;
}

.uhddr-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  background: #041525;
}

.uhddr-footer__bottom-inner {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.uhddr-footer__bottom p,
.uhddr-footer__bottom a,
.uhddr-footer__bottom span {
  margin: 0;
  color: #879bac;
  font-family: Arial, sans-serif;
  font-size: 11px;
}

.uhddr-footer__bottom div {
  display: flex;
  gap: 9px;
}

@media (max-width: 1050px) {
  .uhddr-home-links__grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .uhddr-home-link:nth-child(2) { border-right: 0; }
  .uhddr-home-link:nth-child(-n+2) { border-bottom: 1px solid rgba(7,39,70,.1); }
  .uhddr-footer__grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 820px) {
  .uhddr-home-cta__inner { grid-template-columns: 1fr; gap: 24px; }
  .uhddr-home-cta__actions { justify-content: flex-start; }
}

@media (max-width: 640px) {
  .uhddr-home-links { padding: 16px 0; }
  .uhddr-home-links__grid { grid-template-columns: 1fr; }
  .uhddr-home-link { min-height: 84px; border-right: 0 !important; border-bottom: 1px solid rgba(7,39,70,.1); }
  .uhddr-home-link:last-child { border-bottom: 0; }
  .uhddr-home-cta { padding: 32px 0; }
  .uhddr-home-cta__actions { display: grid; grid-template-columns: 1fr; }
  .uhddr-footer__main { padding: 40px 0 34px; }
  .uhddr-footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .uhddr-footer__bottom-inner { min-height: 72px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 7px; }
}


/* =========================================================
   v1.8.1 — kompaktnija naslovnica + popis projekata
   ========================================================= */
.uhddr-project-mini-list {
  position: relative;
  z-index: 1;
  margin: 2px 0 16px;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(7,39,70,.10);
}

.uhddr-project-mini-list li {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid rgba(7,39,70,.09);
}

.uhddr-sidebar-card--project .uhddr-project-mini-list a {
  display: block;
  padding: 10px 0 9px 16px;
  position: relative;
  color: var(--uhddr-navy);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.28;
}

.uhddr-sidebar-card--project .uhddr-project-mini-list a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--uhddr-gold);
}

.uhddr-sidebar-card--project .uhddr-project-mini-list a:hover {
  color: var(--uhddr-red);
}

.uhddr-sidebar-card--project .uhddr-project-mini-list__all {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 1px;
}

/* =========================================================
   v1.8.3 — ispravak mobilnog prikaza pojedinačne vijesti
   ========================================================= */
@media (max-width: 900px) {
  .uhddr-article-layout {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 24px !important;
  }

  .uhddr-article,
  .uhddr-article-sidebar {
    width: 100%;
    min-width: 0;
  }

  .uhddr-article-sidebar {
    position: static !important;
    grid-template-columns: 1fr !important;
  }

  .uhddr-article-featured img {
    width: 100%;
    height: auto;
    max-height: none;
  }
}

@media (max-width: 640px) {
  .uhddr-article-layout {
    width: min(100% - 20px, 1180px);
    padding-top: 18px !important;
    padding-bottom: 36px !important;
  }

  .uhddr-article-hero .uhddr-container {
    width: min(100% - 20px, 1180px);
  }

  .uhddr-article-hero h1 {
    font-size: 30px !important;
    line-height: 1.08 !important;
  }

  .uhddr-article-meta {
    flex-wrap: wrap;
    gap: 8px 14px;
  }

  .uhddr-article-content {
    padding: 22px 18px !important;
    font-size: 16px !important;
    line-height: 1.7 !important;
  }

  .uhddr-article-content img,
  .uhddr-article-content figure,
  .uhddr-article-content iframe,
  .uhddr-article-content video {
    max-width: 100% !important;
    height: auto;
  }

  .uhddr-article-sidebar .uhddr-sidebar-card,
  .uhddr-single-latest {
    width: 100%;
  }

  .uhddr-article-sidebar .uhddr-quick-grid {
    grid-template-columns: 1fr !important;
  }
}

/* =========================================================
   v1.8.4 — TOPBAR MOBITEL
   adresa + email u jednom redu
   ========================================================= */

@media (max-width: 900px) {

    .uhddr-topbar {
        min-height: 36px;
    }

    .uhddr-topbar__inner {
        min-height: 36px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 10px !important;
        flex-wrap: nowrap !important;
    }

    .uhddr-topbar__label {
        display: none !important;
    }

    .uhddr-contact {
        width: 100%;
        display: flex !important;
        align-items: center !important;
        gap: 14px !important;
        flex-wrap: nowrap !important;
        overflow: hidden;
    }

    .uhddr-contact__item {
        display: inline-flex !important;
        align-items: center !important;
        flex: 0 1 auto;
        gap: 5px;
        min-width: 0;
        white-space: nowrap !important;
        font-size: 12px !important;
        line-height: 1.2 !important;
    }

    .uhddr-contact__item span {
        white-space: nowrap !important;
    }

    .uhddr-contact__icon {
        width: 13px !important;
        height: 13px !important;
        flex: 0 0 13px !important;
    }
}

@media (max-width: 620px) {

    .uhddr-topbar .uhddr-container {
        width: calc(100% - 20px) !important;
    }

    .uhddr-contact {
        gap: 8px !important;
    }

    .uhddr-contact__item {
        font-size: 11px !important;
    }
}

@media (max-width: 500px) {

    .uhddr-contact__email {
        display: none !important;
    }

    .uhddr-contact__address {
        max-width: 100%;
    }
}

