/*
Theme Name: Focus News Theme
Author: Ti
Version: 1.0
*/

body {
  font-family: 'Segoe UI', sans-serif;
  background: #f5f7fb;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 800px;
  margin: 0 auto; 
  padding: 1rem;
}

.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: 24px;
  margin-bottom: 24px;
}

.meta-header {
  margin-bottom: 12px;
}

.category {
  background: #2563eb;
  color: #fff;
  display: inline-block;
  padding: 4px 14px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  margin-bottom: 12px;
  
}

.institucija-cls {
  color: #2563eb;
  font-size: 16px;
  margin-bottom: 20px;
  font-weight: 600;
  text-transform: uppercase;
}
.card h2,
.card-text h2 {
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
  margin: 10px 0;
  line-height: 1.4;
}

.card h2 a,
.card-text h2 a {
  color: #111827;
  text-decoration: none;
}

.card h2 a:visited,
.card-text h2 a:visited {
  color: #111827;
}

.card h2 a:hover,
.card-text h2 a:hover {
  color: #111827;
  text-decoration: none;
}

.card-text .meta,
.card .meta {
  font-size: 14px;
  color: #6b7280;
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 0px; 
}

.card-horizontal {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
  background: #fff;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  align-items: flex-start;
  flex-wrap: wrap;
}

.card-horizontal.no-thumb .thumb-horizontal {
    display: none;
}

.card-horizontal.no-thumb .card-text h2 {
  margin-bottom: 0px;
  margin-top: -10px;
}

.card-horizontal.no-thumb .excerpt {
  margin-top: -10px;
}

.thumb-horizontal img {
  width: 160px;
  height: auto;
  object-fit: cover;
}

.card-text {
  flex: 1;
}

.card-text .excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 4; 
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}


.category-menu {
  display: flex;
  gap: 24px;
  padding: 10px 0;
  font-size: 16px;
  font-weight: 500;
  flex-wrap: wrap;
}

.category-menu a {
  text-decoration: none;
  color: #1a1a1a;
  transition: 0.2s;
}

.category-menu a:hover {
  color: #276ef1;
}

.thumb {
  margin-bottom: 16px;
}

.thumb img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

.meta {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 60px;
  font-size: 14px;
  color: #555;
  margin-top: 10px;
}

.meta i {
  margin-right: 6px;
  color: #888;
  font-size: 14px;
}

