/* assets/css/frontend.css */
.epmg-wrapper {
    width: 100%;
}

.epmg-grid {
    display: grid;
    gap: 30px;
}

.epmg-grid-1 { grid-template-columns: repeat(1, 1fr); }
.epmg-grid-2 { grid-template-columns: repeat(2, 1fr); }
.epmg-grid-3 { grid-template-columns: repeat(3, 1fr); }
.epmg-grid-4 { grid-template-columns: repeat(4, 1fr); }
.epmg-grid-5 { grid-template-columns: repeat(5, 1fr); }
.epmg-grid-6 { grid-template-columns: repeat(6, 1fr); }

.epmg-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.epmg-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.epmg-thumbnail {
    position: relative;
    overflow: hidden;
}

.epmg-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.epmg-item:hover .epmg-thumbnail img {
    transform: scale(1.05);
}

.epmg-categories {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
}

.epmg-content {
    padding: 20px;
}

.epmg-title {
    margin: 0 0 15px 0;
    font-size: 20px;
    line-height: 1.4;
}

.epmg-title a {
    color: #333;
    text-decoration: none;
}

.epmg-title a:hover {
    color: #0073aa;
}

.epmg-excerpt {
    margin-bottom: 15px;
    color: #666;
    line-height: 1.6;
}

.epmg-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #999;
    margin-bottom: 15px;
}

.epmg-meta i {
    margin-right: 5px;
}

.epmg-button {
    display: inline-block;
    background: #0073aa;
    color: #fff;
    padding: 8px 20px;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.epmg-button:hover {
    background: #005a87;
    color: #fff;
}

/* Responsive */
@media (max-width: 1024px) {
    .epmg-grid-3,
    .epmg-grid-4,
    .epmg-grid-5,
    .epmg-grid-6 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .epmg-grid {
        grid-template-columns: 1fr !important;
    }
}