.status-tag.rejected {
    background: #f8d7da;
    color: #721c24;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-tag {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-tag.open {
    background: #e3f2fd;
    color: #1976d2;
}

.status-tag.submitted {
    background: #bbdefb;
    color: #0d47a1;
}

.status-tag.grabbed {
    background: #fff3e0;
    color: #f57c00;
}

.status-tag.approved {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-tag.pending {
    background: #fff3e0;
    color: #f57c00;
}



/* 1. Reset Container to Horizontal Flex */
.pagination-wrapper ul.page-numbers {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    list-style: none !important;
    /* Removes dots */
    padding: 0 !important;
    margin: 30px 0 !important;
    gap: 10px !important;
}

/* 2. Neutralize LI (Forces side-by-side) */
.pagination-wrapper ul.page-numbers li {
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style-type: none !important;
}

/* 3. Theme Killer - Remove bullets injected by themes via :before */
.pagination-wrapper ul.page-numbers li::before {
    content: none !important;
    display: none !important;
}

/* 4. Stylish Buttons */
.pagination-wrapper ul.page-numbers li a,
.pagination-wrapper ul.page-numbers li span.page-numbers {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    text-decoration: none !important;
    background: #ffffff;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* 5. Active & Hover States */
.pagination-wrapper ul.page-numbers li span.current,
.pagination-wrapper ul.page-numbers li a:hover {
    background: #0073aa !important;
    color: #fff !important;
    border-color: #0073aa !important;
    box-shadow: 0 4px 10px rgba(0, 115, 170, 0.2);
}

.pagination-wrapper ul.page-numbers li span.dots {
    border: none !important;
    background: transparent !important;
}



/* Dashboard Stats */
.rounded-4 {
    border-radius: 1rem !important;
}

.bg-success-subtle {
    background-color: #d1e7dd;
}

/* Table Styling */
.jubm-work-container .table {
    border-collapse: separate;
    border-spacing: 0 8px;
    /* Adds spacing between rows */
}

.jubm-work-container .table tbody tr {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    border-radius: 8px;
    background-color: #fff;
}

.jubm-work-container .table thead th {
    border-bottom: none;
}

/* Upload Modal Zone */
.border-dashed {
    border: 2px dashed #dee2e6 !important;
}

.upload-zone:hover {
    border-color: #007bff !important;
    background-color: #f8f9fa !important;
}

/* Progress Indicators */
.rounded-circle {
    border-radius: 50% !important;
}


/* Toaster - Error */
.frozen-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #dc3545;
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    z-index: 9999;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    font-weight: bold;
}

/* Make the Terms link look like a distinct action */
.jubm-terms-link {
    color: #0073aa;
    /* Classic WP Blue */
    text-decoration: underline;
    font-weight: bold;
    padding: 2px 5px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.jubm-terms-link:hover {
    background-color: #e1f5fe;
    color: #01579b;
}

.jubm-terms-link .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    text-decoration: none !important;
}

/* Visual cue for the disabled checkbox */
#terms_check:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.jubm-terms-wrapper {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    border: 1px dashed #ccc;
}

/* Improve input focus states */
#jubm-registration-form .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.15);
}

/* Style the Terms area to look like a dedicated section */
.jubm-terms-wrapper {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
}

/* Make the Register button pop more */
#reg-submit-btn {
    transition: all 0.3s ease;
}

#reg-submit-btn:disabled {
    background-color: #a0c4ff;
    /* Lighter blue when disabled */
    border-color: #a0c4ff;
    cursor: not-allowed;
}

/* Style the help text to be more subtle but readable */
.text-muted.small {
    color: #6c757d !important;
}

/* Maintenance Page */
.jubm-maintenance-overlay {
    padding: 40px 20px;
    background: #f4f7f9;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.jubm-maintenance-card {
    max-width: 600px;
    border-radius: 20px;
}

.maintenance-icon-wrap .dashicons {
    font-size: 64px;
    width: 64px;
    height: 64px;
    color: #dc3545;
}

