/* Algemene stijlen */
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 400;
  color: #333333;
  display: flex;
  flex-direction: column;
  background-color: #F5F5F5;
}

body.black {
  background-color: #232323;
  color: #FFFFFF;
}

main {
  flex: 1;
}

header, footer {
  width: 100%;
  text-align: center;
}

a {
  color: #333333;
  text-decoration: none;
  cursor: pointer;
}

/* Grid container */
.grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  width: calc(100% - 2rem);
  height: calc(100vh - 2rem);
  box-sizing: border-box;
  padding: 1rem;
}

/* Grid items */
.grid-item {
  background-color: rgba(0, 0, 0, 0.5);
  color: #FFFFFF;
  padding: 1rem;
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
}

.grid-item h1,
.grid-item p {
  color: #FFFFFF;
  position: relative;
  z-index: 2;
  margin-bottom: 0.5rem;
}

.grid-item h1 {
  margin-bottom: 0.2rem;
}

.grid-item p {
  margin-top: 0;
}

.grid-item::before,
.grid-item::after {
  content: '';
  position: absolute;
  top: -5%;
  left: -5%;
  right: -5%;
  bottom: -5%;
  transition: transform 0.3s ease;
}

.grid-item::before {
  background-size: cover;
  background-position: center;
  z-index: -2;
}

.grid-item::after {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.5) 50%,
    rgba(0, 0, 0, 0) 100%
  );
  z-index: -1;
  pointer-events: none;
}

.grid-item:hover::before,
.grid-item:hover::after {
  transform: scale(1.1);
}

.grid-item:hover {
  transform: scale(0.95);
}

/* Typography */
h1 {
  font-weight: 400;
  margin-top: 0;
  margin-bottom: 1rem;
  width: 100%;
  font-size: 2.5rem;
  color: #333333;
}

.h1-artikel {
  font-size: 2rem;
  margin-bottom: 2rem;
  line-height: 1.2;
}

h2 {
  font-weight: 400;
  margin-bottom: 0.5rem;
  font-size: 2rem;
  color: #333333;
}

.h2-artikel {
  font-size: 1.2rem;
}

p {
  font-size: 1.2rem;
  margin: 0;
  width: 100%;
  color: #333333;
}

.white {
  color: #ffffff
}

.small {
  font-size: 0.85rem;
  margin-top: 2rem;
  width: 100%;
  color: #333333;
}

/* Specifieke grid items */
#item1 {
  grid-row: span 2;
}

#item7 {
  grid-column: span 2;
}

/* Individuele achtergrondafbeeldingen */
#item1::before { background-image: url('/images/cursus.webp'); }
#item2::before { 
  background-image: url('/images/1op1.webp');
  background-position: left center;
}
#item3::before { background-image: url('/images/artikelen.webp'); }
#item4::before { background-image: url('/images/tools.webp'); }
#item5::before { background-image: url('/images/prompt.webp'); }
#item6::before { background-image: url('/images/login.webp'); }
#item7::before { background-image: url('/images/spreker.webp'); }

/* Media queries voor responsiviteit */
@media screen and (max-width: 768px) {
  .grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  #item1 {
    grid-row: span 1;
  }
  
  #item7 {
    grid-column: span 1;
  }
  
  h1 {
    font-size: 1.8rem;
  }
  
  p {
    font-size: 1rem;
  }
}

@media screen and (max-width: 480px) {
  .grid-container {
    grid-template-columns: 1fr;
  }
}