:root {
  --color-red: rgba(128, 23, 26, 1);
  --color-white: rgba(255, 255, 255);
}

body {
  margin: 0;
  padding: 0;
  font-family: Work sans, sans-serif;
  overflow-x: hidden;
}

/* width */
::-webkit-scrollbar {
  width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
  background: #fff;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: var(--color-red);
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #570000;
}

h1 {
  font-size: 25px;
}

a {
  color: var(--color-red);
  text-decoration: none;
}

a:hover {
  text-decoration: none;
  color: var(--color-red);
}

hr {
  border: none;
  height: 2px;
  background-color: var(--color-red);
  margin: 100px 0;
}

.button-1 {
  appearance: none;
  background-color: #FFFFFF;
  border: 1px solid var(--color-red);
  box-sizing: border-box;
  color: var(--color-red);
  cursor: pointer;
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1em;
  margin: 0;
  opacity: 1;
  outline: 0;
  padding: 15px;
  position: relative;
  text-align: center;
  text-decoration: none;
  text-rendering: geometricprecision;
  text-transform: uppercase;
  transition: opacity 300ms cubic-bezier(.694, 0, 0.335, 1), background-color 100ms cubic-bezier(.694, 0, 0.335, 1), color 100ms cubic-bezier(.694, 0, 0.335, 1);
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  vertical-align: baseline;
  white-space: nowrap;
}

.button-1:before {
  animation: opacityFallbackOut .5s step-end forwards;
  backface-visibility: hidden;
  background-color: var(--color-red);
  color: #fff;
  clip-path: polygon(-1% 0, 0 0, -25% 100%, -1% 100%);
  content: "";
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  transform: translateZ(0);
  transition: clip-path .5s cubic-bezier(.165, 0.84, 0.44, 1), -webkit-clip-path .5s cubic-bezier(.165, 0.84, 0.44, 1);
  width: 100%;
}

.button-1:hover:before {
  animation: opacityFallbackIn 0s step-start forwards;
  clip-path: polygon(0 0, 101% 0, 101% 101%, 0 101%);
}

.button-1:after {
  background-color: #FFFFFF;
}

.button-1:hover {
  color: #fff;
  transition: color 100ms cubic-bezier(.694, 0, 0.335, 1);
}

.button-1 span {
  z-index: 1;
  position: relative;
}

.button-2 {
  appearance: none;
  background-color: var(--color-red);
  border: 1px solid var(--color-red);
  box-sizing: border-box;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1em;
  margin: 0;
  opacity: 1;
  outline: 0;
  padding: 15px;
  position: relative;
  text-align: center;
  text-decoration: none;
  text-rendering: geometricprecision;
  text-transform: uppercase;
  transition: opacity 300ms cubic-bezier(.694, 0, 0.335, 1), background-color 100ms cubic-bezier(.694, 0, 0.335, 1), color 100ms cubic-bezier(.694, 0, 0.335, 1);
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  vertical-align: baseline;
  white-space: nowrap;
}

.button-2:before {
  animation: opacityFallbackOut .5s step-end forwards;
  backface-visibility: hidden;
  background-color: #fff;
  color: #fff;
  clip-path: polygon(-1% 0, 0 0, -25% 100%, -1% 100%);
  content: "";
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  transform: translateZ(0);
  transition: clip-path .5s cubic-bezier(.165, 0.84, 0.44, 1), -webkit-clip-path .5s cubic-bezier(.165, 0.84, 0.44, 1);
  width: 100%;
}

.button-2:hover:before {
  animation: opacityFallbackIn 0s step-start forwards;
  clip-path: polygon(0 0, 101% 0, 101% 101%, 0 101%);
}

.button-2:after {
  background-color: #FFFFFF;
}

.button-2:hover {
  color: var(--color-red);
  transition: color 100ms cubic-bezier(.694, 0, 0.335, 1);
}

.button-2 span {
  z-index: 1;
  position: relative;
}

header {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  background-color: var(--color-white);
  transition: background-color 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
}

.logo {
  display: flex;
  margin-left: 30px;
  transition: opacity 0.5s ease;
}

.hide {
  opacity: 0;

}

.show {
  opacity: 1;

}

