* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  line-height: 25px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #222;
  background: #fff;
}

.container {
  max-width: 900px;
  margin: 60px auto;
  padding: 0 20px;
}

.podaci {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 30px;
}

ul {
  padding-left: 40px;
  list-style-type: square;
}

.linija{
  border: solid 1px;
  border-color: black;
  border-radius: 1px;
}

.profilna {
  width: 138px;
  height: 138px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
}

.subtitle {
  color: #666;
  margin: 4px 0;
}

.subtitle1 {
  color: #666;
  margin: 4px 0;
  margin-top: 10px;
}

.link {
  font-size: 14px;
  color: #999;
}

.section {
  margin-bottom: 30px;
  margin-top: 30px;
}

.section h2 {
  font-size: 24px;
  margin-bottom: 16px;
}

/* Navbar */
.navbar {
  background: #2c3e50;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.nav-logo {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 600;
  padding: 1rem 0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-logo:hover {
  color: #3498db;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-item {
  padding: 0;
}

.nav-link {
  color: #ecf0f1;
  text-decoration: none;
  padding: 1.5rem 1rem;
  display: block;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  border-bottom: 3px solid #3498db;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    padding: 1rem;
  }
  
  .nav-menu {
    flex-direction: column;
    gap: 0;
    width: 100%;
    text-align: center;
  }
  
  .nav-link {
    padding: 0.75rem 1rem;
  }
}

/* Accordion Styles */
.accordion {
  max-width: 800px;
  margin: 0 auto;
  padding-bottom: 50px;
}

.accordion-item {
  background: white;
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.accordion-item:hover {
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.accordion-header {
  width: 100%;
  padding: 1.5rem;
  background: #2c3e50;
  color: white;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s ease;
  border-radius: 8px 8px 0 0;
}

.accordion-header:hover {
  background: #34495e;
}

.accordion-icon {
  transition: transform 0.3s ease;
  font-size: 0.9rem;
}

.accordion-content {
  display: none;
}

.accordion-content.active {
  display: block;
}

/* Predmet Items */
.predmet-item {
  border-bottom: 1px solid #eee;
}

.predmet-item:last-child {
  border-bottom: none;
}

.predmet-header {
  width: 100%;
  padding: 1rem 1.5rem;
  background: #ecf0f1;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s ease;
  color: #2c3e50;
}

.predmet-header:hover {
  background: #d5dbdb;
}

.predmet-icon {
  transition: transform 0.3s ease;
  font-size: 0.8rem;
  color: #7f8c8d;
}

.predmet-content {
  display: none;
  background: #f8f9fa;
}

.predmet-content.active {
  display: block;
}

.predmet-opis {
  padding: 1rem 1.5rem 0.5rem;
  color: #7f8c8d;
  margin: 0;
  font-size: 0.9rem;
  font-style: italic;
}

.materijali {
  padding: 0.5rem 1.5rem 1rem;
}

.materijal-link {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: #2c3e50;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.materijal-link:hover {
  background: #1a252f;
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}


.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
  gap: 4px;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background: #fff;
  transition: 0.3s;
  border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Hamburger */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  
  .nav-container {
    flex-direction: row;
    justify-content: space-between;
  }
  
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #2c3e50;
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  
  .nav-menu.active {
    max-height: 300px;
  }
  
  .nav-link {
    padding: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
}