.maintenance-text h2 {
    color: #2d3748;
    font-weight: 800;
    margin-bottom: 15px;
}

/* Leaderboard styling */
.jubm-leaderboard-container {
    background: #fff;
    border-radius: 15px;
    padding: 5px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.achievement-card {
    padding: 12px;
    border-radius: 10px;
    transition: transform 0.2s;
    border-left: 3px solid transparent;
    background: #f8fafc;
}

.achievement-card:hover {
    transform: translateX(5px);
    background: #f1f5f9;
}

.achievement-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.achievement-text {
    font-size: 13px;
    line-height: 1.4;
    color: #1e293b;
}

.achievement-meta {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 4px;
}

.pulse-dot::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #2ecc71;
    border-radius: 50%;
    margin-right: 5px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}



/* Available Bids - View Bid Details Modal */

/* Subtle Stats Hover */
.transition-hover {
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.transition-hover:hover {
    transform: translateY(-3px);
    border-color: var(--bs-primary) !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

/* Updated Clamp with Smooth Mask */
/* 1. Requirements Box: Sharp Text & Better Contrast */
.bg-light-custom {
    background-color: #f8f9fa !important;
    border: 1px solid #e9ecef;
}

.desc-clamp {
    display: block;
    max-height: 100px;
    /* Limits height initially */
    overflow: hidden;
    position: relative;
    color: #444 !important;
    /* Darker text for better readability */
    line-height: 1.6;
    transition: max-height 0.4s ease;
}

/* REMOVE the ::after gradient entirely to fix the "faded" look */
.desc-clamp::after {
    display: none !important;
}

.desc-expanded {
    max-height: 2000px !important;
    /* Expansion limit */
}

/* 2. Stats Grid: Better Alignment */
.stat-card {
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 12px;
    background: #fff;
    transition: all 0.2s ease;
}

.stat-card:hover {
    border-color: #007bff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.stat-label {
    font-size: 10px;
    color: #888;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 4px;
}


/* @END Available Bids - View Bid Details Modal */



/* New design for Join Us layout - 20-03-2026 */
/* Mobile Navigation Scroll */
.nav-container {
    margin-left: -5px;
    margin-right: -5px;
}

.custom-scrollbar::-webkit-scrollbar {
    height: 0px;
    /* Hide scrollbar but allow scroll */
}

/* App-Style Pills */
.nav-pills .nav-link {
    white-space: nowrap;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 14px;
}

.nav-pills .nav-link.active {
    background-color: #007bff !important;
    color: #fff !important;
}

/* Background & Body Adjustment */
body {
    background-color: #f8f9fa;
}

/* Notification Dropdown Positioning */
.rt-dropdown {
    width: 320px;
    right: 0;
    top: 50px;
    z-index: 1000;
    display: none;
    position: absolute;
}

/* Mobile Column Ordering */
@media (max-width: 991px) {
    .order-2 {
        margin-top: 30px;
        /* Space between content and leaderboard on mobile */
    }
}






/* 1. Pill Menu: Horizontal Scroll without Scrollbar */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

@media (min-width: 992px) {
    .custom-responsive-scroll {
        max-height: 75vh;
        overflow-y: auto;
    }
}

/* 3. High-end UI Details */
.rounded-4 {
    border-radius: 20px !important;
}

.bg-primary-subtle {
    background-color: #e7f0ff !important;
}

.bg-success-subtle {
    background-color: #e6fcf5 !important;
}

.pulse-dot::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: currentColor;
    border-radius: 50%;
    margin-right: 5px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(1.2);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}


/* Button Styling */
#jubm-module-container .btn {
    font-size: 12px !important;
    border-radius: 8px !important;
}

/* Dashicons */
#jubm-module-container .dashicons {
    font-size: 18px !important;
    margin: 0 !important;
}

#jubm-module-container .stats {
    font-size: 0.65rem;
}