.logo-img {
  width: 3vw;
  transition: opacity 0.5s ease;
}

@media (max-width: 765px) {
  .logo-img {
    width: 15vw;
    margin-top: 8px;
  }
}

/* Kad se scrolla, svi linkovi postaju bijeli */
header.scrolled .navbar a {
  color: var(--color-red) !important;
}

/* Hover i underline efekti */
header.scrolled .navbar a::before {
  background-color: var(--color-red) !important;
}

.navbar {
  padding: 0;
  margin-right: 30px;
}

.navbar ul {
  margin: 0;
  padding: 0;
  display: flex;
  list-style: none;
  align-items: center;
}

.navbar li {
  position: relative;
  text-transform: uppercase;
}

.navbar>ul>li {
  white-space: nowrap;
  padding: 10px 0 10px 15px;
}

.navbar a,
.navbar a:focus {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-red);
  white-space: nowrap;
  transition: 0.3s;
  position: relative;
}

.navbar a i,
.navbar a:focus i {
  font-size: 12px;
  line-height: 0;
  margin-left: 5px;
}

.navbar>ul>li>a:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: -6px;
  left: 0;
  background-color: var(--color-red);
  visibility: hidden;
  width: 0px;
  transition: all 0.3s ease-in-out 0s;
} 

.navbar a:hover:before,
.navbar li:hover>a:before,
.navbar .active:before {
  visibility: visible;
  width: 100%;
}

.navbar a:hover,
.navbar .active,
.navbar .active:focus,
.navbar li:hover>a {
  color: var(--color-red);
}

.navbar .dropdown ul {
  display: block;
  position: absolute;
  left: 28px;
  top: calc(100% + 30px);
  margin: 0;
  padding: 10px 0;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  background: #fff;
  box-shadow: 0px 0px 30px rgba(127, 137, 161, 0.25);
  transition: 0.3s;
}

.navbar .dropdown ul li {
  min-width: 200px;
}

.navbar .dropdown ul a {
  padding: 10px 20px;
  font-weight: 400;
}

.navbar .dropdown ul a i {
  font-size: 12px;
}

.navbar .dropdown ul a:hover,
.navbar .dropdown ul .active:hover,
.navbar .dropdown ul li:hover>a {
  color: var(--color-red);
}

.navbar .dropdown:hover>ul {
  opacity: 1;
  top: 100%;
  visibility: visible;
}

.navbar .dropdown .dropdown ul {
  top: 0;
  left: calc(100% - 30px);
  visibility: hidden;
}

.navbar .dropdown .dropdown:hover>ul {
  opacity: 1;
  top: 0;
  left: 100%;
  visibility: visible;
}

@media (max-width: 1366px) {
  .navbar .dropdown .dropdown ul {
    left: -90%;
  }

  .navbar .dropdown .dropdown:hover>ul {
    left: -100%;
  }
}

/**
  * Mobile Navigation 
  */
.mobile-nav-toggle {
  color: var(--color-red);
  font-size: 28px;
  cursor: pointer;
  display: none;
  line-height: 0;
  transition: 0.5s;
}

header.scrolled .mobile-nav-toggle {
  color: var(--color-red);
}


.mobile-nav-toggle.bi-x {
  color: #fff;
}

@media (max-width: 991px) {
  .mobile-nav-toggle {
    display: block;
  }

  .navbar ul {
    display: none;
  }
}

.navbar-mobile {
  position: fixed;
  overflow: hidden;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background: rgba(9, 9, 9, 0.9);
  transition: 0.5s;
  z-index: 999;
  width: 100%;
}

.navbar-mobile .mobile-nav-toggle {
  position: absolute;
  top: 15px;
  right: 15px;
}

.navbar-mobile ul {
  display: block;
  position: absolute;
  top: 55px;
  right: 15px;
  bottom: 15px;
  left: 15px;
  padding: 10px 0;
  background-color: #fff;
  overflow-y: auto;
  transition: 0.3s;
}

.navbar-mobile a,
.navbar-mobile a:focus {
  padding: 10px 20px;
  font-size: 15px;
  color: #222222 !important;
}

.navbar-mobile>ul>li {
  padding: 0;
}

