.posts-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f4f7f3 100%);
    min-height: 100vh;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    position: relative;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #6bbf59, #08a045);
    border-radius: 2px;
}

.section-header p {
    font-size: 1.2rem;
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto;
}

.category-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 24px;
    border: 2px solid #6bbf59;
    background: transparent;
    color: #6bbf59;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.filter-btn:hover,
.filter-btn.active {
    background: #6bbf59;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.post-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.post-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.post-thumbnail {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    position: relative;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.1);
}

.post-thumbnail::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
}

.post-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 2;
    color: #2ecc71;
    border: 2px solid #2ecc71;
}

.post-content {
    padding: 30px;
}

.post-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 12px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-excerpt {
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #ecf0f1;
    font-size: 0.9rem;
    color: #95a5a6;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #6bbf59;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.read-more-btn:hover {
    color: #08a045;
    transform: translateX(5px);
}

.no-thumbnail {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Pagination Styles */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 60px;
}

.pagination {
    display: flex;
    gap: 10px;
    align-items: center;
}

.page-link {
    padding: 12px 16px;
    border: 2px solid #6bbf59;
    background: transparent;
    color: #08a045;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.page-link:hover,
.page-link.active {
    background: #6bbf59;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.page-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Search and Filter Section */
/* Search and Filter Section */
.search-filter-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.search-box {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    min-width: 200px;
    /* Dikurangi dari 300px */
    width: 100%;
}

.search-input:focus {
    outline: none;
    border-color: #6bbf59;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-btn {
    padding: 15px 30px;
    background: #6bbf59;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    /* Mencegah text button wrap */
}

.search-btn:hover {
    background: #5aa049;
    /* Sedikit lebih gelap untuk hover effect */
    transform: translateY(-2px);
}

/* Tablet */
@media (max-width: 992px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 800px;
    }

    .search-filter-section {
        padding: 25px;
    }

    .search-input {
        min-width: 180px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .section-header h2 {
        font-size: 2.5rem;
    }

    .posts-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        gap: 20px;
    }

    .category-filter {
        gap: 10px;
    }

    .filter-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .search-filter-section {
        padding: 20px;
        margin-bottom: 30px;
    }

    .search-box {
        flex-direction: column !important;
        gap: 12px;
    }

    .search-input {
        min-width: auto !important;
        width: 100% !important;
        padding: 12px 16px;
        font-size: 0.95rem;
    }

    .search-btn {
        padding: 12px 20px;
        width: 100%;
        justify-content: center;
        display: flex;
        align-items: center;
        gap: 8px;
    }
}

/* Untuk HP yang sangat kecil */
@media (max-width: 480px) {
    .search-filter-section {
        padding: 15px;
        margin-left: 10px;
        margin-right: 10px;
    }

    .search-input {
        padding: 10px 14px;
        font-size: 0.9rem;
    }

    .search-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}

/* Untuk HP landscape atau layar sangat lebar */
@media (max-width: 768px) and (orientation: landscape) {
    .search-box {
        flex-direction: row;
    }

    .search-input {
        min-width: 200px;
    }

    .search-btn {
        width: auto;
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading State */
.loading {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
    font-size: 1.1rem;
}

.no-results {
    text-align: center !important;
    padding: 60px 20px;
    color: #7f8c8d;
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.no-results p {
    font-size: 1.1rem;
}