
/*
Theme Name: Ljubušaci NewsPro
Theme URI: https://ljubusaci.com/
Author: Ljubušaci Digital Studio
Author URI: https://ljubusaci.com/
Description: Vrhunska, moderna novinska i magazinska WordPress tema izrađena po standardima svjetskih medijskih portala (The Verge, BBC, Klix). Automatski organizira vijesti po sekcijama (Izdvojeno, Aktuelno, Ljubuški, Kolumne, Galerije), sadrži Breaking News traku, numerirani trending widget, responzivni dizajn i ugrađeni novi identitet.
Version: 3.2.6
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ljubusaci-newspro
*/

:root {
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  
  /* MEDITERANSKI AZUR (VEDRA PLAVA BOJA LJUBUŠKOG) */
  --primary: #0284c7;
  --primary-dark: #0369a1;
  --primary-glow: rgba(2, 132, 199, 0.18);
  --accent: #38bdf8;
  
  --dark-bg: #082f49;
  --dark-surface: #0c4a6e;
  --dark-border: rgba(255, 255, 255, 0.1);
  
  --light-bg: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border-light: #e2e8f0;
  
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 16px 36px rgba(15, 23, 42, 0.12);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  
  --container-max: 1240px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-main);
  background-color: var(--light-bg);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: all 0.2s ease; }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; display: block; }

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

/* =========================================
   TOP UTILITY BAR
   ========================================= */
.top-bar {
  background: var(--dark-bg);
  color: #94a3b8;
  font-size: 13px;
  border-bottom: 1px solid var(--dark-border);
  padding: 8px 0;
}
.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.top-bar-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.weather-badge,
.date-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #cbd5e1;
  font-weight: 500;
}
.weather-badge strong {
  color: #ffffff;
}