.pdf-link {
    font-size: 16px;
    color: #2563eb; /* Plava boja */
    text-decoration: none; /* Uklanja podcrtavanje */
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.dots-loader {
  text-align: center;
  font-size: 30px;
  font-weight: bold;
  color: #2563eb;
  margin: 40px 0;
}

.dots-loader span {
  display: inline-block;
  animation: blink 1.4s infinite both;
}

.dots-loader span:nth-child(2) {
  animation-delay: 0.2s;
}

.dots-loader span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes blink {
  0% {
    opacity: 0.2;
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 0.2;
  }
}

.pdf-link:hover {
    color: #2563eb; 
    text-decoration: none;
}

.pdf-link:visited {
    color: #2563eb; 
}

.original-saopstenje {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* HEADER MAIN */
.header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  padding: 10px;
  background: white;
  border-bottom: 3px solid #3b82f6;
  flex-wrap: wrap;
}

.site-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.logo-link {
  display: flex;
  align-items: stretch;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.logo {
  display: flex;
  align-items: center;
}

.logo i {
  font-size: 26px;
  color: #2563eb;
}

.site-title-group {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.site-title {
  font-size: 22px;
  font-weight: bold;
  margin: 0;
}

.site-date {
  font-size: 12px;
  color: #6b7280;
  margin-top: 2px;
}

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* NAV */
.header-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-weight: 500;
}

.header-nav a {
  text-decoration: none;
  color: #1f2937;
}

.header-nav a:hover {
  color: #2563eb;
}

/* SEARCH */
.search-box {
  position: relative;
  margin-top: 10px;
}

.search-box form {
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 6px 10px;
  background: #fff;
}

.search-box input {
  border: none;
  outline: none;
  padding-left: 8px;
  font-size: 14px;
}

/* FOOTER */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 40px 20px 20px;
  font-size: 14px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-column {
  flex: 1;
  min-width: 200px;
}

.footer-column h4 {
  color: #ffffff;
  margin-bottom: 12px;
  font-size: 16px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 8px;
}

.footer-column ul li a {
  color: #cbd5e1;
  text-decoration: none;
}

.footer-column ul li a:hover {
  color: #3b82f6;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  color: #ffffff;
  font-weight: bold;
  margin-bottom: 12px;
}

.footer-logo i {
  font-size: 24px;
  color: #3b82f6;
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #1e293b;
  font-size: 13px;
  color: #94a3b8;
}

.tags a {
  display: inline-block;
  background-color: #f1f1f1;
  padding: 5px 10px;
  margin: 2px;
  border-radius: 5px;
  font-size: 14px;
  text-decoration: none;
  color: #333;
  margin-top: 0; 
}

/* SWIPER GALLERY */
.swiper {
  width: 100%;
  max-width: 800px;
  margin: 40px auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.swiper-slide img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.swiper-slide {
  width: 100% !important;
  box-sizing: border-box;
}

.swiper-wrapper {
  display: flex;
}

.single-post .category {
  margin-bottom: 8px;
  display: inline-block;
}

.single-post h1 {
  margin-top: 0;
}

.single-post article {
  margin-left: auto;
  margin-right: auto;
  max-width: 720px;
  padding-left: 8px;
  padding-right: 8px;
}

.swiper-button-next,
.swiper-button-prev {
  width: 28px !important;;
  height: 28px !important;;
  background-color: white !important;;
  color: #111 !important;; /* tamnosiva/neutralna strelica */
  border-radius: 50% !important;;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;;
  display: flex !important;;
  align-items: center !important;;
  justify-content: center !important;;
  font-size: 14px !important;;
  opacity: 0.9 !important;;
  border: none !important;;
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 14px !important;;
  font-weight: bold !important;;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: #f3f4f6 !important;;
  color: #000 !important;;
}

/* === MOBILE MENU === */
.desktop-only {
  display: block;
}

.desktop-nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 40px;
  margin-left: auto;
}

.single-post article {
    padding-left: 16px;
    padding-right: 16px;
}

.menu-icon {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

.mobile-menu-wrapper {
  display: none;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  padding-top: 10px;
}

.mobile-menu-wrapper.open {
  display: flex;
}

@media (min-width: 769px) {
  .swiper-pagination {
    display: none !important;
  }

  .swiper-slide {
    width: 100% !important;
  }
}

@media (max-width: 768px) {
  .swiper-button-prev,
  .swiper-button-next {
    display: none !important;
  }

  .swiper-pagination {
    display: block !important;
    text-align: center;
    margin-top: 10px;
  }
  
  .single-post h1 {
    font-size: 34px !important; /* prije 32px */
  }

  .single-post .post-content p {
    font-size: 19px !important; /* prije 17px */
  }

  .single-post .meta {
    font-size: 16px !important; /* prije 14px */
  }

  .single-post .tags a {
    font-size: 16px !important; /* ako želiš i tagove veće */
  }

  .desktop-only {
    display: none;
  }

  .menu-icon {
    display: block;
  }

  .header-main {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-info {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  #mobile-menu {
    display: none;
  }

  #mobile-menu.open {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  #mobile-menu nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  #mobile-menu nav a {
    display: block;
    padding: 5px 10px;
    font-weight: 500;
  }

  #mobile-menu .search-box {
    width: 100%;
  }

  #mobile-menu input {
    width: 100%;
  }

  .card-horizontal {
    flex-direction: column;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    margin: 0 auto 24px auto;
  }

  .card-horizontal.no-thumb {
    padding: 20px;
    box-shadow: none;
  }

  .card-horizontal.no-thumb .card-text {
    padding: 0;
    background: none;
    box-shadow: none;
  }

  .thumb-horizontal {
    width: 100%;
    margin-bottom: 16px;
  }

  .thumb-horizontal img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
  }

  .card-text {
    width: 100%;
  }

  .post-content p,
  .card-text .excerpt,
  .card .excerpt,
  .single-post .post-content p {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 19px;
    color: #121212;
    line-height: 1.6;
    margin-bottom: 10px; 
  }

  .single-post h1 {
    font-size: 32px;
    font-weight: 700;
    color: #121212;
    margin-bottom: 12px;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  }

  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .card-text .meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #555;
    margin-top: 10px;
    flex-wrap: nowrap;
    width: 100%;
  }

  .card-text .meta > span {
    display: flex;
    align-items: center;
    white-space: nowrap;
    gap: 4px;
  }

  .single-post .meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap; 
    gap: 8px;
    width: 100%;
    font-size: 14px;
    color: #555;
  }

  .single-post .meta > span {
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap; /* ✅ sprječava prelamanje unutar svakog span-a */
  }
}
