/**
 * Taevas Careers Page Styles
 */

/* ==========================================================================
   Page Header
   ========================================================================== */

.careers-page {
  background-color: #f8f9fa;
  min-height: 100vh;
  padding-bottom: 60px;
}

.careers-header {
  background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
  padding: 60px 0;
  margin-bottom: 40px;
  text-align: center;
}

.careers-title {
  color: #ffffff;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.careers-subtitle {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ==========================================================================
   Filters Section
   ========================================================================== */

.careers-filters {
  background: #ffffff;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
}

.filter-item {
  flex: 1;
  min-width: 200px;
}

.filter-search {
  flex: 2;
  min-width: 300px;
}

.search-wrapper {
  position: relative;
}

.search-wrapper input {
  padding-left: 45px;
  height: 48px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.search-wrapper input:focus {
  border-color: #2c5282;
  box-shadow: 0 0 0 3px rgba(44, 82, 130, 0.15);
}

.search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #718096;
  font-size: 1rem;
}

.form-select {
  height: 48px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  font-size: 0.95rem;
  padding: 0 35px 0 15px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-select:focus {
  border-color: #2c5282;
  box-shadow: 0 0 0 3px rgba(44, 82, 130, 0.15);
}

/* ==========================================================================
   Results Info
   ========================================================================== */

.careers-results-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding: 0 5px;
}

.jobs-count {
  font-size: 1rem;
  color: #4a5568;
}

.jobs-count strong {
  color: #2c5282;
  font-size: 1.2rem;
}

/* ==========================================================================
   Job Cards
   ========================================================================== */

.careers-jobs-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.job-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 25px 30px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.job-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  border-color: #e2e8f0;
  transform: translateY(-2px);
}

.job-card-header {
  margin-bottom: 15px;
}

.job-title {
  font-size: 1.35rem;
  font-weight: 600;
  color: #1a365d;
  margin-bottom: 12px;
  line-height: 1.3;
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.job-meta span {
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
  color: #718096;
}

.job-meta span i {
  margin-right: 8px;
  color: #2c5282;
  font-size: 0.85rem;
}

/* Job Tags */
.job-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.job-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 20px;
  background: #e2e8f0;
  color: #4a5568;
}

.job-tag--department {
  background: rgba(44, 82, 130, 0.1);
  color: #2c5282;
}

.job-tag--division {
  background: rgba(56, 161, 105, 0.1);
  color: #276749;
}

.job-tag--positions {
  background: rgba(214, 158, 46, 0.15);
  color: #975a16;
}

.job-card-body {
  margin-bottom: 20px;
  text-align: left;
}

.job-description-preview {
  color: #4a5568;
  line-height: 1.7;
  font-size: 0.95rem;
  text-align: left;
}

.job-details-expanded {
  margin-top: 20px;
  padding-top: 20px;
  text-align: left;
  border-top: 1px solid #e2e8f0;
}

.job-details-expanded p {
  margin-bottom: 12px;
  color: #4a5568;
  font-size: 0.95rem;
}

.job-details-expanded strong {
  color: #2d3748;
}

/* Job Detail Rows */
.job-detail-row {
  display: flex;
  flex-wrap: wrap;
  gap: 15px 30px;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e2e8f0;
}

.job-detail-item {
  font-size: 0.95rem;
  color: #4a5568;
}

.job-detail-item strong {
  color: #2d3748;
}

/* Job Skills */
.job-skills {
  margin: 20px 0;
}

.job-skills strong {
  display: block;
  margin-bottom: 10px;
  color: #2d3748;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 20px;
  background: linear-gradient(135deg, #2c5282 0%, #1a365d 100%);
  color: #ffffff;
}

.job-full-description,
.job-requirements {
  margin-top: 20px;
  padding: 20px;
  text-align: left;
  background: #f7fafc;
  border-radius: 8px;
}

.job-full-description strong,
.job-requirements strong {
  display: block;
  margin-bottom: 10px;
  color: #2d3748;
  font-size: 1rem;
}

.description-content,
.requirements-content {
  color: #4a5568;
  line-height: 1.7;
  text-align: left;
}

.description-content ul,
.requirements-content ul {
  margin: 10px 0;
  padding-left: 20px;
}

.description-content li,
.requirements-content li {
  margin-bottom: 8px;
}

.job-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid #e2e8f0;
}

.btn-toggle-details {
  background: none;
  border: none;
  color: #2c5282;
  font-weight: 500;
  cursor: pointer;
  padding: 8px 0;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.btn-toggle-details:hover {
  color: #1a365d;
}

.btn-apply {
  background: linear-gradient(135deg, #2c5282 0%, #1a365d 100%);
  border: none;
  padding: 10px 25px;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-apply:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(44, 82, 130, 0.35);
}

/* ==========================================================================
   No Jobs Found
   ========================================================================== */

.no-jobs-found {
  text-align: center;
  padding: 60px 20px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
}

.no-jobs-found i {
  color: #cbd5e0;
  margin-bottom: 20px;
}

.no-jobs-found p {
  font-size: 1.1rem;
  color: #4a5568;
  margin-bottom: 5px;
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.careers-pagination {
  margin-top: 40px;
}

.pagination {
  gap: 8px;
}

.page-item .page-link {
  border: 1px solid #e2e8f0;
  color: #4a5568;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.page-item .page-link:hover {
  background: #f7fafc;
  border-color: #2c5282;
  color: #2c5282;
}

.page-item.active .page-link {
  background: #2c5282;
  border-color: #2c5282;
  color: #ffffff;
}

.page-item.disabled .page-link {
  background: #f7fafc;
  color: #a0aec0;
  cursor: not-allowed;
}

/* ==========================================================================
   Loading Indicator
   ========================================================================== */

.careers-loading {
  text-align: center;
  padding: 60px 20px;
}

.careers-loading p {
  margin-top: 15px;
  color: #718096;
}

/* ==========================================================================
   Modal Styles
   ========================================================================== */

#applyModal .modal-header {
  background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
  color: #ffffff;
  border-radius: 0;
}

#applyModal .modal-title {
  font-weight: 600;
}

#applyModal .btn-close {
  filter: brightness(0) invert(1);
}

