/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy: #142e42;
  --gold: #cba449;
  --teal: #76978a;
  --teal-light: #95b3a7;
  --teal-bg: rgba(146, 182, 180, 0.17);
  --white: #ffffff;
  --white-85: rgba(255, 255, 255, 0.85);
  --white-60: rgba(255, 255, 255, 0.6);
  --black: #000000;
  --text: #333333;
  --font-body: 'Fira Sans', sans-serif;
  --font-cursive: 'Allura', cursive;
  --max-width: 1190px;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--navy);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: var(--gold);
}

h1 {
  font-family: var(--font-cursive);
  color: var(--teal);
  font-weight: 400;
  font-size: 46px;
  line-height: 1.3;
}

h2 {
  font-family: var(--font-cursive);
  color: var(--teal);
  font-weight: 400;
  font-size: 40px;
}

h3 {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
}

strong {
  font-weight: 700;
}

.clear {
  clear: both;
}

/* ===== HEADER ===== */
#headerwrapper {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
}

#header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 100%;
  position: relative;
}

#logo {
  background: var(--navy);
  padding: 7px 30px 7px 0;
  border-radius: 0 0 25px 0;
  display: flex;
  align-items: center;
  width: 300px;
  height: 100px;
  flex-shrink: 0;
}

#logo a {
  display: flex;
  align-items: center;
  height: 100%;
  padding-left: 20px;
}

#logo img {
  height: 85px;
  width: auto;
}

#nav {
  flex: 1;
  padding-right: 115px;
}

#nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 0;
  margin: 0;
  padding: 0;
}

#nav li {
  position: relative;
}

#nav a {
  display: block;
  padding: 12px 14px;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  transition: color 0.3s;
}

#nav a:hover {
  color: var(--gold);
}

#nav .mx_current a {
  color: var(--gold);
}

.search-btn {
  position: absolute;
  right: 0;
  top: 0;
  background: var(--gold);
  width: 80px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 0 0 25px;
  cursor: pointer;
  border: none;
}

.search-btn img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
}

/* Mobile hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 12px;
  z-index: 200;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: var(--navy);
  transition: 0.3s;
  border-radius: 2px;
}

/* ===== SFEER (HERO IMAGE) ===== */
#sfeerwrapper {
  width: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}

#sfeer {
  height: 420px;
  position: relative;
}

/* Subtiel lichtglans-effect over het schilderij */
#sfeer::after {
  content: '';
  position: absolute;
  top: 0; left: -100%; right: 0; bottom: 0;
  width: 300%;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255,255,255,0.03) 38%,
    rgba(255,255,255,0.07) 40%,
    rgba(255,255,255,0.03) 42%,
    transparent 50%
  );
  animation: sfeer-glans 12s ease-in-out infinite;
  pointer-events: none;
}

@keyframes sfeer-glans {
  0%   { transform: translateX(-30%); }
  50%  { transform: translateX(30%); }
  100% { transform: translateX(-30%); }
}

/* ===== CONTENT ===== */
#contentwrapper {
  background: var(--white);
  max-width: 100%;
  overflow-x: hidden;
}

#content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 25px;
  text-align: center;
}

#content p {
  margin-bottom: 16px;
  line-height: 1.7;
}

#content h1 {
  margin: 40px 0 20px;
}

#content ul {
  text-align: left;
  max-width: 900px;
  margin: 0 auto 30px;
  padding-left: 25px;
}

#content li {
  margin-bottom: 12px;
  line-height: 1.6;
}

#content li ul {
  margin-top: 8px;
  margin-bottom: 8px;
}

/* ===== HOMEBOXES (PDF CARDS) ===== */
#blockwrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 50px;
  align-items: stretch;
}

.block {
  overflow: hidden;
  border-radius: 16px;
}

.block a {
  display: grid;
  grid-template-columns: 1fr 1fr;
  text-decoration: none;
  color: var(--white);
  min-height: 400px;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
}

.block a:hover {
  color: var(--white);
}

.image.homebox {
  background-size: cover;
  background-position: center;
  min-height: 400px;
}

.description.homebox {
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--white);
}

/* Alternating colors for description boxes */
.block:nth-child(1) .description.homebox {
  background: var(--gold);
}

.block:nth-child(2) .description.homebox {
  background: var(--navy);
}

.block:nth-child(3) .description.homebox {
  background: var(--navy);
}

.block:nth-child(4) .description.homebox {
  background: var(--teal);
}

