@charset "UTF-8";

/*
 * Originalni informativni-portal raspored napravljen prema dostavljenoj
 * vizuelnoj referenci. Ne koristi tuđi logo, sadržaj, fotografije ni kod.
 */

.portal-wide {
  width: min(calc(100% - 32px), 1510px);
  margin-inline: auto;
}

/* Header */
.portal-header.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 1px 4px rgba(15, 23, 42, .05);
  backdrop-filter: none;
}

.portal-header__main {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.portal-header__row {
  display: grid;
  min-height: 69px;
  grid-template-columns: 42px minmax(168px, 188px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.portal-header__menu {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  padding: 0;
  border: 0;
  color: #657081;
  background: transparent;
  cursor: pointer;
}

.portal-header__menu:hover { color: var(--text); }
.portal-header__menu:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.portal-menu-glyph {
  position: relative;
  display: block;
  width: 27px;
  height: 24px;
}

.portal-menu-glyph i {
  position: absolute;
  left: 1px;
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.portal-menu-glyph i:nth-child(1) { top: 3px; width: 22px; }
.portal-menu-glyph i:nth-child(2) { top: 10px; width: 15px; }
.portal-menu-glyph i:nth-child(3) { top: 17px; width: 18px; }
.portal-menu-glyph b {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 8px;
  height: 8px;
  border: 1.8px solid currentColor;
  border-radius: 50%;
}
.portal-menu-glyph b::after {
  position: absolute;
  right: -4px;
  bottom: -3px;
  width: 5px;
  height: 1.8px;
  border-radius: 2px;
  content: "";
  background: currentColor;
  transform: rotate(45deg);
  transform-origin: left center;
}

.portal-brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 4px;
  color: var(--text);
  white-space: nowrap;
}
.portal-brand:hover { color: var(--text); }
.portal-brand__wordmark {
  min-width: 0;
  overflow: visible;
  font-size: 25px;
  font-weight: 900;
  letter-spacing: -.065em;
  line-height: 1;
  text-overflow: clip;
}
.portal-brand__tiles {
  display: inline-grid;
  width: 18px;
  height: 18px;
  grid-template-columns: repeat(2, 7px);
  grid-template-rows: repeat(2, 7px);
  gap: 2px;
  margin-left: 1px;
  transform: rotate(45deg) scale(.82);
}
.portal-brand__tiles i { display: block; border-radius: 1px; }
.portal-brand__tiles i:nth-child(1) { grid-column: 1; grid-row: 1; background: #4b5563; }
.portal-brand__tiles i:nth-child(2) { grid-column: 2; grid-row: 1; background: #35a8df; }
.portal-brand__tiles i:nth-child(3) { grid-column: 1 / 3; grid-row: 2; background: #8a96a5; }
.portal-brand__custom-logo { display: block; width: auto; max-width: 150px; height: 45px; object-fit: contain; }
.portal-brand--drawer .portal-brand__custom-logo { max-width: 190px; }
.portal-brand--drawer .portal-brand__wordmark { font-size: 25px; }

.portal-header__categories {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: clamp(13px, 1.25vw, 22px);
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
}
.portal-header__categories::-webkit-scrollbar { display: none; }
.portal-header__categories a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  min-height: 69px;
  color: #354052;
  font-size: 16px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
}
html[data-theme="dark"] .portal-header__categories a { color: var(--text-soft); }
@media (prefers-color-scheme: dark) {
  html[data-theme="system"] .portal-header__categories a { color: var(--text-soft); }
}
.portal-header__categories a:hover { color: var(--text); }
.portal-header__categories a > i {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  border-radius: 2px;
  background: var(--nav-color);
}

.portal-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  padding-left: 7px;
}
.portal-header__action {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #3e4a5e;
  background: transparent;
  transition: color .18s, background .18s;
}
.portal-header__action:hover { color: var(--text); background: var(--surface-2); }

.portal-topic-bar {
  min-height: 38px;
  background: var(--surface);
}
.portal-topic-bar__inner {
  display: flex;
  min-height: 38px;
  align-items: stretch;
  overflow-x: auto;
  scrollbar-width: none;
}
.portal-topic-bar__inner::-webkit-scrollbar { display: none; }
.portal-topic-bar__inner a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 0 16px;
  border-right: 1px solid var(--border);
  color: #526074;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .01em;
  text-transform: uppercase;
  white-space: nowrap;
}
.portal-topic-bar__inner a:first-child { border-left: 1px solid var(--border); }
.portal-topic-bar__inner a:hover { color: var(--text); background: var(--surface-2); }
.portal-topic-bar__inner a b { color: #7d8796; font-size: 18px; font-weight: 500; line-height: 1; }
.portal-topic-bar__inner a.is-hot b { color: var(--accent); }
.portal-topic-bar__inner .portal-topic-bar__jobs { color: #10233d; font-weight: 750; }
html[data-theme="dark"] .portal-topic-bar__inner .portal-topic-bar__jobs { color: var(--text); }

/* Naslovnica */
body.home-klix { background: #eef1f5; }
html[data-theme="dark"] body.home-klix { background: #090d14; }
@media (prefers-color-scheme: dark) {
  html[data-theme="system"] body.home-klix { background: #090d14; }
}

.home-portal-page { padding-bottom: 58px; }
.home-portal-shell {
  border-right: 1px solid var(--border);
  border-left: 1px solid var(--border);
  background: var(--surface);
}
.home-portal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 410px;
}
.home-portal-content {
  min-width: 0;
  padding: 9px 10px 38px;
  border-right: 1px solid var(--border);
}
.home-portal-rail {
  min-width: 0;
  padding: 9px 27px 40px;
  background: var(--surface);
}

.home-top-grid {
  display: grid;
  grid-template-areas:
    "a lead lead b"
    "t1 t2 t3 t4";
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: 340px 343px;
  gap: 10px;
}
.home-top-grid > div { min-width: 0; }
.home-top-grid__a { grid-area: a; }
.home-top-grid__lead { grid-area: lead; }
.home-top-grid__b { grid-area: b; }
.home-top-grid__tile--1 { grid-area: t1; }
.home-top-grid__tile--2 { grid-area: t2; }
.home-top-grid__tile--3 { grid-area: t3; }
.home-top-grid__tile--4 { grid-area: t4; }

.home-card {
  --category-color: #dc3545;
  position: relative;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  background: var(--surface);
}
.home-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--surface-2);
}
.home-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.home-card:hover .home-card__media img { transform: scale(1.025); }
.home-card__body { min-width: 0; }
.home-card__label {
  overflow: hidden;
  color: var(--category-color);
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
.home-card__label a { color: inherit; }
.home-card__title {
  margin: 6px 0 0;
  color: var(--text);
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -.025em;
  line-height: 1.19;
}
.home-card__title a:hover { color: var(--text); text-decoration: underline; text-decoration-color: var(--category-color); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.home-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  color: #99a2b0;
  font-size: 12px;
  line-height: 1;
}
.home-card__meta time { white-space: nowrap; }
.home-card__stats { display: inline-flex; align-items: center; gap: 8px; }
.home-card__stats > span { display: inline-flex; align-items: center; gap: 3px; }
.home-card__play {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 2px solid rgba(255,255,255,.85);
  border-radius: 50%;
  color: #fff;
  background: rgba(16,24,40,.58);
  transform: translate(-50%, -50%);
}
.home-card__promo {
  position: absolute;
  z-index: 3;
  top: 8px;
  right: 8px;
  padding: 3px 6px;
  border-radius: 2px;
  color: #111827;
  background: #facc15;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
}

.home-card--side,
.home-card--tile {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--border);
}
.home-card--side .home-card__media { height: 170px; flex: 0 0 170px; }
.home-card--tile .home-card__media { height: 169px; flex: 0 0 169px; }
.home-card--side .home-card__body,
.home-card--tile .home-card__body {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  padding: 10px 1px 10px;
}
.home-card--side .home-card__title { font-size: 18px; }
.home-card--tile .home-card__title { font-size: 18px; }

.home-card--lead {
  min-height: 340px;
  background: #111827;
}
.home-card--lead .home-card__media { position: absolute; inset: 0; }
.home-card--lead .home-card__media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(to top, rgba(0,0,0,.94) 0%, rgba(0,0,0,.62) 36%, rgba(0,0,0,.12) 67%, transparent 100%);
}
.home-card--lead .home-card__body {
  position: absolute;
  z-index: 2;
  inset: auto 0 0;
  display: flex;
  min-height: 184px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 17px 18px 15px;
  color: #fff;
}
.home-card--lead .home-card__label { color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.home-card--lead .home-card__title {
  max-width: 92%;
  margin-top: 7px;
  color: #fff;
  font-size: clamp(22px, 1.65vw, 27px);
  font-weight: 800;
  line-height: 1.14;
  text-shadow: 0 2px 8px rgba(0,0,0,.45);
}
.home-card--lead .home-card__title a:hover { color: #fff; }
.home-card--lead .home-card__meta { width: 100%; margin-top: 17px; color: rgba(255,255,255,.92); }

/* Oglas i desni blok */
.home-rail-ad.ad-slot {
  width: 100%;
  height: 295px;
  min-height: 295px;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  color: #fff;
  background:
    radial-gradient(circle at 90% 15%, rgba(255,255,255,.18), transparent 22%),
    linear-gradient(135deg, #ee232b 0%, #d9141f 58%, #b60814 100%);
  box-shadow: none;
}
.home-rail-ad.ad-slot::before,
.home-rail-ad.ad-slot::after {
  position: absolute;
  border-radius: 50%;
  content: "";
  background: rgba(255,255,255,.07);
}
.home-rail-ad.ad-slot::before { width: 210px; height: 210px; right: -75px; bottom: -95px; }
.home-rail-ad.ad-slot::after { width: 110px; height: 110px; left: -35px; top: -48px; }
.home-rail-ad.ad-slot > small {
  z-index: 3;
  top: 5px;
  right: 7px;
  color: rgba(255,255,255,.72);
  font-size: 8px;
}
.home-rail-ad .ad-slot__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 30px;
  color: #fff;
}
.home-rail-ad .ad-slot__content strong {
  max-width: 310px;
  color: #fff;
  font-size: clamp(27px, 2.2vw, 38px);
  font-weight: 900;
  letter-spacing: -.045em;
  line-height: .98;
  text-transform: uppercase;
  text-shadow: 0 3px 12px rgba(85,0,0,.24);
}
.home-rail-ad .ad-slot__content span { max-width: 280px; margin-top: 12px; color: rgba(255,255,255,.9); font-size: 14px; font-weight: 650; }
.home-rail-ad .ad-slot__content img { width: 100%; height: 295px; max-height: none; object-fit: cover; }
.home-rail-ad .ad-slot__content:has(img) { height: 100%; padding: 0; }
.home-rail-ad .ad-slot__content:has(img) a { display: block; width: 100%; height: 100%; }

.home-rail-tabs.sidebar-box {
  margin-top: 22px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.home-rail-tabs__nav.sidebar-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-bottom: 1px solid var(--border);
}
.home-rail-tabs__nav.sidebar-tabs button {
  position: relative;
  min-height: 46px;
  padding: 0 6px;
  border: 0;
  border-radius: 0;
  color: #445166;
  background: transparent;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}
.home-rail-tabs__nav.sidebar-tabs button::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  content: "";
  background: transparent;
}
.home-rail-tabs__nav.sidebar-tabs button.is-active {
  color: var(--text);
  background: transparent;
  font-weight: 750;
}
.home-rail-tabs__nav.sidebar-tabs button.is-active::after { background: var(--accent); }
.home-rail-tabs .sidebar-panel { display: none; padding: 0; }
.home-rail-tabs .sidebar-panel.is-active { display: block; }
.home-timeline__item { padding: 14px 0 15px; border-bottom: 1px solid var(--border); }
.home-timeline__label {
  display: block;
  overflow: hidden;
  margin-bottom: 5px;
  color: var(--category-color);
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
.home-timeline__item h3 { margin: 0; font-size: 15.5px; font-weight: 500; letter-spacing: -.015em; line-height: 1.32; }
.home-timeline__item h3 a:hover { color: var(--text); text-decoration: underline; text-decoration-color: var(--category-color); text-underline-offset: 3px; }
.home-timeline__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 9px;
  color: #9da6b3;
  font-size: 11.5px;
}
.home-timeline__meta > span { display: inline-flex; align-items: center; gap: 8px; }
.home-timeline__meta > span > span { display: inline-flex; align-items: center; gap: 3px; }

/* Sadržaj ispod prvog ekrana */
.home-stream-section,
.home-category-section { margin-top: 38px; }
.home-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 45px;
  margin-bottom: 11px;
  border-bottom: 1px solid var(--border);
}
.home-section-heading h2 {
  position: relative;
  margin: 0;
  padding: 0 0 11px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.035em;
}
.home-section-heading h2::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  content: "";
  background: var(--section-color, var(--accent));
}
.home-section-heading a { display: inline-flex; align-items: center; gap: 7px; color: #758092; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.home-stream-grid,
.home-category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 10px; }
.home-card--stream,
.home-card--category { height: auto; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.home-card--stream .home-card__media,
.home-card--category .home-card__media { aspect-ratio: 16 / 9; }
.home-card--stream .home-card__body,
.home-card--category .home-card__body { display: flex; min-height: 142px; flex-direction: column; padding-top: 10px; }
.home-card--stream .home-card__title,
.home-card--category .home-card__title { font-size: 17px; }
.home-category-sections { margin-top: 8px; }

/* Drawer/header usklađivanje */
.portal-header + .drawer-backdrop + .site-drawer .site-drawer__header { min-height: 69px; }

@media (max-width: 1450px) {
  .portal-header__row { grid-template-columns: 38px 168px minmax(0, 1fr) auto; gap: 11px; }
  .portal-header__categories { gap: 16px; }
  .portal-header__categories a { gap: 7px; font-size: 14px; }
  .portal-header__categories a > i { width: 12px; height: 12px; }
  .home-portal-grid { grid-template-columns: minmax(0, 1fr) 380px; }
  .home-portal-rail { padding-inline: 22px; }
}

@media (max-width: 1180px) {
  .portal-header__row {
    min-height: 62px;
    grid-template-columns: 38px minmax(110px, 1fr) auto;
    padding-top: 4px;
  }
  .portal-header__menu { grid-column: 1; grid-row: 1; }
  .portal-brand { grid-column: 2; grid-row: 1; }
  .portal-header__actions { grid-column: 3; grid-row: 1; }
  .portal-header__categories {
    grid-column: 1 / -1;
    grid-row: 2;
    min-height: 41px;
    gap: 22px;
    border-top: 1px solid var(--border);
  }
  .portal-header__categories a { min-height: 41px; }
  .portal-topic-bar__inner a { padding-inline: 13px; }
  .home-portal-grid { grid-template-columns: minmax(0, 1fr) 330px; }
  .home-portal-rail { padding-inline: 16px; }
  .home-top-grid {
    grid-template-areas:
      "lead lead"
      "a b"
      "t1 t2"
      "t3 t4";
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 410px repeat(3, 340px);
  }
  .home-card--lead { min-height: 410px; }
  .home-stream-grid,
  .home-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .portal-wide { width: min(calc(100% - 20px), 760px); }
  .portal-header__actions { gap: 0; }
  .portal-header__action { width: 39px; height: 39px; }
  .portal-topic-bar__inner a { font-size: 11px; }
  .home-portal-shell { width: 100%; border: 0; }
  .home-portal-grid { display: block; }
  .home-portal-content { padding: 9px 10px 28px; border-right: 0; }
  .home-portal-rail { padding: 20px 20px 35px; border-top: 1px solid var(--border); }
  .home-rail-ad.ad-slot { width: min(100%, 420px); margin-inline: auto; }
  .home-rail-tabs.sidebar-box { max-width: 620px; margin-inline: auto; }
}

@media (max-width: 620px) {
  .portal-wide { width: 100%; }
  .portal-header__row { padding-inline: 10px; }
  .portal-brand__wordmark { font-size: 23px; }
  .portal-brand__custom-logo { max-width: 148px; height: 39px; }
  .portal-header__actions .portal-header__action:first-child { display: none; }
  .portal-header__categories { margin-inline: -10px; padding-inline: 10px; }
  .portal-topic-bar__inner { padding-inline: 10px; }
  .portal-topic-bar__inner a:first-child { border-left: 0; }
  .home-portal-content { padding-inline: 8px; }
  .home-top-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .home-top-grid__lead { order: -3; }
  .home-top-grid__a { order: -2; }
  .home-top-grid__b { order: -1; }
  .home-top-grid > div { height: auto; }
  .home-card--lead { min-height: 360px; }
  .home-card--side,
  .home-card--tile { height: 345px; }
  .home-card--side .home-card__media,
  .home-card--tile .home-card__media { height: 185px; flex-basis: 185px; }
  .home-stream-grid,
  .home-category-grid { grid-template-columns: 1fr; }
  .home-card--stream,
  .home-card--category { display: grid; grid-template-columns: 135px minmax(0, 1fr); gap: 12px; min-height: 112px; padding-bottom: 12px; }
  .home-card--stream .home-card__media,
  .home-card--category .home-card__media { height: 100%; min-height: 104px; aspect-ratio: auto; }
  .home-card--stream .home-card__body,
  .home-card--category .home-card__body { min-height: 104px; padding-top: 0; }
  .home-card--stream .home-card__title,
  .home-card--category .home-card__title { font-size: 15px; }
  .home-card--stream .home-card__label,
  .home-card--category .home-card__label { font-size: 10px; }
  .home-section-heading { padding-inline: 2px; }
  .home-section-heading h2 { font-size: 20px; }
  .home-section-heading a { font-size: 10px; }
  .home-portal-rail { padding-inline: 12px; }
  .home-rail-tabs__nav.sidebar-tabs button { font-size: 14px; }
}

@media (max-width: 390px) {
  .portal-header__action { width: 36px; }
  .portal-header__actions .portal-header__action:nth-child(2) { display: none; }
  .home-card--lead { min-height: 330px; }
  .home-card--lead .home-card__title { font-size: 22px; }
  .home-card--stream,
  .home-card--category { grid-template-columns: 116px minmax(0, 1fr); }
}
