/*
Theme Name: NewsDesk theme
Theme URI: https://newsdesk.rs/
Description: A custom newsdesk theme.
Author: Nemanja Ristic
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: newsdesk-custom-theme
*/

/* --- Start of actual CSS styles below this line --- */
:root {
  /* =========================
     BRAND COLORS (NewsDesk)
     ========================= */
  --brand-red: #f14d37;
  --brand-orange: #e75420;
  --brand-yellow: #fac921;
  --brand-green: #36ac66;
  --brand-blue: #289be1;

  /* =========================
     NEUTRALS
     ========================= */
  --color-black: #000000;
  --color-white: #ffffff;
  --color-gray-100: #f5f6f6;
  --color-gray-200: #e7e8e7;
  --color-gray-300: #cfd3d6;
  --color-gray-500: #8b9197;
  --color-gray-700: #394a56;

  /* =========================
     SEMANTIC COLORS
     ========================= */
  --color-bg: var(--color-gray-200);
  --color-surface: var(--color-white);
  --color-text: var(--color-gray-700);
  --color-text-muted: var(--color-gray-500);

  --color-primary: var(--brand-red);
  --color-secondary: var(--brand-blue);
  --color-accent: var(--brand-yellow);

  --color-success: var(--brand-green);
  --color-warning: var(--brand-orange);
  --color-danger: var(--brand-red);

  --color-border: var(--color-gray-300);
  --color-link: var(--brand-blue);
  --color-link-hover: var(--brand-red);

  /* =========================
     TYPOGRAPHY
     ========================= */
  --font-primary: 'Inter', system-ui, sans-serif;

  /* Desktop sizes */
  --fs-h1: 48px;
  --fs-h2: 40px;
  --fs-h3: 32px;
  --fs-h4: 24px;
  --fs-h5: 20px;
  --fs-h6: 18px;
  --fs-p: 16px;
  --fs-small: 14px;
  --fs-caption: 12px;

  /* Font weights */
  --fw-light: 300;
  --fw-normal: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
}

/* =========================
   MOBILE SCALE
   ========================= */
@media (max-width: 600px) {
  :root {
    --fs-h1: 32px;
    --fs-h2: 28px;
    --fs-h3: 24px;
    --fs-h4: 20px;
    --fs-h5: 18px;
    --fs-h6: 16px;
    --fs-p: 15px;
    --fs-small: 13px;
  }
}

/* =========================
   BASE STYLES
   ========================= */
body {
  margin: 0;
  font-family: var(--font-primary);
  font-size: var(--fs-p);
  font-weight: var(--fw-normal);
  line-height: 1.55;
  color: var(--color-text);
  background-color: var(--color-bg);
}

strong,
b {
  font-weight: 700;
  letter-spacing: 0.01em;
}



/* =========================
   HEADINGS
   ========================= */
h1 {
  font-size: var(--fs-h1);
  font-weight: var(--fw-bold);
  line-height: 1.2;
  margin-top: 20px;
  margin-bottom: 20px;
}

h2 {
  font-size: var(--fs-h2);
  font-weight: var(--fw-semibold);
  line-height: 1.25;
  margin-top: 20px;
  margin-bottom: 20px;
}

h3 {
  font-size: var(--fs-h3);
  font-weight: var(--fw-semibold);
  line-height: 1.3;
  margin-top: 20px;
  margin-bottom: 20px;
}

h4 {
  font-size: var(--fs-h4);
  font-weight: var(--fw-medium);
  margin-top: 20px;
  margin-bottom: 20px;
}

h5 {
  font-size: var(--fs-h5);
  font-weight: var(--fw-medium);
  margin-top: 20px;
  margin-bottom: 20px;
}

h6 {
  font-size: var(--fs-h6);
  font-weight: var(--fw-medium);
  margin-top: 20px;
  margin-bottom: 20px;
}

p {
  font-size: var(--fs-p);
  margin-bottom: 0.8rem;
}

small {
  font-size: var(--fs-small);
  color: var(--color-text-muted);
}

/* ==================================================
   HEADER NAV LINK ANIMATION
================================================== */

.main-navigation .menu a {
  position: relative;
  font-weight: var(--fw-medium);
  padding: 6px 0;
}

/* underline */
.main-navigation .menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

/* hover in */
.main-navigation .menu a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* hover out (backwards animation) */
.main-navigation .menu a:not(:hover)::after {
  transform-origin: right;
}