/* MOBILE OPTIMIZATION - THE FINAL FIX */
@media (max-width: 991px) {

    /* 1. Target the ACTUAL container of the cards */
    .achievement-stream {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        gap: 12px;
        padding: 10px 5px !important;
        -webkit-overflow-scrolling: touch;
    }

    /* Hide scrollbars */
    .achievement-stream::-webkit-scrollbar {
        display: none;
    }

    /* 2. Style each card to look like a small "Story" bubble on mobile */
    .achievement-card {
        flex: 0 0 200px !important;
        /* Forces cards to stay wide side-by-side */
        margin-bottom: 0 !important;
        /* Remove the bottom margin from your PHP */
        background: #fff !important;
        border: 1px solid #eee !important;
        border-radius: 15px !important;
        padding: 10px !important;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02) !important;
    }

    /* 3. Adjust the icon and text size for mobile boxes */
    .achievement-icon {
        width: 32px !important;
        height: 32px !important;
    }

    .achievement-text {
        font-size: 11px !important;
        white-space: normal;
        /* Allows text to wrap inside the small card */
    }

    /* 4. Fix the Container Header height */
    .custom-responsive-scroll {
        max-height: none !important;
        overflow: visible !important;
    }
}

.h4 .dashicons {
    opacity: 0.8;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

@media (max-width: 576px) {

    /* Tighten up the padding for very small phones like iPhone SE */
    .jubm-dashboard-wrapper .p-2 {
        padding: 0.75rem !important;
    }
}

@media (max-width: 767px) {

    /* 1. Hide the table headers on mobile */
    .jubm-work-container thead {
        display: none;
    }

    /* 2. Force the table body and rows to act like a list of cards */
    .jubm-work-container table,
    .jubm-work-container tbody,
    .jubm-work-container tr,
    .jubm-work-container td {
        display: block;
        width: 100%;
    }

    .jubm-work-container tr {
        margin-bottom: 15px;
        padding: 15px;
        border: 1px solid #eee;
        border-radius: 15px;
        background: #fff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    }

    .jubm-work-container td {
        padding: 5px 0 !important;
        border: none !important;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 13px;
    }

    /* 3. Style the "Project Details" (The first cell) to be the Card Title */
    .jubm-work-container td:nth-child(2) {
        display: block;
        /* Title stays on top */
        font-size: 15px;
        font-weight: bold;
        border-bottom: 1px solid #f8f9fa !important;
        padding-bottom: 10px !important;
        margin-bottom: 8px;
    }

    /* 4. Add dynamic labels for the other cells */
    .jubm-work-container td:nth-child(3)::before {
        content: "Awarded:";
        font-weight: 600;
        color: #888;
    }

    .jubm-work-container td:nth-child(4)::before {
        content: "Status:";
        font-weight: 600;
        color: #888;
    }

    .jubm-work-container td:nth-child(5)::before {
        content: "Approved:";
        font-weight: 600;
        color: #888;
    }

    .jubm-work-container td:nth-child(6)::before {
        content: "Paid On:";
        font-weight: 600;
        color: #888;
    }

    /* 5. Hide the row index (#) on mobile to save space */
    .jubm-work-container td:first-child {
        display: none;
    }

    .jubm-work-container td.jubm-empty-state-cell {
        display: block !important;
        text-align: center !important;
        justify-content: center !important;
        border: none !important;
        padding: 40px 20px !important;
    }

    /* Hide the auto-generated labels (Awarded, Status, etc.) for the empty cell */
    .jubm-work-container td.jubm-empty-state-cell::before {
        content: none !important;
    }

    /* Style for the Work Empty State specifically */
    .empty-state-wrapper .btn-sm {
        font-size: 12px;
        font-weight: 600;
    }
}


.jubm-empty-state-cell {
    background: #fcfcfc !important;
    border-radius: 15px !important;
}

#jubm-module-container .empty-icon .dashicons {
    color: #d1d8e0 !important; /* Soft grey for empty state icons */
    filter: none !important;    /* No glow for empty state icons */
}


@media (max-width: 767px) {

    /* 1. Hide the table headers on mobile */
    .jubm-payouts-container thead {
        display: none;
    }

    /* 2. Force the table body and rows to act like a list of cards */
    .jubm-payouts-container table,
    .jubm-payouts-container tbody,
    .jubm-payouts-container tr,
    .jubm-payouts-container td {
        display: block;
        width: 100%;
    }

    .jubm-payouts-container tr {
        margin-bottom: 15px;
        padding: 15px;
        border: 1px solid #eee;
        border-radius: 15px;
        background: #fff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    }

    .jubm-payouts-container td {
        padding: 5px 0 !important;
        border: none !important;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 13px;
    }

    /* 3. Style the "Project Details" (The first cell) to be the Card Title */
    .jubm-payouts-container td:nth-child(2) {
        display: block;
        /* Title stays on top */
        font-size: 15px;
        font-weight: bold;
        border-bottom: 1px solid #f8f9fa !important;
        padding-bottom: 10px !important;
        margin-bottom: 8px;
    }

    /* 4. Add dynamic labels for the other cells */
    .jubm-payouts-container td:nth-child(3)::before {
        content: "Awarded:";
        font-weight: 600;
        color: #888;
    }

    .jubm-payouts-container td:nth-child(4)::before {
        content: "Status:";
        font-weight: 600;
        color: #888;
    }

    .jubm-payouts-container td:nth-child(5)::before {
        content: "Approved:";
        font-weight: 600;
        color: #888;
    }

    .jubm-payouts-container td:nth-child(6)::before {
        content: "Paid On:";
        font-weight: 600;
        color: #888;
    }

    /* 5. Hide the row index (#) on mobile to save space */
    .jubm-payouts-container td:first-child {
        display: none;
    }

    .jubm-payouts-container td.jubm-empty-state-cell {
        display: block !important;
        text-align: center !important;
        justify-content: center !important;
        border: none !important;
        padding: 40px 20px !important;
    }

    /* Remove the pseudo-labels if they appear on the empty cell by accident */
    .jubm-payouts-container td.jubm-empty-state-cell::before {
        content: none !important;
    }

    /* Style the empty state wrapper */
    .empty-state-wrapper h5 {
        font-size: 16px !important;
        margin-bottom: 5px;
    }
    
    .empty-state-wrapper p {
        font-size: 12px !important;
        line-height: 1.4;
    }
}


.jubm-empty-state-cell {
    background: #fcfcfc !important;
}

@media (max-width: 767px) {

    /* 1. Hide the table headers on mobile */
    .jubm-profile-container thead {
        display: none;
    }

    /* 2. Force the table body and rows to act like a list of cards */
    .jubm-profile-container table,
    .jubm-profile-container tbody,
    .jubm-profile-container tr,
    .jubm-profile-container td {
        display: block;
        width: 100%;
    }

    .jubm-profile-container tr {
        margin-bottom: 15px;
        padding: 15px;
        border: 1px solid #eee;
        border-radius: 15px;
        background: #fff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    }

    .jubm-profile-container td {
        padding: 5px 0 !important;
        border: none !important;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 13px;
    }

    /* 3. Style the "Project Details" (The first cell) to be the Card Title */
    .jubm-profile-container td:nth-child(2) {
        display: block;
        /* Title stays on top */
        font-size: 15px;
        font-weight: bold;
        border-bottom: 1px solid #f8f9fa !important;
        padding-bottom: 10px !important;
        margin-bottom: 8px;
    }

    /* 4. Add dynamic labels for the other cells */
    .jubm-profile-container td:nth-child(3)::before {
        content: "Awarded:";
        font-weight: 600;
        color: #888;
    }

    .jubm-profile-container td:nth-child(4)::before {
        content: "Status:";
        font-weight: 600;
        color: #888;
    }

    .jubm-profile-container td:nth-child(5)::before {
        content: "Approved:";
        font-weight: 600;
        color: #888;
    }

    .jubm-profile-container td:nth-child(6)::before {
        content: "Paid On:";
        font-weight: 600;
        color: #888;
    }

    /* 5. Hide the row index (#) on mobile to save space */
    .jubm-profile-container td:first-child {
        display: none;
    }

    .jubm-profile-container .card-header {
        flex-direction: column !important;
        /* Stack vertically */
        align-items: flex-start !important;
        padding: 15px !important;
    }

    .jubm-profile-container .card-header h5 {
        margin-bottom: 10px !important;
        font-size: 16px !important;
    }

    .jubm-profile-container .card-header .badge {
        width: 100% !important;
        /* Make badge full width */
        text-align: center;
        font-size: 11px !important;
        padding: 8px !important;
    }

    /* --- FIX: File Upload & Resume View --- */
    .jubm-profile-container .input-group {
        flex-direction: column !important;
        /* Stack Input and Button */
        gap: 8px;
    }

    .jubm-profile-container .input-group>.form-control {
        width: 100% !important;
        border-radius: 8px !important;
        /* Fix rounded corners when unstacked */
    }

    .jubm-profile-container .input-group>.btn {
        width: 100% !important;
        border-radius: 8px !important;
        margin-left: 0 !important;
        /* Remove Bootstrap's negative margin */
        justify-content: center;
        padding: 10px !important;
    }

    /* --- Extra Form Polish --- */
    .jubm-profile-container .form-control {
        font-size: 14px !important;
        /* Prevent iOS zoom on focus */
    }

    .jubm-profile-container button[type="submit"] {
        width: 100% !important;
        /* Make main update button easy to tap */
    }

    .jubm-profile-container .input-group {
        display: flex !important;
        flex-direction: row !important;
        /* Overrides the column stack */
        flex-wrap: nowrap !important;
    }

    /* Ensure inputs inside the group take equal space */
    .jubm-profile-container .input-group .form-control {
        flex: 1 1 auto !important;
        width: 1% !important;
        /* Standard Bootstrap trick for input groups */
        min-width: 50px !important;
        padding: 8px 5px !important;
        font-size: 13px !important;
    }

    /* Make the Y, M, H, Min labels smaller to save space */
    .jubm-profile-container .input-group-text {
        padding: 0.375rem 0.4rem !important;
        font-size: 11px !important;
        background-color: #f8f9fa !important;
    }

    /* Keep the Resume Update section as a column (Stacked) */
    /* This ensures only the text inputs stay side-by-side */
    .jubm-profile-container .col.mt-3 .input-group {
        flex-direction: column !important;
    }

    .jubm-profile-container .col.mt-3 .input-group>* {
        width: 100% !important;
        margin-bottom: 5px;
    }
}


.jubm-dashboard-wrapper {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 3. Standardize Headings */
.jubm-dashboard-wrapper h1,
.jubm-dashboard-wrapper h2,
.jubm-dashboard-wrapper h3,
.jubm-dashboard-wrapper h4,
.jubm-dashboard-wrapper h5,
.jubm-dashboard-wrapper h6 {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-weight: 700;
    /* Bold but not "heavy" */
    letter-spacing: -0.02em;
    /* Tighter spacing for a modern look */
    color: #1a202c;
    /* Deep slate instead of pure black */
}

/* 4. Fix specific mismatched elements */
.jubm-dashboard-wrapper .nav-link,
.jubm-dashboard-wrapper .btn,
.jubm-dashboard-wrapper .badge,
.jubm-dashboard-wrapper small {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
}


@keyframes notification-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7);
        border-color: #007bff;
    }

    70% {
        box-shadow: 0 0 0 15px rgba(0, 123, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
    }
}

.notification-glow {
    animation: notification-pulse 1.5s 2;
    /* Pulse twice */
    border: 2px solid #007bff !important;
    transition: all 0.3s ease;
}

/* For table rows specifically */
tr.notification-glow {
    background-color: #e7f0ff !important;
}



.step-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.step-circle i.dashicons {
    font-size: 40px;
    width: 40px;
    height: 40px;
}

.step-item:hover .step-circle {
    transform: translateY(-5px);
}

/* Choice Cards */
.path-card {
    border-radius: 20px !important;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 2px solid #f0f2f5 !important;
    background: #fff;
}

.path-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
    border-color: #0d6efd !important;
}

.path-card.featured {
    border-color: #198754 !important;
    background: linear-gradient(180deg, #fff 0%, #f8fffb 100%);
}

/* Mobile Adjustments */
@media (max-width: 767px) {
    .step-circle {
        width: 65px;
        height: 65px;
    }

    .step-circle i.dashicons {
        font-size: 32px;
        width: 32px;
        height: 32px;
    }

    .display-5 {
        font-size: 2rem;
    }
}

#jubm-module-container .join-us-steps-icon {
    font-size: 38px !important;
    width: 38px; 
    height:38px;
}

/* Your sticky/main header should have a higher index */
.main-header-selector { 
    z-index: 10001 !important; 
}


/* Container for the tooltip */
.jubm-tooltip-wrapper {
    position: relative;
    display: inline-flex;
    cursor: help;
}

/* The Icon Trigger */
.jubm-trigger {
    font-size: 18px;
    width: 18px;
    height: 18px;
    outline: none;
}

/* The actual Tooltip Box */
.jubm-tooltip-content {
    position: absolute;
    bottom: 125%; /* Position above the icon */
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 240px;
    background: #2d3436; /* Dark professional background */
    color: #fff;
    padding: 12px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    text-transform: none; /* Keep text readable */
    z-index: 10000;
    visibility: hidden;
    opacity: 0;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
}

/* Tooltip Arrow */
.jubm-tooltip-content::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: #2d3436 transparent transparent transparent;
}

