:root {
  --bg: #edf3fb;
  --surface: #ffffff;
  --surface-soft: #f5f8ff;
  --primary: #e63d2f;
  --primary-dark: #0f2d87;
  --navy: #0d1f56;
  --text: #10214c;
  --muted: #5d648a;
  --line: #dfe8f8;
  --blue-soft: #edf3ff;
  --blue: #2d6af8;
  --green-soft: #eafaf1;
  --green: #36b06d;
  --orange-soft: #fff4e7;
  --orange: #f3a536;
  --purple-soft: #f4eeff;
  --purple: #7f65f5;
  --shadow: 0 18px 40px rgba(17, 31, 78, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: linear-gradient(180deg, #edf3ff 0%, #eef5ff 100%);
  color: var(--text);
}

a { color: inherit; text-decoration: none; }
button, input {
  font: inherit;
}

.public-page {
  padding: 24px 0 36px;
}

.site-shell {
  width: min(1420px, calc(100vw - 28px));
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: linear-gradient(90deg, #06134c 0%, #0d2f91 58%, #081a5b 100%);
  color: #fff;
  padding: 18px 26px;
  position: relative;
  z-index: 2;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 72px;
}

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 52px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 900;
  font-size: 2.15rem;
  line-height: 1;
  letter-spacing: -0.08em;
}

.brand-logo,
.hero-logo,
.footer-logo,
.dashboard-logo {
  display: block;
  object-fit: contain;
}

.brand-logo {
  width: 72px;
  height: 48px;
}

.hero-logo {
  width: 210px;
  height: 140px;
  margin-bottom: 20px;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,0.15));
}

.footer-logo {
  width: 74px;
  height: 52px;
}

.dashboard-logo {
  width: 50px;
  height: 40px;
}

.brand-text {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 26px;
  font-size: 0.8rem;
  font-weight: 600;
}

.main-nav a {
  position: relative;
  opacity: 0.9;
}

.main-nav a.active::after,
.main-nav a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: rgba(255,255,255,0.9);
}

.main-nav a.active {
  padding: 8px 12px;
  border-radius: 6px;
  background: #e72e3c;
  opacity: 1;
}

.main-nav a.active::after {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: white;
  cursor: pointer;
}

.main-nav a {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.login-btn,
.primary-btn,
.secondary-btn,
.panel-head button,
.table-head button,
.mini-filter,
.view-site-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease;
}

.login-btn,
.primary-btn,
.view-site-btn {
  background: linear-gradient(135deg, #ff5a4b 0%, #e23449 100%);
  color: #fff;
  box-shadow: 0 12px 22px rgba(255, 92, 78, 0.25);
}

.login-btn {
  height: 42px;
  padding: 0 20px;
}

.hero-section {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  min-height: 390px;
  background: linear-gradient(90deg, rgba(5, 44, 124, 0.92), rgba(16, 77, 175, 0.78));
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 39, 111, 0.86), rgba(0,0,0,0.04));
}

.hero-mockup {
  min-height: 390px;
  grid-template-columns: 1.15fr 0.85fr;
  padding: 28px 30px;
  background: linear-gradient(90deg, #081d6b 0%, #0a2b8d 55%, #0a4bb3 100%);
}

.hero-mockup::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.04), rgba(255,255,255,0.02));
}

.hero-copy,
.hero-media {
  position: relative;
  z-index: 1;
}

.hero-copy {
  padding: 0;
  width: 100%;
  text-align: left;
}

.hero-intro {
  display: flex;
  align-items: center;
  gap: 20px;
}

.hero-logo {
  flex: 0 0 145px;
  width: 145px;
  height: 118px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,0.15));
}

.hero-text {
  min-width: 0;
  padding-left: 18px;
  border-left: 1px solid rgba(255,255,255,0.65);
}

