:root {
  --ink: #1d2b2a;
  --muted: #5d6f6b;
  --line: #dce7e1;
  --paper: #ffffff;
  --soft: #f4f8f5;
  --green: #2f7d32;
  --green-dark: #195a2b;
  --gold: #c89b3c;
  --blue: #234a6b;
  --shadow: 0 18px 45px rgba(29, 43, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--green-dark);
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 20;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
}

.skip-link:focus {
  top: 16px;
}

.topbar {
  background: var(--green-dark);
  color: #fff;
  font-size: 0.92rem;
}

.topbar .container,
.site-header .container,
.nav-list,
.footer-grid,
.hero-actions,
.meta-row {
  display: flex;
  align-items: center;
}

.topbar .container {
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
}

.topbar a {
  color: #fff;
  text-decoration: none;
}

.email-text {
  white-space: nowrap;
}

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

.site-header .container {
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--green);
  font-weight: 900;
}

.brand small {
  display: block;
  color: var(--muted);
  font-weight: 700;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 8px 10px;
  font-weight: 700;
}

.nav-list {
  list-style: none;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.nav-list a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}

.nav-list a[aria-current="page"],
.nav-list a:hover {
  background: var(--soft);
  color: var(--green-dark);
}

.button,
button.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border: 1px solid var(--green);
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.secondary {
  background: #fff;
  color: var(--green-dark);
}

.button.dark {
  background: var(--ink);
  border-color: var(--ink);
}

.hero {
  position: relative;
  min-height: 620px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(16, 42, 34, 0.9), rgba(16, 42, 34, 0.56), rgba(16, 42, 34, 0.18)),
    url("https://web.archive.org/web/20250711060106im_/http://dcasbusinessschool.com/wp-content/uploads/2023/08/students-1807505_1920-1-1920x692-1.jpg") center / cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 70px;
  background: linear-gradient(transparent, var(--paper));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  padding: 82px 0 110px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0 0 14px;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 4.8rem);
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

h3 {
  font-size: 1.28rem;
}

.lead {
  color: inherit;
  font-size: 1.18rem;
  max-width: 760px;
}

.hero .lead {
  color: rgba(255, 255, 255, 0.92);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.section {
  padding: 72px 0;
}

.section.soft {
  background: var(--soft);
}

.section-header {
  max-width: 760px;
  margin-bottom: 34px;
}

.grid {
  display: grid;
  gap: 22px;
}

.grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 24px;
  box-shadow: 0 8px 22px rgba(29, 43, 42, 0.06);
}

.card.accent {
  border-top: 5px solid var(--green);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.stat {
  padding: 22px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
}

.stat strong {
  display: block;
  color: var(--green-dark);
  font-size: 2rem;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 42px;
  align-items: center;
}

.image-panel {
  min-height: 360px;
  border-radius: 8px;
  background:
    linear-gradient(150deg, rgba(35, 74, 107, 0.16), rgba(47, 125, 50, 0.18)),
    url("https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&w=1200&q=75") center / cover;
  box-shadow: var(--shadow);
}

.course-list {
  display: grid;
  gap: 18px;
}

.course-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: #fff;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef5ef;
  color: var(--green-dark);
  font-weight: 800;
  font-size: 0.84rem;
}

.meta-row {
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 0;
}

.resource {
  display: grid;
  gap: 8px;
}

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

.form-field.full {
  grid-column: 1 / -1;
}

label {
  display: block;
  margin-bottom: 7px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #cbd8d2;
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

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

form .button[type="submit"] {
  margin-top: 16px;
}

.login-card label {
  margin-top: 14px;
}

.login-card .brand + h1 {
  margin-top: 12px;
}

.form-message {
  display: none;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #e9f6ec;
  color: var(--green-dark);
  font-weight: 800;
}

.form-message.visible {
  display: block;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 0;
  background:
    linear-gradient(rgba(244, 248, 245, 0.9), rgba(244, 248, 245, 0.9)),
    url("https://images.unsplash.com/photo-1523240795612-9a054b0db644?auto=format&fit=crop&w=1200&q=75") center / cover;
}

.login-card {
  width: min(440px, calc(100% - 32px));
  border-radius: 8px;
  background: #fff;
  padding: 32px;
  box-shadow: var(--shadow);
}

.site-footer {
  background: #102a22;
  color: rgba(255, 255, 255, 0.84);
  padding: 52px 0 22px;
}

.site-footer a {
  color: #fff;
}

.footer-grid {
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.footer-col {
  flex: 1 1 220px;
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.92rem;
}

.archive-page {
  min-height: 100vh;
  background: var(--soft);
}

.archive-layout {
  display: grid;
  grid-template-columns: 150px 1fr;
  min-height: calc(100vh - 76px);
}

.archive-sidebar {
  position: sticky;
  top: 76px;
  height: calc(100vh - 76px);
  overflow-y: auto;
  border-right: 1px solid var(--line);
  background: #fff;
  padding: 14px;
}

.archive-sidebar h1 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.archive-links {
  display: grid;
  gap: 6px;
}

.archive-links a {
  display: block;
  padding: 8px 9px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.archive-links a:hover,
.archive-links a.active {
  background: var(--soft);
  color: var(--green-dark);
}

.archive-preview {
  padding: 24px;
}

.archive-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.archive-preview img {
  display: block;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

@media (max-width: 860px) {
  .topbar .container {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 75px;
    display: none;
    border-bottom: 1px solid var(--line);
    background: #fff;
  }

  .site-nav.open {
    display: block;
  }

  .nav-list {
    display: block;
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 12px 0;
  }

  .nav-list a {
    width: 100%;
  }

  .hero {
    min-height: 560px;
  }

  .split,
  .grid.two,
  .grid.three,
  .stat-row,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .course-item {
    grid-template-columns: 1fr;
  }

  .archive-layout {
    grid-template-columns: 1fr;
  }

  .archive-sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .archive-links {
    grid-template-columns: repeat(3, 1fr);
  }

  .archive-preview {
    padding: 16px;
  }
}
