/**
 * NS Profile Builder - Widget Styles
 */

/* ==========================================================================
   Tables (Education & Experience)
   ========================================================================== */

.ns-education-table-wrapper,
.ns-experience-table-wrapper {
    margin-block-end: 2rem;
}

.ns-education-table,
.ns-experience-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ns-education-table thead th,
.ns-experience-table thead th {
    background: #f8f9fa;
    padding: 1rem;
    text-align: start;
    font-weight: 600;
    border-block-end: 2px solid #dee2e6;
}

.ns-education-table tbody td,
.ns-experience-table tbody td {
    padding: 1rem;
    border-block-end: 1px solid #dee2e6;
}

.ns-education-table tbody tr:last-child td,
.ns-experience-table tbody tr:last-child td {
    border-block-end: none;
}

.ns-education-table tbody tr:hover,
.ns-experience-table tbody tr:hover {
    background: #f8f9fa;
}

.ns-empty-row td {
    text-align: center;
    color: #6c757d;
    font-style: italic;
}

/* Actions column */
.ns-actions-column {
    width: 120px;
    text-align: center;
}

.ns-actions {
    text-align: center;
    white-space: nowrap;
}

.ns-edit-btn,
.ns-delete-btn,
.ns-save-btn,
.ns-cancel-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    margin-inline: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.ns-edit-btn:hover {
    background: #0d6efd;
    color: #fff;
}

.ns-delete-btn:hover {
    background: #dc3545;
    color: #fff;
}

.ns-save-btn {
    background: #198754;
    color: #fff;
    padding: 0.375rem 0.75rem;
}

.ns-save-btn:hover {
    background: #157347;
}

.ns-cancel-btn {
    background: #6c757d;
    color: #fff;
    padding: 0.375rem 0.75rem;
}

.ns-cancel-btn:hover {
    background: #5c636a;
}

.ns-edit-btn .dashicons,
.ns-delete-btn .dashicons {
    width: 18px;
    height: 18px;
    font-size: 18px;
}

/* Editable inputs */
.ns-field-input {
    width: 100%;
    padding: 0.375rem 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
}

