@import url('variables.css');
@import url('flexbox.css');
@import url('styles.css');

/* ====================================
   JOB DETAILS MODERN STYLES
   ====================================*/

/* Main container */
.job-details-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    align-items: start;
    font-family: var(--font-family-body);
}

/* Job content area */
.job-content {
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    overflow: hidden;
}

.job-main-section {
    padding: 40px;
}

/* Section styles */
.job-section {
    margin-bottom: 40px;
}

.job-section:last-child {
    margin-bottom: 0;
}

.section-title {
    font-size: 24px;
    font-weight: bold;
    color: #162960;
    margin-bottom: 20px;
    font-family: var(--font-family-body);
    border-bottom: 2px solid #199ada;
    padding-bottom: 10px;
}

/* Job description */
.job-description {
    font-size: 16px !important;
    line-height: 1.6 !important;
    color: #333 !important;
}

    .job-description p {
        margin-bottom: 16px;
        font-family: var(--font-family-body) !important;
        font-size: 16px !important;
        line-height: 1.6 !important;
        color: #333 !important;
    }

    .job-description b {
        margin-bottom: 16px;
        font-family: var(--font-family-body) !important;
        font-size: 16px !important;
        line-height: 1.6 !important;
        color: #333 !important;
    }

    .job-description span {
        font-family: var(--font-family-body) !important;
        font-size: 16px !important;
        color: #333 !important;
    }

    .job-description ul, .job-description ol {
        margin: 16px 0;
        padding-left: 24px;
        font-family: var(--font-family-body) !important;
        font-size: 16px !important;
        color: #333 !important;
    }

    .job-description li {
        margin-bottom: 8px;
        font-family: var(--font-family-body) !important;
        font-size: 16px !important;
        color: #333 !important;
    }

/* Job information grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.info-item {
    font-family: var(--font-family-body);
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid #199ada;
}

.info-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #162960;
    margin-bottom: 8px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-label svg {
    width: 18px;
    height: 18px;
    stroke: #199ada;
}

.info-value {
    font-family: var(--font-family-body) !important;
    font-size: 16px;
    font-weight: 400;
    color: #333;
}

.info-value.salary {
    font-size: 18px;
    font-weight: 700;
    color: #27ae60;
}

.salary-period {
    font-size: 14px;
    font-weight: 400;
    color: #666;
}

/* Apply section */
.apply-section {
    background: linear-gradient(135deg, #199ada 0%, #162960 100%);
    color: white;
    border-radius: 16px;
    padding: 32px;
    text-align: center;
}

.apply-section .section-title {
    color: white;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

.apply-description {
    font-size: 16px;
    margin-bottom: 24px;
    opacity: 0.9;
}

.apply-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #ffb400;
    color: #162960;
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(255, 180, 0, 0.3);
}

.apply-btn:hover {
    background: #ffa000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 180, 0, 0.4);
    color: #162960;
    text-decoration: none;
}

.apply-btn svg {
    width: 20px;
    height: 20px;
}

/* Job expired section */
.job-expired {
    text-align: center;
    padding: 60px 40px;
    background: #f8f9fa;
    border-radius: 16px;
    border: 2px dashed #ddd;
}

.expired-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: #ff6b6b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.expired-icon svg {
    width: 40px;
    height: 40px;
    stroke: white;
}

.job-expired h2 {
    color: #ff6b6b;
    margin-bottom: 16px;
}

.back-to-jobs-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #162960;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.back-to-jobs-btn:hover {
    background: #1a2f6b;
    transform: translateY(-2px);
    text-decoration: none;
    color: white;
}

/* Sidebar */
.job-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-section {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.sidebar-section h3 {
    font-size: 18px;
    font-weight: 700;
    color: #162960;
    margin-bottom: 16px;
    border-bottom: 2px solid #199ada;
    padding-bottom: 8px;
}

/* Company info */
.company-logo {
    text-align: center;
    margin-bottom: 20px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.company-logo img {
    max-width: 140px;
    max-height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    transition: all 0.3s ease;
}

.company-logo img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
}

.company-description {
    font-size: 16px;
    font-family: var(--font-family-body);
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 16px;
    text-align: justify;
    text-justify: inter-word;
}

.company-description p {
    margin-bottom: 12px;
    text-align: justify;
    text-justify: inter-word;
}

.company-description p:last-child {
    margin-bottom: 0;
}

.company-description ul, .company-description ol {
    margin: 12px 0;
    padding-left: 20px;
}

.company-description li {
    margin-bottom: 6px;
    text-align: justify;
    text-justify: inter-word;
}

.company-website, .view-all-jobs {
    font-family: var(--font-family-body);
    display: flex;
    align-items: center;
    gap: 8px;
    color: #199ada;
    text-decoration: none;
    font-weight: 800;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.company-website:hover, .view-all-jobs:hover {
    color: #162960;
    text-decoration: none;
    transform: translateX(4px);
}

.company-website svg, .view-all-jobs svg {
    width: 16px;
    height: 16px;
}

/* Action buttons */
.action-btn {
    font-family: var(--font-family-body);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
    box-sizing: border-box;
    min-height: 44px;
}

.action-btn.secondary {
    background: #f8f9fa;
    color: #162960;
    border: 1px solid #ddd;
}

.action-btn.secondary:hover {
    background: #162960;
    color: white;
    text-decoration: none;
}

.action-btn.share-btn {
    background: #199ada;
    color: white;
}

.action-btn.share-btn:hover {
    background: #162960;
    transform: translateY(-2px);
}

.action-btn svg {
    width: 16px;
    height: 16px;
}

/* Header metadata */
.job-meta-header {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 16px;
    font-size: 16px;
}

    .job-meta-header span {
        font-family: var(--font-family-body);
        display: flex;
        align-items: center;
        color: black;
        font-weight: 500;
        gap: 6px; 
    }

    .job-meta-header i {
        color: black;
    }


.company-name {
    color: #199ada !important;
    font-weight: 700 !important;
}

/* Responsive design */
@media (max-width: 1024px) {
    .job-details-container {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 20px 10px;
    }
    
    .job-main-section {
        padding: 24px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .p-4 {
        padding: 0px !important;
    }

    .job-details-container {
        padding: 20px 25px;
    }
    
    .job-main-section {
        padding: 20px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .apply-section {
        padding: 24px;
    }

    .job-meta-header {
        flex-direction: column;
        gap: 12px;
        justify-content: center;
        align-items: center;
    }
    
    .apply-btn {
        padding: 14px 28px;
        font-size: 15px;
    }
    
    .company-logo {
        padding: 12px;
        margin-bottom: 16px;
    }
    
    .company-logo img {
        max-width: 120px;
        max-height: 70px;
    }
    
    .company-description {
        font-size: 13px;
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    .job-main-section {
        padding: 16px;
    }
    
    .sidebar-section {
        padding: 16px;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .info-item {
        padding: 16px;
    }
    
    .company-logo {
        padding: 10px;
        margin-bottom: 14px;
    }
    
    .company-logo img {
        max-width: 100px;
        max-height: 60px;
    }
    
    .company-description {
        font-size: 12px;
        line-height: 1.4;
    }
} 