/* ================================================
   Studomat BiH – Glavni CSS
   Latinica, ijekavski
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&family=DM+Sans:wght@400;500;600&display=swap');

/* ── RESET & VARIJABLE ─────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #1a56db;
  --primary-light: #e8f0fd;
  --primary-dark: #1140b0;
  --accent: #f97316;
  --green: #16a34a;
  --green-light: #dcfce7;
  --purple: #7c3aed;
  --purple-light: #ede9fe;
  --pink: #db2777;
  --pink-light: #fce7f3;
  --yellow: #ca8a04;
  --yellow-light: #fef9c3;
  --bg: #f1f5f9;
  --surface: #ffffff;
  --border: #e2e8f0;
  --text: #1e293b;
  --text-sec: #64748b;
  --text-muted: #94a3b8;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,.05), 0 4px 16px rgba(0,0,0,.07);
  --shadow-md: 0 4px 24px rgba(0,0,0,.10);
  --nav-h: 64px;
  --container: 1300px;
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Sora', sans-serif;
  line-height: 1.25;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── SCROLLBAR ─────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ── CONTAINER ─────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ═══════════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════════ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(10px);
  border-bottom: 1.5px solid var(--border);
  height: var(--nav-h);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: var(--text);
  white-space: nowrap;
  margin-right: 12px;
  display: flex;
  align-items: center;
  gap: 1px;
}
.nav-logo span { color: var(--primary); }
.nav-logo em {
  font-style: normal;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  margin-left: 6px;
  letter-spacing: .5px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  overflow-x: auto;
}
.nav-menu::-webkit-scrollbar { display: none; }

.nav-menu a {
  padding: 7px 11px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-sec);
  white-space: nowrap;
  transition: all .15s;
}
.nav-menu a:hover { background: var(--bg); color: var(--text); }
.nav-menu a.active { background: var(--primary-light); color: var(--primary); }

.nav-city {
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  white-space: nowrap;
  margin-left: auto;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
  margin-left: 8px;
  transition: background .15s;
}
.hamburger:hover { background: var(--bg); }
.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  display: block;
  transition: transform .25s, opacity .25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0; bottom: 0;
  background: #fff;
  z-index: 190;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a {
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  transition: background .15s;
}
.mobile-menu a:hover,
.mobile-menu a.active { background: var(--primary-light); color: var(--primary); }

/* ═══════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════ */
.hero {
  background: linear-gradient(135deg, #1a56db 0%, #1140b0 55%, #7c3aed 100%);
  padding: 60px 20px 52px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 350px; height: 350px;
  background: rgba(255,255,255,.06);
  border-radius: 50%;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -100px; left: 25%;
  width: 240px; height: 240px;
  background: rgba(255,255,255,.04);
  border-radius: 50%;
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; max-width: 680px; }

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(28px, 4.5vw, 54px);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 18px;
}
.hero h1 span { color: #fcd34d; }

.hero > .container > .hero-content > p {
  font-size: 17px;
  opacity: .88;
  max-width: 520px;
  margin-bottom: 28px;
  line-height: 1.65;
}

.hero-search {
  display: flex;
  gap: 10px;
  max-width: 540px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.hero-search input {
  flex: 1;
  min-width: 200px;
  padding: 13px 20px;
  border-radius: 30px;
  border: none;
  font-size: 15px;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  background: rgba(255,255,255,.95);
  color: var(--text);
}
.hero-search input::placeholder { color: var(--text-muted); }
.hero-search button {
  background: var(--accent);
  color: #fff;
  padding: 13px 26px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  transition: opacity .15s, transform .15s;
}
.hero-search button:hover { opacity: .9; transform: translateY(-1px); }

.hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat strong {
  display: block;
  font-size: 26px;
  font-weight: 800;
  font-family: 'Sora', sans-serif;
}
.hero-stat span { font-size: 13px; opacity: .78; }

/* ═══════════════════════════════════════════════
   BRZA NAVIGACIJA
═══════════════════════════════════════════════ */
.quick-nav {
  background: var(--surface);
  border-bottom: 1.5px solid var(--border);
  padding: 20px 0;
}

.quick-nav-grid {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.quick-nav-grid::-webkit-scrollbar { display: none; }

.qn-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  background: var(--surface);
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  transition: all .18s;
  flex-shrink: 0;
  min-width: 80px;
}
.qn-card:hover { border-color: var(--primary); background: var(--primary-light); color: var(--primary); transform: translateY(-2px); }

.qn-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}

/* ═══════════════════════════════════════════════
   SEKCIJE
═══════════════════════════════════════════════ */
.section { padding: 48px 0; }
.section-alt { background: var(--surface); }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 12px;
}
.section-title {
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 700;
}
.section-title span { color: var(--primary); }

