/* ================================
   JOB CARD CONTAINER
================================ */
.job-card {
  width: 100%;
  max-width: 1100px;
  padding: 22px 26px;
  margin: 20px auto;
  border-radius: 16px;
  background-color: #0C9999;
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  box-sizing: border-box;
  font-family: 'Public Sans', sans-serif;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.job-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

/* ================================
   CLOSED STATE STYLING
================================ */
.job-card.job-closed {
  background-color: #0C9999; /* Same teal color as open cards */
  opacity: 1;
  cursor: default;
  border: 1px solid #ffffff; /* White border */
}

.job-card.job-closed:hover {
  transform: none; /* Disable hover effect for closed cards */
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.job-closed-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  gap: 20px;
  min-height: 200px;
}

.job-closed-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  background-color: transparent;
  border-radius: 0;
  margin-bottom: 0;
}

.job-closed-img {
  max-width: 150px;
  height: auto;
  display: block;
}

.job-closed-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600; /* Semibold */
  font-size: 1.5rem;
  color: #ffffff !important;
  margin: 0;
  text-transform: none; /* Keep original case: "No internship available right now!" */
  letter-spacing: 0;
  line-height: 1.3;
}

/* ================================
   FLEX LAYOUT
================================ */
.job-flex {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
@media (min-width: 640px) {
  .job-flex {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
  }
}

/* ================================
   LEFT: TITLE + EMPLOYMENT
================================ */
.job-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}
.job-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1.3rem;
  text-transform: uppercase;
  margin: 0;
  word-break: break-word;
  color: #ffffff !important;
  line-height: 1.3;
}
.job-employment {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 0.95rem;
  opacity: 0.9;
  color: #ffffff;
  margin: 0;
}

/* ================================
   CENTER: LOCATION
================================ */
.cj54-loc-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  font-size: 1rem;
  color: #ffffff;
  text-align: center;
  gap: 8px;
}
.cj54-loc-icon i {
  font-size: 1.1rem;
}
.job-location {
  font-weight: 600;
  color: #ffffff;
}

/* ================================
   RIGHT: CATEGORY + APPLY BUTTON
================================ */
.job-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  text-align: right;
}
.job-category {
  font-size: 1rem;
  font-weight: 600;
  opacity: 0.9;
  color: #ffffff;
  margin: 0;
}

/* ================================
   APPLY NOW BUTTON + SVG ARROW
================================ */
.job-apply {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
  background-color: #ffffff;
  color: #FE893D;
  padding: 12px 20px;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.25s ease;
  white-space: nowrap;
  cursor: pointer;
}
.job-apply:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
  background-color: #FE893D;
  color: #ffffff;
}

/* Arrow SVG styling */
.arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  transition: transform 0.25s ease;
  vertical-align: middle;
}
.arrow svg {
  width: 20px;
  height: 20px;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke: currentColor;
  stroke-width: 2.5;
}
.job-apply:hover .arrow {
  transform: translateX(6px);
}

/* ================================
   RESPONSIVE ADJUSTMENTS
================================ */
@media (max-width: 768px) {
  .job-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .cj54-loc-icon {
    justify-content: flex-start;
  }
  
  .job-right {
    width: 100%;
    align-items: flex-start;
  }
  
  .job-apply {
    width: 100%;
    max-width: 200px;
  }
}

@media (max-width: 480px) {
  .job-card {
    padding: 18px 20px;
    margin: 15px auto;
  }
  
  /* Closed state adjustments */
  .job-closed-wrapper {
    padding: 30px 15px;
    min-height: 180px;
    gap: 15px;
  }
  
  .job-closed-img {
    max-width: 120px;
  }
  
  .job-closed-title {
    font-size: 1.2rem;
  }
  
  /* Flex layout adjustments */
  .job-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  
  /* Location alignment */
  .cj54-loc-icon {
    justify-content: flex-start;
    gap: 6px;
  }
  
  /* Job title */
  .job-title {
    font-size: 1.15rem;
  }
  
  /* Employment type, category, and location */
  .job-employment,
  .job-category,
  .job-location {
    font-size: 0.9rem;
  }
  
  /* Apply Now button adjustments */
  .job-apply {
    width: 100%;
    max-width: 180px;
    font-size: 0.95rem;
    padding: 12px 18px;
    justify-content: center;
  }
  
  /* Arrow SVG adjustments */
  .arrow {
    margin-left: 6px;
  }
  .arrow svg {
    width: 18px;
    height: 18px;
  }
  
  /* Right side alignment */
  .job-right {
    width: 100%;
    align-items: flex-start;
  }
}

/* ================================
   ERROR & EMPTY STATES
================================ */
.cj54-error,
.cj54-empty {
  text-align: center;
  padding: 20px;
  font-family: 'Public Sans', sans-serif;
  font-size: 1rem;
  color: #333;
}

/* ================================
   ACCESSIBILITY IMPROVEMENTS
================================ */
.job-apply:focus {
  outline: 3px solid #FE893D;
  outline-offset: 2px;
}

.job-apply:focus:not(:focus-visible) {
  outline: none;
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .job-card,
  .job-apply,
  .arrow {
    transition: none;
  }
  
  .job-card:hover {
    transform: none;
  }
  
  .job-apply:hover {
    transform: none;
  }
  
  .job-apply:hover .arrow {
    transform: none;
  }
}
