/* PT Sans inladen (normaal, schuingedrukt en dikgedrukt) */
@import url('https://fonts.googleapis.com/css2?family=PT+Sans:ital,wght@0,400;0,700;1,400;1,700&display=swap');

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'PT Sans', sans-serif;
  background-color: #fafaf9;
  color: #1c1917;
}

/* Hoofdcontainer */
.container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 60px;
  max-width: 1050px;
  margin: 60px auto;
  padding: 0 20px;
}

/* Linkerkolom (Sidebar) */
.sidebar {
  position: sticky;
  top: 60px;
  height: calc(100vh - 100px); 
  align-self: start; /* <--- DEZE REGEL IS DE MAGISCHE SLEUTEL */
  display: flex;
  flex-direction: column; 
}

.sidebar h3 {
  font-size: 1em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #78716c; 
  margin-top: 35px;
  margin-bottom: 12px;
}

/* --- PROFIELFOTO & TEKST SECTIE --- */
.profile-header {
  display: flex;
  align-items: flex-start; 
  gap: 15px;
  margin-top: 30px;
  margin-bottom: 10px;
}

.profile-pic {
  width: 110px; 
  height: 110px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #e7e5e4;
  display: block;
  margin: 0;
}

/* De container voor de tekst: EXACT 110px hoog en klaar voor 'pinnen' */
.profile-text {
  position: relative; /* HEEL BELANGRIJK: Hierdoor kunnen we de linkjes vastpinnen aan de bodem */
  height: 110px;      /* Dwingt de hoogte gelijk aan je foto */
  width: 100%;
}

.profile-title {
  font-family: 'PT Sans', sans-serif;
  font-size: 1.25em; 
  font-weight: 700;
  line-height: 1.1; 
  color: #57534e;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  position: absolute; /* Pint de titel vast... */
  top: 0;             /* ...aan de absolute bovenkant */
}

.profile-title a {
  color: inherit; /* Neemt de grijsbruine kleur van de titel over */
  text-decoration: none; /* Verwijdert de onderstreping */
}

.sidebar-contact {
  list-style: none;
  padding: 0;
  margin: 0;
  position: absolute; /* Pint de linkjes vast... */
  bottom: 0;          /* ...aan de absolute onderkant! */
  left: 0;
  display: flex;
  flex-direction: column;
  gap: 2px; /* De minimale ruimte tussen E-mail en LinkedIn */
}

.sidebar-contact li {
  margin: 0 !important;   /* !important overrulet ALLE hardnekkige browser-marges */
  padding: 0 !important;
  line-height: 1 !important; 
}

.sidebar-contact a {
  display: inline-block;
  color: #2563eb;
  text-decoration: underline;
  font-weight: 700;
  font-size: 0.85em; 
  line-height: 1; 
  transition: color 0.15s ease;
}

.sidebar-contact a:hover {
  color: #1d4ed8;
}
/* --- EINDE PROFIEL SECTIE --- */

/* De introtekst onder de foto */
.sidebar p {
  color: #57534e;
  font-size: 1.05em;
  line-height: 1.3;
  margin-top: 0; /* NIEUW: Verwijdert de standaard onzichtbare browser-marge */
}

/* De Zoekbalk */
.search-box {
  width: 100%;
  padding: 10px 14px;
  margin-bottom: 15px;
  font-family: inherit;
  font-size: 1em;
  border: 1px solid #d6d3d1;
  border-radius: 6px;
  background-color: #fff;
  transition: all 0.2s ease;
  outline: none;
}

.search-box:focus {
  border-color: #78716c;
  box-shadow: 0 0 0 3px rgba(120, 113, 108, 0.15);
}

/* --- ZIJBALK: ALLE BLOGS & FILTER --- */
.sidebar-all-blogs {
  display: flex;
  justify-content: space-between;
  align-items: center; /* Zorgt dat de tekst en het filter perfect in het midden uitlijnen */
  margin-top: 25px; /* Ruimte onder het lijstje met recente blogs */
}

