/* Container */
.fcw-container{
  max-width:1240px;
  margin:0 auto;
  padding:24px 16px;
}

/* Filters Section */
.fcw-filters{
  display:grid;
  grid-template-columns:1fr 1fr 1fr 1fr 1fr auto;
  gap:16px;
  align-items:center;
  margin:0 0 32px;
  padding:20px;
  background:#f8f9fa;
  border-radius:12px;
  box-shadow:0 2px 8px rgba(0,0,0,.04);
  grid-auto-flow:row;
}

.fcw-filter{
  min-width:0;
  max-width:100%;
}

.fcw-filter:last-child{
  max-width:fit-content;
  min-width:auto;
  white-space:nowrap;
}

.fcw-filter select,
.fcw-filter input{
  width:100%;
  padding:12px 16px;
  border:1.5px solid #e1e5e9;
  border-radius:10px;
  background:#fff;
  font-size:14px;
  color:#2c3e50;
  transition:all 0.2s ease;
  font-family:inherit;
}

.fcw-filter select:focus,
.fcw-filter input:focus{
  outline:none;
  border-color:#00a84f;
  box-shadow:0 0 0 3px rgba(0,168,79,.08);
}

.fcw-filter select:hover,
.fcw-filter input:hover{
  border-color:#b8c5d0;
}

/* Custom select arrow */
.fcw-filter select{
  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;
  padding-right:40px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M1.41.59 6 5.17 10.59.59 12 2 6 8 0 2z'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 14px center;
  cursor:pointer;
}

.fcw-filter .button{
  padding:12px 20px;
  border-radius:8px;
  font-size:14px;
  transition:all 0.2s ease;
}

.fcw-reset{
  background:transparent;
  color:#2c3e50;
  border:1.5px solid #00a84f;
  border-radius:8px;
  padding:12px 20px;
  font-weight:500;
  text-decoration:none;
  display:inline-block;
  transition:all 0.2s ease;
  white-space:nowrap;
}

.fcw-reset:hover{
  background:#00a84f;
  color:#fff;
  transform:translateY(-1px);
  box-shadow:0 4px 8px rgba(0,168,79,.2);
}

/* Jobs List */
.fcw-jobs-list{
  display:flex;
  flex-direction:column;
  gap:20px;
  margin-bottom:32px;
}

/* Job Card */
.fcw-job-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:17px 20px;
  border:1.5px solid #e8eaed;
  border-radius:16px;
  background:#fff;
  box-shadow:0 2px 8px rgba(0,0,0,.06);
  transition:all 0.3s ease;
  position:relative;
  overflow:hidden;
}
.fcw-card-link{cursor:pointer}

.fcw-job-card::before{
  content:'';
  position:absolute;
  left:0;
  top:0;
  height:100%;
  width:4px;
  background:#00a84f;
  transform:scaleY(0);
  transform-origin:top;
  transition:transform 0.3s ease;
}

.fcw-job-card:hover{
  border-color:#00a84f;
  box-shadow:0 8px 24px rgba(0,168,79,.12);
  transform:translateY(-2px);
}

.fcw-job-card:hover::before{
  transform:scaleY(1);
}

.fcw-job-main{
  flex:1;
  min-width:0;
}

.fcw-job-title{
  font-size:18px;
  margin:0 0 8px;
  font-weight:600;
  line-height:1.4;
}

.fcw-container .fcw-jobs-list .fcw-job-title{
  font-size:18px;
  line-height:1.4;
}

.fcw-job-title a{
  text-decoration:none;
  color:#1a5f3f;
  transition:color 0.2s ease;
}

.fcw-job-title a:hover{
  color:#00a84f;
  text-decoration:none;
}

.fcw-job-right{
  display:flex;
  align-items:center;
  gap:16px;
  flex-shrink:0;
}

/* Badges */
.fcw-badges{
  display:flex;
  gap:10px;
  list-style:none;
  margin:0;
  padding:0;
  flex-wrap:wrap;
  color:#2c3e50;
}

