/* ==========================================================================
   Linyi Mincai Stationery - News Page Stylesheet
   Cartoon & Playful Style, Unified Content Width, Clean Layout
   ========================================================================== */

:root {
  --news-orange: #ff621f;
  --news-orange-hover: #ff7d42;
  --news-navy: #10264f;
  --news-blue: #168cff;
  --news-text: #506482;
  --news-muted: #8496ae;
  --news-bg-card: #ffffff;
  --news-border-card: #edf2f8;
}

.news-list-page {
  background: #fdfdfe;
  color: var(--news-navy);
  min-height: 80vh;
}

/* ==========================================================================
   1. News Hero Banner Section
   ========================================================================== */
.news-hero {
  position: relative;
  height: 250px;
  overflow: hidden;
  background: #c5edff url('../images/about-banner.png') left center / cover no-repeat;
  display: flex;
  align-items: center;
}

.news-hero-art {
  position: absolute;
  height: 100%;
  width: 58%;
  max-width: 820px;
  right: 0;
  top: 0;
  object-fit: cover;
  object-position: right center;
  pointer-events: none;
}

.news-hero-inner {
  position: relative;
  z-index: 2;
  width: min(1480px, calc(100% - 64px));
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 20px;
  box-sizing: border-box;
}

.news-hero h1 {
  font-family: 'Fredoka', 'Arial Rounded MT Bold', sans-serif;
  font-size: clamp(48px, 5.5vw, 76px);
  font-weight: 700;
  color: #0088ff;
  margin: 0 0 10px;
  line-height: 1.1;
  letter-spacing: -1.5px;
}

.news-hero h1 span {
  color: var(--news-orange);
}

.news-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--news-navy);
}

.news-breadcrumb a {
  color: var(--news-navy);
  text-decoration: none;
  transition: color 0.2s ease;
}

.news-breadcrumb a:hover {
  color: var(--news-orange);
}

.news-breadcrumb i {
  font-size: 13px;
  color: #8fa5c2;
}

.news-breadcrumb span[aria-current="page"] {
  color: var(--news-orange);
}

/* ==========================================================================
   2. Main News Container & Grid (Unified Content Width)
   ========================================================================== */
.news-list-width {
  width: min(1480px, calc(100% - 64px));
  margin-inline: auto;
  padding: 48px 0 76px;
  box-sizing: border-box;
}

@media (min-width: 1680px) {
  .news-list-width,
  .news-hero-inner {
    max-width: 1568px;
  }
}

.news-list-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 28px;
}

/* ==========================================================================
   3. Cartoon News Card Design
   ========================================================================== */
.news-list-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--news-bg-card);
  border: 2px solid var(--news-border-card);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(16, 38, 79, 0.05);
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.28s cubic-bezier(0.2, 0.8, 0.2, 1),
              border-color 0.28s ease;
}

.news-list-card:hover {
  transform: translateY(-8px);
  border-color: #ffd8bf;
  box-shadow: 0 18px 42px rgba(255, 98, 31, 0.14);
}

/* Card Thumbnail */
.news-list-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 7.5;
  background: #ebf5ff;
  overflow: hidden;
  text-decoration: none;
}

.news-list-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.news-list-card:hover .news-list-media img {
  transform: scale(1.06);
}

/* Cartoon Date Badge */
.news-list-media time {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  padding: 6px 8px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(16, 38, 79, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.9);
  z-index: 2;
  line-height: 1;
}

.news-list-media time strong {
  font-family: 'Fredoka', 'Arial Rounded MT Bold', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--news-orange);
  margin-bottom: 3px;
}

.news-list-media time span {
  font-size: 11px;
  font-weight: 700;
  color: #5d6f88;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Card Content Area */
.news-list-body {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Category Pill Badge */
.news-category-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-bottom: 12px;
  background: #eff6ff;
  color: var(--news-blue);
  border: 1px solid #d4e8ff;
}

.news-category-badge.badge-company {
  background: #fff3ec;
  color: var(--news-orange);
  border-color: #ffd8c2;
}

.news-category-badge.badge-industry {
  background: #fff8e6;
  color: #d97706;
  border-color: #fde68a;
}

/* Article Title */
.news-list-body h2 {
  font-size: 18px;
  line-height: 1.4;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--news-navy);
}

.news-list-body h2 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.news-list-card:hover .news-list-body h2 a {
  color: var(--news-orange);
}

/* Article Summary */
.news-list-body > p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--news-text);
  margin: 0 0 20px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  flex-grow: 1;
}

/* Read Full Article Button */
.read-article {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #007bff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  align-self: flex-start;
  margin-top: auto;
  transition: all 0.22s ease;
}

.read-article i {
  font-size: 12px;
  transition: transform 0.22s ease;
}

.news-list-card:hover .read-article {
  color: var(--news-orange);
}

.news-list-card:hover .read-article i {
  transform: translateX(5px);
}

/* ==========================================================================
   4. Pagination Controls (Standard Circle Style)
   ========================================================================== */
.news-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
}

.news-pagination button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid #e1e9f4;
  background: #ffffff;
  color: var(--news-navy);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.news-pagination button:hover:not(:disabled) {
  border-color: var(--news-orange);
  color: var(--news-orange);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 98, 31, 0.16);
}

.news-pagination button[aria-current='page'],
.news-pagination button.active {
  background: var(--news-orange);
  border-color: var(--news-orange);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(255, 98, 31, 0.35);
}

.news-pagination button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

/* Empty State */
.news-empty {
  text-align: center;
  padding: 72px 20px;
  color: var(--news-text);
}

.news-empty h2 {
  color: var(--news-navy);
  margin-bottom: 8px;
}

.news-empty button {
  margin-top: 16px;
  border-radius: 50px;
  color: #ffffff;
  background: var(--news-orange);
  padding: 12px 28px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.news-empty button:hover {
  background: #e85514;
  transform: translateY(-2px);
}

/* Accessibility */
.news-list-page [hidden] {
  display: none !important;
}

.news-list-page button:focus-visible,
.news-list-page a:focus-visible,
.news-list-page input:focus-visible {
  outline: 3px solid #1687e9;
  outline-offset: 3px;
}

/* ==========================================================================
   5. Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1200px) {
  .news-list-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px 20px;
  }
  .news-hero-art {
    width: 62%;
  }
}

@media (max-width: 960px) {
  .news-list-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 20px;
  }
  .news-list-width {
    width: calc(100% - 40px);
    padding: 36px 0 56px;
  }
  .news-hero {
    height: 220px;
  }
  .news-hero h1 {
    font-size: 46px;
  }
  .news-hero-art {
    width: 65%;
  }
}

@media (max-width: 640px) {
  .news-list-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .news-list-width {
    width: calc(100% - 28px);
    padding: 28px 0 48px;
  }
  .news-hero {
    height: 190px;
  }
  .news-hero-inner {
    padding-left: 10px;
  }
  .news-hero h1 {
    font-size: 38px;
    margin-bottom: 6px;
  }
  .news-hero-art {
    width: 55%;
    opacity: 0.8;
  }
  .news-breadcrumb {
    font-size: 13px;
  }
  .news-list-body {
    padding: 18px 18px 22px;
  }
  .news-list-body h2 {
    font-size: 16px;
  }
  .news-list-body > p {
    font-size: 13px;
  }
  .news-pagination button {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .news-list-card,
  .news-list-media img,
  .read-article,
  .read-article i,
  .news-pagination button {
    transition: none !important;
  }
}
