/* ================================================================
   HERO — prijedlog redizajna (samo za index3.html)
   Ne dira styles.css. Font naslova: Oswald.
   ================================================================ */

:root {
  --hx-navy:      #071227;
  --hx-navy-2:    #0d1f3d;
  --hx-red:       #e8112d;
  --hx-blue:      #2b8cff;
  --hx-display:   'Oswald', 'Inter', sans-serif;
}

/* ---------- Header: proziran preko hero-a, pun kad se skrola ---------- */
.header {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  background: transparent !important;
  border-bottom: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
}

/* Blagi gradijent samo radi čitljivosti logotipa i menija */
.header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(7, 18, 39, 0.55) 0%, transparent 100%);
  transition: opacity var(--transition-base);
  pointer-events: none;
}

.header.is-scrolled {
  background: #071227 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.header.is-scrolled::before {
  opacity: 0;
}

.header .nav__link {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
}

.header .nav__link:hover {
  color: #fff;
}

.header .hamburger__line {
  background: #fff;
}

/* ---------- Sekcija ---------- */
.hx {
  position: relative;
  min-height: 92svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--hx-navy);
  overflow: hidden;
  isolation: isolate;
}

/* ---------- Pozadinska fotografija ---------- */
.hx__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

/* Slika je zrcaljena — igrač ide na desnu stranu, tekst na lijevoj ostaje čist */
.hx__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  filter: saturate(1.05) contrast(1.02);
  transform: scale(1.06) scaleX(-1);
  animation: hxZoom 26s ease-in-out infinite alternate;
}

@keyframes hxZoom {
  from { transform: scale(1.06) scaleX(-1); }
  to   { transform: scale(1.15) scaleX(-1) translate3d(1.5%, -1%, 0); }
}

/* Slojevi zatamnjenja — tekst uvijek čitljiv */
.hx__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg,
      rgba(7, 18, 39, 0.94) 0%,
      rgba(7, 18, 39, 0.78) 34%,
      rgba(7, 18, 39, 0.28) 62%,
      rgba(7, 18, 39, 0.14) 100%),
    linear-gradient(to top,
      rgba(7, 18, 39, 0.92) 0%,
      rgba(7, 18, 39, 0.15) 42%,
      transparent 70%);
}

/* Dijagonalne trake — crvena/plava iz logotipa */
.hx__stripes {
  position: absolute;
  top: 0;
  right: -10%;
  width: 26%;
  height: 100%;
  background:
    linear-gradient(115deg, transparent 46%, rgba(232, 17, 45, 0.55) 46%, rgba(232, 17, 45, 0.55) 48%, transparent 48%),
    linear-gradient(115deg, transparent 54%, rgba(43, 140, 255, 0.45) 54%, rgba(43, 140, 255, 0.45) 55.5%, transparent 55.5%);
  opacity: 0.45;
  pointer-events: none;
}

/* ---------- Sadržaj ---------- */
.hx__inner {
  position: relative;
  z-index: 1;
  padding-block: calc(var(--header-height) + 2rem) 2.5rem;
  max-width: var(--container-max);
  width: 100%;
  margin-top: auto;
}

.hx__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  animation: hxUp 0.7s 0.05s ease both;
}

.hx__eyebrow-line {
  width: 46px;
  height: 2px;
  background: var(--hx-red);
  flex-shrink: 0;
}

.hx__title {
  font-family: var(--hx-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 5.4vw, 4.9rem);
  line-height: 0.95;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 1.5rem;
  text-wrap: balance;
  animation: hxUp 0.8s 0.12s ease both;
}

.hx__title-accent {
  position: relative;
  display: inline-block;
  padding-bottom: 0.14em;
  color: transparent;
  background: linear-gradient(100deg, var(--hx-blue) 0%, #7fc4ff 55%, #fff 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

/* Crvena linija ispod akcenta */
.hx__title-accent::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 0.07em;
  background: var(--hx-red);
  transform: scaleX(0);
  transform-origin: left;
  animation: hxLine 0.9s 0.7s cubic-bezier(0.65, 0, 0.35, 1) both;
}

@keyframes hxLine {
  to { transform: scaleX(1); }
}

.hx__lead {
  max-width: 34ch;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 1.9rem;
  animation: hxUp 0.8s 0.22s ease both;
}

@keyframes hxUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Dugmad ---------- */
.hx__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  animation: hxUp 0.8s 0.32s ease both;
}

