@layer astro.images {
  :where([data-astro-image]) {
    height: auto;
  }
  :where([data-astro-image="full-width"]) {
    width: 100%;
  }
  :where([data-astro-image="constrained"]) {
    max-width: 100%;
  }

  [data-astro-image-fit="fill"] {
    object-fit: fill;
  }

  [data-astro-image-fit="contain"] {
    object-fit: contain;
  }

  [data-astro-image-fit="cover"] {
    object-fit: cover;
  }

  [data-astro-image-fit="scale-down"] {
    object-fit: scale-down;
  }

  [data-astro-image-pos="top"] {
    object-position: top;
  }

  [data-astro-image-pos="bottom"] {
    object-position: bottom;
  }

  [data-astro-image-pos="left"] {
    object-position: left;
  }

  [data-astro-image-pos="right"] {
    object-position: right;
  }

  [data-astro-image-pos="center"] {
    object-position: center;
  }

  [data-astro-image-pos="top-left"] {
    object-position: top left;
  }

  [data-astro-image-pos="top-right"] {
    object-position: top right;
  }

  [data-astro-image-pos="top-center"] {
    object-position: top center;
  }

  [data-astro-image-pos="bottom-left"] {
    object-position: bottom left;
  }

  [data-astro-image-pos="bottom-right"] {
    object-position: bottom right;
  }

  [data-astro-image-pos="bottom-center"] {
    object-position: bottom center;
  }

  [data-astro-image-pos="left-top"] {
    object-position: left top;
  }

  [data-astro-image-pos="left-bottom"] {
    object-position: left bottom;
  }

  [data-astro-image-pos="left-center"] {
    object-position: left center;
  }

  [data-astro-image-pos="right-top"] {
    object-position: right top;
  }

  [data-astro-image-pos="right-bottom"] {
    object-position: right bottom;
  }

  [data-astro-image-pos="right-center"] {
    object-position: right center;
  }

  [data-astro-image-pos="center-top"] {
    object-position: center top;
  }

  [data-astro-image-pos="center-bottom"] {
    object-position: center bottom;
  }

  [data-astro-image-pos="center-left"] {
    object-position: center left;
  }

  [data-astro-image-pos="center-right"] {
    object-position: center right;
  }
} /* =========================================================
   IT Juice — kartice koje se koriste na više strana
   1) .itjcs-*  velike case study kartice (početna)
   2) .itjr-*   "related" kartice: case study + članak
   Prepisano iz tvog Additional CSS-a, bez Kadence delova.
   ========================================================= */

.itjcs-card {
  --itjcs-bg: #0d1117;
  --itjcs-panel: #111a24;
  --itjcs-green: #0f7a62;
  --itjcs-green-dark: #0c6350;
  --itjcs-mint: #3ecfac;
  --itjcs-text: #eef4f2;
  --itjcs-muted: #8b9aa8;
  --itjcs-border: rgba(62, 207, 172, 0.25);

  container-type: inline-size;
  container-name: itjcs;

  box-sizing: border-box;
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: var(--itjcs-bg);
  border: 1px solid var(--itjcs-border);
  border-radius: 16px;
  padding: 36px 28px 30px;
  font-family: inherit;
  color: var(--itjcs-text);
}

/* ---- badge ---- */
.itjcs-badge {
  position: absolute;
  top: 28px;
  left: 28px;
  z-index: 4;
  font-size: 12px;
  color: var(--itjcs-mint);
  background: #0f2822;
  border: 1px solid var(--itjcs-green);
  border-radius: 999px;
  padding: 6px 16px;
  white-space: nowrap;
}

/* ---- ripple krugovi: PREKO slike ---- */
.itjcs-ripples {
  position: absolute;
  left: 42%;
  bottom: -12%;
  z-index: 2;
  width: 480px;
  height: 480px;
  transform: translateX(-50%);
  pointer-events: none;
}
.itjcs-ripples span {
  position: absolute;
  inset: 0;
  border: 1px solid var(--itjcs-mint);
  border-radius: 50%;
  opacity: 0.18;
  mix-blend-mode: screen;
  animation: itjcs-pulse 3.5s ease-in-out infinite;
}
.itjcs-ripples span:nth-child(2) {
  inset: 15%;
  opacity: 0.28;
  animation-delay: 1.17s;
}
.itjcs-ripples span:nth-child(3) {
  inset: 32%;
  opacity: 0.4;
  animation-delay: 2.33s;
}
@keyframes itjcs-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.07);
  }
}
@media (prefers-reduced-motion: reduce) {
  .itjcs-ripples span {
    animation: none;
  }
}

/* ---- kompozicija ---- */
.itjcs-stage {
  position: relative;
  display: block;
  margin-top: 30px;
}

.itjcs-laptop {
  position: relative;
  width: 90%;
  z-index: 1;
}
.itjcs-laptop img {
  display: block;
  width: 100%;
  height: auto;
}
.itjcs-laptop::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -6%;
  height: 20%;
  background: radial-gradient(
    ellipse at center,
    rgba(62, 207, 172, 0.28),
    transparent 70%
  );
  filter: blur(24px);
  z-index: -1;
}