.description.homebox .arrow {
  font-size: 24px;
  margin-bottom: 12px;
  opacity: 0.7;
}

.description.homebox h3 {
  color: var(--white);
  font-size: 22px;
  margin-bottom: 12px;
}

.description.homebox p {
  font-size: 15px;
  line-height: 1.6;
  opacity: 0.9;
}

.description.homebox em {
  font-style: italic;
}

/* ===== USP SECTION (3 icons) ===== */
#uspwrapper {
  background: var(--white);
}

#usps {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 25px 35px;
}

#usps ol {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}

#usps li {
  padding: 20px;
}

#usps li img {
  width: 100px;
  height: 100px;
  margin: 0 auto 16px;
}

#usps h3 {
  margin-bottom: 8px;
  color: var(--navy);
}

#usps a {
  color: var(--gold);
  font-weight: 600;
  text-decoration: underline;
}

#usps a:hover {
  color: var(--navy);
}

/* ===== BOTTOM (ABOUT SECTION) ===== */
#bottomwrapper {
  background: var(--white);
}

#bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 200px 1fr;
  overflow: hidden;
  border-radius: 16px;
}

#winkelimage {
  background-size: cover;
  background-position: center;
  min-height: 180px;
}

#winkeltekst {
  background: var(--navy);
  color: var(--white);
  padding: 30px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#winkeltekst h3 {
  color: var(--gold);
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

#winkeltekst p {
  line-height: 1.8;
  margin-bottom: 16px;
  font-size: 16px;
}

#winkeltekst h1 {
  color: var(--white);
  font-size: 36px;
  margin-top: 16px;
}

.icons {
  margin-top: 12px;
}

.icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: var(--white);
  font-size: 18px;
  transition: background 0.3s;
}

.icons a:hover {
  background: var(--gold);
  color: var(--white);
}

/* ===== FOOTER ===== */
#footerwrapper {
  background: var(--white);
  border-top: 1px solid #e5e5e5;
}

/* Footer with background image variant */
#footerwrapper.with-image {
  background-image: url('../images/maarten-jonathan-2.jpeg');
  background-size: cover;
  background-position: center top;
  position: relative;
  border-top: none;
}

#footerwrapper.with-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255,255,255,0.88);
}

#footerwrapper.with-image #footer {
  position: relative;
  z-index: 1;
}

#footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 30px 25px 20px;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 40px;
  font-size: 14px;
  color: var(--text);
}

#footer h3 {
  font-size: 16px;
  margin-bottom: 12px;
  color: var(--navy);
}

#footer ul {
  list-style: none;
}

#footer ul li {
  margin-bottom: 6px;
}

#footer a {
  color: var(--text);
  font-size: 14px;
}

#footer a:hover {
  color: var(--gold);
}

#footer p {
  line-height: 1.7;
  font-size: 14px;
}

#copyright {
  margin-top: 16px;
  font-size: 13px;
  color: #999;
}

#copyright a {
  color: #999;
}

/* ===== PAGE HEADER (subpages) ===== */
.page-header-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 25px 20px;
}

.breadcrumb {
  font-size: 14px;
  color: #999;
  margin-bottom: 8px;
}

.breadcrumb a {
  color: #999;
}

.breadcrumb a:hover {
  color: var(--gold);
}

/* ===== BIJBELSTUDIES PAGE ===== */
.studies-intro {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 25px 10px;
}

.studies-intro p {
  margin-bottom: 12px;
  line-height: 1.7;
}

.studies-intro ul {
  padding-left: 25px;
  margin: 16px 0;
}

.studies-intro li {
  margin-bottom: 10px;
  line-height: 1.7;
}

.studies-intro .gold {
  color: var(--gold);
  font-weight: 700;
}

.studies-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 25px 60px;
}

/* 3-column tile layout for discipleship */
.studies-grid.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.studies-grid.tiles .study-card {
  grid-template-columns: 1fr;
  margin-bottom: 0;
  min-height: auto;
}
.studies-grid.tiles .study-card-image {
  min-height: 200px;
}
.studies-grid.tiles .study-card-content {
  padding: 20px 24px;
}
.studies-grid.tiles .study-card-content h3 {
  font-size: 18px;
}
.studies-grid.tiles .study-card-content p {
  font-size: 14px;
}