.hx__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.9rem;
  font-family: var(--hx-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  transition: all var(--transition-base);
}

.hx__btn--primary {
  color: #fff;
  background: var(--hx-red);
  box-shadow: 0 12px 30px -10px rgba(232, 17, 45, 0.75);
}

.hx__btn--primary:hover {
  background: #ff2540;
  transform: translateY(-2px);
  box-shadow: 0 18px 38px -12px rgba(232, 17, 45, 0.9);
}

.hx__btn--ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(6px);
}

.hx__btn--ghost:hover {
  background: #fff;
  color: var(--hx-navy);
  border-color: #fff;
}

.hx__btn-arrow {
  transition: transform var(--transition-fast);
}

.hx__btn:hover .hx__btn-arrow {
  transform: translateX(5px);
}

/* ---------- Donja traka ---------- */
.hx__bar {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(7, 18, 39, 0.55);
  backdrop-filter: blur(10px);
  animation: hxUp 0.8s 0.45s ease both;
}

.hx__bar-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.hx__bar-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1.25rem 1rem;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.85);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.hx__bar-item:first-child {
  border-left: none;
}

.hx__bar-item:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.hx__bar-num {
  font-family: var(--hx-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--hx-red);
  letter-spacing: 0.08em;
}

.hx__bar-txt {
  font-family: var(--hx-display);
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.hx__bar-arrow {
  margin-left: auto;
  opacity: 0;
  transform: translateX(-6px);
  transition: all var(--transition-fast);
}

.hx__bar-item:hover .hx__bar-arrow {
  opacity: 1;
  transform: none;
}

/* ---------- Naslovi sekcija ispod hero-a u istom fontu ---------- */
.section__title,
.page-hero__title {
  font-family: var(--hx-display);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.05;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hx__bar-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .hx__bar-item:nth-child(3) {
    border-left: none;
  }

  .hx__bar-item:nth-child(n+3) {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .hx__stripes {
    opacity: 0.5;
  }
}

@media (max-width: 639px) {
  .hx__inner {
    padding-block: calc(var(--header-height) + 3rem) 3rem;
  }

  .hx__actions .hx__btn {
    flex: 1 1 100%;
    justify-content: center;
  }

  .hx__bar-txt {
    font-size: 0.92rem;
  }
}

/* ================================================================
   VIJESTI — novi izgled (tamna sekcija, foto kartice)
   ================================================================ */
.nx {
  position: relative;
  background: var(--hx-navy);
  overflow: hidden;
}

/* Suptilan gradijent u pozadini sekcije */
.nx::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 55% at 12% 0%, rgba(43, 140, 255, 0.16) 0%, transparent 60%),
    radial-gradient(50% 45% at 95% 100%, rgba(232, 17, 45, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.nx > .container {
  position: relative;
  z-index: 1;
}

/* ---------- Zaglavlje sekcije ---------- */
.nx__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.nx__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.nx__eyebrow-line {
  width: 32px;
  height: 2px;
  background: var(--hx-red);
  flex-shrink: 0;
}

.nx__title {
  font-family: var(--hx-display);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
}

.nx__all {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.25rem;
  font-family: var(--hx-display);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.nx__all:hover {
  color: #fff;
}

.nx__all-arrow {
  transition: transform var(--transition-fast);
}

.nx__all:hover .nx__all-arrow {
  transform: translateX(4px);
}

/* Dugme ispod grida — na desktopu je suvišno (ima ga u zaglavlju) */
.nx__foot {
  display: none;
  margin-top: 2rem;
  text-align: center;
}

/* ---------- Kartice: fotografija preko cijele kartice ---------- */
.nx .news-card {
  position: relative;
  min-height: 300px;
  border: none;
  border-radius: 6px;
  background: #0b1834;
  box-shadow: 0 10px 30px -14px rgba(0, 0, 0, 0.8);
}

.nx .news-card:hover {
  transform: translateY(-5px);
  border-color: transparent;
  box-shadow: 0 22px 44px -18px rgba(0, 0, 0, 0.9);
}

.nx .news-card__image {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
  background: #0b1834;
}

.nx .news-card__image::after {
  background: linear-gradient(
    to top,
    rgba(4, 11, 26, 0.96) 0%,
    rgba(4, 11, 26, 0.78) 28%,
    rgba(4, 11, 26, 0.22) 62%,
    rgba(4, 11, 26, 0.35) 100%
  );
}

/* Izrezana figura (Lebrón) — ostaje contain, ali na tamnoj podlozi */
.nx .news-card__image--contain {
  background: linear-gradient(160deg, #0d2450 0%, #071227 100%);
}

.nx .news-card__image--contain img {
  object-position: center 15%;
  padding-top: 0;
}

.nx .news-card__image--contain::after {
  display: block;
}

.nx .news-card__body {
  position: relative;
  z-index: 2;
  justify-content: flex-end;
  margin-top: auto;
  padding: 1.4rem 1.3rem 1.25rem;
  gap: 0.55rem;
  background: none;
}

/* Tekst se ne prikazuje na kartici — samo kategorija, naslov i datum */
.nx .news-card__excerpt {
  display: none;
}

.nx .news-card__category {
  align-self: flex-start;
  padding: 0.3rem 0.65rem;
  border-radius: 3px;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: #fff;
  background: var(--hx-red);
}

.nx .news-card__title {
  font-family: var(--hx-display);
  font-weight: 500;
  font-size: 1.15rem;
  line-height: 1.22;
  letter-spacing: 0.01em;
  color: #fff;
  -webkit-line-clamp: 3;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.nx .news-card__footer {
  border-top: none;
  padding-top: 0.15rem;
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.62);
}

.nx .news-card__read-more {
  color: #fff;
  opacity: 0;
  transform: translateX(-6px);
  transition: all var(--transition-fast);
}

.nx .news-card:hover .news-card__read-more {
  opacity: 1;
  transform: none;
  text-decoration: none;
}

/* Istaknuta kartica — veći naslov */
@media (min-width: 900px) {
  .nx .news-card:first-child {
    min-height: 420px;
  }

  .nx .news-card:first-child .news-card__title {
    font-size: 1.9rem;
    line-height: 1.1;
    -webkit-line-clamp: 3;
  }

  .nx .news-card:first-child .news-card__body {
    padding: 2rem 1.8rem 1.7rem;
    max-width: 80%;
  }
}

@media (max-width: 899px) {
  .nx__head {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.75rem;
  }

  .nx__all {
    display: none;
  }

  .nx__foot {
    display: block;
  }
}

/* ================================================================
   IGRAČKI CENTAR — oštre pločice sa SVG ikonicama
   ================================================================ */
.pcx {
  position: relative;
  background: linear-gradient(180deg, #050d1d 0%, var(--hx-navy) 55%, #050d1d 100%);
  overflow: hidden;
}

/* Linije terena u pozadini */
.pcx__court {
  position: absolute;
  inset: -10% -5%;
  pointer-events: none;
  opacity: 0.5;
  background:
    linear-gradient(to right, rgba(255,255,255,0.055) 1px, transparent 1px) 50% 0 / 50% 100%,
    linear-gradient(to bottom, rgba(255,255,255,0.055) 1px, transparent 1px) 0 50% / 100% 34%,
    radial-gradient(60% 50% at 50% 45%, rgba(43, 140, 255, 0.14) 0%, transparent 70%);
}

.pcx > .container {
  position: relative;
  z-index: 1;
}

.pcx__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

/* ---------- Pločica ---------- */
.pcx__item {
  --pcx-c:  #2b8cff;
  --pcx-c2: #0057d9;

  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 1.6rem 1.5rem 1.5rem;
  overflow: hidden;
  isolation: isolate;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.028);
  transition:
    transform var(--transition-base),
    border-color var(--transition-base),
    background var(--transition-base),
    box-shadow var(--transition-base);
}

/* Obojeni sjaj koji se pali na hover */
.pcx__item::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: radial-gradient(90% 80% at 0% 0%, color-mix(in srgb, var(--pcx-c) 26%, transparent) 0%, transparent 65%);
  transition: opacity var(--transition-base);
}

/* Tanka linija u boji koja se izvuče lijevo */
.pcx__item::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--pcx-c), var(--pcx-c2));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--transition-base);
}