.sidebar-all-blogs h3 {
  margin: 0; /* Marges weghalen, anders drukt hij het filter naar beneden */
  font-size: 0.85em; /* Exact dezelfde grootte als 'Laatste blogs' */
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sidebar-all-blogs h3 a {
  color: #a8a29e;
  text-decoration: none;
  transition: color 0.15s ease;
}

.sidebar-all-blogs h3 a:hover {
  color: #2563eb;
}

/* De opmaak van het dropdown-menuutje */
.sort-dropdown {
  font-family: inherit;
  font-size: 0.75em;
  font-weight: 700;
  color: #57534e;
  border: 1px solid #d6d3d1;
  border-radius: 4px;
  padding: 3px 6px;
  background-color: #fff;
  cursor: pointer;
  outline: none;
}

.sort-dropdown:focus {
  border-color: #78716c;
}

/* --- ZIJBALK: LAATSTE BLOGS --- */
.sidebar-recent-blogs {
  margin-top: 15px;
}

.sidebar-recent-blogs h3 {
  font-size: 0.85em;
  text-transform: uppercase;
  color: #a8a29e;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  margin-top: 0;
}

#recent-blogs-list {
  list-style: none;
  padding: 0;
  margin: 0; 
}

#recent-blogs-list li {
  margin-bottom: 12px;
  display: flex;          /* Activeert Flexbox voor dit rijte */
  align-items: flex-start; /* Lijnt de datum en titel netjes aan de bovenkant uit */
  gap: 15px;              /* De ruimte tussen de 'kolom' van de datum en de titel */
}

.recent-date {
  flex: 0 0 80px;         /* SNOEIHARD: De datum is altijd exact 80px breed, geen pixel meer of minder */
  font-size: 0.7em;
  color: #a8a29e;
  font-weight: 700;
  text-transform: uppercase;
  padding-top: 2px;       /* Kleine optische correctie zodat de datum mooi op één lijn staat met de titel */
}

.recent-title {
  flex: 1;                /* De titel pakt alle overgebleven ruimte in de breedte */
  font-size: 0.9em;
  color: #44403c;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.3;
  transition: color 0.15s ease;
}

.recent-title:hover {
  color: #2563eb; /* Blauw bij hoveren */
}

/* Rechterkolom (Blogs) */
.content {
  background: #ffffff;
  padding: 50px 60px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02), 0 4px 12px rgba(0,0,0,0.03);
}

.blog-post {
  margin-bottom: 40px;
}

.blog-post:last-child {
  margin-bottom: 0;
}

.blog-title {
  font-size: 1.6em;
  margin-bottom: 5px;
  color: #1c1917;
}

.blog-subtitle {
  font-size: 1.0em;
  font-weight: normal;
  color: #78716c;
  line-height: 1.3;
  margin-top: 0;
  margin-bottom: 15px;
}

/* Meta-informatie (datum + leestijd) */
.blog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.blog-date {
  font-size: 0.75em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #a8a29e;
  margin: 0;
}

.blog-read-time {
  font-size: 0.8em;
  color: #78716c;
  font-weight: 700;
}

/* De algemene tekst van de blog */
.blog-text {
  font-size: 1.0em;
  color: #44403c;
}

/* De 'Lees meer' knop onder de eerste alinea */
.lees-meer-btn {
  background: none;
  border: none;
  color: #2563eb;
  font-family: inherit;
  font-size: 0.95em;
  font-weight: 700;
  padding: 0;
  margin-top: 5px;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.15s ease;
}

.lees-meer-btn:hover {
  color: #1d4ed8;
}

.blog-text p {
  line-height: 1.3;
  margin-top: 0;
  margin-bottom: 12px;
}

/* De dikkere horizontale scheidingslijn */
.blog-post hr {
  border: none;
  height: 2px;
  background-color: #d6d3d1;
  margin-top: 30px;
  margin-bottom: 20px;
}

/* Delen sectie onder de lijn */
.blog-share {
  display: flex;
  justify-content: flex-end;
}

.share-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  font-family: 'PT Sans', sans-serif;
  font-size: 1em;
  font-weight: 700;
  color: #78716c;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s ease;
}

