/*
Theme Name: ZRK Ivanić Moderni
Theme URI: https://zrk-ivanic.hr
Author: ŽRK Ivanić
Description: Moderni dizajn za Ženski rukometni klub Ivanić. Zamjenjuje vizualni izgled kluba uz zadržavanje svih postojećih objava i stranica.
Version: 1.0.4
Requires PHP: 5.4
Text Domain: zrk-ivanic
*/

:root {
  --navy: #12235c;
  --blue: #17307e;
  --red: #d81f26;
  --red-soft: #ff8a8f;
  --ink: #1d2330;
  --text: #3c4352;
  --muted: #6b7280;
  --muted-2: #5b6270;
  --line: #eceef2;
  --line-2: #dcdfe6;
  --bg: #ececec;
  --white: #fff;
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', Helvetica, Arial, sans-serif;
  --container: 1240px;
  --gutter: 24px;
  --shadow-sm: 0 4px 16px rgba(10, 16, 40, 0.08);
  --shadow-lg: 0 10px 30px rgba(10, 16, 40, 0.12);
  --duration: 180ms;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  font-family: var(--font-body);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--red); }
::selection { background: var(--red); color: var(--white); }
img { max-width: 100%; }
h1, h2, h3 { margin: 0; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.page[hidden] { display: none; }

/* ---------- Type helpers ---------- */
.display { font-family: var(--font-display); text-transform: uppercase; }
.eyebrow {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
}
.label {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 38px);
  text-transform: uppercase;
  line-height: 1.05;
}
.section-title b { font-weight: 700; color: var(--blue); }
.section-title span { font-weight: 400; }
.center { text-align: center; }
.stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 44px;
  line-height: 1;
  color: var(--red);
}

