@import url("about.css");

/* ==============================
   Hero Section
============================== */
.careers-hero {
    height: 48vh;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url("../static/uploads/about_hero.webp") center/cover no-repeat;
    background-size: auto; /* keeps original image size */
    position: relative;
    overflow: hidden;
}

.careers-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
}

.careers-hero .hero-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
    padding: 1rem 1.25rem;
}

.careers-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 0.5rem;
}

.careers-hero p {
    font-weight: 500;
    max-width: 650px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.9);
}

/* ==============================
   Careers Section
============================== */
.careers {
    padding: 3rem 2rem;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.75rem;
    color: var(--primary-dark);
}

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.job-card {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.job-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 26px rgba(0,0,0,0.1);
}

.job-card:hover .apply-btn {
    background: var(--primary-dark);
    opacity: 1;
    transform: translateY(0);
}

.job-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    color: var(--primary-dark);
}

.job-card .location {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.job-card .desc {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.apply-btn {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: background 0.3s ease;
    text-align: center;
}

.apply-btn:hover {
    background: var(--primary-dark);
}

/* ====== Why Join Section ====== */
.why-join {
  margin-top: 4rem;
  max-width: 1000px; /* matches container/job grid width */
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  padding: 2.5rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  margin-bottom: 5rem;
}

.why-join .section-title {
  margin-bottom: 1.5rem;
}

.why-join p {
  color: var(--text-gray);
  margin-bottom: 2rem;
  line-height: 1.6;
  font-size: 1rem;
}

.testimonial {
  font-style: italic;
  background: #f9f9f9;
  padding: 1.5rem 2rem;
  border-left: 4px solid var(--primary-dark);
  border-radius: 1rem;
  margin: 0 auto;
  text-align: left;
  max-width: 700px;
}

@media (hover: none), (max-width: 900px) {
    .job-card .apply-btn {
        opacity: 1 !important;
        transform: none !important;
        pointer-events: auto;
    }
}