/*
Theme Name: Astra Child
Template: astra
Description: REDtone Careers customizations (cards, hero, single-job page, requirements split, Why REDtone).
Author: REDtone Web
Version: 1.0.7
*/

/* Hide redundant page title on Careers */
.page-id-4189 .entry-header,
.page-id-4189 .entry-title{ display:none !important; }

/* ===== Job listing - modern 3-column cards ===== */
.page-id-4189 .ast-container{ max-width:1180px !important; }
.sjb-page .list-view{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; align-items:start; }
@media(max-width:1000px){ .sjb-page .list-view{ grid-template-columns:1fr 1fr; } }
@media(max-width:640px){ .sjb-page .list-view{ grid-template-columns:1fr; } }
.sjb-page .list-view .clearfix{ display:none !important; }
.sjb-page .list-view > nav{ grid-column:1 / -1; }
.sjb-page .list-data{ background:#fff; border:1px solid #ece5e4; border-radius:16px; overflow:hidden; box-shadow:0 1px 2px rgba(26,19,21,.04),0 8px 24px rgba(26,19,21,.05); transition:transform .15s,box-shadow .15s,border-color .15s; height:100%; }
.sjb-page .list-data:hover{ transform:translateY(-3px); box-shadow:0 20px 50px rgba(26,19,21,.12); border-color:rgba(237,28,36,.35); }
.rt-cardlink{ display:flex; flex-direction:column; height:100%; min-height:170px; padding:20px; text-decoration:none !important; }
.rt-top{ display:flex; align-items:center; justify-content:space-between; gap:10px; }
.rt-badge{ font-size:11px; font-weight:700; letter-spacing:.03em; text-transform:uppercase; padding:5px 10px; border-radius:8px; }
.rt-badge.ft{ color:#ed1c24; background:rgba(237,28,36,.11); }
.rt-badge.intern{ color:#0e8a94; background:rgba(14,138,148,.12); }
.rt-badge.contract{ color:#b06a00; background:rgba(176,106,0,.14); }
.rt-badge.protege{ color:#6b46c8; background:rgba(107,70,200,.13); }
.rt-date{ font-size:12px; color:#9a8e90; font-weight:600; white-space:nowrap; }
.rt-title{ font-size:16px; font-weight:700; line-height:1.3; color:#191113; margin:15px 0 0; overflow-wrap:break-word; }
.rt-cardlink:hover .rt-title{ color:#ed1c24; }
.rt-dept{ font-size:13px; color:#9a8e90; font-weight:600; margin-top:6px; }
.rt-foot{ display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:auto; padding-top:16px; }
.rt-loc{ display:flex; align-items:center; gap:6px; font-size:13px; color:#6c6062; font-weight:600; }
.rt-loc svg{ color:#ed1c24; flex:none; }
.rt-go{ display:flex; align-items:center; gap:6px; font-size:13px; font-weight:700; color:#b3131a; white-space:nowrap; }
.rt-go svg{ transition:transform .15s; }
.rt-cardlink:hover .rt-go svg{ transform:translateX(3px); }

/* Search / filter bar */
.sjb-page .sjb-filters, .sjb-page .sjb-filters-v2{ background:#fff; border:1px solid #ece5e4; border-radius:16px; padding:14px; box-shadow:0 8px 28px rgba(26,19,21,.06); margin-bottom:28px; }
.sjb-page .sjb-filters input[type="text"], .sjb-page .sjb-filters select{ border:1px solid #ece5e4 !important; border-radius:10px !important; padding:12px 14px !important; height:auto !important; box-shadow:none !important; font-size:15px; }
.sjb-page .sjb-filters .btn-search, .sjb-page .sjb-filters .btn-primary{ border-radius:10px !important; padding:12px 20px !important; font-weight:600; }

/* ================================================================== *
 *  SINGLE JOB PAGE
 * ================================================================== */

/* --- Full width + light grey background everywhere --- */
body.single-jobpost,
.single-jobpost .site-content,
.single-jobpost #primary,
.single-jobpost .ast-container{ background:#f6f2f1 !important; }
.single-jobpost .ast-container{ max-width:100% !important; }
.single-jobpost .site-content > .ast-container{ padding-left:48px !important; padding-right:48px !important; }
.single-jobpost .ast-separate-container .ast-article-single{ padding:2em 0 0 !important; }
/* Let the grey show through the article/content wrappers */
.single-jobpost .ast-article-single,
.single-jobpost article.post,
.single-jobpost article.jobpost,
.single-jobpost .entry-content{ background:transparent !important; box-shadow:none !important; }
/* The plugin paints these wrappers white - make them transparent so the
   grey shows in the gaps between the white section cards */
.single-jobpost .v2,
.single-jobpost .sjb-detail,
.single-jobpost .rt-main,
.single-jobpost .rt-two,
.single-jobpost .list-data{ background:transparent !important; }

/* --- Job header: badge + title + meta (rendered by functions.php) --- */
.single-jobpost .entry-header{ display:none !important; }        /* hide Astra's default title/meta */
.single-jobpost .rt-main > header{ display:none !important; }    /* hide the plugin's inline meta row */
.single-jobpost .sjb-job-type-location-date{ display:none !important; }
.rt-jobhead{ margin:0 0 26px; }
.rt-jobbadge{ display:inline-block; font-size:11px; font-weight:700; letter-spacing:.05em; text-transform:uppercase; color:#ed1c24; background:#fdecec; padding:6px 12px; border-radius:8px; margin-bottom:14px; }
.rt-jobtitle{ font-size:32px; font-weight:800; color:#191113; margin:0; line-height:1.15; }
.rt-jobmeta{ display:flex; flex-wrap:wrap; gap:22px; margin-top:14px; }
.rt-jobmeta span{ display:flex; align-items:center; gap:7px; font-size:14px; color:#6c6062; font-weight:600; }
.rt-jobmeta svg{ color:#ed1c24; flex:none; }

/* --- Two-column layout with sticky Apply sidebar --- */
.single-jobpost .sjb-page{ display:flex; gap:32px; align-items:stretch; background:#f6f2f1; }
.single-jobpost .sjb-detail{ flex:1 1 auto; min-width:0; }
.single-jobpost .rt-two{ display:block; }
.single-jobpost .sjb-page > .clearfix{ display:none !important; }
.single-jobpost .rt-sidebar{ flex:0 0 340px; }
.single-jobpost .company-logo{ display:none !important; }
.rt-scard{ position:sticky; top:96px; background:#fff; border:1px solid #ece5e4; border-radius:16px; padding:22px; box-shadow:0 8px 28px rgba(26,19,21,.06); }
.rt-scard-t{ font-weight:800; font-size:15px; margin-bottom:12px; color:#191113; }
.rt-kv{ display:flex; justify-content:space-between; gap:12px; padding:11px 0; border-bottom:1px solid #f1eae9; font-size:14px; }
.rt-kv:last-of-type{ border-bottom:none; }
.rt-kv span{ color:#6c6062; font-weight:600; }
.rt-kv b{ color:#191113; }
.rt-apply{ display:block; text-align:center; background:#ed1c24; color:#fff !important; font-weight:700; padding:14px; border-radius:11px; margin-top:16px; text-decoration:none !important; }
.rt-apply:hover{ background:#c00d14; }
@media(max-width:900px){
  .single-jobpost .sjb-page{ flex-direction:column; }
  .single-jobpost .rt-sidebar{ flex:1 1 auto; width:100%; }
  .rt-scard{ position:static; }
}

/* --- White section cards (Description / Requirements / Features) --- */
.single-jobpost .rt-card{ background:#fff; border:1px solid #ece5e4; border-radius:16px; padding:28px 34px; margin:0 0 20px; box-shadow:0 4px 20px rgba(26,19,21,.05); display:flow-root; }
.single-jobpost .job-description{ float:none !important; width:auto !important; margin:0 !important; }
.single-jobpost .sjb-page .job-description{ font-size:15.5px; line-height:1.75; color:#33292b; }
.single-jobpost .sjb-page .job-description ul{ padding-left:2px; }
.single-jobpost .sjb-page .job-description li{ margin-bottom:9px; }
.single-jobpost .sjb-job-requirements.rt-card{ border:1px solid #ece5e4 !important; border-radius:16px !important; margin:0 0 20px !important; padding:28px 34px !important; }

/* Section titles (red bar) */
.single-jobpost .sjb-section-title{ font-size:14px; text-transform:uppercase; letter-spacing:.1em; font-weight:700; color:#b3131a; display:flex; align-items:center; gap:10px; margin:0 0 12px; }
.single-jobpost .sjb-section-title::before{ content:""; width:22px; height:3px; border-radius:2px; background:#ed1c24; }

/* Requirements bullets (incl. nested) */
.single-jobpost .sjb-job-requirements ul{ list-style:none; margin:0; padding:0; }
.single-jobpost .sjb-job-requirements > ul{ display:grid; gap:10px; margin-top:14px; }
.single-jobpost .sjb-job-requirements p{ margin:0 0 12px; line-height:1.7; color:#33292b; }
.single-jobpost .sjb-job-requirements li{ position:relative; padding-left:26px; line-height:1.55; color:#1a1315; }
.single-jobpost .sjb-job-requirements li::before{ content:""; position:absolute; left:4px; top:8px; width:8px; height:8px; border-radius:50%; border:2px solid #ed1c24; }
.single-jobpost .sjb-job-requirements ul ul{ margin:10px 0 2px; display:grid; gap:8px; }
.single-jobpost .sjb-job-requirements ul ul li{ padding-left:24px; }
.single-jobpost .sjb-job-requirements ul ul li::before{ width:6px; height:6px; border:0; background:#ed1c24; top:9px; left:6px; }

/* --- Job Features as clean red-icon pills --- */
.single-jobpost .job-features{ background:#fff; border:1px solid #ece5e4; border-radius:16px; padding:24px 34px 28px; box-shadow:0 4px 20px rgba(26,19,21,.05); margin:0 0 20px; clear:both; }
.single-jobpost .job-features h3{ font-size:14px !important; text-transform:uppercase; letter-spacing:.1em; color:#b3131a; margin:0 0 16px; display:flex; align-items:center; gap:10px; }
.single-jobpost .job-features h3::before{ content:""; width:22px; height:3px; border-radius:2px; background:#ed1c24; display:inline-block; }
.single-jobpost .job-features .row{ display:flex !important; flex-wrap:wrap; gap:12px; margin:0; }
.single-jobpost .job-features [class*="col-"]{ width:auto !important; max-width:none !important; flex:0 0 auto; padding:0 !important; }
.single-jobpost .job-features .sjb-title-value{ display:flex; align-items:center; gap:10px; background:#faf7f6; border:1px solid #f0e8e7; border-radius:12px; padding:11px 16px; }
.single-jobpost .job-features .sjb-title-value h4{ display:flex; align-items:center; gap:8px; margin:0 !important; font-size:13px !important; color:#6c6062 !important; font-weight:600 !important; white-space:nowrap; }
.single-jobpost .job-features .sjb-title-value h4 i,
.single-jobpost .job-features .sjb-title-value h4 svg,
.single-jobpost .job-features .sjb-title-value h4 img{ color:#ed1c24 !important; fill:#ed1c24 !important; width:16px !important; height:16px !important; font-size:15px !important; filter:none; }
.single-jobpost .job-features .sjb-title-value p{ margin:0 !important; font-size:14px !important; font-weight:700 !important; color:#191113 !important; }
.single-jobpost .job-features table.table{ display:none !important; }

/* --- Application form --- */
.single-jobpost .list-data{ border:0 !important; box-shadow:none !important; padding:0 !important; transform:none !important; }
.single-jobpost .list-data:hover{ transform:none !important; box-shadow:none !important; border:0 !important; }
.single-jobpost .sjb-filters, .single-jobpost .sjb-filters-v2{ display:none !important; }
.single-jobpost .jobpost-form{ background:#fff; border:1px solid #ece5e4; border-radius:16px; padding:26px 30px; box-shadow:0 8px 28px rgba(26,19,21,.06); margin-top:0 !important; }
.single-jobpost .jobpost-form label{ font-weight:600 !important; color:#1a1315 !important; font-size:14px; }
.single-jobpost .jobpost-form .form-control{ border:1px solid #e0d8d7 !important; border-radius:10px !important; padding:12px 14px !important; height:auto !important; box-shadow:none !important; background:#fff !important; font-size:15px; color:#1a1315; }
.single-jobpost .jobpost-form .form-control:focus{ border-color:#ed1c24 !important; box-shadow:0 0 0 3px rgba(237,28,36,.14) !important; outline:none !important; }
.single-jobpost .jobpost-form textarea.form-control{ min-height:110px; }
.single-jobpost .jobpost-form .file div{ border-radius:10px !important; }
.single-jobpost .jobpost-form .btn-primary,
.single-jobpost .jobpost-form input[type="submit"]{ border-radius:10px !important; padding:13px 30px !important; font-weight:600 !important; box-shadow:none !important; }
.single-jobpost .jobpost-form .btn-primary:hover{ background-color:#c00d14 !important; }
.single-jobpost .jobpost-form input[type="tel"],
.single-jobpost .jobpost-form .sjb-phone-number{ padding-left:52px !important; }
.single-jobpost .jobpost-form .iti{ display:block !important; width:100%; }

/* ===== Careers hero - full width, flush under header (hero block only) ===== */
.page-id-4189 #primary{ margin-top:0 !important; }
.page-id-4189 article.page{ padding-top:0 !important; padding-bottom:0 !important; }
.page-id-4189 .entry-content > .elementor-4201{ margin-left:calc(50% - 50vw) !important; margin-right:calc(50% - 50vw) !important; }
.page-id-4189 .sjb-page{ padding-top:30px; }

/* ===== Why REDtone - icons, chips, centered ===== */
.elementor-4244 .elementor-icon,
.elementor-4244 .elementor-icon svg,
.elementor-4244 .elementor-icon i{ color:#ed1c24 !important; fill:#ed1c24 !important; }
.elementor-4244 .elementor-heading-title{ font-size:19px !important; }
.elementor-4244 .elementor-widget-text-editor p{ color:#6c6062 !important; line-height:1.6 !important; margin:0 !important; }
.elementor-4244 .e-con:has(> .elementor-widget-icon){ flex-direction:column !important; align-items:center !important; gap:12px !important; }
.elementor-4244 .e-con:has(> .elementor-widget-icon) > .elementor-widget{ width:100% !important; margin:0 !important; }
.elementor-4244 .elementor-icon{ display:inline-flex !important; align-items:center; justify-content:center; width:48px; height:48px; border-radius:12px; background:#fdecec; color:#ed1c24 !important; }
.elementor-4244 .elementor-icon svg{ width:24px !important; height:24px !important; fill:#ed1c24 !important; }
.elementor-4244 .elementor-icon-wrapper,
.elementor-4244 .elementor-heading-title,
.elementor-4244 .elementor-widget-text-editor,
.elementor-4244 .elementor-widget-text-editor *{ text-align:center !important; }
