/*
 * GST — Design Tokens (§3.1–3.3, design.md)
 * :root variables; loaded last after theme.css / blades.min.css.
 */

:root {
  /* ── Brand (teal / green) ─────────────────────────────── */
  --brand-900: #123f35;
  --brand-700: #1b594a;
  --brand-600: #287563;
  --brand-500: #3bb99c;
  --brand-300: #50d8b9;
  --brand-100: #bce7db;
  --brand-50:  #eef7f4;

  /* ── Accent (sky blue) ────────────────────────────────── */
  --accent-700: #14587f;
  --accent-600: #2588b2;
  --accent-500: #3ba1cd;
  --accent-100: #e3f0f6;

  /* ── Ink (neutral grays) ──────────────────────────────── */
  --ink-900: #1f2a28;
  --ink-600: #3e3e3e;
  --ink-500: #555555;
  --ink-400: #6b7573;
  --ink-300: #9ba5a3;

  /* ── Surfaces & lines ─────────────────────────────────── */
  --surface:  #ffffff;
  --surface-2: #f6f6f6;
  --line:    #e3ebe9;

  /* ── Semantic ─────────────────────────────────────────── */
  --success: #1e7e4d;
  --error:   #b42318;

  /* ── Radius ───────────────────────────────────────────── */
  --r-sm:  6px;
  --r-md:  12px;
  --r-lg:  18px;
  --r-full: 999px;

  /* ── Shadow (teal-tinted, soft) ───────────────────────── */
  --shadow-sm: 0 1px 3px rgba(27, 89, 74, .08);
  --shadow-md: 0 4px 12px rgba(27, 89, 74, .12);
  --shadow-lg: 0 8px 24px rgba(27, 89, 74, .16);

  /* ── Footer text (on brand-600) ───────────────────────── */
  --footer-link: #bce7db;
  --footer-muted: #eef7f4;
  --footer-copy: #d5ebe4;

  /* ── Hero scrim + media mat ───────────────────────────── */
  --scrim:      rgba(0, 0, 0, 0.5);
  --media-mat:  rgba(255, 255, 255, 0.7);

  /* ── Spacing (4px base) ───────────────────────────────── */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 40px;
  --space-8: 48px;
  --space-9: 64px;

  /* ── Background overlay opacity ───────────────────────── */
  --bg-overlay-opacity: .5;

  /* ── Layout ───────────────────────────────────────────── */
  --container-max: 1200px;
}

/* ── Body background texture (§3.5, design.md) ────────── */

html {
  /* brand-100 base painted on the root canvas */
  background-color: var(--brand-100);
}

/* Establish a stacking context so body::before can sit at z-index:-1:
 * painted above the root canvas but behind body content and backgrounds. */
body {
  position: relative;
  z-index: 0;
}

/* Fixed, non-interactive backdrop. brand-100 shows through at the layer base
 * and the legacy photo tints it at --bg-overlay-opacity, so it reads as a
 * subtle texture while content cards stay fully opaque. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: var(--brand-100);
  background-image: var(--bg-overlay-image);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  opacity: var(--bg-overlay-opacity);
}

:root {
  --bg-overlay-image: url("../images/background.jpg");
}

/* Let the backdrop show: theme.css paints body and #body-wrapper with an
 * opaque canvas colour that sits on top of body::before and hides the texture.
 * Neutralize both so the fixed background reads through the page. */
body {
  background-color: transparent;
}
#body-wrapper {
  background: transparent;
}

/* Allow a hint of the backdrop through the white content card. */
#body-wrapper > .container > .content-item {
  background-color: color-mix(in srgb, var(--q2-bg-elev) 90%, transparent);
}

/* News article pages render through `item`/`blog-item`, nesting the article
 * inside #item.column rather than directly under .container, so they miss the
 * rule above. Match the plain-page white surface but at 90% opacity. */
#item.column .content-item {
  background-color: color-mix(in srgb, var(--q2-bg-elev) 90%, transparent);
  border-radius: var(--q2-radius-lg);
  padding: clamp(1.75rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3.25rem);
  box-shadow:
    rgba(19, 19, 22, 0.04) 0 1px 2px,
    rgba(19, 19, 22, 0.04) 0 8px 24px -8px;
}

@media (prefers-reduced-data: reduce) {
  body::before {
    background-image: none;
  }
}

