:root{
  --primary-color: #c72727;
  --secondary-color: #f99500;
  --light-color: #f3f3f3;
  --dark-color: #333;
  --max-width: 1100px;
}

.category{
  --berba-color: #f99500;
  --rezidba-color: #a66bbe;
  --redovni_radovi-color: #009cff;
}

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

body{
  font-family: 'Nunito', sans-serif;
  line-height: 1.5;
  background: var(--light-color);
  
}

a{
  color: #333;
  text-decoration: none;
}

ul{
  list-style: none;
}

p{
  margin: .5rem 0;
}
img{
  width: 100%;
}

h1, h2, h3, h4, h5, h6{
  font-family: 'Roboto', cursive;
  margin-bottom: .55rem;
  line-height: 1.3;
}

/* Utility */
.container{
  max-width: var(--max-width);
  margin:auto;
  padding: 0 2rem;
  overflow: hidden;
}

.category{
  display: inline-block;
  color: #fff;
  font-size: 0.55rem;
  text-transform: uppercase;
  padding: 0.4rem 0.6rem ;
  border-radius: 15px;
  margin-bottom: 0.5rem;
}

.category-berba{
  background: var(--berba-color);
}
.category-rezidba{
  background: var(--rezidba-color);
}
.category-redovni_radovi{
  background: var(--redovni_radovi-color);
}
.btn{
  display: inline-block;
  border: none;
  background: var(--dark-color);
  color: #fff;
  padding: 0.5rem 1.5rem;
}

.btn-light{ background: var(--light-color)}
.btn-primary {background: var(--primary-color)}
.btn-secondary{background: var(--secondary-color)}

.btn-block{
  display: block;
  width: 100%;
  text-align: center;
}

.btn:hover{ opacity: 0.9;}

.card {
  background: #fff;
  padding: 1rem;
 
}

.bg-dark{
  background: var(--dark-color);
  color: #fff;
}
.bg-primary{
  background: var(--primary-color);
  color: #fff;
}
.bg-secondary{
  background: var(--secondary-color);
  color: #fff;
  
}

.bg-dark h1,
.bg-dark h2,
.bg-dark h3,
.bg-dark a,
.bg-primary h1,
.bg-primary h2,
.bg-primary h3,
.bg-primary a,
.bg-secondary h1,
.bg-secondary h2,
.bg-secondary h3,
.bg-secondary a{
  color: #fff;

}

.py-1 { padding: 1.5rem 0}
.py-2 { padding: 2rem 0}
.py-3 { padding: 3rem 0}
.p-1 { padding: 1.5rem}
.p-2 { padding: 2rem}
.p-3 { padding: 3rem}

.l-heading {
  font-size: 2rem;
}

.list li{
  padding: .5rem 0;
  border-bottom: #555 dotted 1px;
  width: 100%;
}

.list li a:hover{
  color: var(--primary-color);
}

/* Inner page container  */
.page-container{
  display: grid;
  grid-template-columns: 5fr 2fr;
  margin: 2rem 0;
  grid-gap: 1.5rem;
}
.page-container > *:first-child{
  grid-row: 1 / span 4;
}



/* Navigation */
#main-nav{
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 2;
}

#main-nav .container{
  display: grid;
  grid-template-columns: 6fr 3fr 2fr;
  padding: 1rem;
  align-items: center;
}

#main-nav .logo{
  width: 300px;
}

#main-nav ul{
  justify-self: end;
  display:flex;

}

#main-nav ul li a{
  padding: 0.75rem;
  font-weight: bold;
}

#main-nav ul li a.current{
  background: var(--primary-color);
  color: #fff;
}

#main-nav ul li a:hover{
  background: var(--light-color);
  color: var(--dark-color);
}

#main-nav .social{
  justify-self: center;

}

#main-nav .social i{
  color:#777;
  margin-right: .5rem;
}

/* Showcase */
#showcase{
  color: #fff;
  background: #333;
  padding: 2rem;
  position: relative;
}

#showcase:before{
  content: '';
  background: url(../img/berba.jpg) no-repeat center center/cover;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.4;

}
#showcase .showcase-container{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  justify-content: center;
  align-items: center;
  height: 50vh;
}

#showcase .showcase-content{
  z-index: 1;
}

#showcase .showcase-content p{
  margin-bottom: 1rem;
}

/* Aktuelnosti pocetni ekran */

#home-articles .articles-container{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 1rem;
}

#home-articles .articles-container > *:first-child
#home-articles .articles-container > *:last-child{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 1rem;
  align-items: center;
  grid-column: 1 / span 2;
}

.meta{
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #eee;
  padding: 0.5rem;
  margin-bottom: 0.5em;
}
.meta .category{
  margin-top: 0.5rem;
}

/* Footer */
#main-footer{
  background: var(--dark-color);
  color: #fff;
}
#main-footer img{
  width: 250px;
  
}
#main-footer a{
  color: #fff;
}

#main-footer .footer-container{
  display: grid;
  grid-template-columns:repeat(3, 1fr) ;
  grid-gap: 1.5rem;
}
#main-footer .footer-container > *:last-child{
  background: #444;
  grid-column: 1 / span 3;
  padding: .5rem;
  text-align: center;
  font-size: 0.75rem;
}
#main-footer .footer-container input[type='email']{
  width: 90%;
  padding: 0.5rem;
  margin-bottom: 0.5rem;
}
#main-footer .footer-container input[type='submit']{
  width: 90%;
}

/* paginaicija */
.pagination {
  /* display: inline-block !important; */
  /* padding: 10px ; */
  display: flex;
  justify-content: center;
  align-items: center;
  height: 40px;
  border: 1px solid rgb(148, 151, 148);
}
.pagination a {
  
  font-size: 15px;
  color: black;
  float: left;
  padding: 8px 16px;
  text-decoration: none;
  transition: background-color .3s;
}
.pagination a.active {
  background-color: #d32721;
  color: white;

}
.pagination a:hover:not(.active) {background-color: #ddd;}

/* Galerija slika */
/* The grid: Four equal columns that floats next to each other */
.column {
  float:right;
  width: 20%;
  padding: 5px;
}

/* Style the images inside the grid */
.column img {
  opacity: 0.8;
  cursor: pointer;
}

.column img:hover {
  opacity: 1;
}

/* Clear floats after the columns */
.row:after {
  content: "";
  display: table;
  clear: both;
}

/* The expanding image container (positioning is needed to position the close button and the text) */
.container_galerija {
  position: relative;
  display: none;
}

/* Expanding image text */
#imgtext {
  position: absolute;
  bottom: 15px;
  left: 15px;
  color: white;
  font-size: 20px;
}

/* Closable button inside the image */
.closebtn {
  position: absolute;
  top: 10px;
  right: 15px;
  color: white;
  font-size: 35px;
  cursor: pointer;
}