/* Inline bijbelvragen in discipelschapslessen */
/* Uitgegreisde (binnenkort beschikbaar) kaarten */
.study-card.disabled {
  opacity: 0.25;
  pointer-events: none;
  filter: grayscale(100%);
}
.study-card.disabled .study-card-content::after {
  content: 'Binnenkort beschikbaar';
  display: block;
  font-style: italic;
  font-size: 13px;
  color: var(--white-60);
  margin-top: 8px;
}

/* Auth button */
#auth-container {
  position: fixed;
  top: 80px;
  right: 16px;
  z-index: 400;
  display: flex;
  gap: 6px;
  align-items: center;
}
.auth-btn {
  background: var(--gold);
  color: var(--navy);
  border: none;
  padding: 6px 14px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.auth-btn:hover {
  background: #d4b76a;
}
.auth-btn.logged-in {
  background: var(--navy);
  color: var(--gold);
  border: 1px solid var(--gold);
}

/* Search overlay */
#search-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 500;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
}
#search-box {
  background: var(--white);
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  overflow: hidden;
}
#search-input {
  width: 100%;
  padding: 16px 20px;
  border: none;
  font-size: 18px;
  font-family: var(--font-body);
  outline: none;
  border-bottom: 1px solid #eee;
}
#search-results {
  max-height: 300px;
  overflow-y: auto;
}
a.search-result, div.search-result {
  display: block;
  padding: 12px 20px;
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  border-bottom: 1px solid #f0f0f0;
}
a.search-result:hover {
  background: rgba(203,164,73,0.1);
  color: var(--gold);
}

/* Antwoorden badge */
#antwoorden-badge {
  position: fixed;
  top: 120px;
  right: 16px;
  background: var(--navy);
  color: var(--white-60);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 13px;
  z-index: 300;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
#antwoorden-badge.has-answers {
  opacity: 1;
  pointer-events: auto;
}
#badge-count {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
  border-radius: 50%;
  margin-right: 6px;
  font-size: 13px;
}

.bijbelvraag {
  background: var(--teal-bg);
  border-left: 4px solid var(--gold);
  padding: 14px 20px;
  margin: 24px 0;
  border-radius: 0 8px 8px 0;
}
.bijbelvraag p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}
.bijbelvraag strong {
  color: var(--gold);
}
.bijbelvraag textarea {
  width: 100%;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
  min-height: 60px;
  background: #fff;
  transition: border-color 0.2s;
}
.bijbelvraag textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(203, 164, 73, 0.2);
}
.bijbelvraag .opgeslagen {
  font-size: 11px;
  color: var(--teal);
  margin-top: 4px;
  opacity: 0;
  transition: opacity 0.3s;
}
.bijbelvraag .opgeslagen.show {
  opacity: 1;
}

.study-card {
  display: grid;
  grid-template-columns: 380px 1fr;
  margin-bottom: 24px;
  overflow: hidden;
  border-radius: 16px;
  min-height: 400px;
}

.study-card-image {
  background-size: cover;
  background-position: center;
  min-height: 400px;
  position: relative;
}