.pcx__item:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--pcx-c) 45%, transparent);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 22px 45px -22px color-mix(in srgb, var(--pcx-c) 70%, transparent);
}

.pcx__item:hover::before { opacity: 1; }
.pcx__item:hover::after  { transform: scaleY(1); }

/* Veliki broj u pozadini */
.pcx__num {
  position: absolute;
  top: 0.7rem;
  right: 1rem;
  font-family: var(--hx-display);
  font-size: 3.2rem;
  font-weight: 600;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.16);
  transition: -webkit-text-stroke-color var(--transition-base);
  pointer-events: none;
}

.pcx__item:hover .pcx__num {
  -webkit-text-stroke-color: color-mix(in srgb, var(--pcx-c) 55%, transparent);
}

/* Ikonica */
.pcx__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 0.85rem;
  border-radius: 5px;
  color: var(--pcx-c);
  background: color-mix(in srgb, var(--pcx-c) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--pcx-c) 30%, transparent);
  transition: all var(--transition-base);
}

.pcx__icon svg {
  width: 23px;
  height: 23px;
}

.pcx__item:hover .pcx__icon {
  color: #fff;
  background: linear-gradient(140deg, var(--pcx-c), var(--pcx-c2));
  border-color: transparent;
  box-shadow: 0 10px 22px -8px color-mix(in srgb, var(--pcx-c) 85%, transparent);
  transform: translateY(-2px);
}