/* ACTIVE PAGE */
.main-navigation .menu .current-menu-item>a::after,
.main-navigation .menu a[aria-current="page"]::after {
  transform: scaleX(1);
}

/* ==================================================
   FOOTER NAV LINK ANIMATION
================================================== */

.footer-nav a {
  position: relative;
  font-weight: var(--fw-medium);
  padding: 6px 0;
}

/* underline */
.footer-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

/* hover in */
.footer-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* hover out */
.footer-nav a:not(:hover)::after {
  transform-origin: right;
}

/* ACTIVE PAGE */
.footer-nav .current-menu-item>a::after,
.footer-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}


/* =========================
   LINKS (NEWS STYLE)
   ========================= */
a {
  color: var(--color-link-hover);
  text-decoration: none;
}

a:hover {
  color: var(--color-link);
}

/* ==================================================
   FOOTER STYLES */

.site-footer {
  background: #000;
  color: #fff;
  padding: 28px 20px 14px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
}

.footer-left {
  display: flex;
  align-items: center;
}

.footer-nav {
  width: 100%;
}

.footer-menu-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, auto));
  column-gap: 28px;
  row-gap: 10px;
}

.footer-menu-list li {
  margin: 0;
  list-style: none;
}

.footer-menu-list a {
  color: #fff;
  text-decoration: none;
  font-size: 17px;
  font-weight: 500;
  display: inline-block;
  line-height: 1.3;
}

.footer-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.footer-socials-grid .nd-share {
  display: grid !important;
  grid-template-columns: repeat(2, 50px) !important;
  grid-template-rows: repeat(2, 50px) !important;
  gap: 12px !important;
  justify-content: end !important;
}

.footer-socials-grid .nd-share a {
  width: 50px;
  height: 50px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f1f1f1;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.footer-socials-grid .nd-share a:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.footer-socials-grid .nd-share svg {
  width: 20px;
  height: 20px;
}

.site-info {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 14px;
  color: #fff;
  font-size: 14px;
}

.site-info {
  color: #fff;
}

/* END OF FOOTER STYLES */
/* ==================================================
   MOBILE FOOTER
================================================== */

@media (max-width: 768px) {
  .site-footer {
    padding: 24px 16px 12px;
  }

  .footer-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 0 auto 16px;
    max-width: 100%;
  }

  .footer-left,
  .footer-right {
    width: 100%;
    justify-content: center;
    align-items: center;
  }

  .footer-left {
    display: flex;
  }

  .footer-nav {
    width: 100%;
  }

  .footer-menu-list {
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 10px;
    column-gap: 0;
    justify-items: center;
    text-align: center;
    margin: 0;
    padding: 0;
  }

  .footer-menu-list li {
    margin: 0;
  }

  .footer-menu-list a {
    font-size: 17px;
    line-height: 1.35;
  }

  .footer-right {
    display: flex;
  }

  .footer-socials-grid {
    width: 100%;
  }

  .footer-socials-grid .nd-share {
    display: flex !important;
    justify-content: center !important;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px !important;
  }

  .footer-socials-grid .nd-share a {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
  }

  .footer-socials-grid .nd-share svg {
    width: 18px;
    height: 18px;
  }

  .site-info {
    font-size: 13px;
    padding-top: 12px;
    text-align: center;
  }
}

#primary {
  padding: 0px 10%;
  margin-top: 90px;
}

/* LOADER WRAPPER */
#page-loader {
  position: fixed;
  z-index: 999999;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--dark-navy);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}

/* LOGO SCALING ANIMACIJA */
#page-loader img {
  width: 160px;
  height: auto;
  animation: loaderScale 1.2s ease-in-out infinite alternate;
}

/* scale efekat */
@keyframes loaderScale {
  from {
    transform: scale(1);
    opacity: 0.8;
  }

  to {
    transform: scale(1.1);
    opacity: 1;
  }
}

/* FADE OUT nakon skripte */
#page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}



.hero-section {
  width: 100%;
  height: 100vh;
  min-height: 100dvh;
  /* mobile browser safe */
  background-image: url("images/1-high-resolution-light.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #FFF;

  display: flex;
  align-items: center;
  /* vertical center */
  justify-content: center;
  /* horizontal center */
  position: relative;
  overflow: hidden;
}

/* Overlay */
.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  /* shorthand for top:0; right:0; bottom:0; left:0 */
  background-color: #00000095;
  /* your darken value */
  pointer-events: none;
  /* allows clicks through if needed */
  z-index: 1;
}

