/* =========================
   POSTS PAGE
========================= */

.container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  gap: 30px;
  padding: 20px;
}

.main-content {
  flex: 3;
}

.sidebar {
  flex: 1;
}

/* =========================
   JOB CARD
========================= */

.job-card {
  display: flex;
  gap: 20px;
  background: #fff;
  padding: 15px;
  margin-bottom: 25px;
  border: 1px solid #ddd;
  box-shadow: 0 2px 5px rgba(0,0,0,.08);
}

.job-image img {
  width: 180px;
  height: 120px;
  object-fit: cover;
}

.job-details {
  flex: 1;
}

.job-details h2 {
  margin: 10px 0;
  font-size: 24px;
  line-height: 1.4;
}

.job-details h2 a {
  text-decoration: none;
  color: #222;
}

.job-details h2 a:hover {
  color: #1e88e5;
}

.category {
  background: #e74c3c;
  color: white;
  padding: 4px 8px;
  font-size: 12px;
  text-transform: uppercase;
}

.meta {
  color: #777;
  font-size: 13px;
  margin: 10px 0;
}

/* =========================
   READ MORE BUTTON
========================= */

.read-more {
  display: inline-block;
  padding: 8px 18px;
  border: 2px solid #e74c3c;
  color: #e74c3c;
  text-decoration: none;
  font-size: 11px;
  text-transform: uppercase;
  transition: 0.3s;
}

.read-more:hover {
  background: #e74c3c;
  color: #fff;
}

/* =========================
   SIDEBAR
========================= */

.widget {
  background: #fff;
  border: 1px solid #ddd;
  margin-bottom: 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,.08);
}

.widget h3 {
  margin: 0;
  padding: 12px;
  background: #111;
  color: white;
  font-size: 13px;
  text-transform: uppercase;
}

/* =========================
   SOCIAL
========================= */

.social-icons {
  padding: 15px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.social-icons a {
  text-decoration: none;
  background: #1e88e5;
  color: white;
  padding: 8px 12px;
  border-radius: 3px;
  transition: .3s;
}

.social-icons a:hover {
  background: #1565c0;
}

/* =========================
   RELATED POSTS
========================= */

.related-post {
  display: flex;
  gap: 10px;
  padding: 10px;
  border-bottom: 1px solid #eee;
}

.related-post:last-child {
  border-bottom: none;
}

.related-img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
}

.related-content {
  flex: 1;
}

.related-content a {
  text-decoration: none;
  color: #333;
  font-size: 13px;
  line-height: 1.5;
}

.related-content a:hover {
  color: #1e88e5;
}

/* =========================
   CATEGORY PAGE
========================= */

.category-header {
  background: #fff;
  border-left: 5px solid #1e88e5;
  padding: 15px 20px;
  margin-bottom: 25px;
  box-shadow: 0 2px 5px rgba(0,0,0,.08);
  font-size: 18px;
}

.category-header strong {
  color: #1e88e5;
}

/* =========================
   SHOW PAGE
========================= */

.post-title {
  font-size: 36px;
  line-height: 1.4;
  margin: 15px 0;
}

.post-body {
  margin-top: 20px;
  line-height: 1.8;
}

.show-image {
  text-align: center;
  margin: 30px 0;
}

.show-image img {
  width: 500px;
  max-width: 100%;
}

.show-actions {
  margin-top: 30px;
  display: flex;
  gap: 10px;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

  .container {
    flex-direction: column;
  }

  .job-card {
    flex-direction: column;
  }

  .job-image img {
    width: 100%;
    height: auto;
  }

  .job-details h2 {
    font-size: 20px;
  }

}



.no-results {
  text-align: center;
  padding: 40px 20px;
  background: #fff;
  border-radius: 10px;
  margin: 20px 0;
}

.no-results h3 {
  color: #e63946;
  margin-bottom: 10px;
}


.apply-box {
  margin-top: 30px;
  padding: 20px;
  background: #fff;
  border: 2px solid #e63946;
  border-radius: 10px;
}

.apply-box h3 {
  margin-bottom: 15px;
  color: #e63946;
}

.apply-box p {
  margin-bottom: 10px;
  font-size: 15px;
}

.apply-btn {
  display: inline-block;
  margin-top: 10px;
  background: #e63946;
  color: #fff;
  text-decoration: none;
  padding: 12px 25px;
  border-radius: 6px;
  font-weight: bold;
}

.apply-btn:hover {
  background: #c1121f;
}

.apply-btn {
  display: block;
  width: fit-content;
  margin: 20px auto 0;
  background: #e63946;
  color: white;
  text-decoration: none;
  padding: 12px 25px;
  border-radius: 6px;
  font-weight: bold;
  text-align: center;
}

.apply-btn:hover {
  background: #c1121f;
}