/* Page headline component's styles */
.page_headline {
  position: relative;
  background: url("/wp-content/themes/busturas/assets/img/headline-background.png");
  background-size: cover;
  background-position: center center;
  height: 250px;
  overflow: hidden;
  width: 100%;
  max-width: 1440px;
  color: var(--white-color1);
  margin-bottom: 70px !important;
}

.page_headline {
  margin: auto;
}

.page_headline .headline_content {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0 25px;
  z-index: 2;
  background-color: rgba(0, 0, 0, 0.1);
}

.page_headline #breadcrumbs {
  margin-top: 10px;
}

.page_headline #breadcrumbs li {
  list-style: none;
  display: inline-block;
}

.page_headline #breadcrumbs li:after {
  content: url("/wp-content/themes/busturas/assets/img/separation_arrow_right.svg");
  margin: 0 10px;
}

.page_headline #breadcrumbs li:last-child:after {
  content: "";
  margin: 0;
}

.page_headline #breadcrumbs a {
  color: unset;
  text-decoration: none;
}
/* -------------------------------- */

/* Main button component styles */
.main-button {
  display: block;
  text-decoration: none;
  padding: 15px 35px;
  width: fit-content;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  background-color: var(--grey-color1);
  color: var(--green-color1);
  transition: background-image 0.3s ease, 0.3s ease;
}

.main-button:hover {
  background-color: var(--green-color1);
  color: var(--white-color1);
}
/* -------------------------------- */

/* White button component styles */
.white-button {
  display: block;
  text-decoration: none;
  padding: 15px 35px;
  width: fit-content;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  background-color: #ffffff;
  color: var(--green-color1);
  transition: 0.3s ease;
}

.white-button:hover {
  color: var(--green-color2);
}
/* -------------------------------- */

/* White-green button component styles */
.white-green-button {
  display: block;
  text-decoration: none;
  padding: 15px 35px;
  width: fit-content;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  background-color: #ffffff;
  color: var(--green-color1);
  transition: 0.3s ease;
  text-align: center;
}

.white-green-button:hover {
  color: #ffffff;
  background-color: var(--green-color1);
}
/* -------------------------------- */

/* Post box component */
.box-news {
  display: inline-flex;
  flex: 1 1 350px;
  position: relative;
  z-index: 1;
}

.box-news,
.news-img {
  height: 300px;
  width: 100%;
  max-width: 400px;
  border-radius: 15px;
}

.box-news .news-header {
  background: linear-gradient(
    0deg,
    var(--green-color2) 20%,
    rgba(9, 105, 56, 0.5) 60%,
    rgba(9, 105, 56, 0) 100%
  );
  box-shadow: 0 15px 0 0 var(--green-color2);
  border-radius: 0 0 15px 15px;
}
.box-news .news-button {
  background: var(--green-color2);
}

.box-news .news-header,
.box-news .news-button {
  width: 100%;
  padding-left: 30px;
  padding-right: 30px;
  margin-left: 0px;
  margin-right: 0px;
}

.news-button img {
  height: 7px;
  width: 15px;
}

.news-img {
  overflow: hidden;
  position: relative;
  z-index: 0;
}

.news-img img {
  width: 100%;
  height: 100%;
  max-width: 400px;
  max-height: 300px;
  border-radius: 15px;
  object-fit: cover;
}

.news-img:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 15px;
  background: var(--gradient-green-background);
  z-index: 1;
  transition: all 0.3s ease;
}

.box-news:hover .news-img:after {
  height: 120%;
}

.box-news .news-header,
.box-news .news-button {
  position: absolute;
  z-index: 2;
  color: var(--white-color1);
  bottom: 24px;
  transition: 0.3s ease;
}

.box-news .news-button {
  visibility: hidden;
  opacity: 0;
}

.box-news:hover .news-button {
  visibility: visible;
  opacity: 1;
}

.box-news:hover .news-header {
  bottom: 57px;
}

.news-button img {
  margin-left: 7px;
}
/* -------------------------------- */

/* MEDIA SCREEN */

@media screen and (max-width: 822px) {
  .box-news {
    margin: auto;
    max-height: 390px;
  }

  .box-news .news-header,
  .box-news .news-button {
    padding-left: 25px;
    padding-right: 25px;
  }
}

@media screen and (max-width: 700px) {
  .page_headline #breadcrumbs {
    display: none;
  }
}