.study-card-date {
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: var(--white);
  font-size: 14px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.study-card-date .arrow {
  font-size: 20px;
  display: block;
  margin-bottom: 4px;
}

.study-card-content {
  padding: 35px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Color pattern: teal, navy, gold, teal, navy, gold... */
.study-card:nth-child(6n+1) .study-card-content {
  background: linear-gradient(to right, var(--teal) 50%, var(--teal-light) 50%);
  color: var(--white);
}
.study-card:nth-child(6n+2) .study-card-content {
  background: var(--navy);
  color: var(--white);
}
.study-card:nth-child(6n+3) .study-card-content {
  background: var(--gold);
  color: var(--white);
}
.study-card:nth-child(6n+3) .study-card-content h3 {
  color: var(--navy);
}
.study-card:nth-child(6n+4) .study-card-content {
  background: linear-gradient(to right, var(--teal) 50%, var(--teal-light) 50%);
  color: var(--white);
}
.study-card:nth-child(6n+5) .study-card-content {
  background: var(--navy);
  color: var(--white);
}
.study-card:nth-child(6n+6) .study-card-content {
  background: var(--gold);
  color: var(--white);
}

.study-card {
  cursor: pointer;
  position: relative;
}
.study-card-content h3 {
  color: var(--white);
  font-size: 22px;
  margin-bottom: 12px;
}

.study-card-content .gold {
  color: var(--gold);
  font-weight: 700;
}

.study-card-content .red {
  color: #e85555;
  font-weight: 700;
}

.study-card-content p {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 14px;
}

.study-card-content a.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  color: var(--white);
  padding: 10px 24px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.3s;
  align-self: flex-start;
  margin-top: 8px;
}

.study-card-content a.btn:hover {
  background: rgba(255,255,255,0.3);
  color: var(--white);
}
.study-card-content a:not(.btn) {
  color: var(--white);
  text-decoration: underline;
}

/* ===== VIDEO PAGE ===== */
.video-intro {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 25px;
}

.video-layout {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 25px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
}

.video-card {
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

.video-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.video-card:hover img {
  transform: scale(1.03);
}

.video-card .video-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: var(--white);
  padding: 40px 16px 16px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.video-card .play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(0,0,0,0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.video-card:hover .play-icon {
  background: var(--gold);
}

.play-icon::after {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent white;
  margin-left: 4px;
}

.video-about {
  background: var(--navy);
  color: var(--white);
  padding: 40px 30px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.video-about h3 {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 16px;
  margin-bottom: 16px;
}

.video-about p {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 12px;
}

.video-about h1 {
  color: var(--white);
  font-size: 30px;
  margin-top: 12px;
}

/* ===== STRAAT PAGE ===== */
.straat-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 25px 60px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 50px;
}

.straat-main p {
  margin-bottom: 16px;
  line-height: 1.7;
}

.straat-main h3 {
  margin: 30px 0 12px;
  color: var(--navy);
}

.straat-main ul {
  margin: 12px 0 20px;
  padding-left: 20px;
}

.straat-main li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.straat-sidebar {
  background: var(--navy);
  color: var(--white);
  padding: 40px 30px;
  border-radius: 16px;
  align-self: start;
}

.straat-sidebar h3 {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 16px;
  margin-bottom: 16px;
}

.straat-sidebar p {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 12px;
}

.straat-sidebar h1 {
  color: var(--white);
  font-size: 30px;
  margin-top: 12px;
}

/* ===== CONTACT PAGE ===== */
.contact-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 25px 60px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 50px;
}

.contact-intro {
  margin-bottom: 20px;
  color: var(--text);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}

.form-group input,
.form-group textarea {
  padding: 12px 14px;
  border: 1px solid #ccc;
  font-family: var(--font-body);
  font-size: 16px;
  transition: border-color 0.3s;
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--navy);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

.form-actions {
  margin-top: 16px;
  display: flex;
  gap: 8px;
}

.btn-submit {
  background: var(--navy);
  color: var(--white);
  border: none;
  padding: 12px 30px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-submit:hover {
  background: var(--gold);
}

.btn-reset {
  background: var(--gold);
  color: var(--white);
  border: none;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-reset:hover {
  background: var(--navy);
}

.contact-sidebar {
  background: var(--navy);
  color: var(--white);
  padding: 40px 30px;
  border-radius: 16px;
  align-self: start;
}

.contact-sidebar h3 {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 16px;
  margin-bottom: 16px;
}

.contact-sidebar p {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 12px;
}

.contact-sidebar h1 {
  color: var(--white);
  font-size: 30px;
  margin-top: 12px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  #blockwrapper {
    grid-template-columns: 1fr;
  }
  .block a {
    grid-template-columns: 1fr 1fr;
  }
  .video-layout {
    grid-template-columns: repeat(2, 1fr);
  }
  .study-card {
    grid-template-columns: 250px 1fr;
  }
  .studies-grid.tiles {
    grid-template-columns: repeat(2, 1fr);
  }
  #bottom {
    grid-template-columns: 1fr;
  }
  #winkelimage {
    min-height: 200px;
  }
}

@media (max-width: 768px) {
  #logo {
    width: 200px;
    height: 70px;
  }
  #logo img {
    height: 55px;
  }
  .search-btn {
    width: 50px;
    height: 70px;
    right: 50px;
  }
  #nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    z-index: 150;
    padding: 100px 30px 30px;
  }
  #nav.open {
    display: block;
  }
  #nav ul {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }
  #nav a {
    font-size: 20px;
    padding: 16px;
  }
  .hamburger {
    display: flex;
    position: relative;
    z-index: 200;
  }
  .hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }
  .hamburger.open span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
  h1 {
    font-size: 32px;
  }
  h2 {
    font-size: 30px;
  }
  #sfeer {
    height: 200px;
  }
  #content {
    padding: 40px 20px;
  }
  #blockwrapper {
    grid-template-columns: 1fr;
  }
  .block a {
    grid-template-columns: 1fr;
  }
  .image.homebox {
    min-height: 250px;
  }
  #usps ol {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .video-layout {
    grid-template-columns: 1fr;
  }
  .study-card {
    grid-template-columns: 1fr;
  }
  .studies-grid.tiles {
    grid-template-columns: 1fr;
  }
  .study-card-image {
    min-height: 200px;
  }
  .straat-content,
  .contact-content {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  #footer {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ===== ARTICLE PAGE ===== */
.article-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 25px 60px;
}