.hero-copy h1 {
  margin: 0;
  color: white;
  font-size: clamp(1.25rem, 1.6vw, 2rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.hero-copy p {
  max-width: 420px;
  margin: 12px 0 0;
  color: rgba(255,255,255,0.9);
  font-size: 0.86rem;
  line-height: 1.55;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0 0 165px;
}

.primary-btn,
.secondary-btn {
  height: 52px;
  padding: 0 26px;
  font-size: 0.98rem;
}

.secondary-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.46);
  color: white;
}

.hero-media {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0 8px 18px;
}

.hero-image,
.building-photo,
.news-thumb {
  width: 100%;
  height: 100%;
  min-height: 300px;
  border-radius: 24px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 20px 40px rgba(10, 40, 96, 0.18);
}

.hero-image {
  background-image: url('https://images.unsplash.com/photo-1562774053-701939374585?auto=format&fit=crop&w=1200&q=80');
}

.section-block {
  padding: 30px 30px 18px;
  background: #fff;
}

.about-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
}

.section-visual {
  min-height: 260px;
}

.building-photo {
  min-height: 100%;
  background-image: url('https://images.unsplash.com/photo-1562774053-701939374585?auto=format&fit=crop&w=1200&q=80');
}

.section-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section-content h2,
.section-title-row h3,
.contact-copy h3 {
  margin: 0;
  color: var(--navy);
  letter-spacing: -0.05em;
}

.section-content h2,
.section-title-row h3 {
  font-size: clamp(2rem, 1.6vw, 2.7rem);
}

.section-content p {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: 1.02rem;
}

.about-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
}

.award-badge {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #fff5eb 0%, #ffe0b3 100%);
  color: #eb932d;
  font-size: 1.8rem;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.section-title-row a {
  color: var(--primary-dark);
  font-weight: 700;
}

.scheme-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.scheme-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 20px 16px;
  border-radius: 22px;
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(101, 112, 160, 0.1);
}

