@font-face {
    font-family: "Rubik";
    src: url('fonts/Rubik-VariableFont_wght.woff2') format('woff2');
    font-weight: 100 900;
    font-display: swap;
}

:root {
    --color-bg: oklch(0.9605 0.0046 258.32);
    --color-white: oklch(1.0000 0.0000 89.88);
    --color-text-main: oklch(0.3211 0.0000 89.88);
    --color-text-muted: oklch(0.5103 0.0000 89.88);
    --gradient-primary: linear-gradient(90deg, oklch(0.6410 0.1312 166.11), oklch(0.6998 0.1170 203.48));
    --color-primary: oklch(0.6410 0.1312 166.11);
    --color-primary-hover: oklch(0.5774 0.1175 166.51);
    --color-banner-bg: oklch(0.3780 0.0730 168.94); 
    --color-accent: oklch(0.6998 0.1170 203.48);
    --gap-standard: 1.5rem;
    --radius-standard: 0.75rem;
    --container-width-wide: 75rem;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Rubik', 'Segoe UI', Tahoma, sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text-main);
    line-height: 1.6;
    padding-bottom: 5rem;
}

.navigatiebalk {
    background-color: var(--color-white);
    padding: 1.25rem 1.25rem;
    border-bottom: 3px solid oklch(0.9121 0.1648 154.16 / 91.89%);
    margin-bottom: 0;
}

.inhoud {
    max-width: var(--container-width-wide);
    margin: 0 auto;
}

.menu {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    padding: 0;
}

.menu__home {
    margin-right: auto;
}

.menu__home a strong {
    font-size: 35px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.menu a {
    font-size: larger;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem;
    color: var(--color-text-main);
    text-decoration: none;
    transition: background-color 0.2s;
}

.menu a i {
    width: 20px;
    height: 20px;
}

.menu li:not(.menu__home) > a:hover,
.menu li:not(.menu__home) > a:focus-visible {
    background: var(--gradient-primary);
    color: oklch(1.0000 0.0000 89.88);
}

.hero {
    text-align: center;
    padding: 3rem 1.5rem;
    background-color: oklch(0.9622 0.0191 176.44);
    border-bottom: 1px solid oklch(0.9183 0.0344 182.99);
    margin-bottom: 2.5rem;
}

.hero h1 {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.container, .contact-container, .form-container, .about-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: oklch(1.0000 0.0000 89.88);
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px oklch(0.0000 0.0000 89.88 / 0.05);
    margin-bottom: 2rem;
}

.wide-container {
    max-width: 1200px;
    margin: 0 auto;
}

h1 {
    text-align: center;
    color: oklch(0.3211 0.0000 89.88);
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-top: 1rem;
    font-weight: bold;
    color: oklch(0.3211 0.0000 89.88);
}

input, textarea, select {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid oklch(0.8452 0.0000 89.88);
    border-radius: 4px;
    font-family: inherit;
}

button[type="submit"], .form-btn {
    margin-top: 20px;
    padding: 12px;
    width: 100%;
    background-color: oklch(0.3211 0.0000 89.88);
    color: oklch(1.0000 0.0000 89.88);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
}

button:hover {
    background-color: oklch(0.4495 0.0000 89.88);
}

#card-container-home {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 1.5rem 1rem;
    max-width: var(--container-width-wide);
    margin: 0 auto;
}

#card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1.5rem 1rem;
    max-width: var(--container-width-wide);
    margin: 0 auto;
}

.card {
    background: oklch(1.0000 0.0000 89.88);
    border-radius: 0.75rem;
    box-shadow: 0 2px 5px oklch(0.0000 0.0000 89.88 / 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px oklch(0.0000 0.0000 89.88 / 0.10);
}

.card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 1.25rem;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.card-title-ads {
    font-size: 1.25rem;
    margin-inline: 0.5rem;
}

main .wide-container .card-title-ads{
    font-size: xx-large;
    text-align: center;
}

.rij-in-kaart {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.cta-block {
  background: oklch(0.9922 0.0108 167.81);
  border-radius: 10px;
  padding: 15px;
}

.btn {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  background: oklch(0.7009 0.1354 168.36);
  color: oklch(1.0000 0.0000 89.88);
}

.tag-badge {
    display: inline-block;
    background-color: oklch(0.9622 0.0191 176.44);
    color: oklch(0.6410 0.1312 166.11);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-right: 5px;
    font-weight: bold;
}

.btn-delete {
    background-color: oklch(0.6368 0.2078 25.33);
    color: oklch(1.0000 0.0000 89.88);
    border: none;
    padding: 8px;
    width: 100%;
    margin-top: 10px;
    border-radius: 4px;
    cursor: pointer;
}

.filter-section {
    text-align: center;
    margin: 2rem 0;
}

#school-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-banner-bg);
    color: var(--color-white);
    text-align: center;
    padding: 1rem;
    z-index: 9999;
    display: none;
}

#school-banner button {
    background-color: var(--color-accent);
    color: oklch(1.0000 0.0000 89.88);
    border: none;
    padding: 0.5rem 1rem;
    margin-left: 1rem;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
}

.achtergrond-spacefinder{
    background: url(./fotos/gokul-c7MDtUDttxQ-unsplash.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
}

body.achtergrond-spacefinder::before {
  content: "";
  position: fixed;
  inset: 0;
  background: oklch(1.0000 0.0000 89.88 / 0.30);
  pointer-events: none;
  z-index: -1;
}

.achtergrond-mentor{
    background: url(./fotos/achtergrond_mentor.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
}

body.achtergrond-mentor::before {
  content: "";
  position: fixed;
  inset: 0;
  background: oklch(1.0000 0.0000 89.88 / 0.30);
  pointer-events: none;
  z-index: -1;
}

.achtergrond-neutraal{
    background: url(./fotos/neutrale_achtergrond.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
}

body.achtergrond-neutraal::before {
  content: "";
  position: fixed;
  inset: 0;
  background: oklch(1.0000 0.0000 89.88 / 0.30);
  pointer-events: none;
  z-index: -1;
}

.achtergrond-about{
    background: url(./fotos/achtergrond_about_us.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
}

body.achtergrond-about::before {
  content: "";
  position: fixed;
  inset: 0;
  background: oklch(1.0000 0.0000 89.88 / 0.30);
  pointer-events: none;
  z-index: -1;
}

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    grid-column: 1 / -1;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid oklch(1.0000 0.0000 89.88); 
    border-top: 5px solid var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

.loading-text {
    color: var(--color-text-main);
    font-size: 1.1rem;
    font-weight: 500;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}