/* ==========================================================================
   BLOG INDEX PAGE STYLES
   ========================================================================== */

.blog-main {
  padding-bottom: 20px;
}

.blog-hero {
  margin: 180px 0;
}

/* --- FEATURED POST (Главная статья сверху) --- */
.featured-post {
  margin-bottom: 100px;
}

.featured-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr; /* Картинка шире текста */
  gap: 50px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.4s ease;
}

.featured-card:hover {
  border-color: rgba(192, 17, 1, 0.3);
  background: rgba(255, 255, 255, 0.04);
}

.featured-img-wrapper {
  display: block;
  height: 450px;
  overflow: hidden;
}

.featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.featured-card:hover .featured-img {
  transform: scale(1.03);
}

.featured-content {
  padding: 50px 40px 50px 0; /* Справа отступ меньше, слева (от картинки) - ноль */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-title {
  font-family: "Polaris", sans-serif;
  font-size: 36px;
  line-height: 1.2;
  color: #fff;
  margin: 0 0 20px 0;
  text-transform: uppercase;
}

.featured-title-link {
  text-decoration: none;
}

/* Адаптив для Featured Post */
@media screen and (max-width: 991px) {
  .featured-card {
    grid-template-columns: 1fr;
  }
  .featured-content {
    padding: 30px 24px;
  }
  .featured-img-wrapper {
    height: 300px;
  }
  .featured-title {
    font-size: 28px;
  }
}

/* Фикс для сетки, чтобы она не наезжала на футер */
.blog-grid {
  margin-top: 50px;
}

.blog-filters {
  display: flex;
  gap: 15px;
  margin-bottom: 40px;
  justify-content: center;
}

.filter-btn {
  background: transparent;
  border: 1px solid #333;
  color: #888;
  padding: 8px 20px;
  border-radius: 20px;
  cursor: pointer;
  font-family: "Lato", sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  transition: 0.3s;
}

.filter-btn:hover, .filter-btn.active {
  border-color: #c01101;
  color: #fff;
}

.centered-header.blog {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
    width: auto;
}

.article-content a, 
.article-content a:visited, 
.article-content a:active {
   color: #ffffff !important;
    text-decoration: underline;
    /* Делаем подчеркивание чуть прозрачным, чтобы оно не спорило с текстом */
    text-decoration-color: rgba(255, 255, 255, 0.4); 
    /* Сдвигаем линию чуть ниже от букв (выглядит очень современно) */
    text-underline-offset: 4px; 
    /* Добавляем плавность для эффекта наведения */
    transition: text-decoration-color 0.2s ease, color 0.2s ease;
}

/* Эффект при наведении мышки */
.article-content a:hover {
    /* Подчеркивание пропадает */
    text-decoration-color: transparent; 
    /* По желанию: можно сделать сам текст чуть-чуть тусклее при наведении */
    /* color: #cbd5e1; */ 
}