.article-section {
  margin-bottom: 50px;
}

.article-section h2 {
  font-family: var(--font-body);
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 20px;
  line-height: 1.4;
}

.article-section h3 {
  margin: 24px 0 12px;
}

.article-section p {
  margin-bottom: 14px;
  line-height: 1.8;
}

.article-section ul,
.article-section ol {
  padding-left: 25px;
  margin: 12px 0 20px;
}

.article-section li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.article-intro {
  font-size: 20px;
  color: var(--navy);
}

.article-note {
  font-size: 14px;
  color: #777;
  border-top: 1px solid #e5e5e5;
  padding-top: 16px;
  margin-top: 24px;
}

.article-note a {
  color: var(--gold);
}

.article-hero {
  width: calc(100% + 50px);
  margin-left: -25px;
  height: 500px;
  background-size: cover;
  background-position: center;
  border-radius: 0;
  margin-bottom: 30px;
}

@media (min-width: 821px) {
  .article-hero {
    width: calc(100% + 200px);
    margin-left: -100px;
    height: 550px;
  }
}

.bible-verse {
  border-left: 4px solid var(--gold);
  padding: 16px 24px;
  margin: 20px 0;
  background: var(--teal-bg);
  border-radius: 0 8px 8px 0;
  font-size: 16px;
  line-height: 1.8;
}

.bible-verse.highlighted {
  background: rgba(203, 164, 73, 0.12);
  border-left-color: var(--red, #e85555);
}

.bible-verse .red,
.article-section .red {
  color: #e85555;
  font-weight: 700;
}

.bible-verse .gold,
.article-section .gold {
  color: var(--gold);
  font-weight: 700;
}

.article-highlight {
  padding: 30px 35px;
  border-radius: 12px;
  margin: 30px 0;
}

.article-highlight p {
  margin-bottom: 0;
  font-size: 17px;
  line-height: 1.7;
}

.article-highlight.gold-bg {
  background: var(--gold);
  color: var(--white);
}

.article-highlight.navy-bg {
  background: var(--navy);
  color: var(--white);
}

.article-highlight.teal-bg {
  background: var(--teal);
  color: var(--white);
}

.article-highlight.navy-bg h2,
.article-highlight.navy-bg h3 {
  color: var(--gold);
}

.ten-commandments {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 30px;
  margin: 20px 0 30px;
}

.ten-commandments p {
  margin-bottom: 12px;
  line-height: 1.7;
}

.three-parts {
  background: var(--teal-bg);
  padding: 20px 24px;
  border-radius: 8px;
  margin: 20px 0;
}

.three-parts p {
  margin-bottom: 6px;
}

.psalm-section p {
  line-height: 2;
}

.article-step .step-header {
  margin-bottom: 24px;
}

.step-number {
  display: inline-block;
  font-size: 22px;
  font-weight: 700;
  color: #e85555;
  margin-bottom: 8px;
}

.identification-list {
  list-style: none;
  padding-left: 0;
  counter-reset: id-counter;
}

.identification-list li {
  counter-increment: id-counter;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.identification-list li::before {
  content: counter(id-counter) ")";
  font-weight: 700;
  margin-right: 12px;
  color: var(--navy);
}

.prayer {
  background: rgba(255,255,255,0.1);
  border-left: 4px solid var(--gold);
  padding: 24px 30px;
  border-radius: 0 8px 8px 0;
  margin: 24px 0;
  font-size: 18px;
  line-height: 2;
  color: var(--white);
}

.prayer-section h2 {
  color: var(--gold) !important;
  font-family: var(--font-body) !important;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  border-radius: 8px;
  overflow: hidden;
}

.comparison-table th {
  background: var(--navy);
  color: var(--gold);
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
}

.comparison-table td {
  padding: 10px 16px;
  border-bottom: 1px solid #e5e5e5;
  background: var(--teal-bg);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.identification-steps {
  margin: 20px 0;
}

.id-step {
  border-left: 4px solid var(--gold);
  padding: 20px 24px;
  margin-bottom: 24px;
  background: rgba(20, 46, 66, 0.03);
  border-radius: 0 8px 8px 0;
}

.id-step h3 {
  margin-bottom: 8px;
}

.btn-download {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 25px;
  font-weight: 700;
  font-size: 16px;
  transition: background 0.3s;
  text-decoration: none;
}

.btn-download:hover {
  background: var(--gold);
  color: var(--white);
}

@media (max-width: 768px) {
  .article-hero {
    width: calc(100% + 40px);
    margin-left: -20px;
    height: 300px;
  }
  .article-section h2 {
    font-size: 22px;
  }
  .ten-commandments {
    grid-template-columns: 1fr;
  }
  .article-highlight {
    padding: 20px 20px;
  }
  .bible-verse {
    padding: 12px 16px;
  }
  .prayer {
    padding: 16px 20px;
    font-size: 16px;
  }
  /* Footer: verberg kolom 1 en 2 op mobiel, toon alleen copyright */
  #footer {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 16px 25px;
  }
  #footer #column-1,
  #footer #column-2 {
    display: none;
  }
  #footer #column-3 h3 {
    display: none;
  }
  #footer #column-3 ul {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
  }
  #footer #column-3 ul li {
    margin-bottom: 0;
  }
  #copyright {
    margin-top: 8px;
  }
}

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 1;
  transform: none;
}

