* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Arial", sans-serif;
  background-color: #f4f4f4;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  color: #333;
}

.controls-container {
  width: 100%;
  max-width: 1000px;
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
  align-items: center;
}

.lang-switcher {
  display: flex;
  margin-right: 10px;
}

.lang-btn {
  background-color: #fff;
  border: 1px solid #ccc;
  padding: 5px 10px;
  cursor: pointer;
}

.lang-btn.active {
  background-color: #3e4450;
  color: #fff;
}

.pdf-btn {
  background-color: #b85c38;
  color: white;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
}


/* Контейнер резюме (формат А4) */
.resume-container {
  width: 100%;
  max-width: 1000px;
  background-color: white;
  display: flex;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* --- Ліва колонка (Сайдбар) --- */
.sidebar {
  width: 30%;
  background-color: #3e4450; /* Темно-сірий колір */
  color: white;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
}

.profile-photo {
  width: 100%;
  max-width: 250px;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 30px auto;
  border: 3px solid #5a606b;
  display: block;
}

.sidebar-section {
  margin-bottom: 30px;
}

.sidebar-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 15px;
  border-bottom: 1px solid #777;
  padding-bottom: 5px;
  text-transform: uppercase;
}

.sidebar-item {
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.4;
}

.sidebar-item strong {
  display: block;
  margin-bottom: 2px;
}

.sidebar a {
  color: white;
  text-decoration: none;
}

.lang-list {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
}

/* --- Права колонка (Основний контент) --- */
.main-content {
  width: 70%;
  padding: 40px;
  background-color: #fff;
}

.header-name {
  font-size: 36px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #333;
  margin-bottom: 20px;
}

.summary {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #444;
}

.summary a {
  color: #333;
  text-decoration: none;
}

.main-section {
  margin-bottom: 30px;
}

.section-title {
  font-size: 20px;
  color: #b85c38; /* Колір заголовків (схожий на помаранчево-коричневий) */
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 15px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 5px;
}

/* Блоки освіти та курсів */
.entry {
  margin-bottom: 20px;
}

.entry-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
  font-weight: bold;
  font-size: 16px;
}

.entry-subtitle {
  font-style: italic;
  color: #555;
  margin-bottom: 5px;
  font-size: 14px;
}

.entry-details {
  font-size: 14px;
  color: #444;
  line-height: 1.5;
}

/* Навички (Skills) */
.skill-row {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  font-size: 14px;
}

.skill-name {
  width: 45%;
  font-weight: normal;
  padding-right: 10px;
}

.skill-bar-bg {
  width: 55%;
  height: 8px;
  background-color: #eee;
  border-radius: 4px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  background-color: #ddd; /* Світло-сірий, як на скріншоті */
  border-radius: 4px;
}

/* Мобільна адаптація */
@media (max-width: 768px) {
  .resume-container {
    flex-direction: column;
  }
  .sidebar,
  .main-content {
    width: 100%;
  }
}