.hero-content-holder {
  position: relative;
  z-index: 2;
  /* place content above overlay */
  text-align: center;
  width: 100%;
  max-width: 1400px;
}

.hero-about {
  position: relative;
  overflow: hidden;
  padding: 0 30px;
}

.from-left {
  opacity: 0;
  transform: translateX(-40px);
  animation: slideInLeft 0.8s ease-out forwards;
}

.from-right {
  opacity: 0;
  transform: translateX(40px);
  animation: slideInRight 0.8s ease-out forwards;
  animation-delay: 0.2s;
}

.from-up {
  opacity: 0;
  transform: translateY(-40px);
  animation: slideInUp 0.8s ease-out forwards;
}

.from-down {
  opacity: 0;
  transform: translateY(40px);
  animation: slideInDown 0.8s ease-out forwards;
}

/* Keyframes */

@keyframes slideInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInDown {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.first-section-end {
  padding-top: 15px;
  /*box-shadow: 0 4px 6px -6px #000000;*/
}

.main-navigation {
  display: flex;
  width: 100%;
  background-color: var(--dark-navy);
  align-items: center;
}

.menu {
  width: 15%;
}

.menu ul {
  display: flex;
  list-style-type: none;
  padding-left: 0px;
  justify-content: space-between;
  margin: 0 20%;
}

.menu ul li a {
  color: var(--color-white);
  text-decoration: none;
}

.logo-head {
  width: 210px;
  height: 45px;
  background-size: cover;
  background-image: url("images/1-high-resolution-light.png");
}

/* ----------------------------------------------------------
   HEADER FIXED + TRANSPARENT + MOBILE BURGER ADDITIONS
   ---------------------------------------------------------- */

:root {
  --header-height: 75px;
}

/* Header fixed & transparent */
.site-header,
.main-navigation {
  position: fixed;
  top: 0;
  left: 0;
  height: var(--header-height);
  width: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  /* neutral overlay → radi i na light/dark */
  backdrop-filter: blur(6px);
  z-index: 9999;
}

/* Navigation layout */
.main-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

/* Logo holder */
.logo-head-holder {
  display: flex;
  align-items: center;
}

/* ==================================================
   BURGER BUTTON
================================================== */

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.nav-toggle .burger {
  width: 28px;
  height: 2px;
  background: var(--color-white);
  position: relative;
  display: block;
}

.nav-toggle .burger::before,
.nav-toggle .burger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--color-white);
  transition: transform 0.25s ease, top 0.25s ease, opacity 0.25s ease;
}

.nav-toggle .burger::before {
  top: -8px;
}

.nav-toggle .burger::after {
  top: 8px;
}

/* ACTIVE BURGER (X) */
.nav-toggle.active .burger {
  background: transparent;
}

.nav-toggle.active .burger::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle.active .burger::after {
  top: 0;
  transform: rotate(-45deg);
}

@media (min-width: 768px) {
  .menu ul {
    margin: 0 20% !important;
  }
}

/* ===== HERO HEIGHT OFFSET FIX ===== */
/* .hero-section {
  height: calc(100vh - var(--header-height)) !important;
  min-height: calc(100dvh - var(--header-height)) !important;
  margin-top: var(--header-height);
} */

.hero-section {
  height: 100vh !important;
  min-height: 100dvh !important;
  margin-bottom: var(--header-height);
}


/* ==================================================
   MOBILE MENU
================================================== */

@media (max-width: 768px) {

  .nav-toggle {
    display: block;
    z-index: 1002;
    position: relative;
  }

  .main-navigation {
    padding: 0 4px;
    position: relative;
    z-index: 1001;
  }

  .logo-head-holder {
    position: relative;
    z-index: 1002;
  }

  /* MOBILE MENU PANEL */
  .menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 78%;
    max-width: 320px;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.92);
    padding: 95px 0 24px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    z-index: 1000;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  .menu.open {
    transform: translateX(0);
  }

  .menu ul {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0 24px;
    list-style: none;
  }

  .menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    opacity: 0;
    transform: translateX(20px);
  }

  .menu.open li {
    animation: menuFade 0.35s ease forwards;
  }

  .menu.open li:nth-child(1) {
    animation-delay: 0.05s;
  }

  .menu.open li:nth-child(2) {
    animation-delay: 0.1s;
  }

  .menu.open li:nth-child(3) {
    animation-delay: 0.15s;
  }

  .menu.open li:nth-child(4) {
    animation-delay: 0.2s;
  }

  .menu.open li:nth-child(5) {
    animation-delay: 0.25s;
  }

  .menu a {
    display: block;
    padding: 18px 0;
    font-size: 18px;
    color: var(--color-white);
  }

  @keyframes menuFade {
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
}

