/* ================= HOME PAGE CSS START ================= */

body {
  background: #f5f7fb;
}

/* CONTAINER FIX */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 15px;
}

/* HERO */
.hero-section {
  background: linear-gradient(90deg,#0f4c81,#1e73be);
  padding: 50px;
  text-align: center;
  border-radius: 15px;
}
.hero-section h1 {
  color: #fff;
  font-size: 36px;
}
.search-box input {
  border-radius: 50px 0 0 50px;
  border: none;
}
.search-box button {
  background: #ff2d2d;
  border-radius: 0 50px 50px 0;
}

/* FLASH */
.flash-bar {
  display: flex;
  align-items: center;
  background: #fff;
  padding: 10px;
  margin: 15px 0;
  border-radius: 10px;
}
.flash-label {
  background: red;
  color: #fff;
  padding: 5px 10px;
  margin-right: 10px;
  border-radius: 5px;
}

/* CATEGORY */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(8,1fr);
  gap: 15px;
}
.cat-card {
  background: #fff;
  padding: 15px;
  text-align: center;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  font-weight: 500;
  transition: 0.3s;
}
.cat-card:hover {
  transform: translateY(-5px);
}

/* MAIN */
.main-section {
  display: flex;
  gap: 20px;
}
.left {
  width: 70%;
}
.right {
  width: 30%;
}

/* CARD */
.card {
  background: #fff;
  border-radius: 10px;
  padding: 10px;
}

/* ================= TABLE FIX (IMPORTANT) ================= */

.job-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

/* COLUMN WIDTH */
.job-table th:nth-child(1),
.job-table td:nth-child(1) {
  width: 55%;
}
.job-table th:nth-child(2),
.job-table td:nth-child(2) {
  width: 25%;
}
.job-table th:nth-child(3),
.job-table td:nth-child(3) {
  width: 20%;
  text-align: center;
}

.job-table th {
  background: #2b5db5;
  color: #fff;
}

.job-table td {
  padding: 12px;
  border-bottom: 1px solid #eee;

  /* 🔥 TEXT BREAK FIX */
  word-wrap: break-word;
  word-break: break-word;
  white-space: normal;
}

/* TITLE FIX */
.job-table td strong {
  display: block;
  line-height: 1.4;
}

/* TEXT STYLE */
.posts {
  color: green;
  font-weight: bold;
}
.last-date {
  color: red;
}

/* BUTTON */
.view-btn {
  background: #2b5db5;
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  display: inline-block;
}

/* SIDEBAR */
.sidebar-box {
  background: #fff;
  padding: 15px;
  border-radius: 10px;
}
.sidebar-box h3 {
  background: #2b5db5;
  color: #fff;
  padding: 10px;
  border-radius: 8px;
}
.sidebar-box ul {
  list-style: none;
  padding: 0;
}
.sidebar-box li {
  padding: 10px;
  border-bottom: 1px solid #eee;
}
.new {
  color: red;
  font-size: 12px;
  margin-left: 5px;
}

/* WHATSAPP */
.whatsapp-box {
  background: #25d366;
  color: #fff;
  padding: 20px;
  text-align: center;
  border-radius: 10px;
}
.join-btn {
  background: #fff;
  color: #25d366;
  padding: 10px;
  display: inline-block;
  border-radius: 20px;
}

/* ================= RESPONSIVE ================= */

/* Tablet */
@media (max-width: 1024px) {

  .cat-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .main-section {
    flex-direction: column;
  }

  .left, .right {
    width: 100%;
  }
}

/* Mobile */
@media (max-width: 600px) {

  .container {
    padding: 0 10px;
  }

  /* CATEGORY */
  .cat-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }

  .cat-card {
    padding: 12px 5px;
    font-size: 13px;
    border-radius: 10px;
  }

  /* TABLE FIX */
  .job-table {
    display: table;
  }

  .job-table td {
    font-size: 13px;
  }

  /* BUTTON */
  .view-btn {
    padding: 5px 8px;
    font-size: 12px;
  }

  /* FLASH */
  .flash-bar {
    font-size: 13px;
    padding: 8px;
  }

  /* LAYOUT */
  .main-section {
    flex-direction: column;
  }

  .left, .right {
    width: 100%;
  }

}

/* ================= HOME PAGE CSS END ================= */