/* Reset-ish */
* { box-sizing: border-box; margin: 0; padding: 0; }
html,body { height: 100%; font-family: "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif; color:#111; background:#f6f7fb; }

/* Page layout */
.page {
  max-width: 900px;
  margin: 28px auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(19,24,38,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

header.site-header {
  background: linear-gradient(90deg, #0b2340, #0f3b66);
  color: #fff;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
}
header .logo {
  width: 64px;
  height: 64px;
  border-radius: 6px;
  background: rgba(255,255,255,0.08);
  display:flex;align-items:center;justify-content:center;
  font-weight:700;
  font-size:14px;
}
header .title h1 { font-size: 18px; margin-bottom: 4px; }
header .title p { font-size: 12px; opacity: 0.95; }

/* Toolbar */
.toolbar {
  display:flex; gap:8px; align-items:center; padding:12px 18px; border-bottom:1px solid #eee;
  background: #fbfcfe;
}
.btn {
  padding:8px 12px; border-radius:6px; border:1px solid #d0d7e0; background:#fff; cursor:pointer;
  font-size:14px;
}
.btn.primary { background:#0b4ea2; color:#fff; border-color: #0b4ea2; }
.meta { margin-left:auto; font-size:13px; color:#4a5568; }

/* Content */
.content { padding:22px; }
.ad-card { border: 1px solid #e6eaf0; padding:18px; border-radius:6px; background: #fff; }
.ad-heading { text-align:center; margin-bottom:12px; }
.ad-heading h2 {
  display:inline-block;
  background:#111; color:#fff; padding:8px 26px; border-radius:50px;
  letter-spacing:1px; font-size:20px; margin-bottom:10px;
}
.college-name { text-align:center; font-weight:700; text-decoration:underline; margin-bottom:14px; font-size:16px; }
.intro { text-align:center; color:#222; margin-bottom:18px; line-height:1.45; }
.vac-title { margin-bottom:10px; font-size:16px; }

/* Vacancy table */
table.vacancies {
  width:100%; border-collapse:collapse; margin-bottom:18px;
  font-size:15px;
}
table.vacancies th, table.vacancies td {
  border:1px solid #dfe6ef; padding:10px 12px; text-align:left;
}
table.vacancies th { background:#f2f6fb; font-weight:700; }
table.vacancies td.center { text-align:center; }

/* Details */
.details { line-height:1.6; margin-top:8px; }
.highlight { font-weight:700; color:#0b2b56; text-decoration: none; }

/* Divider */
.divider { margin:18px 0; border:none; border-top:1px dashed #e8edf5; }

/* Qualifications */
.qual-title { margin-bottom:8px; }
.qual-list { margin-left:18px; line-height:1.6; margin-top:6px; }
.note { margin-top:8px; font-size:13px; color:#555; }

/* Footer */
footer.site-footer {
  margin-top:18px;
  background:#0b2340; color:#fff; padding:14px 22px; display:flex; align-items:center; gap:12px;
  justify-content:space-between;
}
footer .left { font-size:14px; }
footer .right { text-align:right; font-size:13px; opacity:0.95; }
.secret { font-weight:700; margin-bottom:6px; }
.college-small { font-size:13px; }

/* Image wrapper (optional) */
.ad-image-wrap { text-align:center; margin:12px 0; }
.ad-image-wrap img { max-width:100%; border-radius:6px; border:1px solid #e6eef8; }

/* Responsive */
@media (max-width:640px) {
  .page { margin:12px; }
  header .title h1 { font-size:16px; }
  .ad-heading h2 { font-size:18px; padding:6px 18px; }
  table.vacancies td, table.vacancies th { font-size:13px; padding:8px; }
  .toolbar { padding:10px; }
}

/* Print */
@media print {
  body { background: #fff; }
  .page { box-shadow:none; margin:0; border-radius:0; }
  header.site-header, .toolbar, footer.site-footer { display:none; }
}

/* Navbar */
.navbar {
  width: 100%;
  background: #0b2340;
}
.navbar ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 12px;
}
.navbar a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}
.navbar a:hover {
  color: #f4c542;
}

/* University header inside card */
.uni-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  justify-content: center;
  text-align: center;
}
.uni-header .logo {
  width: 56px;
  height: 56px;
  border-radius: 6px;
  background: #0b2340;
  color: #fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  font-size:14px;
}
.uni-header h1 {
  font-size: 18px;
}
.uni-header p {
  font-size: 12px;
  opacity: 0.85;
}

/* Image wrapper */
.ad-image-wrap {
  margin: 24px 0;
  padding: 16px;
  background: #f9fafc;
  border: 1px solid #e6eef8;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.ad-images {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.ad-images img {
  max-width: 45%;
  border-radius: 6px;
  border: 1px solid #ddd;
  transition: transform 0.3s;
}
.ad-images img:hover {
  transform: scale(1.05);
}
.page {
  max-width: 900px;
  margin: 28px auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(19,24,38,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