/* ===== VERSION SELECTOR ===== */
.version-selector {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 15px 20px;
  background: var(--teal-bg);
  border-radius: 8px;
}

.version-selector p {
  margin: 0;
  margin-right: 5px;
}

.version-btn {
  display: inline-block;
  padding: 8px 20px;
  border: 2px solid var(--navy);
  border-radius: 25px;
  color: var(--navy);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
}

.version-btn:hover {
  background: var(--navy);
  color: var(--white);
}

.version-btn.version-active {
  background: var(--navy);
  color: var(--white);
  pointer-events: none;
}

/* ===== PRAYER STUDY (two-column layout) ===== */
.ps-header {
  display: grid;
  grid-template-columns: 280px 1fr;
  max-width: var(--max-width);
  margin: 0 auto 0;
  border-bottom: 4px solid var(--gold);
}

.ps-header-left {
  background: var(--navy);
  padding: 30px 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ps-header-left img {
  max-width: 80px;
  margin-bottom: 10px;
}

.ps-header-title {
  font-size: 52px;
  font-weight: 700;
  color: var(--white);
  margin-top: 15px;
}

.ps-header-date {
  color: var(--white-60);
  font-size: 14px;
  margin-top: 5px;
}

.ps-header-right {
  padding: 30px 35px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ps-header-right h1 {
  font-size: 28px;
  color: var(--gold);
  line-height: 1.3;
  margin-bottom: 8px;
}

.ps-header-right .ps-author {
  font-style: italic;
  color: var(--text);
  margin-bottom: 15px;
  font-size: 15px;
}

.ps-greek {
  background: var(--teal-bg);
  padding: 12px 18px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.6;
}

.ps-greek-term {
  color: var(--teal);
  font-style: italic;
  margin-right: 10px;
}

/* Two-column rows */
.ps-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  max-width: var(--max-width);
  margin: 0 auto;
}

.ps-verse {
  background: var(--navy);
  padding: 25px 25px;
  font-style: italic;
  color: var(--white);
  font-size: 15px;
  line-height: 1.6;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.ps-verse:first-child,
.ps-row:first-child .ps-verse {
  border-top: none;
}

.ps-verse .verse-ref {
  color: #cc3333;
  font-weight: 700;
  font-style: normal;
  display: block;
  margin-bottom: 4px;
}

.ps-verse .verse-text {
  display: block;
}

.ps-verse .verse-gold {
  color: var(--gold);
}

.ps-verse .verse-bold {
  font-weight: 700;
  color: var(--white);
}

.ps-verse .verse-red-bold {
  color: #cc3333;
  font-weight: 700;
}

.ps-verse-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.25);
  margin: 20px 0;
}

.ps-verse-group + .ps-verse-group {
  margin-top: 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.25);
}

.ps-explain {
  padding: 25px 35px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  position: relative;
}

.ps-explain::before {
  content: '';
  position: absolute;
  left: 0;
  top: 32px;
  width: 10px;
  height: 10px;
  border: 2px solid #999;
  border-radius: 50%;
  transform: translateX(-5px);
}

.ps-row:first-child .ps-explain::before,
.ps-row-no-marker .ps-explain::before {
  display: none;
}

