body {
    font-family: Arial, sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
}

h2 {
    color: #333;
    margin-bottom: 10px;
    margin-top: 20px;
    text-align: center;
}

p {
    line-height: 1.8;
    text-align: left;    
}

label {
    font-weight: bold;
    text-align: right;
}

textarea {
    width: 100%;
    min-height: 150px; /* ปรับความสูง */
    padding: 10px;
    font-size: 16px;
    line-height: 1.5;
}

/* จัดเรียงการ์ดเป็น 2 การ์ดต่อแถว */
.job-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 20px;
}

/* การ์ดของตำแหน่งงาน */
.job-card {
    background: rgb(36, 36, 36);
    border-radius: 5px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    width: 45%; /* กำหนดให้มี 2 การ์ดต่อแถว */
    padding: 20px;
    text-align: left;
    transition: transform 0.2s;
    color:#f8f9fa;
}

.job-salary, .job-properties, .welfare, .howto, .job-location, .contact-job, .job-description {
    font-size: 20px;
    color: #ff5100;
    margin-bottom: 10px;    
}
.job-title {
    font-size: 20px;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 10px;
    text-align: center;    
}

.btn-apply {
    display: inline-block;
    background-color: #28a745;
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px;
    transition: background 0.3s;
}

.btn-apply:hover {
    background-color: #218838;
}

@media (max-width: 768px) {
  .job-container {
    flex-direction: column;
    padding: 10px;
  }

  .job-card {
    width: 90%;
    
    margin-bottom: 20px;
  }

  .job-title,
  .job-salary,
  .job-properties,
  .welfare,
  .howto,
  .job-location,
  .contact-job,
  .job-description {
    font-size: 16px;
    line-height: 1.5;
    margin: 8px 0;
  }

  .job-card p {
    font-size: 14px;
  }

  .btn-apply {
    width: 100%;
    text-align: center;
    font-size: 15px;
    padding: 12px;
    margin-top: 15px;
  }
}
