body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background-color: #f0f0f0;
  color: #333;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Ново: Контейнер за заглавната част с герб */
.header-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.coat-of-arms {
  width: 150px;
  height: auto;
}

header {
  background-color: #4CAF50;
  color: white;
  text-align: center;
  padding: 2rem 0;
}

header h1 {
  margin: 0;
  font-size: 3rem;
  text-shadow: 2px 2px 4px #000000;
}

header p {
  font-style: italic;
  margin-top: 0.5rem;
}

main {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem;
  background-color: white;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  border-radius: 8px;
  flex-grow: 1;
}

section {
  padding: 2rem 0;
  border-bottom: 1px solid #eee;
}

section:last-of-type {
  border-bottom: none;
}

h2 {
  color: #2e8b57;
  border-bottom: 2px solid #2e8b57;
  padding-bottom: 0.5rem;
}

/* Стилове за таблицата */
.table-container {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  background-color: #f9f9f9;
}

table, th, td {
  border: 1px solid #ddd;
}

th, td {
  padding: 12px;
  text-align: left;
}

th {
  background-color: #4CAF50;
  color: white;
}

tr:nth-child(even) {
  background-color: #f2f2f2;
}

ul {
  list-style-type: none;
  padding: 0;
}

ul li {
  background: #e6f2e6;
  margin-bottom: 0.5rem;
  padding: 0.5rem 1rem;
  border-left: 5px solid #4CAF50;
}

.map-image, .president-img {
  width: 500px;
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1rem auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

footer {
  text-align: center;
  padding: 1rem;
  background-color: #333;
  color: white;
  margin-top: auto;
}

/* --- Медийни заявки за responsive дизайн --- */
@media screen and (max-width: 768px) {
  body {
    font-size: 14px;
  }
  header h1 {
    font-size: 2rem;
  }
  main {
    margin: 1rem auto;
    padding: 0 0.5rem;
  }
  .header-container {
    flex-direction: column;
    gap: 10px;
  }
  .coat-of-arms {
    width: 80px;
  }
  table, thead, tbody, th, td, tr {
    display: block;
  }
  thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }
  tr {
    border: 1px solid #ccc;
    margin-bottom: 10px;
  }
  td {
    border: none;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 50%;
    text-align: right;
  }
  td:before {
    content: attr(data-label);
    position: absolute;
    left: 0;
    width: 45%;
    padding-left: 10px;
    font-weight: bold;
    text-align: left;
  }
  .data-table-section table tr td:first-child {
    text-align: left;
  }
}
