*,
*::after,
*::before {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* -- SLIDES --  */
.slides {
  display: flex;
  justify-content: center;
}

.slides__container {
  height: 524px;
  width: 1007px;
  position: relative;
  line-height: initial;
}

/* each slide */
.elysium-slide {
  width: 100%;
  height: 100%;
  position: absolute;
  transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
  visibility: hidden;
  opacity: 0;
}

.slide-active {
  visibility: visible;
  opacity: 1;
}

/* -- BEDS INFO --  */
.beds-info-tabloid__container {
  width: 100%;
  position: relative;
  height: 88%;
  z-index: 5;
}

/* -- SLIDE ONE GRID -- */

.beds-info-tabloid {
  height: 50%;
}

.beds-info-footer {
  height: 12%;
}

.beds-info-tabloid__heading {
  background-color: #f9ce2a;
  background-image: url('https://www.elysiumhealthcare.co.uk/wp-content/uploads/2020/12/Banner-01.jpg');
  background-position: right center;
  background-repeat: no-repeat;
  color: #fff;
  font-weight: 600;
  font-size: 2.0rem;
  padding-left: 2.8rem;
  height: 20%;
  display: flex;
  align-items: center;
}

.beds-info-tabloid:nth-of-type(2) .beds-info-tabloid__heading {
  background-image: url('https://www.elysiumhealthcare.co.uk/wp-content/uploads/2020/12/Banner-02.jpg');
}

.beds-info-tabloid__table {
  width: 100%;
  height: 80%;
}

.beds-info-tabloid__table table {
  width: 100%;
  height: 100%;
  border-spacing: 0;
}

.beds-info-tabloid__table thead {
  background-color: #ffe46c;
  text-transform: uppercase;
  color: #556475;
}

.beds-info-tabloid__table thead th {
  font-weight: 500;
  padding: 0.5rem 1rem 0.5rem 2.8rem;
  text-align: left;
  font-size: 1.6rem;
}

.beds-info-tabloid__table thead th:last-child {
  text-align: center;
}

.beds-info-tabloid__table tbody {
  background-color: #fef1be;
}

.beds-info-tabloid__table tbody td {
  font-weight: 400;
  width: 20%;
  padding: 0.2rem;
  padding-left: 2.8rem;
  color: #556475;
  font-size: 1.6rem;
}

.beds-info-tabloid__table tbody td:last-child {
  text-align: center;
  font-weight: 600;
}

/* -- BEDS INFO FOOTER --  */
.beds-info-footer {
  background-color: #556474;
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding-left: 2.8rem;
}

.beds-info-footer__sub {
  display: flex;
  justify-content: center;
  align-items: baseline;
  margin-right: 0.5rem;
}

.beds-info-footer__sub-header {
  font-size: 1.8rem;
  font-weight: 300;
  color: #fcc500;
  margin-right: 0.5rem;
}

.beds-info-footer__sub-text {
  font-size: 1.8rem;
  font-weight: 500;
  color: #fff;
}

/* -- BEDS INFO CARD --  */
.beds-info-card__container {
  height: 88%;
  background-color: #f4c732;
  background-image: url('https://www.elysiumhealthcare.co.uk/wp-content/uploads/2020/12/slider-2-pattern.png');
  background-repeat: no-repeat;
  background-position: right center;
  background-size: contain;
  padding: 2rem 2.8rem;
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.beds-info-card {
  width: 50%;
  padding: 2.4rem 0;
  padding-right: 2.4rem;
  position: relative;
}

.beds-info-card:first-child {
  border-bottom: 1px solid white;
}

.beds-info-card__heading {
  color: #fff;
  font-size: 2.2rem;
  font-weight: 600;
}

.beds-info-card__heading::after {
  content: '';
  background-image: url('https://www.elysiumhealthcare.co.uk/wp-content/uploads/2020/12/chevron-right.svg');
  position: absolute;
  width: 32px;
  height: 32px;
  background-repeat: no-repeat;
  background-size: contain;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
}

.beds-info-card__heading--filler {
  font-weight: 400;
  color: #556474;
  display: block;
  margin-bottom: 0.5rem;
}

/* -- SLIDES CONTROLLER --  */
.slides-controller__button {
  width: 12px;
  height: 12px;
  background-color: #e1e1e1;
  display: inline-block;
  cursor: pointer;
  border: none;
  outline: none;
  transition: background-color 0.5s ease-in-out;
  padding: 5px 0;
}

.slides-controller__button--active {
  background-color: #f09133;
}


/*--RESPONSIVE CSS--*/

@media only screen and (max-width: 999px) {
  .beds-info-tabloid {
    font-size: 0.85rem;
  }

  .beds-info-tabloid__heading {
    font-size: 1rem;
    padding-left: 1rem;
  }

  .beds-info-tabloid__table thead th,
  .beds-info-tabloid__table tbody td {
    padding-left: 1rem;
  }

  .beds-info-footer__sub-header,
  .beds-info-footer__sub-text {
    font-size: 0.9rem;
  }

  .beds-info-footer {
    padding-left: 1rem;
  }
}

@media only screen and (max-width: 851px) {
  .beds-info-tabloid__table tbody td {
    width: revert;
  }
}

@media only screen and (max-width: 767px) {
  /*.slides__container,*/
  /*.slides-controller {*/
  /*  margin-right: -30px;*/
  /*  margin-left: -30px;*/
  /*  height: 600px;*/
  /*}*/
}

@media only screen and (max-width: 706px) {
  .beds-info-tabloid__table thead th {
    font-size: 0.8rem;
    padding: 0.2rem 0;
    padding-left: 1rem;
  }

  .beds-info-tabloid__table tbody td {
    width: 20%;
  }
}

@media only screen and (max-width: 552px) {
  .beds-info-tabloid__heading {
    background-position: 84% 50%;
  }
  
  .beds-info-tabloid__table tbody td {
    font-size: .85rem;
  }

  .beds-info-card__container {
    background-image: unset;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .beds-info-card {
    width: 100%;
  }
}

@media only screen and (max-width: 400px) {
  .beds-info-tabloid__table thead th {
    font-size: .7rem;
  }

  /*.slides__container,*/
  /*.slides-controller {*/
  /*  margin-right: -45px;*/
  /*  margin-left: -50px;*/
  /*  height: 600px;*/
  /*}*/

  .beds-info-card__heading {
    font-size: 1.25rem;
  }
}

@media only screen and (max-width: 350px) {
  .beds-info-tabloid__table tbody td {
    font-size: .8rem;
  }
}

@media only screen and (min-width: 863px) {
  .beds-info-card {
    width: 50%;
  }
}