.wrapper {
  margin: 10vh;
}

.button-primary {
  color: #fff !important;
}
.card {
  border-color: #ea7137 !important;
  border: none;
  transition: all 500ms cubic-bezier(0.19, 1, 0.22, 1);
  overflow: hidden;
  border-radius: 10px !important;
  min-height: 450px;
  box-shadow: 0 0 12px 0 rgba(0, 0, 0, 0.2);
}
@media (max-width: 768px) {
  .card {
    min-height: 350px;
  }
}
@media (max-width: 420px) {
  .card {
    min-height: 300px;
  }
}
.card.card-has-bg {
  transition: all 500ms cubic-bezier(0.19, 1, 0.22, 1);
  background-size: 120%;
  background-repeat: no-repeat;
  background-position: center center;
}
.card.card-has-bg:before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: inherit;
  -webkit-filter: grayscale(1);
  -moz-filter: grayscale(100%);
  -ms-filter: grayscale(100%);
  -o-filter: grayscale(100%);
  filter: grayscale(100%);
}
.card.card-has-bg:hover {
  transform: scale(0.98);
  box-shadow: 0 0 5px -2px rgba(0, 0, 0, 0.3);
  background-size: 130%;
  transition: all 500ms cubic-bezier(0.19, 1, 0.22, 1);
}
.card.card-has-bg:hover .card-img-overlay {
  transition: all 800ms cubic-bezier(0.19, 1, 0.22, 1);
  background: #234f6d;
  background: linear-gradient(0deg, rgba(4, 69, 114, 0.5) 0%, #044572 100%);
}
.card .card-footer {
  background: none;
  border-top: none;
  position: absolute;
  bottom: 0;
}
.card .card-footer .media img {
  border: solid 1px rgba(234, 95, 0, 0.3);
}
.card .card-meta {
  color: orange;
}
.card .card-body {
  transition: all 500ms cubic-bezier(0.19, 1, 0.22, 1);
}
.card:hover {
  cursor: pointer;
  transition: all 800ms cubic-bezier(0.19, 1, 0.22, 1);
}
.card:hover .card-body {
  margin-top: 30px;
  transition: all 800ms cubic-bezier(0.19, 1, 0.22, 1);
}
.card .card-img-overlay {
  transition: all 800ms cubic-bezier(0.19, 1, 0.22, 1);
  background: #234f6d;
  background: linear-gradient(
    0deg,
    rgba(35, 79, 109, 0.3785889356) 0%,
    #455f71 100%
  );
}

/* Custom card */

.custom-card {
  position: relative;
  margin: 1em;
  background: rgba(255, 255, 255, 0.8);
  height: 25em;
  border-radius: 0.6em;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  transition: all 500ms cubic-bezier(0.19, 1, 0.22, 1);
}

.custom-card-background {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 0.6em;
  overflow: hidden;
}

.custom-card-background-img {
  filter: grayscale(100%);
  border-radius: 0.6em;
  width: 100%;
  height: 100%;
}

.custom-card-body {
  border-radius: 0.6em;
  position: absolute;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  transition: all 800ms cubic-bezier(0.19, 1, 0.22, 1);
  background: #234f6d;
  background: linear-gradient(
    0deg,
    rgba(35, 79, 109, 0.3785889356) 0%,
    #455f71 100%
  );
  color: white;
}

.custom-card:hover {
  transform: scale(0.985);
  transition: all 500ms cubic-bezier(0.19, 1, 0.22, 1);
}

.custom-card:hover .custom-card-background-img {
  transform: scale(1.2);
  transition: all 500ms cubic-bezier(0.19, 1, 0.22, 1);
}

.custom-card:hover .custom-card-body {
  background: #234f6d;
  background: linear-gradient(0deg, rgba(4, 69, 114, 0.5) 0%, #044572 100%);
  box-shadow: 0 0 5px -2px rgba(0, 0, 0, 0.3);
  transition: all 500ms cubic-bezier(0.19, 1, 0.22, 1);
}

.custom-card-header {
  flex: 1;
  padding: 1em;
  transition: all 800ms cubic-bezier(0.19, 1, 0.22, 1);
}

.custom-card:hover .custom-card-header {
  transform: translateY(10%);
  transition: all 800ms cubic-bezier(0.19, 1, 0.22, 1);
}

.custom-card-title-text {
  color: inherit;
}

.custom-card-category-text {
  font-weight: 300;
  color: orange;
}

.custom-card-hashtags-item {
  font-size: 0.7em;
}

.custom-card-footer {
  padding: 1em;
  flex: 1;
  display: flex;
  align-items: flex-end;
}

.custom-card:hover {
  cursor: pointer;
}

.custom-card-logo {
  flex: 1;
  height: 6rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-card-logo-icon {
  flex: 100px;
  /* width: 60px;
  height: 80px; */
  padding: 0.5em;
  /* background-color: rgba(255, 255, 255, 0.822); */
  border-radius: 10px;
  /* position: relative; */
  /* margin: 0 0 0em 0em; */
}

.custom-card-logo-img {
  width: 100%;
  /* position: absolute;
  transform: translate(-50%, -50%);
  top: 50%;
  left: 50%; */
  border-radius: 50%;
}

.custom-card-logo-text {
  flex: 60%;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  padding: 0 10px;
}

/* Individual case study page styles */
.casestudy {
  display: grid;
  grid-template-areas:
    'breadcrumbs breadcrumbs'
    'title title'
    'hashtags hashtags'
    'problemStatement intro'
    'solution intro'
    'outcomes intro';
  grid-template-columns: 2fr 1fr;
  border-radius: 1rem;
  gap: 0.5rem;
  margin: 1em 0;
}

.breadcrumb {
  margin-top: 3rem;
  grid-area: breadcrumbs;
  background-color: transparent !important;
  padding: 0px;
  margin-bottom: 0px;
}
.breadcrumb ul {
  display: flex;
  font-size: 1rem;
}

.breadcrumb ul li:first-child {
  margin: 0 -1em;
}

.breadcrumb ul li:not(:first-child) {
  margin: 0 3em;
}

.breadcrumb ul li:last-child {
  color: red;
}

.casestudy-title {
  display: flex;
  grid-area: title;
}

.casestudy-title .heading {
  flex: 1;
}

.casestudy-title .logo {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.logo-large {
  transform: scale(1.5) translateX(-20%);
}

.logo-larger {
  transform: scale(2) translateX(-20%);
}

.casestudy-title .logo img {
  width: 100px;
}

.casestudy .hashtags {
  display: flex;
  grid-area: hashtags;
}

.casestudy .hashtags h6 {
  color: rgb(168, 168, 168);
}
.casestudy .hashtags h6:not(:first-child) {
  margin: 0 1em;
}

.problemStatement,
.solution,
.outcomes,
.infra,
.services {
  padding: 1em;
}

.problemStatement {
  grid-area: problemStatement;
  background-color: #f3f0f3;
}

.problemStatementHeading,
.solutionHeading,
.servicesHeading,
.infraHeading,
.outcomesHeading {
  display: flex;
  align-items: center;
}

.problemStatement-icon,
.solution-icon,
.services-icon,
.infra-icon,
.outcomes-icon {
  width: 40px;
}

.solution {
  grid-area: solution;
  background-color: #f3f0f3;
}

.outcomes {
  grid-area: outcomes;
  background-color: #f3f0f3;
}

.services {
  grid-area: services;
  background-color: #f9e4d8;
}

.infraAndServices {
  grid-area: intro;
  background-color: #f9e4d8;
}

.footer-link {
  color: #383e56 !important;
  cursor: pointer;
  text-decoration: none !important;
  font-weight: 500 !important;
}

.footer-link:hover {
  color: #ea7137 !important;
}

/* Styling custom tiles of infra page */
.custom-tile-container-col {
  margin: 1em 0;
  padding: 0;
}
.custom-tile {
  box-sizing: border-box;
  font-size: 1em;
  padding: 0.7em 1em;
  margin: 0.1em;
  border-radius: 0.2em;
  height: 23rem;
  display: grid;
  grid-template-rows: 2.5fr 1fr 1.5fr 0.5fr;
  cursor: pointer;
}

.custom-tile-header {
  display: flex;
  justify-content: center;
  position: relative;
  box-sizing: border-box;
}

.custom-tile-icon {
  background: #f0f3f5;
  border-radius: 50%;
  width: 140px;
  height: 140px;
  padding: 0.5em;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-tile-icon-img {
  fill: #ea7137;
  width: 50%;
  height: 50%;
}

.circle {
  /* display: none; */
  background: #ea7137;
}

.circle-1 {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transition: all 0.2s ease;
}

.circle-2 {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  position: absolute;
  right: 50%;
  top: 50%;
  transition: all 0.2s ease;
}

.circle-3 {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  position: absolute;
  right: 50%;
  top: 50%;
  transition: all 0.2s ease;
}

.custom-tile:hover .circle-1 {
  left: 10%;
  bottom: 10%;
}

.custom-tile:hover .circle-2 {
  right: 10%;
  top: 10%;
  transition: all 0.2s ease;
}

.custom-tile:hover .circle-3 {
  right: 8%;
  top: 50%;
  transition: all 0.2s ease;
}

.custom-tile:hover .custom-tile-icon-img {
  fill: #fff;
  background-size: cover;
}

.custom-tile:hover .custom-tile-icon {
  transform: scale(1.1);
  background: #ea7137;
  transition: 0.2s all ease;
}

.custom-tile:hover .circle {
  display: block;
  background: #ea7137;
  transition: 0 5s all ease;
}

.custom-tile-heading-text {
  font-size: 1.5em;
  text-align: center;
}

.custom-tile-description-text {
  font-size: 1em;
  text-align: center;
}

.custom-tile-footer {
  display: flex;
  justify-content: center;
}

.custom-tile-button {
  text-decoration: none;
  /* transform: translate(0, -80%); */
  color: #ea7137;
}

.custom-tile:hover .custom-tile-button {
  text-decoration: none;
  color: #383e56;
}

/* Infra Section 1 */
.infra-section-1 {
  min-height: 100vh;
  height: auto;
  display: grid;
  grid-template-areas:
    'content image'
    'logo logo';
  grid-template-columns: 2.5fr 2fr;
  grid-template-rows: 50% 40%;
}

.infra-section-1-content {
  grid-area: content;
  margin: auto;
  text-align: center;
}

.infra-section-1-heading {
  font-size: 3rem;
}

.infra-section-1-body {
  font-size: 1.2rem;
}

.infra-section-1-image {
  grid-area: image;
  padding: 1em 0 0 0;
  width: 100%;
}

.infra-section-1-logo {
  grid-area: logo;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  align-content: space-around;
}

.infra-section-1 .logo {
  width: 250px;
  margin: 0 4em 0 0;
}

.infra-section-1 .logo img {
  width: 100%;
}

/* infra-section-2 */

.section-heading {
  font-size: 2rem;
  font-weight: 500;
}

.section-subheading {
  font-size: 1em;
  margin: 1em 0;
  text-transform: uppercase;
  color: #ea7137;
}

.infra-section-2 {
  background-color: rgb(248, 249, 250);
}

.infra-section-2 .options,
.infra-section-2-content {
  padding: 1em;
  cursor: pointer;
}

.infra-section-2-content {
  height: 500px;
}

.infra-section-2-container {
  display: grid;
  grid-template-areas: 'main buttons';
  grid-template-columns: 70% 30%;
}

.infra-section-2-main {
  grid-area: main;
  height: 100%;
}

.infra-section-2-container #options {
  grid-area: buttons;
}

.infra-section-2 .options {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
}

.infra-section-2 .options i {
  flex: 10%;
  background-color: #ea7137;
  color: #fff;
  padding: 0.8em;
  border-radius: 1em;
  font-size: 1em;
}

.infra-section-2 .options p {
  flex: 90%;
  margin: 0 1em;
  font-size: 0.9;
}

.infra-section-2-content {
  margin: 0 1em;
  cursor: pointer;
  /* border: 5px solid #f9e4d8; */
}

.infra-section-2 .options:hover {
  background: #fff;
}

.infra-section-2-option-active {
  border-right: 3px solid #ea7137;
  background: #fff;
  color: #ea7137;
}

.infra-section-2-content {
  cursor: text;
  background: #fff;
  height: 35rem;
  overflow: scroll;
  display: flex;
  align-items: center;
}

.infra-section-2-content::-webkit-scrollbar {
  width: 0 !important;
}

.infra-section-2-content .description {
  display: none;
  text-align: justify;
  animation: 1s ease-in;
  transition: 1s all ease-in-out;
}

.infra-section-2-content .show {
  display: block;
  animation: 0.8s animateText ease-out;
}

.infra-section-2 .options {
  height: 4.4em;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  border-radius: 0.3em;
}

.infra-section-2 .options:not(:first-child) {
  margin: 2em 0 0 0;
}

.infra-section-1 h1,
.infra-section-2 h2,
.infra-section-3 h2,
.infra-section-4 h2,
.infra-section-5 h2 {
  padding: 1em 0;
  text-align: center;
}

.infra-section-2 {
  box-sizing: border-box;
}

.infra-section-2 #content {
  height: 100%;
}

.infra-section-2 h2 {
  padding: 1em 0;
}

.infra-section-4 {
  background: #fcf5f1;
}

.infra-section-1,
.infra-section-2,
.infra-section-3,
.infra-section-4,
.infra-section-5 {
  padding: 2em 0;
}

.orange {
  color: #ea7137;
}

.blog-card {
  height: 30rem;
  max-height: max-content;
  margin: 0 1.5em;
  background: #fff;
  box-shadow: 3px 5px 10px rgb(209, 206, 206);
  display: flex;
  border-radius: 0.5em;
  flex-direction: column;
  cursor: pointer;
  align-items: center;
}

.blog-card-img {
  border-bottom: 1px solid rgb(212, 210, 210);
  flex: 50%;
  display: flex;
  align-items: center;
  overflow: hidden;
  justify-content: center;
  width: 100%;
  min-height: 180px;
}

.blog-card-img img {
  border-radius: 0.5em;
  width: 100%;
}

.blog-card-content {
  flex: 50%;
  padding: 0 1em;
}

.blog-card-header .author {
  font-size: 0.9rem;
  margin: 1em 0;
  color: #8f9497;
  font-weight: 400;
  text-transform: capitalize;
}

.blog-card-header .title {
  font-size: 1.3rem;
}

.blog-card-body p {
  font-weight: 300;
}

@media only screen and (max-width: 768px) {
  .casestudy {
    display: grid;
    grid-template-areas:
      'breadcrumbs breadcrumbs'
      'title title'
      'hashtags hashtags'
      'problemStatement services'
      'solution services';

    grid-template-columns: 3fr 1fr;
    border-radius: 1rem;
  }

  .custom-tile-icon {
    background-color: #ea7137;
  }

  .custom-tile-icon-img {
    fill: #fff;
  }

  .circle {
    display: none;
  }

  .custom-tile:hover .circle {
    display: none;
  }

  .custom-tile:hover .custom-tile-icon {
    transform: scale(1);
  }

  .infra-section-1 {
    grid-template-areas:
      'content'
      'image'
      'logo';
    grid-template-columns: 1fr;
    grid-template-rows: max-content;
  }

  .infra-section-1-logo {
    justify-content: center;
  }

  .infra-section-1-logo .logo {
    width: 200px;
    margin: 1em;
  }
}
/* CHanges */

.paragraph-2,
.blog-card-body p {
  font-family: 'Plus Jakarta Display', sans-serif;
  font-weight: 400;
}

.blog-card-date {
  font-size: 75%;
  font-weight: 400;
  color: #ea7137;
}

@media only screen and (max-width: 992px) {
  .infra-section-2-container {
    grid-template-areas:
      'main'
      'buttons';
    grid-template-columns: 1fr;
    grid-gap: 5em;
  }

  .infra-section-2-content {
    margin: 1em 0;
    width: 100%;
  }

  .custom-tile:hover .circle-1 {
    left: -10%;
    bottom: -10%;
  }

  .custom-tile:hover .circle-2 {
    right: -10%;
    top: -10%;
    transition: all 0.2s ease;
  }

  .custom-tile:hover .circle-3 {
    right: -8%;
    top: 50%;
    transition: all 0.2s ease;
  }

  .infra-section-1 {
    grid-template-areas:
      'content'
      'image'
      'logo';
    grid-template-columns: 1fr;
    grid-template-rows: max-content;
  }

  .infra-section-1,
  .infra-section-2,
  .infra-section-3,
  .infra-section-4,
  .infra-section-5 {
    overflow: hidden;
  }
}

@media only screen and (max-width: 500px) {
  .casestudy {
    display: grid;
    grid-template-areas:
      'breadcrumbs'
      'title'
      'hashtags'
      'problemStatement '
      'solution'
      'outcomes'
      'intro';
    grid-template-columns: 100%;
  }
}

@keyframes animateText {
  0% {
    transform: translate(25%, 0);
  }
  100% {
    transform: translate(0%, 0);
  }
}

