/* Global Resets & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  background: #f8f8f8;
  color: #333;
}

a {
  color: #06883A;
  text-decoration: none; /* No underlines ever */
}

a:hover {
  text-decoration: none;
}

/* Navigation Styles */
nav {
  background-color: #06883A;
  padding: 1rem 0;
}
.nav-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
nav .logo img {
  height: 40px;
}
nav ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}
nav ul li {
  margin: 0 1rem;
}
nav ul li a {
  color: #fff;
  font-weight: bold;
}

/* HERO SECTION */
.hero {
  position: relative;
  width: 100%;
  height: 510px; /* Set explicit height */
  overflow: hidden;

}
.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center; /* Align image subject to the bottom */
  display: block;
}
.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;
  text-align: center;
  padding: 0 20px;
  color: #fff;
}
.hero-overlay h1 {
  font-size: 2.4rem; /* Slightly smaller */
  font-weight: bold;
  line-height: 1.8;
  margin-bottom: 0.5rem;
}
.hero-overlay h2 {
  font-size: 1.3rem; /* Slightly smaller */
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 1rem;
}
.hero-overlay .btn {
  background-color: #06883A;
  padding: 0.85rem 1.75rem;
  color: #fff;
  border-radius: 32px;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.hero-overlay .btn:hover {
  background-color: #45a049;
  transform: scale(1.05);
}

/* Featured Artikelen Section */
.featured-articles {
  padding: 2rem 1rem;
  background-color: #fff;
  margin: 2rem auto;
  max-width: 960px;
}
.featured-articles h2 {
  margin-bottom: 1rem;
  text-align: center;
}
.articles-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.artikel-item {
  background-color: #fff;
  padding: 1rem;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  max-width: 275px;
  text-align: center;
  display: block; /* full-card clickable */
}
@media (max-width: 768px) {
  .artikel-item {
    max-width: none;
  }
}
.artikel-item img {
  width: 100%;
  height: auto;
  /* Ensure a 16:9 ratio container if needed */
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.artikel-item h3 {
  margin: 1rem 0 0.5rem;
}

/* Tag Styles */
.tags a {
  display: inline-block;
  font-size: 0.8rem;
  background-color: #f2f2f2;
  color: #06883A;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem; /* Ensures each tag occupies its own line if needed */
}

.latest-articles{
  padding: 2rem 1rem;
  background-color: #fff;
  text-align:center;
  margin: 2rem auto;
  max-width: 960px;
}
.latest-articles h2{
  margin-bottom:1rem;
}
/* Grid container for latest articles */
#latest-articles-container {
  display: grid;
  gap: 20px;
  justify-items: center;
  grid-template-columns: 1fr;
}

@media (min-width: 576px) {
  #latest-articles-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  #latest-articles-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Card styling */
.latest-article {
  width: 100%;
  max-width: 300px;  /* Adjust maximum width as needed */
  background: linear-gradient(135deg, rgba(11,177,77,0.15), rgba(7,140,62,0.15));
  border: 1px solid #ddd;
  border-radius: 5px;
  overflow: hidden;
  transition: box-shadow 0.3s;
}
@media (max-width: 575px) {
  .latest-article {
    max-width: none;
  }
}
/* Make the whole card clickable */
.latest-article a {
  display: block;
  color: inherit;
  text-decoration: none;
}

/* Hover effect */
.latest-article:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Image styling: limit height, cover area, and center content */
.latest-article img {
  width: 100%;
  max-height: 250px;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Card content styling */
.latest-article .card-content {
  padding: 1rem;
  text-align: center;
}

.latest-article h3 {
  margin: 0.5rem 0;
  font-size: 1.25rem;
}

.latest-article p {
  font-size: 1rem;
  line-height: 1.4;
  margin: 0.5rem 0;
}

/* Tag styling */
.latest-article .tags {
  margin-top: 1rem;
}

.latest-article .tag {
  margin-right: 0.5rem;
  font-size: 0.8rem;
  background-color: #fff;
  color: #06883A;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  display: inline-block;
  margin-bottom: 0.5rem;
}


/* Inspiratie Section (Waarom kiezen voor HelperHoeve?) */
.inspiratie {
  padding: 2rem 1rem;
  background-color: #fff;
  margin: 2rem auto;
  max-width: 960px;
}
.inspiratie h2 {
  margin-bottom: 1rem;
  text-align: center;
  font-size: 1.8rem;
}
.inspiratie-content {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.inspiratie-item {
  flex: 1;
  min-width: 280px;
  background: #f9f9f9;
  padding: 1rem;
  text-align: center;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  transition: transform 0.2s ease;
}
.inspiratie-item:hover {
  transform: translateY(-3px);
}
.inspiratie-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin-bottom: 0.5rem;
}

/* Call-to-Action Section */
.cta {
  padding: 2rem 1rem;
  background-color: #fff;
  text-align: center;
  margin: 2rem auto;
  max-width: 960px;
}
.cta h2 {
  margin-bottom: 1rem;
  font-size: 1.8rem;
}
.cta p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}
.cta .btn {
  background-color: #06883A;
  padding: 0.85rem 1.75rem;
  color: #fff;
  border-radius: 32px;
  font-size: 1.15rem;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.cta .btn:hover {
  background-color: #45a049;
  transform: scale(1.05);
}

/* Product Links Section within Article CTA */
.article-cta {
  margin: 2rem 0;
  padding: 1rem 0;
  border-radius: 32px;
  border-top: 1px solid #eee;
}
.product-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.product-links .product {
  background: #fff;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  text-align: center;
  transition: transform 0.2s ease;
}
.product-links .product:hover {
  transform: translateY(-3px);
}
.product-links .product h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}
.product-links .product p {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}
.product-links .product a {
  display: inline-block;
  background-color: #06883A;
  padding: 0.6rem 1.2rem;
  color: #fff;
  border-radius: 32px;
  font-size: 0.95rem;
  transition: background-color 0.2s ease;
}
.product-links .product a:hover {
  background-color: #45a049;
}

/* About / Contact / Social Pages */
.about, .contact-info, .social {
  padding: 2rem 1rem;
  background-color: #fff;
  margin: 2rem auto;
  max-width: 960px;
}
.about h1,
.contact-info h2,
.social h2 {
  margin-bottom: 1rem;
}
.contact-info form {
  display: flex;
  flex-direction: column;
  max-width: 600px;
  margin: 1rem auto;
}
.contact-info form label {
  margin: 0.5rem 0 0.2rem;
}
.contact-info form input,
.contact-info form textarea {
  padding: 0.5rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.contact-info form button {
  padding: 0.7rem;
  background-color: #06883A;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.contact-info form button:hover {
  background-color: #45a049;
}
.social ul {
  list-style: none;
  padding: 0;
  display: flex;
}
.social ul li {
  margin-right: 1rem;
}

/* Social Links Section Above Footer */
.social-links {
  text-align: center;
  padding: 1.5rem 1rem;
  background-color: #fff;
  margin: 2rem auto;
  max-width: 960px;
  border-top: 1px solid #eee;
}
.social-links p {
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}
.social-links .icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* Footer Styles */
footer {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
}

/* Article Structured Page Styles */
.article-structured {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
  background-color: #fff;
}

/* Header Section: 50% image / 50% text for Articles */
.article-header {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.article-header .header-image,
.article-header .header-text {
  flex: 1;
  margin-top:20px;
  box-sizing: border-box;
  margin-top: 0px;
}
.article-header .header-image {
  max-width: 50%;

}
.article-header .header-image img {
  width: 100%;
  height: auto;
}
.article-header .header-text {
  max-width: 50%;
  padding: 0 20px;
}
.article-header .header-text h1 {
  margin-top: 0;
  font-size: 2.4rem;
  font-weight: bold;
  line-height: 1.6;
}
.article-header .header-text h2 {
  font-size: 1.4rem;
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 1rem;
}
.article-header .header-text .tags a {
  margin-right: 0.5rem;
  font-size: 0.8rem;
  background-color: #f2f2f2;
  color: #06883A;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  display: inline-block;
  margin-bottom: 0.5rem;
}
.article-header .header-text .tags a:hover {
  text-decoration: none;
}
.article-header .header-text .intro-text {
  margin: 1rem 0;
}
.main-cta {
  display: inline-block;
  background-color: #06883A;
  color: #fff;
  padding: 0.85rem 1.75rem;
  border-radius: 32px;
  margin-top: 1rem;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.main-cta:hover {
  background-color: #45a049;
  transform: scale(1.05);
}

/* Article Sections with Grid Layout */
.article-section {
  margin-bottom: 2rem;
}
.article-section h2 {
  margin-bottom: 1rem;
  border-bottom: 2px solid #ddd;
  padding-bottom: 0.5rem;
}
.grid-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.grid-cell {
  flex: 1;
  background-color: #f9f9f9;
  padding: 1rem;
  box-sizing: border-box;
  border: 1px solid #eee;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  transition: transform 0.2s ease;
}
.grid-cell:hover {
  transform: translateY(-3px);
}

/* Hub Page Styles */
.hub-header {
  text-align: center;
  padding: 2rem 0;
}
.hub-header h1 {
  margin-bottom: 0.5rem;
}
.hub-header p {
  font-size: 1.1rem;
  color: #666;
}
.hub-articles .articles-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.hub-articles .artikel-item {
  background-color: #fff;
  padding: 1rem;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  max-width: 298px;
  text-align: center;
}
.hub-articles .artikel-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.hub-articles .artikel-item p {
  font-size:14px;
  text-align:left;
}
.hub-articles .artikel-item h3 {
  margin: 0 0 0.5rem;
  text-align:left;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero-overlay h1 {
    font-size: 2rem;
  }
  .hero-overlay h2 {
    font-size: 1.2rem;
  }
  .featured-articles,
  .cta,
  .inspiratie,
  .social-links {
    padding: 1.5rem;
  }
  .articles-list,
  .inspiratie-content,
  .hub-articles .articles-list {
    align-items: center;
  }
  .article-header {
    flex-direction: column;
  }
  .article-header .header-image,
  .article-header .header-text {
    max-width: 100%;
    padding: 0;
  }
  .grid-row {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .hero-overlay {
    padding: 0 10px;
  }
  .hero-overlay h1 {
    font-size: 1.8rem;
  }
  .hub-articles .artikel-item{
    max-width:fit-content;
  }
  .hero-overlay h2 {
    font-size: 1.1rem;
  }
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

#nav-menu li {
  margin: 0 1rem;
}

/* Hamburger icon */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  height: 3px;
  width: 25px;
  background: #fff;
  margin: 4px 0;
  border-radius: 5px;
}

/* Mobile Styles */
@media (max-width: 768px) {
  #nav-menu {
    display: none;
    flex-direction: column;
    width: 96%;
    background-color: #06883A;
  }
  #nav-menu.open {
    display: flex;
  }
  #nav-menu li {
    margin: 0;
    padding: 10px;
    text-align: center;
  }
  .hamburger {
    display: flex;
  }
}
body.article-page {
  --primary: #06883A;
  --primary-dark: #078c3e;
  --accent: #f0f2f5;
  --text-color: #333;
  --light: #fff;
  --shadow: rgba(0, 0, 0, 0.15);
  --transition: 0.3s ease;
  background: var(--accent);
  overflow-x: hidden;
}

body.article-page a {
  color: var(--light);
  text-decoration: none;
  transition: color var(--transition);
}

body.article-page::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(255,255,255,0.1), transparent 70%);
  pointer-events: none;
  z-index: -2;
}

