/* Professional UI polish layer — keeps existing functionality and component structure intact. */
:root {
  --pro-ink: #102a43;
  --pro-blue: #0b4f8a;
  --pro-blue-2: #1468ad;
  --pro-surface: #ffffff;
  --pro-border: #dbe5ef;
  --pro-muted: #617287;
  --pro-shadow: 0 12px 32px rgba(16, 42, 67, .07);
}

body {
  color: var(--pro-ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(20,104,173,.055), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, #f4f7fb 100%);
}

.top-header {
  min-height: 76px;
  border-bottom-color: rgba(203, 217, 231, .9);
}

.brand-mark {
  width: 54px;
  height: 54px;
  border-radius: 16px;
}

.header-actions button,
.secondary,
.primary {
  min-height: 42px;
}

.nav-bar {
  position: sticky;
  top: 76px;
  z-index: 40;
  padding-top: 8px;
  padding-bottom: 8px;
}

main {
  padding-top: 34px;
}

.hero {
  min-height: 360px;
  border-radius: 28px;
  box-shadow: 0 20px 55px rgba(13, 59, 102, .10);
}

.hero h2 {
  max-width: 720px;
}

.news-grid {
  align-items: stretch;
}

.news-card {
  display: flex;
  flex-direction: column;
  min-height: 230px;
}

.news-card p {
  flex: 1;
}

.news-card.featured {
  box-shadow: 0 12px 28px rgba(20, 104, 173, .08);
}

.section-heading {
  align-items: center;
}

.section-heading h2 {
  color: var(--pro-ink);
}

.resource-grid {
  align-items: stretch;
}

.resource-card {
  min-height: 88px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.resource-card:hover {
  transform: translateY(-2px);
  border-color: #b8d0e5;
  box-shadow: var(--pro-shadow);
}

.admin-console {
  border-radius: 24px;
  box-shadow: 0 18px 48px rgba(13, 59, 102, .10);
}

.news-article {
  box-shadow: 0 18px 48px rgba(13, 59, 102, .08);
}

.portal-ad-admin-page,
.page-cms,
.admin-menu-cms,
.admin-settings-page {
  background: rgba(255,255,255,.72);
  border-radius: 22px;
}

footer {
  margin-top: 24px;
}

@media (max-width: 980px) {
  .nav-bar { top: 0; }
  .hero { min-height: 0; }
  .resource-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .top-header {
    position: relative;
    padding: 12px 14px;
  }
  .brand { gap: 10px; }
  .brand-mark { width: 46px; height: 46px; border-radius: 13px; }
  .brand p { font-size: 12px; }
  .header-actions { gap: 6px; }
  .header-actions button { padding: 8px 10px; font-size: 12px; }
  main { padding: 20px 14px 48px; }
  .hero { padding: 24px 20px; border-radius: 20px; }
  .hero h2 { font-size: clamp(27px, 9vw, 38px); }
  .section { margin-top: 30px; }
  .resource-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .news-card { min-height: 0; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  footer { padding: 24px 14px; flex-direction: column; }
}
