/* News listing + detail UI — brand: #00659b / #FF5151 / #3e204d */

.aks-news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  padding: 10px 0 40px;
}

.aks-news-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e6eef4;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 101, 155, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  height: 100%;
}

.aks-news-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 101, 155, 0.28);
  box-shadow: 0 16px 36px rgba(0, 101, 155, 0.12);
}

.aks-news-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #3e204d 0%, #00659b 100%);
}

.aks-news-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.aks-news-card:hover .aks-news-card__media img {
  transform: scale(1.04);
}

.aks-news-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: #00659b;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.aks-news-card__badge.is-achievement {
  background: #FF5151;
}

.aks-news-card__badge.is-announcement {
  background: #056839;
}

.aks-news-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 18px 20px;
  gap: 12px;
}

.aks-news-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: #6b7c89;
  font-size: 13px;
  line-height: 1.3;
}

.aks-news-card__meta time {
  font-weight: 600;
  color: #00659b;
}

.aks-news-card__meta-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #c5d3dc;
}

.aks-news-card__title {
  margin: 0;
  font-size: 18px;
  line-height: 1.45;
  font-weight: 700;
  color: #142833;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 78px;
}

.aks-news-card__title a {
  color: inherit;
  text-decoration: none;
}

.aks-news-card__title a:hover {
  color: #00659b;
}

.aks-news-card__excerpt {
  margin: 0;
  color: #5a6b76;
  font-size: 14px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 66px;
}

.aks-news-card__footer {
  margin-top: auto;
  padding-top: 6px;
}

.aks-news-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 8px;
  background: #00659b;
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
  transition: background 0.2s ease, transform 0.2s ease;
}

.aks-news-card__btn:hover {
  background: #FF5151;
  color: #fff !important;
}

.aks-news-card__btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.aks-news-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 20px;
  color: #6b7c89;
  border: 1px dashed #d5e1ea;
  border-radius: 14px;
}

/* Detail page */
.aks-article {
  background: #fff;
  border: 1px solid #e6eef4;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 101, 155, 0.07);
}

.aks-article__hero {
  position: relative;
  background: #0f2430;
}

.aks-article__hero img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  display: block;
}

.aks-article__hero-fade {
  position: absolute;
  inset: auto 0 0 0;
  height: 90px;
  background: linear-gradient(to top, rgba(15, 36, 48, 0.35), transparent);
  pointer-events: none;
}

.aks-article__content {
  padding: 28px 28px 34px;
}

.aks-article__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.aks-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: #eaf4fa;
  color: #00659b;
  text-decoration: none !important;
}

.aks-chip.is-accent {
  background: #ffe8e8;
  color: #FF5151;
}

.aks-article__date {
  margin: 0 0 18px;
  color: #6b7c89;
  font-size: 14px;
}

.aks-article__date strong {
  color: #00659b;
}

.aks-article__body {
  color: #243540;
  font-size: 17px;
  line-height: 1.75;
}

.aks-article__body p {
  margin: 0 0 16px;
}

.aks-article__body a {
  color: #00659b;
  font-weight: 600;
}

.aks-article__body a:hover {
  color: #FF5151;
}

.aks-side-card {
  background: #fff;
  border: 1px solid #e6eef4;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 101, 155, 0.06);
  margin-bottom: 20px;
}

.aks-side-card__title {
  margin: 0;
  padding: 14px 18px;
  background: #00659b;
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 700;
}

.aks-side-card ul {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}

.aks-side-card ul li a {
  display: block;
  padding: 12px 18px;
  border-bottom: 1px solid #eef3f7;
  color: #243540 !important;
  text-decoration: none !important;
  font-size: 14px;
  line-height: 1.45;
  transition: background 0.2s ease, color 0.2s ease;
}

.aks-side-card ul li:last-child a {
  border-bottom: 0;
}

.aks-side-card ul li a:hover {
  background: #f4f9fc;
  color: #FF5151 !important;
}

.aks-side-card ul li a::before {
  content: none !important;
}

.single-post-banner.aks-detail-banner {
  background-color: #00659b;
  background-image:
    linear-gradient(120deg, rgba(0, 35, 58, 0.55), rgba(0, 101, 155, 0.5)),
    url(../images/new/banner-home-alt.jpg);
  background-position: center 28%;
  background-size: cover;
  background-repeat: no-repeat;
  height: 240px;
}

.single-post-banner.aks-detail-banner h1 {
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.35;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (max-width: 1024px) {
  .aks-news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (max-width: 767px) {
  .aks-news-grid {
    grid-template-columns: 1fr;
  }

  .aks-news-card__title,
  .aks-news-card__excerpt {
    min-height: 0;
  }

  .aks-article__content {
    padding: 20px 16px 24px;
  }

  .single-post-banner.aks-detail-banner {
    height: 200px;
  }
}
