.article{
    margin: 8rem 0 3rem;
    width: 100%;
    overflow: visible !important;
}

.main-article-container{
    max-width: 100%;
    height: 650px;
    margin-inline:3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.main-article-div{
    width: 70vw;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 2.5px solid var(--primary-green);
    border-radius: 15px;
    box-shadow: 0px 0px 3px 1px rgba(0, 0, 0, 0.25);
}

.main-article-div::before{
    content: attr(data-content-before);
    display: inline;
    position: absolute;
    top: -40;
    left: 1rem;
    font-size: 1rem;
    height: 40px;
    width: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-text-white);
    border-radius: 20px 20px 0 0;
    background-color: var(--primary-green);
}

.main-description .datetime{
    align-items: start;
    justify-content: start;
}

.article h3{
    margin-block-end: 2rem;
    margin-bottom: 10px;
}

.main-img-div{
    max-width: 100%;
    height: 60%;
    margin-inline: 1rem;
    padding-block-start: 1rem;
    display: flex;
    justify-content: center;
}

.main-img-div img{
    width: 100%;
    height: auto; 
    -o-object-fit: cover; 
       object-fit: cover;
    border-radius: 15px;
    transition: transform 0.3s ease-in-out;
    will-change: transform;
    background-position: center;
}

.main-description{
    max-width: 100%;
    height: 100% ;
    padding: 0 1rem 1rem;
    margin-block-end: 1rem;
    /* margin-inline: 1rem; */
    border-radius: 0 0 10px 10px;
}

.main-description .unique-button{
    margin-block: 5px 1rem;
}

.main-description p{
    font-size: 0.8rem;
    margin-block:10px;
    overflow: hidden; 
    text-overflow: ellipsis; 
    display: -webkit-box;
    -webkit-line-clamp: 4; 
    -webkit-box-orient: vertical;
}

.main-description h3{
    margin: 0;
    overflow-y: hidden; 
    text-overflow: ellipsis; 
    display: -webkit-box;
    -webkit-line-clamp: 1; 
    -webkit-box-orient: vertical;
    padding-block-start: 1rem;
}

.popular-article-div{
    width: 30vw;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 2.5px solid var(--primary-green);
    gap: 1rem;
    border-radius: 15px;
    box-shadow: 0px 0px 3px 1px rgba(0, 0, 0, 0.25);
    position: relative;
}

.popular-article-div::before{
    content: attr(data-content-before);
    display: inline;
    position: absolute;
    top: -40;
    left: 1rem;
    font-size: 1rem;
    height: 40px;
    width: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-text-white);
    background-color: var(--primary-green);
    border-radius: 20px 20px 0 0;
}

