/* Single Job Template Styles */

/* Style bullet items as tabs */
body.single-job .job-content ul li,
body.single-job .job-content ol li {
    display: inline-block;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 6px;
    padding: 0.5rem 1rem;
    margin: 0.5rem 0.5rem 0.5rem 0;
    list-style: none;
    width: auto;
}

/* Remove default list styling */
body.single-job .job-content ul,
body.single-job .job-content ol {
    list-style: none;
    padding-left: 0;
}

/* Light mode support removed - toggle only affects video opacity */

/* Hero Section - Apply Now Button with Gradient */
body.single-job .madb-hero-section .madb-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
}

body.single-job .madb-hero-section .madb-btn-primary:hover {
    outline: 2px solid #8b5cf6;
    outline-offset: 4px;
}

/* Job Content Wrapper - Two Column Layout */
body.single-job .job-content-wrapper {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

body.single-job .job-content {
    flex: 1;
    min-width: 0;
}

/* Job Sidebar - Other Jobs */
body.single-job .job-sidebar {
    width: 500px;
    flex-shrink: 0;
}

body.single-job .job-sidebar-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 1.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 2rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: visible; /* Allow wizard GIF to be visible outside container */
}

body.light-mode.single-job .job-sidebar-section {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

body.single-job .job-sidebar-section h3,
body.single-job .job-sidebar-title {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 1.5rem 0;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

body.single-job .job-sidebar-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 2px;
    flex-shrink: 0;
}

/* Light mode override removed */

body.single-job .other-jobs-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

body.single-job .other-job-card {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

body.single-job .other-job-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

body.single-job .other-job-card:hover::before {
    transform: scaleX(1);
}

body.single-job .other-job-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #8b5cf6;
    transform: translateY(-2px);
    outline: 2px solid #8b5cf6;
    outline-offset: 4px;
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

/* Light mode overrides removed */

body.single-job .other-job-logo {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.single-job .other-job-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #ffffff;
}

body.single-job .other-job-card-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

body.single-job .other-job-card h4,
body.single-job .other-job-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Light mode override removed */

body.single-job .other-job-excerpt {
    color: #999;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body.light-mode.single-job .other-job-excerpt {
    color: #666;
}

body.single-job .other-job-info {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 0.25rem;
}

body.single-job .other-job-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
}

body.single-job .other-job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: #999;
    margin-top: 0.5rem;
}

/* Light mode override removed */

body.single-job .other-job-meta-item,
body.single-job .other-job-location,
body.single-job .other-job-salary,
body.single-job .other-job-date {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    line-height: 1.4;
}

body.single-job .other-job-meta-item svg,
body.single-job .other-job-location svg,
body.single-job .other-job-salary svg,
body.single-job .other-job-date svg {
    flex-shrink: 0;
    opacity: 0.7;
}

body.single-job .job-sidebar-footer {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Light mode override removed */

body.single-job .job-sidebar-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    margin-top: 0.5rem;
}

body.single-job .job-sidebar-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Responsive - Stack on mobile */
@media (max-width: 968px) {
    body.single-job .job-content-wrapper {
        flex-direction: column;
    }
    
    body.single-job .job-sidebar {
        width: 100%;
    }
    
    body.single-job .job-sidebar-section {
        position: static;
        padding: 1.5rem;
    }
    
    body.single-job .other-job-card {
        padding: 1rem;
    }
    
    body.single-job .other-job-logo {
        width: 50px;
        height: 50px;
    }
    
    body.single-job .other-job-title {
        font-size: 0.95rem;
    }
    
    body.single-job .other-job-excerpt {
        font-size: 0.8rem;
    }
}