.fcw-badges li{
  background:linear-gradient(135deg, #f5f7fa 0%, #eef1f5 100%);
  border:1px solid #e1e5e9;
  border-radius:20px;
  padding:8px 14px;
  font-size:13px;
  font-weight:500;
  color:#495057;
  white-space:nowrap;
  transition:all 0.2s ease;
}

.fcw-job-card:hover .fcw-badges li{
  background:#f0f7f3;
  border-color:#c8e6d5;
  color:#1a5f3f;
}

/* More Details Button */
.fcw-btn{
  background:transparent;
  color:#2c3e50;
  text-decoration:none;
  padding:12px 24px;
  border-radius:8px;
  font-weight:500;
  border:1.5px solid #00a84f;
  font-size:14px;
  display:inline-block;
  transition:all 0.2s ease;
  white-space:nowrap;
}

.fcw-btn:hover{
  background:#00a84f;
  color:#fff;
  transform:translateY(-1px);
  box-shadow:0 4px 12px rgba(0,168,79,.25);
  border-color:#00a84f;
}

/* Pagination */
.fcw-pagination{
  display:flex;
  gap:8px;
  justify-content:center;
  margin:40px 0 20px;
  flex-wrap:wrap;
}

.fcw-pagination a,
.fcw-pagination span{
  padding:10px 16px;
  border:1.5px solid #e1e5e9;
  border-radius:8px;
  background:#fff;
  color:#495057;
  text-decoration:none;
  font-weight:500;
  transition:all 0.2s ease;
  min-width:42px;
  text-align:center;
  display:inline-block;
}

.fcw-pagination a:hover{
  border-color:#00a84f;
  color:#00a84f;
  background:#f0f7f3;
  transform:translateY(-1px);
}

.fcw-pagination .current,
.fcw-pagination span.current{
  background:#00a84f;
  border-color:#00a84f;
  color:#fff;
  cursor:default;
}

.fcw-pagination .current:hover{
  transform:none;
}

/* Empty State */
.fcw-empty{
  padding:32px;
  background:linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
  border:1.5px solid #ffeaa7;
  border-radius:12px;
  text-align:center;
  color:#856404;
  font-size:16px;
  margin:32px 0;
  box-shadow:0 2px 8px rgba(0,0,0,.04);
}

/* Job Detail Page Styles */
.fcw-job-detail{
  max-width:900px;
  margin:0 auto;
  padding:40px 20px;
}

.fcw-job-header{
  margin-bottom:34px;
  padding-bottom:22px; /* tightened spacing under facts row */
  border-bottom:2px solid #e8eaed;
}

.fcw-header-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:16px;
}

.fcw-header-row h1{
  margin:0; /* keep title aligned with buttons */
}

.fcw-actions{
  display:flex;
  gap:12px;
  margin:12px 0 8px;
}

.fcw-btn-outline{
  background:transparent;
  color:#00a84f; /* lighter emphasis than solid apply */
  border:1.5px solid #cfeadf; /* softer outline */
}

.fcw-btn-outline:hover{
  background:#f0f7f3;
  color:#00a84f;
  border-color:#00a84f;
}

.fcw-job-header h1{
  font-size:32px;
  font-weight:700;
  color:#1a1a1a;
  margin:0 0 24px;
  line-height:1.3;
}

.fcw-job-facts{
  display:flex;
  flex-wrap:wrap;
  gap:24px;
  list-style:none;
  margin:0;
  padding:0;
}

.fcw-job-facts li{
  font-size:16px;
  color:#495057;
  padding:0;
  margin:0;
}

.fcw-job-facts li strong{
  color:#2c3e50;
  font-weight:600;
  margin-right:8px;
}

.fcw-job-detail section{
  margin-bottom:40px;
  padding:28px;
  background:#fff;
  border:1.5px solid #e8eaed;
  border-radius:12px;
  box-shadow:0 2px 8px rgba(0,0,0,.04);
  transition:all 0.3s ease;
}

.fcw-job-detail section:hover{
  box-shadow:0 4px 16px rgba(0,0,0,.08);
  border-color:#00a84f;
}

.fcw-job-detail section h2{
  font-size:24px;
  font-weight:600;
  color:#1a5f3f;
  margin:0 0 20px;
  padding-bottom:12px;
  border-bottom:2px solid #00a84f;
}

.fcw-body{
  font-size:16px;
  line-height:1.8;
  color:#2c3e50;
}

.fcw-body p{
  margin:0 0 16px;
}

.fcw-body p:last-child{
  margin-bottom:0;
}

/* Apply Form Styles */
.fcw-job-detail .fcw-apply-section{
  background:linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border:2px solid #00a84f;
}

.fcw-apply-inline{
  display:flex;
  flex-direction:column;
  gap:24px;
  margin-top:24px;
}