.see-all {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 20px;
  border: 1.5px solid var(--primary-light);
  background: var(--primary-light);
  white-space: nowrap;
  transition: all .15s;
}
.see-all:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ═══════════════════════════════════════════════
   GRID SISTEMI
═══════════════════════════════════════════════ */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

/* ═══════════════════════════════════════════════
   NEWS CARD
═══════════════════════════════════════════════ */
.news-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.news-img {
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 46px;
}

.news-body { padding: 18px; flex: 1; display: flex; flex-direction: column; gap: 8px; }

.news-cat {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  align-self: flex-start;
}

.news-body h3 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  flex: 1;
}

.news-body p {
  font-size: 13px;
  color: var(--text-sec);
  line-height: 1.55;
}

.news-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
  padding-top: 8px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.news-meta a { color: var(--primary); font-weight: 600; }
.news-meta a:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════
   STIPENDIJA CARD
═══════════════════════════════════════════════ */
.stip-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform .2s, box-shadow .2s;
}
.stip-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.stip-tip {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
}

.stip-card h3 { font-size: 15px; font-weight: 600; flex: 1; }
.stip-iznos { font-size: 22px; font-weight: 800; font-family: 'Sora', sans-serif; }
.stip-rok { font-size: 12px; color: var(--text-muted); }

/* ═══════════════════════════════════════════════
   GUMBI
═══════════════════════════════════════════════ */
.btn-primary {
  display: block;
  text-align: center;
  background: var(--primary);
  color: #fff;
  padding: 10px 18px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  transition: opacity .15s, transform .15s;
}
.btn-primary:hover { opacity: .88; transform: translateY(-1px); }

.btn-outline {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 20px;
  border: 2px solid #fff;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: all .15s;
}
.btn-outline:hover { background: #fff; color: var(--primary); }

.btn-sec {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  transition: all .15s;
  text-align: center;
}
.btn-sec:hover { border-color: var(--primary); color: var(--primary); }

/* ═══════════════════════════════════════════════
   POSAO CARD
═══════════════════════════════════════════════ */
.posao-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  padding: 18px;
  transition: transform .2s, box-shadow .2s;
  color: var(--text);
}
.posao-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--primary); }

.posao-logo {
  width: 46px; height: 46px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.posao-info { flex: 1; min-width: 0; }
.posao-info h3 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.posao-firma { font-size: 13px; color: var(--text-sec); margin-bottom: 8px; }

.posao-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
  background: var(--bg);
  color: var(--text-sec);
  border: 1px solid var(--border);
}

.posao-plata {
  font-size: 14px;
  font-weight: 700;
  color: var(--green);
  white-space: nowrap;
  margin-left: auto;
}

/* ═══════════════════════════════════════════════
   DVA STUPCA SEKCIJA
═══════════════════════════════════════════════ */
.two-col-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

/* ═══════════════════════════════════════════════
   SMJEŠTAJ
═══════════════════════════════════════════════ */
.smj-list { display: flex; flex-direction: column; gap: 12px; }

.smj-card {
  display: block;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  padding: 16px;
  transition: all .18s;
  color: var(--text);
}
.smj-card:hover { background: var(--surface); border-color: var(--primary); box-shadow: var(--shadow); }

.smj-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.smj-tip {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  background: var(--primary-light);
  color: var(--primary);
}

.smj-status {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
}
.smj-status.free { background: var(--green-light); color: var(--green); }
.smj-status.full { background: #fee2e2; color: #dc2626; }

.smj-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.smj-card p { font-size: 13px; color: var(--text-sec); margin-bottom: 6px; }
.smj-card strong { font-size: 16px; font-weight: 700; color: var(--primary); }

/* ═══════════════════════════════════════════════
   DOGAĐAJI
═══════════════════════════════════════════════ */
.dog-list { display: flex; flex-direction: column; gap: 12px; }

.dog-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  padding: 14px;
  transition: all .18s;
  color: var(--text);
}
.dog-card:hover { background: var(--surface); border-color: var(--primary); box-shadow: var(--shadow); }

