/* Header page */
/* Slider component */
.DesignIT-scholar {
  width: 90%;
  margin: 1.5rem auto;
  position: relative;
}
.DesignIT-scholar h2:first-child {
  margin: 5rem 0;
}
.DesignIT-scholar_slider {
  position: relative;
  width: 80%;
  height: 500px;
  margin: auto;
  overflow: hidden;
}
.DesignIT-scholar_slide {
  background-repeat: no-repeat;
  background-size: cover;
  margin: auto;
  position: absolute;
  width: 100%;
  /* height: 90%; */
  transition: transform 0.5s;
  display: flex;
  align-items: center;
}

/* Slider btn*/
.DesignIT-scholar_slider__btn {
  position: absolute;
  top: 50%;
  z-index: 10;
  border: none;

  font-family: inherit;
  color: #333;
  border-radius: 50%;
  height: 4rem;
  width: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.25rem;
  cursor: pointer;
}

.DesignIT-scholar-image {
  position: absolute;
  top: 0;
  z-index: 10;
  /* max-width: 30%; */
}
.DesignIT-scholar-image img {
  background: linear-gradient(to right, white 50%, transparent 50%);
  min-width: 100px;
  max-width: 500px;
  width: 440px;
}
.DesignIT-scholar-testimony {
  background-color: #b92c00;
  padding: 100px;
  color: white;
  align-self: flex-start;
  position: absolute;
  top: 0;
  left: 400px;
  max-height: 370px;
  min-width: 700px;
}
.DesignIT-scholar-testimony h1 {
  margin-bottom: 1rem;
}
.DesignIT-scholar-testimony h1 span {
  border-bottom: 3px solid white;
}
.DesignIT-scholar-testimony p {
  width: 90%;
}
.DesignIT-visible {
  display: flex !important;
}

.DesignIT-scholar-image img:nth-child(2),
.DesignIT-social__media--mobile-link {
  display: none;
}

/*DesignIT-programmes_subscribe Learn how we make impact*/
.DesignIT-programmes_subscribe {
  display: flex;
  padding: 5%;
  margin: auto;
  align-items: center;
  justify-content: space-around;
}
.DesignIT-programmes_subscribe-text h3 {
  font-weight: 600;
}
.DesignIT-programmes_subscribe-form {
  border-radius: 50px;
  background: #fff;
  box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.25);
  padding: 0.5rem;
}
.DesignIT-programmes_subscribe-form input {
  outline: none;
  border: none;
  font-size: var(--fs-500);
  padding-left: 1rem;
}
.DesignIT-programmes_subscribe-form button {
  background-color: #b92c00;
  outline: none;
  border: none;
  color: white;
  font-size: var(--fs-500);
  padding: 1rem 1.5rem;
  border-radius: 20px;
}

/* Blog list blog list -section*/
.blog_list {
  display: flex;
  justify-content: space-between;
  width: 90%;
  margin: 2rem auto;
}
.recent_pinned_blog {
  width: 25%;
}
.all_blog_post {
  width: 70%;
}
/*  Blog examples */

.blog_post_nav {
  display: flex;
  justify-content: space-evenly;
  cursor: pointer;
}
.blog_post_nav .nav-item {
  margin: 0 2rem;
}
.blog_post_nav .nav-item.active {
  color: #b92c00;
}

