.main{
    color: var(--primary-color);
    overflow-x:hidden;
}
.container{
    width:90%;
    margin:auto;
    padding-bottom: 10rem;
}
.category__menu{
    width: 60%;
    height: 18rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin: 1rem auto;
    position: relative;
}
.ul__container{
    margin-bottom: 20rem;
}
.category__menu .category__item{
    width:22%;
    display: flex;
    background-color: var(--primary-color);
    /* text-align: center; */
    padding:0.2rem 0;
    color: var(--white-color);
    border-radius: 10px;
    cursor: pointer;
    margin: 1rem 0;
    transition: all 0.5s ease;
    align-items: center;
    justify-content: space-around;
}
.category__menu .category__item img{
    width: 15px;
    display: block;
}
.category__item:nth-child(1){
    position: absolute;
    top: 0%;
    right: 10%;
}
.category__item:nth-child(2){
    position: absolute;
    top: 0%;
    left: 6%;
}
.category__item:nth-child(3){
    position: absolute;
    top: 16%;
    right: 14%;
}
.category__item:nth-child(4){
    position: absolute;
    top: 16%;
    left: 10%;
}
.category__item:nth-child(5){
    position: absolute;
    top: 32%;
    right: 18%;
}
.category__item:nth-child(6){
    position: absolute;
    top: 32%;
    left: 14%;
}
.category__item:nth-child(7){
    position: absolute;
    top: 48%;
    right: 22%;
}
.category__item:nth-child(8){
    position: absolute;
    top: 48%;
    left: 18%;
}
.category__item:nth-child(9){
    position: absolute;
    top: 64%;
    left: 37%;
}
.box__main {
    width: 90%;
    height: 20rem;
    box-shadow: 0 0 10px 2px var(--text-color-shadow);
    margin-inline: auto;
    border-radius: 60px;
    display: flex;
    flex-direction: row;
    padding-inline: 3%;
    padding-block: 3%;
    margin-bottom: 3rem;
    color: var(--text-color);
  }

  .box__main .description__container{
    width: 60%;
    padding: 0 1rem;
  }  
  .box__main .description__container h3{
    color: var(--primary-color);
  }
  .box__main .description__container p{
    width: 80%;
    margin-top: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 7;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text-color);
  }
  .box__main .image__container{
    width: 35%;
  }
 
  .box__main .image__container img{
    width: 100%;
    height: 230px;
    border-radius: 15px;
  }
.box__middle{
    width: 100%;
    display: flex;
    flex-direction: row;
    padding-inline: 3%;
    padding-block: 3%;
    flex-wrap: wrap;

}
.box__middle .box__details{
    width: 28%;
    height: 400px;
    box-shadow: 0 0 10px 2px var(--text-color-shadow);
    margin-inline: auto;
    border-radius: 60px;
    display: flex;
    flex-direction: column;
    padding-inline: 3%;
    padding-block: 3%;
    margin-bottom: 3rem;
    color: var(--text-color);
}
.box__middle .box__details img{
    width: 100%;
    height: 150px;
    border-radius: 15px;
}
.box__middle .box__details h3{
    color: var(--primary-color);
}
.box__middle .box__details p{
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text-color);
    margin-top: 0.5rem;
}
.main-container {
    width: 90%;
    display: flex;
    flex-direction: column;
    justify-items: center;
    align-items: center;
    margin-inline: auto;
  }
  
  .main-container h2 {
    color: var(--primary-color);
    font-size: 2rem;
  }
  .subtitle__container{
    width: 85%;
    padding: 2rem 0.5rem;
    text-align: center;
  }
  .post__image{
    width: 95%;
    height: 450px;
    margin: 1rem auto  5rem;
  }
  .post__image img{
    width: 100%;
    height: inherit;
    border-radius: 25px;
  }
  .detail__box{
    width: 95%;
    height: auto;
    box-shadow: 0 0 10px 2px var(--text-color-shadow);
    margin-inline: auto;
    border-radius: 60px;
    display: flex;
    flex-direction: row;
    padding-inline: 5%;
    padding-block: 5%;
    font-size: 1.5rem;
    margin-bottom: 10%;
    color: var(--text-color);
    line-height: 45px;
  }
  
  .highlight {
    animation: blink 3s infinite;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}
.tag__box{
    width: 95%;
    height: auto;
    box-shadow: 0 0 10px 2px var(--text-color-shadow);
    margin-inline: auto;
    border-radius: 60px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-inline: 3%;
    padding-block: 3%;
    margin-bottom: 10%;
    color: var(--text-color);
    flex-wrap: wrap;
}
.tags__title{
    font-weight: 600;
    min-width: 170px;
    font-size: 1.2rem;
    margin-top: 0.5rem;
    text-wrap:nowrap;
    margin:0.5rem 1rem;
}
.tag__box .tag__name{
    min-width: 170px;
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 0.5rem;
    text-wrap:nowrap;
    margin:0.5rem 1rem;

}

 h3.tit{
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1rem;
    font-size: 2rem;;
}
.swiper {
    width: 100%;
    height: 480px;
    padding-inline: 1%;
    margin-bottom: 10rem;

  }
  .swiper-wrapper {
    width: 100%;
    height: 100% !important;
  }
  .swiper-slide {
    height: 400px!important;
    box-shadow: 0 0 10px 2px var(--text-color-shadow);
    border-radius: 60px;
    display: flex;
    flex-direction: column;
    padding-inline: 3%;
    padding-block: 3%;
    margin-top: 1rem;
    color: var(--text-color);
  }
  
  .swiper-slide img {
    display: block;
    width: 90%;
    height: 160px;
    object-fit: cover;
    border-radius: 15px;
    margin: auto;
    display: block;
  }
  .swiper-slide .description__title {
    text-align: center;
    color: var(--primary-color);
    margin: 0.5rem 0;
  }
  .swiper-slide .sub__desc{
    color: var(--text-color);
  }
  .swiper-pagination{
    display: block!important;
  }
  .swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet, .swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet {
    width: 15px;
    height: 15px;
    background-color: var(--primary-color);
  }

