.text-box-home {
    position: absolute;
    inset: 20% 50% 30% 10%;
    background-color: rgb(255 209 209 / 6%);
    color: white;
    padding: 40px;
    text-align: center;
    max-width: 80%;
    z-index: 1;
    border: 1px solid #fffffe52;
    height: max-content;
    box-shadow: rgb(0 0 0 / 21%) 0px 2px 2px 0px;
    backdrop-filter: blur(5px);
}

.home-background .text-box-home-h2 {
    font-weight: 100;
    font-size: x-large;
}


.text-box-button {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    flex-direction: column;
    justify-content: space-evenly;
}

.button-1 {
    padding: 10px;
    border: 1px solid #ffffff85;
    margin: 20px auto;
    width: 50%;
}
.text-box-button .button-2{
    color: black;
}
.button-2 {
    padding: 10px;
    border: 1px solid #ffffff45;
    margin: 20px auto;
    width: 50%;
    background-color: #ffffffee;
    transition: 0.3s;
}

.button-2:hover {
    background-color: rgba(0, 0, 0, 0);
    border: 1px solid rgba(255, 255, 255, 0.205);
    color: #fff;
}

.text-box-home h2 {
    padding: 10px;
    font-weight: 200;
}


/* =======================three product========================== */

.frontpage-product-categories {
    width: 90vw;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    margin: 60px auto;
}
.frontpage-product-categories__head{
font-size: x-large;
font-weight: 100;
text-align: center;
margin-top: 60px;

}

.frontpage-product-categories__card {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    margin: 10px;
    width: 20vw;
}

.frontpage-product-categories .frontpage-product-categories__title {
    font-size: x-large;
    color: black;
    padding: 10px;
    margin-bottom: 10px;
    width: 100%;
    text-align: center;
    border: 1px solid #0000001c;

}

.frontpage-product-categories__image {
    object-fit: cover;
    aspect-ratio: 1/1;
    box-shadow: rgb(0 0 0 / 22%) 0px 6px 12px;
}

/* Home section two ===============================================================================*/

.home-heading {
    width: 100%;
    height: 30vh;
    /* padding: 20px; */
    background-color: var(--w-global-color-bg-98-white);

}

.home-heading .home-heading-h2 {
    margin: 50px;
    font-weight: 150;
    font-size: xx-large;
    text-align: center;
    align-content: center;
}

.fade-text {
    animation: fadeInAnimationText both;
    animation-timeline: view();
}

@keyframes fadeInAnimationText {
    0% {
        transform: translateX(-50px) scale(0.3);
        opacity: 0;
        filter: blur(20px);
    }

    35%,
    65% {
        transform: translateX(0) scale(1);
        opacity: 1;
        filter: blur(0);
    }

    100% {
        filter: blur(20px);
    }
}

/* ====================================== colleague ========================================== */

.colleague {
    width: 100%;
    height: 55vh;
    align-content: center;
    margin: 10vh 0;
    background: #000;
}

.colleague-child {
    display: flex;
    margin: 0 auto;
    width: 80%;
    flex-wrap: wrap;
}

.colleague-child img:hover {
    filter: drop-shadow(0px 20px 3px rgb(255, 254, 254));
}


.colleague-child .alink {
    object-fit: contain;
    width: 25%;
    padding: 30px;
    align-content: center;
}



/* home section four */

.section-four-head {
    text-align: center;
}

.section-four-head h2 {
    font-weight: 200;
    font-size: xx-large;
}

.product-list {
    display: flex;
    justify-content: center;
}

/* home section five post card */
/* ================================================================= */
.last-post-in-front h2 {
    font-size: xx-large;
    padding: 10px;
    text-align: center;
    font-weight: 100;

}

