.cdlup-job-cards {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.cdlup-job-card {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    padding: 40px 44px;
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
}

.cdlup-job-content {
    max-width: 70%;
}

.cdlup-job-title {
    font-size: 34px;
    font-weight: 500;
    margin-bottom: 12px;
    color: #555;
}

.cdlup-job-location {
    font-size: 13px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 14px;
}

.cdlup-job-description {
    font-size: 16px;
    color: #666;
    line-height: 1.7;
}

.cdlup-apply-btn-list {
    background-color: #2ea3f2;
    color: #ffffff !important;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.25s ease;
}

.cdlup-apply-btn-list:hover {
    background-color: #1b8bd6;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .et_pb_text_inner .cdlup-job-card {
        flex-direction: column !important;
        align-items: flex-start;
        gap: 22px;
    }

    .et_pb_text_inner .cdlup-job-content {
        max-width: 100%;
    }
}


/* ===============================
   CDLUP Job Detail – Divi Safe
   =============================== */

/* Page container safety */
.et_pb_section .cdlup-job-hero,
.et_pb_section .cdlup-job-section,
.et_pb_section .cdlup-job-cta {
    max-width: 1140px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* ---------- HERO SECTION ---------- */
.cdlup-job-hero {
    padding-top: 60px;
    padding-bottom: 30px;
}

.cdlup-job-hero h1 {
    font-size: 44px;
    font-weight: 500;
    color: #555;
    margin-bottom: 12px;
    line-height: 1.25;
}

.cdlup-location {
    font-size: 13px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: #888;
}

/* ---------- CONTENT SECTIONS ---------- */
.cdlup-job-section {
    padding: 40px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.cdlup-job-section:last-child {
    border-bottom: none;
}

.cdlup-job-section h3 {
    font-size: 26px;
    font-weight: 500;
    color: #333;
    margin-bottom: 16px;
}

.cdlup-job-section p {
    font-size: 16px;
    color: #666;
    line-height: 1.75;
    max-width: 900px;
}

/* ---------- META GRID ---------- */
.cdlup-job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 32px;
}

.cdlup-job-meta > div {
    flex: 1 1 240px;
    font-size: 15px;
    color: #555;
}

.cdlup-job-meta strong {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

/* ---------- COMPENSATION ---------- */
.cdlup-job-section p strong {
    font-weight: 600;
    color: #333;
}

/* ---------- APPLY CTA ---------- */
.cdlup-job-cta {
    padding: 50px 0 70px;
    text-align: left;
}

.cdlup-apply-btn {
    display: inline-block;
    background-color: #2ea3f2;
    color: #ffffff !important;
    padding: 16px 42px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}

.cdlup-apply-btn:hover {
    background-color: #1b8bd6;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.15);
}

.cdlup-apply-btn.is-disabled {
    pointer-events: none;
    opacity: 0.6;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
    .cdlup-job-hero h1 {
        font-size: 32px;
    }

    .cdlup-job-section {
        padding: 30px 0;
    }

    .cdlup-job-section h3 {
        font-size: 22px;
    }

    .cdlup-job-cta {
        text-align: center;
    }
}


/* ===============================
   CDLUP Profile Layout
=============================== */

.cdlup-profile-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
    max-width: 1140px;
    margin: 40px auto;
    padding: 0 24px;
}

/* Left sidebar */
.cdlup-profile-sidebar {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.06);
    padding: 20px 0;
}

/* Right content */
.cdlup-profile-content {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.06);
    padding: 32px 36px;
}

.cdlup-profile-tabs {
    list-style-type: none !important;
    padding: 0;
    margin: 0;
}

.cdlup-profile-tabs li {
    padding: 14px 20px;
    cursor: pointer;
    font-size: 15px;
    color: #444;
    border-left: 4px solid transparent;
    transition: all 0.2s ease;
}

.cdlup-profile-tabs li:hover {
    background: #f5f7fa;
}

.cdlup-profile-tabs li.active {
    background: #f5f7fa;
    border-left-color: #1f7a3a;
    font-weight: 600;
}

/* ===============================
   Profile Form Styling
=============================== */

#cdlup-profile-form {
    display: block;
}

.cdlup-tab-content h3 {
    margin-bottom: 24px;
    font-size: 22px;
    font-weight: 600;
}

/* Grid for fields */
/* Tabs hidden by default */
.cdlup-tab-content {
    display: none;
}

/* Active tab visible */
.cdlup-tab-content.active {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 24px;
    animation: cdlupFade 0.15s ease-in;
}

