:root {
  --bg: #f4f9ff;
  --accent: #4a7fb8;
  --accent-strong: #2f5f91;
  --text: #213447;
  --card-bg: #ffffff;
  --shadow: 0 2px 10px rgba(42, 88, 135, 0.12);
  --radius: 14px;
  --fs-small: clamp(0.85rem, 1vw, 1rem);
  --fs-base: clamp(1rem, 1.2vw, 1.15rem);
  --fs-large: clamp(1.4rem, 2vw, 2rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: var(--fs-base);
  line-height: 1.6;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: linear-gradient(90deg, #eef6ff 0%, #dceeff 100%);
  box-shadow: var(--shadow);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.logo {
  font-size: var(--fs-large);
  font-weight: 600;
  color: var(--accent);
}

.logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.site-logo {
  height: 56px;
  width: auto;
  border-radius: 10px;
  object-fit: contain;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.nav a {
  text-decoration: none;
  color: var(--text);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: var(--fs-small);
}

.nav a:hover {
  background: rgba(74, 127, 184, 0.12);
}

.lang-toggle {
  border: none;
  background: var(--accent);
  color: #fff;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: var(--fs-small);
}

.hero {
  padding: clamp(2rem, 6vw, 4rem) 1.5rem;
  background: linear-gradient(135deg, #f7fbff 0%, rgba(74, 127, 184, 0.12) 100%);
  text-align: center;
}

.hero h1 {
  font-size: var(--fs-large);
  margin-bottom: 0.75rem;
}

.hero p {
  font-size: var(--fs-base);
  max-width: 700px;
  margin: 0 auto 1.5rem auto;
}

.section {
  padding: clamp(1.5rem, 4vw, 3rem) 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-size: var(--fs-large);
  margin-bottom: 1rem;
  color: var(--accent);
}

.cards-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
}

.card h2 {
  margin-top: 0;
  font-size: var(--fs-base);
}

.card img,
.card iframe {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.book-cover {
  width: 100%;
  height: 180px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(74, 127, 184, 0.16), rgba(74, 127, 184, 0.34));
  border: 1px solid rgba(74, 127, 184, 0.18);
  margin-bottom: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-strong);
  font-weight: 700;
  text-align: center;
  padding: 1rem;
}

.btn-primary,
.btn-secondary {
  display: inline-block;
  border: none;
  border-radius: 999px;
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  font-size: var(--fs-small);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-secondary {
  background: #e6f2ff;
  color: var(--text);
}

input,
textarea,
select {
  width: 100%;
  padding: 0.6rem;
  border-radius: var(--radius);
  border: 1px solid #c6d9ea;
  font-size: var(--fs-small);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.5fr);
  gap: 1.5rem;
}

.card-image-placeholder {
  width: 100%;
  height: 160px;
  border-radius: var(--radius);
  background: rgba(74, 127, 184, 0.12);
}

.dashboard-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.dashboard-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.dashboard-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dashboard-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.35rem 0;
  border-bottom: 1px solid #eee;
  font-size: var(--fs-small);
}

.dashboard-list button {
  font-size: 0.75rem;
  border-radius: 999px;
  border: none;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
}

.edit-btn {
  background: var(--accent);
  color: #fff;
}

.delete-btn {
  background: #c96b6b;
  color: #fff;
}

.feedback {
  margin-top: 1rem;
  font-size: var(--fs-small);
  color: var(--accent);
}

.fallback-message {
  margin-top: 2rem;
  padding: 1rem;
  border-radius: var(--radius);
  background: rgba(74, 127, 184, 0.08);
}

.hidden {
  display: none;
}

.site-footer {
  padding: 1rem;
  text-align: center;
  font-size: var(--fs-small);
  color: #777;
}

@media (max-width: 768px) {
  .about-layout {
    grid-template-columns: 1fr;
  }

  .donate-hero {
    grid-template-columns: 1fr;
  }
}

.logo-pasteur-bottom {
  display: block;
  margin: 2rem auto 0 auto;
  max-width: 180px;
  width: 100%;
  border-radius: 8px;
}

.logo-vhl {
  display: block;
  margin: 1rem auto 0 auto;
  max-width: 220px;
  width: 100%;
  border-radius: 8px;
}

.intro-text {
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  color: #444;
}

.intro-text {
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  color: #444;
}

.vhl-info {
  text-align: center;
  margin-bottom: 2rem;
}

.logo-vhl {
  max-width: 220px;
  width: 100%;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.vhl-address {
  font-size: 1rem;
  line-height: 1.5;
  color: #333;
}

.donate-page {
  max-width: 1100px;
}

.donate-hero {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.donate-image-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
  max-width: 600px;
  width: 100%;
}

.donate-main-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  display: block;
}

.donate-intro {
  text-align: center;
  margin: 0 0 1.5rem;
  font-size: 1rem;
  color: var(--text);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.donate-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-bottom: 2rem;
}

.donate-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
}

.donate-link {
  width: fit-content;
  text-decoration: none;
  font-weight: 600;
}

.donate-logo-bottom {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.about-block {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.about-block.reverse {
  flex-direction: column-reverse;
}

.about-img {
  width: 100%;
  max-width: 350px;
  border-radius: 12px;
  display: block;
  margin: 0 auto;
}

.about-text {
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.6;
  color: #444;
  text-align: center;
}

@media (min-width: 768px) {
  .about-block {
    flex-direction: row;
    align-items: center;
  }
  .about-block.reverse {
    flex-direction: row-reverse;
  }
  .about-text {
    flex: 1;
    text-align: left;
  }
  .about-photo {
    flex: 1;
    text-align: center;
  }
}

.church-highlight {
  margin-top: 3rem;
  padding: 2rem;
  background: #f7f7f7;
  border-radius: 12px;
  text-align: center;
}

.church-intro {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: #444;
}

.vhl-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.logo-vhl {
  max-width: 260px;
  width: 100%;
  border-radius: 10px;
  margin-bottom: 0;
}

.book-cover-img {
  width: 100%;
  max-width: 220px;
  display: block;
  margin: 0 auto 1rem auto;
  border-radius: 8px;
}