/* Breaking Ticker */
.breaking-ticker {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  padding: 3px 12px;
  border-radius: var(--radius-full);
}
.ticker-badge {
  background: var(--primary);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.pulse-dot {
  width: 6px;
  height: 6px;
  background: #ffffff;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}
.ticker-content a {
  color: #f1f5f9;
  font-weight: 500;
  max-width: 400px;
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}
.ticker-content a:hover { color: var(--accent); }

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.social-links {
  display: flex;
  align-items: center;
  gap: 12px;
}
.social-links a {
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}
.social-links a:hover { color: #ffffff; }

/* =========================================
   MAIN BRAND HEADER
   ========================================= */
.main-header {
  position: relative;
  overflow: hidden;
  background-color: #082f49;
  background-image:
    linear-gradient(
      90deg,
      rgba(8, 47, 73, 0.94) 0%,
      rgba(7, 89, 133, 0.76) 30%,
      rgba(8, 47, 73, 0.26) 65%,
      rgba(8, 47, 73, 0.44) 100%
    ),
    linear-gradient(
      180deg,
      rgba(8, 47, 73, 0.24) 0%,
      rgba(8, 47, 73, 0.04) 50%,
      rgba(8, 47, 73, 0.42) 100%
    ),
    url('assets/images/header-panorama.jpg');
  background-size: cover;
  background-position: center 41%;
  background-repeat: no-repeat;
  color: #ffffff;
  padding: 34px 0;
  border-bottom: none;
  box-shadow: inset 0 -1px 0 rgba(56, 189, 248, 0.25);
}
.header-inner {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand-box {
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand-logo-img {
  max-height: 70px;
  width: auto;
  filter: drop-shadow(0 2px 10px rgba(8, 47, 73, 0.55));
}
.brand-text-fallback h1 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.1;
}
.brand-text-fallback p {
  font-size: 13px;
  color: #94a3b8;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.header-banner-box {
  text-align: right;
  font-size: 14px;
  color: #94a3b8;
}
.tagline-pill {
  display: inline-block;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  color: #e2e8f0;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.5px;
}

/* =========================================
   NAVIGATION BAR (STICKY)
   ========================================= */
.navbar-sticky {
  background: #ffffff;
  border-bottom: 2px solid var(--border-light);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.main-menu {
  display: flex;
  list-style: none;
  gap: 4px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.main-menu > li {
  position: relative;
}
.main-menu > li > a {
  display: block;
  padding: 15px 12px;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  transition: all 0.2s;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}
.main-menu > li.menu-item-has-children > a::after {
  content: ' ▾';
  font-size: 11px;
  opacity: 0.65;
  margin-left: 2px;
}
.submenu-toggle {
  display: none;
}
.main-menu > li:hover > a,
.main-menu > li.current-menu-item > a {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Dropdown */
.main-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  min-width: 230px;
  max-height: 70vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  border: 1px solid var(--border-light);
  list-style: none;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 999;
}
.main-menu > li:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.main-menu .sub-menu a {
  display: block;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  color: #475569;
}
.main-menu .sub-menu a:hover {
  background: #f8fafc;
  color: var(--primary);
  padding-left: 22px;
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.search-form {
  display: flex;
  align-items: center;
}
.nav-search-input {
  padding: 7px 14px;
  border-radius: 20px;
  border: 1px solid #cbd5e1;
  font-size: 13px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.nav-search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.trending-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  padding: 8px 0;
  font-size: 13px;
}
.trending-bar-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.trending-bar-label {
  font-weight: 800;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--primary);
  letter-spacing: 0.6px;
}
.trending-chip {
  background: #f1f5f9;
  color: #475569;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 12px;
}
.trending-chip:hover {
  background: var(--primary);
  color: #ffffff;
}
.search-btn, .mobile-toggle {
  background: transparent;
  border: none;
  color: #334155;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.mobile-toggle { display: none; }

/* =========================================
   CATEGORY BADGES & UI CHIPS
   ========================================= */
.cat-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #ffffff !important;
  line-height: 1.1;
  margin-bottom: 8px;
}
.cat-badge.ljubuski { background: #0284c7; }
.cat-badge.kolumne { background: #b45309; }
.cat-badge.galerije { background: #7c3aed; }
.cat-badge.aktuelno { background: #dc2626; }
.cat-badge.izdvojeno { background: #c1121f; }
.cat-badge.lifestyle { background: #0d9488; }
.cat-badge.humanitarne-akcije,
.cat-badge.humanitarni-blok { background: #e11d48; }

.meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted);
}
.meta-row span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* =========================================
   SECTION HEADERS
   ========================================= */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-light);
  position: relative;
}
.section-header::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 70px;
  height: 2px;
  background: var(--primary);
}
.section-title {
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title .accent-bar {
  width: 5px;
  height: 20px;
  background: var(--primary);
  border-radius: 2px;
}
.section-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.section-link:hover { text-decoration: underline; }

/* =========================================
   1. HERO MAGAZINE SHOWCASE (LEAD STORIES)
   ========================================= */
.hero-section {
  padding: 30px 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.6fr 1.1fr;
  gap: 20px;
}

/* Lead Big Card */
.hero-lead-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 480px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.hero-lead-card .card-bg-img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  z-index: 1;
}
.hero-lead-card:hover .card-bg-img {
  transform: scale(1.05);
}
.hero-lead-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(15,23,42,0.6) 40%, rgba(15,23,42,0.95) 100%);
  z-index: 2;
}
.hero-lead-body {
  position: relative;
  z-index: 3;
  padding: 32px;
  color: #ffffff;
}
.hero-lead-title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.25;
  margin: 10px 0 14px;
  color: #ffffff;
}
.hero-lead-title a:hover { color: var(--accent); }
.hero-lead-card .meta-row { color: #cbd5e1; }

/* Secondary Column Stack */
.hero-sub-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 480px;
}
.hero-sub-card {
  flex: 1;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.hero-sub-card .card-bg-img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  z-index: 1;
}
.hero-sub-card:hover .card-bg-img {
  transform: scale(1.06);
}
.hero-sub-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(15,23,42,0.9) 100%);
  z-index: 2;
}
.hero-sub-body {
  position: relative;
  z-index: 3;
  padding: 18px 20px;
  color: #ffffff;
}
.hero-sub-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  margin: 6px 0 8px;
  color: #ffffff;
}
.hero-sub-title a:hover { color: var(--accent); }

/* =========================================
   2. MAIN CONTENT + SIDEBAR LAYOUT
   ========================================= */
.main-layout {
  padding: 30px 0;
}
.layout-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 36px;
}

/* Post Cards Grid */
.posts-two-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.related-posts-section {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 2px solid var(--border-light);
}
/* Sakriva zastarjeli Shareaholic widget za preporuke kako bi ostao samo moderan dizajn teme */
.shareaholic-canvas[data-app="recommendations"] {
  display: none !important;
}
.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.related-card-media {
  height: 165px;
}
.related-card-body {
  padding: 16px 18px;
  justify-content: space-between;
}
.related-card-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  margin: 4px 0 12px;
  color: var(--text-main);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}
.magazine-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  padding: 0 !important;
}
.magazine-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}
.card-media {
  position: relative;
  width: 100%;
  height: 210px;
  overflow: hidden;
  background: #e2e8f0;
  margin: 0 !important;
  padding: 0 !important;
}
.card-media img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  margin: 0 !important;
  border-radius: 0 !important;
  transition: transform 0.4s ease;
}
.magazine-card:hover .card-media img {
  transform: scale(1.05);
}
.card-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.card-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  margin: 8px 0;
  color: #0f172a;
}
.card-excerpt {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Horizontal News Item */
.horizontal-news-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}
.news-item-h {
  display: flex;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
  align-items: center;
}
.news-item-h:last-child { border-bottom: none; }
.news-item-h .item-thumb {
  width: 110px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}