/* ──────────────────────────────────────────────────────────
 * P2.3 — Typography & base reset (design.md §3.2)
 * Loads after theme.css; overrides Quark2 defaults with the GST
 * token palette while preserving the P2.2 background texture.
 * ────────────────────────────────────────────────────────── */

/* Re-map the q2 design-system colors so the Quark2 primitives
 * (pico headings, buttons, cards, focus rings) adopt the GST teal
 * palette. The base template only sets --q2-accent/--q2-link when
 * a hex accent-color is configured (here: purple), so we override
 * it explicitly here with the GST identity + action tokens. */
:root {
  /* Semantic text tokens (light) */
  --body-text:      var(--ink-900);
  --heading-text:   var(--ink-900);
  --strong-text:    var(--brand-900);
  --muted-text:     var(--ink-500);
  --faint-text:     var(--ink-400);
  --heading-accent: var(--brand-700);
  --table-head-bg:   var(--brand-100);
  --table-head-text: var(--brand-900);

  --q2-text:           var(--body-text);
  --q2-text-strong:    var(--strong-text);
  --q2-text-muted:     var(--muted-text);
  --q2-text-inverse:   var(--surface);
  --q2-accent:         var(--brand-700);
  --q2-accent-contrast: var(--surface);
  --q2-link:           var(--accent-700);
  --q2-link-hover:     var(--accent-600);
  --q2-focus-ring:     color-mix(in srgb, var(--brand-300) 45%, transparent);
}

:root[data-theme="dark"] {
  /* Semantic text tokens (dark) */
  --body-text:      #e7edeb;
  --heading-text:   #f3f7f5;
  --strong-text:    #ffffff;
  --muted-text:     #b8c1be;
  --faint-text:     #8a9491;
  --heading-accent: var(--brand-300);
  --table-head-bg:   color-mix(in srgb, var(--brand-500) 16%, var(--q2-bg-elev));
  --table-head-text: var(--brand-300);

  /* Dark page wash + hairlines so the P2.2 backdrop reads as dark too */
  --brand-100:      #0d2820;
  --brand-50:       #0a1f19;
  --line:           #2a3a35;
  --surface-2:      #101f1a;

  --q2-text:           var(--body-text);
  --q2-text-strong:    var(--strong-text);
  --q2-text-muted:     var(--muted-text);
  --q2-text-inverse:   var(--brand-900);
  --q2-accent:         var(--brand-500);
  --q2-accent-contrast: var(--brand-900);
  --q2-link:           var(--accent-500);
  --q2-link-hover:     var(--accent-100);
  --q2-focus-ring:     color-mix(in srgb, var(--brand-300) 50%, transparent);
}

/* ---- Body: system-first font stack, GST base size + line height ---- */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  font-size:   17px;          /* design.md §3.2 body */
  line-height: 1.6;
  font-weight: 400;
  color:       var(--body-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01", "ss03";
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Re-establish the body text on p/li (theme.css sets these explicitly) */
p,
li {
  font-size: 17px;
  line-height: 1.6;
  color: var(--body-text);
}

/* Lead paragraphs & muted text use the GST ink scale */
.lead {
  font-size: 1.125rem;
  font-weight: 300;
  color: var(--muted-text);
  letter-spacing: -0.2px;
  line-height: 1.55;
}
.text-muted {
  color: var(--muted-text);
}

/* ---- Headings: GST fluid scale, teal for h1 accents ---- */
h1, h2, h3, h4, h5, h6,
.display,
.h-display {
  color: var(--heading-text);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-top: 0;
  margin-bottom: 0.4em;
}
h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--heading-accent);
}
h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
}
h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.005em;
}
h4 {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
}
h5 {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
}
h6 {
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint-text);
}

/* Section rhythm: headings set off from preceding content */
:is(p, ul, ol, dl, blockquote, pre, table, figure, hr, iframe, .card) + h1 {
  margin-top: 1.75em;
}
:is(p, ul, ol, dl, blockquote, pre, table, figure, hr, iframe, .card) + h2 {
  margin-top: 1.65em;
}
:is(p, ul, ol, dl, blockquote, pre, table, figure, hr, iframe, .card) + h3 {
  margin-top: 1.55em;
}
:is(p, ul, ol, dl, blockquote, pre, table, figure, hr, iframe, .card) + h4 {
  margin-top: 1.45em;
}
:is(p, ul, ol, dl, blockquote, pre, table, figure, hr, iframe, .card)
  + :is(h5, h6) {
  margin-top: 1.35em;
}
:is(h1, h2, h3) + :is(h1, h2, h3) {
  margin-top: 0.25em;
}

