/* ============================================
   BestBook — main stylesheet
   ============================================ */

/* Fonts — Farnham Display Web (self-hosted, licensed)
   ----------------------------------------- */
@font-face {
  font-family: "Farnham Display Web";
  src: url("../fonts/FarnhamDisplay-Light-Web.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Farnham Display Web";
  src: url("../fonts/FarnhamDisplay-Medium-Web.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Farnham Display Web";
  src: url("../fonts/FarnhamDisplay-MediumItalic-Web.woff2") format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Farnham Display Web";
  src: url("../fonts/FarnhamDisplay-Bold-Web.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Design tokens
   ----------------------------------------- */
:root {
  --bb-black: #000000;
  --bb-white: #ffffff;
  --bb-yellow: #fec820;
  --bb-red: #ec1c24;
  --bb-grey-line: #000000;

  --bb-font-display: "Farnham Display Web", Georgia, "Times New Roman", serif;
  --bb-font-body: "Darker Grotesque", system-ui, -apple-system, sans-serif;

  --bb-container: 1210px;
  --bb-gap: 30px;

  --bb-nav-h: 70px;
}

/* Reset & base
   ----------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--bb-font-body);
  font-weight: 500;
  color: var(--bb-black);
  background: var(--bb-white);
  line-height: 1.4;
  overflow-x: clip; /* full-width slike ne uzrokuju horizontalni scroll */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--bb-font-display);
  font-weight: 500;
  margin: 0;
  line-height: 0.95;
}

p {
  margin: 0;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.screen-reader-text {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  clip: auto;
  width: auto;
  height: auto;
  position: absolute;
  left: 1rem;
  top: 1rem;
  background: var(--bb-black);
  color: var(--bb-white);
  padding: 0.5rem 1rem;
  z-index: 9999;
}

/* Container
   ----------------------------------------- */
.bb-container {
  max-width: var(--bb-container);
  margin: 0 auto;
  padding: 0 20px;
}

.bb-main {
  display: block;
}

.bb-section {
  position: relative;
}
.bb-section--padded {
  padding: 80px 0;
}
.bb-section--dark {
  background: var(--bb-black);
  color: var(--bb-white);
}
.bb-section--dark a {
  color: var(--bb-white);
}

/* Navigation
   ----------------------------------------- */
.bb-nav {
  background: var(--bb-black);
  color: var(--bb-white);
  height: var(--bb-nav-h);
  position: sticky;
  top: 0;
  z-index: 100;
}
.bb-nav__inner {
  max-width: 1620px;
  margin: 0 auto;
  height: 100%;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.bb-nav__logo img {
  width: 163px;
  height: auto;
}

/* Nav links wrapper — inline flex na desktopu, full-screen modal na mobitelu */
.bb-nav__links {
  display: flex;
  align-items: center;
  gap: 25px;
}

/* Menu (WordPress wp_nav_menu output) */
.bb-nav__menu {
  display: flex;
  align-items: center;
  gap: 25px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.bb-nav__menu .menu-item {
  position: relative;
  display: block;
}
.bb-nav__menu .menu-item > a,
.bb-nav__menu .menu-item > span {
  font-family: var(--bb-font-body);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: 3.06px;
  text-transform: uppercase;
  color: var(--bb-white);
  display: inline-block;
  transition:
    opacity 0.15s,
    color 0.15s;
}
.bb-nav__menu a:hover,
.bb-nav__menu .current-menu-item > a,
.bb-nav__menu .current-menu-parent > a,
.bb-nav__menu .current-menu-ancestor > a,
.bb-nav__menu .menu-item.is-open > a {
  color: var(--bb-red);
  text-decoration: none;
}

/* Desktop dropdown (sub-menu) */
.bb-nav__menu .sub-menu {
  list-style: none;
  margin: 0;
  padding: 20px 60px;
  background: var(--bb-black);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  visibility: hidden;
  opacity: 0;
  transition:
    opacity 0.15s,
    visibility 0.15s;
  z-index: 200;
}
.bb-nav__menu .menu-item-has-children:hover > .sub-menu,
.bb-nav__menu .menu-item-has-children:focus-within > .sub-menu {
  visibility: visible;
  opacity: 1;
}
.bb-nav__menu .sub-menu .menu-item > a {
  font-family: var(--bb-font-body);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: 3.06px;
  text-transform: uppercase;
  color: var(--bb-white);
}
.bb-nav__menu .sub-menu .current-menu-item > a {
  color: var(--bb-red);
}

/* Divider (vertical line) */
.bb-nav__divider {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.35);
}
.bb-nav__divider--mobile {
  display: none; /* samo na mobitelu */
}

/* Language switcher */
.bb-nav__langs {
  display: flex;
  align-items: center;
  gap: 25px;
}
.bb-nav__lang {
  font-family: var(--bb-font-body);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 3.06px;
  text-transform: uppercase;
  color: var(--bb-white);
}
.bb-nav__lang.is-active {
  color: var(--bb-red);
}

/* Search button */
.bb-nav__search {
  color: var(--bb-white);
  padding: 4px;
  line-height: 0;
}
.bb-nav__search:hover {
  color: var(--bb-red);
}

/* Hamburger button (sakriven na desktopu) */
.bb-nav__hamburger {
  display: none;
  position: relative;
  width: 24px;
  height: 24px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--bb-white);
}
.bb-nav__hamburger-lines,
.bb-nav__hamburger-lines::before,
.bb-nav__hamburger-lines::after {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: currentColor;
  transition:
    transform 0.2s,
    top 0.2s,
    opacity 0.15s;
}
.bb-nav__hamburger-lines {
  top: 50%;
  margin-top: -1px;
}
.bb-nav__hamburger-lines::before {
  content: "";
  top: -7px;
}
.bb-nav__hamburger-lines::after {
  content: "";
  top: 7px;
}
/* Hamburger → X kad je meni otvoren */
.bb-nav__hamburger[aria-expanded="true"] .bb-nav__hamburger-lines {
  background: transparent;
}
.bb-nav__hamburger[aria-expanded="true"] .bb-nav__hamburger-lines::before {
  top: 0;
  transform: rotate(45deg);
}
.bb-nav__hamburger[aria-expanded="true"] .bb-nav__hamburger-lines::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Hero slider
   ----------------------------------------- */
.bb-hero {
  position: relative;
  width: 100%;
  height: 925px;
  background: var(--bb-black);
  overflow: hidden;
}
.bb-hero__track {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.bb-hero__slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  display: block;
  color: var(--bb-white);
}
.bb-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bb-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse at center,
      rgba(24, 25, 29, 0) 0%,
      rgba(24, 25, 29, 1) 100%
    ),
    rgba(0, 0, 0, 0.45);
  pointer-events: none;
}
.bb-hero__content {
  position: relative;
  z-index: 2;
  height: 100%;
  max-width: 1179px;
  margin: 0 auto;
  padding: 0 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 30px;
}
.bb-hero__title {
  font-family: var(--bb-font-display);
  font-weight: 300;
  font-size: 130px;
  line-height: 1;
  letter-spacing: 6.5px;
  text-transform: uppercase;
  text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
  max-width: 1179px;
}
.bb-hero__subtitle {
  font-family: var(--bb-font-body);
  font-weight: 400;
  font-size: 40px;
  letter-spacing: 2px;
  max-width: 900px;
}
.bb-hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--bb-white);
  opacity: 0.85;
  transition: opacity 0.2s;
  z-index: 5;
}
.bb-hero__arrow:hover {
  opacity: 1;
}
.bb-hero__arrow--prev {
  left: 150px;
}
.bb-hero__arrow--next {
  right: 150px;
}
.bb-hero__dots {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}
.bb-hero__dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transition: background 0.2s;
}
.bb-hero__dots button[aria-selected="true"],
.bb-hero__dots button.is-active {
  background: var(--bb-white);
}

