.blog-header{
  font-size: 2rem;
    font-weight: bold;
     display: block;
  
}
@media only screen and (max-width: 991px) {
  .blog-header {
      font-size: 1.5rem;
  }

}


.cat-title {
  width: 100%;
  line-height: 1.7;
  font-weight: 700;
  margin: 16px 0;
  color: var(--gray);
  display: inline-block;
  font-size: 1.5rem;
}
.category-description
{
  text-align: justify;
  margin-bottom: 30px;
}

.main-posts-item{
    border-radius: 50px;
    display: flex;
    flex-direction: column;
  
    padding: 15px;
    -webkit-border-radius: 50px;
    -moz-border-radius: 50px;
    -ms-border-radius: 50px;
    -o-border-radius: 50px;
    height: 351px;
}
.main-posts-button
  {
    padding-bottom: 30px;
    font-size: 1.1rem;
    z-index: 2;
  }
  
  .main-posts-title{
    width: 100%;
    font-size: 1rem;
    font-weight: 600;
    padding-top: 30px;
    z-index: 2;
  
  }
  .main-posts-desc
{
  font-size: 1rem;
  margin-top: auto;
  z-index: 2;
}


.with-gray-back {
  background-color: #EDEDED;
  color: #020202;
}



.with-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  overflow: hidden; 
  position: relative;
}

.with-image .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease-in-out;
  z-index: 1; 
}
.with-image .main-posts-title ,.with-image .main-posts-button
{
  color: var(--primery)
}

/* Flip Box Style */
.flip-box {
  background-color: transparent;
 
  height: 400px;
  perspective: 1000px; 
}

.flip-box-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.flip-box:hover .flip-box-inner {
  transform: rotateY(180deg);
}

/* Front and Back Style */
.flip-box-front, .flip-box-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Front Style */
.flip-box-front {
  display: flex;
 
  background-size: cover;
}


/* Back Style */
.flip-box-back {
  transform: rotateY(180deg);
  display: flex;
  justify-content: space-between;

  background-size: cover;
}




  /*----------------------------------*/

.pagination
{
  width: 100%;
    margin-top: 24px;
    margin-bottom: 24px;
    display: flex;
     justify-content: center;
        align-items: center;
}

.pagination span, .pagination a {

  height: 30px;
  width: 30px;
  border-radius: 5px;
  border: 1px solid var(--gray);
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  -ms-border-radius: 5px;
  -o-border-radius: 5px;
  margin: 6px 6px;
  display: flex
;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--gray);
}

.page-numbers.current {
  border: 0px solid var(--primery) !important;
 
  color: var(--wihte) !important;
  background-color: var(--primery) !important;
}

.next.page-numbers,.prev.page-numbers{
  width: 50px;

} 
/*---------search page-------------------*/

.active>.page-link, .page-link.active {
  z-index: 3;
  color: var(--bs-pagination-active-color);
  background-color: var(--primery);
  border-color: var(--primery);
}

.news-holder
{
  height: 240px;
}

.news-box
{
  background: #EDEDED;
  border-radius: 15px;
  -webkit-border-radius: 15px;
  -moz-border-radius: 15px;
  -ms-border-radius: 15px;
  -o-border-radius: 15px;
  position: relative;
  transition: all .3s ease-in-out;
  -webkit-transition: all .3s ease-in-out;
  -moz-transition: all .3s ease-in-out;
  -ms-transition: all .3s ease-in-out;
  -o-transition: all .3s ease-in-out;
}



.news-img {
  border-radius: 15px 15px 0 0 ;
  -webkit-border-radius: 15px 15px 0 0 ;
  -moz-border-radius: 15px 15px 0 0 ;
  -ms-border-radius: 15px 15px 0 0 ;
  -o-border-radius: 15px 15px 0 0 ;
  width: 100%;
  height: 250px;
  object-fit: cover;
}
.news-text
{
  font-size: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 69px;
    transition: all .3 ease-in-out;
    -webkit-transition: all .3s ease-in-out;
    -moz-transition: all .3s ease-in-out;
    -ms-transition: all .3s ease-in-out;
    -o-transition: all .3s ease-in-out;
}

.news-box:hover .news-text{

  display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 120px;


}
.news-box:hover::after{
  content: "";
  position: absolute;
  filter: brightness(0.1);
  -webkit-filter: brightness(0.1);
}

.news-box:hover{
 
  transition: all .3s ease-in-out;
  -webkit-transition: all .3s ease-in-out;
  -moz-transition: all .3s ease-in-out;
  -ms-transition: all .3s ease-in-out;
  -o-transition: all .3s ease-in-out;
}

.news-title
{
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 70px;
}

/*----------------*/

#load-more{
  color: var(--primery);
  cursor: pointer;
}


.spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
      transform: rotate(0deg);
  }
  to {
      transform: rotate(360deg);
  }
}