.container {
  max-width: var(--main-container-max);
  margin: 0 auto;
  padding: 1.6rem;
  @include flex-direction(column);

  .innerContainer {
    @include flex-align(flex-start, flex-start);
    position: relative;
    background-color: #f3f2f2;
    padding: 1.6rem;
    border-radius: 0.6rem;
    border: none;
    gap: 3.2rem;

    @include max(mobile) {
      @include flex-direction(column);
      gap: 2.4rem;
    }

    .leftContainer {
      display: flex;
      min-width: 360px;
      gap: 24px;
      font-size: 1.4rem;
      line-height: 2.2rem;
      color: #6E7074;

      @include max(tablet) {
        min-width: unset;
        @include flex-direction(column);
      }

      @include max(mobile) {
        gap: 1.6rem;
        @include flex-direction(row);
      }

      > img {
        border-radius: 8px;
        border: none;
        width: 18rem;
        height: 18rem;

        @include max(tablet) {
          width: 12rem;
          height: 12rem;          
        }

        @include max(mobile) {
          width: 9.8rem;
          height: 9.8rem;
        }
      }

      .name {
        margin: 0 0 0.4rem;
        @include flex-align(flex-start, flex-start);
        font-weight: bold;
        font-size: var(--h4-size);
        line-height: 2.8rem;
        color: var(--heading-base-color);
        gap: 0.8rem;

        img {
          margin-top: 4px;
        }

        @include max(mobile) {
          font-size: var(--h5-mobile-size);
          line-height: 2.4rem;
        }
      }

      .title {
        margin-bottom: 1.6rem;
        color: #6E7074;
        font-weight: 600;
        font-size: 1.4rem;
        line-height: 2.2rem;
      }

      .information {
        @include flex-direction(column);
        padding: 0 12px 0 0;
        
        @include max(mobile) {
          flex: 1;
          padding: 0;
        }
      }

      .socialIcons {
        display: flex;
        margin-bottom: 1rem;

        a {
          @include flex-align(center, center);
          width: 24px;
          height: 24px;
          background: #073C49;
          margin-right: 0.8rem;
          border-radius: 100%;

          &:last-of-type {
            margin: 0;
          }

          img, svg {
            fill: var(--color-4);
            width: 1.2rem;
            height: 1.2rem;
          }
        }
        
        @include max(mobile) {
          margin: auto 0 0;
        }
      }

      .dateTimeWrapper {
        margin: auto 0 0;

        @include max(mobile) {
          display: none
        }
      }
    }

    .rightContainer {
      @include flex-direction(column);
      flex: 3;
      min-width: 450px;
      align-self: stretch;
      
      @include max(tablet) {
        min-width: unset;
      }

      .bioContainer {
        position: relative;
        margin-bottom: 20px;
      }

      .continueRead {
        position: absolute;
        right: 0;
        bottom: 0;
      }

      .biography {
        font-size: 1.4rem;
        line-height: 2.2rem;
        color: #3E4146;

        &.showReadMore {
          max-height: 88px;
          min-height: 66px;
          overflow: hidden;
          transition: max-height 0s ease-out;
          cursor: pointer;
          
          @include max(mobile) {
            max-height: 110px;
          }
        
          &.open {
            max-height: 2000px;
            transition: max-height 0s ease-in;
            cursor: default;
          }
        }

        .contReadText {
          text-decoration: underline;
        }

        p {
          display: inline-block;
        }

        a {
          display: initial;
        }
      }

      .readMore {
        @include flex-align(center, flex-start);
        gap: 1rem;
        font-weight: 700;
        font-size: 1.2rem;
        line-height: 1.6rem;
        text-transform: uppercase;
        color: #08202E;
        margin-bottom: 28px;
      }

      .expertiseContainer {
        @include flex-align(center, flex-start);
        margin-bottom: 2rem;
        gap: 0.8rem;
        
        @include max(mobile) {
          @include flex-direction(column);
          align-items: flex-start;
          gap: 0.8rem;
        }

        span {
          font-weight: 700;
          font-size: 1.4rem;
          line-height: 2.2rem;
          color: #6E7981;
          min-width: 8rem;
        }

        .expertiseList { 
          display: flex; 
          flex-wrap: wrap;
          gap: 0.8rem;
        }

        .expertiseItem {
          @include flex-align(center, center);
          gap: 0.5rem;
          padding: 4px 10px 4px 8px;
          font-weight: 500;
          font-size: 1.2rem;
          line-height: 2rem;
          color: #393939;
          background: #F9F6F3;
          border: 1px solid #F3F3F3;
          text-transform: capitalize;
          border-radius: 100px;
        }

      }

      .pageInfo {
        margin: auto 0 0;
        @include flex-align(center, space-between);
        padding: 8px 16px;
        font-size: 1.4rem;
        line-height: 2.2rem;
        background-color: #f3f2f2;
        border-radius: 0.8rem;
        border: none;

        @include max(mobile) {
          background-color: transparent;
          padding: 0;
          flex-wrap: wrap;

          .reviewer {
            flex-basis: 100%;
            padding: 8px 16px;
            background-color: #f3f2f2;
            border-radius: 0.8rem;
            border: none;
            order: 3;
            margin-top: 1.6rem;
          }

          .readingTime {
            order: 2;
          }
        }

        .readingTime,
        .reviewer {
          @include flex-align(center, center);
          gap: 0.5rem;

          img, svg {
            height: 1.6rem;
            width: 1.6rem;
            fill: #6E7074;
          }
        }

        .dateTimeWrapper {
          display: none;

          @include max(mobile) {
            display: block;
            order: 1;
          }
        }

        a {
          text-decoration: underline;
        }
      }
    }

    .ribbon {
      position: absolute;
      right: 1.6rem;
      top: -8px;  
      background: #F3B13E;
      border-radius: 4px;
      padding: 4px 8px;
      font-weight: bold;
      font-size: 0.8rem;
      line-height: 1rem;
      letter-spacing: 0.5px;
      text-transform: uppercase;
      color: #0E1118;
    }
  }
}