.header {
  position: relative;
  width: 100%;
  height: 6rem;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 1rem;
  padding-right: 1rem;
  gap: 1.25rem;
}

.header>div {
  width: 50%;
}

.logo {
  width: 14.313rem;
}

.slider {
  position: relative;
  width: 100%;
  height: 34.813rem;
  background: url(./img/header.jpg) no-repeat;
  background-size: cover;
}

.slider::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(32, 80, 130, 0.44);
}

.slider::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, transparent 0%, rgb(32, 79, 130, 0.5) 50%, rgb(32, 80, 130) 95%);
}

.slider-list__wrapper {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  top: 50%;
  padding-left: 5rem;
  transform: translate(0, -50%);
  z-index: 1;
}

.slider-list {
  position: relative;
  width: 100%;
  padding-right: 2rem;
}

.slider-list::before {
  content: "";
  position: absolute;
  left: -2.375rem;
  top: 50%;
  height: 14rem;
  width: 1px;
  background: linear-gradient(0deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 30%, rgba(255, 255, 255, 1) 70%, rgba(255, 255, 255, 0) 100%);
  transform: translateY(-50%);
}

.slider-list__label {
  background-color: #D3E9FB;
  border-radius: 5px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  color: #2490EB;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.slider-list__highlight {
  color: #2590EB;
}

.slider-list__item {
  position: relative;
  font-size: 1.25rem;
  line-height: 1.375rem;
  margin-bottom: 1.5rem;
  color: #fff;
  font-weight: 500;
  opacity: 0.8;
  transition: all 0.5s ease-in-out;
}

.slider-list__item--active {
  opacity: 1;
}

.slider-list__item::before {
  content: "";
  position: absolute;
  left: -2.625rem;
  top: 50%;
  width: 0.563rem;
  height: 0.563rem;
  background-color: #fff;
  border: 0px solid #fff;
  border-radius: 50%;
  transform: translateY(-50%);
  transition: all 0.3s ease-in-out;
}

.slider-list__item--active::before {
  content: "";
  position: absolute;
  left: -3rem;
  width: 1.25rem;
  height: 1.25rem;
  background-color: #205082;
  border: 3px solid #fff;
}

.slider-list__item:last-child {
  margin-bottom: 0;
}

.contact-info__icon {
  border-right: 1px solid #13467B;
}

.patient-info__icon {
  border-right: 1px solid #fff;
}

.patient-info__icon i {
  font-size: 2.625rem;
}

.contact-info__icon,
.contact-info__description,
.patient-info__icon,
.patient-info__description {
  padding: 0.25rem;
  line-height: 1.375rem;
}

.contact-info__description span {
  text-transform: uppercase;
  font-size: 0.625rem;
  line-height: 0.688rem;
  color: #13467B;
  font-weight: bold;
}

.contact-info__description a {
  font-size: 1.125rem;
  color: #13467B;
  font-weight: bold;
}

.patient-info__icon,
.patient-info__description {
  color: #fff;
}

.office-hours {
  position: relative;
  overflow: hidden;
  margin-bottom: 5rem;
}

.office-hours::after {
  content: "";
  position: absolute;
  right: 10%;
  bottom: 0;
  width: 18.75rem;
  height: 18.75rem;
  background: url(./img/logo-art.svg);
}

.office-hours-info__icon {
  border-right: 1px solid #707070;
}

.office-hours-info__icon,
.office-hours-info__description {
  padding: 1rem;
}

.office-hours-info__description {
  color: #707070;
}

.office-hours h2 {
  font-size: 1.125rem;
  color: #13467B;
  font-weight: bold;
  margin: 3rem 0 1.5rem;
}

.office-hours-table thead {
  position: relative;
}

