/* HEADER */

h1 {
    display: block;
    font-size: 3em;              /* по-голям размер */
    font-weight: bold;
    text-align: center;          /* центриране */
    color: #2c3e50;              /* тъмносин/сив тон */
    margin: 0.5em 0;             /* равномерни отстояния */
font-family: 'Montserrat', sans-serif;
    letter-spacing: 2px;         /* разстояние между буквите */
    text-transform: uppercase;   /* главни букви */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3); /* лека сянка */
}


.logo img {
  height: 60px;
}

.branding {
  display: flex;
  align-items: center;
  gap: 5px;
    margin-right: 10px;
}

/* контейнер за двата надписа */
.title-block {
  display: flex;
  flex-direction: column; /* подрежда заглавие и подзаглавие вертикално */
  align-items: flex-start; /* подравнява вляво */
}

/* hover само за тези с подменю */
.has-submenu .menu-title:hover {
  background: linear-gradient(to bottom, #e6f0ff, #cce0ff);
  color: #004080;
  border-color: #99c2ff;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  transform: translateY(-2px);
}

/* линковете без подменю – hover остава със същия фон */
.menu-title:hover {
  background: linear-gradient(to bottom, #ffffff, #f2f2f2); /* същия като нормалния */
  color: #333;
  border-color: #ccc;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transform: none;
}

.flags {
  display: flex;
  gap: 0;          /* премахваме разстоянието между елементите */
}

.flags img {
  height: 18px;
  cursor: pointer;
  transition: transform 0.2s;
  margin: 2;       /* премахваме margin */
  padding: 2;      /* допълнително, ако има padding */
}

.flags img:hover {
  transform: scale(1.1);
}

/* Отстъп за съдържанието */
body {
    margin: 0;
font-family: 'Montserrat', sans-serif;
    background-color: #ffffff;
    padding-top: 100px;   /* колкото е височината на header */
}

header img {
    height: 60px;
    margin-right: 10px;
}


/* MAIN CONTENT */
main {
    padding: 10px;
    text-align: center;
}

main h1 {
    margin-bottom: 10px;
    font-size: 2em;
}

main p {
    font-size: 1.2em;
    color: #555;
}

/* DESKTOP MENU */


/* Подменю – десктоп */
.submenu {
    list-style: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    display: none;
    padding: 0;
    margin: 0;
    min-width: 150px;
    z-index: 1001;
}

.submenu li a {
    display: block;
    padding: 8px 12px;
    text-decoration: none;
    color: #333;
    font-weight: normal;
}

.submenu li a:hover {
    background-color: #ddd;
}

/* Hover показване – десктоп */
.main-menu > li:hover .submenu {
    display: block;
}

.menu-title:hover {
  background-color: #ddd;
  border-radius: 4px;
}


/* МОБИЛНА ВЕРСИЯ ////////////////////////////////////////////////////////////////////////////// */
@media (max-width: 768px) {
/* COLLAGE */
.collage {
    margin: 0;
    padding: 0;
    text-align: center;
}

.collage img {
    display: block;
    width: 100%;
    object-fit: cover;
    margin: 0 auto;
}
.exhibition-map {
  display: flex;
  flex-direction: column;
  align-items: center;   /* центрира хоризонтално */
  justify-content: center; /* центрира вертикално */
  /* min-height: 80vh;      заема цялата височина на екрана */
  text-align: center;
  padding: 5px;
  margin-top: 155px;
}
}
/* //////////////////////////////////////////////////////////////////////////////////// */

/* COLLAGE */
.collage {
    margin: 0;
    padding: 0;
    text-align: center;
  margin-top: 40px;
}

.collage img {
    display: block;
    width: 100%;
    object-fit: cover;
    margin: 0 auto;
}

/* CSS */
.site-footer {
  background-color: #f2f2f2;
  padding: 20px;
}

.footer-content {
  display: flex;
  justify-content: center; /* центрира текста */
  align-items: center;
  position: relative;
}

.footer-content p {
  margin: 0;
}

.footer-content .facebook-link {
  position: absolute;
  right: 10px; /* най-вдясно */
}

.footer-content .facebook-link img {
  width: 32px;
  height: 32px;
}


/* HISTORY STORY */
.history-story {
  max-width: 1100px;
    margin-right: auto;
    margin-bottom: 15px;
    margin-left: auto;
  padding-left: 15px;
  padding-right: 15px;
  padding-bottom: 15px;
font-family: 'Montserrat', sans-serif;
  line-height: 1.7;
  background: #fdfdfd;
  border-left: 5px solid #8b0000;
}

.history-story h2 {
  text-align: center;
  color: #8b0000;
  margin-bottom: 10px;
}

.history-story .highlight {
  background-color: #ffeaa7;
  font-weight: bold;
  padding: 2px 4px;
}

.history-story blockquote {
  font-style: italic;
  margin: 10px;
  padding: 10px 20px;
  background: #f0f0f0;
  border-left: 4px solid #8b0000;
}

/* OVERVIEW SECTION */
.overview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 1100px;
  margin: 5px auto;
font-family: 'Montserrat', sans-serif;
  /* padding: 10px; */
}

.overview-left {
  flex: 1;
  min-width: 250px;
    font-family: "Georgia", serif;
    line-height: 1.4;
    font-size: 13px;
}

.overview-left img {
  width: 90%;
  object-fit: cover;
  border: 1px solid #ddd;
}

.overview-right {
    flex: 1;
    min-width: 250px;
    line-height: 1.2;
    font-size: 13px;
}

.overview-right img {
  width: 90%;
  object-fit: cover;
  border: 1px solid #ddd;

}
.overview-left h2 {
  color: #8b0000;
  margin-bottom: 10px;
  font-size: 18px;
}
.overview-right h2 {
  color: #8b0000;
  margin-bottom: 10px;
  font-size: 18px;
}
.overview-left1 {
    flex: 1;
    min-width: 250px;
    font-family: "Georgia", serif;
    line-height: 1.4;
    font-size: 13px;

    /* Центриране на съдържанието */
    text-align: center;

    /* Подреждане на елементите хоризонтално */
    display: flex;
    justify-content: center;
    gap: 10px; /* разстояние между снимките */
}

.overview-left1 img {
  width: 50%; /* всяка снимка ще заема половината от контейнера */
  object-fit: cover;
  border: 1px solid #ddd;
}

.overview-left1 h2 {
  color: #000000;
  margin-bottom: 10px;
  font-size: 14px;
  width: 100%; /* заглавието да стои над снимките */
}

.menu-title a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  display: block;
  padding: 0px;
}