.navbar-mobile a:hover:before,
.navbar-mobile li:hover>a:before,
.navbar-mobile .active:before {
  visibility: hidden;
}

.navbar-mobile a:hover,
.navbar-mobile .active,
.navbar-mobile li:hover>a {
  color: var(--color-white);
}

.navbar-mobile .getstarted,
.navbar-mobile .getstarted:focus {
  margin: 15px;
}

.navbar-mobile .dropdown ul {
  position: static;
  display: none;
  margin: 10px 20px;
  padding: 10px 0;
  z-index: 99;
  opacity: 1;
  visibility: visible;
  background: #fff;
  box-shadow: 0px 0px 30px rgba(127, 137, 161, 0.25);
}

.navbar-mobile .dropdown ul li {
  min-width: 200px;
}

.navbar-mobile .dropdown ul a {
  padding: 10px 20px;
}

.navbar-mobile .dropdown ul a i {
  font-size: 12px;
}

.navbar-mobile .dropdown ul a:hover,
.navbar-mobile .dropdown ul .active:hover,
.navbar-mobile .dropdown ul li:hover>a {
  color: #106eea;
}

.navbar-mobile .dropdown>.dropdown-active {
  display: block;
}

.hero {
  display: flex;
  flex-direction: column;
  background: url(../img/hero-bg.jpg);
  background-size: cover;
  height: 100vh;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  background: var(--color-red);
}

.logo-title {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  padding-top: 20vh;
}

.logo-title-svg {
  width: 30vw;
}

.title {
  position: absolute;
  bottom: 3rem;
  right: 2rem;
  color: var(--color-red);
  text-align: right;
}

@media (max-width: 767px) {
  .title {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    text-align: center;
    color: var(--color-white);
  }
}

.title h3 {
  text-transform: uppercase;
  font-weight: bold;
}

.title p {
  text-align: center;
}

.title-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin-top: 120px;
  color: var(--color-white);
  text-transform: uppercase;
}

.title-inner h3 {
  font-size: 1.8vw;
}

.inner-title-svg {
  display: flex;
  justify-content: center;
  align-self: center;
  margin-top: 4vh;
  margin-bottom: 8vh;
  width: 6vw;
}

.subtitle {
  display: flex;
  text-transform: uppercase;
  justify-content: left;
  padding-bottom: 30px;
}

.subtitle h1 {
  font-weight: 600;
  color: var(--color-red);
}

.about-us {
  margin-top: 100px;
  margin-bottom: 100px;
  justify-content: center;
}

.podrucja-rada {
  margin-top: 50px;
}

.col-lg-4 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10vh;
}

.row.no-gutters {
  margin-right: 0;
  margin-left: 0;
}

.row.no-gutters > [class^="col-"] {
  padding-right: 10px;
  padding-left: 0;
}


.kartica {
  height: 100%;
  display: flex;
  flex-direction: column;
  margin-top: 10px;
  padding: 20px 10px;
  border: 1px solid var(--color-red);
  transition: box-shadow 0.3s ease;
}

.col-md-4 {
  display: flex;
  flex-direction: column;
}

.kartica h2 {
  font-size: 19px;
}

.kartica i {
  color: var(--color-red);
}

.kartica:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  /* Dodajemo box shadow samo prilikom hovera */
}

.opis {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.4s ease;
  /* Dodajemo prijelaz za glatko pojavljivanje i nestajanje */
}

.kartica:hover .opis {
  max-height: 100px;
  /* Promijenite visinu na željenu vrijednost */
  opacity: 1;
}


.odvjetnici {
  align-items: center;
  justify-content: center;
  background: rgba(127, 137, 161, 0.25);
  padding-top: 30px;
  padding-bottom: 30px;
  margin-top: 20px;
  margin-bottom: 20px;
}

.odvjetnici-1 {
  align-items: center;
  justify-content: center;
  background: rgba(127, 137, 161, 0.25);
  padding-top: 30px;
  padding-bottom: 30px;
}

.team {
  margin: 0 auto;
  margin-top: 50px;
  display: flex;
}

.team-card {
  align-items: center;
}

