:root {
  --hladun-background: #08013D;
  --hladun-company-text: #AAA;
  --hladun-logo-font: "ZapfCalligr BT";
    
  --color-secondary: var(--hladun-background);
  --color-secondary-rgb: 8, 1, 61;
  --bs-dropdown-divider-margin-y: 5px;
  --bs-dropdown-divider-bg: #999;
  
  --color-footer: #f7f9fc;
}
.header .logo h1 {
  font-family: var(--hladun-logo-font);
}
.header.sticked {
  background: rgba(8, 1, 61, 0.9);
}

/* header logo (container for images) */
.page-index .header .header-logo {
  display: none;
}
.page-index .header.sticked .header-logo {
  display: revert;
}
.header .header-logo {
  position: absolute;
  top: 0;
  bottom: auto;
  
  display: block;
  opacity: 0.6;
}
.header .header-logo {
  transform: translateX(-60px);
}
@media (min-width: 1280px) {
  .header.sticked .header-logo {
    transform: translateX(-78px);
  }
}
.header.sticked .header-logo {
  top: auto;
  bottom: 0;
  
  opacity: 1;
}

/* header logo images */
.header .header-logo img {
  position: absolute;
  top: 0;
  bottom: auto;
}
.header.sticked .header-logo img {
  top: auto;
  bottom: 0;
}
.header-logo img.hladun {
  left: 0;
  width: 185px;
  height: 45px;
}
.header-logo img.and {
  top: calc(78px - 90px);
  left: 185px;
  
  width: 39px;
  height: 60px;
}
.header.sticked .header-logo img.and {
  bottom: -8px; /* TODO */
}
.header-logo img.company {
  top: 16px;
  left: calc(185px + 5px);
  width: 174px;
  height: 30px;
}
@media (min-width: 992px) {
  .header-logo img.hladun {
    left: 0;
    width: 308px;
    height: 75px;
  }
  .header-logo img.and {
    top: calc(75px - 93px);
    left: 308px;
    width: 49px;
    height: 75px;
    
    width: 65px;
    height: 100px;
  }
  .header.sticked .header-logo img.and {
    bottom: -8px;
  }
  .header-logo img.company {
    top: 25px;
    left: calc(308px + 5px);
    width: 290px;
    height: 50px;
  }
}
.header.sticked .header-logo img.company {
  bottom: 0;
}
.header-logo img.barristers:not(.white) {
  display: none;
}
.header.sticked .header-logo img.barristers.white {
  display: block;
}
@media (max-width: 1279px) {
  .header.sticked .header-logo img.hladun {
    bottom: -1px;
    left: 0;
    
    width: 207px;
    height: 51px;
  }
  .header.sticked .header-logo img.and {
    bottom: -5px;
    left: 207px;
    
    width: 44px;
    height: 67px;
  }
  .header.sticked .header-logo img.company {
    bottom: 0;
    left: calc(207px + 3px);
    
    width: 195px;
    height: 34px;
  }
}

.logo span {
  font-size: smaller;
  color: var(--hladun-company-text);
}
.hero .btn-get-started:first-child, .hero .btn-watch-video:first-child {
  margin-left: 0;
}
@media (min-width: 992px) {
  .hero {
    /*background-image: url(/assets/img/jinmedia-legislature-fountain.jpg);*/
    /*background-image: linear-gradient(black, black), url(/assets/img/jinmedia-legislature-fountain.jpg);
    background-blend-mode: saturation;*/
    background-position-y: center;
  }
  .hero::before {
    background: rgba(255, 255, 255, 0.2);
    background: linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(255,255,255,1) 30%, rgba(0,0,0,0.6) 60%, rgba(0,0,0,0.6) 100%);
    background: linear-gradient(90deg, 
              rgba(255,255,255,1) 30%, 
              rgba(255,255,255,0.8) 45%,
              rgba(0,0,0,0.6) 60%);
  }
  .hero::after {
    position: absolute;
    content: "";
    width: 40%;
    background: var(--color-secondary);
    top: 0;
    bottom: 50%;
  }
  .hero .btn-get-started, .hero .btn-watch-video {
    margin-left: 25px;
  }
}

.hladun-hero {
  display: none;
}
.footer .footer-content .footer-info .logo img {
  max-height: 100px;
}
.page-index footer {
  border-top: 1px dotted rgba(var(--color-secondary-rgb), 0.25);
}

.page-index .call-to-action {
  width: 100%;
  background-size: cover;
  position: relative;
  padding: 120px 0;
  z-index: 3;
}
@media (min-width: 992px) {
  .page-index .call-to-action:after {
    position: absolute;
    content: "";
    width: 40%;
    background: var(--color-secondary);
    top: 0;
    bottom: 0;
  }
}

.page-index .call-to-action:before {
  position: absolute;
  content: "";
  background: rgba(27, 47, 69, 0.6);
  inset: 0;
}

@media (max-width: 992px) {
  .page-index .call-to-action:before {
    background: rgba(27, 47, 69, 0.7);
  }
}

.page-index .call-to-action .container {
  z-index: 1;
  position: relative;
}
.page-index .call-to-action h2 {
  margin: 0;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  font-family: var(--font-secondary);
}

.page-index .call-to-action blockquote {
  color: #fff;
  padding-left: 20px;
  font-size: 15px;
  font-family: var(--font-default);
  border-left: 2px solid var(--color-primary);
  /*margin: 40px 0;*/
}

