/* container */
.pendaftaran-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* each card layout: left logo | center content | right actions */
.pendaftaran-card {
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid #eef0f2;
    border-radius: 12px;
    padding: 18px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(22, 28, 37, 0.03);
}

/* left logo */
.card-left {
    flex: 0 0 80px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.card-org-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

/* center content */
.card-body {
    flex: 1 1 auto;
    min-width: 0;
}

.batch-text {
    color: #6b7280;
    font-size: 13px;
    margin-bottom: 6px;
}

.card-title {
    font-size: 18px;
    margin: 0 0 6px;
    font-weight: 600;
    color: #111827;
}

.card-title a {
    color: inherit;
    text-decoration: none;
}

.card-subtitle {
    color: #6b7280;
    margin-bottom: 10px;
    font-size: 14px;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;       /* allow wrapping */
    gap: 8px 12px;         /* spacing between pills */
    justify-content: flex-start;
}

.card-meta .meta-pill {
    flex: 0 0 auto;        /* no stretching, shrink to fit content */
    display: inline-flex;  /* align icon + text neatly */
    align-items: center;
    padding: 6px 12px;
    background: #f5f7fa;
    border-radius: 20px;
    font-size: 14px;
    white-space: nowrap;   /* prevent breaking inside pill */
}

.meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f3f4f6;
    color: #374151;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 13px;
}

.meta-pill svg {
    display: block;
    color: #6b7280;
    flex: 0 0 14px;
}

/* right actions block */
/* Right actions block */
.card-actions {
    flex: 0 0 180px; /* wider column */
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    row-gap: inherit;
}

.action-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%; /* ensures children fill the column */
}

/* Status label */
.status-label {
    display: block;
    width: 100%;
    text-align: center;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-open {
    background-color: #e6f9ed;
    color: #2e7d32;
    border: 1px solid #2e7d32;
}

.status-closed {
    background-color: #fdecea;
    color: #c62828;
    border: 1px solid #c62828;
}

/* Detail button */
.btn-detail {
    display: block;
    width: 100%;
    text-align: center;
    background: #0b74ff;
    color: #fff;
    padding: 10px 12px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
}

/* responsive */
@media (max-width: 900px) {
    .pendaftaran-card {
        flex-direction: column;
        align-items: stretch;
    }

    .card-left {
        order: 0;
        display: flex;
        justify-content: flex-start;
        padding-bottom: 8px;
    }

    .card-actions {
        order: 2;
        align-items: flex-start;
        width: auto;
    }

    .card-body {
        order: 1;
    }
}

/* Pagination */
.pagination {
    display: flex;
    gap: 8px;
    margin-top: 20px;
    justify-content: center;
}

.pagination a,
.pagination span {
    padding: 6px 12px;
    border-radius: 6px;
    background: #f5f7fa;
    text-decoration: none;
    color: #333;
    font-size: 14px;
}

.pagination .current {
    background: #0073aa;
    color: #fff;
    font-weight: bold;
}