.ps-explain .lesson-title {
  color: #cc3333;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 10px;
}

.ps-explain .lesson-title-gold {
  color: var(--gold);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 10px;
}

.ps-explain h2 {
  font-size: 30px;
  color: var(--navy);
  margin-bottom: 12px;
}

.ps-explain h3 {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--navy);
}

.ps-explain .ps-practical {
  font-weight: 700;
  margin-top: 12px;
  margin-bottom: 4px;
}

.ps-explain ul {
  margin-left: 20px;
  margin-bottom: 10px;
}

.ps-explain ul li {
  margin-bottom: 3px;
}

.ps-explain p {
  margin-bottom: 10px;
}

/* Column headers row */
.ps-col-headers {
  display: grid;
  grid-template-columns: 280px 1fr;
  max-width: var(--max-width);
  margin: 0 auto;
}

.ps-col-header-left {
  background: var(--navy);
  padding: 25px 25px 10px;
}

.ps-col-header-left h2 {
  color: var(--white);
  font-size: 26px;
}

.ps-col-header-right {
  padding: 25px 35px 10px;
}

.ps-col-header-right h2 {
  color: var(--navy);
  font-size: 26px;
}

/* Psalm block inside explain column */
.ps-psalm-block {
  margin: 15px 0;
}

.ps-psalm-block .psalm-title {
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 8px;
}

.ps-psalm-block p {
  font-style: italic;
  margin-bottom: 4px;
}

.ps-psalm-block .psalm-indent {
  padding-left: 30px;
}

/* Responsive */
@media (max-width: 768px) {
  .ps-header,
  .ps-row,
  .ps-col-headers {
    grid-template-columns: 1fr;
  }

  .ps-header-left {
    padding: 20px;
  }

  .ps-header-title {
    font-size: 38px;
  }

  .ps-verse {
    border-top: none;
  }

  .ps-explain::before {
    display: none;
  }

  .ps-explain {
    padding: 20px 20px;
    border-top: 3px solid var(--gold);
  }

  .ps-verse {
    padding: 20px 20px;
  }
}