/*************************/
@media screen and (max-width:1200px) {
    .category__menu{
        width: 70%;
    }
    .category__item:nth-child(2){
        left: 5%;
    }
    .category__item:nth-child(4){
        left: 9%;
    }
    .category__item:nth-child(6){
        left: 13%;
    }
    .category__item:nth-child(8){
        left: 17%;
    }
    .category__item:nth-child(9){
        left: 36%;
    }
}
@media screen and (max-width:1000px) {
    .container {
        width: 100%;
    }
    .category__menu {
        width: 80%;
    }
    .category__item:nth-child(1){
        right: 6%;
    }
    .category__item:nth-child(2){
        left: 13%;
    }
    .category__item:nth-child(3){
        right: 10%;
    }
    .category__item:nth-child(4){
        left: 17%;
    }
    .category__item:nth-child(5){
        right: 14%;
    }
    .category__item:nth-child(6){
        left: 21%;
    }
    .category__item:nth-child(7){
        right: 18%;
    }
    .category__item:nth-child(8){
        left: 25%;
    }
    .category__item:nth-child(9){
        left: 43%;
    }
    .post__image {
        margin: 1rem auto 3rem;
    }
    .detail__box {
        font-size: 1.3rem;
    }
    .subtitle__container {
        width: 95%;
    }
}
@media screen and (max-width:850px) {
    .box__middle .box__details {
        width: 40%;
    }
}
@media screen and (max-width:768px) {
    .category__menu {
        width: 100%;
    }
    .category__item:nth-child(2){
        left: 6%;
    }
    .category__item:nth-child(4){
        left: 10%;
    }
    .category__item:nth-child(6){
        left: 14%;
    }
    .category__item:nth-child(8){
        left: 18%;
    }
    .category__item:nth-child(9){
        left: 40%;
    }
}
@media screen and (max-width:600px) {
    .container {
        width: 100%;
    }
    .category__menu .category__item {
        width: 24%;
    }
    .category__item:nth-child(1){
        right: 4%;
    }
    .category__item:nth-child(2){
        left: 10%;
    }
    .category__item:nth-child(3){
        right: 8%;
    }
    .category__item:nth-child(4){
        left: 14%;
    }
    .category__item:nth-child(5){
        right: 12%;
    }
    .category__item:nth-child(6){
        left: 18%;
    }
    .category__item:nth-child(7){
        right: 16%;
    }
    .category__item:nth-child(8){
        left: 22%;
    }
    .category__item:nth-child(9){
        left: 42%;
    }
    .box__main{
        flex-direction: column-reverse;
        height: auto;
        align-items: center;
    }
    .box__main .image__container img {
        width: 90%;
        height: 150px;
        object-fit: contain;
        border-radius: 25px;
        display: block;
        margin: 1rem auto;
    }
    .box__main .image__container{
        width: 100%;
    }
    .box__main .description__container{
        width: 90%;
    }

    .box__middle {
        width: 90%;
        padding-inline:unset;
        padding-block: unset;
        margin-inline:auto;
    }
    .box__main .description__container p {
        width: 100%;
        -webkit-line-clamp: 5;
        margin-bottom: 1rem;
    }
    .box__middle .box__details {
        width: 45%;
    }
    .detail__box {
        font-size: 1.1rem;
    }
    .tag__box .tag__name {
        min-width: 130px;
    }
    .swiper-slide .sub__desc{
        padding: 0 0.5rem;
      }
}
@media screen and (max-width:500px) {
    .category__menu .category__item {
        width: 32%;
        font-size: 0.9rem;
    }
    .category__item:nth-child(1){
        right: 1%;
    }
    .category__item:nth-child(2){
        left:2%;
    }
    .category__item:nth-child(3){
        right: 4%;
    }
    .category__item:nth-child(4){
        left: 5%;
    }
    .category__item:nth-child(5){
        right: 7%;
    }
    .category__item:nth-child(6){
        left: 8%;
    }
    .category__item:nth-child(7){
        right: 10%;
    }
    .category__item:nth-child(8){
        left: 11%;
    }
    .category__item:nth-child(9){
        left: 35%;
    }
    .box__middle .box__details {
        width: 100%;
    }
    .box__middle .box__details img {
        margin-top: 1rem;
    }
    .detail__box{
        line-height: 35px;
    }
}
@media screen and (max-width:350px) {
    .category__menu .category__item {
        width: 35%;
    }
    .category__item:nth-child(even){
        left: 2%;
    }
    .category__item:nth-child(odd){
        right: 2%;
    }
}


@media only screen and (max-width: 800px) {
    .detail__box img{
        width:100%!important;
        height:unset!important;
        object-fit: contain!important;
    }
    
}