:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-muted: #f2f6fa;
  --text: #102a43;
  --text-soft: #4f6478;
  --primary: #0b7285;
  --primary-strong: #095c6b;
  --line: #dce6ef;
  --shadow: 0 18px 44px rgba(16, 42, 67, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Public Sans", sans-serif;
  background: radial-gradient(circle at 10% 15%, #e8f7ff 0, #f6f8fb 35%, #f9fafc 100%);
  color: var(--text);
  min-height: 100vh;
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.35;
  z-index: -1;
  animation: drift 11s ease-in-out infinite alternate;
}

.orb-1 {
  width: 240px;
  height: 240px;
  background: #48cae4;
  top: -70px;
  right: -40px;
}

.orb-2 {
  width: 280px;
  height: 280px;
  background: #c7f9cc;
  bottom: -90px;
  left: -70px;
}

@keyframes drift {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(18px, -14px);
  }
}

.hero {
  max-width: 1160px;
  margin: 1.4rem auto 0;
  padding: 1rem;
}

.hero-content {
  background: linear-gradient(130deg, #0f4c5c, #0b7285 65%, #1aa6b7);
  color: #fff;
  border-radius: 20px;
  padding: 2.2rem 1.6rem;
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.75rem;
}

h1,
h2 {
  font-family: "Space Grotesk", sans-serif;
  margin: 0.4rem 0 0.7rem;
}

h1 {
  font-size: clamp(1.7rem, 2.6vw, 2.5rem);
}

.subtitle {
  margin: 0 0 1.1rem;
  max-width: 760px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.container {
  max-width: 1160px;
  margin: 1rem auto 3rem;
  padding: 0 1rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
}

.stat-card h2 {
  margin: 0;
  font-size: 1.6rem;
}

.stat-card p {
  margin: 0.25rem 0 0;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-bottom: 1rem;
  box-shadow: 0 10px 30px rgba(16, 42, 67, 0.06);
}

.panel-head {
  padding: 1rem 1rem 0.45rem;
}

.controls {
  padding: 0 1rem 1rem;
  display: grid;
  grid-template-columns: minmax(140px, 180px) minmax(240px, 1fr) auto auto;
  gap: 0.65rem;
  align-items: end;
}

label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.84rem;
  color: var(--text-soft);
}

input,
select {
  width: 100%;
  border: 1px solid #c7d8e8;
  border-radius: 10px;
  padding: 0.62rem 0.7rem;
  font: inherit;
  color: var(--text);
  background: #fff;
}

.btn {
  border: 0;
  border-radius: 10px;
  padding: 0.62rem 0.86rem;
  font: 600 0.9rem/1 "Public Sans", sans-serif;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.16s ease, filter 0.16s ease;
}

.btn:hover {
  transform: translateY(-1px);
  filter: saturate(1.05);
}

.btn-primary {
  background: #fff;
  color: var(--primary-strong);
}

.btn-ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.05);
}

.btn-neutral {
  background: var(--surface-muted);
  color: var(--text);
  border: 1px solid #c7d8e8;
}

.table-wrap {
  overflow: auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}

th,
td {
  padding: 0.7rem;
  border-bottom: 1px solid #e8eef4;
  text-align: left;
  vertical-align: top;
  font-size: 0.84rem;
}

th {
  font-size: 0.76rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #496278;
  position: sticky;
  top: 0;
  background: #f9fcff;
}

td small {
  color: var(--text-soft);
}

a {
  color: #0a6a8a;
}

.pagination {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  align-items: center;
  padding: 0.8rem 1rem 1rem;
  flex-wrap: wrap;
}

#paginationInfo {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.88rem;
}

.page-actions {
  display: flex;
  gap: 0.5rem;
}

.chapter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(198px, 1fr));
  gap: 0.7rem;
  padding: 0 1rem 1rem;
}

.chapter-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.72rem;
  background: #fbfdff;
}

.chapter-card h3 {
  margin: 0;
  font: 700 1rem/1.2 "Space Grotesk", sans-serif;
}

.chapter-card p {
  margin: 0.35rem 0 0.72rem;
  color: var(--text-soft);
  font-size: 0.83rem;
}

.contact-card {
  background: linear-gradient(145deg, #083d4c, #0b7285);
  color: #fff;
  border-radius: 16px;
  padding: 1.4rem;
  box-shadow: var(--shadow);
}

.contact-card p {
  margin: 0 0 0.95rem;
  max-width: 760px;
}

.footer {
  max-width: 1160px;
  margin: 0 auto 2.2rem;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  flex-wrap: wrap;
  color: var(--text-soft);
  font-size: 0.87rem;
}

.footer p {
  margin: 0;
}

@media (max-width: 900px) {
  .controls {
    grid-template-columns: 1fr;
  }
}
