.arihva-kalendar {
	margin-bottom:200px;
}

#esf-calendar-wrapper {
    max-width: 400px;
    margin: 20px auto;
    font-family: Arial, sans-serif;
    border: 1px solid #ddd;
    padding: 30px;
    border-radius: 0px;
}

.esf-calendar-header {
    text-align: center;
    margin-bottom: 20px;
	display: flex;
    align-items: center;
    justify-content: center;
}

.esf-calendar-header button.nav {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
   
}

.esf-calendar-header .next {
	margin-left: 10px;
}

.esf-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0px;
    text-align: center;
}

.day-name {
    font-weight: bold;
    background: rgb(226, 30, 35);
    padding: 5px 0;
	background: #f0f0f0;
    font-weight: bold;
    text-transform: uppercase;
    padding: 20px 0;
    color: #444;
    font-size: 1rem;
}

.day {
    padding: 20px 0;
    border-radius: 0px;
	border-bottom: 1px solid #ccc;

}

.kalendar-na-arhivi .day,.kalendar-na-arhivi .day-name {
	padding: 15px 0;
}


.day:hover {cursor:pointer;
background:#ccc;}


.day.has-post {
    background-color: #e21e23;
    color: #fff;
    font-weight: bold;
}
.day.has-post:hover {
	background-color: #323c8c;
}

.day.empty {
    visibility: hidden;
}

.trenutni-mjesec {
	font-weight: 700;
    color: #0c264c;
    font-size: 20px;
    margin-bottom: 5px;
}

.esf-calendar-header .next {
	background:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" width="20" height="20" x="0" y="0" viewBox="0 0 492.004 492.004" style="enable-background:new 0 0 512 512" xml:space="preserve" class=""><g><path d="M382.678 226.804 163.73 7.86C158.666 2.792 151.906 0 144.698 0s-13.968 2.792-19.032 7.86l-16.124 16.12c-10.492 10.504-10.492 27.576 0 38.064L293.398 245.9l-184.06 184.06c-5.064 5.068-7.86 11.824-7.86 19.028 0 7.212 2.796 13.968 7.86 19.04l16.124 16.116c5.068 5.068 11.824 7.86 19.032 7.86s13.968-2.792 19.032-7.86L382.678 265c5.076-5.084 7.864-11.872 7.848-19.088.016-7.244-2.772-14.028-7.848-19.108z" fill="%23e21e23" opacity="1" data-original="%23000000" class=""></path></g></svg>')!important;
	background-repeat: no-repeat !important;
}
.esf-calendar-header .previus {
background:url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 512 512" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;"><g transform="matrix(-1,0,0,1,512,0)"><path d="M398.231,236.022L170.384,8.179C165.114,2.905 158.08,0 150.579,0C143.078,0 136.043,2.905 130.773,8.179L113.994,24.955C103.076,35.885 103.076,53.651 113.994,64.566L305.322,255.894L113.782,447.434C108.512,452.708 105.602,459.739 105.602,467.236C105.602,474.741 108.512,481.771 113.782,487.05L130.561,503.821C135.835,509.095 142.866,512 150.367,512C157.867,512 164.902,509.095 170.172,503.821L398.231,275.77C403.513,270.479 406.414,263.416 406.398,255.906C406.414,248.368 403.513,241.308 398.231,236.022Z" style="fill:rgb(225,30,35);fill-rule:nonzero;"></path></g></svg>')!important;
	background-repeat: no-repeat !important;
}


.esf-tooltip {
    background: #222;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    max-width: 250px;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    z-index: 9999;
    white-space: pre-line;
    position: absolute;
    pointer-events: none;
}

@media screen and (max-width: 767px) {
    .esf-tooltip {
        display: none !important;
    }
}
.day.has-post {
    position: relative;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hover-posts {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  color: black;
  border: 1px solid #ccc;
  padding: 25px;
  z-index: 999;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  font-size: 0.9em;
  opacity: 0;
  animation: fadeIn 0.3s ease forwards;

  /* New additions: */
  max-width: 400px;
  width: max-content;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.hover-posts ul {
    list-style: none!important;
    margin: 0!important;
    padding: 0!important;
	padding-left: 0px;
    margin-left: 0;
    margin-bottom: 0;
}

.hover-posts li {
	list-style: none;
    margin: 0;
    padding: 5px 0;
    line-height: 1;
    border-bottom: 1px solid #ccc;
	text-align:left;
}


.hover-posts ul li a {
	    font-size: 14px;
    line-height: 1;
}

.hover-posts ul li:last-child {
	border:none!important;
}

.day.selected {
    background-color: #323c8c;
    color: #fff;
    border-radius: 0%;
    font-weight: bold;
}


