@charset "utf-8";

/* =========================================
   OPIS CSS
========================================= */
.backHome {
  background-color: var(--accent);
  color: #fff;
  display: inline-block;
  padding: 5px 15px 5px 40px;
  text-align: left;
  border-radius: 8px;
  box-shadow: var(--shadow-elevation-medium);
  text-decoration: none;
  flex: 1 1 auto;
  background-image: url(../images/icons/home.svg);
  background-repeat: no-repeat;
  background-position: center left 10px;
  background-size: 24px 24px;
  transition:
    background-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
  text-shadow: 0.5px 0.5px 2px hsla(0, 0%, 0%, 0.5);
}

.backHome:hover {
  background-color: color-mix(in srgb, var(--accent) 80%, black);
  box-shadow: var(--shadow-elevation-low);
  transform: translateY(2px);
}

.ioi h2 {
  border-top: 1px solid var(--bgPageDark);
  padding-top: 10px;
  font-size: 1.8rem;
}

.ioi h3 {
  font-size: 1.4rem;
}

.ioi li {
  padding: 0.1rem 0;
}

.ioi a {
  background-color: var(--accent);
  color: #fff;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  font-style: normal;
  display: inline-block;
  padding: 10px 20px;
  text-align: center;
  border-radius: 8px;
  box-shadow: var(--shadow-elevation-medium);
  text-decoration: none;
  flex: 1 1 auto;
  transition:
    background-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
  text-shadow: 0.5px 0.5px 2px hsla(0, 0%, 0%, 0.5);
}

.ioi a:hover {
  background-color: color-mix(in srgb, var(--accent) 80%, black);
  box-shadow: var(--shadow-elevation-low);
  transform: translateY(2px);
}

.ioi-row {
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
  margin: 20px 0;
}

.ioi-col {
  flex: 1;
  min-width: 300px;
}

.ioi-col p {
  margin: 0 0 10px;
}

.isteklo {
  background: white;
  box-shadow: var(--shadow-elevation-high);
  padding: 15px 20px;
  border-radius: 6px;
  margin-bottom: 25px;
  color: #856404;
}
.isteklo p {
  margin-bottom: 0px;
  text-align: center;
}

/* =========================================
   OPIS Proširi
========================================= */

#opis {
  max-height: 600px;
  overflow: hidden;
  position: relative;
  transition: max-height 0.6s ease;
}

#opis::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px; /* visina fade-a */
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    var(--bgPage) 100%
  );
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#opis.noFade::after {
  display: none;
}

#opis.expanded::after {
  opacity: 0; /* nestane fade */
}

#opis.expanded {
  max-height: none; /* otvori sve */
}

.opisMoreBtn {
  margin-top: 20px;
  /* background-color: var(--accent); */
  padding: 12px 0px 20px 12px;
  text-align: center;
  border-radius: 8px;
  cursor: pointer;
  font-family: "Barlow Condensed", sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.opisMoreBtn .icon {
  width: 20px;
  height: 20px;
  opacity: 0.8;
  transform: translateY(2px);
  background-color: var(--bgPageDark3);
  border-radius: 4px;
}

@media only screen and (max-width: 1080px) {
}

@media only screen and (max-width: 780px) {
  .ioi-row {
    gap: 0px;
  }
}

@media only screen and (max-width: 320px) {
}
