/* =========================================================
   SINGLE JOB PAGE
   ========================================================= */

/* Container */
.single-job-container {
    max-width: 1200px;
    margin: 2rem auto !important;
    padding: 2rem;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    font-family: 'Inter', sans-serif;
}

/* ---------------------------------------------------------
   HEADER
--------------------------------------------------------- */
.job-header {
    margin-bottom: 20px;
}

.job-title {
    font-weight: 700;
    line-height: 1.3;
    color: #ffffff;
}

.editor-pick-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.5rem;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.18);
    color: #f59e0b;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: #f3f4f6;
}

.editor-pick-badge i {
    font-size: 0.85rem;
}

/* ---------------------------------------------------------
   BREADCRUMBS
--------------------------------------------------------- */
.job-breadcrumbs-wrapper {
    margin-bottom: 20px;
}

.breadcrumbs {
    font-size: 14px;
}

.breadcrumbs a {
    color: #4f46e5;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs span {
    color: #1e293b;
}

/* ---------------------------------------------------------
   JOB HIGHLIGHTS
--------------------------------------------------------- */
.job-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.highlight-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.highlight-card i {
    font-size: 1.2rem;
    color: #4f46e5;
    width: 20px;
    text-align: center;
}

.highlight-label {
    font-size: 0.8rem;
    color: #6b7280;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.highlight-value {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
}

/* ---------------------------------------------------------
   JOB CONTENT GRID
--------------------------------------------------------- */
.job-content-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

/* ---------------------------------------------------------
   COMPANY CARD (SIDEBAR)
--------------------------------------------------------- */
.company-card {
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}

.company-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.company-card-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    color: #1f2937;
}

.company-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.company-card-title i {
    color: #4f46e5;
}

.company-about {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.company-about.muted {
    color: #9ca3af;
}

.company-details-list {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.company-details-list li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #374151;
    font-weight: 600;
}

.company-details-list a {
    color: #1d4ed8;
    text-decoration: none;
}

.company-details-list a:hover {
    text-decoration: underline;
}

.company-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.company-socials a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #1f2937;
    font-size: 0.85rem;
    text-decoration: none;
}

.company-socials a:hover {
    border-color: #c7d2fe;
    color: #1d4ed8;
}

.company-profile-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #1d4ed8;
    font-weight: 600;
    text-decoration: none;
}

.company-profile-link:hover {
    text-decoration: underline;
}

.follow-company-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid #c7d2fe;
    background: #eef2ff;
    color: #4338ca !important;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.follow-company-btn:hover {
    color: white !important;

}


.follow-company-btn.is-following {
    background: #4338ca;
    border-color: #4338ca;
    color: #ffffff !important;
}

.follow-company-btn.is-loading {
    opacity: 0.7;
    cursor: wait;
}

/* ---------------------------------------------------------
   JOB DESCRIPTION SECTION
--------------------------------------------------------- */
.job-description-section {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    border: 1px solid #e5e7eb;
    overflow: auto;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: #4f46e5;
}

/* Repeated key details */
.job-key-details-repeat {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 25px;
}

.detail-row {
    margin-bottom: 8px;
    font-size: 15px;
    color: #374151;
}

.detail-row strong {
    color: #1f2937;
    display: inline-block;
    min-width: 80px;
}

/* Description content */
.job-description {
    line-height: 1.7;
    color: #374151;
}

.job-description h2 {
    font-size: 1.3rem;
    margin-top: 25px;
    margin-bottom: 15px;
}

.job-description h3 {
    font-size: 1.1rem;
    margin-top: 20px;
    margin-bottom: 12px;
}

.job-description p {
    margin-bottom: 16px;
}

.job-description ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.job-description li {
    margin-bottom: 8px;
}

/* ---------------------------------------------------------
   TAGS SECTION
--------------------------------------------------------- */
.job-tags-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.job-tag {
    background: #e0e7ff;
    color: #3730a3;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid #c7d2fe;
}

/* ---------------------------------------------------------
   SIDEBAR
--------------------------------------------------------- */
.job-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-title i {
    color: #4f46e5;
}