#applyModal h4 {
  color: #2c5282;
  font-weight: 600;
}

#applyModal .form-label {
  font-weight: 500;
  color: #4a5568;
}

#applyModal .form-control {
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  padding: 12px 15px;
}

#applyModal .form-control:focus {
  border-color: #2c5282;
  box-shadow: 0 0 0 3px rgba(44, 82, 130, 0.15);
}

#applyModal .modal-footer {
  border-top: 1px solid #e2e8f0;
  padding: 20px 25px;
}

#applyModal .btn-secondary {
  border-radius: 8px;
  padding: 10px 20px;
}

#applyModal .btn-primary {
  background: linear-gradient(135deg, #2c5282 0%, #1a365d 100%);
  border: none;
  border-radius: 8px;
  padding: 10px 25px;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

@media (max-width: 992px) {
  .filter-item {
    flex: 1 1 calc(50% - 10px);
  }
  
  .filter-search {
    flex: 1 1 100%;
  }
}

@media (max-width: 768px) {
  .careers-header {
    padding: 40px 0;
  }
  
  .careers-title {
    font-size: 2rem;
  }
  
  .careers-subtitle {
    font-size: 1rem;
  }
  
  .filter-item {
    flex: 1 1 100%;
  }
  
  .job-card {
    padding: 20px;
  }
  
  .job-title {
    font-size: 1.15rem;
  }
  
  .job-meta {
    flex-direction: column;
    gap: 10px;
  }
  
  .job-card-footer {
    flex-direction: column;
    gap: 15px;
  }
  
  .btn-toggle-details,
  .btn-apply {
    width: 100%;
    text-align: center;
  }
  
  .pagination {
    flex-wrap: wrap;
  }
}

/* ==========================================================================
   Animation
   ========================================================================== */

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

.job-card {
  animation: fadeIn 0.4s ease forwards;
}

.job-card:nth-child(1) { animation-delay: 0.1s; }
.job-card:nth-child(2) { animation-delay: 0.15s; }
.job-card:nth-child(3) { animation-delay: 0.2s; }
.job-card:nth-child(4) { animation-delay: 0.25s; }
.job-card:nth-child(5) { animation-delay: 0.3s; }

/* ==========================================================================
   Block Version Styles (when embedded in a page)
   ========================================================================== */

.careers-block {
  padding: 40px 0;
}

.careers-block .careers-filters {
  margin-bottom: 25px;
}

/* Adjustments for embedded display */
.block-taevas-careers .careers-block {
  padding: 20px 0;
}

/* When inside a container, remove extra padding */
.container .careers-block {
  padding-left: 0;
  padding-right: 0;
}

/* ==========================================================================
   Sleek Simple Header Section
   ========================================================================== */

.careers-header-simple {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 0;
  margin-bottom: 30px;
  border-bottom: 1px solid #e2e8f0;
}

.careers-header-left {
  flex: 1;
}

.careers-header-simple .careers-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1a365d;
  margin: 0 0 8px 0;
  letter-spacing: -0.5px;
}

.careers-header-simple .careers-subtitle {
  font-size: 1rem;
  color: #64748b;
  margin: 0;
  font-weight: 400;
}

.careers-header-right {
  flex-shrink: 0;
}

.careers-stat-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
  padding: 12px 24px;
  border-radius: 50px;
  color: #ffffff;
}

.careers-stat-badge .stat-count {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.careers-stat-badge .stat-text {
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0.9;
  white-space: nowrap;
}

/* ==========================================================================
   Configuration/Error Notice Styles - Sleek Version
   ========================================================================== */

.careers-notice-simple {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px 24px;
  margin-bottom: 25px;
}

.notice-text {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #64748b;
  font-size: 0.95rem;
}

.notice-text i {
  color: #3b82f6;
  font-size: 1.1rem;
}

.btn-portal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1a365d;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-portal:hover {
  background: #2c5282;
  color: #ffffff;
  transform: translateX(2px);
}

.btn-portal i {
  font-size: 0.8rem;
  transition: transform 0.2s ease;
}

.btn-portal:hover i {
  transform: translateX(3px);
}

/* ==========================================================================
   Responsive Styles for Header
   ========================================================================== */

@media (max-width: 768px) {
  .careers-header-simple {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 25px 0;
  }
  
  .careers-header-simple .careers-title {
    font-size: 1.6rem;
  }
  
  .careers-header-simple .careers-subtitle {
    font-size: 0.95rem;
  }
  
  .careers-stat-badge {
    padding: 10px 20px;
  }
  
  .careers-stat-badge .stat-count {
    font-size: 1.25rem;
  }
  
  .careers-stat-badge .stat-text {
    font-size: 0.8rem;
  }
  
  .careers-notice-simple {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
    padding: 20px;
  }
  
  .notice-text {
    font-size: 0.9rem;
  }
  
  .btn-portal {
    justify-content: center;
  }
}
