:root {
  --ink: #17262e;
  --muted: #6b7a82;
  --paper: #ffffff;
  --page: #eef1ee;
  --accent: #1e68c8;
  --accent-dark: #17262e;
}
 

/* ---------- Card ---------- */
.news-card {
  width: 100%;
  
  background: var(--paper);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(23, 38, 46, .12);
  transition: box-shadow .35s ease, transform .35s ease;gap1: 6px;margin-bottom: 22px;
}
.news-card:hover {
  box-shadow: 0 18px 40px rgba(23, 38, 46, .2);
  transform: translateY(-4px);
}

/* ---------- Image (100% width + hover effect) ---------- */
.news-card__media {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.news-card__media img {
  display: block;
  width: 100%;
  height1: 100%;
  object-fit1: cover; padding-top1: 2px;
  transition: transform .7s cubic-bezier(.2, .7, .2, 1), filter .7s ease;
}
.news-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(23, 38, 46, .45), transparent 55%);
  opacity: 0;
  transition: opacity .5s ease;
}
.news-card:hover .news-card__media img {
  transform: scale(1.1) rotate(0deg);
  filter: saturate(1.2) brightness(1.05);
}
.news-card:hover .news-card__media::after { opacity: 1; }

/* ---------- Text ---------- */
.news-card__body { padding: 20px 22px 24px; }

.news-card__date svg { color: var(--accent); flex: none; }
.news-card__date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .85rem;
  color: var(--muted);
  margin-top: 0;
}

.news-card__title {
  font-size: 18px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -.01em;
  margin-bottom: 10px;
}

/* ---------- Animated Read more button ---------- */
.read-more {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 8px 18px;
  border: 2px solid var(--accent);
  border-radius: 9px;
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition: color .35s ease, transform .15s ease;
}
/* colour sweeps in from the left */
.read-more::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateX(-101%);
  transition: transform .45s cubic-bezier(.2, .7, .2, 1);
  z-index: -1;
}
.read-more__icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  transition: transform .45s cubic-bezier(.2, .7, .2, 1), background .35s ease, color .35s ease;
}
.read-more:hover,
.read-more:focus-visible { color: #fff; }
.read-more:hover::before,
.read-more:focus-visible::before { transform: translateX(0); }
.read-more:hover .read-more__icon,
.read-more:focus-visible .read-more__icon {
  transform: translateX(4px);
  background: #fff;
  color: var(--accent);
}
.read-more:active { transform: scale(.96); }
.read-more:focus-visible { outline: 3px solid rgba(200, 80, 30, .35); outline-offset: 3px; }

/* click ripple (added by script.js) */
.read-more .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .5);
  transform: scale(0);
  animation: ripple .6s ease-out forwards;
  pointer-events: none;
  z-index: -1;
}
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Icons ---------- */
.news-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: var(--accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
  transition: transform .4s cubic-bezier(.2, .7, .2, 1), background .3s ease, color .3s ease;
}
.news-card:hover .news-card__badge { transform: rotate(-8deg) scale(1.1); background: var(--accent); color: #fff; }

.news-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}
.news-card__actions { display: flex; gap: 6px; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background .25s ease, color .25s ease, transform .2s ease;
}
.icon-btn:hover { background: rgba(200, 80, 30, .1); color: var(--accent); transform: translateY(-2px); }
.icon-btn:focus-visible { outline: 3px solid rgba(200, 80, 30, .35); outline-offset: 2px; }
.icon-btn.is-active { color: var(--accent); }
.icon-btn.is-active svg { fill: currentColor; }