.pcx__label {
  font-family: var(--hx-display);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}

.pcx__desc {
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--transition-base);
}

.pcx__item:hover .pcx__desc {
  color: rgba(255, 255, 255, 0.75);
}

.pcx__arrow {
  position: absolute;
  right: 1.4rem;
  bottom: 1.4rem;
  font-size: 1.1rem;
  color: var(--pcx-c);
  opacity: 0;
  transform: translateX(-8px);
  transition: all var(--transition-base);
}

.pcx__item:hover .pcx__arrow {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  .pcx__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .pcx__grid { grid-template-columns: 1fr; gap: 0.75rem; }
  .pcx__item { padding: 1.25rem 1.25rem 1.2rem; }
  .pcx__num  { font-size: 2.4rem; }
  .pcx__arrow { opacity: 1; transform: none; }
}

/* ================================================================
   KONTRAST — pojačana čitljivost teksta na tamnim sekcijama
   ================================================================ */

/* Igrački centar */
.pcx__label {
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

.pcx__desc {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.78);
}

.pcx__item:hover .pcx__desc {
  color: #fff;
}

.pcx__num {
  -webkit-text-stroke-color: rgba(255, 255, 255, 0.28);
}

/* Pločica malo tamnija podloga da tekst "sjedne" (pozadina sekcije ostaje ista) */
.pcx__item {
  background: rgba(4, 11, 26, 0.55);
}

.pcx__item:hover {
  background: rgba(4, 11, 26, 0.42);
}

/* Zaglavlja sekcija */
.nx__eyebrow {
  color: rgba(255, 255, 255, 0.85);
}

.nx__all {
  color: #fff;
}

/* Vijesti — datum i naslov */
.nx .news-card__footer {
  color: rgba(255, 255, 255, 0.8);
}

.nx .news-card__title {
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.75);
}

/* Hero */
.hx__eyebrow {
  color: rgba(255, 255, 255, 0.9);
}

