:root {
  --font: "Lora", serif;

  --bg: #ffffff;
  --text: #222222;
  --muted: #444444;

  --surface: #ffffff;
  --surface-2: #f5f5f7;
  --border: #e5e7eb;

  --nav-bg: #e9e9e9;
  --hover-bg: #f3f3f3;

  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);

  --radius: 16px;
  --radius-sm: 10px;

  --container: 900px;

  --footer-h: 56px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  padding-bottom: calc(var(--footer-h) + env(safe-area-inset-bottom, 0px));
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1, h2 {
  color: #111;
  font-weight: 600;
}

p {
  color: #222;
  font-size: 1.05rem;
  font-weight: 400;
}

a.custom-link {
  color: #000;
  text-decoration: underline;
  text-underline-offset: 2px;
}

header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
  padding: 15px 20px;
  background: #fff;
}

header img {
  height: 70px;
  width: auto;
  object-fit: contain;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  background: #f1f1f1;
}

nav ul li a {
  display: block;
  padding: 12px 14px;
  color: #333;
  text-decoration: none;
  font-size: 17px;
  border-radius: 8px;
}

nav ul li a:hover {
  background: var(--hover-bg);
}

.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: #000;
  padding: 15px;
}

.hero {
  text-align: center;
  padding: 120px 20px;
  background-image: url("..//image/kerk.jpg");
  background-size: cover;
  background-position: center;
}

.content {
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px;
}

.maindivindex {
  width: 90%;
  max-width: 600px;
  margin: 20px auto;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.maindivindex .header {
  background: var(--surface-2);
  padding: 20px;
  border-bottom: 1px solid var(--border);
  font-size: 1.2rem;
  font-weight: 600;
  color: black;
}

.maindivindex .subfield {
  padding: 15px;
  font-size: 1.02rem;
  line-height: 1.7;
  color: #222;
}

.section-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
  background: var(--hover-bg);
}

.slideshow-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  padding: 20px;
}

.slide-text {
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 600ms ease;
  color: #000;
}

.slide-text.active {
  opacity: 1;
}

.button-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  padding: 20px;
}

.button-container button {
  border: 0;
  cursor: pointer;
  padding: 12px 20px;
  font-size: 16px;
  color: #000;
  background: #e5e5e5;
  border-radius: var(--radius-sm);
}

.button-container button:hover {
  background: #d5d5d5;
}

footer {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  background: var(--nav-bg);
  color: #000;
  text-align: center;
  min-height: var(--footer-h);
  padding: 15px;
  z-index: 3;
}

.news-slider-section {
  padding: 40px 0;
  background: #f7f7f7;
}

.news-slide h3 {
  margin: 8px 0;
  font-size: 16px;
}

.news-slide p {
  font-size: 14px;
  opacity: .85;
}

.news-date {
  font-size: 12px;
  opacity: .7;
}

.news-slider-container {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  overflow: hidden;
  display: flex;
  align-items: center;
}

#newsSlider {
  position: relative;
  width: 100%;
  height: 100%;
}

.news-slide {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease;
}

.news-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: none;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

.slider-btn.prev {
  left: -30px; 
}

.slider-btn.next {
  right: -30px; 
}


@media (max-width: 600px) {

  header img {
    height: 80px;
  }

  .menu-toggle {
    display: block;
  }

  nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
  }

  nav ul.showing {
    display: flex;
  }

  nav ul li a {
    text-align: center;
  }

  .hero {
    padding: 60px 10px;
  }

  .maindivindex {
    width: 95%;
  }

  .button-container {
    flex-direction: column;
  }

  footer {
    position: static;
    font-size: 14px;
  }

  body {
    padding-bottom: 0;
  }

  .section-slide {
    display: none;
  }
}
