:root{
  --brand:#8b0000;
  --brand-2:#d85a5a;

  --bg:#f4f6f8;
  --bg-start:#f8fafc;
  --bg-end:#eef2f7;
  --card:#ffffff;

  --text:#1f2937;
  --muted:#6b7280;

  --success:#176d2f;
  --warning:#a66a00;
  --danger:#9b1c1c;

  --border:rgba(0,0,0,.08);

  --radius:18px;

  --shadow:
    0 10px 30px rgba(0,0,0,.08);

  --container-width:1400px;

  --header-height:84px;

  --transition:.15s ease;
}

@media (prefers-color-scheme:dark){
  :root{
    --bg:#0f1115;
    --bg-start:#0f1115;
    --bg-end:#0b1220;
    --card:#171a20;

    --text:#e5e7eb;
    --muted:#9ca3af;

    --border:rgba(255,255,255,.08);

    --shadow:
      0 14px 34px rgba(0,0,0,.45);
  }
}

/* =========================================================
   RESET
========================================================= */

*,
*::before,
*::after{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

html,
body{
  min-height:100%;
}

body{
  margin:0;

  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    Ubuntu,
    "Helvetica Neue",
    Arial,
    sans-serif;

  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;

  background:
    radial-gradient(circle at top left, rgba(216,90,90,.10), transparent 34rem),
    linear-gradient(180deg, var(--bg-start) 0%, var(--bg) 42%, var(--bg-end) 100%);
  color:var(--text);

  line-height:1.5;
}

/* =========================================================
   BASIS
========================================================= */

img{
  display:block;
  max-width:100%;
  height:auto;
}

a{
  color:inherit;
}

button,
input,
select,
textarea{
  font:inherit;
}

button{
  cursor:pointer;
}

.hidden{
  display:none !important;
}

/* =========================================================
   CONTAINER
========================================================= */

.container{
  width:100%;
  max-width:var(--container-width);

  margin:0 auto;

  padding:
    clamp(14px,2vw,24px);
}

/* =========================================================
   HEADER
========================================================= */

header{
  display:grid;
  grid-template-columns:1fr auto;
  align-items:center;

  gap:14px;

  min-height:var(--header-height);

  padding:14px 18px;

  border-radius:20px;

  background:
    linear-gradient(
      135deg,
      var(--brand-2),
      var(--brand)
    );

  color:#fff;

  box-shadow:
    0 16px 40px rgba(0,0,0,.18),
    0 1px 0 rgba(255,255,255,.12) inset;
}

.site-logo{
  display:flex;
  align-items:center;
}

.site-logo a{
  display:inline-flex;
  align-items:center;
  text-decoration:none;
}

.site-logo img{
  width:clamp(150px,22vw,240px);
  max-height:64px;
  height:auto;
  object-fit:contain;
}

/* =========================================================
   NAVIGATIE
========================================================= */

.nav{
  display:none;

  flex-direction:column;

  gap:10px;

  width:100%;

  grid-column:1 / -1;

  padding-top:10px;
}

.nav.open{
  display:flex;
}

.nav-link,
.nav a{
  display:flex;
  align-items:center;
  justify-content:center;

  min-height:46px;

  padding:12px 16px;

  border-radius:12px;

  text-decoration:none;

  font-weight:800;

  color:#fff;

  background:rgba(255,255,255,.08);

  transition:
    background var(--transition),
    transform var(--transition);
}

.nav-link:hover,
.nav a:hover{
  background:rgba(255,255,255,.18);
}

.nav-link:active,
.nav a:active{
  transform:translateY(1px);
}

.nav-toggle{
  appearance:none;

  border:0;

  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;

  padding:10px 14px;

  border-radius:12px;

  background:rgba(255,255,255,.12);

  color:#fff;

  font-weight:800;
}

.nav-toggle svg{
  width:22px;
  height:22px;
}

/* =========================================================
   DESKTOP NAV
========================================================= */

@media (min-width:900px){

  header{
    grid-template-columns:auto 1fr auto;
    gap:20px;
  }

  .nav{
    display:flex !important;

    flex-direction:row;

    justify-content:flex-end;

    align-items:center;

    width:auto;

    grid-column:auto;

    padding-top:0;
  }

  .nav-link,
  .nav a{
    min-height:42px;

    padding:10px 16px;

    background:transparent;
  }

  .nav-link:hover,
  .nav a:hover{
    background:rgba(255,255,255,.14);
  }

  .nav-toggle{
    display:none;
  }
}

/* =========================================================
   MAIN
========================================================= */

main{
  width:100%;
}

.module-page{
  margin-top:18px;
}

/* =========================================================
   SECTIONS
========================================================= */

section{
  padding:
    clamp(24px,4vw,40px);
}

.home-page main section{
  text-align:center;
}

.home-page main section p{
  text-align:center;
}

/* =========================================================
   TITELS
========================================================= */

h1{
  margin:0 0 12px;

  font-size:
    clamp(28px,4vw,42px);

  line-height:1.2;

  font-weight:900;

  color:var(--brand);

  text-align:center;
}

h2{
  margin:0 0 12px;

  font-size:
    clamp(22px,3vw,34px);

  line-height:1.25;

  font-weight:900;

  color:var(--brand);

  text-align:center;
}

h3{
  margin:0 0 10px;

  font-size:
    clamp(18px,2vw,26px);

  font-weight:800;

  color:var(--brand);
}

/* =========================================================
   TEKST
========================================================= */

p{
  margin:0 auto;

  max-width:70ch;

  font-size:
    clamp(15px,2vw,18px);

  line-height:1.7;

  color:var(--text);
}

small{
  color:var(--muted);
}

/* =========================================================
   CORSO LOGO HOMEPAGE
========================================================= */

.corso-logo{
  display:flex !important;
  justify-content:center !important;
  align-items:center !important;

  width:100% !important;
  max-width:100% !important;

  margin:34px auto 10px auto !important;
  text-align:center !important;
}

.corso-logo a{
  display:inline-flex !important;
  justify-content:center !important;
  align-items:center !important;

  width:auto !important;
  max-width:135px !important;

  text-decoration:none !important;
}

.corso-logo img,
#over .corso-logo img,
main .corso-logo img{
  display:block !important;

  width:135px !important;
  max-width:135px !important;
  min-width:0 !important;

  height:auto !important;
  max-height:100px !important;

  margin:0 auto !important;

  object-fit:contain !important;

  transition:transform .2s ease;
}

.corso-logo img:hover{
  transform:scale(1.03);
}

/* =========================================================
   FOOTER
========================================================= */

footer{
  margin-top:20px;

  padding:18px;

  border-radius:var(--radius);

  background:
    linear-gradient(
      90deg,
      var(--brand-2),
      var(--brand)
    ) !important;

  color:#fff;

  text-align:center;

  box-shadow:var(--shadow);
}

footer p{
  color:#fff;
  max-width:none;
}

/* =========================================================
   SKIPLINK
========================================================= */

.skiplink{
  position:absolute;

  left:-9999px;
  top:auto;

  width:1px;
  height:1px;

  overflow:hidden;
}

.skiplink:focus{
  position:fixed;

  left:16px;
  top:16px;

  width:auto;
  height:auto;

  padding:12px 16px;

  border-radius:12px;

  background:#fff;

  color:#111827;

  z-index:99999;
}

/* =========================================================
   GENERIEKE HULPKLASSEN
========================================================= */

header .site-logo,
header .site-logo-auto{
  flex:0 1 310px;
  min-width:190px;
  min-height:76px;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  overflow:visible;
}

header .site-logo a,
header .site-logo-auto a{
  display:flex;
  align-items:center;
  max-width:100%;
}

header .site-logo img,
header .site-logo-auto img{
  display:block;
  width:clamp(210px,22vw,300px);
  height:auto;
  max-width:100%;
  max-height:92px;
  object-fit:contain;
  object-position:left center;
}

.text-center{
  text-align:center !important;
}

.text-right{
  text-align:right !important;
}

.mt-0{margin-top:0 !important;}
.mt-1{margin-top:8px !important;}
.mt-2{margin-top:16px !important;}
.mt-3{margin-top:24px !important;}
.mt-4{margin-top:32px !important;}

.mb-0{margin-bottom:0 !important;}
.mb-1{margin-bottom:8px !important;}
.mb-2{margin-bottom:16px !important;}
.mb-3{margin-bottom:24px !important;}
.mb-4{margin-bottom:32px !important;}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width:768px){

  header .site-logo,
  header .site-logo-auto{
    flex-basis:230px;
    min-width:150px;
    min-height:58px;
  }

  header .site-logo img,
  header .site-logo-auto img{
    width:clamp(170px,58vw,230px);
    max-height:72px;
  }

  .container{
    padding:10px;
  }

  header{
    padding:14px;
    border-radius:18px;
  }

  section{
    padding:22px 16px;
  }

  h1{
    font-size:30px;
  }

  h2{
    font-size:24px;
  }

  .corso-logo{
    margin:28px auto 8px auto !important;
  }

  .corso-logo a{
    max-width:108px !important;
  }

  .corso-logo img,
  #over .corso-logo img,
  main .corso-logo img{
    width:108px !important;
    max-width:108px !important;
    max-height:80px !important;
  }
}