@keyframes cdlupFade {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: none; }
}

/* Full width rows */
.cdlup-tab-content label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
}

.cdlup-tab-content input,
.cdlup-tab-content select {
    width: 100%;
    height: 44px;
    padding: 8px 12px !important;
    border-radius: 8px;
    border: 1px solid #dcdcdc;
    font-size: 14px;
    box-sizing: border-box;
}

/* Checkboxes */
.cdlup-tab-content input[type="checkbox"] {
    width: auto;
    height: auto;
    margin-right: 8px;
}

.cdlup-tab-content label input[type="checkbox"] {
    margin-right: 8px;
}

.cdlup-primary-btn {
    margin-top: 32px;
    padding: 14px 36px;
    border-radius: 50px;
    background: #2ea3f2;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.cdlup-primary-btn:hover {
    background: #1b8bd6;
}

.cdlup-primary-btn.small {
    min-height: 40px;
    padding: 0 26px;
    font-size: 14px;
}

.cdlup-profile-completeness {
    margin-bottom: 24px;
}

.cdlup-completeness-header {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 6px;
}

.cdlup-completeness-bar {
    height: 8px;
    background: #eaeaea;
    border-radius: 4px;
    overflow: hidden;
}

.cdlup-completeness-bar div {
    height: 100%;
    background: #1f7a3a;
    transition: width 0.3s ease;
}

/* ===============================
   Profile Field Wrapper
=============================== */

.cdlup-field {
    display: flex;
    flex-direction: column;
}

/* Make sections span full width */
.cdlup-tab-content h3 {
    grid-column: 1 / -1;
}

/* Checkbox rows */
.cdlup-field.inline {
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

/* ===============================
   Applied Jobs (Profile Page)
=============================== */

.cdlup-profile-card {
    margin-top: 40px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.16);
    padding: 28px 32px;
}

.cdlup-profile-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 18px;
}