/* ===== PRINT STYLES ===== */
/* Vragen-only mode (voor PDF generatie) */
body.vragen-only #headerwrapper,
body.vragen-only #sfeerwrapper,
body.vragen-only #footerwrapper,
body.vragen-only #antwoorden-badge,
body.vragen-only #auth-container,
body.vragen-only .article-hero,
body.vragen-only .btn,
body.vragen-only .breadcrumb,
body.vragen-only .bible-verse,
body.vragen-only .article-highlight:not(#memo-blok),
body.vragen-only .ten-commandments,
body.vragen-only .bijbelvraag textarea,
body.vragen-only .bijbelvraag .opgeslagen {
  display: none !important;
}
body.vragen-only .page-header-content {
  background: none;
  color: #000;
  padding: 10px 0;
}
body.vragen-only .page-header-content h1 { color: #000; }
body.vragen-only .article-hero { display: none !important; }
body.vragen-only .article-content > section > p:not(.bijbelvraag p) { display: none !important; }
.pdf-koptekst { display: none; }
body.vragen-only .pdf-koptekst {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #cba449;
  padding-bottom: 6px;
  margin-bottom: 12px;
  font-size: 9pt;
  color: #888;
}
body.vragen-only .pdf-koptekst img { height: 28px; }
body.vragen-only .pdf-koptekst .right { text-align: right; line-height: 1.4; }
body.vragen-only .article-content p:not(.bijbelvraag p) {
  display: none !important;
}
body.vragen-only .article-content ul:not(.bijbelvraag ul),
body.vragen-only .article-content ol:not(#memo-blok ol) {
  display: none !important;
}
body.vragen-only .article-section { opacity:1 !important; transform:none !important; }
body.vragen-only .bijbelvraag {
  border-left: 3px solid #333;
  background: none;
  margin: 8px 0;
  padding: 6px 12px;
}
/* bijbelvraag::after regels worden bepaald door pdf-vragen.css */

/* PDF export mode */
body.pdf-export .btn,
body.pdf-export #headerwrapper,
body.pdf-export #sfeerwrapper,
body.pdf-export #footerwrapper,
body.pdf-export #antwoorden-badge,
body.pdf-export #auth-container,
body.pdf-export .bijbelvraag textarea,
body.pdf-export .bijbelvraag .opgeslagen,
body.pdf-export .breadcrumb {
  display: none !important;
}
body.pdf-export .page-header-content {
  background: none;
  color: #000;
  padding: 10px 0;
  border-bottom: 2px solid #000;
}
body.pdf-export .page-header-content h1 {
  color: #000;
  font-size: 22px;
}
body.pdf-export .article-section {
  opacity: 1 !important;
  transform: none !important;
}
body.pdf-export .bijbelvraag {
  border-left: 3px solid #333;
  background: none;
  margin: 12px 0;
  padding: 8px 12px;
}
body.pdf-export .bijbelvraag::after {
  content: '.......................................................................................................................\A.......................................................................................................................\A.......................................................................................................................';
  white-space: pre-wrap;
  display: block;
  margin-top: 8px;
  color: #bbb;
  font-size: 10pt;
  line-height: 2;
  letter-spacing: 1px;
}
body.pdf-export .bible-verse {
  border-left: 3px solid #888;
  background: #f5f5f5;
}
body.pdf-export .article-highlight {
  background: #eee !important;
  color: #000 !important;
  border: 1px solid #999;
}
body.pdf-export .article-highlight * { color: #000 !important; }
body.pdf-export .article-hero {
  height: 150px !important;
}

@media print {
  @page {
    margin: 22mm 20mm;
  }

  /* Verberg UI elementen */
  #headerwrapper, #sfeerwrapper, #footerwrapper,
  .hamburger, .search-btn, .btn,
  #bottomwrapper, #antwoorden-badge,
  #auth-container, #search-overlay {
    display: none !important;
  }

  body {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 11pt;
    line-height: 1.6;
    color: #000;
    background: #fff;
    margin: 0;
    padding: 0;
  }

  /* Titel */
  .page-header-content {
    background: none;
    color: #000;
    padding: 0 0 8mm 0;
    border-bottom: 2px solid #000;
    margin-bottom: 6mm;
  }
  .page-header-content h1 {
    color: #000;
    font-size: 20pt;
    font-family: 'Georgia', serif;
    margin: 0;
  }
  .breadcrumb { display: none; }

  /* Hero afbeelding: compact tonen */
  .article-hero {
    height: 40mm !important;
    margin: 0 0 6mm 0 !important;
    border-radius: 0 !important;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  /* Content */
  .article-content {
    max-width: 100%;
    padding: 0;
    margin: 0;
  }

  /* Secties */
  .article-section {
    padding: 0 !important;
    margin: 0 0 4mm 0 !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .article-section h2 {
    font-size: 14pt;
    font-family: 'Georgia', serif;
    border-bottom: 1px solid #ccc;
    padding-bottom: 2mm;
    margin: 6mm 0 3mm 0;
    page-break-after: avoid;
  }
  .article-section h3 {
    font-size: 12pt;
    margin: 4mm 0 2mm 0;
    page-break-after: avoid;
  }

  /* Bijbelteksten */
  .bible-verse {
    border-left: 3pt solid #888;
    padding: 3mm 4mm;
    margin: 3mm 0;
    background: #f5f5f5 !important;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
    page-break-inside: avoid;
    font-style: italic;
  }
  .bible-verse .gold { color: #333 !important; font-weight: bold; }
  .bible-verse .red { color: #333 !important; font-weight: bold; text-decoration: underline; }

  /* Vragen: lesboek-stijl met schrijflijnen */
  .bijbelvraag {
    border: none;
    border-left: 3pt solid #333;
    padding: 3mm 4mm 2mm 4mm;
    margin: 4mm 0;
    background: none !important;
    page-break-inside: avoid;
  }
  .bijbelvraag p {
    margin-bottom: 2mm;
  }
  .bijbelvraag textarea {
    display: none;
  }
  .bijbelvraag .opgeslagen { display: none; }
  /* Puntjeslijnen worden bepaald door pdf-vragen.css */
  .bijbelvraag::after {
    display: none;
    font-size: 9pt;
    line-height: 2.2;
    letter-spacing: 0;
  }

  /* Highlight blokken */
  .article-highlight {
    background: #eee !important;
    color: #000 !important;
    padding: 3mm 4mm;
    border: 1pt solid #999;
    margin: 3mm 0;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
    page-break-inside: avoid;
  }
  .article-highlight * { color: #000 !important; }

  /* Overige */
  .gold, .red { color: #000 !important; }
  .red { text-decoration: underline; }

  /* Memorisatieteksten op eigen pagina */
  .article-section:has(h2:first-child) h2 {
    page-break-before: auto;
  }
}
