.kelpexpanding {
      display: flex;
      justify-content: center;
      align-items: center;
      background-color: #f5f5f5;
    }

.kelpexpanding-container {
      display: flex;
      width: 100%;
      height: 400px;
      overflow: hidden;
    }

    .kelpexpanding-card {
      position: relative;
      flex: 1;
      color: white;
      cursor: pointer;
      transition: all 0.5s ease;
      overflow: hidden;
    }

    .kelpexpanding-card.active {
      flex: 3;
    }

    .kelpexpanding-title {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    writing-mode: vertical-lr;
    transform: rotate(180deg);
    padding: 20px;
    height: 100%;
    font-size: 1.2rem;
    font-weight: bold;
    display: flex;
    align-items: flex-end;
    transition: all 0.5s ease;
    justify-content: flex-end;
}

   .kelpexpanding-card.active .kelpexpanding-title {
    writing-mode: horizontal-tb;
    transform: rotate(0);
    padding: 20px 20px 0 20px;
    height: auto;
    justify-content: flex-start;
}

.kelpexpanding-content p {
    font-size: 16px;
    font-weight: 400;
    text-align: justify;
}

    .kelpexpanding-content {
      padding: 56px 20px 20px;
      opacity: 0;
      transition: opacity 0.5s ease;
      pointer-events: none;
    }

.kelpexpanding-title {
    color: white;
    font-weight: 500;
    font-size: 20px;
}

    .kelpexpanding-card.active .kelpexpanding-content {
      opacity: 1;
      pointer-events: all;
    }

    .kelpexpanding-card:nth-child(1) {
      background-color: #6F66A7;
    }

    .kelpexpanding-card:nth-child(2) {
      background-color: #68B39E;
    }

    .kelpexpanding-card:nth-child(3) {
      background-color: #F0A447;
    }

    .kelpexpanding-card:nth-child(4) {
      background-color: #F58853;
    }

    .kelpexpanding-card:nth-child(5) {
      background-color: #7A3E5F;
    }

    @media (max-width: 768px) {
      .kelpexpanding-container {
        flex-direction: column;
        height: auto;
      }
		
    .kelpexpanding-title {
        color: white;
        font-weight: 500;
        font-size: 18px;
        justify-content: flex-start;
    }

		.kelpexpanding-content {
    padding: 44px 20px 20px;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}
		
.kelpexpanding-content p {
        font-size: 14px;
        margin-top: 10px;
        font-weight: 400;
    }
		.kelpexpanding-card p {
    display: none;
}
		
.kelpexpanding-card.active p {
    display: block;
}
		
      .kelpexpanding-card {
        height: 60px;
        transition: height 0.5s ease;
      }

      .kelpexpanding-card.active {
        height: 300px;
      }

      .kelpexpanding-title {
        writing-mode: horizontal-tb;
        transform: rotate(0);
        padding: 20px;
      }
    }