:root {
  --navy: #123b6a;
  --navy-dark: #0c2b4e;
  --blue-soft: #edf4fa;
  --blue-line: #d5e2ed;
  --text: #182635;
  --muted: #607080;
  --white: #ffffff;
  --surface: #f7f9fb;
  --success: #176b4d;
  --radius: 18px;
  --shadow: 0 12px 30px rgba(18,59,106,.08);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.container {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid #e7edf2;
  backdrop-filter: blur(12px);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-right: auto;
}

.brand-main {
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--navy);
  font-size: 1.2rem;
}

.brand-sub {
  color: var(--muted);
  font-weight: 650;
}

.nav-links {
  display: flex;
  gap: 22px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  font-weight: 650;
  font-size: .95rem;
}

.nav-links a:hover {
  color: var(--navy);
}

.hero {
  padding: 86px 0 72px;
  background:
    radial-gradient(
      circle at 90% 15%,
      #dfeef8 0,
      transparent 32%
    ),
    linear-gradient(
      135deg,
      #f8fbfd,
      #ffffff 55%
    );
}

.eyebrow {
  display: inline-block;
  color: var(--navy);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hero h1,
.page-hero h1 {
  max-width: 830px;
  margin: 0 0 20px;
  line-height: 1.08;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  letter-spacing: -.04em;
}

.hero p,
.page-hero p {
  max-width: 750px;
  font-size: 1.15rem;
  color: var(--muted);
  margin: 0 0 30px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 750;
  border: 1px solid transparent;
}

.button-primary {
  background: var(--navy);
  color: var(--white);
}

.button-primary:hover {
  background: var(--navy-dark);
}

.button-secondary {
  background: var(--white);
  color: var(--navy);
  border-color: var(--blue-line);
}

.button-muted {
  background: #eef1f4;
  color: #687784;
  cursor: default;
}

.section {
  padding: 72px 0;
}

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

.section-title {
  margin-bottom: 34px;
}

.section-title h2 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -.025em;
}

.section-title p {
  color: var(--muted);
  margin: 0;
  max-width: 730px;
}

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

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

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

.card {
  border: 1px solid #e2e9ef;
  border-radius: var(--radius);
  padding: 25px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0 0 10px;
  line-height: 1.25;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.card-link {
  text-decoration: none;
  display: block;
  height: 100%;
}

.card-link:hover {
  border-color: #b8cedf;
  transform: translateY(-2px);
}

.card-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 15px 0;
}

.badge {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--navy);
  font-size: .78rem;
  font-weight: 750;
}

.card-footer {
  margin-top: 18px;
  color: var(--navy);
  font-weight: 750;
}

.page-hero {
  padding: 64px 0 48px;
  background: var(--surface);
  border-bottom: 1px solid #e4eaef;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.7rem);
}

.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.filter {
  text-decoration: none;
  padding: 8px 13px;
  border: 1px solid var(--blue-line);
  border-radius: 999px;
  font-weight: 650;
  font-size: .9rem;
}

.filter.active,
.filter:hover {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}

.course-layout {
  display: grid;
  grid-template-columns: minmax(0,2fr) minmax(280px,.8fr);
  gap: 42px;
  align-items: start;
}

.course-sidebar {
  position: sticky;
  top: 100px;
}

.info-box {
  border: 1px solid var(--blue-line);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--blue-soft);
}

.info-row {
  padding: 12px 0;
  border-bottom: 1px solid #ccdce8;
}

.info-row:last-child {
  border-bottom: 0;
}

.info-label {
  display: block;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 800;
  color: var(--navy);
}

.content-block {
  margin-bottom: 38px;
}

.content-block h2 {
  margin-bottom: 14px;
}

.content-block ul {
  padding-left: 22px;
}

.notice {
  border-left: 4px solid var(--navy);
  background: var(--blue-soft);
  padding: 16px 18px;
  border-radius: 0 12px 12px 0;
}