/* ---- Links: GST accent blue, teal on hover bg ---- */
a {
  color: var(--q2-link);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  transition: color 0.15s ease, background-color 0.15s ease;
}
a:hover {
  color: var(--q2-link-hover);
  text-decoration-thickness: 2px;
}

/* Blog item title keeps the heading accent instead of the link blue */
.content-title :is(h1, h2, h3, h4, h5, h6) a {
  color: inherit;
  text-decoration: none;
}
.content-title a:hover {
  color: var(--q2-link-hover);
  text-decoration: none;
}

/* ---- Meta / labels ---- */
.meta,
time,
.byline {
  color: var(--faint-text);
  font-size: 0.85rem;
}
.label,
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
  color: var(--faint-text);
}

/* ---- Focus ring: visible on brand + surface ---- */
:focus-visible {
  outline: 2px solid var(--q2-focus-ring);
  outline-offset: 2px;
}

/* ---- Reduced motion: kill transitions/animations ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---- Base reset: box model + replaced elements ---- */
*, *::before, *::after { box-sizing: border-box; }

img,
picture,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
  height: auto;
}
img {
  border-radius: var(--r-sm);
}

/* ---- Tables: GST surface + scrollable on mobile ---- */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  color: var(--body-text);
}
th,
td {
  padding: var(--space-2) var(--space-3);
  text-align: left;
  border-bottom: 1px solid var(--line);
}
th {
  background-color: var(--table-head-bg);
  color: var(--table-head-text);
  font-weight: 600;
  letter-spacing: 0.03em;
}
tbody tr:nth-child(even) {
  background-color: var(--surface-2);
}
/* ══════════════════════════════════════════════════════════
 * P3.1 — Sticky brand header (design.md §4.1)
 * Overrides Quark2's neutral navbar chrome with the GST
 * --brand-700 header + school name + contact quick-actions.
 * ══════════════════════════════════════════════════════════ */

/* The body classes set by base.html.twig make the header sticky via
 * theme.css (body.header-fixed #header). Here we paint it brand-700
 * with white text so it reads as the GST identity strip. */
#header {
  background: var(--brand-700);
  border-bottom: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: var(--shadow-md);
}

body.header-transparent:has(.hero, #blog-hero) #header,
body.header-transparent.scrolled #header {
  background: var(--brand-700);
}
body.header-transparent:has(.hero, #blog-hero) {
  /* no longer transparent over hero — keep solid brand strip */
}

/* White text on the brand strip for top-level chrome */
#header .navbar-brand,
#header .navbar-brand:hover {
  color: var(--surface);
}
#header .navbar-brand svg path {
  fill: var(--surface);
}
#header .brand-name {
  color: var(--surface);
  font-weight: 600;
}

/* Logo on the brand strip: white pad so the portrait logo.png always reads
 * on teal, teal-tinted soft shadow (design §3.3) instead of a harsh black
 * one, and the GST radius. Height 56px keeps a tall portrait logo from
 * dominating the 64px mobile header row. */
#header .navbar-brand img {
  height: 56px;
  width: auto;
  display: block;
  background-color: var(--surface);
  padding: 3px;
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-md);
}
/* Mobile overlay sits on a light surface — only the round pad + radius,
 * no heavy shadow needed. */
.overlay .navbar-brand img {
  height: 56px;
  width: auto;
  display: block;
  background-color: var(--surface);
  padding: 3px;
  border-radius: var(--r-sm);
}

/* Top-level nav links -> white on brand-700 */
#header .dropmenu > ul > li > a {
  color: rgba(255, 255, 255, 0.92);
}
#header .dropmenu > ul > li > a:hover:not(.active) {
  color: var(--surface);
  background: rgba(255, 255, 255, 0.14);
}
#header .dropmenu > ul > li > a.active {
  color: var(--brand-900);
  background: var(--brand-300);
}

/* Contact quick-actions (phone/email icon links) */
.contact-quick {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}
.qq-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-full);
  color: var(--surface);
  background: rgba(255, 255, 255, 0.12);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.qq-link:hover {
  color: var(--brand-900);
  background: var(--brand-300);
  text-decoration: none;
}
.qq-link i {
  font-size: 1rem;
  line-height: 1;
}