.team-image {
  width: 170px;
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.team-image img {
  justify-content: center;
  width: 100%;
  object-fit: cover;
}

.team-name {
  font-size: 1rem;
  text-align: left;
  margin-top: 5px;
}

.team-role {
  font-size: 0.9rem;
  color: #888;
  text-align: left;
}

.button-odvjetnici {
  display: flex;
  justify-content: center;
  margin-top: 30px;
  padding-bottom: 30px;
}

.contact {
  margin-bottom: 20px;
}

.contact-text {
  align-items: center;
  justify-content: center;
  margin-top: 50px;
  margin-left: 100px;
  gap: 100px;
}

.contact-text h2 {
  font-size: 25px;
}

.contact-text i {
  color: var(--color-red);
}

@media (max-width: 765px) {
  .contact-text {
    margin-top: 10px;
    margin-left: 10px;
  }

  .contact-text h2 {
    font-size: 5vw;
  }

  .contact-text p {
    font-size: 4vw;
  }
}

footer {
  bottom: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  padding-top: 15px;
  height: 3rem;
  background-color: var(--color-red);
  color: var(--color-white);
  z-index: 10;
}

footer span {
  color: var(--color-white);
  opacity: 60%;
}

@media (max-width: 765px) {
  footer p {
    font-size: 3vw;
  }
}


.about-us-logo {
  width: 8vw;
}

.o-nama {
  margin-top: 10rem;
  margin-left: 20rem;
  margin-right: 20rem;
  margin-bottom: 10rem;
}

.o-nama p {
  text-align: justify;
}

.content {
  max-width: 800px;
  display: flex;
  margin-top: 100px;
  margin-bottom: 100px;
}

.team-details-imgsec {
  flex: 1;
  padding: 20px;
  position: relative;
}

.rectangle {
  position: absolute;
  top: -1px;
  left: -1px;
  width: calc(60% + 20px);
  height: calc(85% + 20px);
  background-color: var(--color-red);
  z-index: -1;
}

.team-details-img {
  width: 18vw;
}

.team-details-tekst {
  flex: 1;
  padding: 20px;
}

.team-details-tekst h1 {
  color: var(--color-red);
  text-transform: uppercase;
  font-weight: 700;
  font-size: 30px;
}

.team-details-tekst h2 {
  color: #464646;
  font-size: 20px;
  font-weight: 550;
}

.team-info {
  display: flex;
  flex-direction: column;
}

.team-info p {
  margin-top: 10px;
}

.team-info-1 {
  display: flex;
  align-items: center;
}

.team-info-1 i {
  display: flex;
  color: var(--color-red);
  font-size: 20px;
  margin-right: 20px;
}

.team-info-1 p {
  margin-top: 13px;
}

.team-info li {
  display: flex;
  align-items: center;
}

.team-details p {
  font-size: 18px;
  padding-top: 13px;
}

.team-info i {
  display: flex;
  color: var(--color-red);
  font-size: 20px;
  margin-right: 20px;
}

.team-info-container {
  margin-top: 70px;
}

.kategorija {
  margin-bottom: 40px;
}

.rectangle-bg {
  width: 100%;
  height: 8vh;
  margin-bottom: 50px;
  background-color: var(--color-white);
}

.zgrada-img {
  width: 70%;
  margin-bottom: 8vh;
}

/* Responsive */

@media (max-width: 900px) {
  .aos-animate {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

@media (max-width: 990px) {
  .zgrada-img {
    margin-left: 8vw;
  }
}


@media (min-width: 751px) {
  .logo-title-svg {
    width: 20vw;
  }

  .title h3 {
    font-size: 1.5vw;
  }
}

@media (max-width: 750px) {
  h1 {
    font-size: 4.5vw;
  }

  .logo-title-svg {
    width: 50vw;
  }

  .title h3 {
    font-size: 4vw;
  }

  .custom-text-center {
    text-align: center !important;
  }

  .kartica {
    padding: 20px;
  }

  .o-nama {
    margin: 30px;
  }

  .title-inner h3 {
    font-size: 1.5rem;
  }

  .team-details-img {
    width: 70vw;
  }

  .kategorija h1 {
    font-size: 1.5rem;
  }

  .inner-title-svg {
    width: 25vw;
  }
}