/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: #1d3666;
  background-color: #ffffff;
  /* Added top padding to compensate for removed header */
  padding-top: 40px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Removed header/hero styles as they're no longer needed */

/* Main Content */
.main {
  /* Reduced top padding since header is removed */
  padding: 20px 0 60px;
}

/* Intro Section */
.intro-section {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #1d3666;
}

.section-description {
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.8;
  color: #1d3666;
}

/* Jobs Grid */
.jobs-grid {
  display: grid;
  gap: 24px;
  margin-bottom: 60px;
}

/* Job Cards */
.job-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(29, 54, 102, 0.08);
  border: 1px solid rgba(240, 247, 255, 0.8);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.job-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ffcfd4, #f0f7ff);
}

.job-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(29, 54, 102, 0.12);
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.job-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1d3666;
  flex: 1;
  min-width: 200px;
}

.job-type {
  background: #f0f7ff;
  color: #1d3666;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
}

.job-meta {
  display: flex;
  gap: 24px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.job-location,
.job-experience {
  font-size: 0.875rem;
  color: #1d3666;
  opacity: 0.7;
  position: relative;
}

.job-location::after {
  content: "•";
  position: absolute;
  right: -14px;
  opacity: 0.5;
}

.job-description {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 24px;
  color: #1d3666;
  opacity: 0.8;
}

.job-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.skill-tag {
  background: #ffcfd4;
  color: #1d3666;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Updated button styles for dual CTA layout */
.job-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Updated apply-btn to work with anchor tags instead of buttons */
.apply-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: none;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  flex: 1;
  min-width: 140px;
  text-align: center;
}

.apply-btn.primary {
  background: linear-gradient(135deg, #1d3666 0%, #2d4a7a 100%);
  color: white;
}

.apply-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(29, 54, 102, 0.3);
  color: white;
  text-decoration: none;
}

.apply-btn.secondary {
  background: transparent;
  color: #1d3666;
  border: 2px solid #1d3666;
}

.apply-btn.secondary:hover {
  background: #1d3666;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(29, 54, 102, 0.2);
  text-decoration: none;
}

.apply-btn:active {
  transform: translateY(0);
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, #f0f7ff 0%, #ffcfd4 100%);
  border-radius: 20px;
  padding: 48px 32px;
  text-align: center;
  /* Reduced bottom margin since footer is removed */
  margin-bottom: 40px;
}

.cta-title {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: #1d3666;
}

.cta-description {
  font-size: 1.125rem;
  margin-bottom: 32px;
  opacity: 0.8;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  color: #1d3666;
}

/* Updated cta-btn to work with anchor tags */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: #ffffff;
  color: #1d3666;
  border: 2px solid #1d3666;
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cta-btn:hover {
  background: #1d3666;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(29, 54, 102, 0.2);
  text-decoration: none;
}

/* Removed footer styles as footer is removed */

/* Responsive Design */
@media (max-width: 480px) {
  /* Stack buttons vertically on small mobile screens */
  .job-actions {
    flex-direction: column;
  }

  .apply-btn {
    width: 100%;
  }
}

@media (min-width: 768px) {
  .section-title {
    font-size: 3rem;
  }

  .jobs-grid {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 32px;
  }

  /* Adjusted main padding for tablet */
  .main {
    padding: 40px 0 80px;
  }
}

@media (min-width: 1024px) {
  .section-title {
    font-size: 3.5rem;
  }

  /* Adjusted main padding for desktop */
  .main {
    padding: 60px 0 100px;
  }

  .intro-section {
    margin-bottom: 64px;
  }

  .jobs-grid {
    margin-bottom: 80px;
  }
}

/* Performance optimizations */
.job-card {
  contain: layout style paint;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus states for keyboard navigation */
.apply-btn:focus,
.cta-btn:focus {
  outline: 2px solid #1d3666;
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .job-card {
    box-shadow: none !important;
    border: 1px solid #ccc !important;
    break-inside: avoid;
  }
}
