/* ===============================================
   ARTICLES PAGE STYLES
   Стили для страницы со статьями
   =============================================== */

/* ========== PAGE BACKGROUND ========== */
body.articles-page {
  background-image: url('../images/desktop/articles/ocean.avif');
  background-attachment: fixed;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* Отключаем параллакс на мобильных */
@media (max-width: 768px) {
  body.articles-page {
    background-attachment: scroll;
  }
}

/* ========== HERO SECTION ========== */
body.articles-page .hero {
  min-height: 73px !important;
  background: rgb(0 0 0 / 80%) !important;
  padding: 15px !important;
  position: relative;
  text-align: center;
  z-index: 1;
}

body.articles-page .hero .container {
  position: relative;
  z-index: 2;
  text-align: center;
}

body.articles-page .hero-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  background: url('../images/desktop/rebalancing/ocean.avif') center center fixed;
  background-size: cover;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: #ffffff7a;
  font-weight: 700;
}

body.articles-page .hero-subtitle {
  font-size: 0.95rem;
  font-weight: 300;
  max-width: 700px;
  margin: 0.25rem auto 0;
  background: url('../images/desktop/rebalancing/ocean.avif') center center fixed;
  background-size: cover;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: #ffffff7a;
}

/* Фоллбэк для браузеров без поддержки background-clip */
@supports not (background-clip: text) {
  body.articles-page .hero-title,
  body.articles-page .hero-subtitle {
    color: white;
    -webkit-text-fill-color: white;
  }
}

/* ========== ARTICLES SECTION ========== */
.articles-section {
  padding: 80px 0;
  position: relative;
  z-index: 2;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-bottom: 60px;
}

/* ========== ARTICLE CARD ========== */
.article-card {
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Card Body */
.article-card__body {
  padding: 32px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.article-card__title {
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.article-card__excerpt {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-light);
  margin-bottom: 0;
  flex-grow: 1;
}

/* Card Footer */
.article-card__footer {
  padding: 0 32px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
}

.article-card__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.article-card__date {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

/* Styles moved to components.css */

/* ========== PAGINATION ========== */
/* Styles moved to components.css */

/* ========== CTA SECTION ========== */
.cta-section {
  padding: 80px 0;
  position: relative;
  z-index: 2;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 12px;
  padding: 60px;
}

.cta-title {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 2rem;
  line-height: 1.4;
}

.btn-flip-wrapper {
  display: flex;
  justify-content: center;
}

/* ========== RESPONSIVE ========== */

/* Tablet */
@media (max-width: 1024px) {
  body.articles-page {
    background-attachment: scroll;
  }

  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .article-card__body {
    padding: 24px;
  }

  .article-card__footer {
    padding: 0 24px 24px;
  }

  .cta-content {
    padding: 40px;
  }

  .cta-title {
    font-size: 1.75rem;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .articles-section {
    padding: 60px 0;
  }

  .articles-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .articles-page .hero-title {
    font-size: 2rem;
  }

  .articles-page .hero-subtitle {
    font-size: 1rem;
  }

  .article-card__body {
    padding: 20px;
  }

  .article-card__title {
    font-size: 1.25rem;
  }

  .article-card__excerpt {
    font-size: 0.95rem;
  }

  .article-card__footer {
    padding: 0 20px 20px;
    flex-direction: column;
    align-items: flex-start;
  }

  .article-card__link {
    align-self: stretch;
    text-align: center;
  }

  .cta-section {
    padding: 60px 0;
  }

  .cta-content {
    padding: 30px;
  }

  .cta-title {
    font-size: 1.5rem;
  }
}
