/* أنماط إضافة IUPEP */
.iupep-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.iupep-posts-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
}

.iupep-post-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    flex-basis: calc(25% - 20px);
    display: flex;
    flex-direction: column;
}

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

.iupep-post-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

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

.iupep-post-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.iupep-post-title {
    margin: 0 0 15px 0;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 600;
}

.iupep-post-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 5px;
    border-radius: 4px;
}

.iupep-post-title a:hover {
    color: #3498db;
    background-color: rgba(52, 152, 219, 0.1);
}

.iupep-post-meta {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.iupep-read-more {
    background: linear-gradient(145deg, #3498db, #2980b9);
    color: white;
    padding: 8px 15px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.iupep-read-more:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: all 0.5s ease;
}

.iupep-read-more:hover:before {
    left: 100%;
}

.iupep-read-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(52, 152, 219, 0.4);
}

.iupep-category {
    background: linear-gradient(145deg, #2ecc71, #27ae60);
    color: white;
    padding: 8px 15px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    box-shadow: 0 4px 8px rgba(46, 204, 113, 0.3);
    transition: all 0.3s ease;
}

.iupep-category:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(46, 204, 113, 0.4);
    color: white;
}

.iupep-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.iupep-pagination button {
    background: linear-gradient(145deg, #34495e, #2c3e50);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.iupep-pagination button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.iupep-pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.iupep-page-info {
    font-weight: 600;
    color: #34495e;
}

.iupep-no-posts {
    text-align: center;
    font-size: 18px;
    color: #7f8c8d;
    padding: 40px;
}

/* تصميم متجاوب */
@media (max-width: 1200px) {
    .iupep-post-card {
        flex-basis: calc(33.333% - 20px);
    }
}

@media (max-width: 900px) {
    .iupep-post-card {
        flex-basis: calc(50% - 20px);
    }
}

@media (max-width: 600px) {
    .iupep-post-card {
        flex-basis: 100%;
    }
    
    .iupep-post-meta {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .iupep-read-more,
    .iupep-category {
        width: 100%;
        text-align: center;
    }
}