.DesignIT-blog-images {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.DesignIT-blog-content {
  width: 40%;
  border-radius: 10px;
  box-shadow: 0px 2.5px 2.35px 0px rgba(0, 0, 0, 0.25);
  margin: 1rem;
  cursor: pointer;
}
.DesignIT-techAtour img {
  width: 100%;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}
.blog-information {
  padding: 0.4rem;
}
.blog-information {
  font-size: var(--fs-400);
}
.blog-topic {
  font-size: var(--fs-300);
  padding: 0 1rem;
  background-color: #b92c00;
  width: fit-content;
  border-radius: 7px;
  color: white;
  margin: 0.3rem;
}
.blog-head {
  font-weight: 600;
  margin: 0.3rem;
}
.blog-content {
  font-size: var(--fs--300);
  font-weight: 400;
  margin: 0.3rem;
}
.DesignIT-blog-author {
  display: flex;
  align-items: center;
  margin: 1rem 0.5rem;
}
.DesignIT-blog-author img {
  width: unset;
}
.DesignIT-blog-author_image {
  margin-right: 1rem;
}
.DesignIT-view {
  width: 50%;
  text-align: right;
}

/* Recent post and pinned post */
/* This part works for both pinned post and the recent post */
.recent_blog_post {
  display: flex;
  height: 102px;
  border-radius: 11.152px;
  background: #fff;
  max-width: 420px;
  min-width: fit-content;
  align-items: center;
  box-shadow: 0px 2.23034px 4.46067px 0px rgba(0, 0, 0, 0.25);
  margin: 1.7rem 0;
}
.recent_blog_posts_img {
  height: 102px;
}
.recent_blog_posts_img img {
  /* width: 100%; */
  border-top-left-radius: 11.152px; 
  border-bottom-left-radius: 11.152px; 
  height: 100%;
}
.recent_blog_posts_text {
  width: 70%;
  padding: 0.2rem;
}
.recent_blog_posts_text a {
  color: #b92c00;
  font-style: normal;
  font-weight: 400;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}
.pagination button {
  margin: 0 5px;
  padding: 5px 10px;
  border-radius: 50%;
  cursor: pointer;
  outline: none;
  border: none;
  color: #b92c00;
  background-color: white;
  font-weight: 900;
}

.pagination button.active {
  background-color: #b92c00;
  color: white;
}
button.inactive {
  pointer-events: none;
  opacity: 0.5;
  display: none;
}

/* Mobile responsiveness */
@media (max-width: 83rem) {
  /* Scholar */
  .DesignIT-scholar-image img {
    width: 350px;
  }
  .DesignIT-scholar-testimony {
    top: 0;
    left: 300px;
    height: 270px;
    min-width: 700px;
  }
}

@media (max-width: 75rem) {
  /* Scholar */
  .DesignIT-scholar_slider {
    width: 100%;
  }
  .DesignIT-scholar-image img {
    width: 350px;
  }
  .DesignIT-scholar-testimony {
    top: 0;
    left: 300px;
    height: 270px;
    min-width: 700px;
  }

  .DesignIT-scholar-name {
    margin: 1rem 2rem;
  }
}

@media (max-width: 62rem) {
  /* Scholar */
  .DesignIT-scholar {
    width: 95%;
  }
  .DesignIT-scholar-image img {
    width: 330px;
  }
  .DesignIT-scholar-testimony {
    top: 0;
    left: 300px;
    height: 250px;
    min-width: 700px;
  }
  .DesignIT-scholar-name {
    margin: 1rem 2rem;
  }
}
@media (max-width: 59rem) {
  .DesignIT-programmes_subscribe {
    flex-direction: column;
    padding: 0;
  }
  .DesignIT-programmes_subscribe-text {
    margin: 3rem 0;
    width: 90%;
    text-align: center;
  }
}
@media (max-width: 58rem) {
  /* Scholar */

  /* DesignIT Scholar */

  .DesignIT-scholar_slider {
    height: 550px;
  }
  .DesignIT-scholar_slide {
    flex-direction: column;
  }

  .DesignIT-scholar_slide div {
    position: unset;
    margin: auto;
  }

  .DesignIT-scholar-image {
    width: clamp(300px, 60vw + 1rem, 400px);
    background: linear-gradient(to top, #b92c00 50%, transparent 50%);
  }

  .DesignIT-scholar-image img {
    width: 100%;
  }
  .DesignIT-scholar-image img:first-child {
    display: none;
  }
  .DesignIT-scholar-image img:nth-child(2) {
    display: unset;
    width: 100%;
  }
  .DesignIT-scholar-testimony {
    width: clamp(300px, 60vw + 1rem, 400px);
    position: static;
    max-height: unset;
    min-width: unset;
    height: fit-content;
    padding: 2rem;
    align-self: unset;
  }
  /* blog */
  .DesignIT-blog-images {
    /* flex-direction: column; */
    width: 100%;
  }
  .DesignIT-blog-content {
    width: 290px;
    margin: 2rem auto;
    border-radius: 15px;
  }

  .DesignIT-blog-text p {
    width: 100;
    text-align: center;
    margin: auto;
  }
  .DesignIT-blog-text a {
    text-align: center;
    margin: 3rem auto;
  }

  /* Recent and Pinned blog post */
  .blog_list {
    flex-direction: column;
  }

  .recent_pinned_blog {
    width: 100%;
    margin: 1rem 0;
  }

  .blog_list .blog,
  .blog_list .pinned_blog_posts {
    display: none;
  }

  .blog_list .recent_blog_posts {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    overflow-x: scroll;
  }

  /* Hide scrollbar for Chrome, Safari and Opera */
  .blog_list .recent_blog_posts::-webkit-scrollbar,
  .blog_post_nav::-webkit-scrollbar {
    display: none;
  }

  .recent_blog_post {
    margin-right: 1rem;
  }

  /* Hide scrollbar for IE, Edge and Firefox */
  .blog_list .recent_blog_posts,
  .blog_post_nav {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
  }

  .all_blog_post {
    width: 100%;
  }

  .blog_post_nav {
    overflow-x: scroll;
    justify-content: unset;
  }
  .blog_post_nav .nav-item {
    text-wrap: nowrap;
  }

  /* Footer */
  footer {
    margin-top: 1rem;
  }
}

@media (max-width: 29rem) {
  .DesignIT-programmes_subscribe-form {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    border-radius: 20px;
  }

  .DesignIT-programmes_subscribe-form input {
    border-bottom: 1px solid #b92c00;
  }

  .DesignIT-programmes_subscribe-form button {
    margin-top: 2rem;
  }
}

@media  (max-width: 390px) {
 .recent_blog_posts_img img {
  width: 90%;
 }
 
 .recent_blog_posts_text  {
  width: 100%;
 }
 
}