body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #fef9f2;
  color: #333;
}

header, footer {
  background-color: #ffcb77;
  color: #4a2c2a;
  padding: 12px 20px;
  text-align: center;
  font-weight: bold;
  font-size: 1.2rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.container {
  display: flex;
  flex-direction: row;
  height: calc(100vh - 100px);
}

.panel {
  padding: 16px;
  box-sizing: border-box;
  overflow-y: auto;
}

.panel.left {
  flex: 2;
  background-color: #fff6ea;
  border-right: 2px solid #ffe8c6;
}

.panel.right {
  flex: 1;
  background-color: #fff;
  border-left: 2px solid #ffe8c6;
}

.panel-heading {
  font-weight: bold;
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: #2e1503;
}

.slide-block {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  padding: 20px;
  margin-bottom: 20px;
  animation: fadeIn 0.6s ease-in-out;
}

.slide-block h2 {
  font-size: 1.5rem;
  color: #e36414;
  margin-top: 0;
}

.slide-block p {
  font-size: 1.1rem;
  line-height: 1.6;
  white-space: pre-line;
}

.nav-controls {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

button {
  background-color: #f4a261;
  border: none;
  padding: 10px 18px;
  color: white;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #e76f51;
}

.pinned-section {
  margin-top: 20px;
}

.section-title {
  font-size: 1.1rem;
  color: #3d2c29;
  margin-bottom: 10px;
  border-bottom: 1px solid #f5d7af;
  padding-bottom: 4px;
}

@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }
  .panel.left, .panel.right {
    flex: 1;
    height: auto;
  }
  .nav-controls {
    justify-content: center;
    gap: 10px;
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
