@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

:root {
    --green: #5a8455;
    --dark: #132502;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f9f9f9;
    color: #333;
}

.container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* NAVIGACIJA */
nav {
  padding: 1rem;
  background: #5a8455;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: bold;
  font-size: 1.5rem;
  color: #fff;
}

.nav-links {
  display: flex;
  gap: 2rem;
  font-weight: 500;
  font-size: 1.1rem;
}

.nav-links a {
  padding-top: 15px;
  padding-bottom: 15px;
  text-decoration: none;
  color: #fff;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.burger span {
  width: 25px;
  height: 3px;
  background: #fff; 
  transition: 0.3s;
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 70px;
    right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 2rem;
    transform: translateY(-200%);
    opacity: 0;
    transition: all 0.3s ease;
    border-bottom-left-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    background: #5a8455; 
  }

  .nav-links.active a {
    color: #fff;
  }

  .burger {
    display: flex;
  }

  .burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .burger.active span:nth-child(2) {
    opacity: 0;
  }

  .burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
}

.main-content {
    max-width: 1600px;
    margin: 100px auto;
    padding: 10px 20px 40px;
    background: #f9f9f9;
    border-radius: 10px;
}

h1 {
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    color: #222;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.15);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
    transition: transform 0.3s ease;
}

.card:hover img {
    transform: scale(1.05);
}

.card-content {
    padding: 20px 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-content h3 {
    margin: 0 0 15px;
    font-size: 1.25rem;
    font-weight: 600;
    color: #111;
}

.card-content p {
    margin: 0 0 20px;
    padding: 0;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
    flex-grow: 1;
    word-wrap: break-word;
}

.datum {
    font-size: 0.85rem;
    color: #888;
    text-align: right;
    font-style: italic;
}

.pagination {
    margin-top: 40px;
    text-align: center;
    user-select: none;
}

.pagination a,
.pagination span {
    display: inline-block;
    margin: 0 6px;
    padding: 10px 18px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    background: #e0e0e0;
    color: #333;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
}

.pagination a:hover {
    background: #252525;
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.pagination .current {
    background: #252525;
    color: white;
    cursor: default;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.pagination .disabled {
    background: #cccccc;
    color: #888888;
    cursor: default;
    box-shadow: none;
}

@media (max-width: 1200px) {
    .grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .grid-container {
        grid-template-columns: 1fr;
    }

    .main-content {
        margin: 20px 10px;
        padding: 10px 15px 30px;
    }
}

h1 {
    margin-bottom: 15px;
    font-size: 2rem;
    font-weight: 600;
    color: #222;
}

.datum {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 20px;
}

.slika-wrapper {
    text-align: center;
    margin-bottom: 25px;
}

.slika-wrapper img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.slika-wrapper img:hover {
    transform: scale(1.02);
}

.opis {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #444;
    white-space: pre-line;
}
.opis p {
    margin-bottom: 1.5em; /* razmak između pasusa */
    line-height: 1.6; /* visina linije */
}

.back-link {
    display: inline-block;
    margin-top: 30px;
    background: #5a8455;
    color: white;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.3s ease;
}

.back-link:hover {
    background: #446b41;
}

.footer {
    background-color: var(--dark);
    color: var(--green);
    padding: 3rem 1rem;
    font-family: 'Segoe UI', sans-serif;
    text-align: center;
    font-style: italic;
    border-top: 2px solid var(--green);
}

.footer-inner p {
    margin: 0.5rem 0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.footer-rights {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--white);
    font-style: normal;
    font-weight: 500;
}