.display-all-posts-outer-container,
.display-all-posts-outer-container * {
    box-sizing: border-box;
}

.display-all-posts-outer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin: auto;
    flex-direction: column;
    height: 100%;
}

.display-all-posts-inner-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 100px;
    width: 100%;
    margin: auto;
    flex-direction: row;
    height: 100%;
}

.dap .left {
    width: 65%;
}

.dap .left.alone {
    width: 100%;
    max-width: 100%;
}

.dap .right {
    width: 30%;
    padding: 0px;
    height: 100%;
}

.dap .right .inner {
    background: #F4F8FB;
    padding: 5px 45px;
    max-width: 600px;
    margin-left: auto;
}


.dap .inner {
    width: 100%;
}

.dap .posts {
    display: flex;
    flex-direction: row;
    justify-content: start;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    padding: 0;
}

.dap .post {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0;
    width: calc(100% / 3 - 14px);
}

.dap .left.alone .post {
    width: calc(100% / 5 - 14px);
}

.dap .image {
    width: 100%;
    height: 190px;
}

.dap .image img {
    width: 100%;
    max-width: 100%;
    object-fit: cover;
    object-position: center;
    height: auto;
    max-height: 100%;
}

.dap .post-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    background: #F2F2F2;
    padding: 10px;
}

.dap .post-date {
    font-size: 12px;
    color: #686868;
    font-weight: 600;
    text-transform: uppercase;
}

.dap .post-title a {
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    color: #000;
}

.dap .post-author a {
    font-size: 12px;
    color: #15A393;
    text-transform: uppercase;
    font-weight: 600;
    text-decoration: none;
}

.dap .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    width: 100%;
    height: 50px;
    max-height: 50px;
}

.dap .pagination {
    display: flex;
    justify-content: start;
    align-items: center;
    flex-direction: row;
    width: 100%;
    height: 50px;
    max-height: 50px;
}

.dap .pagination a {
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    color: #000;
    border: 1px solid #c7c7c7;
    margin: 4px;
    display: flex;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
}

.dap .pagination span {
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    color: #fff;
    background-color: #15A393;
    border: 1px solid #15A393;
    margin: 4px;
    display: flex;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
}

.dap .pagination .arrow-left,
.dap .pagination .arrow-right {
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    color: #000;
    border: 1px solid #c7c7c7;
    margin: 4px;
    display: flex;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
}

.dap .pagination .arrow-left img {
    transform: rotate(180deg);
}


.dap .search-results {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    height: fit-content;
    max-height: 50px;
}

.dap .search {
    position: relative;
    display: block;
    width: 100%;
    margin: auto;
    margin-top: 30px;
    margin-bottom: 30px;
}

.dap .search input {
    width: 100%;
    height: 44px;
    max-height: 44px;
    border-radius: 30px;
    border: none;
    padding: 0 10px;
    font-size: 14px;
    font-weight: 500;
    color: #000;
}

.dap .search input:focus {
    outline: none;
}

.dap .search button {
    background: #15A393;
    border-radius: 30px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    cursor: pointer;
    position: absolute;
    right: 5px;
    top: 2px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dap .search button img {
    width: 20px;
    height: 20px;
}

.dap .right h3 {
    font-size: 15px;
    font-weight: 800;
    color: white;
    background: #031036;
    width: 100%;
    padding: 15px 40px;
    position: relative;
}

.dap .right h3:before {
    content: "";
    width: 5px;
    height: 22px;
    background: #15A393;
    display: block;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.dap .popular-posts {
    list-style: none;
    padding: 0 0 0 40px;
    margin: auto;
}


.dap .popular-posts .post-date {
    font-size: 14px;
}

.dap .popular-posts .post-title a {
    font-size: 17px;
}

.dap .popular-posts .post-author a {
    font-size: 13px;
}

.dap .popular-post {
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: start;
    width: 100%;
    border-bottom: 1px solid #DBDBDB;
    padding-bottom: 25px;
    margin-bottom: 25px;
}

.dap .popular-post:last-child {
    border-bottom: none;
}

.dap.mobile .display-all-posts-inner-container {
    flex-direction: column-reverse;
    gap: 10px;
}

.dap.mobile .right {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 100%;
    min-height: unset;
    padding: 0 2rem;
}

.dap.mobile .right .inner {
    background: white;
    padding: 0;
}

.dap.mobile .right .popular-posts-section {
    display: none;
}

.dap.mobile .right .search {
    margin-bottom: 0px;
}

.dap.mobile .right .search input {
    width: 100%;
    border: 1px solid #dfdfdf;
}

.dap.mobile .posts {
    padding: 0 30px;
    flex-direction: column;
}

.dap.mobile .post {
    width: 100%;
}

@media (max-width: 1300px) {
    .dap .left {
        width: 100%;
    }

    .dap .right {
        width: 100%;
        padding: 0;
        padding-right: 6rem;
    }

    .dap .right .inner {
        width: 100%;
        max-width: 100%;
    }

    .display-all-posts-inner-container {
        flex-direction: column;
    }

    .dap .posts {
        padding-right: 6rem;
    }
}


.filters-form {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 30px;
}

.category-filter select {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
    font-size: 16px;
    min-width: 220px;
    cursor: pointer;
    width: 100%;
    margin-top: 17px;
}

.text-search {
    position: relative;
    display: flex;
    align-items: center;
}

.text-search input {
    padding: 12px 45px 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    width: 100%;
    max-width: 300px;
}

.text-search .search-button {
    position: absolute;
    right: 5px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .filters-form {
        flex-direction: column;
        align-items: stretch;
    }

    .category-filter select,
    .text-search input {
        max-width: 100%;
    }
}