/* assets/ct-career.css */

:root {
  /* Core Dimensions */
  --ct-card-min-height: 320px; 
  --ct-card-padding: 2rem;
  --ct-card-radius: 16px;
  
  /* Colors */
  --ct-primary: #1e293b;        /* Slate 800 */
  --ct-secondary: #64748b;      /* Slate 500 */
  --ct-accent: #3b82f6;         /* Blue 500 */
  --ct-accent-hover: #2563eb;   /* Blue 600 */
  --ct-bg-card: #ffffff;
  --ct-bg-chip: #f1f5f9;
  --ct-bg-page: #f8fafc;
  
  /* Effects */
  --ct-shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --ct-shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
  --ct-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
  --ct-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --ct-border: 1px solid #e2e8f0;
}

/* === CONTAINER & GRID === */
.ct-career-wrapper {
  margin: 4rem auto;
  max-width: 1280px;
  padding: 0 1.5rem;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.ct-career-grid {
  display: grid;
  gap: 2rem;
  /* 3 Columns by default on large screens */
  grid-template-columns: repeat(3, 1fr); 
  align-items: stretch; 
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .ct-career-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .ct-career-grid {
    grid-template-columns: 1fr;
  }
}

/* === CARD DESIGN === */
.ct-career-item {
  position: relative;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  min-height: var(--ct-card-min-height);
  padding: var(--ct-card-padding);
  background: var(--ct-bg-card);
  border: var(--ct-border);
  border-radius: var(--ct-card-radius);
  box-shadow: var(--ct-shadow-sm);
  transition: var(--ct-transition);
  overflow: hidden;
}

/* Hover Effect: Lift up */
.ct-career-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--ct-shadow-lg);
  border-color: var(--ct-accent);
}

/* Top decorative accent line */
.ct-career-item::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--ct-accent), var(--ct-accent-hover));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.ct-career-item:hover::after { opacity: 1; }

/* Typography */
.ct-career-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ct-primary);
  margin: 0 0 1rem;
  line-height: 1.4;
  letter-spacing: -0.025em;
}

/* === DESCRIPTION === */
.ct-career-desc {
  font-size: 1rem;
  color: var(--ct-secondary);
  line-height: 1.6;
  margin-bottom: 2rem;
  flex-grow: 1; /* Pushes footer down */
  
  /* Clamp text to 4 lines */
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* === FOOTER AREA === */
.ct-career-spacer {
  display: none; /* Flex-grow handles spacing now */
}

/* The flex container for Badge + Button */
.ct-career-item > div:last-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto; /* Ensures it stays at bottom */
  padding-top: 1.5rem;
  border-top: 1px solid #f1f5f9;
}

.ct-career-type {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ct-accent);
  background-color: var(--ct-bg-chip);
  padding: 0.4rem 0.8rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ct-career-apply-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid var(--ct-accent);
  background: transparent;
  color: var(--ct-accent);
  transition: all 0.2s ease;
  text-decoration: none;
}

.ct-career-apply-btn:hover {
  background: var(--ct-accent);
  color: #fff;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* === APPLICATION PAGE DESIGN === */
.ct-application-page {
    max-width: 700px;
    margin: 4rem auto;
    padding: 3rem;
    background: #fff;
    border-radius: 24px;
    box-shadow: var(--ct-shadow-lg);
    border: 1px solid #e2e8f0;
}

.ct-application-header {
    text-align: center;
    margin-bottom: 3rem;
}

.ct-application-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--ct-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.03em;
}

.ct-application-subtitle {
    color: var(--ct-secondary);
    font-size: 1.1rem;
}

/* === FORM DESIGN === */
.ct-career-form {
  display: grid;
  gap: 1.5rem;
}

.ct-field {
  display: flex;
  flex-direction: column;
}

.ct-label {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--ct-primary);
}

.ct-field input[type="text"],
.ct-field input[type="email"],
.ct-field input[type="tel"],
.ct-field input[type="file"] {
  width: 100%;
  padding: 0.875rem 1rem;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  font-size: 1rem;
  transition: all 0.2s;
  box-sizing: border-box;
}

.ct-field input:focus {
  outline: none;
  border-color: var(--ct-accent);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.ct-submit-btn {
  width: 100%;
  padding: 1rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  background: var(--ct-accent);
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
  margin-top: 1rem;
  transition: all 0.2s;
  box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}

.ct-submit-btn:hover {
  background: var(--ct-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

.ct-submit-btn:disabled {
  background: #94a3b8;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Status Messages */
.ct-form-status {
  font-size: 0.95rem;
  padding: 1rem;
  border-radius: 10px;
  display: none;
  text-align: center;
  margin-top: 1rem;
  font-weight: 500;
}

.ct-form-status.success {
  display: block;
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.ct-form-status.error {
  display: block;
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Hide Modal Styles as we are moving to page */
.ct-career-modal { display: none !important; }