.itjcs-panel {
  position: relative;
  z-index: 3;
  width: 58%;
  margin: -32% 0 0 auto;
  background: var(--itjcs-panel);
  border: 1.5px solid var(--itjcs-green);
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.45),
    0 0 28px rgba(62, 207, 172, 0.22);
}
.itjcs-panel-label {
  margin: 0 0 12px;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--itjcs-mint);
}

/* ---- WinTeam: query trake ---- */
.itjcs-query {
  margin-bottom: 14px;
}
.itjcs-query-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.itjcs-query-name {
  font-size: 13px;
  color: var(--itjcs-text);
}
.itjcs-pill {
  flex-shrink: 0;
  font-size: 10px;
  color: var(--itjcs-mint);
  background: #0f2822;
  border: 1px solid var(--itjcs-green);
  border-radius: 999px;
  padding: 3px 9px;
  white-space: nowrap;
}
.itjcs-bar {
  width: var(--itjcs-w, 0%);
  height: 5px;
  border-radius: 3px;
  background: var(--itjcs-green);
  margin-bottom: 4px;
}
.itjcs-query:nth-of-type(2) .itjcs-bar {
  opacity: 0.7;
}
.itjcs-clicks {
  font-size: 10px;
  color: var(--itjcs-muted);
}

/* ---- Brend: veliki broj + chart ---- */
.itjcs-big {
  margin: 0 0 4px;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--itjcs-text);
}
.itjcs-panel-sub {
  margin: 0 0 14px;
  font-size: 11px;
  color: var(--itjcs-muted);
}
.itjcs-chart {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 64px;
  margin-bottom: 12px;
}
.itjcs-chart span {
  flex: 1;
  height: var(--itjcs-h, 0%);
  min-height: 2px;
  border-radius: 2px 2px 0 0;
  background: var(--itjcs-green);
  opacity: 0.55;
}
.itjcs-chart span.hi {
  background: var(--itjcs-mint);
  opacity: 1;
}

.itjcs-panel-foot {
  margin: 2px 0 0;
  padding-top: 10px;
  border-top: 1px solid rgba(62, 207, 172, 0.15);
  font-size: 12px;
  color: var(--itjcs-text);
}

/* ---- footer: uvek u dnu, dugmad u ravni ---- */
.itjcs-foot {
  margin-top: auto;
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 20px;
  padding-top: 26px;
}
.itjcs-title {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 500;
  color: var(--itjcs-text);
}
.itjcs-sub {
  margin: 0;
  font-size: 13px;
  color: var(--itjcs-muted);
}
.itjcs-cta {
  flex-shrink: 0;
  display: inline-block;
  background: var(--itjcs-green);
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 999px;
  padding: 10px 24px;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}
.itjcs-cta:hover {
  background: var(--itjcs-green-dark);
  transform: translateY(-1px);
}
.itjcs-cta:focus-visible {
  outline: 2px solid var(--itjcs-mint);
  outline-offset: 3px;
}

/* ---- uska kartica ---- */
@container itjcs (max-width: 480px) {
  .itjcs-foot {
    flex-wrap: wrap;
  }
  .itjcs-foot-text {
    flex: 1 1 100%;
  }
}

/* ---- široka kartica ----
   (pravilo za .itjcs-card je uklonjeno — element ne može
   da odgovara na sopstveni container query, pa nikad nije radilo) */
@container itjcs (min-width: 700px) {
  .itjcs-badge {
    top: 36px;
    left: 40px;
  }
  .itjcs-stage {
    margin-top: 36px;
  }
  .itjcs-laptop {
    width: 72%;
  }

  .itjcs-panel {
    width: 40%;
    margin-top: -40%;
    padding: 18px 20px;
  }
  .itjcs-panel-label {
    font-size: 12px;
  }
  .itjcs-query-name {
    font-size: 14px;
  }
  .itjcs-pill {
    font-size: 11px;
  }
  .itjcs-clicks {
    font-size: 11px;
  }
  .itjcs-panel-foot {
    font-size: 13px;
  }
  .itjcs-big {
    font-size: 32px;
  }
  .itjcs-chart {
    height: 72px;
  }

  .itjcs-foot {
    padding-top: 34px;
  }
}

@media (max-width: 640px) {
  .itjcs-stage {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .itjcs-laptop {
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .itjcs-panel {
    position: relative;
    inset: auto;
    width: auto;
    max-width: none;
    margin: -28px 8px 0; /* blago preklapa donju ivicu laptopa */
    transform: none;
  }

  .itjcs-big {
    white-space: nowrap;
  }

  .itjcs-panel-label,
  .itjcs-panel-foot {
    font-size: 12px;
  }
}

.itjr-sec {
  width: 100%;
}
.itjr-sec .itjr-eyebrow {
  margin: 0 0 8px;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #3ecfac;
}
.itjr-sec .itjr-h2 {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.25;
  color: #fff;
}
.itjr-sec .itjr-intro {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: #b6c2cd;
}

.itjr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 32px;
  margin-top: 32px;
}
.itjr-grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 24px;
}

