:root {
  --primary-color: #00518b;
}

main > .container {
  padding: var(--header-height) 0 20px;
}

.footer {
  background-color: #f5f5f5;
  font-size: 0.9em;
  height: 60px;
}

.footer > .container {
  padding-right: 15px;
  padding-left: 15px;
}

.not-set {
  color: #c55;
  font-style: italic;
}

/* Change default bootstrap row padding */
.row {
  margin-top: unset;
  margin-right: 0;
  margin-left: 0;
}

/* add sorting icons to gridview sort links */
a.asc:after,
a.desc:after {
  content: "";
  left: 3px;
  display: inline-block;
  width: 0;
  height: 0;
  border: solid 5px transparent;
  margin: 4px 4px 2px 4px;
  background: transparent;
}

a.asc:after {
  border-bottom: solid 7px #212529;
  border-top-width: 0;
}

a.desc:after {
  border-top: solid 7px #212529;
  border-bottom-width: 0;
}

.grid-view th {
  white-space: nowrap;
}

.hint-block {
  display: block;
  margin-top: 5px;
  color: #999;
}

.error-summary {
  color: #a94442;
  background: #fdf7f7;
  border-left: 3px solid #eed3d7;
  padding: 10px 20px;
  margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
  padding-top: 7px;
}
li.nav-item {
  display: flex;
  align-items: center;
}

@media (max-width: 767px) {
  .nav li > form > button.logout {
    display: block;
    text-align: left;
    width: 100%;
    padding: 10px 0;
  }
}

.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
  text-decoration: none;
}

.nav > li > form > button.logout:focus {
  outline: none;
}

.form-group {
  margin-bottom: 1rem;
}
/* custom css */

/* Homepage */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
}
.hero.hero-about {
  min-height: 350px;
}
.hero.hero-about::after {
  background-image: url('/uploads/images/foraje-apa-puturi-prahova.webp');
  background-size: cover;
  background-position: center;
}
.hero.hero-about::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #0006;
  z-index: 3;
}
.hero .text_container {
  position: relative;
  z-index: 3;
}

.hero video {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  max-width: unset;
  object-fit: cover;
  padding: 0;
  height: 100%;
}
.hero::after {
  background: #0005;
  z-index: 2;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
}
@media ((min-width: 576px)) {
  .hero::after,
  .hero video,
  .hero.hero-about::before {
    width: 100vw;
    left: calc((540px - 100vw) / 2);
  }
}
@media ((min-width: 768px)) {
  .hero::after,
  .hero video,
  .hero.hero-about::before {
    width: 100vw;
    left: calc((720px - 100vw) / 2);
  }
}
@media ((min-width: 992px)) {
  .hero::after,
  .hero video,
  .hero.hero-about::before {
    width: 100vw;
    left: calc((960px - 100vw) / 2);
  }
}
@media ((min-width: 1200px)) {
  .hero::after,
  .hero video,
  .hero.hero-about::before {
    width: 100vw;
    left: calc((1140px - 100vw) / 2);
  }
}
@media ((min-width: 1400px)) {
  .hero::after,
  .hero video,
  .hero.hero-about::before {
    width: 100vw;
    left: calc((1320px - 100vw) / 2);
  }
}

/* Header */
div#w0-collapse {
  justify-content: end;
}
a.navbar-brand img {
  width: 250px;
  height: auto;
}
.navbar-nav .nav-link.active, .navbar-nav .nav-link.show {
  color: var(--primary-color);
  font-weight: 600;
}

/* .call-now-link {
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 5px;
} */

/* hp service section */

.row_services {
  row-gap: 30px;
}
.subservice_card {
  background: #f8f8f8;
  border-radius: 15px;
  padding: 15px;
  border: 1px solid #00518b36;
  height: 100%;
}
.subservice_card .title {
  color: var(--primary-color);
  padding-bottom: 10px;
  border-bottom: 0.5px solid #0002;
  margin-bottom: 15px;
}
.service_card {
  background: #ffffff;
  padding: 15px;
  height: 100%;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  border: 0.5px solid #0002;
}
.service_card_description {
  flex-grow: 1;
}

.service_card_image {
  position: relative;
  padding-top: 65%;
  overflow: hidden;
  border-radius: 15px;
  margin-bottom: 15px;
}

.service_card_image img {
  position: absolute;
  inset: 0;
  width: 100%;
  object-fit: cover;
  object-position: center;
}

/* Buttons */
.btn {
  border-radius: 9999px;
}
.btn-primary {
  background: var(--primary-color);
  border: 1px solid var(--primary-color);
  padding: 10px 20px !important;
  color: #fff;
}
.btn-primary:hover {
  color: #fff;
  background-color: #09436d;
  border-color: #09436d;
}

.btn-secondary {
  padding: 10px 20px;
  background: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
}
.btn-secondary:hover {
  background: #fff;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.cta_container {
  border-top: 1px solid #0003;
  padding-top: 15px;
}
/* Gallery */
.galery_item {
  height: 100%;
  overflow: hidden;
}
.galery_item img {
  height: 100%;
  object-fit: cover;
}

.gallery_item {
  position: relative;
  padding-top: 100%;
  overflow: hidden;
}

.gallery_item img, .gallery_item video {
  position: absolute;
  top: 0;
  object-fit: cover;
  height: 100%;
  width: 100%;
  object-position: bottom;
}

span.description_media {
  position: relative;
  background: #fff;
  padding: 5px 10px;
  color: var(--primary-color);
  text-decoration: unset;
  font-weight: 500;
}

/* video */
span.play_video {
  position: absolute;
  margin: auto;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

span.play_video svg {
  width: 50px;
  height: 50px;
  fill: #fff;
  transform: translateY(-10px);
}

/* Footer */
.legal-content {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.legal-content a {
  width: 100%;
  max-width: 150px;
}

.legal-content a img {
  width: 100%;
}