/* ---------- Placeholder imagery ---------- */
.ph {
  background: repeating-linear-gradient(135deg, #d5d8de 0 10px, #dfe2e8 10px 20px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8d93a1;
  text-align: center;
  padding: 8px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  border: 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--blue);
  padding: 14px 30px;
  transition: background-color var(--duration);
}
.btn:hover { background: var(--red); color: var(--white); }
.btn--red { background: var(--red); }
.btn--red:hover { background: var(--blue); }
.btn--block { display: block; width: 100%; text-align: center; padding: 16px; }
.btn--navy { background: var(--navy); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 12px 24px;
  min-height: 76px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand { display: flex; flex-shrink: 0; }
.brand img { height: 56px; width: 56px; display: block; }
.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px clamp(12px, 1.6vw, 22px);
  margin-left: auto;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(13px, 1.15vw, 15px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav a { color: var(--ink); transition: color var(--duration); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--red); }
.nav .nav__cta {
  background: var(--red);
  color: var(--white);
  padding: 9px 16px 8px;
  border-radius: 2px;
  transition: background-color var(--duration);
}
.nav .nav__cta:hover, .nav .nav__cta[aria-current="page"] { background: var(--blue); color: var(--white); }
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 2px;
  background: var(--ink);
  content: '';
  transition: transform var(--duration), opacity var(--duration);
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { left: 0; top: -7px; }
.nav-toggle span::after { left: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Page heroes ---------- */
.hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: flex-end;
}
.hero .ph { position: absolute; inset: 0; font-size: 13px; letter-spacing: 0.14em; }
.hero__overlay {
  position: relative;
  width: 100%;
  background: linear-gradient(to top, rgba(10, 16, 40, 0.82), rgba(10, 16, 40, 0));
}
.hero__content { padding-top: 90px; padding-bottom: 44px; }
.hero__kicker {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red-soft);
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(46px, 7vw, 76px);
  line-height: 0.95;
  margin-top: 10px;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.hero h1 .light { font-weight: 400; }
.hero h1 .dot { color: var(--red); }
.hero p {
  max-width: 560px;
  margin: 16px 0 0;
  font-size: 17px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
}

.page-head { background: var(--navy); padding: 66px 0 58px; }
.page-head--red { background: var(--red); }
.page-head--red .hero__kicker { color: rgba(255, 255, 255, 0.75); }
.page-head h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(42px, 6vw, 60px);
  line-height: 1;
  margin-top: 6px;
  color: var(--white);
  text-transform: uppercase;
}
.page-body { padding: 54px 0 70px; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.gap-lg { gap: 44px; }
.align-start { align-items: start; }

/* ---------- Home: recent rounds ---------- */
.recent { padding: 46px 0 10px; }
.recent__title { font-family: var(--font-display); font-size: 34px; text-transform: uppercase; color: var(--blue); }
.recent__title b { font-weight: 700; }
.recent__title span { font-weight: 400; color: var(--ink); }
.recent__list { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 26px; gap: 18px; }
.recent__item { display: flex; align-items: center; gap: 14px; }
.crest {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px solid var(--blue);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  color: var(--blue);
}
.crest--sm { width: 54px; height: 54px; font-size: 16px; }
.recent__date { font-size: 13px; color: var(--muted); }
.recent__pair { font-family: var(--font-display); font-weight: 700; font-size: 20px; text-transform: uppercase; }
.recent__score { font-family: var(--font-display); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

.is-loss { color: var(--red); }
.is-win { color: var(--blue); }

/* ---------- Home: last match ---------- */
.last-match { padding: 40px 0 60px; }
.last-match__card { background: var(--white); box-shadow: var(--shadow-lg); }
.last-match__info { padding: 54px 40px; text-align: center; }
.last-match__info .label { font-size: 14px; letter-spacing: 0.24em; }
.last-match__round { font-family: var(--font-display); font-size: clamp(30px, 3.4vw, 40px); text-transform: uppercase; margin-top: 6px; }
.last-match__round b { font-weight: 700; color: var(--blue); }
.last-match__round .sep { color: #c3c7d0; }
.last-match__date { font-family: var(--font-display); font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.scoreline { display: flex; align-items: center; justify-content: center; gap: clamp(14px, 3vw, 30px); margin: 34px 0; }
.scoreline__scores { display: flex; align-items: flex-start; gap: 22px; }
.scoreline__num { font-family: var(--font-display); font-weight: 700; font-size: 66px; line-height: 1; }
.scoreline__divider { width: 1px; height: 66px; background: var(--line-2); }
.scoreline img { height: 54px; width: auto; }

/* ---------- Home: season + teams ---------- */
.season { padding: 0 0 70px; }
.season .grid-2 { gap: 46px; }
.panel { margin-top: 20px; background: var(--white); }
.panel__head { background: var(--navy); color: var(--white); padding: 22px 24px; }
.panel__head h3 { font-family: var(--font-display); font-weight: 700; font-size: 30px; text-transform: uppercase; line-height: 1.05; }
.panel__head p { margin: 4px 0 0; font-size: 15px; color: #b9c6e8; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.stats > div { padding: 26px 10px; border-right: 1px solid var(--line); }
.stats > div:last-child { border-right: 0; }
.panel__foot {
  display: block;
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 17px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background-color var(--duration);
}
.panel__foot:hover { background: var(--red); color: var(--white); }

.teams__head {
  background: var(--navy);
  color: var(--white);
  padding: 13px 18px;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.teams__head span:last-child { color: #9fb0e0; }
.teams__row {
  padding: 15px 18px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}
.teams__name { font-family: var(--font-display); font-weight: 700; font-size: 20px; text-transform: uppercase; }
.teams__coach { text-align: right; }
.teams__coach b { display: block; font-family: var(--font-display); font-size: 18px; color: var(--blue); }
.small-muted { font-size: 13px; color: var(--muted); }
.teams__note { padding: 15px 18px; font-size: 14px; color: var(--muted); }

/* ---------- News ---------- */
.news { padding: 0 0 76px; }
.news .section-title { font-size: clamp(32px, 4vw, 40px); }
.news__grid { margin-top: 26px; }
.card { background: var(--white); box-shadow: var(--shadow-sm); transition: transform var(--duration), box-shadow var(--duration); }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card .ph { height: 170px; }
.card__body { padding: 18px 20px 24px; }
.card__meta { font-family: var(--font-display); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red); }
.card h3 { font-family: var(--font-display); font-weight: 700; font-size: 22px; line-height: 1.15; margin: 8px 0; }
.card p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted-2); }
.card--lg .ph { height: 200px; }
.card--lg .card__body { padding: 20px 22px 26px; }
.card--lg h3 { font-size: 24px; }
.card--lg p { font-size: 15px; line-height: 1.55; }

/* ---------- O klubu ---------- */
.about { padding: 60px 0; }
.about__grid { display: grid; gap: 54px; }
.about h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(32px, 4vw, 40px); line-height: 1.05; text-transform: uppercase; color: var(--blue); }
.prose p { font-size: 17px; line-height: 1.65; color: var(--text); }
.about__stats { margin-top: 34px; gap: 18px; }
.stat-box { background: var(--white); padding: 24px; }
.stat-box .stat-num { font-size: 46px; }
.stat-box .label { font-size: 14px; }
.people { padding: 0 0 70px; }
.people .grid { margin-top: 24px; }
.person { background: var(--white); }
.person .ph { height: 220px; }
.person__body { padding: 16px 18px 20px; }
.person__name { font-family: var(--font-display); font-weight: 700; font-size: 21px; text-transform: uppercase; }
.person__role { font-family: var(--font-display); font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); }

/* ---------- Ekipa ---------- */
.notice { background: var(--white); padding: 20px 24px; margin-bottom: 22px; font-size: 16px; color: var(--text); }
.player { background: var(--white); box-shadow: 0 4px 14px rgba(10, 16, 40, 0.07); }
.player .ph { height: 250px; }
.player__body { padding: 16px 18px 20px; }
.player__num { font-family: var(--font-display); font-weight: 700; font-size: 34px; line-height: 1; color: var(--red); }
.player__name { font-family: var(--font-display); font-weight: 700; font-size: 21px; line-height: 1.1; text-transform: uppercase; }

/* ---------- Mlađe kategorije ---------- */
.category { background: var(--white); }
.category__body { padding: 30px 34px; }
.category__kicker { font-family: var(--font-display); font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--red); }
.category h3 { font-family: var(--font-display); font-weight: 700; font-size: 32px; margin: 4px 0 8px; text-transform: uppercase; color: var(--blue); }
.category p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--text); }

