/* ==========================================================================
   Jobs module styles — extends the existing RPTech Global theme.
   Palette reused from css/style.css: orange #e87b29, navy #233d80,
   grey bg #f5f5f5, card grey #f7f7f7, font "Barlow".
   ========================================================================== */

.jobs-sec{ padding: 70px 0; }

/* toolbar: search + department filters */
.jobs-toolbar{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:20px; margin-bottom:40px; }
.jobs-search{ position:relative; flex: 0 0 320px; max-width:100%; }
.jobs-search input[type="text"]{ background:#ffffff; border:1px solid #e2e2e2; border-radius:6px; height:48px; padding:0 45px 0 18px; }
.jobs-search i{ position:absolute; right:16px; top:50%; transform:translateY(-50%); color:#e87b29; font-size:18px; pointer-events:none; }
.jobs-filters{ display:flex; flex-wrap:wrap; gap:10px; }
.jobs-filters button{ border:1px solid #e2e2e2; background:#ffffff; color:#000; font-family:"Barlow", sans-serif; font-weight:600; font-size:14px; padding:10px 20px; border-radius:30px; cursor:pointer; transition: all 0.25s ease-in-out; }
.jobs-filters button:hover{ border-color:#e87b29; color:#e87b29; }
.jobs-filters button.active{ background:#e87b29; border-color:#e87b29; color:#fff; }

/* grid of job cards */
.jobs-grid{ display:grid; grid-template-columns: repeat(2, 1fr); gap:26px; }
.job-card{ background:#f7f7f7; border-radius:15px; padding:30px 30px 28px; display:flex; flex-direction:column; transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out; text-decoration:none; }
.job-card:hover{ transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,0.08); text-decoration:none; }
.job-card-top{ display:flex; align-items:flex-start; justify-content:space-between; gap:14px; margin-bottom:16px; }
.job-type-tag{ display:inline-block; background: rgba(232,123,41,0.12); color:#e87b29; font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:0.5px; padding:5px 12px; border-radius:20px; white-space:nowrap; }
.job-card h3{ font-size:22px; line-height:1.35; margin-bottom:10px; color:#000; }
.job-card .job-dept{ font-size:14.5px; color:#e87b29; font-weight:700; margin-bottom:14px; }
.job-meta{ display:flex; flex-wrap:wrap; align-items:center; gap:16px; font-size:13.5px; color:#696687; margin-bottom:20px; }
.job-meta span{ display:inline-flex; align-items:center; gap:6px; }
.job-readmore{ font-size:14px; font-weight:700; color:#e87b29; letter-spacing:0.5px; text-transform:uppercase; margin-top:auto; }
.job-card:hover .job-readmore{ color:#233d80; }

.jobs-empty, .jobs-loading, .jobs-error{ text-align:center; padding:60px 20px; color:#696687; font-size:18px; grid-column: 1/-1; }
.jobs-error{ color:#c0392b; }

/* pagination */
.jobs-pagination{ display:flex; justify-content:center; gap:10px; margin-top:50px; }
.jobs-pagination button{ width:44px; height:44px; border-radius:50%; border:1px solid #e2e2e2; background:#fff; font-weight:700; cursor:pointer; font-family:"Barlow", sans-serif; }
.jobs-pagination button.active{ background:#e87b29; border-color:#e87b29; color:#fff; }
.jobs-pagination button:hover:not(.active){ border-color:#e87b29; color:#e87b29; }

/* ---------------- Job detail page ---------------- */
.job-detail-sec{ padding:70px 0 30px; }
.job-detail-head{ max-width:900px; margin:0 auto 40px; }
.job-detail-head .job-type-tag{ margin-bottom:16px; }
.job-detail-head h1{ font-size:40px; line-height:1.3; margin:0 0 18px; }
.job-detail-head .job-dept{ font-size:17px; color:#e87b29; font-weight:700; margin-bottom:18px; }
.job-detail-meta{ display:flex; gap:24px; flex-wrap:wrap; font-size:15px; color:#666; margin-bottom:26px; }
.job-detail-meta span{ display:inline-flex; align-items:center; gap:8px; }
.job-detail-body{ max-width:900px; margin:0 auto; }
.job-detail-body h2, .job-detail-body h3{ margin-top:30px; margin-bottom:14px; }
.job-detail-body p{ font-size:17px; line-height:1.8; margin-bottom:14px; }
.job-detail-body ul, .job-detail-body ol{ margin: 0 0 20px 20px; }
.job-detail-body ul li{ list-style: disc; margin-bottom:10px; font-size:16px; line-height:1.7; }
.job-detail-body ol li{ margin-bottom:10px; }
.job-back-link{ display:inline-flex; align-items:center; gap:8px; font-weight:700; color:#000; margin-bottom:30px; text-transform:uppercase; font-size:14px; letter-spacing:0.5px; text-decoration:none; }
.job-back-link:hover{ color:#e87b29; }

/* ---------------- Apply form ---------------- */
.apply-sec{ background:#f5f5f5; padding:70px 0; margin-top:50px; }
.apply-card{ max-width:760px; margin:0 auto; background:#fff; border-radius:15px; padding:44px; }
.apply-card h2{ margin-bottom:8px; text-align:center; }
.apply-card .apply-subtitle{ text-align:center; color:#888; margin-bottom:34px; }

/* LinkedIn / Portfolio URL field (Feature #4 part 2) */
.linkedin-field{ position:relative; display:flex; align-items:center; background:#f7f7f7; border:1.5px solid #e6e6e6; border-radius:8px; transition:all 0.25s ease; overflow:hidden; }
.linkedin-field:focus-within{ border-color:#0a66c2; background:#fff; box-shadow:0 0 0 4px rgba(10,102,194,0.12); }
.linkedin-field i{ flex-shrink:0; font-size:19px; color:#0a66c2; padding:0 14px; }
.linkedin-field input[type="url"]{ border:0; background:transparent; padding:0 15px 0 0; height:48px; font-size:15px; color:#000; width:100%; font-family:"Barlow", sans-serif; }
.linkedin-field input[type="url"]:focus{ outline:none; }
.linkedin-field input[type="url"]::placeholder{ color:#888; }

.apply-success, .apply-error{ text-align:center; padding:30px 20px; border-radius:10px; font-size:16px; }
.apply-success{ background:#e6f6ec; color:#1c8a4b; }
.apply-error{ background:#fdeceb; color:#c0392b; margin-bottom:22px; }

.jobs-related{ background:#f5f5f5; padding:70px 0; margin-top:0; }
.jobs-related h2{ text-align:center; margin-bottom:40px; }

@media (max-width: 991px){
  .jobs-grid{ grid-template-columns: 1fr; }
}
@media (max-width: 640px){
  .jobs-toolbar{ flex-direction:column; align-items:stretch; }
  .jobs-search{ flex-basis:auto; }
  .job-detail-head h1{ font-size:28px; }
  .apply-card{ padding:28px 20px; }
}