/* Theme toggle on the brand strip: force white icon so it reads on the
 * dark header in both light and dark modes (theme.css uses --q2-text-strong,
 * which is near-black in light mode and would otherwise render as a
 * dark block on the dark header). */
#header .theme-toggle {
  color: var(--surface);
}
#header .theme-toggle:hover {
  background: rgba(255, 255, 255, 0.14);
  color: var(--surface);
}

/* Mobile burger inside the header actions: match the round quick-action
 * buttons on the brand strip (translucent white pill, white icon bars). */
#header .navbar-section.actions .navbar-burger {
  background: rgba(255, 255, 255, 0.12);
  color: var(--surface);
  box-shadow: none;
}
#header .navbar-section.actions .navbar-burger:hover {
  background: rgba(255, 255, 255, 0.14);
  color: var(--surface);
}

/* ══════════════════════════════════════════════════════════
 * P4.1 — Footer 2-column layout (design.md §4.1)
 * brand-700 background (shared with header), white text,
 * departments + partner links, plus a copyright subfooter.
 * Overrides theme.css.
 * ══════════════════════════════════════════════════════════ */

#footer {
  background: var(--brand-700);
  color: var(--surface);
  text-align: left;
  border-top: none;
}
#footer.section-tight {
  /* neutralize theme.css section padding; spacing comes from .container */
  padding-block: 0;
}
#footer > .container,
.footer-footer .container {
  padding-inline: clamp(1rem, 4vw, 2rem);
}
#footer > .container {
  padding-block: clamp(1.25rem, 3vw, 2rem);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 6vw, 4rem);
  max-width: 900px;
}
@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    margin: auto;
  }
}

.footer-col {
  font-size: 0.9rem;
  line-height: 1.55;
  margin-left: 1em;
}

.footer-heading {
  color: var(--brand-300);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
}

#footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
#footer .footer-links {
  display: grid;
  gap: 0.45rem;
}
#footer .footer-departments {
  display: grid;
  gap: 0.4rem;
}
#footer .footer-departments li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0.4rem;
}
#footer a {
  color: var(--footer-link);
  text-decoration: none;
  font-weight: 400;
}
#footer a:hover {
  color: var(--surface);
  text-decoration: underline;
}
.foot-dep-detail {
  color: var(--footer-muted);
  opacity: 0.85;
  font-size: 0.8rem;
}

/* Copyright subfooter */
.footer-footer {
  border-top: 1px solid color-mix(in srgb, var(--brand-300) 35%, transparent);
  padding-block: 0.5rem;
  font-size: 0.8rem;
  color: var(--footer-copy);
}
.footer-footer .container {
  text-align: right;
}
.footer-footer .container > * {
  display: inline-block;
}

/* ══════════════════════════════════════════════════════════
 * P5.1 — Home hero (design.md §5.1, pared)
 * A rounded --brand-700 panel with a photo on the left and the
 * school name + tagline on the right. Stacks on narrow screens
 * (image above text). An optional CTA ("Vpis" or any text/link)
 * is rendered only when set in the page frontmatter, so the hero
 * can also be just image + title + subtitle.
 * ══════════════════════════════════════════════════════════ */

.gst-hero {
  padding-block: 0;
}

.gst-hero__card {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  justify-items: center;
  background-color: color-mix(in srgb, var(--brand-700) 80%, transparent);
  background-image: url("../images/korita.webp");
  background-size: cover;
  background-position: center;
  color: var(--surface);
  padding: clamp(1.5rem, 4vw, 3rem);
  width: 100%;
  max-width: none;
  margin-inline: 0;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

/* Side-by-side image (media) + copy (text) once there is room, with the pair
 * centered as a unit inside the korita panel. Only the copy's text alignment
 * flips to left on wide screens. */
@media (min-width: 720px) {
  .gst-hero__card {
    grid-template-columns: auto auto;
    justify-content: center;
    align-items: center;
  }
  .gst-hero__media {
    justify-self: end;
  }
}

.gst-hero__copy {
  display: grid;
  gap: var(--space-4);
  background: var(--scrim);
  border-radius: var(--r-lg);
  padding: clamp(1.25rem, 3vw, 2rem);
}

.gst-hero__title {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--surface);
  margin: 0;
}