.hx__lead {
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

.hx__bar-item {
  color: #fff;
}

/* Meni */
.header .nav__link {
  color: #fff;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}

/* ================================================================
   JEDINSTVENA TAMNA PALETA
   Gasi staru sivu (#f8f9fc) i tamnu temu iz styles.css uvlači
   u istu navy porodicu kao hero, vijesti i igrački centar.
   ================================================================ */
[data-theme="dark"] {
  --clr-bg:          #050d1d;
  --clr-bg-alt:      #071227;
  --clr-bg-card:     #0c1a35;
  --clr-border:      rgba(255, 255, 255, 0.10);
  --clr-text:        #ffffff;
  --clr-text-muted:  rgba(255, 255, 255, 0.76);
  --clr-text-light:  rgba(255, 255, 255, 0.58);

  --clr-primary:      #2b8cff;
  --clr-primary-dark: #0057d9;
  --clr-primary-glow: rgba(43, 140, 255, 0.28);
  --clr-secondary:      #2b8cff;
  --clr-secondary-dark: #0057d9;
  --clr-accent:  #f5b52a;
  --clr-danger:  #e8112d;

  --clr-header-bg: #071227;
  --clr-header-border: rgba(255, 255, 255, 0.08);
}

/* Naizmjenične sekcije — suptilna razlika u tonu, bez sive */
.section:nth-of-type(even) {
  background: #050d1d;
}

.section:nth-of-type(odd) {
  background: #071227;
}

/* Sekcije koje imaju svoju pozadinu ne diramo */
.hx,
.pcx,
.nx {
  background-image: none;
}

.pcx {
  background: linear-gradient(180deg, #050d1d 0%, #071227 55%, #050d1d 100%) !important;
}

.nx {
  background: #071227 !important;
}

/* Kartice na tamnom */
.tournament-card,
.club-card,
.education-card,
.contact__form,
.contact__info {
  border-color: rgba(255, 255, 255, 0.1);
}

/* Footer u istoj porodici */
.footer {
  background: #040a17;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ================================================================
   IGRAČKI CENTAR — svijetlo plava varijanta (kao CTA sekcija)
   ================================================================ */
.pcx {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f0f9ff 100%) !important;
  border-top: 1px solid rgba(15, 23, 42, 0.07);
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}

/* Linije terena — tamne, blage */
.pcx__court {
  opacity: 1;
  background:
    linear-gradient(to right, rgba(15, 23, 42, 0.06) 1px, transparent 1px) 50% 0 / 50% 100%,
    linear-gradient(to bottom, rgba(15, 23, 42, 0.06) 1px, transparent 1px) 0 50% / 100% 34%,
    radial-gradient(60% 50% at 50% 45%, rgba(14, 165, 233, 0.12) 0%, transparent 70%);
}

/* Zaglavlje sekcije — crna slova */
.pcx .nx__head {
  border-bottom-color: rgba(15, 23, 42, 0.14);
}

.pcx .nx__eyebrow {
  color: rgba(15, 23, 42, 0.7);
}

.pcx .nx__title {
  color: #0f172a;
}

.pcx .nx__all {
  color: #0f172a;
}

/* Pločice — bijele, crna slova */
.pcx__item {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.09);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.pcx__item::before {
  background: radial-gradient(90% 80% at 0% 0%, color-mix(in srgb, var(--pcx-c) 16%, transparent) 0%, transparent 65%);
}

.pcx__item:hover {
  background: #ffffff;
  border-color: color-mix(in srgb, var(--pcx-c) 55%, transparent);
  box-shadow: 0 18px 38px -20px color-mix(in srgb, var(--pcx-c) 85%, transparent);
}

.pcx__label {
  color: #0f172a;
  text-shadow: none;
}

.pcx__desc {
  color: rgba(15, 23, 42, 0.6);
}

.pcx__item:hover .pcx__desc {
  color: rgba(15, 23, 42, 0.85);
}

.pcx__num {
  -webkit-text-stroke-color: rgba(15, 23, 42, 0.16);
}

.pcx__item:hover .pcx__num {
  -webkit-text-stroke-color: color-mix(in srgb, var(--pcx-c) 60%, transparent);
}

/* ================================================================
   SMJENA SVIJETLO / TAMNO PO SEKCIJAMA
   hero (tamno) → igrački centar (svijetlo) → vijesti (tamno)
   → edukacija (svijetlo) → registracija (tamno) → kontakt (svijetlo)
   ================================================================ */

/* ---------- Svijetle sekcije ---------- */
.education,
.contact {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f0f9ff 100%) !important;
  border-top: 1px solid rgba(15, 23, 42, 0.07);
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}

.education .section__title,
.contact .section__title,
.education .edu-card__title,
.contact strong {
  color: #0f172a;
}

.education .section__subtitle,
.contact .section__subtitle,
.education .edu-card__text,
.contact .contact__info-item p {
  color: rgba(15, 23, 42, 0.65);
}

.education .section__badge,
.contact .section__badge {
  color: #0369a1;
  background: rgba(14, 165, 233, 0.12);
  border-color: rgba(14, 165, 233, 0.25);
}

.education .edu-card,
.contact .contact__info,
.contact .contact__form {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.09);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.education .edu-card li,
.contact .form__label {
  color: rgba(15, 23, 42, 0.75);
}

.contact .form__input,
.contact .form__textarea,
.contact .form__select {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.16);
  color: #0f172a;
}

.education .btn--outline {
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.25);
}

