main {
  margin-inline: 6rem;

  @media (max-width: 1600px) {
    margin-inline: 2.5rem;
  }

  @media (max-width: 991px) {
    margin-inline: 0;
  }
}

main.is_herum {
  display: flex;
  flex-direction: column;

  .news.is_herum {
    order: 0;
    margin-top: 7.5rem;

    .is_herum {
      display: flex;
      justify-content: center;
      margin-bottom: 2rem;
      color: #ca2105;
      font-weight: 500;
    }
    ul {
      li a,
      li:last-of-type a {
        background-color: #f7d5d5;
      }
      h2 {
        color: #b71b01;
      }
      p {
        font-size: 1.1rem;
        font-weight: 600;
        color: #0b0b0b;
      }
    }
  }
  @media (max-width: 991px) {
    .news.is_herum {
      margin-top: 3.5rem;
    }
  }
}

body {
  font-family: "Heebo", sans-serif;
  background: #fff;
}

@media (max-width: 1199px) {
  body {
    padding-top: 80px;
  }
}

.cover {
  margin-top: 7.5rem;
  position: relative;
}

@media (min-width: 1200px) {
  .cover {
    height: auto;
  }
}

.grade {
  z-index: 1;
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  width: 100%;
  background: linear-gradient(50deg, rgb(255 255 255 / 0%) 12%, #08163080 82%);
  mix-blend-mode: multiply;
  height: 100%;
  border-radius: 20px;
}
.item .wrap {
  text-align: start;
}
.item .pre {
  line-height: 1;
}

.item .wrap {
  position: relative;
  z-index: 1;
  color: #fff;
  margin-inline-end: auto;
}

.item h3 {
  font-weight: 700;
  line-height: 1;
  position: relative;
  margin-bottom: 2rem;
}
.item h3::after {
  content: "";
  position: absolute;
  bottom: -0.8rem;
  width: 150px;
  height: 2px;
  border-radius: 2px;
  inset-inline-start: 0;
  background-color: var(--prime2);
}
.item2 h3::after {
  background-color: var(--prime4);
}
.item3 h3::after {
  background-color: var(--prime2);
}
.item4 h3::after {
  background-color: var(--prime3);
}
.item5 h3::after {
  background-color: var(--prime5);
}

.item h3 + p {
  line-height: 1.2;
}

[dir="rtl"] .item h3 + p + span {
  transform-origin: right;
  transition: all 0.2s ease;
  display: block;
}
[dir="ltr"] .item h3 + p + span {
  transform-origin: left;
  transition: all 0.2s ease;
  display: block;
}
.item1 {
  h3 + p {
    max-width: 600px;
  }

  .fa {
    color: var(--prime2);
  }
}
.item2 {
  h3 + p {
    max-width: 560px;
  }
  .fa {
    color: var(--prime4);
  }
}
.item3 {
  h3 + p {
    max-width: 300px;
  }

  .fa {
    color: var(--prime2);
  }
}
.item4 {
  h3 + p {
    max-width: 200px;
  }

  .fa {
    color: var(--prime3);
  }
}
.item5 {
  h3 + p {
    max-width: 400px;
  }

  .fa {
    color: var(--prime5);
  }
}

@media (min-width: 992px) {
  .item .pre {
    font-size: calc(0.5vw + 16px);
  }
  .item h3 {
    font-size: calc(0.75vw + 16px);
  }
  .item h3 + p {
    font-size: calc(0.1vw + 16px);
  }
  .grid-container {
    display: grid;
    grid-template-columns: 0.33fr 0.33fr 0.33fr;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
    padding: 20px;
    font-family: "Heebo";
  }

  .item {
    border-radius: 8px;
    height: 21vw;
    max-height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 4rem 3rem;
    border-radius: 20px;
    overflow: hidden;
  }

  .item:hover .read-more {
    transform: scale(1.1);
    font-weight: 500;
  }

  .item1 {
    grid-column: 1 / span 3; /* spans all 3 columns */
  }
  .item1 .wrap {
    max-width: 50%;
  }

  .item2 {
    grid-column: 1 / span 2; /* occupies col 1 + 2 */
  }
  .item3 {
    grid-column: 3 / 4; /* occupies col 3 
    background-color: lime;*/
  }

  .item4 {
    grid-column: 1 / 2; /* occupies col 1 
    background-color: lime;*/
  }
  .item5 {
    grid-column: 2 / span 2; /* occupies col 2 + 3 */
  }
}
.item {
  @media (max-width: 1400px) {
    padding: 3rem 2rem;
  }
}

.item h3 + p {
  @media (min-width: 992px) and (max-width: 1400px) {
    max-height: 81px;
    overflow: clip;
  }
}
/* Services * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

.services {
  position: relative;
  width: 100%;
  text-align: center;
  z-index: 9;
  margin-block: 5rem;
}

.services-slick {
  padding: 0.5rem 1rem;
  margin: 0 1rem;
}

.service {
  text-align: center;
  display: block;
  background: #fff;
  margin: 1rem;
  padding: 1rem;
  color: var(--text);
  font-size: 1.1rem;
}
.service .icon {
  margin-bottom: 2.5rem;
}
.service figcaption {
  font-size: 1.2rem;
  line-height: 1;
  color: var(--prime1);
}
.service:hover img {
  transform: scale(1.5);
}
.service .icon img {
  display: block;
  margin: 0 auto;
  margin-bottom: 0.75rem;
  width: 55px;
  transition: all 0.2s ease;
}
.services .slick-slide:nth-of-type(even) > div::before,
.services .slick-slide:nth-of-type(even) > div::after {
  content: "";
  position: absolute;
  width: 1px;
  height: 55%;
  background-color: #d7dde0;
  top: 50%;
  transform: translateY(-50%);
}
/* Articles * * * * * * * * * * * * * * * * * * * * * * * * * * * */

@media (min-width: 1200px) {
  .slick-dots {
    position: fixed;
    top: 50%;
    inset-inline-end: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    padding: 0;
    margin-inline-end: 418px;
    margin-top: 120px;
    list-style: none;
    width: 470px;
  }
}

.slick-dots > li {
  display: inline-block;
}

.slick-dots button {
  font-size: 0;
  background: none;
  border: 0;
}

.slick-dots button:after {
  content: "\f1db";
  font-family: "FontAwesome";
  font-size: 16px;
  color: #fff;
}

.slick-dots .slick-active button:after {
  content: "\f111";
}

.blocks {
  margin-block: 5rem;

  @media (max-width: 600px) {
    padding-inline: 1rem;
  }
}
.blocks .row {
  gap: 2rem 0;
}

.blocks .wrap {
  width: 100%;
  aspect-ratio: 830 / 700;
  display: flex;
  flex-direction: column;
  border-radius: 30px;
  padding: 9.5rem 3rem 3rem;
  background-position: center;
  background-size: cover;
  text-align: start;

  @media (max-width: 1350px) {
    padding: 3rem 1rem;
  }
}

.blocks .wrap h2 {
  margin-bottom: 0;
  line-height: 1;
  font-size: calc(2.75vw + 16px);
  color: #fff;
  font-weight: 900;

  @media (max-width: 1350px) {
    padding-inline-start: 3rem;
  }
}
.blocks .wrap h2 + p {
  font-size: calc(0.75vw + 16px);
  margin-bottom: 3rem;

  @media (max-width: 1350px) {
    padding-inline-start: 3rem;
  }
}
.blocks .pr1.wrap h2 + p {
  margin-bottom: 5%;
}
.blocks .wrap a > span {
  font-size: calc(0.5vw + 16px);
  color: #fff;

  @media (max-width: 1350px) {
    padding-inline-start: 3rem;
  }
}
[dir="rtl"] .blocks .wrap p + a {
  transform-origin: right;
}
[dir="ltr"] .blocks .wrap p + a {
  transform-origin: left;
}
.blocks .wrap p + a:hover {
  transform: scale(1.2);
}
.blocks em {
  font-style: normal;
}

.blocks .btgrid {
  color: #fff;
  margin-top: auto;
}
.blocks .btgrid a {
  z-index: 3;
  display: flex;
  justify-content: center;
  color: #fff;
}
.blocks .btgrid a img {
  transition: all 0.2s ease-out;
}
.blocks .btgrid a:hover img {
  transform: scale(1.52);
}
.blocks .btgrid .row > div:nth-child(2) {
  position: relative;
}
.blocks .btgrid .row > div:nth-child(2)::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 65%;
  inset: 0;
  margin: auto;
  border-inline-start: 1px solid #40b54b;
  border-inline-end: 1px solid #40b54b;
  pointer-events: none;
}
.blocks .pr1 h2 {
  order: unset;
}
.blocks .pr1 h2 + p {
  order: 0;
}
.blocks .pr1 a[href*="herum"] {
  order: 3;
  margin-bottom: 1rem;
}
.blocks .pr1 .btgrid {
  order: 4;
}

