
body {
	font-family: Arial, sans-serif;
	margin: 0;
	padding: 0;
	background-color: #f4f4f4;
}
header {
	background-color: #2E8B57;
	color: white;
	padding: 20px;
	text-align: center;
}
nav {
	background-color: #3CB371;
	padding: 10px;
	text-align: center;
}
nav a {
	color: white;
	text-decoration: none;
	padding: 10px 15px;
	font-size: 16px;
	display: inline-block;
}
nav a:hover {
	background-color: #2E8B57;
	border-radius: 5px;
}
.hero {
	background: url('istorija.jpg') no-repeat center center/cover;
	height: 400px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-size: 2em;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
	text-align: center;
	padding: 20px;
}
.container {
	max-width: 1100px;
	margin: 0 auto;
	padding: 80px 20px; /* Veće margine unutar kontejnera */
	text-align: center;
}
.button {
	display: inline-block;
	padding: 10px 20px;
	background: #2E8B57;
	color: white;
	text-decoration: none;
	border-radius: 5px;
	margin-top: 20px;
}
footer {
	background-color: #2E8B57;
	color: white;
	text-align: center;
	padding: 10px;
	margin-top: 20px;
}
section {
	padding: 40px 10%;
	margin: 20px 0;
	background-color: #ffffff;
}
.news-item {
	display: flex;
	align-items: center;
	margin-bottom: 20px;
	border-bottom: 1px solid #ccc;
	padding-bottom: 20px;
}

.news-link {
	display: flex;
	align-items: center;
	text-decoration: none;
	color: inherit;
}

.news-image {
	width: 150px;
	height: auto;
	margin-right: 20px;
	transition: transform 0.3s ease;
}

.news-image:hover {
	transform: scale(1.1);
}

.news-content h3 {
	text-align: left;
	margin: 0;
	font-size: 1.5rem;
}

.news-content p {
	text-align: left;
	margin: 10px 0;
	font-size: 1rem;
	color: #555;
}

.read-more {
	text-align: left;
	color: #007BFF;
	font-weight: bold;
	text-decoration: none;
	display: inline-block;
	margin-top: 10px;
}

.read-more:hover {
	text-decoration: underline;
}
#galerija {
	padding: 40px 20px;
	text-align: center;
}
#galerija .gallery-item {
	display: inline-block;
	width: 30%;
	max-width: 300px;
	margin: 10px;
	position: relative;
	aspect-ratio: 3/2;
	overflow: hidden;
}
#galerija .gallery-item img {
	width: 100%;
	height: auto;
	object-fit: cover;
}
#galerija .gallery-item:hover .overlay {
	opacity: 1;
}
.overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.6);
	color: white;
	display: flex;
	justify-content: center;
	align-items: center;
	opacity: 0;
	transition: opacity 0.3s ease;
}
@media (max-width: 768px) {
	nav {
		display: flex;
		flex-direction: column;
		align-items: center;
	}
	.hero {
		font-size: 1.5em;
		height: 250px;
	}
	section {
		padding: 20px;
	}
	#galerija .gallery-item {
		width: 45%;
	}
	.news-item {
		flex-direction: column;
		align-items: flex-start;
	}
	
	.news-link {
		flex-direction: column;
		align-items: flex-start;
	}

	.news-image {
		width: 100%;
		max-width: 400px;
		margin-bottom: 15px;
	}

	.news-content {
		text-align: center;
	}

	.news-content h3 {
		font-size: 1.3rem;
	}

	.news-content p {
		font-size: 0.9rem;
	}
}

@media (max-width: 480px) {
	.hero {
		font-size: 1.2em;
		height: 200px;
		padding: 10px;
	}
	nav a {
		font-size: 14px;
		padding: 8px;
	}
	#galerija .gallery-item {
		width: 100%;
	}
}
#backToTop {
	position: fixed;
	bottom: 20px;
	right: 20px;
	background-color: #2E8B57;
	color: white;
	border: none;
	padding: 10px 15px;
	font-size: 16px;
	border-radius: 5px;
	cursor: pointer;
	display: none;
	transition: opacity 0.3s;
}
#backToTop:hover {
	background-color: #3CB371;
}
/* Contact Section Styles */
#contact {
  padding: 40px 20px;
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  gap: 20px;
}

.map-section,
.info-section {
  flex: 1 1 45%;
  min-width: 300px;
}

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

.info-section p {
  font-size: 16px;
  margin-bottom: 20px;
}

.contact-details {
  list-style: none;
  padding: 0;
  font-size: 16px;
}

.contact-details li {
  margin-bottom: 10px;
}

.contact-details a {
  color: #0066cc;
  text-decoration: none;
}

.contact-details a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
  .contact-container {
    flex-direction: column;
  }

  .map-section,
  .info-section {
    flex: 1 1 100%;
  }
}
/*----------------------------------------*/
.socials {
  list-style: none;
  padding: 0 20% 0 20%;
  display: flex;
  /*flex-direction: column;*/
  gap: 20px;
}

.socials li a {
  color: #333;
  text-decoration: none;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.socials li a:hover {
  color: #0077cc;
}

.socials i {
  font-size: 20px;
}