.dog-datum {
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  text-align: center;
  min-width: 50px;
  flex-shrink: 0;
  color: #fff;
}
.dog-datum strong { display: block; font-size: 20px; font-weight: 800; font-family: 'Sora', sans-serif; }
.dog-datum span { font-size: 11px; opacity: .9; }

.dog-info h3 { font-size: 14px; font-weight: 600; margin-bottom: 5px; line-height: 1.4; }
.dog-info p { font-size: 12px; color: var(--text-sec); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

/* ═══════════════════════════════════════════════
   POPUSTI
═══════════════════════════════════════════════ */
.pop-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  padding: 16px;
  transition: transform .2s, box-shadow .2s;
}
.pop-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.pop-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.pop-card h3 { font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.pop-card p { font-size: 13px; color: var(--green); font-weight: 600; }

/* ═══════════════════════════════════════════════
   FAKULTETI
═══════════════════════════════════════════════ */
.fak-card {
  display: block;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  padding: 22px;
  transition: transform .2s, box-shadow .2s;
  color: var(--text);
}
.fak-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--primary); }

.fak-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.fak-ikona {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}

.fak-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 2px; }
.fak-grad { font-size: 12px; color: var(--text-sec); }
.fak-opis { font-size: 13px; color: var(--text-sec); line-height: 1.6; margin-bottom: 16px; }

.fak-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-sec);
}
.fak-footer strong { font-weight: 700; }

/* ═══════════════════════════════════════════════
   BRUCOŠE CARD
═══════════════════════════════════════════════ */
.bru-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  padding: 20px;
  transition: transform .2s, box-shadow .2s;
  color: var(--text);
}
.bru-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.bru-ikona {
  font-size: 26px;
  width: 50px; height: 50px;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.bru-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 5px; }
.bru-card p { font-size: 13px; color: var(--text-sec); line-height: 1.55; }

/* ═══════════════════════════════════════════════
   INFO BANNER
═══════════════════════════════════════════════ */
.info-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--purple) 100%);
  border-radius: var(--radius);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  color: #fff;
}

.info-banner-icon { font-size: 36px; flex-shrink: 0; }

.info-banner h3 { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.info-banner p { font-size: 14px; opacity: .88; flex: 1; }
.info-banner strong { color: #fcd34d; }

/* ═══════════════════════════════════════════════
   PAGE HERO (unutarnje stranice)
═══════════════════════════════════════════════ */
.page-hero {
  background: var(--surface);
  border-bottom: 1.5px solid var(--border);
  padding: 40px 20px;
}

.page-hero-inner { max-width: var(--container); margin: 0 auto; }

.breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { text-decoration: underline; }

.page-hero h1 {
  font-size: clamp(22px, 3.5vw, 40px);
  font-weight: 800;
  margin-bottom: 10px;
}

.page-hero p {
  font-size: 16px;
  color: var(--text-sec);
  max-width: 640px;
  line-height: 1.65;
}

/* ═══════════════════════════════════════════════
   TABOVI
═══════════════════════════════════════════════ */
.tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.tab-btn {
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-sec);
  border: 1.5px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  transition: all .15s;
}
.tab-btn:hover { border-color: var(--primary); color: var(--primary); }
.tab-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ═══════════════════════════════════════════════
   INFO BOX
═══════════════════════════════════════════════ */
.info-box {
  background: var(--primary-light);
  border: 1.5px solid rgba(26,86,219,.15);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.info-box-icon { font-size: 26px; flex-shrink: 0; }

.info-box h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--primary);
}

.info-box p { font-size: 14px; color: var(--text-sec); line-height: 1.65; }

/* ═══════════════════════════════════════════════
   KARTICA SA SADRŽAJEM (unutarnje stranice)
═══════════════════════════════════════════════ */
.content-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  padding: 24px;
}

.content-card h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1.5px solid var(--border);
}

