p, a, input, figcaption, span {
    font-family: sans-serif;
}
/* ===== MAIN GRID ===== */

.main-block {
  display: grid;
  gap: 32px;
  align-items: stretch;
}

/* ===== ARTICLE CARD BASE ===== */

.article-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: #000;
  cursor: pointer;
}

.article-link {
  display: block;
  height: 100%;
}

/* ===== MAIN ARTICLE ===== */

.article-main {
  height: 100%;
}

/* ===== SMALL ARTICLES ===== */

/* ===== NEWS LIST CLEAN ===== */

.news-list {
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  background: #fff;
  border-radius: 20px;
  padding: 24px;
}


.news-item {
    font-family: sans-serif;
    flex: 1;
    padding: 18px 0;
    border-bottom: 1px solid rgba(17, 61, 150, 0.15);
}

.news-item:last-of-type {
  border-bottom: none;
}


.news-item:last-child {
  border-bottom: none;
}

.news-item a {
  text-decoration: none;
  display: block;
}

.news-item h2 {
  font-size: 18px;
  margin-bottom: 6px;
  transition: .2s;
}

.news-item p {
  font-size: 14px;
  color: #555;
}

.news-item:hover h2 {
  color: var(--blue);
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.news-category {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;

  padding: 4px 10px;
  border-radius: 20px;

  background: rgba(17, 61, 150, 0.08);
  color: var(--blue);
}

.news-date {
    margin-left: auto;
    font-size: 12px;
    color: rgba(17, 61, 150, 0.5);
}


.all-news-btn {
    font-family: sans-serif;
    margin-top: 20px;
    padding: 10px 20px;
    border-radius: 12px;
    color: var(--blue);
    text-decoration: none;
    font-size: 14px;
    border: 2px solid rgba(117, 138, 255, 0.364);
    transition: 0.25s;
}

.all-news-btn:hover {
  background: var(--blue);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  color: white;
}


/* ===== IMAGE ===== */

.article-image {
  inset: 0;
}

.article-image img {
  aspect-ratio: 4 / 3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
}

.article-link:hover img {
  transform: scale(1.12);
}

/* ===== OVERLAY ===== */

.article-overlay {
  position: absolute;
  inset: 0;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(
    to top,
    rgba(0,0,0,.65),
    rgba(0,0,0,0)
  );
  color: #fff;
}

/* ===== TYPOGRAPHY ===== */

.article-main h1 {
  font-size: 30px;
  margin-bottom: 8px;
}

.article-small h2 {
  font-size: 18px;
  margin-bottom: 6px;
}

.article-overlay p {
  font-size: 14px;
  opacity: .9;
}

/* ================= ADAPTIVE ================= */

@media (max-width: 1024px) {
  .main-block {
    grid-template-columns: 1fr;
  }

  .article-small {
    min-height: 220px;
  }
}

@media (max-width: 600px) {
  .article-overlay {
    padding: 18px;
  }

  .article-main h1 {
    font-size: 22px;
  }

  .article-small h2 {
    font-size: 16px;
  }

  .all-news-btn{
    width: 50%; 
  }

  

}



/* ================= CATEGORIES ================= */


.section-title {
  font-size: 28px;
  margin-bottom: 32px;
  color: var(--blue);
}

/* GRID */

.categories-grid {
  display: grid;
  gap: 40px;
}

/* LEFT SIDE */

.categories-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.category-card {
  display: flex;
  justify-content: space-between;
  align-items: center;

  background: #fff;
  border-radius: 18px;
  padding: 24px;

  transition: 0.25s ease;
}

.category-card:hover {
  box-shadow: 0 8px 24px rgba(17, 61, 150, 0.08);
  transform: translateY(-3px);
}

.category-content {
  max-width: 65%;
}

.category-tag {
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 600;

  padding: 4px 10px;
  border-radius: 20px;

  background: rgba(17, 61, 150, 0.08);
  color: var(--blue);

  display: inline-block;
  margin-bottom: 10px;
}

.category-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--blue);
}

.category-card p {
  font-size: 14px;
  color: #555;
}

.category-image {
  width: 120px;
  height: 90px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
}

.category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* RIGHT SIDE */

.trending {
  position: sticky;
  top: 100px; /* чтобы не прилипало к хедеру */
}

.trending-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;

  padding-bottom: 16px;
  border-bottom: 1px solid rgba(17, 61, 150, 0.12);

  transition: .2s ease;
  cursor: pointer;
}

.trending-card:hover {
  transform: translateX(4px);
}

.trending-number {
  font-size: 18px;
  font-weight: 600;
  color: rgba(17, 61, 150, 0.3);
  min-width: 28px;
}

.trending-card h4 {
  font-size: 14px;
  color: #333;
}


.trending-title {
  font-size: 18px;
  margin-bottom: 20px;
  color: var(--blue);
}





.trending-card:last-child {
  border-bottom: none;
}




@media (max-width: 1024px) {
  .categories-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .category-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .category-content {
    max-width: 100%;
  }

  .category-image {
    width: 100%;
    height: 160px;
    margin-top: 16px;
  }
  .news-list{
    display: none;
  }
}



/* ================= CATEGORY ARTICLES ================= */


.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.section-header h2 {
  font-size: 26px;
  color: var(--blue);
}

.section-link {
  text-decoration: none;
  font-size: 14px;
  color: var(--blue-light);
}

.articles-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* CARD */

.article-card-clean {
  display: flex;
  justify-content: space-between;
  align-items: center;

  background: #fff;
  border-radius: 18px;
  padding: 24px;

  transition: .25s ease;
}

.article-card-clean:hover {
  box-shadow: 0 8px 24px rgba(17, 61, 150, 0.08);
  transform: translateY(-3px);
}

.article-content {
  max-width: 100%;
}

.article-date {
  font-size: 12px;
  color: rgba(17, 61, 150, 0.5);
  display: block;
  margin-bottom: 8px;
}

.article-card-clean h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--blue);
}

.article-card-clean p {
  font-size: 14px;
  color: #555;
}

.article-image-clean {
  width: 140px;
  height: 100px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
}

.article-image-clean img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* ===== PAGE CONTENT ===== */

.page-content {
  margin-top: 40px;
  margin-bottom: 40px;
}

.layout-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  align-items: start;
}

.layout-main {
  display: flex;
  flex-direction: column;
  gap: 80px;
}



.news-list {
  position: sticky;
  top: calc(var(--header-height) + 40px);
}

.article-category {
  display: inline-block;
  padding: 4px 10px;
  margin-bottom: 8px;

  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;

  background: rgba(17, 61, 150, 0.1);
  color: var(--blue);
  border-radius: 20px;
}



/* RIGHT COLUMN */

.layout-sidebar {
  position: relative;
}

@media (max-width: 1024px) {
  .layout-grid {
    grid-template-columns: 1fr;
  }

  .layout-sidebar {
    order: -1; /* можно убрать если не хочешь вверх */
  }
}

