



#tab-news {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 1%;
  margin-bottom: 0%;
}


@media screen and (max-width: 512px) {
  .content {
    margin: 0 4%;
    margin-top: 5%;
  }
}

/* Tabs menu */
.tabs {
  margin: 0;
  background-image: linear-gradient(135deg, #f1fbef 0%, #f1f3f3 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 50px;
  border-radius: 2px 2px 0px 0px;
}
#tab-news .tabs button:focus{
	padding-right: 0px;
	    outline: 0;
}
@media screen and (max-width: 512px) {
  .tabs {
    height: 44px;
  }
}

 .media .mb-1{
	display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
}
@media screen and (max-width: 768px) {
	

	#tab-news .tabcontent .media {
	    width: 100%;
	    height: 120px;
	    position: relative;
	}
	#tab-news .tabcontent .media>img{
		position: absolute;
    		left: 0;
	}

	#tab-news .tabcontent .media-body{
		padding-left: 155px;
		margin-top: 0;
	}
	
}

/* Tab Links */
.tablinks {
  background: transparent;
  background-image: linear-gradient(90deg, transparent 70%, rgba(255, 255, 255, 0.2) 100%);
  border: none;
  outline: none;
  cursor: pointer;
  width: 25%;
  /*change depending on the number of tabs*/
  height: 55px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  transition: 0.3s ease;
}
@media screen and (max-width: 512px) {
  .tablinks {
    height: 40px;
    font-size: 12px;
  }
}

.tablinks:before {
  background-image: linear-gradient(135deg, #d9eae3 0%, #538B4F 100%);
  content: "";
  width: 100%;
  height: 0px;
  position: absolute;
  top: 0;
  left: 0;
  transition: 0.3s ease-in-out;
  z-index: 2;
}

/*tab buttons hover*/
.tablinks:hover::before {
  height: 100%;
  z-index: 2;
  bottom: 0;
}
@media screen and (max-width: 512px) {
  .tablinks:hover::before {
    height: 0;
  }
}

/* Tab active */
.tablinks.active {
  background-color: white;
  z-index: 0;
  border-right: 0px;
  border-left: 0px;
  height: 65px;
  bottom: 0px;
  overflow: hidden;
}
@media screen and (max-width: 512px) {
  .tablinks.active {
    height: 60px;
  }
}

.tablinks.active:before {
  content: "";
  width: 100%;
  height: 5px;
  top: 0;
  left: 0;
}

/* Tabs text */
.tablinks.active p,
.tablinks.active:hover p {
  opacity: 1;
/*  background: -webkit-linear-gradient(135deg, #d9eae3 0%, #538B4F 100%);
*/
/*  -webkit-background-clip: text;
*/
/*  -webkit-text-fill-color: transparent;
*/
   color: #538B4F;
    font-weight: bold;
}


.tablinks p {
  z-index: 2;
  opacity: 0.6;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.5s ease;
  padding: 0;
  margin: 0;
  color: #0c2912;
  backface-visibility: hidden;
  font-weight: 400;
}

.tablinks:hover p {
  color: white;
  opacity: 1;
}
@media screen and (max-width: 512px) {
  .tablinks:hover p {
    color: #0c2912;
    opacity: 0.6;
  }
}

/* Tabs text bigger */
.tablinks p:before {
  content: attr(data-title);
  position: absolute;
  height: auto;
  width: auto;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.1;
  font-size: 40px;
  transition: 1s ease-out;
  z-index: -1;
  font-weight: 600;
  top: 110%;
}
@media screen and (max-width: 512px) {
  .tablinks p:before {
    display: none;
  }
}

.tablinks:hover p:before {
  opacity: 0.1;
  font-size: 40px;
  top: -80%;
}

/* tab content */
.wrapper_tabcontent {
  background-color: white;
  margin-top: 0px;
  position: relative;
  opacity: 1;
  overflow: hidden;
  transition: all 1s ease;
  top: 0;
}

.tabcontent {
  display: none;
  min-height: 180px;
}

@keyframes tabEffect {
  from {
    top: -40px;
  }
  to {
    top: 0px;
  }
}
.tabcontent.active {
  transition: all 0.5s ease;
  display: block;
}

/* Tab content line */
.wrapper_tabcontent:after {
  content: "";
  height: 5px;
  width: 100%;
  position: absolute;
  background-image: linear-gradient(135deg, #d9eae3 0%, #008f10 100%);
  left: 0;
  bottom: 0;
  z-index: 0;
  transition: all 1s ease;
}


/* Text*/
.tabcontent p {
  margin: 0;
  padding: 0;
  font-weight: 100;
  transition: all 1s ease;
  animation: fadeEffect 0.6s ease;
  width: 100%;
  font-size: 12px;
  font-family: "思源黑体";
}

.tabcontent .tabContentTxt{
	display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
     font-size: 14px;

}
.tabcontent .media-body{
	padding-right:20px;
}
@media screen and (max-width: 512px) {
  .tabcontent p {
    font-size: 12px;
    line-height: 24px;
  }
}

@keyframes fadeEffect {
  from {
    opacity: 0;
    margin-left: 30px;
  }
  to {
    opacity: 1;
    margin-left: 0;
  }
}

@media screen and (max-width: 512px) {
  .row {
    margin-top: 25px;;
  }
}