/* Labela kategorije (mali pill)
   ----------------------------------------- */
.bb-label {
  display: inline-block;
  padding: 10px 20px;
  font-family: var(--bb-font-display);
  font-weight: 700;
  font-size: 17px;
  line-height: 1;
  letter-spacing: 0.85px;
  text-transform: uppercase;
  color: var(--bb-white);
  background: var(--bb-black);
}
.bb-label--yellow {
  background: var(--bb-yellow);
  color: var(--bb-black);
  padding: 15px 20px;
  font-size: 20px;
  letter-spacing: 0;
}
.bb-label--red {
  background: var(--bb-red);
  color: var(--bb-white);
  padding: 15px 20px;
  font-size: 20px;
  letter-spacing: 0;
}
.bb-label--lg {
  padding: 15px 20px;
  font-size: 20px;
}

/* Byline + readmore
   ----------------------------------------- */
.bb-byline {
  font-family: var(--bb-font-body);
  font-weight: 500;
  font-size: 17px;
  line-height: 1;
  color: inherit;
}
.bb-byline strong {
  font-weight: 800;
  text-transform: uppercase;
}
.bb-byline__title {
  font-weight: 500;
  text-transform: none;
}

.bb-readmore {
  display: inline-block;
  font-family: var(--bb-font-body);
  font-weight: 800;
  font-size: 17px;
  line-height: 1;
  text-transform: uppercase;
  color: inherit;
}
.bb-readmore:hover {
  color: var(--bb-red);
  text-decoration: none;
}

/* Large article block
   ----------------------------------------- */
.bb-large {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--bb-gap);
  align-items: center;
  max-width: var(--bb-container);
  margin: 0 auto;
}
.bb-large--img-left .bb-large__image {
  order: 1;
}
.bb-large--img-left .bb-large__text {
  order: 2;
}
.bb-large--img-right .bb-large__image {
  order: 2;
}
.bb-large--img-right .bb-large__text {
  order: 1;
}