.ns-field-input:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Add button */
.ns-add-education-btn,
.ns-add-experience-btn {
    display: inline-block;
    margin-block-start: 1rem;
    padding: 0.5rem 1.5rem;
    background: #0d6efd;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ns-add-education-btn:hover,
.ns-add-experience-btn:hover {
    background: #0b5ed7;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

/* ==========================================================================
   Profile Header
   ========================================================================== */

.ns-profile-header {
    text-align: center;
    padding: 2rem;
}

.ns-profile-avatar {
    margin-block-end: 1.5rem;
}

.ns-profile-avatar img {
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ns-profile-name {
    margin: 0 0 0.5rem 0;
    font-weight: 700;
    color: #212529;
}

.ns-profile-job-title {
    color: #6c757d;
    margin-block-end: 1rem;
}

.ns-profile-bio {
    color: #495057;
    line-height: 1.6;
    max-width: 600px;
    margin-inline: auto;
}

/* ==========================================================================
   Profile Meta Fields
   ========================================================================== */

.ns-profile-meta-fields {
    padding: 1rem;
}

.ns-meta-field {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-block-end: 1rem;
}

.ns-meta-field-icon {
    color: #0d6efd;
    flex-shrink: 0;
}

.ns-meta-field-label {
    font-weight: 600;
    color: #495057;
}

.ns-meta-field-value {
    color: #212529;
}

/* ==========================================================================
   Users Cards Grid
   ========================================================================== */

.ns-users-cards-wrapper {
    padding: 1rem 0;
}

.ns-users-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-block-end: 2rem;
}

@media (max-width: 1024px) {
    .ns-users-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .ns-users-grid {
        grid-template-columns: 1fr;
    }
}

.ns-user-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.ns-user-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.ns-user-card-avatar {
    margin-block-end: 1rem;
}

.ns-user-card-avatar img {
    border-radius: 50%;
    border: 3px solid #f8f9fa;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ns-user-card-name {
    margin: 0 0 0.5rem 0;
    font-weight: 600;
    color: #212529;
}

.ns-user-card-subtitle-1,
.ns-user-card-subtitle-2 {
    color: #6c757d;
    margin-block-end: 0.25rem;
}

.ns-user-card-button {
    display: inline-block;
    margin-block-start: 1rem;
    padding: 0.625rem 1.5rem;
    background: #0d6efd;
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.ns-user-card-button:hover {
    background: #0b5ed7;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
    color: #fff;
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.ns-pagination {
    margin-block-start: 2rem;
    padding-block-start: 2rem;
    border-block-start: 1px solid #dee2e6;
}

.ns-pagination-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.ns-pagination-prev,
.ns-pagination-next {
    padding: 0.5rem 1rem;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    color: #0d6efd;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.ns-pagination-prev:hover,
.ns-pagination-next:hover {
    background: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
}

.ns-pagination-numbers {
    display: flex;
    gap: 0.25rem;
}

.ns-pagination-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    color: #495057;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.ns-pagination-number:hover {
    background: #f8f9fa;
    border-color: #0d6efd;
    color: #0d6efd;
}

.ns-pagination-number.ns-pagination-current {
    background: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
}

/* ==========================================================================
   Messages
   ========================================================================== */

.ns-message {
    position: fixed;
    top: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    font-weight: 500;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.ns-message-success {
    background: #d1e7dd;
    color: #0f5132;
    border: 1px solid #badbcc;
}

.ns-message-error {
    background: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
}

/* ==========================================================================
   RTL Support
   ========================================================================== */

[dir="rtl"] .ns-education-table thead th,
[dir="rtl"] .ns-experience-table thead th,
[dir="rtl"] .ns-education-table tbody td,
[dir="rtl"] .ns-experience-table tbody td {
    text-align: start;
}

[dir="rtl"] .ns-message {
    right: auto;
    left: 2rem;
}

[dir="rtl"] .ns-pagination-prev::before {
    content: "→";
    margin-inline-end: 0.5rem;
}

[dir="rtl"] .ns-pagination-next::after {
    content: "←";
    margin-inline-start: 0.5rem;
}

/* ==========================================================================
   Responsive Tables
   ========================================================================== */


/* ==========================================================================
   Responsive Tables
   ========================================================================== */

@media (max-width: 991px) {

    .ns-education-table thead th,
    .ns-experience-table thead th,
    .ns-education-table tbody td,
    .ns-experience-table tbody td {
        padding: 0.75rem 0.5rem;
    }

    .ns-actions-column {
        width: 80px;
    }

    .ns-edit-btn,
    .ns-delete-btn {
        padding: 0.25rem;
    }
}



/* ==========================================================================
   Mobile: tables -> cards (Education + Experience)
   ========================================================================== */

@media (max-width: 991px) {

    .ns-education-table thead,
    .ns-experience-table thead {
        display: none;
    }

    .ns-education-table,
    .ns-experience-table,
    .ns-education-table tbody,
    .ns-experience-table tbody {
        display: block;
        width: 100%;
        background: transparent;
        box-shadow: none;
        border: none;
    }

    .ns-education-table tbody tr,
    .ns-experience-table tbody tr {
        display: block;
        margin: 0 0 16px 0;
        border: 1px solid #e9ecef;
        /* Subtle border instead of black */
        border-radius: 12px;
        background: #fff;
        padding: 16px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        /* Added shadow */
    }

    .ns-education-table tbody td,
    .ns-experience-table tbody td {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12px;
        border: 0;
        padding: 8px 0;
        text-align: right;
        white-space: normal;
        border-bottom: 1px solid #f0f0f0;
        /* Separator between fields */
    }

    .ns-education-table tbody td:last-child,
    .ns-experience-table tbody td:last-child {
        border-bottom: none;
    }

    .ns-education-table tbody td::before,
    .ns-experience-table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #495057;
        flex: 0 0 40%;
        text-align: right;
    }

    .ns-education-table tbody td.ns-drag-cell,
    .ns-experience-table tbody td.ns-drag-cell {
        display: none;
    }

    .ns-education-table tbody td.ns-actions,
    .ns-experience-table tbody td.ns-actions {
        justify-content: flex-end;
        padding-top: 16px;
        margin-top: 8px;
        border-top: 1px solid #f0f0f0;
    }

    .ns-education-table tbody td.ns-actions::before,
    .ns-experience-table tbody td.ns-actions::before {
        content: "";
        display: none;
    }

    /* Mobile actions: show text buttons (not icons) */
    .ns-actions .ns-edit-btn,
    .ns-actions .ns-delete-btn {
        width: auto;
        height: auto;
        min-height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        padding: 0 16px;
        font-weight: 600;
        transition: all 0.2s;
    }

    .ns-actions .ns-edit-btn {
        color: #fff;
        background: #0d6efd;
        margin-left: 8px;
    }

    .ns-actions .ns-edit-btn:hover {
        background: #0b5ed7;
    }

    .ns-actions .ns-delete-btn {
        color: #dc3545;
        background: rgba(220, 53, 69, 0.10);
    }

    .ns-actions .ns-delete-btn:hover {
        background: rgba(220, 53, 69, 0.20);
    }

    .ns-actions .ns-delete-btn[disabled],
    .ns-actions .ns-delete-btn.is-disabled {
        opacity: 0.45;
        cursor: not-allowed;
        pointer-events: none;
    }
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.ns-hidden {
    display: none !important;
}

.ns-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* ==========================================================================
   Drag & Drop Sorting
   ========================================================================== */

.ns-drag-handle {
    width: 40px;
    text-align: center;
    cursor: move !important;
    padding: 0.5rem;
}

.ns-drag-handle .dashicons {
    color: #999;
    font-size: 20px;
    /* dashicon size */
    transition: color 0.2s ease;
}

.ns-drag-handle:hover .dashicons {
    color: #333;
}

.ns-drag-column {
    width: 40px;
    padding: 0;
}

/* Sortable states */
.ns-sorting-active {
    position: relative;
}

.ns-sort-placeholder {
    background: #f0f0f0;
    border: 2px dashed #ccc;
    visibility: visible !important;
}

.ui-sortable-helper {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0.9;
}

.ui-sortable-helper .ns-drag-handle .dashicons {
    color: #0073aa;
}

/* RTL Support for Drag & Drop */
[dir="rtl"] .ns-drag-handle {
    text-align: center;
}

/* --- User requested style (do not edit/remove) --- */
button.acfepw-edit-btn.ns-profile-editor__edit {
    background: blue;
}

button.ns-add-education-btn {
    background: blue !important;
}

button.ns-add-experience-btn {
    background: blue !important;
}

button.ns-pw__add {
    background: blue !important;
}

button.acfepw-edit-btn.ns-profile-editor__edit:hover {
    background: gray;
}

button.ns-add-education-btn:hover {
    background: gray !important;
}

button.ns-add-experience-btn:hover {
    background: gray !important;
}

button.ns-pw__add:hover {
    background: gray !important;
}

.ns-add-education-btn {
    font-family: "Alexandria", Sans-serif !important;
    font-weight: 400 !important;
}

th,
td {
    font-weight: 400;
}


/* --- Conflict mitigation (keeps above rules intact) --- */
/* Ensure plugin tables stay as intended */
.ns-profile-builder th,
.ns-profile-builder td,
.ns-profile-editor th,
.ns-profile-editor td,
.ns-pw th,
.ns-pw td {
    font-weight: 400 !important;
}

/* Revert global th/td styling outside intended plugin areas (prevents site-wide impact) */
.woocommerce th,
.woocommerce td,
.woocommerce-page th,
.woocommerce-page td,
.elementor th,
.elementor td,
.site-header th,
.site-header td,
.site-footer th,
.site-footer td {
    font-weight: revert !important;
}

/* NS Login Widget - Clean Minimal Design */
.nspb-login-widget {
    max-width: 400px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.nspb-login-widget__form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.nspb-login-widget__field {
    margin-bottom: 0;
}

.nspb-login-widget__field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #666666;
    text-align: right;
}

.nspb-login-widget__field input[type="text"],
.nspb-login-widget__field input[type="password"],
.nspb-login-widget__field input[type="email"] {
    width: 100%;
    height: 48px;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    transition: all 0.2s ease;
    background: #ffffff;
    direction: rtl;
    text-align: right;
    color: #1f2937;
    font-weight: 400;
}

.nspb-login-widget__field input[type="text"]::placeholder,
.nspb-login-widget__field input[type="password"]::placeholder,
.nspb-login-widget__field input[type="email"]::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.nspb-login-widget__field input[type="text"]:focus,
.nspb-login-widget__field input[type="password"]:focus,
.nspb-login-widget__field input[type="email"]:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Success checkmark for filled inputs */
.nspb-login-widget__field input[type="text"]:valid:not(:placeholder-shown),
.nspb-login-widget__field input[type="email"]:valid:not(:placeholder-shown) {
    border-color: #10b981;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 12px center;
    padding-left: 40px;
}

.nspb-login-widget__field--remember {
    margin-top: 0;
}

.nspb-login-widget__field--remember label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    color: #6b7280;
    cursor: pointer;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.nspb-login-widget__field--remember input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #3b82f6;
    border-radius: 3px;
}

.nspb-login-widget__error {
    margin-bottom: 1rem;
    padding: 12px 16px;
    border-radius: 6px;
    background: #fef2f2;
    color: #dc2626;
    font-weight: 500;
    border: 1px solid #fecaca;
    text-align: right;
    direction: rtl;
}

.nspb-login-widget__submit {
    width: 100%;
    background: #3b82f6;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 13px 24px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 0.5rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.nspb-login-widget__submit:hover {
    background: #2563eb;
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.2);
}

.nspb-login-widget__submit:active {
    transform: scale(0.98);
}

.nspb-login-widget__register {
    margin-top: 1.5rem;
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.nspb-login-widget__register a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.nspb-login-widget__register a:hover {
    color: #2563eb;
    text-decoration: underline;
}

.nspb-login-widget--logged-in {
    max-width: 400px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
    background: #f0f9ff;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #bfdbfe;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.nspb-login-widget__message {
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 1rem;
}

.nspb-login-widget__profile-link {
    display: inline-block;
    padding: 12px 24px;
    background: #3b82f6;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.nspb-login-widget__profile-link:hover {
    background: #2563eb;
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.2);
    color: #ffffff;
}

/* Responsive Design */
@media (max-width: 576px) {
    .nspb-login-widget {
        padding: 2rem 1.5rem;
        max-width: 100%;
    }

    .nspb-login-widget__field input[type="text"],
    .nspb-login-widget__field input[type="password"],
    .nspb-login-widget__field input[type="email"] {
        height: 48px;
        /* Prevents zoom on iOS */
    }

    .nspb-login-widget__submit {
        padding: 13px 24px;
    }
}

/* ==========================================================================
   Global Font (Alexandria) - scoped to NS Profile Builder only
   ========================================================================== */
.ns-profile-builder,
.ns-profile-builder *,
.ns-profile-editor,
.ns-profile-editor *,
.ns-education-table-wrapper,
.ns-education-table-wrapper *,
.ns-experience-table-wrapper,
.ns-experience-table-wrapper *,
.ns-team-members-cards,
.ns-team-members-cards *,
.nspb-login-widget,
.nspb-login-widget *,
.ns-register-wrapper,
.ns-register-wrapper *,
.ns-expert-register-wrapper,
.ns-expert-register-wrapper *,
.npv-wrapper,
.npv-wrapper *,
.ns-pw,
.ns-pw *,
.nspb-wrapper,
.nspb-wrapper * {
    font-family: "Alexandria", Sans-serif !important;
}



/* ==========================================================================
   Mobile: Tables -> Cards (Education & Experience)
   ========================================================================== */
@media (max-width: 768px) {

    .ns-education-table,
    .ns-experience-table {
        border: 0;
        box-shadow: none;
        background: transparent;
    }

    .ns-education-table thead,
    .ns-experience-table thead {
        display: none !important;
    }

    .ns-education-table tbody,
    .ns-experience-table tbody,
    .ns-education-table tr,
    .ns-experience-table tr,
    .ns-education-table td,
    .ns-experience-table td {
        display: block;
        width: 100%;
    }

    .ns-education-table tbody tr,
    .ns-experience-table tbody tr {
        background: #fff;
        border: 1px solid #e9ecef;
        border-radius: 10px;
        margin: 0 0 14px 0;
        padding: 8px 10px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
        overflow: hidden;
    }

    .ns-education-table tbody td,
    .ns-experience-table tbody td {
        border: 0 !important;
        padding: 10px 8px;
        position: relative;
    }

    .ns-education-table tbody td:not(.ns-actions):not(.ns-actions-column),
    .ns-experience-table tbody td:not(.ns-actions):not(.ns-actions-column) {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        direction: rtl;
        text-align: right;
    }

    .ns-education-table tbody td:not(.ns-actions):not(.ns-actions-column)::before,
    .ns-experience-table tbody td:not(.ns-actions):not(.ns-actions-column)::before {
        content: attr(data-label);
        font-weight: 600;
        opacity: 0.8;
        flex: 0 0 auto;
        max-width: 48%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .ns-education-table .ns-actions,
    .ns-experience-table .ns-actions {
        display: flex !important;
        justify-content: flex-start;
        gap: 10px;
        padding-top: 6px;
    }

    .ns-education-table .ns-drag-column,
    .ns-experience-table .ns-drag-column {
        display: none !important;
    }
}


/* === NSPB Mobile Cards for Education & Experience Tables === */
@media (max-width: 768px) {

    table.ns-education-table,
    table.ns-experience-table {
        width: 100% !important;
        border-collapse: separate;
        border-spacing: 0 10px;
    }

    table.ns-education-table thead,
    table.ns-experience-table thead {
        display: none !important;
    }

    table.ns-education-table tbody,
    table.ns-experience-table tbody,
    table.ns-education-table tr,
    table.ns-experience-table tr {
        display: block !important;
        width: 100% !important;
    }

    table.ns-education-table tr,
    table.ns-experience-table tr {
        background: #fff;
        border: 1px solid rgba(0, 0, 0, 0.08);
        border-radius: 12px;
        padding: 10px 12px;
        margin-bottom: 10px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }

    table.ns-education-table td,
    table.ns-experience-table td {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        width: 100% !important;
        padding: 8px 0 !important;
        border: 0 !important;
    }

    table.ns-education-table td:before,
    table.ns-experience-table td:before {
        content: attr(data-label);
        font-weight: 600;
        opacity: 0.9;
    }

    /* Actions cell */
    table.ns-education-table td.ns-actions,
    table.ns-experience-table td.ns-actions {
        justify-content: flex-start;
    }

    table.ns-education-table td.ns-actions:before,
    table.ns-experience-table td.ns-actions:before {
        content: '' !important;
    }

    /* Drag handle cell (if exists) */
    table.ns-education-table td.ns-drag,
    table.ns-experience-table td.ns-drag {
        display: none !important;
    }
}


/* SVG icons for edit/delete buttons */
.ns-actions .ns-icon,
.ns-card-actions .ns-icon {
    width: 18px;
    height: 18px;
    display: block;
}

.ns-actions .ns-edit-btn,
.ns-actions .ns-delete-btn,
.ns-card-actions .ns-edit-btn,
.ns-card-actions .ns-delete-btn {
    line-height: 0;
}


/* Confirmation Modal */
.ns-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
}

.ns-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.ns-modal__dialog {
    position: relative;
    max-width: 420px;
    margin: 18vh auto 0;
    background: #fff;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

.ns-modal__body {
    font-weight: 500;
    margin-bottom: 14px;
    text-align: right;
    direction: rtl;
}

.ns-modal__footer {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
}

.ns-modal__btn {
    border: 0;
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
    font-family: "Alexandria", Sans-serif;
    font-weight: 600;
}

.ns-modal__btn-cancel {
    background: #e5e5e5;
}

.ns-modal__btn-confirm {
    background: #1f6bff;
    color: #fff;
}


.ns-delete-btn[disabled] {
    opacity: .45;
    cursor: not-allowed;
}

/* =========================
 * Password Toggle (FontAwesome)
 * ========================= */
.nspb-password-wrap {
    position: relative !important;
    display: inline-block !important;
    width: 100% !important;
    vertical-align: top;
}

.nspb-password-wrap input[type="password"],
.nspb-password-wrap input[type="text"] {
    margin: 0 !important;
    padding-inline-end: 48px !important;
    /* leave room for the icon */
    box-sizing: border-box;
}

.nspb-pass-toggle {
    position: absolute !important;
    left: 14px !important;
    right: auto !important;
    inset-inline-start: 14px !important;
    inset-inline-end: auto !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    cursor: pointer !important;
    z-index: 9999 !important;
    opacity: .85 !important;
}

.nspb-pass-toggle i {
    display: block;
}

.nspb-pass-toggle:hover {
    opacity: 1 !important;
}

.nspb-pass-toggle:focus {
    outline: none !important;
    box-shadow: none !important;
}



/* Password toggle left RTL fix */
.nspb-password-wrap {
    position: relative;
    display: block;
}

.nspb-pass-toggle {
    position: absolute;
    left: 14px;
    right: auto;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 5;
    opacity: .85
}

.nspb-password-wrap input[type="password"],
.nspb-password-wrap input[type="text"] {
    padding-left: 42px !important;
    padding-right: 12px !important;
    padding-inline-start: 42px !important;
    padding-inline-end: 12px !important;
}

/* Force site font on all NSPB buttons */
.nspb-wrapper button,
.nspb-wrapper .elementor-button,
.nspb-btn,
.nspb-add-btn,
.nspb-submit,
.nspb-register-btn,
.nspb-login-btn {
    font-family: "Alexandria", Sans-serif !important;
    letter-spacing: 0 !important;
}

/* Force default site font on ALL NSPB buttons */
.nspb-wrapper button,
.nspb-wrapper a,
.nspb-wrapper .elementor-button,
.nspb-wrapper input[type="button"],
.nspb-wrapper input[type="submit"],
.nspb-wrapper .nspb-btn,
.nspb-wrapper .nspb-add-btn,
.nspb-wrapper .nspb-submit,
.nspb-wrapper .nspb-register-btn,
.nspb-wrapper .nspb-login-btn {
    font-family: "Alexandria", Sans-serif !important;
    font-weight: var(--e-global-typography-primary-font-weight, inherit) !important;
}

/* Eye icon color gray */
.nspb-pass-toggle,
.nspb-pass-toggle i,
.ns-login-pass-toggle,
.ns-login-pass-toggle i {
    color: #9aa0a6 !important;
    opacity: .9;
}

.nspb-pass-toggle:hover,
.ns-login-pass-toggle:hover {
    color: #b0b6bb !important;
}