.latest-posts {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.post-card {
    background-color: #fff;
    aspect-ratio: 1/1;
    width: 20%;
    transition: all 0.1s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    margin: 15px;
}

.post-card:hover {
    background-color: #f8f6fb;
    border: none;
    box-shadow: none;
    border-radius: 8px;

    .post-creative-header {
        filter: blur(1px);

    }
}

.post-creative-header {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    align-items: center;

}

.author-avatar {
    width: 15%;
    height: auto;
}

.post-card .post-creative-footer {
    padding: 15px;
    font-size: large;
    color: black;
    height: 80px;
}

.post-creative-figue {
    overflow: hidden;
}

.post-card-thumbnail {
    width: 100%;
    transform: scale(1.1);
    /* زوم اولیه */
    transition: transform 0.4s ease;
    display: block;
    aspect-ratio: 1;
    object-fit: cover;
}

.post-card-thumbnail:hover {
    transform: scale(1);
}

/* post card animation ============================= */
.animation-style {
    opacity: 0;
    animation: sss 1s ease-out forwards;
    animation-delay: 0.3s;
}

.fade-in {
    animation: boomIn both;
    animation-timeline: view();
    animation-duration: 1.2s;
}

@keyframes boomIn {
    0% {
        transform: translateY(-100px) scale(0.3);
        /* height: 200px; */
        opacity: 0;
        filter: blur(30px);
    }

    40% {
        /* height: auto; */
        transform: translateY(0) scale(1.05);
        opacity: 1;
        filter: blur(0);
    }

    60% {
        transform: scale(1);
        opacity: 1;

    }

    80% {
        transform: scale(1.01);
    }

    100% {
        transform: scale(1);
        filter: none;
        opacity: none;
    }
}

/* ======================================= peace-section ======================================= */

.peace-section {
    width: 100%;
    height: 60vh;
    margin: 10vh 0;
    position: relative;
    
}


.peace-section .peace-section-h2 {
    font-weight: 300;
}

.peace-section .peace-section-p {
    font-weight: 200;
    color: #ffffff;
}

.peace-section-text {
    display:flex;
    flex-direction: column;
    position: absolute;
    inset: 20% 50% 30% 10%;
    background-color: rgba(255, 255, 255, 0.199);
    color: rgb(0, 0, 0);
    padding: 20px;
    text-align: center;
    max-width: 80%;
    z-index: 1;
        border: 1px solid #fffffe52;
    height: max-content;
      box-shadow: rgb(0 0 0 / 21%) 0px 2px 2px 0px;
}
.peace-section-text a{
    color: black;
}

.peace-section img {
    height: 60vh;
    width: 100vw;
    object-fit: cover;
}

.fade-left {
    animation: fadeInAnimationLeft both;
    animation-timeline: view();
}

@keyframes fadeInAnimationLeft {
    0% {
        transform: translateX(-100px) scale(0.3);
        opacity: 0;
        filter: blur(10px);
    }

    45%,
    65% {
        transform: translateX(0) scale(1);
        opacity: 1;
        filter: blur(0);
    }

    100% {
        filter: blur(10px);
    }
}

@media (max-width: 768px) {

    .banner-test::before{
        background-size: inherit;
    }
    .text-box-home {
        inset: 20% 10% 25% 10%;
        padding: 25px;
        backdrop-filter: blur(15px);
    }

    .text-box-home h2 {
        line-height: 40px;
        font-size: larger;
        font-weight: 300;
    }


    .home-heading .home-heading-h2 {
        font-size: x-large;
    }

    .colleague-child {


        width: 100%;
    }
    
    .colleague-child .alink{
        width: 50%;
    }

    .home-heading h2 {
        font-size: large;
    }

    /*======================= post card =======================*/
    .post-card {
        width: 90vw;
    }


    .peace-section-text {
        inset: 20% 10% 25% 10%;
        backdrop-filter: blur(15px);
    }

    .peace-section-text h2 {
        line-height: 40px;
        font-size: larger;
        font-weight: 300;
    }

    .frontpage-product-categories__card {
        width: 100vw;
    }
}