/* ---------------------------------------------------------
   ALERTS
--------------------------------------------------------- */
.alert {
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
}

.alert-warning {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    color: #92400e;
}

.alert-info {
    background: #dbeafe;
    border: 1px solid #3b82f6;
    color: #1e40af;
}

/* ---------------------------------------------------------
   CONTACT / APPLY SECTION
--------------------------------------------------------- */
.contact-info {
    margin-top: 15px;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
    font-size: 1rem;
    flex-wrap: wrap;
}

.contact-label {
    font-weight: 600;
    color: #1e293b;
}

.contact-value {
    color: #334155;
    word-break: break-word;
}

.apply-website-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #0073e6;
    color: #fff !important;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.3s;
}

.apply-website-btn:hover {
    background: #005bb5;
    color: #ffffff !important;
}

.save-for-later-btn {
    margin-top: 8px;
}

.save-for-later-btn.saved {
    background: #005bb5;
}

.save-for-later-btn.saved:hover {
    background: #004b96;
}

@media (max-width: 768px) {
    .save-for-later-btn {
        display: inline-flex;
        width: 100%;
        justify-content: center;
    }

    .save-for-later-inline {
        display: none !important;
    }

    .sidebar-card.application-card {
        border-radius: 0 !important;
    }

    .mobile-sticky-actions {
        background: #ffffff;
    }
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #0073e6 0%, #7c3aed 100%) !important;
    color: white !important;
    padding: 10px 16px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    width: 100%;
    justify-content: center;
    font-weight: 500;
    transition: background 0.3s;
}

.contact-btn:hover {
    background: #4338ca;
	color: white !important;
}

/* ---------------------------------------------------------
   LOGIN PROMPT
--------------------------------------------------------- */
.login-prompt {
    text-align: center;
    padding: 15px;
    background: #f8fafc;
    border-radius: 6px;
    font-size: 14px;
}

@media (max-width: 768px) {
    .apply-website-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ---------------------------------------------------------
   PORTFOLIO PROMO
--------------------------------------------------------- */
.portfolio-promo-card {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
}

.portfolio-promo-card p {
    font-size: 0.95rem;
    color: #374151;
    margin: 10px 0 16px;
}

.promo-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #0073e6;
    color: #fff !important;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s;
}

.promo-btn:hover {
    background: #005bb5;
}

/* ---------------------------------------------------------
   SIMILAR JOBS SECTION
--------------------------------------------------------- */
.similar-jobs-section {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.similar-jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.job-sidebar .similar-jobs-section {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.job-sidebar .similar-jobs-grid {
    grid-template-columns: 1fr;
    margin-top: 12px;
}

.job-card-minimal {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 12px 14px;
    transition: box-shadow 0.2s;
}

.job-card-minimal:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.job-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 6px;
}

.job-card-title a {
    color: #1f2937;
    text-decoration: none;
}

.job-card-title a:hover {
    color: #4f46e5;
}

.job-card-meta {
    font-size: 0.8rem;
    color: #6b7280;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* ---------------------------------------------------------
   JOB ALERT MODAL
--------------------------------------------------------- */
.job-alert-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: transparent;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    animation: fadeIn 0.2s ease;
}

.job-alert-modal-content {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    max-width: 420px;
    width: 95%;
    position: relative;
    box-shadow: 0 10px 24px rgba(0,0,0,0.12);
    border: 1px solid #e5e7eb;
    animation: slideUp 0.25s ease;
}

.job-alert-modal-content h3 {
    margin: 0 0 1.25rem 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f3f4f6;
}

.job-alert-modal-content label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
}

.job-alert-modal-content input[type="text"],
.job-alert-modal-content select,
.job-alert-modal-content input[type="range"] {
    width: 95%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.radius-slider-container {
    margin-bottom: 1rem;
}

#radius-value {
    color: #4f46e5;
    font-weight: 600;
}

/* Modal buttons */
.job-alert-modal-buttons {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.job-alert-modal-buttons .save-btn {
    flex: 1;
    background: #4f46e5;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.7rem 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s;
}

.job-alert-modal-buttons .save-btn:hover {
    background: #4338ca;
}

.job-alert-modal-buttons .cancel-btn {
    flex: 1;
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0.7rem 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s;
}

.job-alert-modal-buttons .cancel-btn:hover {
    background: #e5e7eb;
}

/* Close button */
.modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    font-size: 1.2rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0.25rem;
}