.popular-article-container{
    max-width: 100%;
    height: auto;
    margin: 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.popular-article-container .unique-button{
    margin-block: 0;
}

.popular-article-container a{
    display: flex;
    gap: 1rem;
    text-decoration: none !important;
    height: 100px;
    transition: transform 0.3s ease-in-out;
    will-change: transform;
}

.popular-article-container a:hover{
    transform: scale(1.02);
}


.popular-img-div{
    width: 40%;
    max-height: 100%;
}

.popular-img-div img{
    width: 100%;
    height: 100%;
    min-width: 100px;
    -o-object-fit: cover;
       object-fit: cover;
    border-radius: 10px;
}

.popular-desc-div{
    width: 60%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.popular-desc-div h3{
    font-size: 0.8rem !important;
    width: 100%;
    color: var(--color-text-black);
    overflow: hidden; 
    text-overflow: ellipsis; 
    display: -webkit-box;
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical;
}

.popular-article-container a{
    width: 100% !important;
}

.popular-article-container a:last-of-type{
    width: -moz-fit-content;
    width: fit-content;
    height: -moz-fit-content;
    height: fit-content;
    display: flex;
    justify-content: center;
    align-items: center;
}

.popular-desc-div p{
    font-size: 0.7rem !important;
}

.category-title{
    width: 90%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-bottom: 2px solid var(--primary-green);
    margin-block-start: 3rem;
}

.category-title h3{
    width: 250px;
    height: 50px;
    font-size: 1rem;
    background-color: var(--primary-green);
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-text-white);
    border-radius: 30px 30px 0 0;
}

.categories{
    width: 90%;
    display: flex;
    font-size: 0.9rem;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    gap: 1.5rem;
    overflow-x: hidden;
    white-space: nowrap;
    border-top: 2.5px solid var(--primary-green);
    border-bottom: 2.5px solid var(--primary-green);
}

.categories p{
    width: -moz-fit-content;
    width: fit-content;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-inline: 1rem;
}

.wrapper {
    margin: 0 auto;
    width: -moz-fit-content;
    width: fit-content;
    max-width: 90%;
    padding: 10px 20px;
    position: relative;
    overflow-x: hidden;
    border-bottom: 2px solid var(--primary-green);
    will-change: transform;
}

  .wrapper .icon {
    position: absolute;
    top: 0;
    height: 100%;
    width: 120px;
    display: flex;
    align-items: center;
  }

  .icon:first-child {
    left: 0;
    display: none;
    background: linear-gradient(90deg, #fff 70%, transparent);
  }
  
  .icon:last-child {
    right: 0;
    justify-content: flex-end;
    background: linear-gradient(-90deg, #fff 70%, transparent);
  }
  
  .icon i {
    width: 55px;
    height: 55px;
    cursor: pointer;
    font-size: 1.2rem;
    text-align: center;
    line-height: 55px;
    border-radius: 50%;
  }
  
  .icon i:hover {
    background: #efedfb;
  }
  
  .icon:first-child i {
    margin-left: 1rem;
  }
   
  .icon:last-child i {
    margin-right: 1rem;
  }
   
  .wrapper .tabs-box {
    display: flex;
    gap: 12px;
    list-style: none;
    overflow-x: hidden;
    scroll-behavior: smooth;
  }
  
  .tabs-box.dragging {
    scroll-behavior: auto;
    cursor: grab;
  }
  
  .tabs-box .tab {
    cursor: pointer;
    font-size: 0.9rem;
    white-space: nowrap;
    padding: 13px 20px;
    border-radius: 30px;
  }
  
  .tabs-box .tab:hover{
    background: #daecdb;
  }
  
  .tabs-box.dragging .tab {
    -webkit-user-select: none;
       -moz-user-select: none;
            user-select: none;
    pointer-events: none;
  }
  
  .tabs-box .tab.active{
    color: #fff;
    background: var(--primary-green);
    border-color: transparent;
  }
  
.article-wrapper{
    max-width: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin: 0 auto;
    gap: 2.5rem;
    margin-block: 2rem;
}

.article-container{
    width: 330px;
    height: 480px;
    display: flex;
    flex-direction: column;
    box-shadow: 0px 0px 4px 2px rgba(0, 0, 0, 0.25);
    border-radius: 10px;
    transition: transform 0.3s ease-in-out;
    will-change: transform;
}

.article-container:hover{
    transform: scale(1.01);
}

.img-wrapper{
    width: 330px;
    height: 250px;
    border-radius: 10px;
}

.img-wrapper img{
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
    border-radius: 10px 10px 0 0;
}

.description-wrapper{
    height: -moz-fit-content;
    height: fit-content;
    border-radius: 0 0 10px 10px;
    padding: 1rem;
}

.description-wrapper p {
    font-size: 0.8rem;
    margin: 0;
    overflow: hidden; 
    text-overflow: ellipsis; 
    display: -webkit-box;
    -webkit-line-clamp: 3; 
    -webkit-box-orient: vertical;
}

.description-wrapper h3 {
    margin:0;
    font-size: 1.1rem;
    overflow: hidden; 
    text-overflow: ellipsis; 
    display: -webkit-box;
    -webkit-line-clamp: 1; 
    -webkit-box-orient: vertical;
}

.description-wrapper p,
.description-wrapper h3{
    margin-bottom: 0.5rem;
}

.unique-button {
    width: 130px;
    height: 30px;
    border-radius: 10px;
    margin-block: 10px 20px;
    text-align: center;
    font-weight: 600;
    border: none;
    font-size: 0.8rem;
    letter-spacing: 1.1;
    background-color: white;
    border: 1.5px solid var(--primary-red);
    color: var(--color-text-black);
}

.unique-button:hover{
    cursor: pointer;
}

.datetime{
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.datetime p{
    font-size: 0.7rem;
    margin: 0;
}

.gray{
    color: rgb(82, 81, 81);
    max-height: 50px;
    overflow: hidden;
}


@media screen and (max-width: 900px){
    .main-article-div{
        width: 60vw;
    }

    .popular-article-div{
        width: 40vw;
    }
}

@media screen and (max-width: 750px){
    .main-article-container{
        flex-direction: column;
        height: -moz-fit-content;
        height: fit-content;
    }

    .main-article-div{
        width: 100%;
        margin-block-end: 3rem;
    }

    .popular-article-div{
        width: 70%;
    }

    .popular-article-container a:last-of-type{
        height: 40px;
    }

    .main-article-container .main-description{
        height: -moz-fit-content;
        height: fit-content;
    }
}

@media screen and (max-width: 500px){
    .main-article-div{
        height: 550px;
    }

    .popular-article-div{
        width: 100%;
    }

}