.gst-hero__tagline {
  font-size: 1.25rem;
  line-height: 1.55;
  color: color-mix(in srgb, var(--surface) 82%, transparent);
  max-width: 46ch;
  margin: 0;
}

.gst-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface);
  color: var(--brand-900);
  border-radius: var(--r-full);
  padding: 0.8rem 1.9rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: background 0.15s ease, color 0.15s ease;
  width: auto;
  justify-self: center;
}

.gst-hero__cta:hover {
  background: var(--brand-300);
  color: var(--brand-900);
}

.gst-hero__cta i {
  font-size: 0.9rem;
  line-height: 1;
}

.gst-hero__media figure,
figure.gst-hero__media {
  margin: 0;
}

.gst-hero__media img {
  display: block;
  width: clamp(120px, 17vw, 187px);
  height: auto;
  background: var(--media-mat);
  padding: 4px;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
}

.latest-gallery-card {
  max-width: 640px;
  margin-inline: auto;
}

/* Nastopi (egnastopi plugin) */
.nastopi {
  display: grid;
  gap: 1.5rem;
}
.nastop {
  border: 1px solid var(--border-color, #ddd);
  border-radius: var(--r-md, 0.5rem);
  padding: 1.25rem 1.5rem;
  background: var(--surface, #fff);
}
.nastop-title {
  margin: 0 0 0.25rem;
  font-size: 1.35rem;
}
.nastop-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--muted-color, #666);
  margin-bottom: 0.5rem;
}
.nastop-meta .nastop-date {
  font-weight: 600;
}
.nastop-description {
  margin-bottom: 0.75rem;
}

/* Zaposleni (employee directory) */
.employee-section {
  margin-top: 2.25rem;
}
.employee-section h2 {
  font-size: 1.5rem;
  margin: 0 0 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--q2-accent, var(--accent-color, #b01b2e));
}
.employee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.employee-card {
  border: 1px solid var(--border-color, #ddd);
  border-radius: var(--r-md, 0.5rem);
  padding: 1rem 1.15rem;
  background: var(--surface, #fff);
}
.employee-name {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
  font-weight: 700;
}
.employee-role,
.employee-classes {
  margin: 0 0 0.25rem;
  color: var(--muted-color, #555);
  font-size: 0.9rem;
}
.employee-phone,
.employee-email {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
}
.employee-phone a,
.employee-email a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.employee-phone i,
.employee-email i {
  width: 1em;
  text-align: center;
  color: var(--q2-accent, var(--accent-color, #b01b2e));
}

/* ============================================================
   Domača stran — mreža povezovalnih kartic (flex-objects "kartice")
   (4 v vrsti na širokih zaslonih, enak višini, portretno; odzivno manje)
   ============================================================ */
/* Kartice band only ever appears on the home page directly under the hero,
 * so override the generic .section rhythm (which would triple-stack with the
 * body-wrapper padding) with a tighter, deliberate vertical gap. */
.section.kartice {
  padding-block: clamp(0.75rem, 2vw, 1.5rem);
}
.kartice-grid {
  display: grid;
  gap: clamp(1.25rem, 2vw, 1.5rem);
  grid-template-columns: repeat(1, minmax(0, 1fr));
  align-items: stretch;
}
@media (min-width: 576px) {
  .kartice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 992px) {
  .kartice-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1400px) {
  .kartice-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.kartice-grid > .card {
  height: 100%;
  align-self: stretch;
}
.kartica-card {
  position: relative;
  overflow: hidden;
}
.kartica-card__image {
  aspect-ratio: 3 / 4;
  overflow: hidden;
}
.kartica-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.kartica-card:hover .kartica-card__image img {
  transform: scale(1.04);
}
/* Kartica brez slike — še vedno izpisana kot polna, vidna kartica. */
.kartica-card--noimage {
  background: var(--q2-bg-elev, #fff);
  border: 1px solid var(--q2-border, rgba(0, 0, 0, 0.15));
  min-height: 12rem;
  align-items: center;
  justify-content: center;
}
.kartica-card--noimage .kartica-card__title {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--q2-text, inherit);
}
.kartica-card__title {
  text-align: center;
  margin: 0;
  padding: 1rem 1.1rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--q2-text, inherit);
}
