/* ==========================================================================
   TEK-UP Certifications Plugin - Strictly Plugin-Only Styles
   ========================================================================== */
.tekup-cert-widget,
.tekup-all-certs-container {
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Roboto", "Helvetica Neue", sans-serif;
    box-sizing: border-box;
}

.tekup-cert-widget {
    background: #ffffff;
    border: 1px solid #edebe9;
    border-top: 3px solid #0067b8;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1.6px 3.6px 0 rgba(0, 0, 0, 0.08), 0 0.3px 0.9px 0 rgba(0, 0, 0, 0.05);
}

.tekup-cert-widget .cert-widget-header {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f3f2f1;
}

.tekup-cert-widget .cert-badge {
    display: inline-block;
    background: #eff6fc;
    color: #005a9e;
    font-size: 11.5px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.tekup-cert-widget .cert-widget-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #1b1a19;
    line-height: 1.25;
}

.tekup-cert-widget .cert-widget-header p {
    margin: 4px 0 0;
    font-size: 13px;
    color: #605e5c;
    line-height: 1.45;
}

.cert-table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table.tekup-cert-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    background: #ffffff;
    margin: 0;
}

table.tekup-cert-table thead th {
    background: #faf9f8;
    color: #323130;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    text-align: left;
    padding: 10px;
    border-bottom: 1px solid #edebe9;
    white-space: nowrap;
}

table.tekup-cert-table tbody td {
    padding: 9px 10px;
    border-bottom: 1px solid #f3f2f1;
    color: #323130;
    vertical-align: middle;
}

table.tekup-cert-table tbody tr:hover {
    background: #f3f2f1;
}

table.tekup-cert-table td.td-date {
    color: #605e5c;
    font-size: 12px;
    white-space: nowrap;
}

table.tekup-cert-table td.td-student {
    font-weight: 600;
    color: #1b1a19;
    text-transform: capitalize;
}

table.tekup-cert-table td.td-cert .cert-pill {
    display: inline-block;
    background: #eff6fc;
    color: #005a9e;
    border: 1px solid #c7e0f4;
    font-weight: 600;
    font-size: 11.5px;
    padding: 2px 8px;
    border-radius: 4px;
    line-height: 1.35;
}

.cert-widget-footer {
    margin-top: 16px;
}

.cert-widget-footer .cert-all-btn {
    display: block;
    width: 100%;
    padding: 9px 16px;
    background: #0067b8;
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    box-sizing: border-box;
    transition: background 0.15s ease;
}

.cert-widget-footer .cert-all-btn:hover {
    background: #005a9e;
}

/* Archive & Advanced Search (ALL Page) */
.tekup-all-certs-container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
}

.tekup-all-certs-container .cert-archive-intro .subtitle {
    font-size: 15px;
    color: #605e5c;
    margin-bottom: 16px;
}

form.tekup-advanced-search {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    gap: 14px;
    background: #ffffff;
    border: 1px solid #edebe9;
    padding: 18px;
    border-radius: 8px;
    box-shadow: 0 1.6px 3.6px 0 rgba(0, 0, 0, 0.06);
    margin-bottom: 20px;
    align-items: end;
}

@media (max-width: 820px) {
    form.tekup-advanced-search {
        grid-template-columns: minmax(0, 1fr);
    }
}

form.tekup-advanced-search label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: #323130;
    margin-bottom: 6px;
}

form.tekup-advanced-search input,
form.tekup-advanced-search select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #8a8886;
    border-radius: 4px;
    font-size: 14px;
    background: #ffffff;
    color: #1b1a19;
    box-sizing: border-box;
}

form.tekup-advanced-search input:focus,
form.tekup-advanced-search select:focus {
    outline: none;
    border-color: #0067b8;
    box-shadow: inset 0 -2px 0 0 #0067b8;
}

form.tekup-advanced-search .search-actions {
    display: flex;
    gap: 8px;
}

form.tekup-advanced-search .btn-primary {
    padding: 9px 20px;
    background: #0067b8;
    color: #ffffff;
    border: 1px solid #0067b8;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}

form.tekup-advanced-search .btn-primary:hover {
    background: #005a9e;
}

form.tekup-advanced-search .btn-reset {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    color: #323130;
    border: 1px solid #8a8886;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}

form.tekup-advanced-search .btn-reset:hover {
    background: #f3f2f1;
}

.tekup-cert-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.tekup-cert-pagination .page-num {
    padding: 6px 12px;
    border: 1px solid #d2d0ce;
    border-radius: 4px;
    color: #323130;
    font-weight: 600;
    text-decoration: none;
    background: #ffffff;
    font-size: 13.5px;
}

.tekup-cert-pagination .page-num:hover {
    background: #f3f2f1;
}

.tekup-cert-pagination .page-num.is-active {
    background: #0067b8;
    color: #ffffff;
    border-color: #0067b8;
}

/* تنسيق موحد لعناوين الشهادات وشارة النتيجة (100/100) على سطر واحد */
.cert-pill-group {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

table.tekup-cert-table td.td-cert .cert-pill {
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.cert-score-badge {
    display: inline-block;
    background: #dff6dd;
    color: #107c10;
    border: 1px solid #9fd89f;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
}

/* تنسيق Barre de recherche في صفحة ALL */
form.tekup-top-searchbar {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto !important;
}

@media (max-width: 820px) {
    form.tekup-top-searchbar {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}