.portfolio-show {
    text-align: center;
    padding: 50px;
}

.portfolio-show>h1 {
    color: #2D2D2D;
    font-family: "extra_bold";
    font-size: 25px;
}

.portfolio-show>p {
    color: #7D7D7D;
    font-family: "medium";
}

.search-portfolio {
    display: flex;
    align-items: stretch;
    gap: 10px;
    width: 70%;
    margin: 40px auto;
    justify-content: center;
}

.search-portfolio input {
    width: 80%;
    background-color: transparent;
    border: none;
    padding: 5px 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
    border-radius: 15px;
}

.search-portfolio button {
    background-color: #FFD301;
    color: #2D2D2D;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: center;
    border: none;
    padding: 5px 10px;
}

.search-portfolio img {
    width: 20px;
}

.list-agencies {
    display: flex;
    align-items: start;
    margin-top: 50px;
    justify-content: space-evenly;
    flex-wrap: wrap-reverse;
}

.list-agencies>:first-child {
    width: 45%;
}

.list-agencies>:last-child {
    width: 50%;
    min-width: 550px;
}

.list-agencies>:last-child svg {
    width: 100%;
}

.list-agencies h2 {
    color: #2D2D2D;
    font-family: "bold";
    font-size: 20px;
}

.list-agencies table {
    width: 100%;
    border-collapse: collapse;
    text-align: right;
    margin-top: 20px;
}

.list-agencies th,
.list-agencies td {
    padding: 12px;
    border: 1px solid #dee2e6;
    /* رنگ مرز */
}

.list-agencies th {
    background-color: #f8f9fa;
    /* رنگ پس‌زمینه سرستون */
    color: #495057;
    /* رنگ متن سرستون */
}

.list-agencies tr:nth-child(even) {
    background-color: #f2f2f2;
    /* رنگ پس‌زمینه ردیف‌های زوج */
}

.list-agencies tr:nth-child(odd) {
    background-color: #ffffff;
    /* رنگ پس‌زمینه ردیف‌های فرد */
}

/* استایل برای ریسپانسیو */
@media (max-width: 768px) {
    .list-agencies table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}


.portfolio {
    padding: 50px;
}

.portfolio h2 {
    color: #2D2D2D;
    font-family: "extra_bold";
    font-size: 20px;
    text-align: right;
}

.portfolio>p {
    font-family: "medium";
    font-size: 14px;
    color: #2D2D2D;
    opacity: 0.8;
    text-align: right;
}

.all-portfolio {
    margin-top: 50px;
    display: flex;
    justify-content: space-evenly;
    justify-content: center;
    gap: 30px;
    justify-content: space-evenly;
    flex-wrap: wrap;
}

.object-portfolio {
    position: relative;
    width: 30%;
    margin: 30px 0;
}

.object-portfolio>img {
    width: 100%;
    border-radius: 30px;
}

.object-portfolio>div {
    position: absolute;
    background-color: #FFFFFF;
    bottom: -30px;
    padding: 10px 20px;
    border-radius: 20px;
    width: 70%;
    right: 15%;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

.object-portfolio>div img {
    width: 20px;
}

.object-portfolio>div>span {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    justify-content: space-evenly;
}

.object-portfolio>div>span>span {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    gap: 10px;
}

@media screen and (max-width:1050px) {
    .object-portfolio {
        width: 45%;
    }
}

@media screen and (max-width:1050px) {
    .object-portfolio {
        width: 100%;
    }
}

.object-portfolio>div>span span {
    color: #495057;
}

@media screen and (max-width:768px) {
    .portfolio-show {
        padding: 20px;
    }

    .search-portfolio {
        width: 100%;
        flex-wrap: wrap;
    }

    .search-portfolio>*,
    .search-portfolio input {
        width: 100%;
    }

    .list-agencies>:last-child {
        display: none;
    }

    .list-agencies>:first-child {
        width: 100%;
        text-align: center;
    }

    table {
        margin: 0 auto;
        text-align: center;
    }

    .list-agencies th {
        width: 33%;
    }
    .all-portfolio{
        margin-top: 0;
    }
    .portfolio{
        padding: 0;
        margin-top: 50px;
    }
    .portfolio h2, .portfolio p{
        text-align: center;
    }
}