.blocks .pr4 {
  padding-bottom: 5rem;
  /* justify-content: flex-end; padding-inline-start: 25%;*/

  @media (max-width: 1350px) {
    padding-inline-start: 3rem;
  }
}

.blocks .pr4 h2 {
  @media (max-width: 1350px) {
    padding-inline-start: 0;
  }
}

.blocks .pr4 h2 + p {
  @media (max-width: 1350px) {
    padding-inline-start: 0;
  }
}

.blocks .pr4 h2 + p + a > span {
  @media (min-width: 992px) and (max-width: 1350px) {
    padding-inline-start: 1rem;
  }
}

.blocks h3 {
  margin-bottom: 0;
  font-weight: 900;
  font-size: calc(0.2vw + 16px);
  line-height: 1;
}
.blocks h3 + p {
  font-size: calc(0.1vw + 12px);
  line-height: 1;
}
.news .is_herum {
  display: none;
}
.news ul {
  justify-content: space-between;
  list-style-type: none;
  font-size: 1rem;
  padding: 0;

  a:hover {
    text-decoration: none;
    @media (min-width: 992px) {
      transform: scale(1.05);
    }
  }

  a,
  li:last-of-type a {
    border-radius: 1rem;
    background-color: #def0f9;
    padding: 0.72rem 1rem;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    min-height: 100%;
  }
  li:last-of-type a {
    justify-content: center;
    align-items: center;
  }

  li:last-of-type h2 {
    margin: 0;
    padding: 0;
  }
  li:last-of-type a i {
    font-style: normal;
    color: var(--prime4);
  }
  li:last-of-type {
    justify-content: center;
  }
  li:last-of-type h2::after {
    content: none;
  }
  h2 {
    position: relative;
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--prime1);
    padding-bottom: 0.5rem;
  }

  p {
    line-height: 1.1;
    font-size: 0.9rem;
    position: relative;

    &::before {
      content: "";
      position: relative;
      display: block;
      width: 120px;
      height: 1px;
      background-color: var(--prime4);
      margin-top: 0.5rem;
      margin-bottom: 1rem;
    }
  }

  span {
    font-size: inherit;
    color: #8f6107;
    font-weight: 500;
    margin-top: auto;
  }
}
.slick-prev:hover,
.slick-prev:focus,
.slick-next:hover,
.slick-next:focus {
  background-color: var(--prime5);
}
/* Footer * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
@media (max-width: 991px) {
  .slick-prev,
  .slick-next {
    top: 50%;
    bottom: -4rem;
    border: 2px solid var(--prime1);
    color: var(--prime1);
    border-radius: 100vw;
    background-color: #fff;
    height: 40px;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  [dir="rtl"] .slick-prev {
    z-index: 3;
    right: 0%;
  }
  [dir="rtl"] .slick-next {
    left: 0%;
  }
  .slick-prev:hover::before,
  .slick-prev:focus::before,
  .slick-next:hover::before,
  .slick-next:focus::before {
    color: var(--prime1);
  }
  .slick-next::before,
  .slick-prev::before {
    color: var(--prime1);
  }
}
/* News * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

@media (min-width: 992px) {
  [dir="rtl"] .slick-prev {
    inset-inline-start: 0;
    inset-inline-end: auto;
    z-index: 100;
  }
  .slick-prev {
    background-color: transparent;
  }
}

@media (max-width: 991px) {
  .cover.mobile-slick {
    margin-top: 3rem;
  }
  .cover .grade {
    background: linear-gradient(0deg, rgb(255 255 255 / 0%) 9%, #213c6d99 55%);
    bottom: auto;
    top: 0;
    height: 82%;
  }
  .cover.mobile-slick a {
    background-position: center;
    background-size: cover;
    height: 540px;
    height: 350px;
    width: 100%;
    display: block;
    border-radius: 20px;
    position: relative;
    padding: 3rem 2rem;
  }
  .cover.mobile-slick .slick-slide > div {
    height: 100%;
  }
  .item .pre {
    font-size: calc(1.5vw + 16px);
  }
  .item h3 {
    font-size: calc(2.5vw + 16px);
  }
  .blocks .btgrid .row > div:nth-child(1) {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .blocks .pr1 .btgrid .col-md-4:nth-child(2),
  .blocks .pr1 .btgrid .col-md-4:nth-child(3) {
    display: none;
  }
  .mobile-slick .slick-slide > div {
    margin-inline: 0.3rem;
  }

  .services-slick {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  .services-slick > div {
    flex: 0 0 25%;
    position: relative;
    border: none;
  }
  .services-slick > div:nth-child(odd) {
    border: none;
  }
  .services-slick > div:nth-child(odd)::after {
    content: "";
    content: none;
    position: absolute;
    inset-inline-end: -25px;
    bottom: -25px;
    width: 50px;
    height: 50px;
    background-color: #fff;
    border-radius: 100vw;
    z-index: 1;
  }
  .services-slick > div:nth-last-child(-n + 2) {
    border-bottom: none;
    /* border-top: 1px solid #cecece; */
  }
  .service .icon {
    width: 35px;
    height: auto;
    margin-inline: auto;
  }
  .service .icon img {
    width: auto;
    object-fit: cover;
    margin-bottom: 0.5rem;
  }
  .service .icon {
    margin-bottom: 0;
  }
  .news ul.slick-slider li {
    height: 100%;
  }

  .news .slick-track {
    height: 100%;
  }
  .news .slick-track > div,
  .news .slick-track > div > div {
    height: 100%;
  }

  .news ul.slick-slider li a {
    padding: 0.5rem 1rem;
    flex-direction: column;
    align-items: flex-start;
  }
  .news ul.slick-slider li a[href="./news/"] {
    align-items: center;
  }
  .news ul.slick-slider li a[href="./news/"] h2::after {
    content: none;
  }
  .news ul.slick-slider li a h2 {
    margin-bottom: 2rem;
  }

  .news ul.slick-slider li a h2::after {
    /* content: "";
    position: absolute;
    width: 120px;
    height: 2px;
    background-color: var(--prime4);
    margin-block: 0.95rem; */
  }

  .news ul p {
    font-size: calc(0.5vw + 16px);
  }
  .blocks .wrap h2 {
    font-size: calc(4vw + 16px);
  }
  .blocks .wrap h2,
  .blocks .wrap h2 + p,
  .blocks .wrap a span {
    padding-inline-start: 2rem;
  }

  .blocks .pr4 {
    padding-inline-start: 1rem;
  }
}

@media (max-width: 700px) {
  .service {
    margin: 10px 5px;
    padding: 5px 8px;
  }
  .services-slick {
    padding: 0;
  }
  .services-slick > div {
    flex: 0 0 31%;
  }
  .service figcaption {
    font-size: 1.1rem;
  }
}

@media (max-width: 390px) {
  /* .service {
    padding: 0.75rem;
    margin: 0.75rem;
  } */
}