.page-index .call-to-action .btn-get-started {
  font-family: var(--font-secondary);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  transition: 0.5s;
  color: #fff;
  background: var(--color-primary);
}

.page-index .call-to-action .btn-get-started:hover {
  background: rgba(86, 184, 230, 0.8);
}

@media (max-width: 640px) {
  .page-index .call-to-action h2 {
    font-size: 36px;
    line-height: 1;
  }
  
  .page-index .call-to-action .btn-get-started {
    font-size: 13px;
  }
}

.features .details h4 {
    font-size: 26px;
}
.features .details .btn {
  font-family: var(--font-primary);
  display: inline-block;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 1px;
  padding: 10px 32px;
  border-radius: 50px;
  transition: 0.5s;
  color: #fff;
  background-color: var(--cta-btn-color);
}
/*.features .details .btn:hover {
  background: var(--cta-btn-color);
}*/

.features .badge.primary-practices {
  background-color: var(--color-secondary);
  color: var(--color-footer);
}
.features .badge.other-practices {
  background-color: var(--color-footer);
  color: var(--color-secondary);
}
.services-list .service-item .title {
  color: #29486a;
}
.services-list .service-item .icon i {
  margin-right: .5rem;
}
.services-list .lawyers .active {
  --bs-border-color: var(--color-primary);
  --bs-border-width: .2rem;
  --bs-border-style: solid;
}
.services-list .lawyers .active img {
  outline: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color) !important;
  /*outline: .2rem solid;*/
}

.features .details .btn-practices {
  --cta-btn-color: var(--color-primary);
}
.features .details .btn-practices:hover {
  --cta-btn-color: #2aa5df;
}
.features .details .btn-lawyers {
  --cta-btn-color: var(--color-secondary);
}
.features .details .btn-lawyers:hover {
  --cta-btn-color: #160691;
}

.hladun-mobile {
  display: block;
  position: absolute;
  z-index: 0;
  left: 0;
  top: 25%;
  transform: translateX(-10%);
  width: 80%;
  height: 40%;
}
/* TODO: Combine with hladun-hero, these images use the same properties */
.hladun-mobile > img {
  position: absolute;
}
.hladun-mobile > img.logo-hladun {
  top: 1px;
  width: 100%;
  transform: translateY(-100%);
}
.hladun-mobile > img.logo-and {
  top: 0;
  right: 0;
  width: 20%;
  transform: translate(100%, -90%);
}
.hladun-mobile > img.logo-company {
  top: 0;
  width: 100%;
}
@media (min-width: 992px) {
  .hladun-mobile {
    display: none;
  }
  .hladun-hero {
    display: block;
    position: absolute;
    z-index: 1000;
    left: 40%;
    top: 50%;
    transform: translate(-100%, 0%);
    width: 40%;
    height: 40%;
  }
  .hladun-hero > img {
    position: absolute;
    /*transform: translate(142px, -17px);*/
  }
  .hladun-hero > img.logo-hladun {
    top: 1px;
    /*left: 1px;*/
    width: 100%;
    transform: translateY(-100%);
  }
  .hladun-hero > img.logo-and {
    top: 0;
    right: 0;
    width: 20%;
    transform: translate(100%, -90%);
  }
  .hladun-hero > img.logo-company {
    top: 0;
    width: 100%;
  }
}

#services-cards .card-title a,
#why-us .slides .item h3 a {
  color: var(--color-secondary);
  transition: 0.3s;
}
#services-cards .card-title a:hover,
#why-us .slides .item h3 a:hover {
  color: var(--color-primary);
}

.portfolio-details .portfolio-details-slider .swiper-pagination .swiper-pagination-bullet {
  border: 1px solid var(--color-secondary);
}
.portfolio-details .portfolio-details-slider .swiper-pagination .swiper-pagination-bullet-active {
  background-color: var(--color-secondary);
}

.team .team-member .member-info {
  padding: 0;
  padding-top: 1rem;
}
.team h6 a {
  color: var(--color-secondary);
  
  white-space: nowrap;
}
.team h6 a:hover {
  color: var(--color-primary);
}

.contact {
  background: none;
}

#map {
  height: 500px;
  padding: 0;
}

#map-hladun {
  cursor: default;
}

#map-hladun h1 {
  margin: 0;
  padding: 0;
}

/* The popup bubble styling. */
.popup-bubble {
  /* Position the bubble centred-above its parent. */
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(-50%, -100%);
  /* Style the bubble. */
  background-color: white;
  padding: 1rem;
  border-radius: 5px;
  font-family: sans-serif;
  overflow-y: auto;
  max-height: 100px;
  box-shadow: 0px 2px 10px 1px rgba(0, 0, 0, 0.5);
}

/* The parent of the bubble. A zero-height div at the top of the tip. */
.popup-bubble-anchor {
  /* Position the div a fixed distance above the tip. */
  position: absolute;
  width: 100%;
  bottom: 8px;
  left: 0;
}

/* This element draws the tip. */
.popup-bubble-anchor::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  /* Center the tip horizontally. */
  transform: translate(-50%, 0);
  /* The tip is a https://css-tricks.com/snippets/css/css-triangle/ */
  width: 0;
  height: 0;
  /* The tip is 8px high, and 12px wide. */
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid white;
}

/* JavaScript will position this div at the bottom of the popup tip. */
.popup-container {
  cursor: auto;
  height: 0;
  position: absolute;
  /* The max width of the info window. */
  width: 100%;
}