/* ICR Style – Base Front CSS */

/* Variables */
:root{
  --icr-blue: #173472;
  --icr-red:  #E5463F;
  --icr-page-bg: #f0f3f7;

  --icr-page-gap: 28px;
  --icr-head-pad-y: 16px;
  --icr-head-pad-x: 20px;
  --icr-row-pad-y: 18px;
  --icr-row-pad-x: 20px;
  --icr-view-col-w: 160px;
  --icr-position-fr: 0.7;
}

/* ========= GLOBAL ========= */
body{ background: var(--icr-page-bg) !important; }

/* Hide legacy header completely (keep admin bar) */
[role="banner"], header, .site-header, #apus-header, .apus-header, .header, .main-header, .elementor-location-header {
  display:none !important;
}
body, #page, #main-wrapper, .site-content { padding-top: 0 !important; margin-top: 0 !important; }

/* Remove Map in footer if any */
.footer-map{ display:none !important; }
footer iframe[src*="google.com/maps"]{ display:none !important; }

/* Remove Jobs widget in footer */
.site-footer .widget_joblist,
.site-footer .widget_joblist .widget-title { display: none !important; }

/* .icr-single cleanup */
.icr-single{ display:block !important; }
.icr-single #primary, .icr-single .site-main{ display:block !important; }

.icr-single .container{
  width:80%; max-width:1300px; margin:0 auto;
  padding-top:24px; box-sizing:border-box;
}
.icr-single .container .grid.grid-2{
  display:grid !important;
  grid-template-columns: minmax(0, 7fr) minmax(280px, 3fr);
  gap:24px; align-items:start;
}

/* ========= BANNER ========= */
.icr-style-banner{ display:block; width:100%; line-height:0; background:transparent; }
.icr-style-banner picture, .icr-style-banner img{ display:block; width:100%; height:auto; }

/* ========= FOOTER (single block) ========= */
footer{ background: var(--icr-blue) !important; color:#fff !important; padding:0 !important; }
.icr-style-footer{ background: var(--icr-blue); color:#fff; }
.icr-style-footer a{ color:#fff; text-decoration:none; }
.icr-style-footer a:hover{ text-decoration:underline; }
.icr-style-footer__inner{ max-width:1400px; margin:0 auto; padding:24px; }
.icr-style-footer__inner h3{ margin:0 0 10px; font-size:20px; line-height:1.3; }
.icr-style-footer__inner p{ margin:6px 0; opacity:.95; }

/* ========= JOB LIST ========= */
.jobs-wrapper{ display:flex; gap:24px; align-items:flex-start; width:80%; max-width:1600px; margin:0 auto; padding:24px; box-sizing:border-box; }

.jobs-filter{ flex:0 0 320px; background:transparent !important; border-radius:0 !important; padding:0; box-shadow:none !important; }
.jobs-filter h2{ margin:0 0 14px; font-weight:800; font-size:clamp(22px,2.2vw,28px); color:#1d3d8f; }
.jobs-filter label{ display:block; margin:16px 0 8px; font-weight:700; color:#1d3d8f; }
.jobs-filter select, .jobs-filter input[type="text"]{ width:100%; padding:14px 16px; border-radius:14px; border:1px solid #E7ECF4; background:#fff; color:#0F172A; font-size:16px; }
.jobs-filter select:focus, .jobs-filter input[type="text"]:focus{ border-color:#1d3d8f; box-shadow:0 0 0 4px rgba(29,61,143,.12); outline:none; }
.jobs-filter .btn{ width:160px; }

.jobs-list.jobs-table{
  display:block; background:#fff;
  border:1px solid #E1E6EF; border-radius:18px; overflow:hidden;
  box-shadow:0 8px 18px rgba(13,26,60,.08);
  padding-bottom:12px;
}

.jobs-table-head{
  display:grid;
  grid-template-columns:
    minmax(0, calc(var(--icr-position-fr) * 1fr))
    clamp(160px,18%,240px)
    clamp(140px,14%,200px)
    var(--icr-view-col-w);
  gap:16px; align-items:center;
  padding: var(--icr-head-pad-y) var(--icr-head-pad-x);
  background: var(--icr-blue); color:#fff;
  font-weight:700; letter-spacing:.3px;
  border-radius:18px 18px 0 0;
  margin:0;
}

.job-row{ padding: var(--icr-row-pad-y) var(--icr-row-pad-x); margin:0; background:#fff; }
.job-row + .job-row{ border-top:1px solid #E9EEF6; }

.job-row__line{
  display:grid;
  grid-template-columns:
    minmax(0, calc(var(--icr-position-fr) * 1fr))
    clamp(160px,18%,240px)
    clamp(140px,14%,200px)
    var(--icr-view-col-w);
  gap:16px; align-items:center;
}

.job-row__line > *:last-child{
  justify-self:end; text-align:right;
  display:flex; justify-content:flex-end; align-items:center;
}

.view-btn, .btn, .jobs-filter button{
  display:flex; align-items:center; justify-content:center;
  text-align:center; white-space:nowrap;
  padding:12px 22px;
  border-radius:24px; border:0; cursor:pointer;
  font-weight:700; letter-spacing:.2px; line-height:1;
}
.view-btn{
  background: var(--icr-red); color:#fff;
  box-shadow:inset 0 -3px 0 rgba(0,0,0,.08);
  min-width:120px; width:auto;
}
.view-btn:hover{ background:#D13E37; }

.job-row__desc{
  margin-top:6px; font-size:13px; line-height:1.5; color:#667085;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical;
  overflow:hidden; text-overflow:ellipsis; max-width:100%;
}
.job-title{ color:#1d3d8f; font-weight:600; font-size:22px; line-height:1.25; text-decoration:none; overflow-wrap:anywhere; }
.job-title:hover{ text-decoration:underline; }
.chip{ display:inline-block; padding:4px 10px; border-radius:999px; background:#E8F1FF; border:1px solid #C9D8EE; color:#0F172A; font-size:12px; font-weight:700; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.job-row:hover{ background:#fbfdff; }

/* Page spacing (between header/footer and content) */
.site-content, #primary, #main, .icr-single .container, .jobs-wrapper{
  padding-top: var(--icr-page-gap) !important;
  padding-bottom: var(--icr-page-gap) !important;
}

/* Round bottom corners safety */
section[class*="jobs-list"]{ border-radius:18px !important; overflow:hidden !important; }
section[class*="jobs-list"] .jobs-table-head{ border-radius:18px 18px 0 0 !important; }

/* ====== Responsive ====== */
@media (max-width:1200px){ .jobs-wrapper{ width:92%; } }
@media (max-width:1024px){
  .jobs-wrapper{ flex-direction:column; padding:18px !important; }
  .jobs-filter{ width:100%; }
  .jobs-table-head{ display:none !important; }
  .job-row__line{ grid-template-columns:1fr !important; gap:10px; row-gap:8px; }
  .job-row__line > *:last-child{ justify-content:stretch; }
  .view-btn{ width:100% !important; min-width:0; padding:14px 18px !important; font-size:16px; }
  .job-title{ font-size:20px; line-height:1.3; }
  .job-row__desc{ font-size:14px; line-height:1.6; }
}
@media (max-width:600px){
  .jobs-wrapper{ width:94%; padding:16px !important; }
  .job-row{ padding:16px 16px !important; }
  .chip{ font-size:11px; padding:4px 10px; }
  .job-title{ display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; text-overflow:ellipsis; }
}
