.cco-posts,
.cco-posts * {
  box-sizing: border-box;
}

.cco-posts {
  --cco-navy: #071a33;
  --cco-blue: #0b72e7;
  --cco-blue-dark: #075fbe;
  --cco-text: #43536a;
  --cco-muted: #6f8197;
  --cco-line: #d9e6f3;
  width: 100%;
}

.cco-posts__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.cco-post-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--cco-line);
  border-radius: 18px;
  box-shadow: 0 12px 28px -24px rgba(7, 26, 51, 0.55);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.cco-post-card:hover {
  transform: translateY(-3px);
  border-color: #b9d5f2;
  box-shadow: 0 20px 36px -26px rgba(7, 26, 51, 0.58);
}

.cco-post-card__media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #eaf2fa;
}

.cco-post-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.cco-post-card:hover .cco-post-card__image {
  transform: scale(1.025);
}

.cco-post-card__placeholder {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #071a33, #0b72e7);
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.cco-post-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.cco-post-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
  color: var(--cco-muted);
  font-size: 0.76rem;
  line-height: 1.4;
}

.cco-post-card__category {
  color: var(--cco-blue);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.045em;
  text-decoration: none;
  text-transform: uppercase;
}

.cco-post-card__category:hover,
.cco-post-card__category:focus-visible {
  color: var(--cco-blue-dark);
  text-decoration: underline;
}

.cco-post-card__title {
  margin: 0 0 10px;
  color: var(--cco-navy);
  font-size: clamp(1.08rem, 1.55vw, 1.25rem);
  font-weight: 750;
  line-height: 1.28;
}

.cco-post-card__title a {
  color: inherit;
  text-decoration: none;
}

.cco-post-card__title a:hover,
.cco-post-card__title a:focus-visible {
  color: var(--cco-blue-dark);
}

.cco-post-card__excerpt {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 18px;
  color: var(--cco-text);
  font-size: 0.94rem;
  line-height: 1.62;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.cco-post-card__more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 15px;
  color: var(--cco-navy);
  border-top: 1px solid #edf2f7;
  font-size: 0.88rem;
  font-weight: 750;
  text-decoration: none;
}

.cco-post-card__more span {
  color: var(--cco-blue);
  font-size: 1.25rem;
  line-height: 1;
  transition: transform 180ms ease;
}

.cco-post-card__more:hover,
.cco-post-card__more:focus-visible {
  color: var(--cco-blue-dark);
}

.cco-post-card__more:hover span,
.cco-post-card__more:focus-visible span {
  transform: translateX(3px);
}

.cco-post-card a:focus-visible,
.cco-pagination__button:focus-visible {
  outline: 3px solid rgba(11, 114, 231, 0.34);
  outline-offset: 3px;
}

.cco-pagination {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 42px;
  padding-top: 26px;
  border-top: 1px solid var(--cco-line);
}

.cco-pagination__button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  color: var(--cco-navy);
  background: #fff;
  border: 1px solid var(--cco-line);
  border-radius: 11px;
  box-shadow: 0 8px 18px -15px rgba(7, 26, 51, 0.5);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.cco-pagination__button:hover {
  color: var(--cco-blue-dark);
  border-color: #9dc7ef;
  transform: translateY(-1px);
}

.cco-pagination__button--next {
  margin-left: auto;
}

.cco-posts__empty {
  padding: 48px 22px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--cco-line);
  border-radius: 18px;
}

.cco-posts__empty h2 {
  margin: 0 0 8px;
  color: var(--cco-navy);
}

.cco-posts__empty p {
  margin: 0;
  color: var(--cco-text);
}

@media (max-width: 1024px) {
  .cco-posts__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .cco-posts__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .cco-post-card {
    border-radius: 15px;
  }

  .cco-post-card__body {
    padding: 18px;
  }

  .cco-post-card__title {
    font-size: 1.14rem;
  }

  .cco-pagination {
    margin-top: 30px;
    padding-top: 22px;
  }

  .cco-pagination__button {
    min-width: 118px;
    padding-inline: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cco-post-card,
  .cco-post-card__image,
  .cco-post-card__more span,
  .cco-pagination__button {
    transition: none;
  }
}