.education .btn--outline:hover {
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
}

/* ---------- Tamna sekcija: registracija ---------- */
.cta-section {
  background: linear-gradient(160deg, #071227 0%, #0c1a35 50%, #050d1d 100%) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cta-section::before {
  background:
    radial-gradient(circle at 25% 45%, rgba(43, 140, 255, 0.20) 0%, transparent 60%),
    radial-gradient(circle at 80% 60%, rgba(232, 17, 45, 0.14) 0%, transparent 60%);
}

.cta-section__title {
  color: #fff;
}

.cta-section__subtitle {
  color: rgba(255, 255, 255, 0.78);
}

.cta-section__badge {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

.cta-section .form__label {
  color: rgba(255, 255, 255, 0.85);
}

.cta-section .form__input,
.cta-section .form__select,
.cta-section .form__textarea {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.cta-section .form__input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.cta-section .form__checkbox-label,
.cta-section .form__hint,
.cta-section .register-form p,
.cta-section .register-form small {
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- Kontakt: razmak unutar bijelog boksa ---------- */
.contact .contact__info {
  padding: 1.9rem 1.75rem;
  border-radius: var(--radius-md);
  gap: 1.6rem;
}

.contact .contact__form {
  padding: 1.9rem 1.75rem;
  border-radius: var(--radius-md);
}

/* Ikonice na svijetloj podlozi */
.contact .contact__info-icon {
  background: #eff8ff;
  border-color: rgba(14, 165, 233, 0.22);
  box-shadow: none;
}

.contact .contact__info-item strong {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.55);
  margin-bottom: 0.3rem;
}

.contact .contact__info-item p {
  font-size: 0.95rem;
  line-height: 1.55;
  color: #0f172a;
}

/* Razdjelnik između stavki */
.contact .contact__info-item + .contact__info-item {
  padding-top: 1.6rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  margin-top: -0.2rem;
}

@media (max-width: 639px) {
  .contact .contact__info,
  .contact .contact__form {
    padding: 1.4rem 1.25rem;
  }
}

/* ================================================================
   HERO — dekorativni krug sa krstom (preuzeto sa stare naslovne)
   ================================================================ */
.hx__court {
  position: absolute;
  right: -4%;
  top: 50%;
  transform: translateY(-50%);
  width: 46%;
  height: 82%;
  pointer-events: none;
  opacity: 0.3;
  mix-blend-mode: screen;
}

.hx__court-line {
  position: absolute;
  background: rgba(255, 255, 255, 0.85);
}

.hx__court-line--v {
  left: 50%;
  width: 2px;
  height: 100%;
}

.hx__court-line--h {
  top: 50%;
  width: 100%;
  height: 2px;
}

.hx__court-circle {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 190px;
  height: 190px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
}

/* Blagi puls kruga */
.hx__court-circle::after {
  content: '';
  position: absolute;
  inset: -14px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  animation: hxCourtPulse 4.5s ease-in-out infinite;
}

@keyframes hxCourtPulse {
  0%, 100% { transform: scale(1);    opacity: 0.5; }
  50%      { transform: scale(1.06); opacity: 0.15; }
}

@media (max-width: 900px) {
  .hx__court {
    opacity: 0.18;
    width: 70%;
    right: -18%;
  }

  .hx__court-circle {
    width: 140px;
    height: 140px;
  }
}

/* ================================================================
   EDUKACIJA — svijetla sekcija, oštre kartice
   ================================================================ */
.edx {
  position: relative;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f0f9ff 100%) !important;
  border-top: 1px solid rgba(15, 23, 42, 0.07);
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
  overflow: hidden;
}

.edx .nx__head {
  border-bottom-color: rgba(15, 23, 42, 0.14);
}

.edx .nx__eyebrow { color: rgba(15, 23, 42, 0.7); }
.edx .nx__title   { color: #0f172a; }

.edx__note {
  font-size: 0.95rem;
  color: rgba(15, 23, 42, 0.6);
  padding-bottom: 0.35rem;
}

.edx__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

/* ---------- Kartica ---------- */
.edx__card {
  --edx-c:  #2b8cff;
  --edx-c2: #0057d9;

  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.9rem 1.6rem 1.5rem;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base),
    border-color var(--transition-base);
}

/* Traka u boji na vrhu — raste na hover */
.edx__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--edx-c), var(--edx-c2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.edx__card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--edx-c) 40%, transparent);
  box-shadow: 0 26px 46px -26px color-mix(in srgb, var(--edx-c) 90%, transparent);
}