body.article-page .container {
  max-width: 960px;
  margin: 40px auto;
  padding: 30px;
  background: var(--light);
  border-radius: 12px;
  box-shadow: 0 8px 24px var(--shadow);
  position: relative;
  z-index: 1;
}

body.article-page .article-structured {
  padding: 20px !important;
}

body.article-page footer {
  background: #1c1c1c;
  color: var(--light);
  text-align: center;
  padding: 1rem;
  margin-top: 40px;
}
body.article-page .footer-container {
  max-width: 960px;
  margin: 0 auto;
}

body.article-page .article-header {
  display: flex;
  flex-wrap: wrap;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: 0 4px 12px var(--shadow);
}
body.article-page .header-image {
  flex: 1;
  min-width: 300px;
  overflow: hidden;
  position: relative;
}
body.article-page .header-image img {
  width: 100%;
  height: 110% !important;
  object-fit: cover;
  transition: transform var(--transition);
}
body.article-page .header-image:hover img {
  transform: scale(1.1);
}
body.article-page .header-text {
  flex: 1;
  padding: 30px;
  background: linear-gradient(135deg, rgba(11,177,77,0.15), rgba(7,140,62,0.15));
  display: flex;
  flex-direction: column;
  justify-content: center;
}
body.article-page .header-text h1 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: var(--primary);
}
body.article-page .header-text h2 {
  font-size: 1.2rem;
  font-weight: 300;
  margin-bottom: 1rem;
  color: #555;
}
body.article-page .header-text .tags {
  margin-bottom: 0rem;
}
body.article-page .header-text .tags a {
  font-size: 0.85rem;
  background: #f5f5f5;
  color: var(--primary);
  padding: 0.4rem 0.9rem;
  border-radius: 50px;
  margin: 0.3rem;
  display: inline-block;
  transition: background var(--transition), transform var(--transition);
}
body.article-page .header-text .tags a:hover {
  background: var(--primary);
  color: var(--light);
  transform: scale(1.05);
}
body.article-page .header-text .intro-text {
  margin: 1rem 0;
  font-size: 1.0rem;
  color: #666;
}
body.article-page .main-cta {
  display: inline-block;
  background: var(--primary);
  color: var(--light);
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: transform var(--transition), background var(--transition);
  box-shadow: 0 4px 12px var(--shadow);
  margin-top: 10px;
}
body.article-page .main-cta:hover {
  transform: scale(1.03);
  color: white;
}

