/* ====== ОБЕРТКИ ====== */
.blog-page {
 background-color: #f3f6ff;
 padding: 20px;
}

.blog-list.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ====== КАТЕГОРИИ ====== */
.blog-categories__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 20px 0 30px;
  padding: 0;
  list-style: none;
}

.blog-categories__list li a {
  display: block;
  padding: 10px 20px;
  border: 2px solid #1E3A8A;
  border-radius: 25px;
  color: #1E3A8A;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.blog-categories__list li a:hover,
.blog-categories__list li a.active {
  background-color: #1E3A8A;
  color: #fff;
}

/* ====== СПИСОК БЛОГОВ ====== */
.blog-vertical-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ====== КАРТОЧКА БЛОГА ====== */
.blog-item {
  border-bottom: 1px solid #e5e7eb;
  padding: 24px 0;
}

.blog-item-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s;
  position: relative;
}

.blog-item-inner:hover {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.blog-thumb {
  flex-shrink: 0;
  width: 110px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
}

.blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-content {
  flex-grow: 1;
}

.blog-title {
  font-size: 27px;
  font-weight: 600;
  margin: 0 0 4px;
  color: #1e3a8a;
  transition: color 0.3s;
}

.blog-title a {
  text-decoration: none;
  color: inherit;
}

.blog-title a:hover {
  color: #2249ba;
}

.blog-meta {
  font-size: 23px;
  color: #999;
  margin-bottom: 6px;
}

.blog-excerpt {
  margin: 0;
  font-size: 24px;
  color: #444;
  line-height: 1.4;
}

/* ====== КНОПКА СТРЕЛКИ ====== */
.blog-arrow {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.blog-arrow-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: #1e3a8a;
  border-radius: 50%;
  transition: background-color 0.3s;
}

.blog-arrow-button:hover {
  background-color: #2e4fb3;
}

.blog-arrow-button img {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
}




/* Общий контейнер */
.blog-vertical-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0 auto;
  padding: 0px;
}

/* Один пост */
.blog-item-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px;
  background: #fff;
  border-radius: 25px;
  box-shadow: 0 2px 10px rgb(0 0 0 / 24%);
  transition: box-shadow .3s;
}

.blog-item-inner:hover {
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

/* Миниатюра */
.blog-thumb {
  flex-shrink: 0;
  width: 120px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
}
.blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Контент */
.blog-content {
  flex-grow: 1;
}

.blog-title {
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 4px;
  color: #1e3a8a;
  transition: color .3s;
}
.blog-title a:hover {
  color: #2249ba;
}

.blog-meta {
  font-size: 18px;
  color: #777;
  margin-bottom: 6px;
}

.blog-excerpt {
  font-size: 24px;
  color: #444;
  margin: 0;
  line-height: 1.4;
}

/* Кнопка-стрелка */
.blog-arrow {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}
.blog-arrow-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: rgb(255 151 0);
  border-radius: 50%;
  transition: background-color .3s;
}
.blog-arrow-button:hover {
  background-color: rgb(245 158 11);
}
.blog-arrow-button img {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
}

section.blog-categories.container {
    padding: 0 30px;
}

/* Кнопка "Load More" */
#load-more-container {
  text-align: center;
  margin: 30px 0;
}
#load-more-posts {
  padding: 12px 24px;
  background: #1e3a8a;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 26px;
  cursor: pointer;
  transition: background .3s;
}
#load-more-posts:hover {
  background: rgb(33,73,186);
}

.blog-content {
  max-width: calc(100% - 200px); /* 36px + padding + запас */
}

.blog-categories__list {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 10px;
   -webkit-overflow-scrolling: touch;
  }

  .blog-categories__list li {
    flex: 0 0 auto;
  }
  .blog-categories__list::-webkit-scrollbar {
  height: 6px;
}

.blog-categories__list::-webkit-scrollbar-thumb {
  background: #1e3a8a;
  border-radius: 4px;
}

section.discounts {
    padding: 105px 12px;
}

/* ====== АДАПТИВНОСТЬ ====== */

/* Планшеты */
@media (max-width: 1024px) {
  .blog-item-inner {
    flex-direction: row;
    align-items: flex-start;
    padding: 16px;
  }

  .blog-thumb {
    width: 140px;
    height: 100px;
  }

  .blog-title {
    font-size: 26px;
  }

  .blog-excerpt {
    font-size: 21px;
  }
}

/* Смартфоны */
@media (max-width: 568px) {
  .blue-button {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .blog-categories__list li a {
    width: 100%;
    text-align: center;
  }
  
  
   .blog-item-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
  }

  .blog-thumb {
    width: 100%;
    height: 180px;
  }

  .blog-arrow {
    position: static;
    margin-top: 12px;
    transform: none;
    align-self: flex-end;
  }

  .blog-title {
    font-size: 26px;
    margin-right: 0; /* чтобы не сжимался текст */
  }
  .blog-content {
    max-width: 100%;
  }
}

/* Маленькие экраны */
@media (max-width: 480px) {
  .blog-title {
    font-size: 25px;
  }

  .blog-meta {
    font-size: 22px;
  }

  .blog-excerpt {
    font-size: 23px;
  }

  .blog-arrow-button {
    width: 32px;
    height: 32px;
  }

  .blog-arrow-button img {
    width: 14px;
    height: 14px;
  }
}


