div#category-posts {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}
div#description-category {
    margin-top: 2.5rem;
    text-align: center;
    color: #000;
}

div#category-posts .post {
   width: calc(33% - 30px);
   color: #191919!important;
    font-weight: 500;
}
div#category-posts .post h2 {
    font-weight: 700!important;
    font-size: 1.25rem;
    line-height: 1.2;
    margin-top: 0.75rem;
    text-transform: uppercase!important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow: hidden;
    max-height: 50px;
    min-height: 50px;
 }
.post-thumbnail {
    width: 100%; /* Largeur fixe souhaitée */
    height: 200px; /* Hauteur fixe souhaitée */
    margin: 0 auto; /* Centrer l'image horizontalement */
    display: flex; /* Utiliser flexbox pour aligner l'image au centre */
    justify-content: center; /* Centrer horizontalement */
    align-items: center; /* Centrer verticalement */
    background-size: cover; /* Redimensionner l'image de fond pour couvrir tout le conteneur */
    background-position: center; /* Centrer l'image de fond horizontalement et verticalement */
    cursor: pointer;

}

.square-image {
    display: none; /* Masquer l'élément img */
}

.post-thumbnail.has-background {
    display: block; /* Afficher le conteneur de l'image de fond */
    border: 1px solid #707070;
    border-radius: 20px;
}

.post-content{
    color:#191919;
    font-style: normal;
}
.post-categories{
    color:#018141;
    font-style: italic;
    font-size: 0.75rem;
    line-height: 1.2;
    margin-top: 0.75rem;
}
ul#categories {
    display: flex;
    justify-content: center;
    gap: 2rem;
}
ul#categories li {
    list-style: none;
    border-radius: 40px;
    box-shadow: 0px 0px 25px #00000029;
    border:1px solid #018141;
    padding: 0.5rem 1.25rem;
    transition: 0.3s;
    cursor: pointer;
    text-align: center;
    display: flex;
    align-items: center;
}
ul#categories li:hover {
    background-color: #018141;
}
ul#categories li:hover a{
    color:#fff;
}

ul#categories li a {
    color: #018141;
    text-decoration: none;
    display: block;
    padding: 0.5rem 1.25rem;
    border-radius: 40px;
    width: 100%;
}

ul#categories li.active  {
    background-color: #018141;
}
ul#categories li.active a {
    color: #fff;
}

#load-more-posts button {
    font-weight: 700;
    font-family: 'TP Hero'!important;
    text-transform: uppercase!important;
}


div#category-posts .post:first-child{
    display: flex;
    width: 100%;
}
div#category-posts .post:first-child .post-thumbnail{
    height: 335px;
    width: 60%;
}

div#category-posts .post:first-child .post-side{
    margin-left: 2rem;
    width: 40%;
}



.popup{
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border: 2px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
}
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}
a.lccpresgister{
    background-color: #76c044;
    color: white;
    border-radius: 40px;
    font-family: 'TP Hero'!important;
    font-weight: bold;
    font-size: 1.3125rem;
    box-shadow: 0px 0px 25px #00000029;
    justify-content: center;
    height: auto;
    text-decoration: none;
    display: flex;
    align-items: center;
    width: auto;
    padding: 1.5rem 2rem;
    margin-bottom: 5px;
    cursor: pointer;
  }
  a.lecpresgister{
    background-color: #ED9D4A;
    color: white;
    border-radius: 40px;
    font-family: 'TP Hero'!important;
    font-weight: bold;
    font-size: 1.3125rem;
    box-shadow: 0px 0px 25px #00000029;
    justify-content: center;
    height: auto;
    text-decoration: none;
    display: flex;
    align-items: center;
    width: auto;
    padding: 1.5rem 2rem;
    margin-bottom: 5px;
    cursor: pointer;
  }
a.icsresgister{
    background-color: #25B2D5;
    color: white;
    border-radius: 40px;
    font-family: 'TP Hero'!important;
    font-weight: bold;
    font-size: 1.3125rem;
    box-shadow: 0px 0px 25px #00000029;
    justify-content: center;
    text-decoration: none;
    height: auto;
    display: flex;
    align-items: center;
    width: auto;
    padding: 1.5rem 2rem;
    margin-bottom: 5px;
    cursor: pointer;
  }
  a.icsresgister:hover, a.lecpresgister:hover, a.lccpresgister:hover{
    color: #000000;
  }