/* ==================================================
   OVERLAY
================================================== */

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 999;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* NEWS GRID */

.nd-news-grid {
  display: grid;
  gap: 18px;
}

.nd-news-grid.nd-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.nd-news-grid.nd-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.nd-news-grid.nd-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 900px) {

  .nd-news-grid.nd-cols-3,
  .nd-news-grid.nd-cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .nd-news-grid {
    grid-template-columns: 1fr !important;
  }
}

.nd-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, .06);
  transition: transform .15s ease, box-shadow .15s ease;
}

.nd-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 35px rgba(0, 0, 0, .10);
}

.nd-card__media {
  display: block;
}

.nd-card__img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.nd-card__placeholder {
  height: 220px;
  background: linear-gradient(135deg, var(--color-bg), var(--color-border));
}

.nd-card__body {
  padding: 14px 14px 16px;
}

.nd-card__meta {
  font-size: var(--fs-small);
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.nd-card__title {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.25;
}

.nd-card__title a {
  color: var(--color-text);
}

.nd-card__title a:hover {
  color: var(--color-primary);
}

.nd-card__excerpt {
  margin: 0 0 12px;
  color: var(--color-text-muted);
}

.nd-card__cta {
  display: inline-block;
  font-weight: var(--fw-semibold);
  color: var(--color-link);
}

.nd-card__cta:hover {
  color: var(--color-link-hover);
}

.nd-card__category {
  display: inline-block;
  margin-bottom: 8px !important;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  background: var(--color-primary);
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.nd-card__categories {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

/* Primeri custom boja po kategoriji */
.nd-cat-politika {
  background: var(--brand-red);
}

.nd-cat-sport {
  background: var(--brand-green);
}

.nd-cat-it {
  background: var(--brand-blue);
}

.nd-cat-kultura {
  background: var(--brand-yellow);
  color: #000;
}


/* ==================================================
   NEWSDESK – CONTACT FORM 7
================================================== */

/* Form wrapper */
.wpcf7 form {
  max-width: 640px;
  margin: 0 auto;
  background: var(--color-surface);
  padding: 32px;
  border-radius: 18px;
  border: 1px solid var(--color-border);
  box-shadow: 0 20px 40px rgba(0, 0, 0, .06);
}

/* Paragraph spacing */
.wpcf7 p {
  margin-bottom: 18px;
}

/* Labels */
.wpcf7 label {
  display: block;
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  color: var(--color-text);
  margin-bottom: 6px;
}

/* Inputs & textarea */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"] {
  width: 95%;
  padding: 14px 16px;
  font-family: var(--font-primary);
  font-size: var(--fs-p);
  border-radius: 12px;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.wpcf7 textarea {
  width: 95%;
  padding: 14px 16px;
  font-family: var(--font-primary);
  font-size: var(--fs-p);
  border-radius: 12px;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

/* Focus state */
.wpcf7 input:focus,
.wpcf7 textarea:focus {
  outline: none;
  background: var(--color-white);
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(241, 77, 55, .15);
  /* brand red glow */
}

/* Textarea */
.wpcf7 textarea {
  resize: vertical;
  min-height: 140px;
}

/* Submit button */
.wpcf7 input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 999px;
  border: none;
  font-size: var(--fs-p);
  font-weight: var(--fw-semibold);
  background: var(--color-primary);
  color: var(--color-white);
  cursor: pointer;
  transition: background .2s ease, transform .15s ease, box-shadow .15s ease;
}

/* Submit hover */
.wpcf7 input[type="submit"]:hover {
  background: var(--color-danger);
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, .15);
}

/* Spinner alignment */
.wpcf7-spinner {
  margin-left: 12px;
}

/* Validation errors */
.wpcf7-not-valid {
  border-color: var(--color-danger) !important;
}

.wpcf7-not-valid-tip {
  font-size: var(--fs-small);
  color: var(--color-danger);
  margin-top: 6px;
}

/* Response messages */
.wpcf7-response-output {
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: var(--fs-small);
  border: none;
}

/* Success */
.wpcf7-mail-sent-ok {
  background: rgba(54, 172, 102, .12);
  color: var(--color-success);
}

/* Error */
.wpcf7-validation-errors,
.wpcf7-mail-sent-ng {
  background: rgba(241, 77, 55, .12);
  color: var(--color-danger);
}

/* Mobile spacing */
@media (max-width: 600px) {
  .wpcf7 form {
    padding: 22px;
  }
}

/* ==================================================
   NEWSDESK – SINGLE POST
================================================== */

.nd-single {
  padding-top: calc(var(--header-height) + 40px);
  background: var(--color-bg);
}

/* HEADER */

.nd-single-header {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 40px;
  padding: 31px 0px 0;
  text-align: center;
}

.nd-single-thumb {
  max-width: 700px;
  margin: auto;
}

.nd-single-thumb img {
  width: 100%;
  border-radius: 22px;
  margin-bottom: 24px;
  height: auto;
}

.nd-single-title {
  font-size: var(--fs-h1);
  line-height: 1.15;
  margin: 16px 0;
}

.nd-single-meta {
  font-size: var(--fs-small);
  color: var(--color-text-muted);
  display: flex;
  justify-content: center;
  gap: 8px;
}

/* ==================================================
   MAIN LAYOUT
================================================== */

.nd-single-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 280px;
  gap: 40px;
  max-width: 1400px;
  margin: auto;
  padding: 0 20px 10px;
}

/* ARTICLE */

.nd-single-content {
  font-size: 18px;
  line-height: 1.7;
  color: var(--color-text);
}

.nd-single-content p {
  margin-bottom: 1.2em;
}

.nd-single-content img {
  max-width: 100%;
  border-radius: 16px;
  margin: 24px 0;
}

/* FOOTER */

.nd-single-footer {
  margin-top: 50px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.nd-back-link {
  font-weight: var(--fw-semibold);
  color: var(--color-link);
}

.nd-back-link:hover {
  color: var(--color-link-hover);
}

/* ==================================================
   SIDEBARS
================================================== */

.nd-sidebar {
  width: 100%;
  position: sticky;
  top: 120px;
  align-self: start;
}

.nd-sidebar-right {
  border-left: 1px solid var(--color-border);
  padding-left: 20px;
}

/* banner */

.nd-banner img {
  width: 100%;
  border-radius: 14px;
}

/* SIDEBAR TITLE */

.nd-sidebar-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 20px;
}

.nd-title-arrow svg {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
  animation: ndArrowMove 2s infinite;
}

@keyframes ndArrowMove {
  0% {
    transform: translateX(0)
  }

  50% {
    transform: translateX(4px)
  }

  100% {
    transform: translateX(0)
  }
}


/* LIST */

.nd-latest-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}