.office-hours-table--web thead::before {
  content: "";
  position: absolute;
  /* top: tu kvoli safari nemoze byt */
  left: 50%;
  width: 125%;
  height: var(--thead-height);
  transform: translateX(-50%);
  background: linear-gradient(to right, transparent 0%, #205082 10%, #205082 90%, transparent 100%);
  z-index: -1;
}

/* safari fix */
.office-hours.safari .office-hours-table--web thead::before {
  width: 90%;
}

.office-hours-table thead th {
  padding: 1.25rem 3.125rem;
  color: #fff;
}

.office-hours-table--mobile thead th:first-child {
  padding: 0;
}

.office-hours-table tbody td:first-child {
  color: #205082;
}

.office-hours-table tbody td:not(:first-child) {
  text-align: center;
  padding: 1.25rem 3.125rem;
  color: #707070;
}

.office-hours-table tr:not(:last-child) {
  border-bottom: 1px solid rgba(182, 197, 214, 0.4);
}

.office-hours-table--mobile table {
  width: 90%;
  margin: 0 auto;
}

.office-hours-table--mobile thead::before {
  content: "";
  position: absolute;
  /* top: tu kvoli safari nemoze byt */
  left: 50%;
  width: 100%;
  height: 64px;
  transform: translateX(-50%);
  background: linear-gradient(to right, transparent 0%, #205082 20%, #205082 80%, transparent 100%);
  z-index: -1;
}

/* Použitie CSS premenných pre mobilnú verziu */
.office-hours-table--mobile>table:nth-child(1) thead::before {
  height: var(--custom-property-1);
  /* Použitie prvej CSS premennej */
}

.office-hours-table--mobile>table:nth-child(2) thead::before {
  height: var(--custom-property-2);
  /* Použitie druhej CSS premennej */
}

.office-hours-table--mobile>table:nth-child(3) thead::before {
  height: var(--custom-property-3);
  /* Použitie tretej CSS premennej */
}

.office-hours-table--mobile table:not(:last-child) {
  margin-bottom: 3rem;
}

.services {
  position: relative;
  width: 100%;
  background: #14457B;
  color: #fff;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.services h2 {
  font-size: 1.75rem;
  font-weight: bold;
  margin-top: 0.75rem;
  margin-bottom: 2.375rem;
}

.services ul {
  list-style: none;
}

.services .custom-list li {
  position: relative;
  margin-bottom: 0.25rem;
}

.services .custom-list li::before {
  content: "\e5ca";
  /* Unicode pre konkrétnu ikonu, napr. check_circle */
  font-family: 'Material Symbols Outlined';
  position: absolute;
  display: inline-block;
  width: 1em;
  left: -1.5rem;
  /* veľkosť ikony */
  margin-right: 5px;
  color: #2490EB;
  font-variation-settings:
    'FILL' 0,
    'wght' 600,
    'GRAD' 0,
    'opsz' 20;
  /* prispôsobte podľa potreby */
}

/* Image Gallery Slider */
.swiper__wrapper {
  position: relative;
  height: 20rem;
  margin-top: 4.5rem;
}

.swiper__wrapper .swiper {
  width: 100%;
  height: 100%;
}

.swiper__wrapper .swiper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.footer {
  position: relative;
  display: flex;
  flex-direction: column;
  margin-top: 1rem;
  min-height: 26rem;
  background: #14457B;
}

.footer-content {
  position: relative;
  height: 100%;
  display: flex;
  flex-grow: 1;
  overflow: hidden;
}

.footer-content::after {
  content: "";
  position: absolute;
  left: 10%;
  bottom: -4rem;
  width: 18.75rem;
  height: 18.75rem;
  background: url(./img/logo-art.svg);
  filter: brightness(3);
  z-index: 0;
}

.footer-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: column;
  width: 100%;
  top: 0.25rem;
  border-radius: 0;
  background: #2490EB;
  margin: 0 auto;
}

.insurance-info {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: #fff;
  padding: 20px 0;
}

.patient-info {
  margin: 20px;
}

.insurance-info__logo {
  height: 3.5rem;
  background: #fff;
  padding: 0.75rem 1.25rem;
  margin-left: 0.75rem;
  border-radius: 15rem;
}

.insurance-info__logo:first-child {
  margin-left: 0;
}

.copyright {
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.5);
}

.swiper__wrapper .swiper-pagination {
  position: absolute;
  bottom: -2.75rem;
}

.ambulance {
  gap: 1.563rem;
  display: flex;
  justify-content: center;
}

.ambulance-card {
  width: 100%;
  background: #fff;
  border: 1px solid rgb(19 70 123 / 30%);
  border-radius: 8px;
  z-index: 2;
}

.ambulance-card__title {
  font-size: 1.125rem;
  color: #13467B;
  font-weight: 700;
  border-bottom: 1px solid rgb(19 70 123 / 30%);
  padding: 0.5rem 1.875rem;
}

.ambulance-card__data {
  padding: 0.75rem 2rem;
  color: #13467B;
}

.child-container {
  width: 100%;
}

.footer-content__row {
  flex: 1;
}

.footer-content__col {
  color: #fff;
}

.cta-new-patients {
  position: absolute;
  z-index: 10;
  width: 240px;
  left: 0;
  top: -150px;
}

.footer-content__col {
  position: relative;
  z-index: 2;
}

.footer-content__col h3 {
  font-weight: bold;
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.footer-content__col p {
  color: rgba(255, 255, 255, 0.9);
}

.footer-content__col p a {
  position: relative;
  color: #fff;
  font-weight: bold;
}

.footer-content__col p a::after {
  content: "";
  width: 100%;
  height: 0.063rem;
  background-color: #fff;
  position: absolute;
  bottom: -0.063rem;
  left: 0;
}

/* Tablet */
@media (min-width: 640px) {
  .header {
    padding-left: 4rem;
    padding-right: 4rem;
  }
}

/* Web */
@media (min-width: 768px) {
  .header {
    padding-left: 10rem;
    padding-right: 10rem;
  }

  .header>div {
    width: auto;
  }

  .contact-info__description a {
    font-size: 1.5rem;
  }

  .contact-info__icon,
  .contact-info__description,
  .patient-info__icon,
  .patient-info__description {
    padding: 1rem;
    line-height: 1.375rem;
  }

  .contact-info__description span {
    line-height: 1.375rem;
  }

  .services {
    background: linear-gradient(90deg, #14457B 60%, #F2295B00 60%);
  }

  .slider-list__wrapper {
    right: 10rem;
  }

  .ambulance-card {
    width: 31rem;
    margin-top: -2.75rem;
  }

  .footer-panel {
    position: absolute;
    width: 70%;
    flex-direction: row;
    top: -3.438rem;
    left: 50%;
    border-radius: 0.5rem;
    height: 6.875rem;
    padding: 1.25rem;
    transform: translateX(-50%);
    display: flex;
    flex-wrap: nowrap;
  }

  .patient-info {
    flex: 0;
    margin: 0;
  }

  .insurance-info {
    flex: 1;
    width: auto;
    flex-direction: row;
    background: transparent;
    padding: 0;
  }

  .slider-list {
    width: 30.625rem;
  }

  .slider-list__wrapper {
    position: absolute;
    width: auto;
    right: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .slider-list__item--active {
    font-size: 1.375rem;
  }

  .footer-content {
    position: relative;
    padding-top: calc(3.438rem + 2.5rem);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
  }

  .footer {
    margin-top: 10rem;
  }

  .child-container {
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .insurance-info__logo {
    flex: 1 0 auto;
    max-width: calc(100% / 3);
  }

  .swiper__wrapper {
    width: 46.688rem;
    height: 50rem;
    margin-top: 0;
  }

  .services h2 {
    margin-bottom: 4.375rem;
  }
}