/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 414px) and (max-height: 896px),
(max-width: 896px) and (max-height: 414px) {
  .main__history_timeline_paragraph {
    font-size: 14px;
    line-height: 1.2;
    padding: 23px;
    height: 400px;
  }
}
@media (max-width: 575.98px) {
  .overlay-bg {
    background-image: none;
  }
  .date small {
    font-size: 12px;
    font-weight: 600;
  }
  .main__social {
    display: none !important;
  }
  .main__item_text_header {
    font-size: 28px;
    margin-left: 0;
  }
  .main__item_text {
    text-align: center;
  }
  .main__item_text_desc {
    font-size: 14px;
    font-weight: normal;
    line-height: 1.5;
  }
  .main__item_btn {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 0;
  }
  .main__news {
    padding-top: 0 !important;
    visibility: hidden !important;
    display: none;
  }
  .main__news__item {
    width: auto;
    min-height: 300px !important;
    padding: 0;
  }
  .carousel__text {
    text-align: center;
    width: calc(100% - 40px);
    margin: auto;
  }
  .carousel__text__title {
    font-size: 24px;
    text-align: center;
  }
  .carousel__text__desc {
    font-size: 14px;
    text-align: center;
    padding: 2rem 10px 0;
    margin: 0;
  }
  .carousel-control-next,
  .carousel-control-prev {
    width: 10%;
    opacity: .5;
  }
  .carousel-control-prev-icon::before {
    content: "\f104";
    font-family: 'FontAwesome';
    font-size: 50px;
  }
  .carousel-control-next-icon::before {
    content: "\f105";
    font-family: 'FontAwesome';
    font-size: 50px;
  }
  .main__history_timline {
    display: block;
    overflow: hidden;
  }
  .main__history_timline_text {
    text-align: center;
  }
  .main__badge_history_timline_header {
    text-align: center;
    margin-bottom: 1rem;
    padding: 0 !important;
    display: block !important;
    margin-bottom: 2rem;
  }
  .main__history_timline_text_header {
    font-size: 22px;
  }
  .main__history_timline_holder .container-2 {
    padding: 0 5px;
  }
  .main__history_timline_bottom .carousel-caption {
    padding: 23px;
  }
}
/* Small devices (landscape phones, 576px and up) */
@media (max-width: 991.98px) {
  .carousel__text {
    text-align: center;
    max-width: calc(100% - 80px);
    margin: auto;
  }
}
/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .navbar_mobile_tabs a:hover {
    color: #ffffff !important;
  }
  .main__item_text_header {
    font-size: 40px;
    text-align: center;
  }
  .main__item_text_desc {
    font-size: 28px;
    text-align: center !important;
    display: block;
  }
  .main__item_btn {
    text-align: center !important;
  }
  .main__item_text_mobile_btn {
    font-size: 28px;
  }
  .carousel__text__header {
    font-size: 24px;
  }
  .carousel__text__desc {
    font-size: 20px;
    line-height: 1.2;
    text-align: center;
    padding: 2rem 20px 0;
  }
  .main__history_timline_text {
    margin-bottom: 0rem;
  }
  .main__badge_history_timline_header {
    font-size: 20px;
    text-align: center !important;
    margin-bottom: 2rem;
    padding-left: 0rem;
    display: block !important;
  }
  .main__history_timline_text_header {
    font-size: 44px;
    text-align: left;
  }
  .main__history_timline_text_desc {
    font-size: 24px;
    text-align: left;
    display: block !important;
    padding-top: 1rem;
    padding-bottom: 2rem;
  }
  .main__news {
    display: none !important;
  }
  .box {
    width: 100%;
    min-height: 350px !important;
  }
  .box-gradient {
    width: 100%;
    padding: 40px !important;
    min-height: 350px !important;
  }
  .box .date small {
    font-size: 18px !important;
  }
  .box-gradient .date small {
    font-size: 18px !important;
  }
  .box-gradient h3 {
    font-size: 34px;
  }
  .tags a {
    font-size: 18px !important;
  }
}
/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .d-sm-block {
      display: block !important;
    }
    .main__item {
      height: 100vh;
    }
    .main__news {
      display: none !important;
    }
    .tab-content {
      display: block !important;
    }
    .overlay-bg {
      background-image: none;
    }
    .main__social ul i{
      font-size: 2.5rem;
    }

    .main__social .mt-5 {
      margin-top: 10rem !important;
    }

    .main__item_text_header {
      font-size: 48px !important;
    }

    .main__item_text_desc {
      font-size: 28px !important;
      line-height: 1.3;
    }

    .main__item_text_mobile_btn {
      font-size: 28px !important;
    }

    .carousel__text__header {
      font-size: 24px !important;
      text-align: center;
    }

    .carousel__text__title {
      text-align: center;
      font-size: 44px !important;
    }

  .carousel__text__desc {
    width: 70% !important;
    font-size: 24px !important;
    text-align: center;
    margin: auto !important;
  }
  .carousel-control-next, .carousel-control-prev {
    width: 50px !important;
  }

  .carousel-control-next {
    right: 0;
  }

  .carousel-control-prev {
    left: 0;
  }

  .main__badge_history_timline_header {
    font-size: 24px !important;
    margin-bottom: 3rem;
  }

  .main__history_timline_text_header {
    font-size: 40px !important;
    margin-bottom: 1rem;
  }

  .main__history_timline_text_desc {
      font-size: 100px !important;
  }

  .main__history_timline_holder .container-2 {
      height: calc(100% - 100px);
  }

  .main__history_timline_text p {
      font-size: 16px !important;
      line-height: 1.2;
  }

  .box {
    width: 100%;
    min-height: 400px !important;
  }
  .box-gradient {
    width: 100%;
    padding: 30px !important;
    min-height: 400px !important;
  }
  .box .date small {
    font-size: 16px !important;
  }
  .box-gradient .date small {
    font-size: 24px !important;
  }
  .box h3 {
    margin-bottom: 1rem;
  }
  .btn-blue {
    width: 50% !important;
    padding: 1rem 1rem !important;
    font-size: 28px !important;
    font-weight: 600 !important;
    margin: auto;
  }
}

