:root {
  --bg: #f7f8ff;
  --panel: rgba(255, 255, 255, 0.88);
  --panel-light: #f0f5ff;
  --white: #ffffff;
  --text: #172b35;
  --muted: #66757d;
  --green: #12d94d;
  --red: #ef1c2c;
  --red-dark: #9f001f;
  --blue: #6c63ff;
  --line: rgba(108, 99, 255, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 12%, rgba(18, 217, 77, 0.13), transparent 25rem),
    radial-gradient(circle at 90% 10%, rgba(108, 99, 255, 0.14), transparent 28rem),
    linear-gradient(145deg, #fffdf9 0%, var(--bg) 55%, #f4f1ff 100%);
  color: var(--text);
  font-family: "Segoe UI", Arial, sans-serif;
}

a {
  color: inherit;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 40px));
  margin: auto;
  margin-top: 14px;
  padding: 16px 22px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 14px 35px rgba(48, 43, 91, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 23px;
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  border: 3px solid var(--green);
  border-radius: 14px;
  box-shadow: 0 5px 14px rgba(18, 217, 77, 0.2);
  object-fit: cover;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
}

.nav a {
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.nav a:hover,
.nav .active {
  color: var(--green);
  background: rgba(18, 217, 77, 0.1);
}

.page {
  width: min(1180px, calc(100% - 40px));
  margin: auto;
  padding: 60px 0 90px;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 70px;
  min-height: 560px;
}

.eyebrow {
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(46px, 7vw, 82px);
  line-height: 1;
  letter-spacing: -2px;
  background: linear-gradient(120deg, var(--text), #4e43d9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  font-size: 36px;
}

.lead {
  max-width: 560px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.7;
}

.student-hero {
  padding: 35px 0 45px;
}

.student-hero h1 {
  margin-bottom: 12px;
}

.student-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.student-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 210px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: 0 16px 34px rgba(48, 43, 91, 0.08);
  backdrop-filter: blur(14px);
  transition: transform .25s ease, box-shadow .25s ease;
}

.student-card:hover,
.card:hover,
.admin-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 42px rgba(48, 43, 91, 0.14);
}

.student-card h2 {
  margin-bottom: 10px;
  font-size: 27px;
}

.student-card .button {
  align-self: flex-start;
  margin-top: 18px;
}

.progress {
  height: 9px;
  margin-top: 20px;
  overflow: hidden;
  border-radius: 9px;
  background: #e8eceb;
}

.progress span {
  display: block;
  width: 68%;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.button {
  display: inline-block;
  padding: 14px 24px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--red), #ff6a65);
  color: #ffffff;
  box-shadow: 0 9px 18px rgba(239, 28, 44, 0.2);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: 0.2s ease;
}

.button:hover {
  background: linear-gradient(135deg, var(--green), #79f58d);
  color: #001b08;
  transform: translateY(-2px);
}

.button.green {
  background: linear-gradient(135deg, var(--green), #79f58d);
  color: #001b08;
  box-shadow: 0 9px 18px rgba(18, 217, 77, 0.22);
}

.button.green:hover {
  background: var(--red);
  color: var(--text);
}

.logo-display {
  width: min(100%, 430px);
  justify-self: center;
  border: 8px solid rgba(255, 255, 255, 0.75);
  border-radius: 34px;
  box-shadow: 0 22px 55px rgba(48, 43, 91, 0.16), 0 0 45px rgba(18, 217, 77, 0.2);
}

.cards,
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card,
.form-card,
.admin-card {
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: 0 16px 34px rgba(48, 43, 91, 0.08);
  backdrop-filter: blur(14px);
}

.card {
  overflow: hidden;
  padding: 0;
}

.card img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card-content {
  padding: 22px;
}

.muted {
  color: var(--muted);
  line-height: 1.6;
}

.notice {
  margin: 0;
  padding: 14px 18px;
  border-radius: 10px;
  background: #e8f8ed;
  color: #12652b;
}

.notice.error {
  background: #fff0f0;
  color: #9b1520;
}

.form-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  max-width: 900px;
  margin: 20px auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}

.form-intro {
  padding: 40px;
  background: linear-gradient(145deg, #ffe2d5, #d8f8ed);
}

.form-card {
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 22px;
}

.form-group {
  margin-bottom: 18px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(108, 99, 255, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  font: inherit;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--green);
  outline: none;
  box-shadow: 0 0 0 4px rgba(108, 99, 255, 0.12), 0 8px 20px rgba(108, 99, 255, 0.08);
}

.section {
  padding: 40px 0;
}

.section-heading {
  margin-bottom: 28px;
}

.expert,
.message,
.feedback {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: 0 10px 24px rgba(48, 43, 91, 0.06);
}

.expert p,
.message p,
.feedback p {
  margin: 5px 0 0;
}

.status {
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.notice {
  margin: 0;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}

.notice.error {
  color: var(--red-dark);
}

button:disabled {
  cursor: wait;
  opacity: 0.65;
}

@media (max-width: 780px) {
  .site-header,
  .nav {
    align-items: flex-start;
  }

  .site-header {
    flex-direction: column;
    gap: 18px;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero,
  .form-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 40px;
    min-height: auto;
    padding-top: 20px;
  }

  .cards,
  .dashboard-grid,
  .student-grid {
    grid-template-columns: 1fr;
  }

  .form-intro,
  .form-card {
    padding: 28px;
  }

  .expert,
  .message,
  .feedback {
    align-items: flex-start;
    flex-direction: column;
  }
}