.empty {
  padding: 30px;
  border: 1px dashed #becbd5;
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.site-footer {
  background: #0d2845;
  color: white;
  padding: 52px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
}

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

.footer-bottom {
  margin-top: 34px;
  border-top: 1px solid rgba(255,255,255,.15);
  padding-top: 20px;
  color: #b9c8d4;
  font-size: .9rem;
}

@media (max-width: 900px) {
  .grid-3,
  .grid-2,
  .course-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .course-sidebar {
    position: static;
  }

  .nav {
    flex-wrap: wrap;
    padding: 16px 0;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }
}

@media (max-width: 600px) {
  .container {
    width: min(calc(100% - 28px), var(--max));
  }

  .hero {
    padding: 58px 0;
  }

  .section {
    padding: 52px 0;
  }

  .card {
    padding: 20px;
  }
}

.form-wrap {
  max-width: 860px;
  margin: 0 auto;
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

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

.field label {
  font-weight: 750;
}

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

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #cbd8e2;
  border-radius: 11px;
  padding: 11px 13px;
  font: inherit;
  color: var(--text);
  background: var(--white);
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 3px solid rgba(18,59,106,.12);
  border-color: var(--navy);
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.checkbox-row input {
  margin-top: 5px;
}

.error-box {
  border-left: 4px solid #a93226;
  background: #fff3f1;
  padding: 15px 18px;
  border-radius: 0 12px 12px 0;
  margin-bottom: 25px;
}

.error-box strong {
  display: block;
  margin-bottom: 6px;
}

.error-box ul {
  margin: 0;
  padding-left: 20px;
}

.request-summary {
  border: 1px solid var(--blue-line);
  background: var(--blue-soft);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 28px;
}

.success-box {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  border: 1px solid #c8ded5;
  border-radius: var(--radius);
  padding: 38px;
  background: #f2faf6;
}

.reference {
  display: inline-block;
  margin: 14px 0;
  padding: 8px 12px;
  background: white;
  border: 1px solid #c8ded5;
  border-radius: 9px;
  font-weight: 800;
  letter-spacing: .04em;
}

.hp-field {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

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

  .field-full {
    grid-column: auto;
  }
}

/* QANIORA COURSE FILTER SELECT V2 */

.course-filter-bar {
  width: 100%;
  max-width: 560px;
  margin: 0 0 28px;
}

.course-filter-label {
  display: block;
  margin-bottom: 8px;
  color: #10243e;
  font-size: 0.95rem;
  font-weight: 700;
}

.course-filter-select {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 0 42px 0 14px;
  border: 1px solid #cbd8e6;
  border-radius: 12px;
  background-color: #fff;
  color: #10243e;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.course-filter-select:hover {
  border-color: #91acc6;
}

.course-filter-select:focus {
  outline: 2px solid #174f86;
  outline-offset: 2px;
}

.course-filter-submit {
  margin-top: 10px;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  background: #174f86;
  color: #fff;
  font: inherit;
  font-weight: 700;
}

@media (max-width: 640px) {
  .course-filter-bar {
    max-width: none;
    margin-bottom: 22px;
  }

  .course-filter-select {
    min-height: 52px;
  }
}

/* QANIORA COURSE FILTER FUNCTION V3 */

.course-filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 10px;
  align-items: end;
}

.course-filter-label {
  grid-column: 1 / -1;
}

.course-filter-select {
  grid-column: 1;
  margin: 0;
}

.course-filter-submit {
  grid-column: 2;
  margin: 0;
  min-height: 50px;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .course-filter-bar {
    grid-template-columns: 1fr;
  }

  .course-filter-label,
  .course-filter-select,
  .course-filter-submit {
    grid-column: 1;
  }

  .course-filter-submit {
    width: 100%;
  }
}

/* QANIORA COURSE FILTER NO BUTTON V4 */

.course-filter-bar {
  display: block;
}

.course-filter-label {
  display: block;
}

.course-filter-select {
  width: 100%;
  margin: 0;
}