/* ---- zajednička osnova obe kartice ---- */
.itjr-card {
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  height: 100%;
  padding: 24px;
  background: #0d1117;
  border: 1px solid rgba(62, 207, 172, 0.25);
  border-radius: 16px;
  color: #eef4f2;
}
.itjr-card .itjr-badge {
  font-size: 12px;
  line-height: 1.4;
  color: #3ecfac;
  background: #0f2822;
  border: 1px solid #0f7a62;
  border-radius: 999px;
  padding: 6px 16px;
}
.itjr-card .itjr-title {
  margin: 4px 0 0;
  font-size: 21px;
  line-height: 1.3;
  font-weight: 600;
  color: #fff;
}
.itjr-card .itjr-title a {
  color: #fff;
  text-decoration: none;
}
.itjr-card .itjr-title a:hover {
  color: #3ecfac;
}
.itjr-card .itjr-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #8b9aa8;
}

/* ---- scena: površina vode sa krugovima ---- */
.itjr-stage {
  position: relative;
  display: block;
  overflow: hidden;
  align-self: stretch;
  aspect-ratio: 16 / 9;
  container-type: inline-size;
  background: #0b1219;
  border: 1px solid rgba(62, 207, 172, 0.25);
  border-radius: 12px;
}
.itjr-ripple {
  position: absolute;
  left: 50%;
  top: 68%;
  width: 100cqi;
  height: 100cqi;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.itjr-ripple::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 72cqi;
  height: 72cqi;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(22, 149, 121, 0.22) 0%,
    transparent 70%
  );
}
.itjr-ripple-scene {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: perspective(400px) rotateX(72deg);
}
.itjr-ripple-scene span {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(62, 207, 172, 0.85);
  opacity: 0;
  transform: scale(0.35);
  animation: itjrRipple 3.8s cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
  box-shadow:
    0 0 16px 3px rgba(62, 207, 172, 0.3),
    inset 0 0 8px 1px rgba(62, 207, 172, 0.12);
}
.itjr-ripple-scene span:nth-child(1) {
  width: 34cqi;
  height: 34cqi;
  animation-delay: 0s;
}
.itjr-ripple-scene span:nth-child(2) {
  width: 62cqi;
  height: 62cqi;
  animation-delay: 1s;
}
.itjr-ripple-scene span:nth-child(3) {
  width: 90cqi;
  height: 90cqi;
  animation-delay: 2s;
}
@keyframes itjrRipple {
  0% {
    transform: scale(0.35);
    opacity: 0;
  }
  12% {
    opacity: 0.95;
  }
  75% {
    opacity: 0.25;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .itjr-ripple-scene span {
    animation: none;
    opacity: 0.45;
    transform: scale(1);
  }
}

/* ---- case study: broj umesto kapljice ---- */
.itjr-stage .itjr-num {
  position: absolute;
  left: 0;
  right: 0;
  top: 68%;
  margin: 0;
  transform: translateY(-100%);
  text-align: center;
  font-family: var(--font-head);
  font-size: 19cqi;
  font-weight: 700;
  line-height: 0.9;
  color: #3ecfac;
  text-shadow: 0 0 28px rgba(62, 207, 172, 0.45);
}
/* odraz broja na vodi */
.itjr-stage .itjr-num::after {
  content: attr(data-num);
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  transform: scaleY(-0.5);
  transform-origin: top;
  opacity: 0.3;
  text-shadow: none;
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 85%);
  mask-image: linear-gradient(to top, #000 10%, transparent 85%);
}
.itjr-stage .itjr-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 5%;
  margin: 0;
  text-align: center;
  font-size: 13px;
  color: #eef4f2;
}

/* ---- članak: slika lebdi iznad vode ---- */
.itjr-stage .itjr-shot {
  position: absolute;
  left: 50%;
  top: 6%;
  width: 66%;
  max-width: none;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transform: translateX(-50%);
  border-radius: 8px;
  border: 1px solid rgba(62, 207, 172, 0.3);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55);
}
.itjr-card--post .itjr-ripple {
  top: 73%;
}

/* ---- dugmići ---- */
.itjr-card .itjr-cta {
  margin-top: auto;
  display: inline-block;
  background: #0f7a62;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 999px;
  padding: 10px 24px;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}
.itjr-card .itjr-cta:hover {
  background: #0c6350;
  transform: translateY(-1px);
}
.itjr-card .itjr-cta:focus-visible {
  outline: 2px solid #3ecfac;
  outline-offset: 3px;
}
.itjr-card .itjr-more {
  margin-top: auto;
  padding: 9px 14px;
  border: 1px solid #169579;
  border-radius: 4px;
  color: #3ecfac;
  font-size: 16px;
  text-decoration: none;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}
.itjr-card .itjr-more:hover {
  background: rgba(62, 207, 172, 0.12);
  border-color: #3ecfac;
}