.news-item-h .item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.news-item-h .item-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 6px;
}

/* =========================================
   3. SECTION: LJUBUŠKI FOKUS (4 COLUMNS)
   ========================================= */
.ljubuski-block {
  background: #f1f5f9;
  padding: 48px 0;
  margin: 30px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.four-col-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* =========================================
   4. SECTION: KOLUMNE & AUTORI (EDITORIAL)
   ========================================= */
.kolumne-section {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #ffffff;
  padding: 50px 0;
  margin: 30px 0;
  border-radius: var(--radius-lg);
}
.kolumne-section .section-title {
  color: #ffffff;
}
.kolumne-section .section-header {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}
.kolumne-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.kolumna-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 24px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}
.kolumna-card:hover {
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
}
.author-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.author-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  overflow: hidden;
  background: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #ffffff;
}
.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.author-info h4 {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
}
.author-info span {
  font-size: 12px;
  color: #94a3b8;
  text-transform: uppercase;
}
.kolumna-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 12px;
  color: #f8fafc;
}
.kolumna-title a:hover { color: var(--accent); }
.kolumna-quote {
  font-size: 14px;
  color: #cbd5e1;
  font-style: italic;
  line-height: 1.6;
}

/* =========================================
   SIDEBAR WIDGETS
   ========================================= */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.widget-box {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}
.widget-title {
  font-size: 17px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border-light);
  position: relative;
}
.widget-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 45px;
  height: 2px;
  background: var(--primary);
}

/* Trending Ranking (01, 02, 03, 04, 05) */
.trending-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.trending-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.trending-num {
  font-size: 24px;
  font-weight: 900;
  color: #cbd5e1;
  line-height: 1;
  width: 32px;
  flex-shrink: 0;
  transition: color 0.2s;
}
.trending-item:hover .trending-num {
  color: var(--primary);
}
.trending-text h5 {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 4px;
}
.trending-text span {
  font-size: 12px;
  color: var(--text-muted);
}

/* Clean Category Rows List */
.category-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.category-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  background: #f8fafc;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  transition: all 0.2s ease;
}
.category-row-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.category-row-name::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}
.category-row-count {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  background: #ffffff;
  border: 1px solid var(--border-light);
  padding: 2px 9px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}