.fcw-form-group{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.fcw-apply-inline label{
  font-weight:600;
  color:#2c3e50;
  font-size:15px;
  display:block;
  margin-bottom:4px;
}

.fcw-required{
  color:#dc3545;
  margin-left:2px;
}

.fcw-apply-inline input[type="text"],
.fcw-apply-inline input[type="email"],
.fcw-apply-inline input[type="tel"],
.fcw-apply-inline textarea{
  width:100%;
  padding:16px 18px;
  border:2px solid #e1e5e9;
  border-radius:10px;
  font-size:15px;
  color:#2c3e50;
  font-family:inherit;
  transition:all 0.2s ease;
  box-sizing:border-box;
  background:#fff;
}

.fcw-apply-inline input::placeholder,
.fcw-apply-inline textarea::placeholder{
  color:#adb5bd;
  opacity:1;
}

.fcw-apply-inline input:hover,
.fcw-apply-inline textarea:hover{
  border-color:#b8c5d0;
}

.fcw-apply-inline input:focus,
.fcw-apply-inline textarea:focus{
  outline:none;
  border-color:#00a84f;
  box-shadow:0 0 0 4px rgba(0,168,79,.1);
  background:#fff;
}

.fcw-apply-inline textarea{
  min-height:140px;
  resize:vertical;
  line-height:1.6;
}

.fcw-form-submit{
  margin-top:8px;
  padding-top:8px;
}

/* Field errors */
.fcw-has-error input,
.fcw-has-error textarea{
  border-color:#dc3545 !important;
  box-shadow:0 0 0 4px rgba(220,53,69,.08) !important;
}

.fcw-field-error{
  color:#dc3545;
  font-size:13px;
  margin-top:6px;
}

.fcw-apply-inline .fcw-submit-btn,
.fcw-apply-inline button{
  background:#00a84f;
  color:#fff;
  border:none;
  padding:16px 40px;
  border-radius:10px;
  font-size:16px;
  font-weight:600;
  cursor:pointer;
  transition:all 0.2s ease;
  display:inline-block;
  text-transform:uppercase;
  letter-spacing:0.5px;
  box-shadow:0 4px 12px rgba(0,168,79,.2);
}

.fcw-apply-inline .fcw-submit-btn:hover,
.fcw-apply-inline button:hover{
  background:#008a3f;
  transform:translateY(-2px);
  box-shadow:0 6px 16px rgba(0,168,79,.35);
}

.fcw-apply-inline .fcw-submit-btn:active,
.fcw-apply-inline button:active{
  transform:translateY(0);
  box-shadow:0 2px 8px rgba(0,168,79,.25);
}

.fcw-apply-inline .fcw-submit-btn:disabled{
  opacity:0.7;
  cursor:not-allowed;
  transform:none;
}

/* Form Messages */
.fcw-form-message{
  padding:16px 20px;
  border-radius:10px;
  margin-bottom:24px;
  font-size:15px;
  line-height:1.6;
  animation:slideDown 0.3s ease;
}

.fcw-message-success{
  background:#d4edda;
  border:2px solid #28a745;
  color:#155724;
}

.fcw-message-success strong{
  color:#155724;
}

.fcw-message-error{
  background:#f8d7da;
  border:2px solid #dc3545;
  color:#721c24;
}

.fcw-message-error strong{
  color:#721c24;
}

@keyframes slideDown{
  from{
    opacity:0;
    transform:translateY(-10px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}

/* Responsive Design */
@media (max-width:1200px){
  .fcw-filters{
    grid-template-columns:1fr 1fr 1fr 1fr auto;
    gap:12px;
  }
}

@media (max-width:1024px){
  .fcw-filters{
    grid-template-columns:1fr 1fr;
    gap:12px;
  }
  
  .fcw-container{
    padding:20px 16px;
  }
}

@media (max-width:768px){
  .fcw-header-row{flex-direction:column;align-items:flex-start;gap:10px;}
  .fcw-actions{width:100%;}
  .fcw-actions .fcw-btn{width:100%; text-align:center;}
  .fcw-actions .fcw-btn + .fcw-btn{margin-left:0;}
  .fcw-filters{
    grid-template-columns:1fr;
    padding:16px;
  }
  
  .fcw-job-card{
    flex-direction:column;
    align-items:flex-start;
    padding:20px;
    gap:16px;
  }
  
  .fcw-job-right{
    width:100%;
    justify-content:space-between;
    flex-wrap:wrap;
  }
  
  .fcw-job-cta{
    width:100%;
    margin-top:8px;
  }
  
  .fcw-btn{
    width:100%;
    text-align:center;
  }
  
  .fcw-job-title{
    font-size:18px;
  }
  
  .fcw-badges{
    width:100%;
  }
  
  /* Job Detail Responsive */
  .fcw-job-detail{
    padding:24px 16px;
  }
  
  .fcw-job-header h1{
    font-size:26px;
  }
  
  .fcw-job-facts{
    flex-direction:column;
    gap:16px;
  }
  
  .fcw-job-detail section{
    padding:20px;
    margin-bottom:32px;
  }
  
  .fcw-job-detail section h2{
    font-size:20px;
  }
  
  .fcw-apply-inline .fcw-submit-btn,
  .fcw-apply-inline button{
    width:100%;
    align-self:stretch;
    padding:16px 24px;
  }
  
  .fcw-apply-inline{
    gap:20px;
  }
  
  .fcw-apply-inline input[type="text"],
  .fcw-apply-inline input[type="email"],
  .fcw-apply-inline input[type="tel"],
  .fcw-apply-inline textarea{
    padding:14px 16px;
  }
}

@media (max-width:480px){
  .fcw-container{
    padding:16px 12px;
  }
  
  .fcw-filters{
    padding:12px;
    gap:10px;
  }
  
  .fcw-job-card{
    padding:16px;
  }
  
  .fcw-pagination{
    gap:6px;
  }
  
  .fcw-pagination a,
  .fcw-pagination span{
    padding:8px 12px;
    font-size:13px;
    min-width:36px;
  }
  
  /* Job Detail Mobile */
  .fcw-job-detail{
    padding:20px 12px;
  }
  
  .fcw-job-header h1{
    font-size:22px;
  }
  
  .fcw-job-detail section{
    padding:16px;
  }
  
  .fcw-job-detail section h2{
    font-size:18px;
  }
  
  .fcw-body{
    font-size:15px;
  }
}