.cdlup-applied-jobs {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cdlup-applied-jobs li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.cdlup-applied-jobs li:last-child {
    border-bottom: none;
}

.cdlup-job-status {
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 12px;
    background: #f5f7fa;
    color: #444;
    font-weight: 500;
}

.cdlup-resume-card {
    margin-top: 40px;
}

.cdlup-resume-meta {
    margin-bottom: 12px;
    font-size: 14px;
}

.cdlup-resume-warning {
    color: #b00020;
    font-size: 14px;
    margin-bottom: 12px;
}

.cdlup-resume-actions {
    margin-bottom: 16px;
}

.cdlup-secondary-btn {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 30px;
    background: #f5f7fa;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

/* ===============================
   Form Messages (Success / Error)
=============================== */

.cdlup-form-message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    display: none;
}

/* Success */
.cdlup-form-message.success {
    display: block;
    background: #e6f6ec;
    color: #1f7a3a;
    border: 1px solid rgba(31, 122, 58, 0.25);
}

/* Error */
.cdlup-form-message.error {
    display: block;
    background: #fdecea;
    color: #b00020;
    border: 1px solid rgba(176, 0, 32, 0.25);
}

@media (max-width: 900px) {
    .cdlup-profile-layout {
        grid-template-columns: 1fr;
    }

    .cdlup-profile-sidebar {
        display: flex;
        overflow-x: auto;
    }

    .cdlup-profile-tabs {
        display: flex;
        flex-direction: row;
    }

    .cdlup-profile-tabs li {
        border-left: none;
        border-bottom: 3px solid transparent;
        white-space: nowrap;
    }

    .cdlup-profile-tabs li.active {
        border-bottom-color: #1f7a3a;
    }

    .cdlup-tab-content {
        grid-template-columns: 1fr;
    }
}

/* Shared list container */
.cdlup-list {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Row */
.cdlup-list-row {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 14px 16px;
    background: #f9fafb;
    border-radius: 12px;
}

/* Left content */
.cdlup-list-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cdlup-list-title {
    font-size: 15px;
    font-weight: 600;
    color: #101828;
}

.cdlup-list-meta {
    font-size: 13px;
    color: #667085;
}

/* Actions */
.cdlup-list-actions {
    display: flex;
    gap: 10px;
}

/* Action buttons */
.cdlup-link-btn {
    background: none;
    border: 0;
    padding: 0;
    font-size: 14px;
    font-weight: 500;
    color: #2ea3f2;
    cursor: pointer;
}

.cdlup-link-btn.danger {
    color: #d92d20;
}

/* Status pills */
.cdlup-status {
    font-weight: 600;
}

.cdlup-status.open { color: #027a48; }
.cdlup-status.paused { color: #b54708; }
.cdlup-status.closed { color: #667085; }
.cdlup-status.draft { color: #475467; }

/* ===============================
   Application Page
=============================== */

.cdlup-application-wrapper {
    max-width: 960px;
    margin: 40px auto;
    padding: 0 24px;
}

.cdlup-card {
    background: #fff;
    border-radius: 14px;
    padding: 28px 32px;
    box-shadow: 0 12px 30px rgba(0,0,0,.06);
    margin-bottom: 28px;
}

.cdlup-app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cdlup-muted {
    color: #667085;
    font-size: 14px;
}

.cdlup-status-pill {
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
    text-transform: capitalize;
}

.cdlup-status-pill.applied { background:#eef4ff; color:#3538cd; }
.cdlup-status-pill.viewed { background:#fef3c7; color:#92400e; }
.cdlup-status-pill.shortlisted { background:#ecfdf3; color:#027a48; }
.cdlup-status-pill.hired { background:#d1fae5; color:#065f46; }
.cdlup-status-pill.rejected { background:#fee2e2; color:#b91c1c; }
.cdlup-status-pill.contacted { background: #eef4ff; color: #3538cd; }
.contacted-btn { cursor: pointer; }

.cdlup-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 18px 32px;
}

.cdlup-info-grid div strong {
    display: block;
    font-size: 13px;
    color: #475467;
}

.cdlup-info-grid div span {
    font-size: 15px;
    font-weight: 500;
}

/* Reject modal textarea */
#cdlup-reject-modal textarea {
    width: 100%;
    min-height: 120px;
    margin: 18px 0;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #d0d5dd;
}

/* ===============================
   Disabled Buttons
=============================== */

/* Disabled buttons */
.cdlup-primary-btn:disabled,
.cdlup-secondary-btn:disabled,
.cdlup-link-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

/* Disabled primary specifically */
.cdlup-primary-btn:disabled {
    background: #cfd4dc;
    color: #ffffff;
}

/* Disabled success */
.cdlup-primary-btn.success:disabled {
    background: #b7dfc7;
}

/* Disabled link-style reject */
.cdlup-link-btn.danger:disabled {
    color: #e5a2a2;
}

/* Notifications wrapper */
.cdlup-menu-notifications {
    position: relative;
}

/* Panel */
#cdlup-notification-panel {
    position: absolute;
    width: 340px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 14px 45px rgba(0, 0, 0, 0.18);
    z-index: 999999;
    display: none;
}

/* Header */
#cdlup-notification-panel .cdlup-panel-header {
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    border-bottom: 1px solid #eef0f3;
    background: #f9fafb;
}

/* Notification list */
#cdlup-notification-panel ul {
    max-height: 320px;
    overflow-y: auto;
}

/* Individual notification */
#cdlup-notification-panel li {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f3f5;
    cursor: pointer;
    transition: background 0.15s ease;
}

/* Hover */
#cdlup-notification-panel li:hover {
    background: #f9fafb;
}

/* Unread state */
#cdlup-notification-panel li.unread {
    background: #f3f7ff;
    border-left: 4px solid #2563eb;
}

/* Title */
#cdlup-notification-panel li div {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 2px;
}

/* Message */
#cdlup-notification-panel li small {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
    display: block;
}

/* Footer */
#cdlup-notification-panel .cdlup-panel-footer {
    padding: 12px;
    text-align: center;
    background: #f9fafb;
}

/* Footer link */
#cdlup-notification-panel .cdlup-panel-footer a {
    font-size: 13px;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
}

#cdlup-notification-panel .cdlup-panel-footer a:hover {
    text-decoration: underline;
}

/* ============================
   BADGE (Bell Count)
============================ */

.cdlup-notification-count {
    background: #ef4444;
    color: #ffffff;
    font-size: 11px;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 999px;
    font-weight: 600;
    box-shadow: 0 0 0 2px #0b2a3f;
}

/* ============================
   SCROLLBAR (optional polish)
============================ */

#cdlup-notification-panel ul::-webkit-scrollbar {
    width: 6px;
}

#cdlup-notification-panel ul::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

#cdlup-notification-panel ul::-webkit-scrollbar-track {
    background: transparent;
}

/* ============================
   NOTIFICATION EMPTY STATE
============================ */

#cdlup-notification-empty {
    padding: 20px 16px;
    text-align: center;
    font-size: 14px;
    color: #6b7280;
    line-height: 1.4;
}