/* --- TRIGGER LOGIC --- */

/* 1. Show on Hover (Desktop) */
.jubm-tooltip-wrapper:hover .jubm-tooltip-content {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* 2. Show on Click/Tap (Mobile & Desktop) */
.jubm-trigger:focus + .jubm-tooltip-content {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Mobile Adjustments */
@media (max-width: 767px) {
    .jubm-tooltip-content {
        width: 200px;
        left: 20px;
        right: -30px; /* Shift it so it doesn't go off the left edge */
        transform: translateY(10px);
    }
    
    .jubm-tooltip-content::after {
        left: auto;
        right: 32px; /* Move arrow to align with shifted box */
    }

    .jubm-trigger:focus + .jubm-tooltip-content {
        transform: translateY(0);
    }
}

/* --- Tooltip Positioning Fix --- */

/* Reset standard positioning and place the box below the icon */
#jubm-module-container .jubm-tooltip-content {
    top: 130% !important; /* Positions it below the text/icon */
    bottom: auto !important; /* Cancels the old 'bottom' position */
    transform: translateX(-50%) translateY(-10px); /* Adjusts slide direction */
}

/* Animate standard state */
#jubm-module-container .jubm-tooltip-wrapper:hover .jubm-tooltip-content,
#jubm-module-container .jubm-trigger:focus + .jubm-tooltip-content {
    transform: translateX(-50%) translateY(0) !important;
}

/* --- The Arrow (Triangle) Fix --- */
/* The arrow must now point up to the icon */
#jubm-module-container .jubm-tooltip-content::after {
    top: auto !important;
    bottom: 100% !important; /* Puts arrow on top of the box */
    border-color: transparent transparent #2d3436 transparent !important; /* Reverses arrow color */
}

/* --- Mobile Specific Fix --- */
@media (max-width: 767px) {
    #jubm-module-container .jubm-tooltip-content {
        transform: translateY(-10px) !important; 
        right: auto !important;
        width: 260px !important; /* Makes it wider to fit text on mobile */
    }
    
    #jubm-module-container .jubm-tooltip-content::after {
        /* Re-center the arrow on mobile */
        left: 50% !important;
        right: auto !important;
        margin-left: -6px !important;
    }
}