/* =============================================
   Job Details View — Modern Card Styling
   ============================================= */

/* Container: remove watermark bleed-through for readability */
#idjobview {
    background-color: white;
    border-radius: 10px;
    padding: 10px 20px;
    margin-bottom: 20px;
}

/* All fieldsets inside the job view become cards */
#idjobview fieldset {
    background-color: #ffffff;
    border: 1px solid #e0e4e8;
    border-radius: 8px;
    padding: 16px 20px 12px;
    margin: 0 0 8px 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease;
}
#idjobview fieldset:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Legend styled as card header */
#idjobview legend {
    background-color: #346699;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 4px;
    margin-bottom: 4px;
    float: none;
    width: auto;
}
#idjobview legend span,
#idjobview legend strong,
#idjobview legend b {
    color: #ffffff;
}

/* Nested fieldsets (inside Other Requirements) — lighter treatment */
#idjobview fieldset fieldset {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    box-shadow: none;
    padding: 12px 14px 8px;
}
#idjobview fieldset fieldset legend {
    background-color: #5a8bb5;
    font-size: 0.82rem;
    padding: 3px 10px;
}

/* Job title area */
#idjobview .view {
    color: #1a1a1a;
}
#idjobview h2.view {
    font-size: 1.5rem;
    color: #1a1a1a;
    margin-bottom: 4px;
}

/* Action buttons row styling */
#idjobview + .PluginPayscaleBox + ul.hlist,
#idjobview ~ ul.hlist {
    background-color: #f0f4f8;
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 12px;
}

/* Apply Online Now button — prominent */
a.isubmit.apply-online,
a.apply-online,
.btn-apply-prominent {
    background-color: #2e7d32;
    color: #ffffff !important;
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    margin: 8px auto;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.1s ease;
}
a.isubmit.apply-online:hover,
a.apply-online:hover,
.btn-apply-prominent:hover {
    background-color: #1b5e20;
    transform: translateY(-1px);
}

/* Grid cards — even height */
#idjobview .grid.nomargin-gutters > .unit fieldset,
#idjobview .grid > .unit fieldset {
    min-height: 80px;
}

/* Contact info table inside cards */
#idjobview fieldset table {
    width: 100%;
}
#idjobview fieldset table td {
    padding: 4px 8px 4px 0;
    vertical-align: top;
    line-height: 1.5;
}

/* Make top and bottom action bars cards */
.job-details-action-bar {
    background-color: white !important;
    border-radius: 10px;
    padding: 10px 20px;
    margin-bottom: 15px;
    margin-top: 15px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}
.job-details-action-bar li {
    vertical-align: middle;
}

/* ---- Responsive: stack cards on mobile ---- */
@media only screen and (max-width: 767px) {
    #idjobview {
        padding: 8px 10px;
    }
    #idjobview fieldset {
        padding: 12px 14px 10px;
    }
    #idjobview .grid.nomargin-gutters > .unit,
    #idjobview .grid > .unit {
        display: block;
        width: 100% !important;
        margin-bottom: 8px;
    }
    #idjobview .grid.nomargin-gutters > .unit fieldset,
    #idjobview .grid > .unit fieldset {
        min-height: auto;
    }
    #idjobview h2.view {
        font-size: 1.2rem;
    }
    a.isubmit.apply-online,
    a.apply-online {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
    .job-details-action-bar {
        text-align: center !important;
    }
    .job-details-action-bar li {
        display: block !important;
        margin-bottom: 8px;
        float: none !important;
    }
    
    /* Hide the footer on mobile as requested */
    .site-footer {
        display: none !important;
    }
}
