/* Jobs Page Custom Styling */

:root {
    --primary-blue: #003E94;
    --dark-blue: #00132d;
    --accent-orange: #FFA600;
    --light-bg: #f8f9fa;
}

.jobs-banner {
    background: linear-gradient(rgba(0, 19, 45, 0.8), rgba(0, 19, 45, 0.8)), url('../Images/Images/img 1.png');
    background-size: cover;
    background-position: center;
    padding: 120px 0 80px;
    color: white;
    text-align: center;
}

.jobs-banner h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

.jobs-banner span {
    color: var(--accent-orange);
}

/* ── Job Grid Layout ── */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    padding: 0;
}

/* ── Square Sharp-Edge Job Card ── */
.job-card {
    background: white;
    border-radius: 0;                          /* Sharp edges */
    padding: 20px 16px;
    border: 1px solid #e0e6f0;
    border-top: 3px solid var(--primary-blue);
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 180px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.job-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-orange);
    transition: width 0.3s ease;
}

.job-card:hover::after {
    width: 100%;
}

.job-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 62, 148, 0.12);
    border-top-color: var(--accent-orange);
}

.job-card .job-type-badge {
    display: inline-block;
    background: var(--primary-blue);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 0;                          /* Sharp badge */
    margin-bottom: 10px;
}

.job-card .job-title {
    color: var(--dark-blue);
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 8px;
    line-height: 1.3;
}

.job-card .job-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #666;
    font-size: 0.78rem;
    line-height: 1.4;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.job-card .job-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.job-card .job-meta i {
    color: var(--accent-orange);
    width: 12px;
    flex-shrink: 0;
}

.job-card-actions {
    display: flex;
    gap: 6px;
    margin-top: auto;
}

.btn-apply {
    background-color: var(--accent-orange);
    color: white;
    padding: 6px 12px;
    border-radius: 0;                          /* Sharp */
    font-weight: 600;
    font-size: 0.78rem;
    text-decoration: none;
    display: inline-block;
    transition: 0.2s;
    border: none;
    flex: 1;
    text-align: center;
}

.btn-apply:hover {
    background-color: #e69500;
    color: white;
}

.btn-view {
    background-color: transparent;
    color: var(--primary-blue);
    padding: 6px 12px;
    border-radius: 0;                          /* Sharp */
    font-weight: 600;
    font-size: 0.78rem;
    text-decoration: none;
    display: inline-block;
    border: 1.5px solid var(--primary-blue);
    flex: 1;
    text-align: center;
    transition: 0.2s;
}

.btn-view:hover {
    background-color: var(--primary-blue);
    color: white;
}

/* ── Detail Page Header ── */
.job-detail-header {
    background: linear-gradient(135deg, #00132d 0%, #003E94 60%, #00132d 100%);
    padding: 130px 0 40px;         /* increased because breadcrumb is gone */
    color: white;
    position: relative;
    overflow: hidden;
}

/* Decorative background blobs */
.job-detail-header::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(255,166,0,0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.job-detail-header::after {
    content: '';
    position: absolute;
    bottom: -60px; left: -60px;
    width: 250px; height: 250px;
    background: radial-gradient(circle, rgba(0,62,148,0.4) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.job-detail-header .container { position: relative; z-index: 1; }

#job-title-display {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin-bottom: 16px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

/* Meta chips row */
#job-meta-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.92);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 500;
    backdrop-filter: blur(4px);
}

.meta-chip i {
    color: #FFA600;
    font-size: 0.8rem;
}

/* Share section */
.share-row {
    display: flex;
    flex-direction: row;           /* always horizontal */
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
    margin-top: 20px;
}

.share-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.5);
    margin-right: 4px;
}

.share-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: 0.25s;
    border: 2px solid rgba(255,255,255,0.2);
}

.share-whatsapp { background-color: #25D366; border-color: #25D366; }
.share-linkedin  { background-color: #0077b5; border-color: #0077b5; }
.share-copy      { background-color: rgba(255,255,255,0.15); }

.share-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 14px rgba(0,0,0,0.35);
}

/* ── Detail Content Area ── */
.job-detail-content {
    padding: 48px 0 60px;
    background-color: #f0f2f7;
}

.detail-card {
    background: white;
    padding: 28px 32px;
    border-radius: 0;                /* Sharp */
    border: 1px solid #e0e6f0;
    border-top: 3px solid #003E94;
    box-shadow: none;
}

.detail-card h3 {
    color: #003E94;
    margin-bottom: 16px;
    border-bottom: 2px solid #FFA600;
    display: inline-block;
    padding-bottom: 5px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Registration Form */
.registration-form {
    background: white;
    padding: 28px;
    border-radius: 0;                /* Sharp */
    border: 1px solid #e0e6f0;
    border-top: 3px solid #FFA600;
    position: sticky;
    top: 100px;
    box-shadow: none;
}

.form-control:focus {
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 0.25rem rgba(255, 166, 0, 0.25);
}

/* Mobile Responsiveness */
@media (max-width: 1200px) {
    .jobs-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 992px) {
    .jobs-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    /* Jobs listing */
    .jobs-banner h1 { font-size: 2.2rem; }
    .jobs-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .job-card { min-height: 160px; padding: 16px 12px; }
    .btn-view, .btn-apply { font-size: 0.72rem; padding: 5px 8px; }
    .registration-form { margin-top: 40px; position: static; }

    /* Detail page header */
    .job-detail-header {
        padding: 120px 0 30px;      /* ensure clearance under fixed navbar */
    }

    #job-title-display {
        font-size: 1.5rem !important;
    }

    /* Meta chips — wrap freely */
    #job-meta-display {
        justify-content: flex-start;
        gap: 6px;
    }

    .meta-chip {
        font-size: 0.75rem;
        padding: 4px 10px;
    }

    /* Share row — keep horizontal, smaller */
    .share-row {
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 8px;
        margin-top: 14px;
    }

    .share-btn {
        width: 34px;
        height: 34px;
        font-size: 0.9rem;
    }

    .share-label { font-size: 0.72rem; }

    /* Header flex column on mobile */
    #job-header-content > div:first-child {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .jobs-grid { grid-template-columns: repeat(1, 1fr); }
    .job-detail-header { padding: 110px 0 24px; }
    #job-title-display { font-size: 1.3rem !important; }
}