@media (max-width: 991.98px) {
  .timline_tabs {
    margin-top: 0;
  }
  .main__history_timline_holder .container-1{
    display: none;
  }
  .links.copyright p,
  .links .nav a {
    text-align: center !important;
  }
  .main__history_timline_holder {
    bottom: calc(5% + 100px);
  }
  .main__history_timeline_paragraph {
    height: 380px;
  }
  .carousel-caption .main__history_timeline_paragraph {
    height: 360px;
  }
}

@media (max-width: 500px) and (orientation: portrait) {
  .main__history_timline_holder {
    top: 100px;
  }
}

@media (min-width: 1200px) and (max-width: 1500px) {
  .main__news__item__date,
  .main__news__item__title {
    font-size: 14px;
  }
  .main__news__item__tag {
    margin-right: 0;
    margin-top: 0.4rem;
  }
}

@media (min-width: 1600px) {
  .box h3 {
    font-size: 16px !important;
  }
}
@media (max-width: 767.98px) {
  .container.bottomSections,
  .modal-header.bottomSections,
  .modalBottomSections {
    padding: 0;
    max-width: 100% !important;
  }
  .main__history_timline_text_header {
    display: block !important;
    text-align: center !important;
  }

  .main__history_timline_bottom {
    text-align: center !important;
    width: 100%;
  }
  .main__history_timline_text_header {
    margin-bottom: 20px;
  }
}
@media (max-width: 900px) and (orientation: landscape){
  .main__history_timline_holder {
    top: calc(5% + 70px);
  }
}
@media (max-width: 1199.98px) {
  .main__items {
    position: relative;
    transform: translate3d(0,0,0) !important;
  }
  .main__item_text_header,
  .carousel__text__title {
    font-size: 24px;
  }
}
@media (min-width: 1200px) {
  .main__item, .main__carousel__bg,
  .main__carousel__bg__mask,
  .main__carousel .carousel-inner,
  .main__carousel .carousel-inner img,
  .cd-h-timeline {
    min-height: 800px;
  }
}
.post_image {
  width: 100%;
  height: 100%;
  background-image: url(/assets/img/news/layer1.png);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  position: relative;
  z-index: 1;
}
.box {
  display: flex;
  align-items: start;
  justify-content: left;
  padding: 20px;
  width: 100%;
  min-height: 200px;
  border: 0px #ccc solid;
  color: #fff;
  position: relative;
}
.box .date small {
  color: #ffffff !important;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 0rem;
}

.box h3 {
  font-family: "Open Sans", sans-serif;
  font-size: 24px;
  color: #ffffff;
  margin-bottom: 1rem;
  text-transform: uppercase;
  font-weight: 700;
}
.tags span {
  margin-right: 0rem !important;
}
.box-gradient h3 {
  font-size: 16px !important;
}

@media (max-width: 900px) and (max-height: 500px) {
  .main__item_text_desc {
    font-size: 16px;
  }
  .main__item_text_header {
    font-size: 26px;
  }
  .first_main_text {
    padding-top: 50px;
  }
  .carousel__text__desc {
    padding-top: 2rem;
  }
}
@media (max-width: 1366px) {
  .main__social {
    display: none;
  }
}
