/* public/job.css
 * Job detail page styling (single job view)
 * Designed to match homepage job cards and the provided mockup
 */

/* -----------------------------
 * PAGE WRAPPER
 * --------------------------- */

.job-show-hero {
    background: linear-gradient(
        135deg,
        rgba(60, 111, 113, 0.08),
        #f7f9fc
    );
    padding: 1.75rem 0 1.5rem;
}

.job-show-hero .container {
    max-width: 980px;
}

/* -----------------------------
 * HERO CARD (TOP BAR)
 * --------------------------- */

.job-show-hero-card {
    border-radius: 1rem;
    background-color: #ffffff;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.16);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

/* Left part: logo + title + meta */
.job-show-hero-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.job-show-logo {
    width: 72px;
    height: 72px;
    border-radius: 0.9rem;
    background: #f9fafb;
    border: 1px solid rgba(148, 163, 184, 0.7);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9ca3af;
}

.job-show-title-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.job-show-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
}

.job-show-company {
    font-size: 0.95rem;
    color: #4b5563;
}

/* Right part: primary button + save button */
.job-show-hero-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.job-show-hero-right .btn-primary {
    border-radius: 999px;
    padding-inline: 1.6rem;
    font-weight: 600;
}

.job-show-save-btn {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.8);
    background-color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.job-show-save-btn i {
    font-size: 1.2rem;
    color: #9ca3af;
}

/* -----------------------------
 * HERO META ROW (COMPANY + ADDRESS)
 * --------------------------- */

.job-show-meta-row {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: #4b5563;
}

.job-show-meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.job-show-meta-item i {
    font-size: 1rem;
    color: #94a3b8;
}

/* -----------------------------
 * MAIN CONTENT CARD
 * --------------------------- */

.job-show-main {
    padding: 1.75rem 0 2.5rem;
}

.job-show-main .container {
    max-width: 980px;
}

.job-show-content-card {
    border-radius: 1rem;
    background-color: #ffffff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    padding: 1.8rem 1.9rem;
}

/* Section titles inside card */
.job-show-section-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #111827;
}

/* Subheading (e.g., "Main Duties We Will Assign to You") */
.job-show-subheading {
    font-weight: 600;
    margin-bottom: 0.35rem;
}

/* Bullet lists */
.job-show-list {
    padding-left: 1.1rem;
    font-size: 0.93rem;
    color: #374151;
}

.job-show-list li + li {
    margin-top: 0.15rem;
}

/* Spacing between sections inside the card */
.job-show-section {
    margin-bottom: 1.4rem;
}

.job-show-section:last-of-type {
    margin-bottom: 0;
}

/* -----------------------------
 * WORKPLACE EXTRAS (ICON GRID)
 * --------------------------- */

.job-show-extras-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem 1.5rem;
    margin-top: 0.5rem;
}

.job-show-extra-item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.9rem;
}

.job-show-extra-icon {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background-color: #eef2ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--color-primary);
}

/* -----------------------------
 * BOTTOM META (TAGS + REPORT)
 * --------------------------- */

.job-show-bottom-meta {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    align-items: center;
    font-size: 0.88rem;
}

.job-show-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.job-show-tag {
    padding: 0.18rem 0.65rem;
    border-radius: 999px;
    background-color: #f3f4f6;
    color: #4b5563;
    font-size: 0.78rem;
}

.job-show-report-link {
    color: var(--color-primary-alt);
    text-decoration: none;
}

/* -----------------------------
 * RESPONSIVE
 * --------------------------- */

@media (max-width: 768px) {
    .job-show-hero-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 1.25rem;
    }

    .job-show-hero-right {
        align-self: stretch;
        justify-content: space-between;
    }

    .job-show-content-card {
        padding: 1.4rem 1.35rem;
    }
}

/* -----------------------------
 * CREATE / EDIT FORM STYLES
 * --------------------------- */

.rmk-admin-form .card {
    border-radius: 14px;
}

.rmk-admin-form .card-header {
    padding: 18px 22px;
    border-bottom: 1px solid #eee;
}

.rmk-admin-form .form-label {
    font-size: 0.95rem;
}

.rmk-admin-form textarea {
    resize: vertical;
}

.nav-tabs .nav-link {
    font-weight: 600;
}

.nav-tabs .nav-link.active {
    color: #0d6efd;
}