body.article-page .article-section {
  margin-bottom: 2rem;
  padding: 0 10px;
}
body.article-page .article-section h2 {
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #ddd;
  font-size: 2rem;
  color: var(--primary);
}
body.article-page .grid-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
body.article-page .grid-cell {
  flex: 1;
  background: #fafafa;
  padding: 1.2rem;
  border: 1px solid #eee;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform var(--transition), box-shadow var(--transition);
}
body.article-page .grid-cell:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

body.article-page .article-cta {
  margin: 2rem 0;
  padding: 1rem 10px;
  border-top: 2px solid #ddd;
}
body.article-page .product-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
body.article-page .product-links .product {
  background: var(--light);
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
body.article-page .product-links .product:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
body.article-page .product-links .product h3 {
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
  color: var(--primary);
}
body.article-page .product-links .product p {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: #555;
}
body.article-page .product-links .product a {
  display: inline-block;
  background: var(--primary);
  padding: 0.6rem 1.2rem;
  color: var(--light);
  border-radius: 50px;
  font-size: 0.95rem;
  transition: background var(--transition);
}
body.article-page .product-links .product a:hover {
  background: var(--primary-dark);
}

@media (max-width: 768px) {
  body.article-page .article-header {
    flex-direction: column;
    margin-top:0px !important;
  }
  body.article-page .header-image{
    max-width: 100%;
    height:592px;
    margin-top: 0px !important;
  }

  body.article-page .header-text {
    max-width: 100%;
    padding: 10px;
    margin-top: -7px !important;
  }
  body.article-page .grid-row {
    flex-direction: column;
  }
}
