.ai-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-gap: 10px;
}
.ai-box {
  border: 1px solid;
  border-radius: 8px;
}
.ai-items {
  height: 265px;
  overflow: auto;
  max-height: 265px;
  scrollbar-color: #708090 #e0e0e0;
  scrollbar-width: thin;
  direction: ltr;
  text-align: left;
  margin: 8px 0 4px;
  
}
.ai-items p{
	margin: 4px 8px;
}
.ai-items a {
  color: #333;
  transition: all 0.2s ease-in;
}
.ai-items a:hover, .ai-items a:focus{
  color: #4169e1;
}
.ai-title {
  background: #fff;
  text-align: center;
  color: #000;
  font-weight: bold;
  position: sticky;
  top: 0;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 2px 4px rgba(0,0,0,.2);
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.result-ai {
  min-height: 6em;
  margin: 0 0 2em;
  border: 1px solid;
  border-radius: 8px;
  padding: 8px 16px;
  background: #fff;
  color: #191970;
}
.result-ai p {
  margin: 0;
}
.result-ai sub, .result-ai sub a {
  color: #222;
}
.result-ai sub b {
  color: #000080;
  min-width: 8em;
  display: inline-block;
}
.result-ai h3,.result-ai h3 sub{
	color:#4169e1;
	font-weight: bold;
}
.ai-search{
	text-align: center;
	position: relative;
	width: 70%;
	margin: 0 auto 2em;
}
.ai-search input{
	width: 100%;
	background: #b0c4de !important;
	border-radius: 8px;
}
.ai-search img {
  position: absolute;
  left: 10px;
  top: 10px;
  cursor: pointer;
}
#suggestions {
	display: none;
	position: absolute;
	background-color: #4169e1;
	max-height: 200px;
	overflow: auto;
	z-index: 1000;
	width: 100%;
	text-align: right;
	padding: 0 30px;
	color: #fff;
	border-radius: 10px;
	scrollbar-color: #708090 #e0e0e0;
	scrollbar-width: thin;
	list-style-type: none;
}
#suggestions li {
	padding: 4px 0;
	cursor: pointer;
}
#suggestions li:hover {
	color: #40e0d0;
}
.ribbon {
  position: absolute;
  left: 0;
  top: 20px;
  z-index: 1;
  overflow: hidden;
  width: 70px;
  height: 40px;
  text-align: right;
}
.ribbon span {
  font-size: 0.8rem;
  color: #fff;
  text-transform: uppercase;
  text-align: center;
  font-weight: bold;
  /* line-height: 32px; */
  transform: rotate(45deg);
  width: 125px;
  display: block;
  background: #6a5acd;
  background: linear-gradient(#6a5acd 0%, #000 100%);
  box-shadow: 0 3px 10px -5px rgba(0, 0, 0, 1);
  position: absolute;
  opacity: 0.3;
  top: 17px; // change this, if no border
  right: -29px; // change this, if no border
}
.popinfo {
    display: none;
    position: absolute;
    background-color: #4169e1;
	color: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
	max-width: 360px;
	text-align: justify;
}
.popoverBtn {
  cursor: pointer;
  margin-top: -20px;
}
.readmore {
  position: relative;
  max-height: 100px;
  overflow: hidden;
  margin-bottom: 20px;
  transition:max-height 0.15s ease-out;
}
.readmore li > h2 {
  font-size: 20px;
  color: #800080;
  margin-top: 10px;
}
.readmore.expand{
  max-height: 5000px !important;
  transition:max-height 0.35s ease-in-out;
}

.readmore-link{
  position: absolute;
  bottom: 0;
  right: 0;
  display: block;
  width:100%;
  height: 60px;
  text-align: center;
  color: blue;
  font-weight:bold;
  font-size:16px;
  padding-top:40px;
  background-image: linear-gradient(to bottom, transparent, white);
  cursor: pointer;
}

.readmore-link.expand {
  position: relative;
  background-image: none;
  padding-top:0;
  height:20px;
}

.readmore-link:after {
  content:"بیشتر بخوانید";
}
.readmore-link.expand:after{
  content:"پنهان سازی محتوا";
}

@media only screen and (max-width: 420px){
	.ai-container {
		grid-template-columns: repeat(1,1fr);
	}
	.ai-search {
		width: 100%;
	}
	.popinfo {
		right: 5px !important;
		width: 97%;
	}
}
