/* ================= BASE ================= */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f4f6f9;
  display: flex;
  justify-content: center;

}

/* ================= MAIN LAYOUT ================= */
.layout-3 {
  display: flex;
  gap: 20px;
  width: 100%;
  max-width: 1050px;   /* 🔥 tighter = professional */
  margin: 20px auto;
}

/* LEFT SIDEBAR */
.sidebar-left {
  width: 200px;
  flex-shrink: 0;
}

/* RIGHT SIDEBAR */
.sidebar-right {
  width: 250px;
  flex-shrink: 0;
}

/* CENTER CONTENT */
.main-center {
  flex: 1;
  max-width: 600px;
}

/* ================= SIDEBAR ================= */
.side-box {
  background: #fff;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 15px;
}

.side-box h3 {
  background: red;
  color: white;
  padding: 8px;
  border-radius: 5px;
  font-size: 14px;
}

.side-box a {
  display: block;
  padding: 6px 0;
  text-decoration: none;
  color: #000;
  border-bottom: 1px solid #eee;
}

.side-box a:hover {
  color: red;
}

/* ================= TREND ================= */
.trend-item {
  padding: 6px 0;
  border-bottom: 1px solid #eee;
}

/* ================= ADS ================= */
.ad {
  text-align: center;
  padding: 15px;
  background: #f1f1f1;
  margin: 15px 0;
  border-radius: 5px;
}

/* ================= STICKY ================= */
.sidebar-left,
.sidebar-right {
  position: sticky;
  top: 10px;
  height: fit-content;
}

.sticky-ad {
  position: sticky;
  top: 10px;
}

/* ================= SEARCH ================= */
.search-box {
  text-align: center;
  margin: 20px 0;
}

.search-box input {
  padding: 10px;
  width: 70%;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.search-box button {
  padding: 10px 15px;
  background: red;
  color: white;
  border: none;
  border-radius: 5px;
}

/* ================= GRID ================= */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.box {
  padding: 15px;
  color: white;
  text-align: center;
  font-weight: bold;
  border-radius: 5px;
}

.jobs { background: #007bff; }
.results { background: green; }
.admit { background: orange; }
.schemes { background: purple; }

/* ================= SECTIONS ================= */
.section {
  background: white;
  margin-top: 20px;
  padding: 12px;
  border-radius: 6px;
}

.section-title {
  background: red;
  color: white;
  padding: 8px;
  border-radius: 4px;
  font-size: 16px;
}

.post-item {
  padding: 6px 0;
  border-bottom: 1px solid #ddd;
}

.post-item a {
  text-decoration: none;
  color: #000;
}

.post-item a:hover {
  color: red;
}

/* ================= POST PAGE ================= */
.post-title {
  font-size: 26px;
  font-weight: bold;
  margin: 20px 0;
}

.post-image {
  width: 100%;
  border-radius: 5px;
  margin-bottom: 15px;
}

.post-content {
  background: #fff;
  padding: 15px;
  line-height: 1.7;
  border-radius: 5px;
}

/* TABLE */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 15px 0;
}

table th {
  background: #ff3b3b;
  color: white;
}

table td, table th {
  border: 1px solid #ddd;
  padding: 10px;
}

/* ================= TAGS ================= */
.tags {
  margin-top: 20px;
}

.tags a {
  background: #eee;
  padding: 6px 10px;
  margin: 5px;
  display: inline-block;
  border-radius: 5px;
  text-decoration: none;
  font-size: 13px;
}

/* ================= APPLY BUTTON ================= */
.apply-box {
  text-align: center;
  margin: 20px 0;
}

.apply-btn {
  background: green;
  color: white;
  padding: 12px 20px;
  text-decoration: none;
  font-size: 18px;
  border-radius: 5px;
}

.apply-btn:hover {
  background: darkgreen;
}

/* ================= RELATED ================= */
.related {
  margin-top: 30px;
}

.related-item {
  padding: 6px 0;
}

/* ================= BREADCRUMB ================= */
.breadcrumb {
  font-size: 14px;
  margin: 10px 0;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 992px) {
  .layout-3 {
    flex-direction: column;
    max-width: 95%;
  }

  .sidebar-left,
  .sidebar-right {
    width: 100%;
    position: static;
  }

  .main-center {
    max-width: 100%;
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .search-box input {
    width: 90%;
  }
}