/* eHarakah Edisi Automatik 1.0.0 — isolated component styling. */
.eh-editions-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(var(--eh-editions-cols, 4), minmax(0, 1fr));
    gap: 24px;
    margin: 0;
    padding: 0;
}
.eh-editions-card {
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e9edf3;
    border-radius: 16px;
    box-shadow: 0 9px 25px rgba(20, 32, 50, .06);
    transition: box-shadow .2s ease, transform .2s ease;
}
.eh-editions-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(20, 32, 50, .13); }
.eh-editions-cover {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    aspect-ratio: 3 / 4;
    padding: 14px;
    background: #f6f8fb;
    text-decoration: none;
}
.eh-editions-img { display: block; width: 100%; height: 100% !important; max-width: 100%; object-fit: contain; object-position: center; }
.eh-editions-placeholder { text-align: center; font-size: 13px; color: #6b7280; padding: 18px; }
.eh-editions-body { display: flex; flex: 1 1 auto; flex-direction: column; gap: 9px; padding: 16px; }
.eh-editions-date { color: #6b7280; font-size: 12px; line-height: 1.4; }
.eh-editions-title { margin: 0; font-size: 17px; font-weight: 750; line-height: 1.35; color: #18212d; }
.eh-editions-title a { color: inherit; text-decoration: none; }
.eh-editions-title a:hover, .eh-editions-title a:focus-visible { color: #d31928; }
.eh-editions-button {
    display: block;
    margin-top: auto;
    border: 1px solid #d31928;
    border-radius: 9px;
    padding: 11px 14px;
    color: #d31928;
    background: #fff;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none !important;
}
.eh-editions-button:hover, .eh-editions-button:focus-visible { background: #d31928; color: #fff; }
.eh-editions-empty { color: #667085; font-size: 15px; line-height: 1.5; }
/* Elementor wrapper inside the eHarakah homepage's existing gallery container. */
.ehs-page .ehs-editions > .elementor-element,
.ehs-page .ehs-editions .elementor-widget-shortcode { width: 100% !important; max-width: 100% !important; }
@media (max-width: 1024px) {
    .eh-editions-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
}
@media (max-width: 600px) {
    .eh-editions-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .eh-editions-cover { aspect-ratio: 3 / 4; }
}
@media (prefers-reduced-motion: reduce) {
    .eh-editions-card { transition: none; }
}
