/*
Theme Name: PMM Vesti
Theme URI: https://example.com/pmm-vesti
Author: Codex
Author URI: https://example.com
Description: WordPress tema za PMM Vesti sa news listing stranicom, detaljima vesti i footer logo opcijama iz media biblioteke.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: pmm-vesti
*/

:root {
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-dark: #1e2330;
  --text: #1e2330;
  --copy: #475569;
  --muted: #8e95a3;
  --line: #e5e7eb;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --panel: #f1f5f9;
  --shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
  --radius-lg: 18px;
  --radius-md: 14px;
  --content-width: 1320px;
  --article-width: 980px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: min(calc(100% - 2rem), var(--content-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(229, 231, 235, 0.92);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  backdrop-filter: blur(16px);
}

body.admin-bar .site-header {
  top: 32px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 5.4rem;
}

.mobile-toggle {
  display: none;
  width: 2.8rem;
  height: 2.8rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1f2937;
  cursor: pointer;
}

.mobile-toggle svg {
  width: 1.75rem;
  height: 1.75rem;
}

.brand-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  flex-grow: 1;
}

.brand-link img,
.brand-placeholder {
  max-height: 2.5rem;
  width: auto;
}

.brand-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 7rem;
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #1e2330, #334155);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  align-items: center;
}

.desktop-nav ul,
.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.desktop-nav .menu-list,
.desktop-nav ul {
  display: flex;
  align-items: center;
  gap: 2rem;
  color: #6b7280;
  font-size: 0.95rem;
  font-weight: 500;
}

.desktop-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav .current-menu-item > a,
.desktop-nav .current_page_item > a {
  color: var(--accent);
}

.nav-icon {
  width: 1rem;
  height: 1rem;
  flex: 0 0 1rem;
}

.nav-home > a {
  color: #312e81;
  font-weight: 700;
}

.nav-news > a {
  font-weight: 600;
}

.mobile-balance {
  display: none;
  width: 2.8rem;
  height: 2.8rem;
  flex: 0 0 2.8rem;
}

.mobile-nav {
  display: none;
  padding: 0 0 1rem;
  border-top: 1px solid #f1f5f9;
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav .menu-list,
.mobile-nav ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1rem;
  text-align: center;
  color: #6b7280;
  font-size: 1rem;
  font-weight: 500;
}

.mobile-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}

.content-area {
  flex: 1 0 auto;
  padding: 0 16px;
}

.news-hero {
  background: var(--bg-soft);
  padding: 4.5rem 0 4rem;
}

.news-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 3rem;
  align-items: center;
}

.news-hero-copy {
  max-width: 40rem;
}

.news-hero-title {
  margin: 0 0 1.5rem;
  font-size: clamp(2.9rem, 6vw, 5rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
  font-weight: 900;
}

.news-hero-text {
  margin: 0;
  font-size: 1.25rem;
  color: #64748b;
  font-weight: 500;
}

.news-hero-visual {
  position: relative;
  min-height: 23rem;
  border-radius: 2rem;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.3), transparent 36%),
    linear-gradient(135deg, #ffffff, #e2e8f0);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-panel {
  position: absolute;
  inset: 2rem;
  border-radius: 1.6rem;
  background: rgba(255, 255, 255, 0.92);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-line {
  height: 0.9rem;
  border-radius: 999px;
  background: #e2e8f0;
}

.hero-line.is-dark {
  background: #1e2330;
}

.hero-line.is-short {
  width: 58%;
}

.hero-line.is-mid {
  width: 78%;
}

.hero-cards {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 1rem;
  align-items: start;
}

.hero-thumb {
  min-height: 7rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, #cbd5e1, #94a3b8);
}

.hero-copy-stack {
  display: grid;
  gap: 0.65rem;
}

.hero-button {
  width: 10.5rem;
  height: 2.4rem;
  border-radius: 999px;
  background: var(--accent);
}

.news-section,
.generic-section {
  padding: 4rem 0 5rem;
}

.news-featured-card,
.news-card,
.page-card,
.empty-card,
.generic-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.news-featured-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.95fr);
  overflow: hidden;
  margin-bottom: 4rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.news-featured-card:hover,
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 58px rgba(15, 23, 42, 0.12);
}