.menu-title a:hover {
  background-color: #ddd;
  border-radius: 4px;
}

/* Основен контейнер */
.exhibition-map {
  display: flex;
  flex-direction: column;
  align-items: center;   /* центрира хоризонтално */
  justify-content: center; /* центрира вертикално */
  /* min-height: 80vh;      заема цялата височина на екрана */
  text-align: center;
  padding: 5px;
  margin-top: 55px;
font-family: 'Montserrat', sans-serif;
}

.exhibition-map h1 {
  margin-bottom: 5px;
  font-size: 1.6em;
  color: #8b0000;
}
.exhibition-map h3 {
  margin-bottom: 5px;
  font-size: 1em;
  color: #000000;
}
/* Контейнер за изображението */
.map-container {
  max-width: 1200px;     /* ограничаваме максималната ширина */
  width: 100%;
  align-items: center;   /* центрира хоризонтално */
}

.map-container img {
  width: 100%;           /* изображението заема цялата ширина на контейнера */
  height: auto;          /* запазва пропорциите */
  border: 2px solid #ddd;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.map-containernews {
  max-width: 400px;     /* ограничаваме максималната ширина */
  width: 100%;
  align-items: center;   /* центрира хоризонтално */
}

.map-containernews img {
  width: 100%;           /* изображението заема цялата ширина на контейнера */
  height: auto;          /* запазва пропорциите */
  border: 2px solid #ddd;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  border: 1px solid #2A5AD4; /* леко сив бордър около таблицата */
  margin-bottom: 10px;
}

thead th {
  text-align: center;
  padding: 12px 16px;
  color: var(--muted);
  font-weight: 600;
  background: #fafbfc;
  border: 1px solid #2A5AD4; /* по-слаб бордър */
}

tbody td {
  padding: 12px 16px;
  border: 1px solid #2A5AD4; /* още по-светъл бордър */
}