/* ITEM */

.nd-latest-item {
  border-bottom: 1px solid #eee;
  padding-bottom: 14px;
}


/* LINK */

.nd-latest-link {
  display: flex;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  transition: all .25s ease;
}


/* THUMB */

.nd-latest-thumb img {
  width: 70px;
  height: 55px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}


/* CONTENT */

.nd-latest-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}


/* TITLE */

.nd-latest-title {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  transition: color .2s ease;
}


/* META */

.nd-latest-meta {
  font-size: 12px;
  color: #777;
}


/* HOVER */

.nd-latest-link:hover {

  transform: translateX(5px);

}

.nd-latest-link:hover .nd-latest-title {

  color: var(--color-primary);

}

/* ==================================================
   Social BUTTONS
================================================== */

.nd-share {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.nd-share a {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-bg);
  text-decoration: none;
  transition: .2s ease;
  color: var(--color-text);
}

.nd-share svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.nd-share a:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.nd-share--default a {
  color: var(--color-text);
}

.nd-share--white a {
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .08);
}

.nd-share--white a:hover {
  background: var(--color-white);
  color: var(--color-text);
}

/* ==================================================
   RELATED POSTS
================================================== */

.nd-related {
  margin-top: 60px;
}

.nd-related-item {
  display: block;
  text-decoration: none;
  color: var(--color-text);
  border-radius: 14px;
  overflow: hidden;
  background: var(--color-bg);
  transition: .2s;
}

.nd-related-thumb img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.nd-related-title {
  padding: 16px;
  font-weight: 600;
}