/* ═══════════════════════════════════════════════
   GRAD CARD
═══════════════════════════════════════════════ */
.grad-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  padding: 24px;
  text-align: center;
  transition: all .2s;
}
.grad-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.grad-card.aktivan { border-color: var(--primary); }

.grad-card .grad-ikona { font-size: 40px; margin-bottom: 12px; }
.grad-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.grad-card .grad-entitet { font-size: 13px; color: var(--text-sec); margin-bottom: 16px; }

.grad-stats {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 16px;
}
.grad-stat { text-align: center; }
.grad-stat strong { display: block; font-size: 18px; font-weight: 700; }
.grad-stat span { font-size: 12px; color: var(--text-sec); }

.grad-status {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
}
.grad-status.aktivan { background: var(--green-light); color: var(--green); }
.grad-status.uskoro { background: var(--bg); color: var(--text-muted); border: 1px solid var(--border); }

/* ═══════════════════════════════════════════════
   FORMA (pretraga, kontakt...)
═══════════════════════════════════════════════ */
.form-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.form-group { flex: 1; min-width: 200px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--surface);
  outline: none;
  transition: border-color .15s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--primary); }

.form-group textarea { resize: vertical; min-height: 100px; }

/* ═══════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════ */
footer {
  background: #1e293b;
  color: rgba(255,255,255,.72);
  margin-top: 0;
  padding: 52px 20px 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}

.footer-logo {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: #fff;
  margin-bottom: 12px;
  display: block;
}
.footer-logo span { color: var(--accent); }
.footer-logo em { font-style: normal; background: rgba(255,255,255,.15); font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 20px; margin-left: 6px; }

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 18px;
}

.footer-social {
  display: flex;
  gap: 8px;
}
.footer-social a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.1);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,.8);
  transition: background .15s;
}
.footer-social a:hover { background: var(--primary); color: #fff; }

.footer-col h4 {
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 9px; }

.footer-col ul li a {
  font-size: 13px;
  color: rgba(255,255,255,.65);
  transition: color .15s;
}
.footer-col ul li a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

/* ═══════════════════════════════════════════════
   HERO – dvostupčani layout s fotografijom
═══════════════════════════════════════════════ */
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
}

.hero-image {
  position: relative;
  z-index: 1;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  max-height: 360px;
  aspect-ratio: 4/3;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-image { display: none; }
}

/* ── News card sa fotografijom ─── */
.news-img-photo {
  height: 160px !important;
  overflow: hidden;
}

/* ── Fade-in animacija ─────────── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger za grid elemente */
.grid-2 .fade-in:nth-child(2),
.grid-3 .fade-in:nth-child(2),
.grid-4 .fade-in:nth-child(2) { transition-delay: 0.08s; }
.grid-2 .fade-in:nth-child(3),
.grid-3 .fade-in:nth-child(3),
.grid-4 .fade-in:nth-child(3) { transition-delay: 0.16s; }
.grid-2 .fade-in:nth-child(4),
.grid-3 .fade-in:nth-child(4),
.grid-4 .fade-in:nth-child(4) { transition-delay: 0.24s; }
.grid-3 .fade-in:nth-child(5),
.grid-4 .fade-in:nth-child(5) { transition-delay: 0.32s; }
.grid-3 .fade-in:nth-child(6),
.grid-4 .fade-in:nth-child(6) { transition-delay: 0.40s; }

/* ── Poboljšani hover za news card ─ */
.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

/* ── Stip card poboljšanje ───────── */
.stip-card {
  position: relative;
  overflow: hidden;
}
.stip-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 80px; height: 80px;
  border-radius: 0 var(--radius) 0 100%;
  background: var(--bg);
  opacity: .5;
}


@media (max-width: 960px) {
  .nav-menu { display: none; }
  .hamburger { display: flex; }
  .nav-city { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .two-col-section { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 640px) {
  .hero { padding: 40px 20px; }
  .hero h1 { font-size: 28px; }
  .hero-stats { gap: 16px; }
  .hero-stat strong { font-size: 22px; }
  .section { padding: 32px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .info-banner { flex-direction: column; text-align: center; }
  .fak-footer { flex-direction: column; gap: 4px; }
  .posao-card { flex-wrap: wrap; }
  .posao-plata { margin-left: 0; }
}

@media (min-width: 640px) and (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
