/* Career Page - Job Cards & Grid Styles */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px 24px;
  margin-top: 24px;
  padding: 0 20px;
  box-sizing: border-box;
}

.job-card {
  background: linear-gradient(145deg, #ffffff, #f8fafc);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  border: 1px solid rgba(255,255,255,0.8);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 200px;
  position: relative;
  overflow: visible;
  /* Flexbox for equal height cards - buttons align at bottom */
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Card main content wrapper - takes available space */
.card-main-content {
  flex-grow: 1;
}

/* Card footer wrapper - pushed to bottom */
.card-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.job-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #4169e1, #cea66a);
}

.job-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.18);
  border-color: rgba(65,105,225,0.2);
}

.job-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 16px 0;
  line-height: 1.3;
  display: flex;
  align-items: flex-start;
  min-height: 36px;
}

.meta {
  color: #64748b;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 16px;
  padding: 8px 0;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.job-description-preview {
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 12px;
  max-height: 50px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.show-more-btn {
  display: inline-block;
  background: linear-gradient(45deg, #4169e1, #1e40af);
  color: white;
  padding: 12px 24px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(65,105,225,0.3);
  margin-bottom: 12px;
  /* Push to bottom */
  margin-top: auto;
}

.show-more-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(65,105,225,0.4);
  color: white;
}

.job-date {
  color: #94a3b8;
  font-size: 0.85rem;
  font-style: italic;
  margin: 8px 0 0 0;
  padding-top: 8px;
  border-top: 1px solid #f1f5f9;
  position: relative;
  bottom: 0;
  /* Push to bottom with button */
  margin-top: auto;
}

/* Responsive */
@media (max-width: 768px) {
  .card-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .job-card {
    padding: 20px;
    min-height: 220px;
  }
  
  .job-card h3 {
    font-size: 1.25rem;
  }
}

/* Career page container */
.career-page .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.career-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .career-buttons {
    flex-direction: column;
  }
  
  .learn-more-btn {
    width: 100%;
  }
}
