/**
 * Job Detail Page CSS - Profesea Style
 * Clean, professional maritime job portal design
 */

/* BASE & RESET */
.profesea-job-detail {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.profesea-job-detail .site-main {
    padding: 0 !important;
    max-width: none !important;
}

.profesea-job-detail .container,
.profesea-job-detail .bb-grid {
    max-width: none !important;
    width: 100% !important;
}

/* JOB HEADER SECTION */
.job-header-section {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 30px 20px;
    border-radius: 16px;
}

.job-header-container {
    max-width: 1200px;
    margin: 0 auto;
}

.job-breadcrumb {
    margin-bottom: 24px;
    font-size: 14px;
    color: #6b7280;
}

.job-breadcrumb a {
    color: #3b82f6;
    text-decoration: none;
}

.job-breadcrumb a:hover {
    text-decoration: underline;
}

.job-breadcrumb .separator {
    margin: 0 8px;
}

.job-breadcrumb .current {
    color: #111827;
    font-weight: 500;
}

.job-header-info {
    display: flex;
    gap: 24px;
}

.job-company-logo {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    background: #f3f4f6;
    border: 2px solid #e5e7eb;
    flex-shrink: 0;
}

.job-company-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
}

.job-title-section {
    flex: 1;
}

.job-title {
    font-size: 32px;
    font-weight: 800;
    color: #111827;
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.job-company {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 16px;
}

.job-meta-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #f3f4f6;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #4b5563;
}

.meta-badge.meta-location {
    background: #dbeafe;
    color: #1e40af;
}

.meta-badge.meta-posted {
    background: #f3f4f6;
    color: #6b7280;
}

.meta-badge.meta-filled {
    background: #fee2e2;
    color: #991b1b;
}

.meta-badge.meta-featured {
    background: #fef3c7;
    color: #92400e;
}

/* JOB CONTENT SECTION */
.job-content-section {
    padding-top: 20px;
}

.job-content-container {
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
}

.job-main-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.job-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 20px 0;
    padding-bottom: 16px;
    border-bottom: 2px solid #e5e7eb;
}

.section-content {
    font-size: 16px;
    line-height: 1.7;
    color: #374151;
}

.section-content ul,
.section-content ol {
    margin: 16px 0;
    padding-left: 24px;
}

.section-content li {
    margin-bottom: 8px;
}

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

.sidebar-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.apply-card {
    position: sticky;
    top: 20px;
    border: 2px solid #3b82f6;
}

.btn-apply-now {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 32px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #ffffff;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-apply-now:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-2px);
    color: #ffffff;
}

.login-required-text {
    text-align: center;
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 16px 0;
}

.btn-login,
.btn-register {
    display: block;
    width: 100%;
    padding: 14px 24px;
    text-align: center;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 12px;
}

.btn-login {
    background: #3b82f6;
    color: #ffffff;
    border: 2px solid #3b82f6;
}

.btn-login:hover {
    background: #2563eb;
    color: #ffffff;
}

.btn-register {
    background: #ffffff;
    color: #3b82f6;
    border: 2px solid #3b82f6;
}

.btn-register:hover {
    background: #f0f9ff;
}

.details-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.detail-item {
    padding-bottom: 16px;
    border-bottom: 1px solid #f3f4f6;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.detail-value {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

.share-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    border-radius: 10px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-2px);
}

.share-facebook {
    background: #1877f2;
}

.share-twitter {
    background: #1da1f2;
}

.share-linkedin {
    background: #0077b5;
}

.share-whatsapp {
    background: #25d366;
}

/* APPLICATION FORM */
.job-apply-section {
    padding: 40px 20px;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
}

.apply-container {
    max-width: 800px;
    margin: 0 auto;
}

.apply-title {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 32px 0;
    text-align: center;
}

/* RESPONSIVE */
@media (max-width: 1023px) {
    .job-content-container {
        grid-template-columns: 1fr;
    }
    
    .job-sidebar {
        order: -1;
    }
    
    .apply-card {
        position: static;
    }
}

@media (max-width: 767px) {
    .job-header-section {
        padding: 20px 15px;
    }
    
    .job-header-info {
        flex-direction: column;
        gap: 16px;
    }
    
    .job-company-logo {
        width: 60px;
        height: 60px;
    }
    
    .job-title {
        font-size: 24px;
    }
    
    .job-company {
        font-size: 16px;
    }
    
    .job-content-section {
        padding: 20px 15px;
    }
    
    .job-section,
    .sidebar-card {
        padding: 20px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .share-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
}

.job-maritime-details {
  background: none !important;
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
}