/* ======================================================
   1. CSS VARIABELEN (THEMA & KLEUREN)
   ====================================================== */
:root {
  --primary: #f9a825;
  --primary-dark: #fbc02d;
  --bg: #fff9e6;
  --card: #ffffff;
  --muted: #666;
}

/* ======================================================
   2. RESET & BASISINSTELLINGEN
   ====================================================== */
* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Quicksand', sans-serif;
  background: var(--bg);
  color: #222;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}


/* ======================================================
   3. PAGINA-ACHTERGRONDEN (BODY CLASSES)
   ====================================================== */
body.subpage {
  background: linear-gradient(135deg, #fff9e6 0%, #fff1b8 100%);
  position: relative;
  overflow-x: hidden;
}

/* Decoratieve zwevende vormen (alleen subpagina’s) */
.sub-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
  animation: float 12s infinite ease-in-out alternate;
  z-index: 0;
  pointer-events: none;
}

.sub-shape1 { width: 180px; height: 180px; background: #fdd835; top: 10%; left: 5%; animation-delay: 0s; }
.sub-shape2 { width: 150px; height: 150px; background: #fbc02d; top: 50%; left: 75%; animation-delay: 2s; }
.sub-shape3 { width: 120px; height: 120px; background: #fff176; top: 70%; left: 30%; animation-delay: 4s; }

/* ======================================================
   4. LAYOUT & CONTAINERS
   ====================================================== */
.container {
  max-width: 1000px;
  margin: 40px auto;
  padding: 20px;
  background: var(--card);
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  position: relative;
  z-index: 1;
}

/* ======================================================
   5. BLOG HEADER
   ====================================================== */
.blog-header {
  text-align: center;
  margin-bottom: 30px;
}

.blog-header h1 {
  font-size: 2.8rem;
  margin-bottom: 12px;
}

.blog-header p {
  font-size: 1.3rem;
  color: var(--muted);
}

/* ======================================================
   5.1 BLOG SWIPER
   ====================================================== */
.swiper-slide img { width: 100%; height: 250px; object-fit: cover; border-radius: 12px; cursor: pointer; transition: transform 0.3s; }
.swiper-slide img:hover { transform: scale(1.05); }

.swiper.blog-images {
  width: 100%;
  padding: 20px 0;
}

.swiper.blog-images .swiper-slide {
  width: auto; /* Swiper regelt slide breedte */
}

.swiper-button-next,
.swiper-button-prev {
  background: none !important;
  width: auto;
  height: auto;
  color: #fff !important;
  top: 50%;
  transform: translateY(-50%);
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 2rem;
  color: #fff;
}

.swiper-button-next:hover::after,
.swiper-button-prev:hover::after {
  color: #f9a825;
}

/* ======================================================
   5.2 Zoekfunctie
   ====================================================== */
.search-container {
  margin: 1rem 0;
  text-align: center;
}

.search-box {
  padding: 0.5rem 1rem;
  width: 80%;
  max-width: 400px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
}

/* ======================================================
   5.3 Meer laden knop
   ====================================================== */
.load-more-btn {
  display: block;
  margin: 2rem auto;
  padding: 0.7rem 2rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
  text-align: center;
}

.load-more-btn:hover {
  background: var(--primary-dark);
}

/* ======================================================
   6. NAVIGATIEBALK
   ====================================================== */
nav {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 40px;
  background: linear-gradient(90deg, #f9a825 0%, #fdd835 100%);
  color: white;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.3s;
}

.swiper-button-prev {
  color: #f9a825;
}

.swiper-pagination-bullet {
  background: #f9a825;
}

nav:hover { transform: translateY(-2px); }

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
}

.brand a {
  display: flex;
  align-items: center;
  font-size: 24px;
  font-weight: bold;
  color: white;
  text-decoration: none;
}

.brand img.logo {
  height: 40px;
  margin-right: 10px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: white;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 6px;
  transition: transform 0.3s;
}

.nav-links a:hover { transform: scale(1.1); }

/* Dropdown menu */
.nav-links .dropdown {
  position: relative;
}

.nav-links .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #f9a825;
  padding: 10px 0;
  border-radius: 6px;
  min-width: 180px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
  z-index: 100;
  list-style: none;
}

.nav-links .dropdown-menu li {
  padding: 8px 16px;
}

.nav-links .dropdown-menu li a {
  color: white;
  text-decoration: none;
  display: block;
}

.nav-links .dropdown-menu li a:hover {
  background: rgba(255,255,255,0.2);
}

.nav-links .dropdown > a { cursor: pointer; }

.nav-links .dropdown:hover .dropdown-menu {
  display: block;
}

/* ======================================================
   7.1 HERO SECTIE index.html
   ====================================================== */
.hero {
  position: relative;
  width: 100%;
  min-height: 500px; /* standaard hoogte desktop */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  border-radius: 0 0 12px 12px; /* alleen onderaan afgerond */
  overflow: hidden;

  background-image: url('../img/homepage/foto1.jpg'); /* pas pad naar jouw foto aan */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Tekst en knop boven overlay */
.hero h1,
.hero p,
.hero .btn {
  position: relative;
  z-index: 1;
}

/* Hero koptekst */
.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

/* Hero subtitel */
.hero p {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  margin-bottom: 2rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* Hero knop */
.hero .btn {
  padding: 0.8rem 2rem;
  font-size: 1rem;
  background-color: #f9a825;
  border-radius: 50px;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.hero .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* RESPONSIVE */
@media (max-width: 1200px) {
  .hero { min-height: 500px; }
}

@media (max-width: 900px) {
  .hero { min-height: 400px; padding: 4rem 1rem; }
  .hero h1 { font-size: 2.5rem; }
  .hero p { font-size: 1.2rem; }
}

@media (max-width: 600px) {
  .hero { min-height: 350px; padding: 3rem 1rem; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
}


/* ======================================================
   7.2 BLOG HERO SECTIE blog.html
   ====================================================== */

.blog-hero {
  position: relative;
  width: 100%;
  height: 350px;
  overflow: hidden;
}

.blog-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.35);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-align: center;
  padding: 0 20px;
}

.blog-hero-overlay h1 {
  font-size: 2.5rem;
  margin: 0;
  text-shadow: 0 0 10px rgba(0,0,0,0.7);
}

.blog-hero-overlay p {
  margin-top: 8px;
  font-size: 1.1rem;
  text-shadow: 0 0 5px rgba(0,0,0,0.7);
}

/* ======================================================
   8. BUTTONS
   ====================================================== */
.btn {
  display: inline-block;
  padding: 12px 20px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  transition: transform .18s, box-shadow .18s;
}

.btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.back-btn { background: #444; }
.back-btn:hover { background: #222; }

.next-btn {
  display: inline-block;
  margin-left: 10px;
  background-color: var(--primary-dark);
  color: white;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s;
}

.next-btn:hover { background-color: var(--primary); }

/* ======================================================
   8. Blog post navigatie (Vorige / Terug / Volgende)
   ====================================================== */
/* Blog navigatie op subpages */
.subpage .blog-navigation {
  display: flex;
  justify-content: space-between; /* verdeelt de 3 kolommen */
  align-items: center;
  width: 100%; /* parent breedte 100% */
  margin-top: 3rem;
  gap: 10px;
  flex-wrap: nowrap; /* voorkomt dat knoppen onder elkaar komen */
}

/* Links uitlijnen */
.subpage .blog-navigation .nav-left {
  display: flex;
  justify-content: flex-start;
  flex: 0 0 auto; /* neemt alleen de breedte van de knop */
}

/* Midden uitlijnen */
.subpage .blog-navigation .nav-center {
  display: flex;
  justify-content: center;
  flex: 1 1 auto; /* neemt de beschikbare ruimte */
}

/* Rechts uitlijnen */
.subpage .blog-navigation .nav-right {
  display: flex;
  justify-content: flex-end;
  flex: 0 0 auto; /* neemt alleen de breedte van de knop */
}

/* Knoppen zelf */
.subpage .blog-navigation .btn {
  display: inline-flex;
  width: auto;
  white-space: nowrap; /* voorkomt afbreken */
}


/* ======================================================
   9. BLOG GRID & CARDS
   ====================================================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.blog-item {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: transform .2s, box-shadow .3s;
  cursor: pointer;
}

.blog-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.img-wrap {
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: 12px;
  position: relative;
}

.img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.img-wrap img:hover { transform: scale(1.05); }

.blog-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px;
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  border-radius: 12px;
  transition: all 0.3s ease;
  backdrop-filter: blur(0px);
}

.img-wrap:hover .blog-title {
  bottom: 40%;
  font-size: 1.5rem;
  backdrop-filter: blur(4px);
}

.blogs { 
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 60px 40px;
}

.blog-card { 
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

/* Afbeelding */
.blog-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* Content onder de afbeelding */
.blog-card h3 {
  margin: 15px 15px 10px;
  font-size: 1.2rem;
}

/* Samenvatting met witregel boven */
.blog-card p {
  margin: 10px 15px 15px; /* ← witruimte tussen foto en tekst */
  font-size: 0.9rem;
  color: #666;
}

/* ======================================================
   10. SORT BUTTONS
   ====================================================== */
.sort-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.sort-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.2s;
}

.sort-btn:hover { background: var(--primary-dark); }

.search-box {
  flex: 1;
  min-width: 200px;
  padding: 0.5rem 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
}

.sort-btn.active { background: #ffde80; }

/* ======================================================
   11. COUNTRY OVERLAY & TILES
   ====================================================== */
#countryOverlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  overflow-y: auto;
  padding: 40px;
  box-sizing: border-box;
  opacity: 0;
  animation: fadeInOverlay 0.3s forwards;
}

@keyframes fadeInOverlay {
  from { opacity: 0; }
  to { opacity: 1; }
}

#countryTiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 16px;
  max-width: 900px;
  width: 100%;
}

.country-tile {
  position: relative;
  width: 100%;
  padding-top: 75%;
  border-radius: 12px;
  cursor: pointer;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  transform: scale(0.8);
  transition: transform 0.35s ease, opacity 0.35s ease, box-shadow 0.3s, filter 0.3s;
}

.country-tile.show {
  opacity: 1;
  transform: scale(1);
}

.country-tile:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  filter: brightness(1.1);
}

.country-tile span {
  position: absolute;
  bottom: 0;
  width: 100%;
  text-align: center;
  padding: 6px 0;
  background: rgba(0,0,0,0.45);
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

/* ======================================================
   12. ANIMATIES
   ====================================================== */
@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) translateX(10px) rotate(10deg); }
  100% { transform: translateY(0px) translateX(-10px) rotate(-10deg); }
}

/* ======================================================
   13. RESPONSIVE DESIGN
   ====================================================== */
@media (max-width: 900px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  #countryTiles { grid-template-columns: repeat(auto-fit, minmax(100px,1fr)); }
}

@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; }
  #countryTiles { grid-template-columns: repeat(auto-fit, minmax(80px,1fr)); }
  .country-tile span { font-size: 0.8rem; }
}

/* ======================================================
   14. COUNTERS
   ====================================================== */
.counters {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin: 40px 0;
}

.counter {
  background: #fbc02d;
  color: white;
  padding: 20px 40px;
  border-radius: 20px;
  text-align: center;
  font-weight: bold;
  font-size: 2rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.counter-label {
  font-size: 1rem;
  margin-top: 10px;
  display: block;
  color: #fff8e1;
}

/*
   15. Laatste drie blogs
   ====================================================== */

   /* Laatste 3 blogs netjes in grid */
#homeBlogs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem auto;
  max-width: 1100px;
}

/* Individuele blogcards */
.blog-card {
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: transform .3s ease;
}

.blog-card:hover {
  transform: translateY(-6px);
}

.blog-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.blog-card h3 {
  margin: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.blog-card p {
  margin: 0 1rem 1rem 1rem;
  color: #555;
}

/* Responsive grid */
@media (max-width: 900px) {
  #homeBlogs {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 600px) {
  #homeBlogs {
    grid-template-columns: 1fr;
  }
}
