/* style2.css */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Public Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
}

body {
  background-color: #f5f5f5;
  color: #222;
  line-height: 1.6;
}

.main-header {
  text-align: center;
  padding: 2rem 0;
  background: #009fe3;
}

.main-mph-logo {
  width: 320px;
  max-width: 90vw;
  height: auto;
  display: block;
  margin: 0 auto;
}

.company-section {
  background: #fff;
  margin: 2rem auto;
  max-width: 1200px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  overflow: hidden;
}

.company-header {
  position: relative;
  text-align: center;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.company-header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5vw;
  padding: 1.5rem 0 1rem 0;
}
.partner-logo {
  width: 170px;
  height: 90px;
  max-width: 170px;
  max-height: 90px;
  object-fit: contain;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  padding: 0.7rem 1.2rem;
  transition: transform 0.18s cubic-bezier(.4,1.3,.6,1), box-shadow 0.18s, border 0.18s;
  display: block;
}
.partner-logo:hover {
  transform: scale(1.13);
  box-shadow: 0 4px 18px rgba(0,0,0,0.13);
  border: 2px solid #009fe3;
  z-index: 2;
}


.job-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
  align-items: stretch;
}

/* Responsive adjustments for job cards */
@media (max-width: 900px) {
  .main-mph-logo {
    width: 160px;
    max-width: 70vw;
  }
  .company-header {
    flex-direction: column;
    gap: 1.2rem;
    padding: 1rem 0 0.7rem 0;
  }
  .partner-logo {
    width: 120px;
    height: 64px;
    max-width: 60vw;
    max-height: 64px;
    margin: 0 auto;
    padding: 0.5rem 0.7rem;
  }
}

@media (max-width: 600px) {
  .main-mph-logo {
    width: 110px;
    max-width: 60vw;
  }
  .company-header {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0 0.3rem 0;
  }
  .partner-logo {
    width: 80px;
    height: 44px;
    max-width: 32vw;
    max-height: 44px;
    margin: 0;
    padding: 0.13rem 0.18rem;
    border-radius: 7px;
    box-shadow: none;
  }
}

@media (max-width: 400px) {
  .partner-logo {
    width: 40px;
    height: 20px;
    max-width: 98vw;
    max-height: 20px;
    padding: 0.07rem 0.09rem;
    border-radius: 4px;
  }
}

@media (max-width: 480px) {
  .job-cards {
    padding: 1rem;
    gap: 1rem;
  }

  .card {
    padding: 1rem 0.7rem 0.7rem 0.7rem;
    min-height: 200px;
  }

  .card h3 {
    font-size: 1rem;
    margin-bottom: 0.7rem;
  }

  .card p {
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
  }

  .job-location {
    font-size: 0.9rem;
    margin: 0.875rem 0 1rem 0;
  }

  .location-icon {
    width: 18px;
    height: 18px;
  }

  .card button {
    padding: 0.55rem 1rem;
    font-size: 0.9rem;
  }
}

.card {
  background: #fafafa;
  border-radius: 14px;
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.10);
  display: flex;
  flex-direction: column;
  min-height: 340px;
  border: 1.5px solid #e0e7ef;
}

.card:hover {
  transform: translateY(-5px);
}

.card h3 {
  font-size: 1.35rem;
  color: #0077cc;
  font-weight: 700;
  margin-bottom: 1.1rem;
  text-decoration: underline;
  text-underline-offset: 0.25em;
  letter-spacing: 0.01em;
}

.card p {
  font-size: 1.12rem;
  color: #222;
  margin-bottom: 1.2rem;
  line-height: 1.7;
}

.card-content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

/* Job location styling */
.job-location {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.6rem;
  margin: 1.25rem 0 1.5rem 0;
  padding: 0.5rem 0;
  font-size: 1rem;
  color: #555;
  font-weight: 500;
  margin-top: auto;
  margin-bottom: 1.5rem;
}

.location-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}

.card button {
  background: #0077cc;
  color: #fff;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
  width: 100%;
  margin-top: auto;
}

.card button:hover {
  background: #005fa3;
}
