:root {
  --bg: #f4f8fb;
  --panel: #ffffff;
  --panel-alt: #eaf7ff;
  --line: #d5e2eb;
  --text: #12364a;
  --muted: #5d7483;
  --primary: #00affb;
  --secondary: #71d335;
  --danger: #b42318;
  --warning: #b54708;
  --success: #027a48;
  --shadow: 0 18px 45px rgba(18, 54, 74, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a {
  color: var(--primary);
}

img {
  max-width: 100%;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .container,
.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
}

.hero {
  padding: 4rem 0 2.5rem;
}

.hero-grid,
.two-col {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 1.5rem;
}

.card,
.highlight,
.notice {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.card,
.notice {
  padding: 1.25rem;
}

.highlight {
  padding: 1.5rem;
  background: linear-gradient(135deg, #fff, var(--panel-alt));
}

h1, h2, h3 {
  margin: 0 0 0.75rem;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

h2 {
  font-size: clamp(1.45rem, 3vw, 2.1rem);
}

p, li {
  color: var(--muted);
}

section {
  padding: 1rem 0 2rem;
}

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

.step {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfdff;
}

.step strong,
.stat strong {
  display: block;
  color: var(--text);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.button,
button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.15rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  font-weight: 700;
  cursor: pointer;
}

button.secondary,
.button.secondary {
  background: #e7f1f7;
  color: var(--text);
}

button.danger {
  background: var(--danger);
}

button.inline-small {
  padding: 0.6rem 0.85rem;
  font-size: 0.92rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  background: #eef6fb;
  color: var(--text);
}

.badge.success { background: #e9fff4; color: var(--success); }
.badge.warning { background: #fff4e5; color: var(--warning); }
.badge.danger { background: #ffe7e7; color: var(--danger); }

.list-clean {
  list-style: none;
  margin: 0;
  padding: 0;
}

.list-clean li + li {
  margin-top: 0.7rem;
}

form {
  display: grid;
  gap: 0.8rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--text);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  font: inherit;
  background: white;
  color: var(--text);
}

textarea {
  min-height: 90px;
  resize: vertical;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 500;
}

.checkbox-row input {
  width: auto;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 1.25rem 0;
}

.portal-shell {
  display: grid;
  grid-template-columns: 0.95fr 1.3fr;
  gap: 1rem;
  align-items: start;
}

.portal-panel {
  position: sticky;
  top: 5.5rem;
}

.kv {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}

.stat {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.9rem;
  background: #fcfeff;
}

.media-item,
.review-item,
.student-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.95rem;
  background: white;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.small {
  font-size: 0.92rem;
}

.muted {
  color: var(--muted);
}

.hidden {
  display: none !important;
}

.notice {
  margin-top: 0.8rem;
}

.notice.error {
  border-color: #ffd0d5;
  background: #fff5f6;
}

.notice.success {
  border-color: #c9f2db;
  background: #f2fff7;
}

.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  background: white;
}

@media (max-width: 900px) {
  .hero-grid,
  .two-col,
  .portal-shell {
    grid-template-columns: 1fr;
  }

  .portal-panel {
    position: static;
  }
}
