.post-search-section {
    width: 100%;
    font-family: 'Roboto', sans-serif;
}

.post-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 30px;
}

.post-filter-outer {
    flex: 1 1 auto;
    min-width: 0;
}

.post-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px 2px;
}

.post-filter::-webkit-scrollbar {
    display: none;
}

.post-filter button {
    flex: 0 0 auto;
    white-space: nowrap;
    font-family: 'Roboto', sans-serif;
    border: none;
    background: transparent;
    color: #444444;
    padding: 10px 20px;
    border-radius: 100px;
    font-size: clamp(14px, 1.4vw, 20px);
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
    transition: .25s;
}

.post-filter button:hover,
.post-filter button.active {
    background: #F5823233;
    color: #F58232;
}

.post-search {
    position: relative;
    flex: 0 0 auto;
    width: 280px;
    max-width: 100%;
    min-width: 0;
}

.post-search-input {
    display: block;
    width: 100%;
    box-sizing: border-box !important;
    height: 48px;
    padding: 0 44px 0 24px !important;
    margin: 0;
    border: 1px solid #E0E0E0;
    border-radius: 100px;
    font-family: 'Roboto', sans-serif;
    font-size: clamp(14px, 1.1vw, 15px);
    line-height: 48px;
    color: #333333;
    outline: none;
    transition: border-color .2s;
    -webkit-appearance: none;
    appearance: none;
}

.post-search-input::placeholder {
    color: #9B9B9B;
}

.post-search-input:focus {
    border-color: #F58232;
}

.post-search-icon {
    position: absolute;
    top: 50%;
    right: 18px;
    transform: translateY(-50%);
    color: #9B9B9B;
    pointer-events: none;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.post-card {
    border: 1px solid #1D4D5E;
    border-radius: 24px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s ease;
}

.post-img-link {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.post-img,
.post-img-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.post-img-placeholder { background: #f2f2f2; }

.post-card-body {
    padding: 16px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.post-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
}

.post-date {
    font-family: 'Roboto', sans-serif;
    color: #444444;
    font-size: clamp(13px, 1.1vw, 16px);
}

.post-cat {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: clamp(13px, 1.1vw, 16px);
    line-height: 100%;
    letter-spacing: 0%;
    background: #F5823226;
    color: #F58232;
    padding: 4px 14px;
    border-radius: 999px;
    white-space: nowrap;
}

.post-card-title {
    margin: 0;
    font-family: 'Roboto', sans-serif !important;
    font-weight: 600 !important;
    font-size: clamp(20px, 2.2vw, 32px);
    line-height: 150%;
    letter-spacing: 0.2%;
    text-transform: capitalize;
}

.post-card-title a { color: #1a1a1a; text-decoration: none; font-weight: 500 !important; }
.post-card-title a:hover { color: #F58232; }

.post-learn-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: clamp(16px, 1.6vw, 20px);
    line-height: 150%;
    letter-spacing: 2%;
    color: #F58232;
    text-decoration: none;
    margin-top: auto;
}

.post-learn-more .post-arrow { transition: transform .2s ease; }
.post-learn-more:hover .post-arrow { transform: translateX(3px); }

.post-empty {
    text-align: center;
    color: #888;
    margin: 40px 0;
    font-family: 'Roboto', sans-serif;
}

.post-loadmore-wrap {
    display: flex;
    justify-content: center;
    margin-top: 34px;
}

.post-loadmore-btn {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: clamp(16px, 1.8vw, 24px);
    line-height: 150%;
    letter-spacing: 2%;
    border: 1px solid #F58232;
    background: transparent;
    color: #F58232;
    padding: 10px 30px;
    border-radius: 999px;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.post-loadmore-btn:hover { background: #F58232; color: #fff; }

@media (max-width: 980px) {
    .post-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .post-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .post-search {
        width: 100%;
        order: 1;
    }

    .post-filter-outer {
        order: 2;
        width: 100vw;
        max-width: 100vw;
        position: relative;
        left: 50%;
        margin-left: -50vw;
        overflow: hidden;
    }

    .post-filter {
        box-sizing: border-box;
        padding: 4px 20px 10px;
        mask-image: linear-gradient(to right, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%);
        -webkit-mask-image: linear-gradient(to right, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%);
    }
}

@media (max-width: 600px) {
    .post-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    .post-filter button {
        font-size: 16px;
        padding: 8px 16px;
    }

    .post-search-input {
        font-size: 14px;
        padding: 10px 36px 10px 22px !important;
        height: auto;
        line-height: normal;
    }
}