.share-btn:hover {
  color: #2563eb;
}

/* Gemarkeerde zoektermen */
mark {
  background-color: #fde047;
  color: #1c1917;
  padding: 0 2px;
  border-radius: 3px;
}

/* --- OVERZICHT PAGINA (ALLE BLOGS) --- */
.blog-overview-list {
  display: flex;
  flex-direction: column;
  gap: 12px; /* WAS 30px: De ruimte tussen de blogs flink geminimaliseerd */
}

.overview-item {
  display: flex;
  align-items: flex-start;
  gap: 15px; /* WAS 25px: De ruimte tussen datum en titel iets krapper */
  padding-bottom: 12px; /* WAS 30px: Veel minder witruimte onder het lijntje */
  border-bottom: 1px solid #e7e5e4; 
}

.overview-item:last-child {
  border-bottom: none; 
  padding-bottom: 0; /* Bij de laatste blog helemaal geen witruimte onderaan */
}

/* Kolom 1: De datum */
.overview-date {
  flex: 0 0 90px; /* WAS 110px: Iets smaller gemaakt voor een compactere look */
  font-size: 0.75em; /* Iets kleiner om in verhouding te blijven */
  color: #a8a29e;
  font-weight: 700;
  text-transform: uppercase;
  padding-top: 2px; /* Optische correctie voor de nieuwe, kleinere titel */
}

/* Kolom 2: De content (titel + subtitel) */
.overview-content {
  flex: 1; 
}

.overview-title {
  display: block;
  font-size: 1.15em; /* WAS 1.5em: Flink kleiner gemaakt! */
  color: #1c1917;
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 2px; /* WAS 5px: Subtitel kruipt dichter tegen de titel aan */
  line-height: 1.2;
  transition: color 0.15s ease;
}

.overview-title:hover {
  color: #2563eb; 
}

.overview-subtitle {
  font-size: 0.9em; /* WAS 1.05em: Ook een stukje subtieler */
  color: #78716c;
  margin: 0;
  line-height: 1.3;
}

/* --- INLINE NAAR BOVEN KNOP --- */
.blog-share {
  display: flex;
  justify-content: flex-end;
  gap: 20px; /* Zorgt voor een mooie, rustige ruimte tussen 'Naar boven' en 'Delen' */
}

.back-to-top-inline-btn {
  display: flex;
  align-items: center;
  gap: 8px; /* Ruimte tussen het pijltje en het woord 'Naar boven' */
  background: none;
  border: none;
  font-family: 'PT Sans', sans-serif;
  font-size: 1em;
  font-weight: 700;
  color: #2563eb; /* Jouw kenmerkende blauw */
  cursor: pointer;
  padding: 0;
  transition: color 0.15s ease;
}

.back-to-top-inline-btn:hover {
  color: #1d4ed8; /* Iets donkerder blauw bij hoveren */
}

/* --- MOBIELE OPMAAK (MEDIA QUERY) --- */
@media (max-width: 768px) {
  .container {
    display: flex;
    flex-direction: column;
    margin: 20px auto;
    gap: 30px;
  }

  .back-to-top-btn {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }

.overview-item {
    flex-direction: column; /* Zet op mobiel de datum bóven de titel */
    gap: 10px;
  }
  .overview-date {
    padding-top: 0;
  }

.sidebar {
    width: 100%;
    position: relative;
    top: 0;
    height: auto;
    border-right: none;
    border-bottom: 1px solid #e7e5e4;
    padding: 0 0 10px 0; /* Iets compacter op mobiel */
  }

  .profile-header {
    display: flex;
    flex-direction: row;
    align-items: flex-start; /* Ook op mobiel strak aan de bovenkant */
    gap: 15px;
  }

  .profile-pic {
    width: 80px; /* Op mobiel nog een fractie kleiner */
    height: 80px;
  }

  .profile-title {
    font-size: 1.15em;
  }

  .content {
    width: 100%;
    padding: 30px 20px;
  }

  .blog-title {
    font-size: 1.6em;
  }
}