* {
  box-sizing: border-box;
}

:root {
  --brown: #3E2C1C;
  --beige: #F9EBD7;
  --orange: #E67E22;
  --gold: #F4B942;
  --white: #FFFFFF;
  --dark-grey: #2E2E2E;
}

/* Algemene uitleg */
body {
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  background-color: #f5f5f5;  /* fallback kleur */
  color: var(--brown);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

body.af {
  background: url('../images/Road2theCross_af.png') no-repeat center center fixed;
  background-size: contain;
}

body.en {
  background: url('../images/Road2theCross_en.png') no-repeat center center fixed;
  background-size: contain;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 80px;   /* beheer logo-grootte */
  width: auto;
}

/* Knoppies */
button, .btn {
  background-color: var(--orange);
  color: var(--white);
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 4px;
  cursor: pointer;
}
button:hover, .btn:hover {
  background-color: var(--gold);
  color: var(--brown);
}

/* Headings */
h1, h2, h3 {
  color: var(--brown);
  text-align: left;
}

/* Kaart */
.card {
  background-color: var(--beige);
  border: 1px solid var(--orange);
  border-radius: 6px;
  padding: 1rem;
  margin: 1rem auto;
  max-width: 900px;
  box-shadow: 0 1px 3px rgba(62,44,28,0.2);
}

/* Hero Section */
.hero {
  display: flex;
  flex-direction: column;   /* beeld bo, teks onder */
  align-items: center;      /* alles sentreer */
  text-align: center;
  background-color: var(--beige);   /* beige agtergrond */
  padding: 2rem 1rem;
}

.hero-image img {
  width: 100%;
  max-width: 1200px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Mobile screens */
@media (max-width: 480px) {
  .hero-image img {
    width: 100%;          /* pas by skermbreedte */
    max-height: 250px;    /* beperk hoogte */
    object-fit: cover;    /* sny mooi in */
  }
}

.hero-content {
  margin-top: 1rem;         /* spasie tussen beeld en teks */
}

.hero-content h1 {
  color: #3E2C1C;           /* bruin */
}

.hero-content p {
  color: #F4B942;           /* goud slogan */
  font-size: 1.2rem;
}

.hero-content .btn {
  background-color: #E67E22; /* oranje */
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  text-decoration: none;
  margin-top: 0.8rem;
}
.hero-content .btn:hover {
  background-color: #F4B942;
  color: #3E2C1C;
}

/* Page Wrapper */
.page-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: left;
}
.intro {
  background-color: var(--white);
  padding: 2rem 1rem;
}

.intro h2,
.intro p {
  text-align: left;   /* hou teks links */
}

.intro .btn {
  display: block;     /* maak knoppie 'n blok */
  margin: 1rem auto;  /* auto links/regts → sentreer */
  text-align: center;
  background-color: var(--orange);
  color: var(--white);
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  text-decoration: none;
  width: fit-content; /* hou net so breed soos teks */
}

.intro .btn:hover {
  background-color: var(--gold);
  color: var(--brown);
}
.videos {
  padding: 2rem 1rem;
}

.video-item h3 {
  margin-bottom: 0.5rem;
  color: var(--brown);
}

.video-item embed {
  display: block;
  margin: 0 auto;   /* sentreer die video */
  border: 2px solid var(--gold);
  border-radius: 6px;
}

.video-item {
  max-width: 560px;       /* hou video + comment dieselfde breedte */
  margin: 0 auto 2rem auto;
}

/* Mobile screens */
@media (max-width: 480px) {
  .video-item {
    width: 100%;          /* laat dit heeltemal inpas */
    max-width: 100%;      /* geen vaste breedte */
    margin: 0 auto 1rem auto;
  }

  .video-item embed,
  .video-item iframe {
    width: 100%;          /* video self pas in */
    height: auto;         /* hoogte skaal saam */
  }

  .comment-form textarea,
  .comment-form button {
    width: 100%;          /* form elemente pas ook in */
  }
}

.comment-form {
  display: flex;
  flex-direction: column; /* sit textarea bo en knoppie onder */
  margin-top: 1rem;
}

.comment-form textarea {
  width: 100%;            /* presies so breed soos video */
  min-height: 80px;
  margin-bottom: 0.5rem;
  resize: vertical;       /* laat user groter maak indien nodig */
}

.comment-form button {
  align-self: flex-end;   /* knoppie regs onder */
  background-color: var(--orange);
  color: #fff;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  width: auto;
}

.comment-form button:hover {
  background-color: var(--gold);
  color: var(--brown);
}

.article-item, .thread-item {
  max-width: 800px;
  margin: 0 auto 2rem auto;
  padding: 1rem;
  background: #f9f9f9;
  border-radius: 6px;
}

.comment-form {
  display: flex;
  flex-direction: column;
  margin-top: 1rem;
}

.comment-form textarea {
  width: 100%;
  min-height: 100px;
  margin-bottom: 0.5rem;
}

.comment-form button {
  width: 100%;
  background-color: var(--orange);
  color: #fff;
  padding: 0.7rem;
  border: none;
  border-radius: 4px;
}
.dropdown {
  position: relative;
}
.dropdown-menu {
  display: none;
  position: absolute;
  background: #2e3a5f;
  list-style: none;
  padding: 0.5rem;
  margin: 0;
}
.dropdown-menu li a {
  display: block;
  padding: 0.5rem;
  color: #fff;
}
.dropdown:hover .dropdown-menu {
  display: block;
}

.profile-card {
  background: #fff;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.profile-card p {
  margin: 8px 0;
  font-size: 15px;
}
.profile-edit form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-edit form input,
.profile-edit form textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.profile-edit form button {
  background-color: #2c3e50;
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 4px;
  cursor: pointer;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-links {
    flex-direction: column;
    gap: 0.5rem;
  }
  .logo img {
    max-height: 60px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 1rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  form, table {
    width: 100%;
  }
  table th, table td {
    font-size: 13px;
    padding: 6px;
  }
}

@media (max-width: 480px) {
  .footer-links {
    flex-direction: column;
    align-items: center;
  }
}

.form-container {
  max-width: 500px;
  margin: 40px auto;
  background: #fff;
  padding: 20px;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.form-container h1 {
  text-align: center;
  margin-bottom: 20px;
  color: var(--brown);
}

form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

form label {
  font-weight: bold;
  color: var(--brown);
}

form input {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

form button {
  background-color: var(--orange);
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 15px;
}

form button:hover {
  background-color: var(--gold);
  color: var(--brown);
}

.form-container a {
  color: #2c3e50;
  text-decoration: none;
}

.form-container a:hover {
  text-decoration: underline;
}

.grid-form {
  display: grid;
  grid-template-columns: 1fr 1fr; /* twee kolomme */
  gap: 15px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  grid-column: span 2; /* knoppie oor albei kolomme */
}

@media (max-width: 768px) {
  .grid-form {
    grid-template-columns: 1fr; /* enkel kolom */
  }
  .form-group.full-width {
    grid-column: span 1; /* nie meer oor 2 kolomme nie */
  }
}

:root {
  --brown: #3E2C1C;
  --white: #FFFFFF;
  --orange: #E67E22;
}

/* Header */
.site-header {
  background-color: var(--brown);
  color: var(--white);
  padding: 0.8rem 1rem;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo */
.logo img {
  height: 50px;
}

/* Language switcher */
.lang-switcher select {
  padding: 0.3rem;
  border-radius: 4px;
  border: none;
}

/* Navbar */
.navbar {
  position: relative;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  display: block;
  padding: 0.5rem 0.75rem;
}

.nav-links a:hover {
  color: var(--orange);
}

/* Hamburger button */
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
}

/* Mobile */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background-color: var(--brown);
    position: absolute;
    top: 100%;
    right: 0;
    width: 220px;
    z-index: 999;
    border-top: 2px solid var(--orange);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    padding: 0.75rem;
  }
}

/* Prayer form pas by algemene vormstyl */
.prayer-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #fff;
  padding: 20px;
  margin: 20px 0;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  max-width: 700px;
}

.prayer-form label {
  font-weight: bold;
  color: #2c3e50;
}

.prayer-form textarea {
  width: 98%;
  min-height: 120px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.2s;
}

/* Status labels */
.status-open {
  color: #c0392b;          /* rooi */
  font-weight: bold;
}

.status-beantwoord {
  color: #27ae60;          /* groen */
  font-weight: bold;
}

.latest {
  background: #fff;
  padding: 20px;
  margin: 20px 0;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.latest h2 {
  margin-bottom: 15px;
  color: #2c3e50;
}

.latest-items {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.latest-item {
  flex: 1;
  min-width: 200px;
  background: #f9f9f9;
  padding: 15px;
  border-radius: 4px;
}

.latest-item h3 {
  margin-top: 0;
}

.latest-item a {
  display: inline-block;
  margin-top: 10px;
  color: #2c3e50;
  font-weight: bold;
  text-decoration: none;
}

.latest-item a:hover {
  text-decoration: underline;
}

.emoji-icon {
  height: 1.5em;          /* pas by teksgrootte */
  width: auto;
  vertical-align: middle;
  margin-right: 0.3em;  /* klein spasie tussen ikoon en teks */
}

.site-footer {
  background-color: #3b2a1a;
  color: #f5f5f5;
  text-align: center;
  padding: 20px 10px;
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 10px;
}

.footer-links a {
  color: #f5c97a;
  text-decoration: none;
  font-size: 13px;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* Mobile optimalisering */
@media (max-width: 480px) {
  .footer-links {
    flex-direction: column;
    gap: 8px;
  }
  .site-footer {
    font-size: 13px;
    padding: 15px 5px;
  }
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
  padding-bottom: 80px; /* spasie vir footer */
}

.video-container {
  position: relative;
  width: 100%;
  max-width: 400px;       /* pas aan vir jou blad */
  max-height: 500px;      /* hou dit binne die skerm */
  margin: 20px auto;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.video-container video {
  width: auto;
  height: 100%;
  max-height: 500px;
  object-fit: contain;    /* hou hele video sigbaar */
  border-radius: 8px;
}

.video-container iframe {
  width: auto;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

/* Hou verhouding 16:9 */
.video-container.youtube {
  padding-top: 56.25%; /* 16:9 verhouding */
  height: 0;
}

@media (max-width: 600px) {
  .video-container {
    max-height: 280px;
  }
}

.share-section {
  margin-top: 15px;
  text-align: center;
}

.share-btn {
  background-color: #4a3210; /* jou kleur */
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 50%;       /* maak dit rond */
  cursor: pointer;
  font-size: 18px;
  transition: background-color 0.3s ease;
}

.share-btn:hover {
  background-color: #6b4a1a;
}

.share-btn i {
  margin-right: 6px;
}

.timeline {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.timeline-item {
  background: rgba(255,255,255,0.9);
  border-left: 2px solid #4a3210;
  border-top: 2px solid #4a3210;
  margin: 20px 0;
  padding: 15px;
  border-radius: 6px;
  position: relative;
}

.timeline-item:before {
  content: "";
  position: absolute;
  left: -12px;
  top: 20px;
  width: 12px;
  height: 12px;
  background: #4a3210;
  border-radius: 50%;
}

.timeline-item h3 {
  margin-top: 0;
}

.timeline h2, .testimonies h2 {
  color: color: var(--beige);
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: #222;
  color: #fff;
  padding: 15px;
  text-align: center;
  z-index: 9999;
}
.cookie-banner a {
  color: #ffd700;
}
.inspiration-form {
  max-width: 480px;          /* kleiner vorm */
  margin: 20px auto;
  background: #fff;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.inspiration-form input,
.inspiration-form textarea {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 10px;
  padding: 8px;
  font-size: 0.95rem;
}

.inspiration-form button {
  width: 100%;
  background-color: #e67e22;
  color: #fff;
  border: none;
  padding: 10px;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
}

.feed {
  max-width: 500px;           /* hou posts kleiner */
  margin: 25px auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.post {
  border: 1px solid #ccc;
  padding: 10px;
  border-radius: 8px;
  background: #fafafa;
}

.post iframe {
  width: 100%;
  max-width: 380px;           /* kleiner video */
  height: 214px;              /* 16:9 verhouding */
  display: block;
  margin: 0 auto;
}

.post img {
  max-width: 380px;           /* kleiner prent */
  height: auto;
  border-radius: 6px;
  display: block;
  margin: 10px auto;
}

@media (max-width: 600px) {
  .inspiration-form, .feed {
    max-width: 95%;
  }
  .post iframe, .post img {
    max-width: 100%;
  }
}

.link-preview {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.link-preview img {
  max-width: 120px;
  border-radius: 6px;
}