.modal-close-btn:hover {
    color: #111827;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; } 
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ---------------------------------------------------------
   CREATE JOB ALERT BUTTON
--------------------------------------------------------- */
.create-job-alert-section {
    margin: 20px 0 25px;
    text-align: center;
}

.create-job-alert-btn {
    width: 100%;
    max-width: 300px;
    background: #4f46e5;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.3s;
}

.create-job-alert-btn:hover {
    background: #4338ca;
}

/* ---------------------------------------------------------
   RESPONSIVE
--------------------------------------------------------- */
@media (max-width: 768px) {
    .job-content-grid {
        grid-template-columns: 1fr;
    }

    .job-highlights {
        grid-template-columns: 1fr;
    }

    .create-job-alert-btn {
        max-width: 100%;
        font-size: 0.95rem;
    }

    .job-description-section,
    .sidebar-card,
    .similar-jobs-section {
        position: relative;
        left: -10px;
        width: calc(100% + 20px);
    }
}


.single-job-container.quiety-theme {
    max-width: 1200px !important;
    margin: 2rem auto !important;
    padding: 0 !important;
    background: #fff !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    overflow: hidden !important;
}

.job-header {
background: linear-gradient(135deg, #0073e6 0%, #7c3aed 100%) !important;
    color: white !important;
    padding: 3rem 2.5rem !important;
    position: relative !important;
}

.job-header-content {
    max-width: 800px;
}

.job-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.job-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: white;
    margin: 0.5rem 0 1rem;
    line-height: 1.3;
}

.job-stats {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    font-size: 0.95rem;
    opacity: 0.9;
}

.job-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.job-status-badge {
    position: absolute;
    top: 2rem;
    right: 2rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
}

.job-status-badge.closed { background: #ef4444; }
.job-status-badge.expired { background: #f59e0b; }



.highlight-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.highlight-card i {
    font-size: 1.5rem;
    color: #4f46e5;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef2ff;
    border-radius: 8px;
}

.highlight-label {
    display: block;
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.highlight-value {
    font-weight: 600;
    color: #1f2937;
}

.job-content-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    padding: 2.5rem;
}

.job-description-section {
    padding-right: 2rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-title i {
    color: #4f46e5;
}

.job-description {
    line-height: 1.8;
    color: #4b5563;
    font-size: 1.05rem;
}

.job-description p {
    margin-bottom: 1.5rem;
}

.social-media-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.social-platform {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: #f3f4f6;
    border-radius: 8px;
    color: #4b5563;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s;
}

.social-platform:hover {
    background: #e5e7eb;
    color: #1f2937;
}

.social-platform i {
    font-size: 1rem;
    color: #4f46e5;
}

.job-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-title i {
    color: #4f46e5;
}

.company-meta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.company-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #4f46e5;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    padding: 0.5rem 0;
}

.company-link:hover {
    color: #7c3aed;
}

.company-link i {
    width: 20px;
    text-align: center;
}

.reveal-progress-box {
    margin: 1.5rem 0;
}

.progress-container {
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-bar {
    height: 100%;
    transition: width 0.3s;
}

.progress-bar.green { background: #10b981; }
.progress-bar.orange { background: #f59e0b; }
.progress-bar.red { background: #ef4444; }

.reveal-stats {
    font-size: 0.9rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.reveal-stats.unlimited {
    color: #10b981;
    font-weight: 500;
}

.reveal-btn {
    width: 100%;
    padding: 1rem;
    background: #4f46e5;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.2s;
    margin-top: 1rem;
}

.reveal-btn:hover {
    background: #7c3aed;
    transform: translateY(-2px);
}

.reveal-btn.revealed {
    background: #6b7280;
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.alert i {
    font-size: 1.1rem;
}

.alert-error { background: #fee2e2; color: #b91c1c; }
.alert-success { background: #dcfce7; color: #166534; }
.alert-warning { background: #fef3c7; color: #92400e; }
.alert-info { background: #dbeafe; color: #1e40af; }

.login-prompt {
    text-align: center;
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 8px;
    color: #4b5563;
}

.login-prompt a {
    color: #4f46e5;
    font-weight: 500;
    text-decoration: none;
}

.global-reveal-info {
    font-size: 0.9rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.btn-login {
    display: inline-block;
    margin-top: 8px;
    background-color: #0073aa;
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
}
.btn-login:hover {
    background-color: #005177;
}


/* =========================================================
   MODAL STYLES
   ========================================================= */

/* Modal Overlay */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent !important;
    z-index: 9999;
    justify-content: center;
    align-items: center;
    backdrop-filter: none;
}

/* Modal Content */
.modal-content {
    background: white !important;
    border-radius: 12px !important;
    padding: 2rem !important;
    max-width: 500px !important;
    width: 90% !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid #e5e7eb !important;
    position: relative !important;
    animation: modalSlideIn 0.3s ease-out !important;
}

/* Modal Close Button */
.modal-close {
    position: absolute !important;
    top: 1rem !important;
    right: 1rem !important;
    background: transparent !important;
    border: none !important;
    font-size: 1.25rem !important;
    color: #6b7280 !important;
    cursor: pointer !important;
    padding: 0.25rem !important;
    border-radius: 4px !important;
    transition: all 0.2s !important;
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.modal-close:hover {
    background: #f3f4f6 !important;
    color: #374151 !important;
}

/* Modal Header */
.modal-content h3 {
    margin: 0 0 1.5rem 0 !important;
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    color: #1f2937 !important;
    padding-right: 2rem !important; /* Space for close button */
}

/* Form Styles within Modal */
.modal-content .form-group {
    margin-bottom: 1.25rem !important;
}

.modal-content .form-group label {
    display: block !important;
    margin-bottom: 0.5rem !important;
    font-weight: 500 !important;
    color: #374151 !important;
    font-size: 0.9rem !important;
}

.modal-content .form-group input[type="text"],
.modal-content .form-group input[type="email"],
.modal-content .form-group textarea,
.modal-content .form-group input[type="file"] {
    width: 100% !important;
    padding: 0.75rem !important;
    border: 1px solid #d1d5db !important;
    border-radius: 6px !important;
    font-size: 0.95rem !important;
    box-sizing: border-box !important;
}

.modal-content .form-group input[type="text"]:focus,
.modal-content .form-group input[type="email"]:focus,
.modal-content .form-group textarea:focus {
    outline: none !important;
    border-color: #4f46e5 !important;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1) !important;
}

.modal-content .form-group textarea {
    resize: vertical !important;
    min-height: 120px !important;
    font-family: inherit !important;
}

/* Read-only email field */
.modal-content .form-group input[readonly] {
    background: #f9fafb !important;
    color: #6b7280 !important;
    cursor: not-allowed !important;
}

/* Checkbox styling */
.modal-content label[style*="display:block"] {
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.5rem !important;
    font-size: 0.9rem !important;
    color: #374151 !important;
    margin: 1.5rem 0 !important;
}

.modal-content label[style*="display:block"] input[type="checkbox"] {
    margin-top: 0.2rem !important;
    accent-color: #4f46e5 !important;
}

/* Submit button in modal */
.modal-content .submit-btn {
    width: 100% !important;
    background: #4f46e5 !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 0.875rem 1.5rem !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
}

.modal-content .submit-btn:hover {
    background: #4338ca !important;
}

.modal-content .submit-btn:disabled {
    background: #9ca3af !important;
    cursor: not-allowed !important;
}

/* External apply modal actions */
.external-apply-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.external-apply-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.external-apply-btn.primary {
    background: #4f46e5;
    color: #fff !important;
}

.external-apply-btn.primary:hover {
    background: #4338ca;
}

.external-apply-btn.outline {
    background: #ffffff;
    border: 1px solid #d1d5db;
    color: #374151 !important;
}

.external-apply-btn.outline:hover {
    border-color: #9ca3af;
}

/* Small text below fields */
.modal-content small {
    display: block !important;
    margin-top: 0.25rem !important;
    color: #6b7280 !important;
    font-size: 0.8rem !important;
}

/* Animation */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive */
@media (max-width: 640px) {
    .modal-content {
        width: 95% !important;
        padding: 1.5rem !important;
        margin: 1rem !important;
    }
    
    .modal-content h3 {
        font-size: 1.25rem !important;
    }
}

#pdf-export-spinner {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  font-family: system-ui, sans-serif;
}
#pdf-export-spinner i {
  font-size: 2.5rem;
  color: #ef4444;
  margin-bottom: 10px;
}
#pdf-export-spinner p {
  font-size: 1.1rem;
  color: #333;
}

.enhanced-login-box {
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
    text-align: left;
}

.enhanced-login-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #4f46e5;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.enhanced-login-sub {
    font-size: 0.95rem;
    color: #374151;
    margin-bottom: 12px;
}

.enhanced-benefit-list {
    margin: 0 0 15px 0;
    padding-left: 18px;
    list-style: none;
}

.enhanced-benefit-list li {
    font-size: 0.9rem;
    color: #4b5563;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.enhanced-benefit-list i {
    color: #4f46e5;
    font-size: 0.9rem;
}

.enhanced-cta-primary {
    display: block;
    text-align: center;
    background: #4f46e5;
    color: #fff !important;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 12px;
    transition: 0.25s ease;
}

.enhanced-cta-primary:hover {
    background: #4338ca;
}

.enhanced-secondary-cta {
    font-size: 0.9rem;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
}

.enhanced-secondary-cta a {
    color: #4f46e5 !important;
    font-weight: 500;
    text-decoration: none;
}

.enhanced-secondary-cta a:hover {
    text-decoration: underline;
}

/* =========================================================
   MOBILE FIRST RESPONSIVE BREAKPOINTS - CLEAN VERSION
   ========================================================= */
@media (max-width: 768px) {

  /* Global container */
  .single-job-container {
    margin: 0;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    width: 100vw;
    max-width: 100%;
    overflow-x: hidden;
  }

  /* Header */
  .job-header {
    padding: 1.5rem 1rem;
    margin-bottom: 0;
    border-radius: 0 0 16px 16px;
    max-width: 100%;
    overflow: hidden;
  }

  .job-header-content {
    max-width: 100%;
    width: 100%;
  }

  .job-title {
    font-size: 1.5rem;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
  }

  .job-company {
    font-size: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
  }

  /* Meta chips */
  .job-meta-chips {
    display: flex !important;
    flex-wrap: wrap;
    gap: 6px;
    margin: 1rem 0;
    max-width: 100%;
  }

  .meta-chip {
    background: rgba(255, 255, 255, 0.15);
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
  }

  /* Breadcrumbs */
  .job-breadcrumbs-wrapper {
    display: none;
  }

  .mobile-breadcrumb {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: #6b7280;
    padding: 0.5rem 1rem;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .mobile-breadcrumb a {
    color: #4f46e5;
    text-decoration: none;
  }

  /* Highlights */
  .job-highlights {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 10px;
    padding: 1rem;
    margin: 0;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .job-highlights::-webkit-scrollbar {
    height: 4px;
  }

  .job-highlights::-webkit-scrollbar-track {
    background: #f1f1f1;
  }

  .job-highlights::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
  }

  .highlight-card {
    flex: 0 0 auto;
    width: 160px;
    min-width: 160px;
    flex-direction: column;
    text-align: center;
    padding: 12px;
    gap: 8px;
    border-radius: 12px;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
  }

  .highlight-card i {
    font-size: 1.2rem;
    margin-bottom: 4px;
  }

  .highlight-label {
    font-size: 0.7rem;
  }

  .highlight-value {
    font-size: 0.85rem;
    font-weight: 600;
  }

  /* Content grid */
  .job-content-grid {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Job description */
  .job-description-section {
    padding: 1rem;
    border: none;
    background: white;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  .job-description {
    position: relative;
    overflow: hidden;
    transition: max-height 0.4s ease;
    width: 100%;
  }

  .description-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(transparent, white);
    pointer-events: none;
    z-index: 2;
  }

  .show-more-btn {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 0.75rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #4f46e5;
    font-weight: 600;
    text-align: center;
    margin-top: 1rem;
    cursor: pointer;
  }

  .job-description p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
  }

  .job-description ul,
  .job-description ol {
    padding-left: 1.2rem;
  }

  .job-description li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
  }

  /* Sidebar */
  .job-sidebar {
    order: 3;
    padding: 1rem;
    gap: 1rem;
    width: 100%;
  }

  .sidebar-card {
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    padding: 1.25rem;
    margin-bottom: 0;
  }

  /* Similar jobs */
  .similar-jobs-section {
    order: 2;
    margin-top: 0;
    padding: 1rem;
    border-top: 1px solid #e5e7eb;
  }

  .similar-jobs-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .job-card-minimal {
    padding: 1rem;
    margin-bottom: 0.5rem;
  }

  /* Promo card */
  .portfolio-promo-card {
    padding: 1rem;
  }

  .portfolio-promo-card h3 {
    font-size: 1rem;
  }

  .portfolio-promo-card p {
    font-size: 0.85rem;
    margin: 0.5rem 0;
  }

  /* Key details */
  .job-key-details-repeat {
    width: 100%;
    overflow: hidden;
  }

  .detail-row {
    width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  /* Tags */
  .tags-container {
    flex-wrap: wrap;
    width: 100%;
  }

  .job-tag {
    max-width: 100%;
    word-wrap: break-word;
  }
	
}
/* =========================================================
   MOBILE STICKY APPLICATION CARD
   ========================================================= */
@media (max-width: 768px) {
  /* Mobile-only styling for the application card */
  .sidebar-card.application-card {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    margin: 0;
    border-radius: 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    max-height: 80vh;
    overflow-y: auto;
    width: 96%;
    max-width: 100%;
    border: none;
  }

  /* When active/visible */
  .sidebar-card.application-card.active {
    transform: translateY(0);
  }

  /* Overlay behind the card when active */
  .sidebar-card.application-card.active::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
  }

  /* Handle/drag indicator at top */
  .sidebar-card.application-card::after {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: #d1d5db;
    border-radius: 2px;
    margin: 8px auto 12px;
  }

  /* Adjust card title for mobile */
  .sidebar-card.application-card .card-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding: 0 1rem;
  }

  /* Adjust content inside the card */
  .sidebar-card.application-card > *:not(.card-title) {
    padding: 0 1rem;
  }

  /* Ensure the regular sidebar card is hidden on mobile */
  .job-sidebar .sidebar-card.application-card:not(.active) {
    display: none;
  }

  /* Sticky toggle button at bottom of screen */
  .mobile-sticky-toggle {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #4f46e5;
    color: white;
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    z-index: 9998;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
	  border-radius: 0px;
  }

  /* Sticky actions wrapper (toggle + save) */
  .mobile-sticky-actions {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px 12px 12px;
    pointer-events: auto;
  }

  .mobile-sticky-actions.is-hidden {
    display: none;
  }

  /* When inside the actions wrapper, the toggle should be static */
  .mobile-sticky-actions .mobile-sticky-toggle {
    position: static;
    width: 100%;
  }

  .sidebar-card.application-card .save-for-later-btn {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
  }

  .mobile-sticky-save {
    width: 100%;
    justify-content: center;
    font-weight: 600;
  }

  /* Close button inside the card */
  .mobile-close-card {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    font-size: 1.2rem;
    color: #6b7280;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
  }

  .mobile-close-card:hover {
    background: #f3f4f6;
  }
}

/* Desktop - keep original positioning */
@media (min-width: 769px) {
  .sidebar-card.application-card {
    position: static;
    transform: none;
    margin-bottom: 20px;
  }

  .mobile-sticky-toggle {
    display: none;
  }

  #smb-sticky-actions {
    display: none;
  }
}

/* =========================================================
   MOBILE UTILITIES
   ========================================================= */
.mobile-only {
  display: none;
}

@media (max-width: 768px) {
  .mobile-only {
    display: block;
  }

  .desktop-only {
    display: none;
  }
}

/* Shared spacing */
@media (max-width: 768px) {
  .sidebar-card,
  .similar-jobs-section,
  .job-description-section {
    padding: 1rem;
    width: 95%;
    margin: 0 auto;
    max-width: 95%;
  }

  .section-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }

  .single-job-container > * {
    max-width: 95%;
    margin-left: auto;
    margin-right: auto;
    width: 95%;
  }
}

/* Company info */
@media (max-width: 768px) {
  .company-info-box {
    padding: 0.75rem;
    margin-bottom: 1rem;
    background: #f8fafc;
    border-radius: 8px;
  }

  .job-key-details-repeat {
    padding: 1rem;
    margin-bottom: 1rem;
  }

  .detail-row {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }
}

/* =========================================================
   SAFE OVERFLOW PREVENTION
   ========================================================= */
@media (max-width: 768px) {

  .single-job-container *,
  .job-description *,
  .job-sidebar *,
  .similar-jobs-section *,
  .job-header * {
    max-width: 100%;
    box-sizing: border-box;
  }

  img,
  video,
  iframe {
    max-width: 100%;
    height: auto;
  }

  table {
    width: 100%;
    display: block;
    overflow-x: auto;
  }

  .job-description pre,
  .job-description code {
    white-space: pre-wrap;
    word-wrap: break-word;
    max-width: 100%;
  }
}

/* =========================================================
   FIX HORIZONTAL SCROLL
   ========================================================= */
@media (max-width: 768px) {
  html,
  body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
  }

  body {
    min-height: 100vh;
  }
}


.form-section {
  margin-bottom: 1.75rem;
}

.form-section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: #1f2937;
  margin-bottom: 0.75rem;
}

.form-section-title i {
  color: #4f46e5;
}


@media (max-width: 640px) {
  .modal-content {
    max-height: 85vh;
  }
}


/* Toast */
.smb-toast{
    position:fixed;
    bottom:24px;
    right:24px;
    background:#111827;
    color:#fff;
    padding:12px 16px;
    border-radius:10px;
    font-size:14px;
    opacity:0;
    transform:translateY(8px);
    transition:opacity .25s ease, transform .25s ease;
    z-index:9999;
    max-width:320px;
    box-shadow:0 10px 28px rgba(0,0,0,.25);
}
.smb-toast.is-visible{opacity:1;transform:translateY(0);}

/* Subtle application type label */
.apply-type-label{
    margin:8px 0 14px;
    font-size:13px;
    color:#6b7280;
}

/* External apply bridge */
.external-apply-bridge{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.55);
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:9998;
}
.bridge-box{
    background:#fff;
    padding:18px 20px;
    border-radius:12px;
    font-size:15px;
    box-shadow:0 14px 40px rgba(0,0,0,.25);
}
.applied-subtext{
    font-size:13px;
    color:#6b7280;
}
.post-apply-reassurance{
    margin-top:10px;
    color:#374151;
    font-size:14px;
}

/* =========================================================
   MOBILE STICKY APPLY — PATCH
   ========================================================= */
@media (max-width: 768px) {
  /* Keep the card in the DOM; JS will control visibility via .active */
  .job-sidebar .sidebar-card.application-card {
    display: block; /* override any earlier display:none */


  }

  /* When NOT active, keep it off-canvas but NOT display:none (so it can be activated) */
  .job-sidebar .sidebar-card.application-card:not(.active) {
    display: block;        /* override your display:none */
    transform: translateY(100%);
    pointer-events: none;  /* prevents accidental taps while offscreen */
  }

  .job-sidebar .sidebar-card.application-card.active {
    pointer-events: auto;
  }

  /* Prevent content being hidden behind the sticky toggle bar */
  body.has-sticky-apply-toggle {
    padding-bottom: 140px; /* space for toggle + save button stack */
  }

  /* Optional: overlay when drawer open */
  .smb-sticky-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 9998;
    display: none;
  }
  .smb-sticky-overlay.is-visible { display: block; }
}

.fa-solid, .fas {
	color: #0073e6
}