.scheme-blue { background: linear-gradient(180deg, #edf1ff 0%, #e1ebff 100%); }
.scheme-light { background: linear-gradient(180deg, #ecf7ff 0%, #e1f0ff 100%); }
.scheme-soft { background: linear-gradient(180deg, #ecfbf5 0%, #ddf8ef 100%); }
.scheme-pink { background: linear-gradient(180deg, #fff0fa 0%, #f7def2 100%); }

.scheme-icon,
.feature-icon {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(255,255,255,0.45);
  color: var(--primary-dark);
  font-size: 2.2rem;
}

.scheme-card h4,
.feature-card h4 {
  margin: 0;
  line-height: 1.4;
  color: var(--navy);
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  background: #fff;
  border-top: 1px solid var(--line);
}

.feature-card {
  position: relative;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  align-items: center;
  min-height: 150px;
  padding: 22px 18px 22px 16px;
  border-radius: 24px;
  border: 1px solid rgba(104, 121, 181, 0.1);
}

.feature-blue { background: linear-gradient(135deg, #edf4ff 0%, #e1efff 100%); }
.feature-purple { background: linear-gradient(135deg, #f3edff 0%, #edf2ff 100%); }

.feature-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.feature-card a {
  position: absolute;
  right: 18px;
  bottom: 16px;
  color: var(--primary-dark);
  font-weight: 700;
}

.news-section {
  background: #fff;
  border-top: 1px solid var(--line);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.news-item {
  background: #f7faff;
  border: 1px solid rgba(160, 175, 220, 0.12);
  border-radius: 22px;
  overflow: hidden;
}

.news-thumb {
  min-height: 200px;
  border-radius: 0;
}

.thumb-one { background-image: url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?auto=format&fit=crop&w=1200&q=80'); }
.thumb-two { background-image: url('https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=1200&q=80'); }
.thumb-three { background-image: url('https://images.unsplash.com/photo-1523240795612-9a054b0db644?auto=format&fit=crop&w=1200&q=80'); }

.news-date {
  padding: 14px 18px 6px;
  color: var(--muted);
  font-size: 0.75rem;
}

.news-item h4 {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--navy);
  line-height: 1.6;
  font-size: 1.05rem;
}

.contact-section {
  background: #fff;
  border-top: 1px solid var(--line);
}

.contact-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(135deg, #f4f7ff 0%, #edf2ff 100%);
  border-radius: 22px;
  padding: 28px 24px;
  border: 1px solid rgba(98, 119, 187, 0.12);
}

.contact-copy p {
  margin: 8px 0 0;
  color: var(--muted);
}

.contact-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.contact-identity .brand-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: var(--navy);
  font-size: 0.82rem;
}

.contact-identity .brand-text small {
  color: var(--muted);
  font-size: 0.74rem;
}

.contact-details {
  display: grid;
  gap: 10px;
  color: var(--navy);
  font-weight: 600;
}

.contact-details p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.contact-socials a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(18, 44, 124, 0.08);
  color: var(--navy);
}

.profile-page {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: 36px;
  padding-top: 40px;
  padding-bottom: 56px;
}

.profile-page-image img {
  display: block;
  width: 100%;
  max-height: 520px;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.profile-page-content h1 {
  margin: 0 0 20px;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3rem);
}

.profile-page-content > p,
.profile-detail-section p,
.profile-detail-section li {
  color: var(--muted);
  line-height: 1.8;
}

.profile-detail-section {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.profile-detail-section h2 {
  margin: 0 0 12px;
  color: var(--navy);
}

.profile-detail-section ul {
  display: grid;
  gap: 10px;
  padding-left: 22px;
}

.site-footer {
  padding: 0 20px 14px;
  background: rgba(255,255,255,0.36);
  box-shadow: var(--shadow);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand .brand-mark {
  width: 64px;
  height: 50px;
  background: linear-gradient(135deg, #ed1b24 0%, #1f4ad1 100%);
  color: #fff;
  font-size: 1.9rem;
}

.footer-brand .brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--navy);
  font-size: 0.74rem;
}

.footer-brand .brand-text small {
  font-size: 0.7rem;
  opacity: 0.72;
}

.footer-address {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.footer-address p {
  margin: 0;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(18, 44, 124, 0.08);
}

.admin-page {
  background: linear-gradient(180deg, #edf3ff 0%, #eef5ff 100%);
  min-height: 100vh;
  padding: 24px;
}

.dashboard-shell {
  max-width: 1500px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  min-height: calc(100vh - 48px);
  background: rgba(255,255,255,0.54);
  border-radius: 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.dashboard-sidebar {
  background: linear-gradient(180deg, #f4f8ff 0%, #edf4ff 100%);
  padding: 18px 14px;
  border-right: 1px solid rgba(100, 118, 180, 0.12);
}

.dashboard-brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px 18px;
}

.dashboard-brand-row strong,
.dashboard-brand-row span {
  display: block;
  color: var(--navy);
}

.dashboard-brand-row strong {
  font-size: 1.08rem;
}

.dashboard-brand-row span {
  font-size: 0.75rem;
  opacity: 0.72;
}

.brand-mini {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f83c3b 0%, #1a3ee6 100%);
  color: #fff;
  font-weight: 900;
  letter-spacing: -0.08em;
}

.admin-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  margin: 0 8px 12px;
  border-radius: 18px;
  background: rgba(255,255,255,0.76);
  box-shadow: inset 0 0 0 1px rgba(117, 136, 203, 0.08);
}

.admin-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #1d7af2 0%, #5ec4ff 100%);
  color: white;
  font-weight: 800;
}

.admin-profile small,
.admin-profile strong {
  display: block;
}

.admin-profile small {
  color: var(--muted);
  font-size: 0.68rem;
}

.admin-profile strong {
  color: var(--navy);
  font-size: 0.9rem;
}

.dashboard-nav {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.dashboard-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 12px;
  color: var(--navy);
  font-size: 0.9rem;
}

.dashboard-nav a.active {
  background: linear-gradient(135deg, #1a3ec7 0%, #3867de 100%);
  color: #fff;
  box-shadow: 0 12px 20px rgba(42, 81, 206, 0.26);
}

.logout-form {
  margin: 0;
}

.logout-form button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #b72d25;
  font: inherit;
  font-size: 0.9rem;
  text-align: left;
  cursor: pointer;
}

.logout-form button:hover {
  background: rgba(230, 61, 47, 0.08);
}

.dashboard-main {
  padding: 20px 18px 26px;
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.dashboard-header h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.8rem, 2vw, 2.6rem);
  letter-spacing: -0.05em;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ghost-btn {
  width: 38px;
  height: 38px;
  border: none;
  background: rgba(15, 45, 135, 0.06);
  color: var(--navy);
  cursor: pointer;
}

.view-site-btn {
  height: 38px;
  padding: 0 16px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 120px;
  padding: 16px 14px;
  border-radius: 18px;
  border: 1px solid rgba(117, 137, 198, 0.08);
}

.stat-card strong {
  display: block;
  color: var(--navy);
  font-size: 1.8rem;
}

.stat-card small {
  color: var(--muted);
}

.stat-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255,255,255,0.44);
  color: var(--navy);
}

.stat-blue { background: linear-gradient(180deg, #ebf4ff 0%, #dfeeff 100%); }
.stat-sky { background: linear-gradient(180deg, #edf8ff 0%, #e8f5ff 100%); }
.stat-lime { background: linear-gradient(180deg, #eefcf5 0%, #def8eb 100%); }
.stat-beige { background: linear-gradient(180deg, #fffaf2 0%, #f9efe0 100%); }

.analytics-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 14px;
  margin-top: 18px;
}

.panel {
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(133, 150, 208, 0.1);
  border-radius: 22px;
  padding: 16px 14px 14px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.panel-head h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.02rem;
}

.panel-head button,
.mini-filter {
  height: 30px;
  border: none;
  padding: 0 12px;
  background: rgba(15, 45, 135, 0.06);
  color: var(--navy);
  cursor: pointer;
}

.chart-wrap {
  position: relative;
  height: 170px;
}

.chart-wrap svg {
  width: 100%;
  height: 130px;
}

.chart-labels {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  font-size: 0.68rem;
  color: var(--muted);
}

.activity-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
  color: var(--navy);
  font-size: 0.8rem;
}

.activity-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.blue { background: #5e8dff; }
.dot.green { background: #46bc74; }
.dot.orange { background: #f7b54d; }
.dot.purple { background: #7b61f5; }

.table-panel {
  margin-top: 18px;
}

.table-head {
  margin-bottom: 14px;
}

.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.table-toolbar input {
  flex: 1;
  height: 38px;
  border: 1px solid rgba(121, 136, 196, 0.18);
  border-radius: 12px;
  background: #f7fafe;
  color: var(--muted);
  padding: 0 12px;
}

.table-panel table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.76rem;
}

.table-panel th,
.table-panel td {
  padding: 10px 8px;
  text-align: left;
}

.table-panel thead th {
  color: var(--muted);
  background: #f1f6ff;
  font-weight: 700;
}

.table-panel tbody td {
  border-top: 1px solid rgba(128, 146, 205, 0.12);
  color: var(--navy);
}

.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  height: 28px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
}

.status.active {
  background: rgba(57, 184, 107, 0.12);
  color: var(--green);
}

.status.draft {
  background: rgba(242, 181, 82, 0.1);
  color: #d9971d;
}

.row-actions {
  display: flex;
  gap: 10px;
  color: var(--muted);
  font-size: 0.88rem;
}

.personnel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.personnel-card {
  background: linear-gradient(180deg, #f7faff 0%, #edf4ff 100%);
  border: 1px solid rgba(146, 164, 214, 0.12);
  border-radius: 22px;
  padding: 22px 18px;
  text-align: center;
}

.profile-photo {
  display: block;
  width: 144px;
  height: 144px;
  margin: 0 auto 14px;
  border-radius: 50%;
  object-fit: cover;
  background: #e8f0ff;
  border: 4px solid #fff;
  box-shadow: 0 8px 20px rgba(17, 31, 78, 0.12);
}

.personnel-card h4 {
  margin: 0;
  color: var(--navy);
}

.personnel-card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.personnel-card .profile-role {
  color: var(--primary-dark);
  font-weight: 700;
}

.personnel-card .profile-summary {
  font-size: 0.85rem;
  line-height: 1.6;
}

.assessor-section {
  border-top: 1px solid var(--line);
}

.empty-content {
  margin: 0;
  color: var(--muted);
}

.admin-profile-thumb {
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: #e8f0ff;
}

.table-scroll {
  overflow-x: auto;
}

.contact-box {
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) minmax(320px, 1.15fr);
  align-items: start;
}

.contact-copy .contact-details {
  margin-top: 24px;
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid rgba(98, 119, 187, 0.12);
  border-radius: 18px;
  background: rgba(255,255,255,0.82);
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--navy);
  font-size: 0.86rem;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(121, 136, 196, 0.2);
  border-radius: 10px;
  background: #fff;
  padding: 11px 12px;
  color: var(--text);
  font: inherit;
  font-weight: 400;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(45, 106, 248, 0.25);
  border-color: var(--blue);
}

.contact-form textarea {
  resize: vertical;
}

.contact-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.contact-form .primary-btn {
  justify-self: start;
  border: 0;
  cursor: pointer;
}

.field-error {
  color: #b72d25;
  font-size: 0.8rem;
  font-weight: 600;
}

.form-error {
  background: rgba(230, 61, 47, 0.1);
  color: #b72d25;
}

.footer-copyright {
  width: 100%;
  padding-top: 18px;
  border-top: 1px solid rgba(128, 146, 205, 0.16);
  color: var(--muted);
  text-align: center;
  font-size: 0.78rem;
}

.footer-copyright a {
  color: var(--primary-dark);
  font-weight: 700;
}

.contact-inbox {
  display: grid;
  gap: 14px;
}

.inbox-message {
  padding: 18px;
  border: 1px solid rgba(128, 146, 205, 0.14);
  border-radius: 16px;
  background: #fbfcff;
}

.inbox-message-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.inbox-message h4 {
  margin: 0;
  color: var(--navy);
}

.inbox-message-head p {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.inbox-message time {
  color: var(--muted);
  font-size: 0.78rem;
  white-space: nowrap;
}

.inbox-message-body {
  margin: 16px 0;
  color: var(--text);
  line-height: 1.65;
  white-space: pre-wrap;
}

.admin-login-shell {
  display: grid;
  min-height: calc(100vh - 48px);
  place-items: center;
}

.admin-login-card {
  width: min(100%, 460px);
  padding: 32px;
  background: #fff;
}

.admin-login-logo {
  display: block;
  width: 120px;
  height: 84px;
  margin: 0 auto 18px;
  object-fit: contain;
}

.admin-login-card h1 {
  margin: 0;
  color: var(--navy);
  text-align: center;
}

.admin-login-intro {
  margin: 10px 0 22px;
  color: var(--muted);
  text-align: center;
  line-height: 1.6;
}

.login-form-grid {
  margin-bottom: 18px;
}

.admin-login-card .primary-btn {
  width: 100%;
  border: 0;
  cursor: pointer;
}

.login-back-link {
  display: block;
  margin-top: 20px;
  color: var(--primary-dark);
  text-align: center;
  font-weight: 700;
}

.alert {
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 600;
}

.alert.success {
  background: rgba(54, 176, 109, 0.12);
  color: #127b44;
  border: 1px solid rgba(54, 176, 109, 0.18);
}

.cms-form {
  display: block;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--navy);
  font-weight: 600;
}

.form-grid label.wide {
  grid-column: 1 / -1;
}

.form-grid input,
.form-grid textarea,
.form-grid select {
  width: 100%;
  border: 1px solid rgba(121, 136, 196, 0.2);
  border-radius: 12px;
  background: #f8fbff;
  padding: 11px 12px;
  color: var(--text);
  resize: vertical;
}

.form-actions {
  margin-top: 18px;
}

.mini-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(15, 45, 135, 0.08);
  color: var(--navy);
  font-weight: 700;
}

.danger-btn {
  border: none;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(230, 61, 47, 0.12);
  color: #b72d25;
  font-weight: 700;
  cursor: pointer;
}

.logo-upload-field {
  grid-column: 1 / -1;
}

.logo-preview-box {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  border-radius: 16px;
  background: linear-gradient(180deg, #f1f7ff 0%, #e9f0ff 100%);
  border: 1px solid rgba(119, 136, 200, 0.12);
  padding: 16px;
}

.logo-preview {
  max-width: 240px;
  max-height: 120px;
  object-fit: contain;
}

.site-image-preview {
  display: block;
  width: min(100%, 520px);
  max-height: 220px;
  border-radius: 12px;
  object-fit: cover;
}

.compact-row {
  display: flex;
  justify-content: flex-start;
}

@media (max-width: 1180px) {
  .about-section,
  .feature-row,
  .analytics-grid,
  .dashboard-shell {
    grid-template-columns: 1fr;
  }

  .profile-page {
    grid-template-columns: 1fr;
  }

  .dashboard-shell {
    display: block;
  }

  .dashboard-sidebar {
    border-right: none;
    border-bottom: 1px solid rgba(100, 118, 180, 0.12);
  }

  .scheme-grid,
  .news-grid,
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .contact-box,
  .site-footer,
  .dashboard-header {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }

  .contact-box {
    grid-template-columns: 1fr;
  }

  .contact-form-row {
    grid-template-columns: 1fr;
  }

  .topbar {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
  }

  .brand-logo {
    width: 54px;
    height: 38px;
  }

  .main-nav {
    width: auto;
    flex-wrap: nowrap;
    gap: 10px;
    font-size: 0.62rem;
  }

  .main-nav a {
    font-size: 0.62rem;
  }

  .header-actions {
    gap: 6px;
  }

  .icon-btn {
    width: 30px;
    height: 30px;
  }

  .login-btn {
    height: 32px;
    padding: 0 12px;
    font-size: 0.72rem;
  }

  .scheme-grid,
  .news-grid,
  .feature-row,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .table-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 560px) {
  .site-shell {
    width: min(100vw - 12px, 1200px);
  }

  .topbar {
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 16px 18px;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .brand-block {
    min-width: 0;
  }

  .hero-mockup .hero-intro {
    align-items: flex-start;
    gap: 12px;
  }

  .hero-mockup .hero-logo {
    flex-basis: 76px;
    width: 76px;
    height: 72px;
  }

  .hero-mockup .hero-text {
    padding-left: 12px;
  }

  .hero-mockup .hero-copy h1 {
    font-size: 1.2rem;
  }

  .hero-mockup .hero-copy p {
    font-size: 0.78rem;
  }

  .hero-mockup .cta-row {
    margin: 18px 0 0;
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .primary-btn,
  .secondary-btn,
  .login-btn {
    width: 100%;
  }

  .section-block {
    padding-left: 18px;
    padding-right: 18px;
  }

  .about-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .profile-photo {
    width: 124px;
    height: 124px;
  }

  .admin-page {
    padding: 12px;
  }
}

@media (max-width: 680px) {
  .hero-mockup {
    min-height: 0;
    grid-template-columns: 1fr;
    padding: 28px 24px;
  }

  .hero-mockup .hero-media {
    padding: 18px 0 0;
  }

  .hero-mockup .hero-image {
    min-height: 240px;
  }

  .hero-mockup .cta-row {
    margin-left: 0;
  }
}
