:root {
  --news-bg: linear-gradient(135deg, #0b1f3b 0%, #013a63 50%, #0a9396 100%);
  --card-bg: #0f1f33;
  --accent: #14b8a6;
  --text-primary: #ffffff;
  --text-secondary: #c7d2fe;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.news-page .feature-card {
  background: var(--news-bg);
  color: var(--text-primary);
  border-radius: 18px;
  padding: clamp(24px, 6vw, 48px);
  box-shadow: var(--shadow);
}

.news-page .feature-card h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: 0.5px;
}

.news-page .feature-card p {
  color: var(--text-secondary);
  font-size: clamp(0.95rem, 2.2vw, 1.1rem);
}

.news-page .section-title h2 {
  color: #05294a;
  font-weight: 700;
}

.news-page #news-grid.service-grid {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1.8vw, 14px);
  margin: 12px auto 0;
  max-width: 1100px;
  padding: 0 4%;
}

@media (min-width: 1200px) {
  .news-page #news-grid.service-grid {
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  }
}

.news-page .article-anchor {
  display: grid;
  grid-template-columns: clamp(110px, 20vw, 180px) 1fr;
  align-items: start;
  gap: 18px;
  padding: 16px 12px;
  text-decoration: none;
  background: transparent;
  border-bottom: 1px solid rgba(20, 184, 166, 0.18);
  transition: background-color 200ms ease, transform 200ms ease, box-shadow 240ms ease;
  color: #06223f;
  will-change: transform, box-shadow, background-color;
}

.news-page .article-anchor:hover {
  background: rgba(20, 184, 166, 0.08);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(20, 184, 166, 0.15);
}

.news-page .article-anchor.animate-in {
  animation: news-in 420ms cubic-bezier(0.2, 0.8, 0.2, 1) 1;
}

@keyframes news-in {
  0% { opacity: 0; transform: translateY(10px) scale(0.98); }
  60% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.news-page .article-anchor::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(20,184,166,0.08) 50%, transparent 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}
.news-page .article-anchor:hover::after {
  opacity: 1;
}

.news-page .news-thumb {
  width: clamp(110px, 20vw, 180px);
  height: clamp(110px, 20vw, 180px);
  border-radius: 12px;
  background: var(--news-bg);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  letter-spacing: 1px;
  overflow: hidden;
}

.news-page .news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  transition: transform 300ms ease;
}
.news-page .article-anchor:hover .news-thumb img {
  transform: scale(1.05);
}

.news-page .news-content .news-title {
  font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  line-height: 1.3;
  color: #0b1f3b;
}

.news-page .badge-new {
  display: inline-block;
  margin-left: 6px;
  padding: 3px 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #032b43;
  background: #14b8a6;
  border-radius: 8px;
}

.news-page .news-content .news-desc {
  margin-top: 6px;
  color: #244b72;
  font-size: clamp(0.95rem, 2.2vw, 1.05rem);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-page .news-content .news-meta {
  margin-top: 8px;
  font-size: 0.9rem;
  color: #0a9396;
  font-weight: 600;
}

.news-page .article-anchor.highlight {
  background: rgba(20, 184, 166, 0.12);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
  animation: news-top-pulse 900ms ease-in-out 1;
}

@keyframes news-top-pulse {
  0% { transform: translateY(0); box-shadow: 0 6px 16px rgba(0,0,0,0.12); }
  40% { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0,0,0,0.18); }
  100% { transform: translateY(0); box-shadow: 0 6px 16px rgba(0,0,0,0.12); }
}

.news-page .news-skeleton {
  display: grid;
  grid-template-columns: clamp(110px, 20vw, 180px) 1fr;
  gap: 18px;
  padding: 16px 12px;
  border-bottom: 1px solid rgba(20, 184, 166, 0.12);
}
.news-page .skeleton-thumb,
.news-page .skeleton-line {
  background: linear-gradient(90deg, #0f1f33 0%, #132a44 50%, #0f1f33 100%);
  background-size: 200% 100%;
  animation: shimmer 1200ms linear infinite;
  border-radius: 12px;
}
.news-page .skeleton-thumb {
  width: clamp(110px, 20vw, 180px);
  height: clamp(110px, 20vw, 180px);
}
.news-page .skeleton-lines {
  display: grid;
  grid-template-rows: 18px 14px;
  gap: 10px;
  align-content: center;
}
.news-page .skeleton-lines .skeleton-line:first-child {
  width: 70%;
  height: 18px;
}
.news-page .skeleton-lines .skeleton-line:last-child {
  width: 40%;
  height: 14px;
}
@keyframes shimmer {
  0% { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}

.news-page .section-title {
  position: relative;
}

.news-page .last-refresh {
  position: absolute;
  right: 4%;
  top: 28px;
  color: #244b72;
  font-size: 0.85rem;
}

.news-page .refresh-btn {
  position: absolute;
  right: 4%;
  top: 0;
  transform: translateY(-50%);
  background: var(--accent);
  color: #032b43;
  border: none;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(20, 184, 166, 0.35);
}

.news-page .refresh-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.news-page .refresh-btn.busy::after {
  content: "";
  position: absolute;
  right: -26px;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  border: 2px solid rgba(3,43,67,0.35);
  border-top-color: #032b43;
  border-radius: 50%;
  animation: spin 900ms linear infinite;
}
@keyframes spin {
  to { transform: translateY(-50%) rotate(360deg); }
}