tbody tr:nth-child(even) td { background: #fcfdff; }
tbody tr:hover td { background: #f9fbff; }

.col-time { width: 100px; white-space: nowrap; }
.col-event { width: 300px; }

//ЗА КОНТАКТ
:root {
  --bg:#fff;
  --fg:#222;
  --muted:#666;
  --accent:#0069d9;
  --border:#ddd;
}

.wrap {
  max-width: 820px;
  margin: 0 auto;
    padding-top: 55px;
}

.card {
  border:1px solid var(--border);
  border-radius:8px;
  margin-bottom:24px;
}

.grid {
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}

.field { display:flex; flex-direction:column; gap:6px; margin-top: 10px;}
.field label { font-weight:600; }

.field input, .field textarea {
  border: 1px solid #ccc;
  border-radius:6px;
  padding:10px;
  font-size:16px;
}

.field input:focus, .field textarea:focus { outline:2px solid #cde1ff; }

.help { color:var(--muted); font-size:14px; }

.actions { display:flex; gap:12px; align-items:center; margin-top:12px; }

button {
  background:var(--accent);
  color:#000;
  border: 1px solid #ccc;
  border-radius:6px;
  padding:12px 16px;
  font-size:16px;
  cursor:pointer;
}

button:disabled { opacity:.6; cursor:not-allowed; }

.status { font-size:14px; }

/* Honeypot */
.hp { position:absolute; left:-9999px; top:-9999px; height:0; width:0; overflow:hidden; }
// КРАЙ КОНТАКТ

.exhibition-map1 {
  display: flex;
  flex-direction: column;
  align-items: center;   /* центрира хоризонтално */
  text-align: center;
  padding: 20px;
  margin-top:55px;
}
.map-container1 {
  position: relative;
  height: 400px;   /* фиксирана височина */
  overflow: hidden;
  width: 90%;
  max-width: 1200px;
  margin: 20px auto;
}

.map-container1 iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;   /* винаги да е 100% от контейнера */
  height: 100%;  /* височината се адаптира */
  border: 0;
}
.exhibition-map1 h1 {
  margin-top: 55px;
  font-size: 1.6em;
  color: #8b0000;
}

.download-container {
  display: flex;
  justify-content: center; /* центрира хоризонтално */
  align-items: center;     /* центрира вертикално */
  margin: 40px 0;
}

.download-btn {
  background: linear-gradient(135deg, #3da9fc, #0077cc);
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

.download-btn:hover {
  background: linear-gradient(135deg, #0077cc, #005fa3);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}
@media (max-width: 600px) {
.exhibition-map {
  display: flex;
  flex-direction: column;
  align-items: center;   /* центрира хоризонтално */
  justify-content: center; /* центрира вертикално */
  /* min-height: 80vh;      заема цялата височина на екрана */
  text-align: center;
  padding: 5px;
  margin-top: 40px;
}
.card {
  border:1px solid var(--border);
  border-radius:8px;
  margin-bottom:24px;
  margin-top: 25px;
}
}

.download-table {
  width: 100%;
  max-width: 700px;
  margin: 20px auto;
  border-collapse: collapse;
  font-family: Arial, sans-serif;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.download-table th,
.download-table td {
  border: 1px solid #ccc;
  padding: 0; /* премахваме padding от td */
  text-align: left;
}

/* Шапка */
.download-table th {
  background: #1b6fb3;
  color: #fff;
  text-transform: uppercase;
  font-size: 14px;
  padding: 12px;
}

/* Лявата колона */
.download-table td:first-child {
  padding: 12px;
  color: #333;
  font-weight: 500;
  width: 400px;
}

/* Дясната колона: цялата клетка е линк */
.download-cell a {
  display: block;          /* линкът покрива цялата клетка */
  height: 100%;
  padding: 12px;           /* вътрешно отстояние */
  text-decoration: none;
  color: #1b6fb3;
  font-weight: 600;
  text-align: center;
}

.download-cell a:hover {
  background: #e7eef7;
  color: #0a2a4a;
}

/* Container */
.tree {
  max-width: 760px;
  margin: 10px auto;
  padding: 0 16px;
  color: #0a2a4a;
}

/* Generations */
.generation {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
  position: relative;
}

.generation-top {
  margin-bottom: 24px;
}

.generation-parents {
  margin-top: 24px;
}

/* Person card */
.person {
  width: 180px;
  background: #fff;
  border: 1px solid #d9e2ef;
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(10, 42, 74, 0.08);
  overflow: hidden;
  text-align: center;
}

.person img {
  width: 180px;
  height: 100%;
  object-fit: cover;
  display: block;
}

.info {
  padding: 12px 14px 16px;
}

.name {
  font-size: 18px;
  font-weight: 700;
  margin: 6px 0 2px;
}

.role {
  font-size: 13px;
  font-weight: 600;
  color: #1b6fb3;
  margin: 0 0 8px;
}

.details {
  font-size: 15px;
  color: #375a7f;
  margin: 0;
}

/* Connectors */
.connector {
  position: relative;
  height: 24px;
}

.connector-down::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 28px;
  background: #c3d3e7;
}

/* Parents connector: ├───┬───┤ composed of three segments */
.connector-parents {
  display: grid;
  grid-template-columns: 1fr 40px 1fr;
  align-items: center;
  height: 24px;
  margin-top: -16px;   /* pull towards parents */
  margin-bottom: 24px; /* space before parents row if needed */
}

.connector-parents .line-left,
.connector-parents .line-right,
.connector-parents .line-center {
  display: block;
  height: 2px;
  background: #c3d3e7;
}

.connector-parents .line-center {
  width: 2px;
  height: 24px;
  justify-self: center;
}

/* Responsive tweaks */
@media (max-width: 600px) {
  .person {

  }

  .generation-parents {
    flex-direction: column;
    gap: 20px;
  }

  /* Adjust connectors for stacked parents */
  .connector-parents {
    grid-template-columns: 1fr;
    height: 0;
    margin: 0;
  }
.tree {
        width: 200px;
}
.person img {
  width: 180px;
  height: 100%;
  object-fit: cover;
  display: block;
}
}

:root {
  --max-width: 1100px;
}

body {
  margin: 0;
  font-family: system-ui, sans-serif;
  background: #f6f7f9;
}

.pdf-wrap {
  max-width: var(--max-width);
  margin: 24px auto;
  padding: 16px;
  background: #fff;
  border: 1px solid #e3e6eb;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

.pdf-frame {
  width: 100%;
  height: min(80vh, 900px);
  border: none;
  border-radius: 8px;
  overflow: hidden;
}

.pdf-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.btn {
  appearance: none;
  border: 1px solid #d0d6dd;
  background: #fff;
  color: #1f2937;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover {
  background: #f0f2f5;
}
