html {
  font-size: 16px; /* base */
}

body {
  background: #F8F0E3; /* Soft Beige */
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 1rem; /* 16px */
  line-height: 1.6;
  color: #000;
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
}

/* Headings */
h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.2;
  font-weight: 700;
  color: #2e3a5f; /* Navy Blue */
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.3;
  font-weight: 600;
  color: #2e3a5f;
}

h3 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  line-height: 1.3;
  font-weight: 600;
  color: #2e3a5f;
}

h4, h5 {
  font-size: 1.25rem;
  line-height: 1.4;
  font-weight: 500;
  color: #2e3a5f;
}

h6 {
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 500;
  color: #2e3a5f;
}

/* Links */
a {
  color: #2e3a5f;
  text-decoration: none;
  transition: color 0.3s, text-decoration 0.3s;
}
a:hover, a:focus {
  color: #a65c4b;
  text-decoration: underline;
}

/* Tooltip links */
a[data-tooltip] {
  color: #333;
  text-decoration: dotted underline;
  position: relative;
  cursor: help;
}
a[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 125%;
  left: 0;
  background: #333;
  color: #fff;
  padding: 0.5rem;
  border-radius: 4px;
  white-space: nowrap;
  font-size: 0.875rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* Header */
.home-header {
  background: #7a7e5f;
  color: #fff;
  padding: 1rem;
  position: sticky;
  top: 0;
  text-align: center;
}

.page-header {
  background: #7a7e5f;
  color: #2e3a5f;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.page-header h2 {
  margin: 0;
  font-size: 1.25rem;
}
.page-header nav a {
  color: #fff;
  font-weight: 600;
}
.page-header nav a:hover {
  color: #a65c4b;
  text-decoration: underline;
}

/* Main */
main {
  flex: 1;
  padding: 1rem;
}

.home {
  display: flex;              /* aktiveer Flexbox */
  flex-direction: row;        /* plaas items langs mekaar */
  width: 100%;
  min-height: 80vh;           /* gee hoogte na smaak */
  padding: 0 0;
}

.with-photo {
  flex: 7;                    /* 70% van die ruimte */
  background: url('../images/byeenkomste/WhatsApp Unknown 2026-02-15 at 15.06.02/WhatsApp Image 2026-02-15 at 15.03.48 (1).jpeg') no-repeat center center;
  background-size: cover;     /* voorbeeld vir foto */
  display: flex;
  justify-content: center;
  align-items: center;
}

.dynamic-content {
  flex: 3;                    /* 30% van die ruimte */
  padding: 20px;
  background-color: #2e3a5f;
  color: #FFF;
  overflow: hidden;            /* voorkom dat inhoud oorvloei */
}

/* Responsief vir kleiner skerms */
@media (max-width: 768px) {
  .home {
    flex-direction: column;   /* stapel die afdelings onder mekaar */
  }

  .with-photo {
    display: none;            /* verberg die foto-afdeling */
  }

  .dynamic-content {
    flex: 1;                  /* neem volle breedte */
    width: 100%;              /* verseker 100% breedte */
  }
}

/* Slegs vir beelde binne dynamic-content */
.dynamic-content img {
  display: block;              /* laat margin auto werk */
  margin: auto;                /* horisontaal sentreer */
  max-width: 100%;             /* hou binne die div */
  max-height: 100%;            /* hou binne die div */
  object-fit: contain;         /* hou aspek verhouding, laat witruimte toe */
}


.centered-div {
  width: 100%;
  max-width: 500px;        /* hou dit netjies */
  margin: 0 auto;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1); /* opsioneel vir styl */
  background: #fff;        /* opsioneel */
}

/* Center button */
.center-button {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80vh;
  position: relative;
  z-index: 2;
}
.btn-leermeer {
  background-color: #2e3a5f;
  color: #fff;
  padding: 15px 30px;
  text-decoration: none;
  font-size: 1.2rem;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}
.btn-leermeer:hover {
  background-color: #a65c4b;
  color: #fff;
  text-decoration: none;
}

.btn-regular {
  background-color: #2e3a5f;
  color: #fff;
  padding: 5px 10px;
  text-decoration: none;
  font-size: 0.8rem;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}
.btn-regular:hover {
  background-color: #a65c4b;
  color: #fff;
  text-decoration: none;
}

/* Footer */
footer {
  background: #2e3a5f;
  color: #fff;
  font-size: 0.875rem;
  line-height: 1.4;
  padding: 1rem;
  margin-top: auto;
  text-align: center;
  width: 100%;
}
footer a {
  font-size: 0.875rem;
  color: #a8b99c;
}
footer a:hover {
  color: #a65c4b;
  text-decoration: underline;
}

/* Navbar */
nav {
  background: #7a7e5f;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  position: sticky;
  top: 0;
}
nav a {
  font-weight: 600;
  color: #fff;
}
nav a:hover {
  color: #a65c4b;
  text-decoration: underline;
}
header, nav, footer {
  z-index: 1000;
}

/* Menu */
.menu {
  display: none;
  flex-direction: column;
  background: #2e3a5f;
  position: absolute;
  top: 100%;
  right: 0;
  width: 200px;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.menu a {
  color: #fff;
  padding: 0.75rem;
  text-decoration: none;
  border-bottom: 1px solid #555;
}
.menu a:hover {
  background: #7a7e5f;
  color: #fff;
}
.menu.active {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

/* Logo */
.logo {
  height: 120px;
  max-width: 100%;
  object-fit: contain;
  font-size: 1.2rem;
  font-weight: bold;
  color: #2e3a5f;
}

/* Hamburger */
.menu-toggle {
  font-size: 1.5rem;
  cursor: pointer;
  background: none;
  border: none;
  color: #fff;
}

/* Verse card */
.verse-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
}
.verse-card {
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  max-width: 400px;
  text-align: center;
}
.verse-card h2 {
  font-size: 1.2rem;
  color: #7a7e5f;
}
.verse-card p {
  font-size: 1rem;
  color: #2e3a5f;
  font-style: italic;
}

/* Bottom blocks */
.bottom-blocks {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}
.block {
  flex: 1;
  background: #7a7e5f;
  color: #fff;
  margin: 0 10px;
  padding: 15px;
  border-radius: 5px;
  text-align: center;
}
@media (max-width: 768px) {
  .bottom-blocks {
    flex-direction: column;
  }
  .block {
    margin: 10px 0;
  }
}

/* Gallery */
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}
.gallery img {
  width: 200px;
  border-radius: 5px;
  cursor: pointer;
  transition: transform 0.2s;
}
.gallery img:hover {
  transform: scale(1.05);
}
@media (max-width: 768px) {
  .gallery {
    flex-direction: column;
    align-items: center;
  }
  .gallery img {
    width: 90%;
  }
}

/* Messages */
.success-message {
  background: #a8b99c;
  color: #2e3a5f;
  padding: 1rem;
  border-radius: 5px;
}
.error-message {
  background: #a65c4b;
  color: #fff;
  padding: 1rem;
  border-radius: 5px;
}

/* Taal skakel in die hoek */
.language-switch {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 0.9rem;
}

.language-switch a {
  color: #2E3A5F;
  text-decoration: none;
  margin: 0 5px;
}

.language-switch a:hover {
  text-decoration: underline;
}
.next-event {
	background-color: #565943;
	border-bottom: 1px solid #000;
	font-weight: bold;
	color: #fff;
}
.diary {
	border-bottom: 1px solid #000;
	color: #999;
}

label {
	color: #2E3A5F;
	display: block;
	margin-top: 10px;
}