/* ===== Widget Card (Job Ads / Past Papers) ===== */
.widget-card {
  background: #ffffff;
  border: 1px solid #eaeef4;
  border-radius: 18px;
  padding: 24px 24px 20px;
  box-shadow: 0 4px 18px rgba(20, 80, 163, 0.06);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.widget-list {
  flex: 1 1 auto;
}

.widget-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.widget-head h3 {
  font-family: 'Lexend', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #14213d;
  margin: 0;
}

.widget-subtitle {
  color: #6b7688;
  font-size: 0.88rem;
  margin: 4px 0 18px;
}

.widget-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 11px;
  border-radius: 999px;
  white-space: nowrap;
}

.widget-pill.live {
  background: #e3f7e9;
  color: #1a9c4c;
}

.widget-pill.live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1a9c4c;
}

.widget-list {
  display: flex;
  flex-direction: column;
}

.widget-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #f0f2f6;
}

.widget-item:last-child {
  border-bottom: none;
}

.widget-icon {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #eaf1fc;
  color: #1450a3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.widget-icon svg {
  width: 20px;
  height: 20px;
}

.widget-info {
  flex: 1;
  min-width: 0;
}

.widget-info h4 {
  font-size: 0.98rem;
  font-weight: 700;
  color: #14213d;
  margin: 0 0 2px;
}

.widget-info p {
  font-size: 0.85rem;
  color: #8993a4;
  margin: 0 0 8px;
}

.deadline-badge {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 3px 11px;
  border-radius: 999px;
  background: #eaf1fc;
  color: #1450a3;
}

.deadline-badge.urgent {
  background: #fdeaea;
  color: #d64545;
}

.widget-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.widget-btn {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  text-decoration: none;
  border: 1.5px solid #1450a3;
  color: #1450a3;
  background: #fff;
  transition: background .15s ease, color .15s ease;
}

.widget-btn:hover {
  background: #eaf1fc;
}

.widget-btn.solid {
  background: #1450a3;
  color: #fff;
  border-color: #1450a3;
}

.widget-btn.solid:hover {
  background: #103f82;
}

.widget-cta {
  display: block;
  text-align: center;
  margin-top: auto;
  padding: 20px 13px 13px;
  border-radius: 999px;
  background: #1450a3;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background .15s ease;
}

.widget-cta:hover {
  background: #103f82;
}

/* two widgets side by side on wider screens */
.widget-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 860px) {
  .widget-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* ===== Header overflow fix ===== */
.site-header .container {
  flex-wrap: wrap;
  row-gap: 12px;
}

.main-nav {
  flex-wrap: wrap;
}

.header-actions {
  flex-shrink: 0;
  flex-wrap: nowrap;
  gap: 10px;
}

.search-box {
  flex: 1 1 160px;
  min-width: 0;
  max-width: 240px;
}

.search-box input {
  width: 100%;
  min-width: 0;
}

body {
  overflow-x: hidden;
}

.content-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:28px;
}

.content-card{
    background:#fff;
    border:1px solid #e8edf5;
    border-radius:18px;
    padding:30px;
    text-align:center;
    transition:.3s;
    box-shadow:0 4px 12px rgba(0,0,0,.05);
}

.content-card:hover{
    transform:translateY(-5px);
    box-shadow:0 10px 30px rgba(0,0,0,.08);
}

.content-icon{
    display:flex;
    justify-content:center;
    margin-bottom:20px;
}

.icon-wrap{
    width:80px;
    height:80px;
    border-radius:18px;
    background:#edf4ff;
    display:flex;
    align-items:center;
    justify-content:center;
}

.icon-wrap svg{
    width:42px !important;
    height:42px !important;
    max-width:42px;
    max-height:42px;
}

.content-card h3{
    font-size:24px;
    font-weight:700;
    margin-bottom:15px;
}

.content-card p{
    font-size:15px;
    color:#6f7785;
    line-height:1.7;
    margin-bottom:20px;
}

.section-link{
    display:inline-flex;
    align-items:center;
    gap:8px;
    color:#1450a3;
    font-weight:600;
    text-decoration:none;
}

.section-link svg{
    width:16px;
    height:16px;
}