.bb-large__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
}
.bb-large__title {
  font-family: var(--bb-font-display);
  font-weight: 500;
  font-size: 75px;
  line-height: 0.95;
  color: inherit;
}
.bb-large__title a {
  color: inherit;
}
.bb-large__title a:hover {
  color: var(--bb-red);
  text-decoration: none;
}

.bb-large__lead {
  font-family: var(--bb-font-body);
  font-weight: 500;
  font-size: 25px;
  line-height: 1.1;
  max-width: 577px;
}
.bb-large__image {
  aspect-ratio: 590 / 645;
  overflow: hidden;
}
.bb-large__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}
.bb-large__image:hover img {
  transform: scale(1.03);
}

/* Articles grid (large article + 4 cards)
   ----------------------------------------- */
.bb-articles-grid {
  padding: 60px 0 80px;
}
.bb-articles-grid__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--bb-gap);
  margin-top: 60px;
}

/* Banner */
.bb-banner {
  max-width: 970px;
  margin: 60px auto;
  display: flex;
  justify-content: center;
}
.bb-banner img {
  max-width: 100%;
  height: auto;
}

/* Article card (image top, text bottom)
   ----------------------------------------- */
.bb-card {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.bb-card__image {
  display: block;
  aspect-ratio: 590 / 400;
  overflow: hidden;
}
.bb-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}
.bb-card:hover .bb-card__image img {
  transform: scale(1.03);
}

.bb-card__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
}
.bb-card__title {
  font-family: var(--bb-font-display);
  font-weight: 500;
  font-size: 75px;
  line-height: 0.95;
  color: inherit;
}
.bb-card__title a:hover {
  color: var(--bb-red);
  text-decoration: none;
}

.bb-card__lead {
  font-family: var(--bb-font-body);
  font-weight: 500;
  font-size: 25px;
  line-height: 1.1;
}

/* Special edition — široka slika (do 1440px) + bijela kartica dolje lijevo
   sa žutom labelom koja "izlazi" iznad kartice
   ----------------------------------------- */
.bb-special {
  position: relative;
  width: 100%;
  max-width: 1440px;
  height: 635px;
  margin: 100px auto;
}
.bb-special__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bb-special__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    250.79deg,
    rgba(0, 0, 0, 0) 50%,
    rgba(0, 0, 0, 0.6) 98.87%
  );
  pointer-events: none;
}
.bb-special__card {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 540px;
  height: 335px;
  background: var(--bb-white);
  color: var(--bb-black);
  padding: 40px 80px 20px 35px;
  display: flex;
  flex-direction: column;
  z-index: 2;
}
.bb-special__label {
  position: absolute;
  top: -25px;
  left: 35px;
  background: var(--bb-yellow);
  color: var(--bb-black);
  padding: 15px 20px;
  font-family: var(--bb-font-display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
  white-space: nowrap;
  z-index: 3;
}
.bb-special__title {
  font-family: var(--bb-font-display);
  font-weight: 500;
  font-size: 85px;
  line-height: 0.95;
  letter-spacing: 1.7px;
  margin: 0;
}
.bb-special__title a {
  color: inherit;
}
.bb-special__title a:hover {
  color: var(--bb-red);
  text-decoration: none;
}
.bb-special__subtitle {
  font-family: var(--bb-font-body);
  font-weight: 500;
  font-size: 25px;
  line-height: 1;
  letter-spacing: 1.25px;
  text-transform: uppercase;
  margin: auto 0 24px; /* gura na dno kartice, iznad readmore-a */
}
.bb-special .bb-readmore {
  margin-top: 0;
}

/* Section title (PREPORUKE / U FOKUSU / NOVA IZDANJA)
   ----------------------------------------- */
.bb-section-title {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 60px;
}
.bb-section-title h2 {
  font-family: var(--bb-font-display);
  font-weight: 300;
  font-size: 85px;
  line-height: 1;
  text-transform: uppercase;
  color: inherit;
  flex-shrink: 0;
}
.bb-section-title__line {
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.8;
}
.bb-section-title--centered {
  justify-content: center;
  text-align: center;
}
.bb-section-title--centered .bb-section-title__line {
  max-width: 255px;
}

/* Books grid (3 column)
   ----------------------------------------- */
.bb-books-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px 25px;
}
.bb-book {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.bb-book__image {
  display: block;
  aspect-ratio: 385 / 260;
  overflow: hidden;
}
.bb-book__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}
.bb-book:hover .bb-book__image img {
  transform: scale(1.03);
}
.bb-book__text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.bb-book__author {
  font-family: var(--bb-font-body);
  font-weight: 800;
  font-size: 20px;
  line-height: 1;
}
.bb-book__title {
  font-family: var(--bb-font-display);
  font-weight: 500;
  font-size: 35px;
  line-height: 1.1;
}
.bb-book__title a:hover {
  color: var(--bb-red);
  text-decoration: none;
}
.bb-book__desc {
  font-family: var(--bb-font-body);
  font-weight: 500;
  font-size: 25px;
  line-height: 1.1;
}
.bb-book__publisher {
  font-family: var(--bb-font-body);
  font-weight: 800;
  font-size: 17px;
  line-height: 1;
}

