﻿:root {
  --accent: #3B5B7B;      /* grey-blue accent */
  --text: #3b3b3b;
  --bg: #fafafa;
  --max-width: 960px;
  --font-serif: "Georgia", "Times New Roman", serif;
  --font-sans: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
/* --- Links --- */
a {
  color: var(--accent);
  text-decoration: none;
  background-color: rgba(59, 91, 123, 0.10); /* pale blue-grey background */
  padding: 0 0.2em;
  border-radius: 3px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

a:hover, a:focus {
  background-color: rgba(59, 91, 123, 0.25); /* stronger highlight on hover */
  color: #2c3f57;                            /* slightly darker text */
  text-decoration: none;
}

h2 { color: var(--accent); }

body {
  font-family: var(--font-serif);
  color: var(--text);
  background-color: var(--bg);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

header {
  max-width: var(--max-width);
  margin: 1.5rem auto;
  padding: 0 1rem;
}

header h1 {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 600;
}

header img {
  float: right;
  width: 100px;
  height: auto;
  margin-left: 1rem;
}

main {
  max-width: var(--max-width);
  margin: 0 auto 3rem;
  padding: 0 1rem;
}

.intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (max-width: 768px) {
  .intro {
    grid-template-columns: 1fr;
  }
  header img {
    float: none;
    display: block;
    margin: 0 auto 1rem;
  }
}

/* --- Home button placement --- */
.home-button {
  max-width: 1100px;    /* same width as the bilingual block */
  margin: 1rem auto 0;  /* center it and give top spacing */
  padding-left: 1rem;   /* small left indent for alignment */
}

.home-button img {
  display: block;
  cursor: pointer;
}

.intro p {
  margin-top: 0;
}

h2 {
  font-family: var(--font-sans);
  color: var(--accent);
  margin-top: 2rem;
  margin-bottom: 0.5rem;
 }
 /* --- Intro bilingual layout --- */
.intro {
  max-width: 1100px;
  margin: 0 auto 3rem;
  padding: 1rem;
}

.intro h2 {
  text-align: center;
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.intro .subtitle {
  display: block;
  font-size: 1.1rem;
  color: var(--accent);
  margin-top: 0.3rem;
}

.intro-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

.intro .column {
  flex: 1 1 45%;
  text-align: justify;
  font-size: 0.95rem;
  line-height: 1.5;
}

.intro .flag {
  margin-bottom: 0.5rem;
}

.intro .column p {
  margin-top: 0.4rem;
  margin-bottom: 0.8rem;
}
/* --- Bilingual intro layout (modern flex version) --- */
#introtable {
  max-width: 1100px;   /* keeps the bilingual block readable */
  margin: 0 auto;      /* centers it on the page */
  padding: 0 1rem;     /* a bit of breathing space on the sides */
}

#introtable .langcolumns {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 1.5rem;
}

#introtable .column {
  flex: 1 1 45%;
  text-align: justify;
  font-size: 0.95rem;
  line-height: 1.35;
  color: #333;
}

#introtable .column img {
  display: block;
  margin-bottom: 0.5rem;
}

@media (max-width: 800px) {
  #introtable .langcolumns {
    flex-direction: column;
  }
  #introtable .column {
    width: 100%;
  }
}

@media (max-width: 800px) {
  #introtable .langcolumns {
    flex-direction: column;
  }
  #introtable .column {
    width: 100%;
  }
}


.thumbnails {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 1rem;
  justify-items: center;
  margin-top: 1rem;
}

figure {
  margin: 0;
  text-align: center;
  font-size: 0.85rem;
}
figure img {
  max-width: 100%;
  border: 1px solid #ddd;
  border-radius: 4px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
figure img:hover {
  transform: scale(1.05);
  border-color: var(--accent);
}

footer {
  text-align: center;
  font-size: 0.85rem;
  padding: 2rem 1rem;
  color: #777;
}