@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800&family=Roboto:wght@400;500;700&display=swap');

/* VCD Brand Colors (from official Brand Guide) */
:root {
  --vcd-blue:    #3D5A80;   /* PMS 7700 - trust, loyalty */
  --teal:        #72C3C9;   /* PMS 631  - warmth, care */
  --orange:      #F2A744;   /* PMS 1365 - friendly, active */
  --light-cyan:  #D3E7F1;   /* PMS 656  - light backgrounds */
  --navy:        #2C3E50;   /* dark nav/footer */
  --ink:         #1D2733;   /* body text */
  --muted:       #657587;   /* secondary text */
  --line:        #DCE5EC;   /* borders */
  --white:       #fff;
  --cream:       #F5F9FC;   /* page background */
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
}

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
}

/* ── Top bar ── */
.topbar {
  background: var(--vcd-blue);
  color: white;
  padding: 10px 24px;
  font-size: 13px;
  font-family: 'Roboto', sans-serif;
}

/* ── Header / Nav ── */
.header {
  background: white;
  border-bottom: 3px solid var(--teal);
  position: sticky;
  top: 0;
  z-index: 5;
}

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 22px; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  color: var(--vcd-blue);
  font-size: 18px;
  text-decoration: none;
}

.mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--vcd-blue), var(--teal));
  display: grid;
  place-items: center;
  color: white;
  font-weight: 900;
  font-size: 13px;
  flex-shrink: 0;
}

.links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
}

.links a {
  color: var(--ink);
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: border-color .2s;
}

.links a:hover { border-bottom-color: var(--teal); text-decoration: none; }

/* ── Hero ── */
.hero {
  padding: 68px 0;
  background: linear-gradient(135deg, var(--vcd-blue) 0%, #2474A6 60%, var(--teal) 100%);
  color: white;
}

.hero h1 {
  font-size: 44px;
  line-height: 1.1;
  margin: 0 0 18px;
  max-width: 860px;
  font-family: 'Montserrat', sans-serif;
}

.hero p { font-size: 18px; max-width: 800px; margin: 0 0 26px; opacity: .93; }

.btnrow { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  background: var(--orange);
  color: #1b2733 !important;
  padding: 12px 20px;
  border-radius: 9px;
  font-weight: 800;
  font-family: 'Montserrat', sans-serif;
  border: 0;
  cursor: pointer;
  font-size: 14px;
  text-decoration: none;
}

.btn.secondary { background: white; color: var(--vcd-blue) !important; }
.btn.ghost {
  background: transparent;
  border: 2px solid var(--vcd-blue);
  color: var(--vcd-blue) !important;
}
.btn:hover { opacity: .88; text-decoration: none; }

/* ── Sections ── */
.section { padding: 48px 0; }
.section h2 {
  font-size: 28px;
  color: var(--vcd-blue);
  margin: 0 0 10px;
  font-family: 'Montserrat', sans-serif;
}

.lead { color: var(--muted); font-size: 17px; max-width: 860px; }

/* ── Cards & Grid ── */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }

.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 4px 18px rgba(61,90,128,.07);
}

.card h3 {
  margin: 0 0 8px;
  color: var(--vcd-blue);
  font-size: 19px;
  font-family: 'Montserrat', sans-serif;
}

.card p { color: var(--muted); margin: 0 0 16px; font-size: 15px; }

.tag {
  display: inline-block;
  background: #E4F4F5;
  color: #2a7a7e;
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 10px;
  font-family: 'Montserrat', sans-serif;
}

/* ── Module pages ── */
.module-hero {
  padding: 36px 0;
  background: white;
  border-bottom: 1px solid var(--line);
}

.crumb { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.crumb a { color: var(--teal); }

.module-hero h1 {
  font-size: 36px;
  color: var(--vcd-blue);
  margin: 0 0 8px;
  font-family: 'Montserrat', sans-serif;
}

.content { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: start; }

.side {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  position: sticky;
  top: 90px;
}

.side strong {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 8px;
}

.side a {
  display: block;
  padding: 9px 0;
  border-bottom: 1px solid #eef3f6;
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

.side a:hover { color: var(--teal); text-decoration: none; }

.lesson {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
}

.lesson h2 { color: var(--vcd-blue); margin-top: 0; font-family: 'Montserrat', sans-serif; }

.callout {
  border-left: 5px solid var(--teal);
  background: #EAF7F7;
  padding: 16px 18px;
  border-radius: 8px;
  margin: 18px 0;
}

/* ── Tables ── */
.table { width: 100%; border-collapse: collapse; background: white; }
.table th, .table td {
  border-bottom: 1px solid var(--line);
  padding: 12px;
  text-align: left;
  vertical-align: top;
}
.table th { color: var(--vcd-blue); background: var(--light-cyan); font-family: 'Montserrat', sans-serif; }

/* ── Footer ── */
.footer {
  background: var(--vcd-blue);
  color: white;
  margin-top: 48px;
  padding: 38px 0;
}

.footer strong { font-family: 'Montserrat', sans-serif; font-size: 16px; }
.footer p { opacity: .85; margin: 8px 0 0; font-size: 14px; }
.footer a { color: var(--teal); }

/* ── Forms ── */
.notice {
  background: #fff8e8;
  border: 1px solid #f0d799;
  color: #6e5200;
  padding: 14px 16px;
  border-radius: 12px;
}

form input, form textarea, form select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 6px 0 14px;
  font: inherit;
  font-family: 'Roboto', sans-serif;
}

label {
  font-weight: 700;
  color: var(--vcd-blue);
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .grid, .grid.two, .content { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
  .links { display: none; }
  .side { position: static; }
  .section { padding: 30px 0; }
}