/* Footer
   ----------------------------------------- */
.bb-footer {
  background: var(--bb-black);
  color: var(--bb-white);
  padding: 40px 0;
}
.bb-footer__inner {
  max-width: var(--bb-container);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.bb-footer__left {
  display: flex;
  align-items: center;
  gap: 30px;
}
.bb-footer__menu {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 60px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.bb-footer__menu a {
  font-family: var(--bb-font-body);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: 3.06px;
  text-transform: uppercase;
  color: var(--bb-white);
}
.bb-footer__menu a:hover {
  color: var(--bb-red);
  text-decoration: none;
}

.bb-copyright {
  background: var(--bb-red);
  color: var(--bb-white);
  padding: 12px 0;
  text-align: center;
}
.bb-copyright__inner {
  max-width: var(--bb-container);
  margin: 0 auto;
  padding: 0 20px;
}
.bb-copyright p {
  font-family: var(--bb-font-body);
  font-weight: 800;
  font-size: 17px;
  line-height: 1;
  text-transform: uppercase;
}

/* Responsive
   ----------------------------------------- */
@media (max-width: 1024px) {
  .bb-hero {
    height: 600px;
  }
  .bb-hero__title {
    font-size: 72px;
    letter-spacing: 3px;
  }
  .bb-hero__subtitle {
    font-size: 24px;
  }
  .bb-hero__content {
    padding: 0 40px;
  }
  .bb-hero__arrow--prev {
    left: 20px;
  }
  .bb-hero__arrow--next {
    right: 20px;
  }

  .bb-large {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .bb-large--img-left .bb-large__image,
  .bb-large--img-right .bb-large__image {
    order: 1;
  }
  .bb-large--img-left .bb-large__text,
  .bb-large--img-right .bb-large__text {
    order: 2;
  }

  .bb-large__title {
    font-size: 48px;
  }
  .bb-large__lead,
  .bb-card__lead {
    font-size: 20px;
  }

  .bb-articles-grid__cards {
    grid-template-columns: 1fr;
  }
  .bb-card__title {
    font-size: 42px;
  }

  .bb-special {
    height: auto;
    margin: 60px auto;
  }
  .bb-special__image {
    position: relative;
    height: 420px;
  }
  .bb-special__overlay {
    height: 420px;
  }
  .bb-special__card {
    position: relative;
    bottom: auto;
    left: auto;
    width: auto;
    height: auto;
    min-height: 260px;
    margin: -50px 20px 0;
    padding: 40px 30px 25px;
  }
  .bb-special__label {
    left: 30px;
  }
  .bb-special__title {
    font-size: 56px;
  }

  .bb-section-title h2 {
    font-size: 56px;
  }
  .bb-books-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  /* Hero — puno viši i s većim tipom po dizajnu */
  .bb-hero {
    height: 618px;
  }
  .bb-hero__title {
    font-size: 50px;
    letter-spacing: 5px;
    line-height: 1.1;
  }
  .bb-hero__subtitle {
    font-size: 23px;
    letter-spacing: 0.69px;
    line-height: 1.05;
  }
  .bb-hero__content {
    padding: 0 20px;
    gap: 20px;
  }
  .bb-hero__arrow {
    display: none;
  } /* na mobitelu koristimo samo dots */
  .bb-hero__dots {
    bottom: 30px;
  }

  /* Veliki članak + kartice — 60px naslov, 25px lead */
  .bb-large__title,
  .bb-card__title {
    font-size: 60px;
  }
  .bb-large__lead,
  .bb-card__lead {
    font-size: 25px;
    line-height: 1.1;
    letter-spacing: 0.375px;
  }
  .bb-large__text,
  .bb-card__text {
    gap: 20px;
  }

  .bb-section--padded {
    padding: 40px 0;
  }
  .bb-articles-grid {
    padding: 20px 0 40px;
  }
  .bb-articles-grid__cards {
    margin-top: 40px;
    gap: 40px;
  }

  /* Posebno izdanje mobile — labela overlay na sliku, tekst ide ispod na bijeloj pozadini */
  .bb-special {
    max-width: none;
    height: auto;
    margin: 40px 0;
  }
  .bb-special__image {
    position: relative;
    height: 400px;
  }
  .bb-special__overlay {
    height: 400px;
  }
  .bb-special__card {
    position: static;
    width: auto;
    height: auto;
    margin: 20px 20px 0;
    padding: 0;
    background: transparent;
    color: var(--bb-black);
  }
  .bb-special__label {
    position: absolute;
    top: 360px; /* dno slike (400px) minus label visina */
    bottom: auto;
    left: 0;
    font-size: 20px;
    padding: 8px 16px;
  }
  .bb-special__title {
    font-size: 60px;
  }
  .bb-special__subtitle {
    font-size: 25px;
    letter-spacing: 0.375px;
    line-height: 1.1;
    margin: 0;
    text-transform: none;
  }

  /* Section title — 45px light uppercase */
  .bb-section-title {
    margin-bottom: 20px;
    gap: 20px;
  }
  .bb-section-title h2 {
    font-size: 45px;
    font-weight: 300;
    letter-spacing: 0;
  }

  /* Book cards — 35px title, 25px desc, 20px author/publisher */
  .bb-books-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .bb-book__author {
    font-size: 20px;
  }
  .bb-book__title {
    font-size: 35px;
    line-height: 1.1;
  }
  .bb-book__desc {
    font-size: 25px;
    line-height: 1.1;
    letter-spacing: 0.375px;
  }
  .bb-book__publisher {
    font-size: 20px;
  }

  /* Slika velikog članka fiksne visine na mobitelu */
  .bb-large__image {
    aspect-ratio: auto;
    height: 400px;
  }

  /* Intervju + Strip: žuta/crvena labela overlay na dnu slike (ne iznad naslova) */
  .bb-large--dark {
    position: relative;
  }
  .bb-large--dark .bb-label--yellow,
  .bb-large--dark .bb-label--red {
    position: absolute;
    top: 360px;
    left: 0;
    z-index: 5;
    padding: 8px 16px;
    font-size: 20px;
  }

  .bb-footer__inner {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
  }
  .bb-footer__left {
    gap: 30px;
  }
  .bb-footer__menu {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .bb-footer__menu a {
    font-size: 17px;
  }
}

/* ============================================
   Single article template
   ============================================ */

.bb-single {
  --article-bg: var(--bb-white);
  --article-text: var(--bb-black);
  background: var(--article-bg);
  color: var(--article-text);
}
.bb-single--dark {
  --article-bg: var(--bb-black);
  --article-text: var(--bb-white);
}

/* Hero image ispod nav-a
   ----------------------------------------- */
.bb-single__hero {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  background: var(--bb-black);
}
.bb-single__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bb-single__hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

/* Heading (labela + naslov + subtitle + byline)
   ----------------------------------------- */
.bb-single__heading {
  padding: 70px 0 0;
}
.bb-single__heading-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
}
.bb-single__title {
  font-family: var(--bb-font-display);
  font-weight: 500;
  font-size: 175px;
  line-height: 0.9;
  color: var(--article-text);
  margin: 0;
  max-width: 100%;
}
.bb-single__subtitle {
  font-family: var(--bb-font-display);
  font-weight: 500;
  font-size: 32px;
  line-height: 1.1;
  color: var(--article-text);
  margin: 0;
  max-width: 100%;
}
.bb-single__byline {
  font-family: var(--bb-font-body);
  font-weight: 500;
  font-size: 20px;
  line-height: 1;
  color: var(--article-text);
  margin: 0;
  max-width: 100%;
}
.bb-single__byline-label {
  font-weight: 500;
  font-size: 20px;
}
.bb-single__byline-name {
  font-weight: 800;
  font-size: 17px;
  text-transform: uppercase;
}
.bb-single__byline-titula {
  font-weight: 500;
  font-size: 20px;
}

/* Article body (max-width 760 editorial column)
   ----------------------------------------- */
.bb-single__body {
  padding: 70px 0;
}
.bb-single__content {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
  color: var(--article-text);
}
.bb-single__content::after {
  content: "";
  display: block;
  clear: both;
}

/* Vertikalni razmak između svih blokova */
.bb-single__content > * + * {
  margin-top: 40px;
}

/* Paragrafi i liste */
.bb-single__content p,
.bb-single__content ul,
.bb-single__content ol {
  font-family: var(--bb-font-body);
  font-weight: 500;
  font-size: 25px;
  line-height: 1.1;
  letter-spacing: 1.5px;
  color: inherit;
  margin: 0;
}
.bb-single__content ul,
.bb-single__content ol {
  padding-left: 1.4em;
}
.bb-single__content li + li {
  margin-top: 12px;
}

/* Naslovi unutar članka */
.bb-single__content h2 {
  font-family: var(--bb-font-display);
  font-weight: 500;
  font-size: 75px;
  line-height: 0.95;
  color: inherit;
  margin: 0;
}
.bb-single__content h3 {
  font-family: var(--bb-font-display);
  font-weight: 500;
  font-size: 32px;
  line-height: 1.1;
  color: inherit;
  margin: 0;
}
.bb-single__content h4 {
  font-family: var(--bb-font-body);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.2;
  color: inherit;
  margin: 0;
  text-transform: uppercase;
}

/* Drop cap na prvom paragrafu (automatski) */
.bb-single__content > p:first-of-type::first-letter,
.bb-single__content > p.has-drop-cap::first-letter {
  float: left;
  font-family: var(--bb-font-display);
  font-weight: 500;
  font-size: 175px;
  line-height: 0.85;
  padding: 8px 20px 0 0;
  text-transform: uppercase;
  color: inherit;
}

/* Linkovi unutar članka */
.bb-single__content a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.bb-single--dark .bb-single__content a {
  color: var(--bb-white);
}
.bb-single__content a:hover {
  color: var(--bb-red);
  text-decoration-color: var(--bb-red);
}

/* Inline slike lijevo/desno */
.bb-single__content .alignleft,
.bb-single__content figure.alignleft {
  float: left;
  margin: 0 40px 20px 0;
  max-width: 340px;
}
.bb-single__content .alignright,
.bb-single__content figure.alignright {
  float: right;
  margin: 0 0 20px 40px;
  max-width: 340px;
}
.bb-single__content .aligncenter,
.bb-single__content figure.aligncenter {
  margin-left: auto;
  margin-right: auto;
  display: block;
}
.bb-single__content .alignleft img,
.bb-single__content .alignright img,
.bb-single__content .aligncenter img {
  width: 100%;
  height: auto;
  display: block;
}

/* Wide (775) i full-bleed slike */
.bb-single__content .alignwide,
.bb-single__content figure.alignwide {
  width: 775px;
  max-width: calc(100vw - 40px);
  margin-left: calc(50% - min(775px, calc(100vw - 40px)) / 2);
  margin-right: auto;
}
.bb-single__content .alignfull,
.bb-single__content figure.alignfull {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  max-width: none;
  position: relative;
}
.bb-single__content .alignwide img,
.bb-single__content .alignfull img {
  width: 100%;
  height: auto;
  display: block;
}

/* Figcaption (izvor slike npr. PROFIMEDIA) */
.bb-single__content figcaption,
.bb-single__content .wp-element-caption {
  font-family: var(--bb-font-body);
  font-weight: 400;
  font-size: 20px;
  line-height: 1;
  text-transform: uppercase;
  color: inherit;
  margin-top: 15px;
  text-align: left;
  padding: 0 20px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

/* Blockquote — citat s dekorativnim simbolom */
.bb-single__content blockquote {
  position: relative;
  padding-left: 125px;
  margin: 40px auto;
  font-family: var(--bb-font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  line-height: 1.3;
  color: inherit;
  min-height: 60px;
}
.bb-single__content blockquote::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 85px;
  height: 60px;
  background: currentColor;
  -webkit-mask: url("../img/quote.svg") no-repeat center / contain;
  mask: url("../img/quote.svg") no-repeat center / contain;
}
.bb-single__content blockquote p {
  font-family: inherit;
  font-style: inherit;
  font-size: inherit;
  line-height: inherit;
  letter-spacing: 0;
  font-weight: inherit;
}

/* Related articles (2 zadnja iz kategorije)
   Uvijek light sa sivom pozadinom, i na dark članku
   ----------------------------------------- */
.bb-related {
  background: #ececec;
  color: var(--bb-black);
  padding: 60px 0 80px;
}
.bb-related__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.bb-related .bb-card__title,
.bb-related .bb-card__lead,
.bb-related .bb-byline,
.bb-related .bb-readmore {
  color: var(--bb-black);
}

/* Responsive
   ----------------------------------------- */
@media (max-width: 1024px) {
  .bb-single__hero {
    height: 380px;
  }
  .bb-single__heading {
    padding: 50px 0 0;
  }
  .bb-single__title {
    font-size: 96px;
  }
  .bb-single__subtitle {
    font-size: 24px;
  }
  .bb-single__body {
    padding: 50px 0;
  }

  .bb-single__content p,
  .bb-single__content ul,
  .bb-single__content ol {
    font-size: 22px;
  }
  .bb-single__content h2 {
    font-size: 56px;
  }

  .bb-single__content > p:first-of-type::first-letter,
  .bb-single__content > p.has-drop-cap::first-letter {
    font-size: 130px;
    padding: 8px 15px 0 0;
  }

  .bb-single__content .alignleft,
  .bb-single__content .alignright {
    max-width: 260px;
  }

  .bb-related__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .bb-single__hero {
    height: 260px;
  }
  .bb-single__heading {
    padding: 40px 0 0;
  }
  .bb-single__title {
    font-size: 56px;
  }
  .bb-single__subtitle {
    font-size: 20px;
  }
  .bb-single__byline,
  .bb-single__byline-label,
  .bb-single__byline-titula {
    font-size: 17px;
  }
  .bb-single__body {
    padding: 40px 0;
  }

  .bb-single__content p,
  .bb-single__content ul,
  .bb-single__content ol {
    font-size: 20px;
    letter-spacing: 1px;
  }
  .bb-single__content h2 {
    font-size: 42px;
  }
  .bb-single__content > * + * {
    margin-top: 30px;
  }

  .bb-single__content > p:first-of-type::first-letter,
  .bb-single__content > p.has-drop-cap::first-letter {
    font-size: 90px;
    padding: 4px 12px 0 0;
  }

  /* Na mobitelu inline slike postaju full-width */
  .bb-single__content .alignleft,
  .bb-single__content .alignright,
  .bb-single__content figure.alignleft,
  .bb-single__content figure.alignright {
    float: none;
    margin: 0;
    max-width: 100%;
    width: 100%;
  }

  .bb-single__content blockquote {
    padding-left: 60px;
    font-size: 18px;
  }
  .bb-single__content blockquote::before {
    width: 45px;
    height: 32px;
  }

  .bb-related {
    padding: 40px 0 50px;
  }
}

/* ============================================
   Category archive
   ============================================ */

.bb-category-heading {
  padding: 60px 0 0;
}
.bb-category-heading h1 {
  font-family: var(--bb-font-display);
  font-weight: 500;
  font-size: 60px;
  line-height: 0.95;
  color: var(--bb-black);
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: baseline;
}
.bb-category-heading__prefix {
  color: var(--bb-black);
}
.bb-category-heading__name {
  color: var(--bb-black);
}
.bb-category-heading__desc {
  margin-top: 20px;
  font-family: var(--bb-font-body);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.3;
  color: var(--bb-black);
  max-width: 760px;
}

.bb-category-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px 30px;
  padding: 60px 0;
}

.bb-category-empty {
  padding: 80px 0;
  text-align: center;
}
.bb-category-empty p {
  font-family: var(--bb-font-body);
  font-weight: 500;
  font-size: 25px;
  line-height: 1.1;
  margin: 0 0 20px;
}

/* Pagination */
.bb-pagination {
  padding: 30px 0 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bb-pagination ul.page-numbers {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: center;
}
.bb-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
  height: 45px;
  padding: 0 12px;
  border: 1px solid var(--bb-black);
  font-family: var(--bb-font-body);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: 3.06px;
  text-transform: uppercase;
  color: var(--bb-black);
  background: transparent;
  text-decoration: none;
  transition:
    background 0.15s,
    color 0.15s;
}
.bb-pagination a.page-numbers:hover,
.bb-pagination a.page-numbers:focus {
  background: var(--bb-black);
  color: var(--bb-white);
  text-decoration: none;
}
.bb-pagination .page-numbers.current {
  background: var(--bb-black);
  color: var(--bb-white);
}
.bb-pagination .page-numbers.dots {
  border: none;
  background: transparent;
  color: var(--bb-black);
  padding: 0;
  min-width: auto;
}
.bb-pagination .page-numbers.dots:hover {
  background: transparent;
  color: var(--bb-black);
}

/* Responsive */
@media (max-width: 1024px) {
  .bb-category-heading {
    padding: 40px 0 0;
  }
  .bb-category-heading h1 {
    font-size: 42px;
    gap: 10px;
  }
  .bb-category-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 0;
  }
  .bb-pagination {
    padding: 20px 0 60px;
  }
  .bb-pagination ul.page-numbers {
    gap: 12px;
  }
}

@media (max-width: 640px) {
  .bb-category-heading h1 {
    font-size: 32px;
  }
  .bb-category-grid {
    gap: 30px;
    padding: 30px 0;
  }
  .bb-pagination .page-numbers {
    min-width: 40px;
    height: 40px;
    font-size: 14px;
    letter-spacing: 2px;
  }
  .bb-pagination ul.page-numbers {
    gap: 8px;
  }
}

/* ============================================
   Search results (koristi bb-category-grid + bb-pagination iz category bloka)
   ============================================ */

.bb-search-heading {
  padding: 60px 0 0;
  text-align: center;
}
.bb-search-heading__count {
  font-family: var(--bb-font-display);
  font-weight: 500;
  font-size: 32px;
  line-height: 1.1;
  color: var(--bb-black);
  margin: 0 0 10px;
}
.bb-search-heading__query {
  font-family: var(--bb-font-display);
  font-weight: 500;
  font-size: 75px;
  line-height: 0.95;
  color: var(--bb-black);
  margin: 0;
  word-break: break-word;
}

.bb-search-empty {
  padding: 60px 0 100px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}
.bb-search-empty__hint {
  font-family: var(--bb-font-body);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.3;
  margin: 0;
  max-width: 500px;
}

/* Search form (empty state + može se koristiti globalno) */
.bb-search-form {
  display: flex;
  align-items: stretch;
  gap: 0;
  width: 100%;
  max-width: 500px;
}
.bb-search-form__input {
  flex: 1;
  min-width: 0;
  height: 50px;
  padding: 0 20px;
  font-family: var(--bb-font-body);
  font-weight: 500;
  font-size: 17px;
  color: var(--bb-black);
  background: var(--bb-white);
  border: 1px solid var(--bb-black);
  border-right: 0;
  outline: none;
}
.bb-search-form__input:focus {
  outline: 2px solid var(--bb-black);
  outline-offset: -2px;
}
.bb-search-form__submit {
  height: 50px;
  padding: 0 24px;
  font-family: var(--bb-font-body);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 3.06px;
  text-transform: uppercase;
  color: var(--bb-white);
  background: var(--bb-black);
  border: 1px solid var(--bb-black);
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
}
.bb-search-form__submit:hover,
.bb-search-form__submit:focus {
  background: var(--bb-red);
  border-color: var(--bb-red);
}

@media (max-width: 1024px) {
  .bb-search-heading {
    padding: 40px 0 0;
  }
  .bb-search-heading__count {
    font-size: 22px;
  }
  .bb-search-heading__query {
    font-size: 48px;
  }
  .bb-search-empty {
    padding: 40px 0 60px;
  }
}

@media (max-width: 640px) {
  .bb-search-heading__count {
    font-size: 18px;
  }
  .bb-search-heading__query {
    font-size: 36px;
  }
  .bb-search-empty__hint {
    font-size: 18px;
  }
  .bb-search-form {
    flex-direction: column;
    gap: 12px;
  }
  .bb-search-form__input {
    border-right: 1px solid var(--bb-black);
  }
}

/* ============================================
   Nav search dropdown panel
   ============================================ */

.bb-nav__search-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.bb-nav__search-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--bb-black);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px;
  display: flex;
  gap: 8px;
  min-width: 320px;
  z-index: 150;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.bb-nav__search-panel[hidden] {
  display: none;
}
.bb-nav__search-panel input[type="search"] {
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  font-family: var(--bb-font-body);
  font-weight: 500;
  font-size: 16px;
  color: var(--bb-white);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  outline: none;
}
.bb-nav__search-panel input[type="search"]::placeholder {
  color: rgba(255, 255, 255, 0.6);
}
.bb-nav__search-panel input[type="search"]:focus {
  border-color: var(--bb-white);
}
.bb-nav__search-submit {
  width: 40px;
  height: 40px;
  color: var(--bb-white);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.15s,
    color 0.15s;
}
.bb-nav__search-submit:hover,
.bb-nav__search-submit:focus {
  background: var(--bb-red);
  border-color: var(--bb-red);
  color: var(--bb-white);
  outline: none;
}

@media (max-width: 640px) {
  .bb-nav__search-panel {
    position: fixed;
    top: auto;
    right: 12px;
    left: 12px;
    min-width: 0;
  }
}

/* ============================================
   Mobile navigation modal
   ============================================ */

@media (max-width: 900px) {
  /* U mobilnom layoutu prikaži hamburger + separator uz search */
  .bb-nav__hamburger {
    display: block;
  }
  .bb-nav__divider--mobile {
    display: block;
  }

  /* Sakri postojeći inline separator između menija i jezika unutar linksa */
  .bb-nav__links > .bb-nav__divider {
    display: none;
  }

  /* .bb-nav__links postaje full-screen overlay ispod nav bara */
  .bb-nav__links {
    position: fixed;
    top: var(--bb-nav-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bb-black);
    padding: 40px 20px;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 25px;
    overflow-y: auto;
    z-index: 90;

    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition:
      opacity 0.2s,
      transform 0.2s,
      visibility 0.2s;
  }
  .bb-nav[data-mobile-menu="open"] .bb-nav__links {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  /* Menu vertikalno, centrirano */
  .bb-nav__menu {
    flex-direction: column;
    align-items: center;
    gap: 25px;
    width: 100%;
  }
  .bb-nav__menu .menu-item {
    text-align: center;
  }
  .bb-nav__menu .menu-item > a {
    font-size: 17px;
    letter-spacing: 3.06px;
  }

  /* Dimming ostalih top-level linkova kad je jedan expanded */
  .bb-nav__menu.has-open
    > .menu-item:not(.is-open):not(.current-menu-parent):not(
      .current-menu-ancestor
    )
    > a {
    opacity: 0.4;
  }

  /* Sub-menu — inline expand ispod parenta, ne apsolutno */
  .bb-nav__menu .sub-menu {
    position: static;
    transform: none;
    display: none;
    padding: 25px 0 0;
    background: transparent;
    gap: 25px;
    white-space: normal;
    visibility: visible;
    opacity: 1;
  }
  /* Hover na mobitelu ne otvara (touch device) — otvara samo .is-open klasa */
  .bb-nav__menu .menu-item-has-children:hover > .sub-menu,
  .bb-nav__menu .menu-item-has-children:focus-within > .sub-menu {
    display: none;
  }
  .bb-nav__menu .menu-item-has-children.is-open > .sub-menu {
    display: flex;
  }

  /* Divider u modalu — horizontal linija */
  .bb-nav__links > .bb-nav__divider,
  .bb-nav__links > .bb-nav__divider:not(.bb-nav__divider--mobile) {
    display: block;
    width: 14px;
    height: 1px;
    background: rgba(255, 255, 255, 0.5);
  }

  /* Language switcher u modalu */
  .bb-nav__langs {
    gap: 25px;
  }

  /* Block scroll iza modala */
  body.bb-mobile-menu-open {
    overflow: hidden;
    touch-action: none;
  }
}

@media (max-width: 640px) {
  .bb-nav__hamburger {
    width: 22px;
    height: 22px;
  }
  .bb-nav__logo img {
    width: 130px;
  }
}
