/* =========================
   CAREERS PAGE STYLES
   ========================= */
.hero-title1 {
  color: #1671B0;
  text-align: center;
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.hero-subtitle1 {
  color: #000;
  opacity: 0.7;
  max-width: 100%;
  margin: auto;
  margin-bottom: 3rem;
  text-align: center;
  font-size: 24px;
  font-weight: 500;
}

/* Body */
body.career-page {
  background-color: #f6f6f6;
  background-image: none;
}

/* Ensure header is sticky on career page */
body.career-page .site-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 101 !important;
  background: rgba(235, 243, 250, 1) !important;
}

/* Hero Section Layout */
.career-hero-bg {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  width: 100%;
  padding: 4rem 0;
  background-image: url('../../assets/career.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.career-hero-bg .hero-title {
  color: #1b2141;
  font-size: 60px;
  margin-top: -2rem;
  text-align: center;
}

.career-hero-bg .hero-subtitle {
  color: #000;
  opacity: 0.7;
  max-width: 100%;
  margin: auto;
  margin-bottom: 3rem;
  text-align: center;
}

/* Open Positions Section */
.career-page .section-head {
  text-align: center;
  margin-bottom: 6rem;
}

.career-page .section-head h2 {
  font-size: 36px;
  color: #000;
}

.career-page .section-head p {
  font-size: 18px;
  color: #4B5563;
}

.section-head .btn {
  margin-top: 20px;
}

/* Smooth show/hide animation for the jobs grid */
.jobs-grid {
  overflow: hidden;
  max-height: 2000px;
  opacity: 1;
  transition: max-height 0.7s ease-in-out, opacity 0.5s ease-in, margin-top 0.7s ease-in-out, padding-top 0.7s ease-in-out, padding-bottom 0.7s ease-in-out;
}

.jobs-grid.hidden {
  max-height: 0;
  opacity: 0;
  margin-top: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}


/* Job Cards Grid */
.jobs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: stretch;
}

.job.card {
  padding: 2.5rem;
  border-radius: 24px;
  box-shadow: 13px 19px 47px rgba(0, 0, 0, 0.03);
  border: none;
  display: grid;
  grid-template-columns: 96px 1fr;
  grid-template-rows: auto auto auto 1fr auto;
  column-gap: 1.25rem;
  row-gap: .75rem;
  align-items: start;
}

/* Icon placement */
.job.card .job-img {
  grid-column: 1;
  grid-row: 1 / 3;
  margin: 0;
  align-self: start;
}

/* Content placement */
.job.card header {
  grid-column: 2;
  grid-row: 1;
  display: block;
}

.job.card>p {
  grid-column: 2;
  grid-row: 2;
  margin-top: -2rem;
  color: #000;
}

.job.card h4 {
  grid-column: 2;
  grid-row: 3;
  margin-top: -1rem;
}

.job.card .bullets {
  grid-column: 2;
  grid-row: 4;
  margin-top: 0;
}

/* Button placement */
.job.card .btn {
  grid-column: 2;
  grid-row: 5;
  justify-self: end;
  align-self: end;
  margin-top: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}


/* Job Card Icon Styling */
.job.card .job-img {
  width: 76px;
  height: 76px;
  border-radius: 15px;
  padding: 16px;
  box-sizing: border-box;
}

.job.card:nth-child(1) .job-img {
  background-color: rgba(151, 71, 255, 1);
}

.job.card:nth-child(2) .job-img {
  background-color: rgba(236, 115, 47, 1);
}

/* Job Card Text Styling */
.job.card h3 {
  font-family: 'Rubik', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: #2F2E51;
}

.job.card h4 {
  font-family: 'Rubik', sans-serif;
  font-weight: 600;
  color: #504D4E;
}

/* Custom Checkmark Bullets */
.job.card .bullets {
  list-style: none;
  padding-left: 0;
  margin-top: 1rem;
  font-family: 'Rubik', sans-serif;
  color: #504D4E;
}

.job.card .bullets li {
  position: relative;
  padding-left: 35px;
  margin-bottom: 1rem;
  line-height: 23px;
}

.job.card .bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 60%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
}

/* Job Card Variations */
.job.card:nth-child(1) {
  background: #FBF8FF;
}

.job.card:nth-child(1) .bullets li::before {
  background-color: #7D4BC0;
}

.job.card:nth-child(1) .btn {
  background-color: #9747FF;
}

.job.card:nth-child(2) {
  background: #FFF5EF;
}

.job.card:nth-child(2) .bullets li::before {
  background-color: #EC732F;
}

.job.card:nth-child(2) .btn {
  background-color: #EC732F;
}


/* "Why Work with Mind 360" Section */
.career-page section.alt {
  background-color: #EBF3FB;
}

.tiles-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.tile {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
}

.tile .tile-icon {
  margin: 0 auto 1.5rem auto;
  width: 64px;
  height: 64px;
}

.tile h4 {
  font-size: 1.25rem;
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
}

.tile p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
}

/* =========================
   APPLICATION MODAL STYLES
   ========================= */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-form {
  background: #fff;
  padding: 30px 40px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 500px;
  position: relative;
  z-index: 1001;
}

.modal-form .close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  color: #555;
  background: none;
  border: none;
  cursor: pointer;
}

.modal-form h3 {
  margin-top: 0;
  margin-bottom: 25px;
  color: #333;
  font-family: 'Poppins', sans-serif;
  text-align: center;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #555;
}

.form-group input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;
}

.form-group input[type="file"] {
  padding: 8px;
}

.modal-form .btn {
  width: 100%;
  padding: 15px;
  font-size: 1rem;
  margin-top: 10px;
}

.hidden {
  display: none;
}