.news-featured-copy {
  padding: 2.35rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-featured-copy h2,
.news-featured-copy h3 {
  margin: 0 0 1rem;
  font-size: clamp(1.8rem, 3.6vw, 2.45rem);
  line-height: 1.14;
  letter-spacing: -0.04em;
}

.post-meta-line {
  margin: 0 0 0.75rem;
  color: #94a3b8;
  font-size: 0.84rem;
  font-weight: 600;
}

.news-card-excerpt {
  margin: 0 0 1.5rem;
  color: var(--copy);
  font-size: 0.98rem;
}

.news-card-footer,
.entry-meta,
.article-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  
  font-size: 0.95rem;
}
.article-meta-row {color:#717d96;}

.news-read-more {
  color: var(--text);
  font-weight: 700;
}

.news-featured-media,
.news-card-media,
.article-media {
  background: #e2e8f0;
  overflow: hidden;
}

.news-featured-media {
  min-height: 21rem;
}

.news-card-media {
  height: 14rem;
}

.cover-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.26), transparent 36%),
    linear-gradient(135deg, #e2e8f0, #cbd5e1);
  color: rgba(30, 35, 48, 0.78);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.news-card {
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.news-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.news-card-body,
.page-card,
.empty-card,
.generic-panel {
  padding: 2rem;
}

.news-card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.news-card-body h2,
.news-card-body h3 {
  margin: 0 0 0.85rem;
  font-size: 1.2rem;
  line-height: 1.25;
}

.news-arrow {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--panel);
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.article-shell {
  width: min(calc(100% - 2rem), var(--article-width));
  margin: 0 auto;
  padding: 3rem 0 5rem;
}

.breadcrumb {
  
  color: #717d96;
  font-size: 0.95rem;
  
}
.breadcrumb a {
    color:#2d3648;
}

.breadcrumb-separator {
  margin: 0 0.4rem;
  color: #cbd5e1;
}

.article-meta-row {
  justify-content: flex-start;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.article-title,
.page-title {
  margin: 0 0 1.25rem;
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.05em;
  font-weight: 700;
}

.article-title {
  text-align: center;
}

.article-media {

  border-radius: var(--radius-md);
}

.article-source {
  margin: 0.75rem 0 0;
  color: #94a3b8;
  font-size: 0.82rem;
  font-style: italic;
}

.article-content,
.generic-panel p,
.page-card p {
  color: var(--copy);
}

.share-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.share-label {
  margin-right: 0.5rem;
  font-weight: 700;
}

.share-button {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  border: 1px solid #cbd5e1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #475569;
  font-weight: 800;
}

.share-button.is-active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.related-news {
  position: relative;
  margin-top: 5rem;
  padding: 4rem 1rem 5rem;
  background: var(--bg-soft);
  border-radius: 2rem;
}

.related-news-title {
  margin: 0 0 2rem;
  text-align: center;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
}



.site-footer {
  background: var(--bg-dark);
  color: var(--muted);
  padding: 3.5rem 0;
}

.footer-desktop {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3rem;
}

.footer-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  max-width: 42rem;
}

.footer-top-logo img {
  max-height: 1.2rem;
  width: auto;
  object-fit: contain;
}

.footer-logo-placeholder {
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-copy p {
  margin: 0 0 1rem;
  font-size: 0.94rem;
  line-height: 1.68;
}

.footer-association-logo img {
  max-height: 2.9rem;
  width: auto;
}

.footer-copyright {
  font-size: 0.82rem;
  color: #6b7280;
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.footer-partners-row,
.footer-partner-logos {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-partner-logo {
  width: 5.2rem;
  height: 2.9rem;
  border-radius: 0.45rem;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.35rem;
}

.footer-ministry-box {
  position: relative;
  width: min(100%, 21rem);
  min-height: 5rem;
  margin-left: 1.5rem;
  padding: 1rem 1rem 1rem 3.2rem;
  border-radius: 0.6rem;
  background: #fff;
  color: #111827;
}

.footer-ministry-badge {
  position: absolute;
  left: -1.3rem;
  top: 50%;
  width: 3.6rem;
  height: 3.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 5px solid var(--bg-dark);
  border-radius: 0.35rem;
  background: #e33745;
  transform: translateY(-50%) rotate(45deg);
}

.footer-ministry-badge-inner {
  width: 2.3rem;
  height: 2.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.25rem;
  background: #fff;
  transform: rotate(-45deg);
  overflow: hidden;
}

.footer-ministry-badge-inner img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-ministry-text {
  margin: 0;
  font-size: 0.7rem;
  line-height: 1.38;
  font-weight: 600;
}

.footer-contact {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
}

.footer-mobile {
  display: none;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.clamp-2,
.clamp-4 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
}

.clamp-2 {
  -webkit-line-clamp: 2;
}

.clamp-4 {
  -webkit-line-clamp: 4;
}

@media (max-width: 1100px) {
  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-desktop {
    grid-template-columns: 1fr;
  }

  .footer-right,
  .footer-partners-row,
  .footer-partner-logos {
    align-items: flex-start;
    justify-content: flex-start;
  }
}

@media (max-width: 900px) {
  .news-hero-grid,
  .news-featured-card,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .news-featured-copy,
  .news-card-body,
  .page-card,
  .empty-card,
  .generic-panel {
    padding: 1.35rem;
  }
}

@media (max-width: 767px) {
  body.admin-bar .site-header {
    top: 0;
  }

  .container {
    width: min(calc(100% - 1.25rem), var(--content-width));
  }

  .mobile-toggle,
  .mobile-balance {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .desktop-nav {
    display: none;
  }

  .footer-desktop {
    display: none;
  }

  .footer-mobile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
}