.edx__card:hover::before {
  transform: scaleX(1);
}

.edx__num {
  position: absolute;
  top: 0.9rem;
  right: 1.1rem;
  font-family: var(--hx-display);
  font-size: 2.8rem;
  font-weight: 600;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(15, 23, 42, 0.14);
  pointer-events: none;
  transition: -webkit-text-stroke-color var(--transition-base);
}

.edx__card:hover .edx__num {
  -webkit-text-stroke-color: color-mix(in srgb, var(--edx-c) 55%, transparent);
}

.edx__icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 1.1rem;
  border-radius: 6px;
  color: var(--edx-c);
  background: color-mix(in srgb, var(--edx-c) 11%, transparent);
  border: 1px solid color-mix(in srgb, var(--edx-c) 26%, transparent);
  transition: all var(--transition-base);
}

.edx__icon svg { width: 26px; height: 26px; }

.edx__card:hover .edx__icon {
  color: #fff;
  background: linear-gradient(140deg, var(--edx-c), var(--edx-c2));
  border-color: transparent;
  box-shadow: 0 12px 24px -10px color-mix(in srgb, var(--edx-c) 85%, transparent);
}

.edx__title {
  font-family: var(--hx-display);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #0f172a;
  margin: 0 0 0.6rem;
}

.edx__text {
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(15, 23, 42, 0.62);
  margin: 0 0 1.25rem;
}

/* ---------- Lista nivoa ---------- */
.edx__list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.edx__list li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  font-size: 0.88rem;
  font-weight: 500;
  color: #0f172a;
}

.edx__badge {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  font-family: var(--hx-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--edx-c);
  background: color-mix(in srgb, var(--edx-c) 12%, transparent);
  transition: all var(--transition-fast);
}

.edx__card:hover .edx__badge {
  color: #fff;
  background: var(--edx-c);
}

/* ---------- Link ---------- */
.edx__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  font-family: var(--hx-display);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--edx-c);
  transition: gap var(--transition-fast);
}

.edx__link-arrow {
  transition: transform var(--transition-fast);
}

.edx__card:hover .edx__link-arrow {
  transform: translateX(5px);
}

@media (max-width: 900px) {
  .edx__grid { grid-template-columns: 1fr; }
  .edx__note { display: none; }
}

/* Stavke liste u Edukaciji koje su linkovi */
.edx__list--links a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.edx__list--links a:hover {
  color: var(--edx-c);
}

.edx__list--links a:hover .edx__badge {
  color: #fff;
  background: var(--edx-c);
}

/* Dugme za prijavu u zaglavlju stranice turnira */
.page-hero__cta {
  margin-top: 1.5rem;
}