.category-row:hover {
  background: #f0f9ff;
  border-color: #bae6fd;
  color: var(--primary-dark);
}
.category-row:hover .category-row-count {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

/* Category Pill Badges List */
.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.category-pills a {
  background: #f1f5f9;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  transition: all 0.2s;
}
.category-pills a:hover {
  background: var(--primary);
  color: #ffffff;
}

/* Newsletter Box */
.newsletter-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #ffffff;
  padding: 26px;
  border-radius: var(--radius-md);
  text-align: center;
}
.newsletter-card h3 {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 8px;
}
.newsletter-card p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 16px;
}
.newsletter-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: none;
  font-size: 14px;
  margin-bottom: 10px;
}
.newsletter-btn {
  width: 100%;
  padding: 12px;
  background: #0f172a;
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.newsletter-btn:hover { background: #000000; }

/* =========================================
   SINGLE ARTICLE VIEW (EDITORIAL)
   ========================================= */
.single-post-wrapper {
  padding: 40px 0;
}
.single-container {
  max-width: 880px;
  margin: 0 auto;
}
.single-header {
  margin-bottom: 24px;
}
.single-title {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.25;
  margin: 14px 0 18px;
  color: var(--text-main);
}
.author-byline {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 24px;
}
.byline-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
}
.byline-avatar img { width: 100%; height: 100%; object-fit: cover; }
.byline-details {
  font-size: 14px;
}
.byline-details strong { color: var(--text-main); }
.single-featured-media {
  width: 100%;
  height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  background: #f1f5f9;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.single-featured-media .single-featured-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.single-content {
  font-size: 19px;
  line-height: 1.85;
  color: #1e293b;
}
.single-content p {
  margin-bottom: 24px;
}
.single-content img {
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: 520px;
  display: block;
  margin: 24px auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  object-fit: contain;
}
.single-content figure {
  margin: 24px auto;
  max-width: 100%;
}
.single-content figure img {
  margin: 0 auto;
}
.single-content figcaption,
.single-content .wp-caption-text {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
}
.single-content h2, .single-content h3 {
  margin: 36px 0 16px;
  font-weight: 800;
  line-height: 1.3;
}
.single-content blockquote {
  font-family: var(--font-serif);
  font-size: 22px;
  font-style: italic;
  padding: 20px 28px;
  margin: 30px 0;
  border-left: 4px solid var(--primary);
  background: #f8fafc;
  color: #334155;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Share Buttons */
.share-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 0;
  margin: 36px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.share-bar span { font-size: 13px; font-weight: 700; text-transform: uppercase; color: var(--text-muted); }
.share-btn {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.share-fb { background: #1877f2; }
.share-wa { background: #25d366; }
.share-viber { background: #7360f2; }

/* =========================================
   FOOTER (4 COLUMNS)
   ========================================= */
.site-footer {
  background: var(--dark-bg);
  color: #94a3b8;
  padding: 60px 0 24px;
  margin-top: 60px;
  border-top: 1px solid var(--dark-border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--dark-border);
}
.footer-col h4 {
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col a { color: #94a3b8; font-size: 14px; }
.footer-col a:hover { color: #ffffff; padding-left: 4px; }
.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

/* =========================================
   PAGINATION
   ========================================= */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 40px 0;
}
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  background: #ffffff;
  border: 1px solid var(--border-light);
  font-size: 14px;
  font-weight: 700;
  color: #334155;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.pagination a.page-numbers:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #f0f9ff;
}
.pagination .page-numbers.prev,
.pagination .page-numbers.next {
  width: auto;
  padding: 0 16px;
}
.pagination .page-numbers.dots {
  min-width: auto;
  padding: 0 6px;
  border-color: transparent;
  background: transparent;
  color: var(--text-muted);
}
.pagination .page-numbers.current {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* =========================================
   RESPONSIVE DESIGN (MOBILE / TABLET)
   ========================================= */
@media (max-width: 992px) {
  .single-featured-media { height: 360px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-sub-stack { height: auto; }
  .layout-grid { grid-template-columns: 1fr; }
  .four-col-grid { grid-template-columns: repeat(2, 1fr); }
  .related-posts-grid { grid-template-columns: repeat(2, 1fr); }
  .kolumne-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }

  .navbar-sticky .main-menu { display: none; }
  .navbar-sticky .main-menu.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 75vh;
    overflow-y: auto;
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
    border-top: 1px solid var(--border-light);
    padding: 12px 16px;
    z-index: 1001;
    gap: 2px;
  }
  .navbar-sticky .main-menu.is-open > li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-light);
  }
  .navbar-sticky .main-menu.is-open > li > a {
    flex: 1;
    padding: 11px 6px;
    border-bottom: none;
  }
  .navbar-sticky .main-menu.is-open > li.menu-item-has-children > a::after {
    display: none;
  }
  .navbar-sticky .main-menu.is-open .submenu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #f1f5f9;
    border: none;
    border-radius: var(--radius-sm);
    color: #334155;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.2s;
  }
  .navbar-sticky .main-menu.is-open > li.submenu-open .submenu-toggle {
    transform: rotate(180deg);
    background: var(--primary);
    color: #ffffff;
  }
  .navbar-sticky .main-menu.is-open .sub-menu {
    position: static;
    width: 100%;
    max-height: none;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--primary);
    margin: 0 0 8px 8px;
    padding: 4px 0 4px 10px;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }
  .navbar-sticky .main-menu.is-open > li.submenu-open > .sub-menu {
    display: block;
  }
  .mobile-toggle { display: block; }
}

@media (max-width: 640px) {
  .main-header {
    padding: 22px 0;
    background-image:
      linear-gradient(
        90deg,
        rgba(8, 47, 73, 0.94) 0%,
        rgba(7, 89, 133, 0.82) 60%,
        rgba(8, 47, 73, 0.62) 100%
      ),
      url('assets/images/header-panorama.jpg');
  }
  .posts-two-col { grid-template-columns: 1fr; }
  .four-col-grid { grid-template-columns: 1fr; }
  .related-posts-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-lead-card { height: 380px; }
  .hero-lead-title { font-size: 22px; }
  .single-title { font-size: 26px; }
  .single-featured-media { height: 240px; }
  .single-content img { max-height: 360px; }
  .top-bar-right { display: none; }
  .breaking-ticker { max-width: 100%; }
  .ticker-content a { max-width: 210px; }
  .nav-search-input { width: 150px; }
}


/* OBAVEZNO OGRANIČENJE ZA LOGO U ZAGLAVLJU */
.custom-logo-link,
.custom-logo-link img,
.custom-logo,
.brand-box img,
.site-branding img {
  max-height: 65px !important;
  width: auto !important;
  display: block !important;
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
}
