/* public/assets/css/pages/news.css */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.news-card {
  background-color: #fff;
  border-radius: 12px;
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.05),
    0 1px 3px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.2s ease-in-out,
    box-shadow 0.2s ease-in-out;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 10px 15px rgba(0, 0, 0, 0.07),
    0 4px 6px rgba(0, 0, 0, 0.08);
}

.news-thumb img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.news-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.news-date {
  font-size: 0.8rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.news-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1b4332; /* primary color */
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.news-summary {
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 1rem;
}

.news-link {
  color: #1b4332; /* primary color */
  font-weight: 600;
  text-decoration: none;
  align-self: flex-start;
}

.news-link:hover {
  text-decoration: underline;
}

/* Article Detail Styles */
.article-container {
  line-height: 1.8;
  color: #374151;
}

.article-detail-shell {
  background:
    radial-gradient(
      circle at top left,
      rgba(255, 183, 3, 0.12),
      transparent 22%
    ),
    linear-gradient(180deg, #f6fbf8 0%, #ffffff 28%);
  border-radius: 28px;
  padding: 1.25rem;
}

@media (min-width: 768px) {
  .article-detail-shell {
    padding: 2rem;
  }
}

.article-detail-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
  border-radius: 24px;
  overflow: hidden;
}

.breadcrumb {
  font-size: 0.92rem;
  color: #64748b;
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumb a {
  text-decoration: none;
  color: #2d6a4f;
  font-weight: 500;
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: #1b4332;
}

.breadcrumb-separator {
  color: #94a3b8;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 1.25rem;
}

@media (min-width: 768px) {
  .article-layout {
    padding: 2rem;
  }
}

@media (min-width: 1024px) {
  .article-layout {
    grid-template-columns: minmax(0, 1.7fr) minmax(290px, 360px);
    gap: 2rem;
    align-items: start;
  }
}

.main-content {
  min-width: 0;
}

.article-hero {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  min-height: 320px;
  display: flex;
  align-items: end;
  background: #1b4332;
  box-shadow: 0 20px 40px rgba(27, 67, 50, 0.16);
}

.article-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.08) 0%,
    rgba(15, 23, 42, 0.78) 100%
  );
}

.article-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 1.5rem;
  color: #ffffff;
}

@media (min-width: 768px) {
  .article-hero-content {
    padding: 2.25rem;
  }
}

.article-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  color: #f8fafc;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.article-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.14;
  margin: 0;
  max-width: 12ch;
}

.article-summary {
  margin-top: 1rem;
  max-width: 720px;
  font-size: 1.02rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.92);
}

.article-meta-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.article-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #1f2937;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.article-content-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  padding: 1.5rem;
  margin-top: 1.5rem;
}

@media (min-width: 768px) {
  .article-content-card {
    padding: 2rem;
  }
}

.article-body {
  font-size: 1.05rem;
  line-height: 1.9;
  color: #374151;
}

.article-body > *:first-child {
  margin-top: 0;
}

.article-body .lead {
  font-size: 1.22rem;
  font-weight: 500;
  color: #1f2937;
  margin-bottom: 1.75rem;
  line-height: 1.75;
}

.article-body h2 {
  font-size: 1.7rem;
  font-weight: 700;
  color: #1b4332;
  margin-top: 2.75rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.article-body h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #2d6a4f;
  margin-top: 1.75rem;
  margin-bottom: 0.85rem;
  line-height: 1.4;
}

.article-body p {
  margin-bottom: 1.25rem;
}

.article-body ul,
.article-body ol {
  margin-top: 1.25rem;
  margin-bottom: 1.75rem;
  padding-left: 1.5rem;
}

.article-body ul {
  list-style-type: disc;
}

.article-body ol {
  list-style-type: decimal;
}

.article-body li {
  margin-bottom: 0.75rem;
  padding-left: 0.2rem;
}

.article-body a {
  color: #2d6a4f;
  text-decoration: underline;
  text-decoration-color: rgba(45, 106, 79, 0.35);
  text-underline-offset: 3px;
  transition: all 0.2s ease-in-out;
}

.article-body a:hover {
  color: #1b4332;
  text-decoration-color: #1b4332;
}

.article-body strong {
  color: #111827;
  font-weight: 700;
}

.article-body blockquote {
  border-left: 4px solid #ffb703;
  background: linear-gradient(180deg, #fffaf0 0%, #fff7ed 100%);
  padding: 1.1rem 1.25rem;
  margin: 2rem 0;
  font-style: italic;
  border-radius: 0 16px 16px 0;
  color: #525252;
}

.article-body img,
.article-body figure {
  margin-top: 2rem;
  margin-bottom: 2rem;
  max-width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
}

.article-body figcaption {
  font-size: 0.92rem;
  color: #6b7280;
  text-align: center;
  margin-top: -1rem;
  margin-bottom: 2rem;
}

.article-footer-nav {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #1b4332;
  font-weight: 700;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

.sidebar {
  min-width: 0;
}

.sidebar-wrapper {
  display: grid;
  gap: 1rem;
}

@media (min-width: 1024px) {
  .sidebar-wrapper {
    position: sticky;
    top: 110px;
  }
}

.sidebar-widget {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  padding: 1.25rem;
  border-radius: 20px;
  margin-bottom: 0;
  border: 1px solid #e5e7eb;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.widget-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e5e7eb;
}

.related-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.related-item {
  margin-bottom: 1rem;
  display: flex;
  gap: 0.85rem;
  align-items: center;
}

.related-item:last-child {
  margin-bottom: 0;
}

.related-thumb {
  width: 92px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
}

.related-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.45;
}

.related-title a {
  color: #1f2937;
  text-decoration: none;
  transition: color 0.2s;
}

.related-title a:hover {
  color: #1b4332;
}

.related-date {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: #6b7280;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tag-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.9rem;
  background-color: #fff;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  color: #4b5563;
  text-decoration: none;
  transition: all 0.2s;
}

.tag-btn:hover {
  background-color: #1b4332;
  color: #fff;
  border-color: #1b4332;
}

.tag-btn.tag-btn-accent {
  background: #fffbeb;
  border-color: #facc15;
  color: #92400e;
}

.tag-btn.tag-btn-accent:hover {
  background: #ffb703;
  border-color: #ffb703;
  color: #1f2937;
}

.article-not-found {
  text-align: center;
  padding: 3rem 1.5rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}

.article-not-found h2 {
  margin-bottom: 0.75rem;
  color: #1b4332;
  font-size: 1.8rem;
}

.article-not-found p {
  color: #6b7280;
  margin-bottom: 1.5rem;
}

.article-not-found .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