.nd-related-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, .08);
}

.nd-related-item:hover .nd-related-title {
  color: var(--color-primary);
}

/* ==================================================
   READING PROGRESS
================================================== */

.nd-reading-progress {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  height: 6px;
  z-index: 9999;
}

.nd-reading-progress-bar {
  height: 100%;
  width: 0;
  background: var(--color-primary);
}

/* ==================================================
   RESPONSIVE
================================================== */

/* laptop */

@media (max-width:1200px) {

  .nd-single-layout {
    grid-template-columns: 220px minmax(0, 1fr) 220px;
    gap: 30px;
  }

}

/* tablet */

@media (max-width:1000px) {

  .nd-single-layout {
    grid-template-columns: 1fr;
  }

  .nd-sidebar {
    position: static;
  }

  .nd-sidebar-right {
    border: none;
    padding: 0;
  }

}

/* mobile */

@media (max-width:768px) {

  .nd-single-title {
    font-size: var(--fs-h2);
  }

  .nd-single-content {
    font-size: 16px;
  }

}

/* VEST DANA KARTICA */
.nd-card--featured {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  border-radius: 24px;
  overflow: hidden;
  background: #0f1115;
  height: 420px;
}

.nd-card--featured .nd-card__media {
  display: block;
  height: 100%;
  min-height: 420px;
}

.nd-card--featured .nd-card__img,
.nd-card--featured .nd-card__placeholder {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.nd-card--featured .nd-card__body {
  position: relative;
  padding: 40px 36px;
  background: #fff;
  color: #000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

@media (max-width: 768px) {
  .nd-card--featured .nd-card__body {
    padding: 10px 10px;
  }
}

.nd-card--featured .nd-card__overlay {
  display: none;
}

.nd-card--featured .nd-card__title,
.nd-card--featured .nd-card__title a,
.nd-card--featured .nd-card__excerpt,
.nd-card--featured .nd-card__meta,
.nd-card--featured .nd-card__cta {
  color: #000;
}

.nd-card--featured .nd-card__cta:hover {
  color: var(--color-link-hover);
}



/* SHARE IKONICE */
.nd-share {
  display: flex;
  gap: 14px;
  margin: 20px 0;
}

.nd-share a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-bg);
  transition: .2s;
}

.nd-share svg {
  width: 18px;
  height: 18px;
  fill: var(--color-text);
}

.nd-share a:hover {
  background: var(--color-primary);
}

.nd-share a:hover svg {
  fill: white;
}

/* Search na stranici vesti */
.nd-news-search {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.nd-news-search input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
}

.nd-load-more {
  margin-top: 20px;
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  background: var(--color-primary);
  color: white;
  cursor: pointer;
}

.nd-news-search button {
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  background: var(--color-primary);
  color: white;
  cursor: pointer;
}

/* single template related div */
.nd-related-full {
  max-width: 1400px;
  margin: 60px auto;
  padding: 0 20px;
}

.nd-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 1024px) {
  .nd-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nd-related-grid {
    grid-template-columns: 1fr;
  }
}


/*Novi stil za kartice vesti*/

.nd-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.10);
}

.nd-card__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  /* Instagram-ish format */
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.nd-card__img,
.nd-card__placeholder {
  width: 100%;
  height: 100%;
  display: block;
}

.nd-card__img {
  object-fit: cover;
  transition: transform 0.5s ease;
}

.nd-card__placeholder {
  background: linear-gradient(135deg, #444, #222);
}

.nd-card:hover .nd-card__img {
  transform: scale(1.05);
}

.nd-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.82) 0%,
      rgba(0, 0, 0, 0.58) 48%,
      rgba(0, 0, 0, 0.18) 85%,
      rgba(0, 0, 0, 0.04) 100%);
  z-index: 1;
}

.nd-card__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 20px;
  color: #fff;
}

.nd-card__categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.nd-card__category {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: #ff5a3c;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  line-height: 1;
}

.nd-card__meta {
  margin-bottom: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.82);
}

.nd-card__title {
  margin: 0 0 10px;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 800;
}

@media (max-width: 768px) {
  .nd-card__title {
    font-size: 23px;
  }
}

.nd-card__title span {
  color: #fff;
}

.nd-card__excerpt {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
}

.nd-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  opacity: 0.95;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nd-card:hover .nd-card__cta {
  transform: translateX(4px);
  opacity: 1;
}