/* Общие стили для body */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #F78B2B, #FCDCCC);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
a {
    color:black;
    text-decoration: none;
}

li {
    font-decoration: none;
    margin-top:10px;
}
li::marker { color: gold;}

/* Обертка для основного содержимого */
.main-content {
    display: flex;
    justify-content: center; /* Центрируем по горизонтали */
    width: 100%;
}

/* Ограничение ширины для содержимого */
.content {
    max-width: 900px;
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
}
/* Левый фиксированный блок с пагинацией и картинкой */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 220px;
    height: 100%;
    color: #ffe0b2;
    background: linear-gradient(45deg, rgb(149, 83, 45), rgb(200, 101, 0));

    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    box-shadow: 2px 0 8px rgba(0,0,0,0.3);
    z-index: 1000;
    overflow-y: auto;
}

/* Заголовок и шапка */
.header {
    width: 100%;
    background-color: rgba(138, 75, 42, 0.8);
    color: white;
    padding: 15px;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    position: relative;
    z-index: 2;
}

/* Заголовок */
header h1 {
    margin: 0;
    font-size: 1.8em;
}

.pagination_mobile {
    display:flex;
    flex-direction: column;
    align-items: left;
}

.pagination_mobile a {
    color: black;
    background:#ffe0b2;
    display:block;
    margin-right:20px;
    border-radius:5px;
    padding:2px;
    font-weight: bold;
    font-size: 1.3em;
}
nav button {
    opacity: 0.8;
    box-shadow: 0px 0 8px rgba(0,0,0,0.3);
}

pagination_mobile a:hover {
    text-decoration: underline;
}

/* Секции */
.section {
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    margin-top: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

h2 {
    color: #8a4b2a;
    margin-bottom: 15px;
    text-align: center;
    font-size: 1.8em;
}
h3 {
    color: #8a4b2a;
    margin-bottom: 15px;
    text-align: center;
    font-size: 1.3em;
}
/* Вступление */
.intro {
    background: linear-gradient(135deg, #ffe0b2, #f9d976);
    padding: 20px;
    border-radius: 15px;
    margin-top: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.intro h2 {
    font-size: 2em;
    margin-bottom: 15px;
}

.intro p {
    font-size: 1.1em;
    line-height: 1.4;
}

/* Преимущества */
.advantages-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}

.advantage-item {
    background-color: #fff3e0;
    border-radius: 12px;
    padding: 15px;
    margin: 10px;
    flex: 1 1 200px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    min-width: 150px;
    text-align:center;
}

/* Кнопки */
button {
    border: none;
    padding: 12px 25px;
    font-size: 1.2em;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 20px;
    display: inline-block;
    width: 200px; /* одинаковая ширина */
    max-width: 100%;
    text-align: center;
}

/* Пагинация — в колонку на десктопе */
.pagination {
    display: flex;
    flex-direction: column; /* колонка */
    align-items: center;
    gap: 10px;
}

.pagination button {
    width: 200px; /* одинаковая ширина для кнопок пагинации */
}

/* Подвал */
footer {
    background-color: rgba(138, 75, 42, 0.8);
    color: #ffe0b2;
    text-align: center;
    padding: 10px 0;
    width: 100%;
    font-size: 1em;
    border-radius: 12px;
    margin-top: 50px; /* закрепляем внизу */
    position: relative;
}
.active_a {
    display:block;
    font-size:20px;background:gold;padding:10px;border-radius:15px;text-align:center;
}
.active_a:hover {
    background: #dbaf00;
}







.teachers-section {
  position: relative;
  padding: 40px 20px;
  background: linear-gradient(135deg, #e0f7fa, #ffe0b2);
  border-radius: 25px;
  margin-top: 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  overflow: hidden;
}

/* Ветки слева и справа */
.teachers-section::before,
.teachers-section::after {
  content: "";
  position: absolute;
  top: 0;
  width: 2px;
  height: 100%;
  background: #8a4b2a;
}

/* Левая ветка */
.teachers-section::before {
  left: 30px; /* расстояние от левого края */
  height: calc(100% - 50px); /* чуть короче, чтобы не мешать */
  top: 25px; /* чуть ниже начала */
  height: calc(100% - 50px);
  border-radius: 1px;
}

/* Правая ветка */
.teachers-section::after {
  right: 30px; /* расстояние от правого края */
  height: calc(100% - 50px);
  top: 25px;
  border-radius: 1px;
}

.teachers-section h2 {
  font-family: 'Brush Script MT', cursive;
  font-size: 2.2em;
  text-align: center;
  color: #8a4b2a;
  margin-bottom: 30px;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.2);
}

.teachers-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
}

/* Карточки учителей */
.teacher-card {
  background-color: rgba(255, 255, 255, 0.8);
  padding: 25px;
  border-radius: 20px;
  max-width: 650px;
  width: 100%;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.teacher-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.2);
}

/* Фото учителя */
.teacher-photo {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 4px solid #8a4b2a;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Цитата учителя */
.quote {
  font-family: 'Georgia', serif;
  font-style: italic;
  font-size: 1.5em;
  margin-bottom: 30px;
  color: #555;
  padding: 0 10px;
}

/* Информация о учителе */
.teacher-info p {
  margin: 6px 0;
  font-size: 1em;
  color: #333;
}

/* Блок с пеликаном */
.pelican-block {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.7);
  margin: 100px auto 0 auto;
  padding: 20px;
  border-radius: 30px;
  max-width: 800px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  flex-direction: column;
  text-align: center;
  position: relative;
}

.pelican-image {
  margin-bottom: 15px;
  border-radius:30px;
  max-width: 100%;
  height: auto;
  max-height: 300px;
}

.pelican-quote {
  font-family: 'Brush Script MT', cursive;
  font-size: 1.8em;
  font-style: italic;
  color: #8a4b2a;
  margin: 0 10px;
  line-height: 1.4;
}


@media (min-width: 1431px) {
  .pagination_mobile { display: none; }
}
/* Скрывать sidebar на мобильных */
@media (max-width: 1430px) {
    .sidebar {
        display: none;
    }
}
@media (max-width: 800px) {
  .teachers-section::before,
  .teachers-section::after {
    display: none;
  }
}