/* ---------- Raspored ---------- */
.schedule { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: start; }
.table-head {
  background: var(--navy);
  color: var(--white);
  padding: 15px 22px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.fixture {
  display: grid;
  grid-template-columns: 120px 1fr 96px;
  align-items: center;
  gap: 16px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
}
.fixture__date { font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.fixture__pair { font-family: var(--font-display); font-weight: 600; font-size: 19px; text-transform: uppercase; }
.fixture__score { text-align: right; font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.summary { position: sticky; top: 100px; background: var(--white); }
.summary .panel__head h3 { font-size: 26px; line-height: 1.1; }
.summary .panel__head p { font-size: 14px; }
.stats-2 { display: grid; grid-template-columns: 1fr 1fr; text-align: center; }
.stats-2 > div { padding: 22px; border-bottom: 1px solid var(--line); }
.stats-2 > div:nth-child(odd) { border-right: 1px solid var(--line); }
.stats-2 > div:nth-last-child(-n+2) { border-bottom: 0; }
.stats-2 .stat-num { font-size: 40px; }
.summary__note { padding: 18px 22px; font-size: 14px; line-height: 1.5; color: var(--muted-2); border-top: 1px solid var(--line); }
.fixture--cup { grid-template-columns: 90px 1fr 70px; }

/* ---------- Standings table ---------- */
.standings { width: 100%; border-collapse: collapse; font-size: 15px; }
.standings th {
  text-align: left;
  padding: 12px 14px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 2px solid var(--line);
}
.standings td { padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.standings__pos { color: var(--muted); width: 28px; }
.standings__team { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; white-space: normal; }
.standings__pts { font-family: var(--font-display); font-weight: 700; color: var(--blue); }
.standings__row--club { background: color-mix(in srgb, var(--red) 7%, transparent); }
.standings__row--club .standings__team { color: var(--red); }
.standings__row--club .standings__pts { color: var(--red); }

/* ---------- Galerija ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery .ph { height: 320px; font-size: 12px; }
.gallery .ph--short { height: 240px; }
.gallery .span-2 { grid-column: span 2; }

/* ---------- Forms ---------- */
.box { background: var(--white); padding: 34px 36px; }
.box h2 { font-family: var(--font-display); font-weight: 700; font-size: 30px; margin: 0 0 18px; text-transform: uppercase; color: var(--blue); }
.details { display: grid; gap: 16px; font-size: 16px; line-height: 1.5; }
.form { display: grid; gap: 14px; }
.form input,
.form textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line-2);
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color var(--duration);
}
.form textarea { resize: vertical; }
.form input:focus,
.form textarea:focus { border-color: var(--blue); }
.form input[aria-invalid="true"],
.form textarea[aria-invalid="true"] { border-color: var(--red); }
.form__status { margin: 0; min-height: 1.4em; font-size: 14px; color: var(--muted); }
.form__status.is-error { color: var(--red); }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.join h2 { font-family: var(--font-display); font-weight: 700; font-size: 38px; margin: 0 0 14px; text-transform: uppercase; color: var(--blue); }
.join__list { display: grid; gap: 12px; margin-top: 26px; }
.join__item { background: var(--white); padding: 18px 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.join__item b { display: block; font-family: var(--font-display); font-size: 22px; text-transform: uppercase; }
.join__contact { font-family: var(--font-display); font-weight: 700; color: var(--red); font-size: 20px; text-align: right; }

/* ---------- Footer ---------- */
.info-strip { background: var(--white); padding: 54px 0; text-align: center; }
.info-strip .grid { gap: 24px; }
.info-strip__icon {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: var(--navy);
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}
.info-strip__icon svg { width: 30px; height: 30px; }
.info-strip__title { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: 0.1em; text-transform: uppercase; }
.info-strip__text { font-size: 15px; color: var(--muted-2); }

.sponsors { padding: 46px 0 52px; }
.sponsors .label { font-size: 14px; letter-spacing: 0.2em; }
.sponsors .grid { margin-top: 26px; gap: 18px; }
.sponsors .ph { height: 84px; background: repeating-linear-gradient(135deg, #dcdfe6 0 8px, #e4e6ec 8px 16px); }

.site-footer { background: var(--white); padding: 22px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }

/* ---------- Portrait photos ---------- */
.portrait {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  background: #e4e6ec;
}
.player, .person { overflow: hidden; }
.player .portrait, .person .portrait { transition: transform 400ms var(--ease, ease); }
.player:hover .portrait, .person:hover .portrait { transform: scale(1.03); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    box-shadow: 0 12px 24px rgba(10, 16, 40, 0.12);
    font-size: 17px;
    padding: 8px var(--gutter) 20px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .nav__cta { margin-top: 14px; text-align: center; padding: 14px; border: 0; }
  .grid-4, .recent__list { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .grid-2, .grid-3, .season .grid-2,
  .about__grid, .schedule { grid-template-columns: 1fr; }
  .summary { position: static; }
  .hero { min-height: 520px; }
}

@media (max-width: 600px) {
  :root { --gutter: 16px; }
  .brand img { height: 46px; width: 46px; }
  .site-header__inner { min-height: 64px; }
  .grid-4, .recent__list { grid-template-columns: 1fr; }
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: 1fr; }
  .gallery .span-2 { grid-column: auto; }
  .gallery .ph, .gallery .ph--short { height: 220px; }
  .about__stats { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats > div:nth-child(2) { border-right: 0; }
  .stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .last-match__info { padding: 40px 20px; }
  .scoreline__num { font-size: 52px; }
  .scoreline__divider { height: 52px; }
  .scoreline img { height: 40px; }
  .fixture { grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px 16px; }
  .fixture__when { grid-column: 1 / -1; display: flex; gap: 8px; align-items: baseline; }
  .box { padding: 26px 20px; }
  .join__item { flex-direction: column; align-items: flex-start; }
  .join__contact { text-align: left; font-size: 18px; }
  .category__body { padding: 24px 20px; }
  .page-body { padding: 36px 0 54px; }
  .page-head { padding: 48px 0 42px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- WordPress-specific additions ---------- */
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.wp-content { max-width: 860px; margin: 0 auto; }
.wp-content img { height: auto; }
.wp-content p { font-size: 17px; line-height: 1.65; color: var(--text); }
.wp-content h2 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; color: var(--blue); margin-top: 34px; }
.wp-content a { text-decoration: underline; }
.entry-meta { margin-top: 8px; }
.post-thumb { margin-bottom: 26px; }
.post-thumb img { width: 100%; display: block; }
.pagination { display: flex; justify-content: center; gap: 10px; margin-top: 40px; }
.pagination a, .pagination span {
  display: inline-block;
  padding: 10px 16px;
  background: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
}
.pagination .current { background: var(--navy); color: var(--white); }
.no-results { background: var(--white); padding: 30px; text-align: center; color: var(--muted); }

/* ---------- Roster: always 3 per row (21 players = 7 rows) ---------- */
.roster-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 600px) {
  .roster-grid { gap: 10px; }
  .roster-grid .player__body { padding: 10px 8px 12px; }
  .roster-grid .player__name { font-size: 15px; }
  .roster-grid .label { font-size: 10px; letter-spacing: 0.06em; }
}

/* ---------- Home hero: team photo ---------- */
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 55%;
}
.hero { background: var(--navy); }
.hero__overlay {
  background: linear-gradient(to top, rgba(10, 16, 40, 0.92) 0%, rgba(10, 16, 40, 0.6) 45%, rgba(10, 16, 40, 0) 100%);
}
@media (max-width: 600px) {
  .hero { display: block; min-height: 0; }
  .hero__img { position: static; height: auto; aspect-ratio: 3 / 2; }
  .hero__overlay { background: var(--navy); }
  .hero__content { padding-top: 26px; padding-bottom: 34px; }
}

/* ---------- Text-only cards ---------- */
.person--text { border-top: 4px solid var(--red); }
.person--text .person__body { padding: 22px 24px 24px; }
.card--text .card__body { padding-top: 24px; }

/* ---------- Home hero: photo only, no text overlay ---------- */
.hero { display: block; min-height: 0; background: none; }
.hero__img {
  position: static;
  display: block;
  height: auto;
  aspect-ratio: 3 / 2;
  max-height: 82vh;
}

/* ---------- Club badges (from the HRS feed) ---------- */
.crest__logo { width: 72%; height: 72%; object-fit: contain; display: block; }
.standings__logo, .fixture__logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 10px;
  flex-shrink: 0;
}
.fixture__pair { display: flex; align-items: center; }

/* ---------- Single-column pages (Kontakt, Postani član) ---------- */
.container--narrow { max-width: 820px; }

/* ---------- Postani član: several coaches + online form ---------- */
.join__contacts { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.join__online {
  margin-top: 22px;
  background: var(--navy);
  color: var(--white);
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.join__online b { display: block; font-family: var(--font-display); font-size: 22px; text-transform: uppercase; }
.join__online .small-muted { color: #b9c6e8; }
.join__online .btn:hover { background: var(--white); color: var(--navy); }
.teams__coach a { display: block; }
@media (max-width: 600px) {
  .join__contacts { align-items: flex-start; }
  .join__online { flex-direction: column; align-items: flex-start; }
}

/* ---------- Galerija: photo grid + full-screen viewer ---------- */
.galerija .wp-block-gallery,
.galerija .gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.galerija .wp-block-gallery .blocks-gallery-item,
.galerija .gallery .gallery-item {
  width: auto !important;
  margin: 0 !important;
  max-width: none !important;
}
.galerija figure { margin: 0; overflow: hidden; background: #dfe2e8; }
.galerija .gallery-icon, .galerija figcaption { margin: 0; }
.galerija__photo {
  display: block;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 400ms ease, filter 200ms ease;
}
.galerija__photo:hover { transform: scale(1.03); filter: brightness(1.05); }
.galerija__photo:focus-visible { outline: 3px solid var(--red); outline-offset: -3px; }

.lightbox {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.lightbox::backdrop { background: rgba(8, 12, 30, 0.94); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox__img { max-width: calc(100vw - 140px); max-height: calc(100vh - 90px); object-fit: contain; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); }
.lightbox__btn {
  position: fixed;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  transition: background-color var(--duration);
}
.lightbox__btn:hover { background: var(--red); }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 18px; top: 50%; transform: translateY(-50%); }
.lightbox__count {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--font-display);
  letter-spacing: 0.14em;
}
@media (max-width: 900px) {
  .galerija .wp-block-gallery, .galerija .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
@media (max-width: 600px) {
  .galerija .wp-block-gallery, .galerija .gallery { gap: 6px; }
  .lightbox__img { max-width: 100vw; max-height: calc(100vh - 150px); }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 14px; transform: none; }
  .lightbox__count { bottom: 30px; }
}
