/* Hide the articles category from the homepage category directory only. */
body.itemid-101 #sp-component .com-content-categories__item:has(a[href="/statti"]) {
  display: none;
}

/* Список статей /statti (клас меню gdz-articles): картки з кольоровим акцентом замість вступних зображень */
.view-category.gdz-articles .article-list {
  max-width: 1040px;
  margin: 0 auto;
}
.view-category.gdz-articles .article-list > .row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr));
  gap: 24px;
  margin: 0 0 24px;
}
.view-category.gdz-articles .article-list > .row > [class*="col-"] {
  width: auto;
  max-width: none;
  padding: 0;
  display: flex;
}
.view-category.gdz-articles .article-list article.item {
  --acc: #1061cc;
  --acc-bg: #eaf2fd;
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 26px 26px 22px;
  background: linear-gradient(135deg, var(--acc-bg) 0, #fff 55%);
  border: 1px solid #dfe5ee;
  border-top: 5px solid var(--acc);
  border-radius: 12px;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.view-category.gdz-articles .article-list > .row > :nth-child(4n+2) article.item { --acc: #0f9b8e; --acc-bg: #e6f6f4; }
.view-category.gdz-articles .article-list > .row > :nth-child(4n+3) article.item { --acc: #e8793a; --acc-bg: #fdf0e7; }
.view-category.gdz-articles .article-list > .row > :nth-child(4n+4) article.item { --acc: #7a4fd6; --acc-bg: #f1ecfc; }
.view-category.gdz-articles .article-list article.item:hover {
  transform: translateY(-3px);
  border-color: var(--acc);
  box-shadow: 0 10px 26px rgba(20, 40, 80, .12);
}
/* велика напівпрозора піктограма в куті */
.view-category.gdz-articles .article-list article.item::after {
  content: "\f19d";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  right: 18px;
  top: 14px;
  font-size: 44px;
  line-height: 1;
  color: var(--acc);
  opacity: .14;
  pointer-events: none;
}
.view-category.gdz-articles .article-list > .row > :nth-child(4n+2) article.item::after { content: "\f5fd"; }
.view-category.gdz-articles .article-list > .row > :nth-child(4n+3) article.item::after { content: "\f1ec"; }
.view-category.gdz-articles .article-list > .row > :nth-child(4n+4) article.item::after { content: "\f0eb"; }
.view-category.gdz-articles .article-list .entry-header {
  margin-bottom: 12px;
  padding-right: 48px;
}
.view-category.gdz-articles .article-list .article-info {
  margin: 0 0 10px;
}
.view-category.gdz-articles .article-list .article-info .published {
  display: inline-block;
  padding: 3px 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--acc);
  background: #fff;
  border: 1px solid currentColor;
  border-radius: 999px;
}
.view-category.gdz-articles .article-list .article-info .published i {
  margin-right: 4px;
}
.view-category.gdz-articles .article-list .entry-header h2 {
  margin: 0;
  font-size: 21px;
  line-height: 1.35;
}
.view-category.gdz-articles .article-list .entry-header h2 a {
  color: #1d2b3a;
  text-decoration: none;
}
.view-category.gdz-articles .article-list article.item:hover .entry-header h2 a {
  color: var(--acc);
}
/* уся картка клікабельна */
.view-category.gdz-articles .article-list .entry-header h2 a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.view-category.gdz-articles .article-list .gdz-lesson,
.view-category.gdz-articles .article-list .gdz-lesson .gdz-lead {
  margin: 0;
  font-size: 17px !important;
  line-height: 1.55;
  color: #4a5b6c !important;
}
.view-category.gdz-articles .article-list p.readmore {
  margin: auto 0 0;
  padding-top: 18px;
}
.view-category.gdz-articles .article-list p.readmore .btn {
  padding: 8px 18px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--acc);
  border: 0;
  border-radius: 8px;
}
@media (max-width: 575px) {
  .view-category.gdz-articles .article-list article.item { padding: 22px 18px 18px; }
  .view-category.gdz-articles .article-list .entry-header h2 { font-size: 19px; }
}

/* Головна, блок «Останні статті» (gdz-new-articles): спокійніша версія карток /statti — кольорова смужка, дата з піктограмою */
#sp-bottom .sp-module.gdz-new-articles .sp-module-title {
  position: relative;
  padding-bottom: 12px;
  font-style: normal;
}
#sp-bottom .sp-module.gdz-new-articles .sp-module-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 4px;
  border-radius: 2px;
  background: #1061cc;
}
#sp-bottom .sp-module.gdz-new-articles .latestnews > div,
#sp-bottom .sp-module.gdz-new-articles .latestnews > div:last-child {
  --acc: #1061cc;
  padding: 20px 22px 18px;
  border-top: 4px solid var(--acc);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(20, 40, 80, .05);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
#sp-bottom .sp-module.gdz-new-articles .latestnews > div:nth-child(4n+2) { --acc: #0f9b8e; }
#sp-bottom .sp-module.gdz-new-articles .latestnews > div:nth-child(4n+3) { --acc: #e8793a; }
#sp-bottom .sp-module.gdz-new-articles .latestnews > div:nth-child(4n+4) { --acc: #7a4fd6; }
#sp-bottom .sp-module.gdz-new-articles .latestnews > div:hover {
  transform: translateY(-3px);
  border-color: var(--acc);
  box-shadow: 0 10px 24px rgba(20, 40, 80, .12);
}
#sp-bottom .sp-module.gdz-new-articles .latestnews small {
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--acc);
}
#sp-bottom .sp-module.gdz-new-articles .latestnews small::before {
  content: "\f133";
  margin-right: 6px;
  font-family: "Font Awesome 5 Free";
  font-weight: 400;
}
#sp-bottom .sp-module.gdz-new-articles .latestnews > div > a {
  color: #1d2b3a;
}
#sp-bottom .sp-module.gdz-new-articles .latestnews > div:hover > a {
  color: var(--acc);
}
#sp-bottom .sp-module.gdz-new-articles .latestnews > div > a::after {
  align-self: flex-start;
  padding-top: 14px;
  font-weight: 600;
  color: var(--acc);
  transition: transform .2s;
}
#sp-bottom .sp-module.gdz-new-articles .latestnews > div:hover > a::after {
  transform: translateX(4px);
}
