/* News detail; global navigation, footer and inquiry use common.css. */
.news-detail-page { background: #fff; color: #0c2042; }
.story-container { width: min(88%, 1420px); margin: auto; }

.story-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 10px;
  color: #63718a;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
}
.story-eyebrow::before {
  content: '';
  width: 32px;
  height: 3px;
  background: #ef001b;
}

.story-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 20px 0;
  font-size: 13px;
  line-height: 1.5;
  color: #475569;
}
.story-breadcrumb > span:not(:last-child) { color: #94a3b8; }
.story-breadcrumb i { margin-right: 8px; color: #ef001b; font-size: 15px; }
.story-breadcrumb a:hover { color: #ef001b; }

.story-hero {
  width: 100%;
  height: auto;
  aspect-ratio: 4.1;
  object-fit: cover;
  border-radius: 6px;
}

.story-heading {
  padding-top: 24px;
  margin-bottom: 24px;
}

.story-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  color: #64748b;
  font-size: 13px;
  font-weight: 500;
}
.story-meta time,
.story-category {
  display: flex;
  align-items: center;
  gap: 8px;
}
.story-category {
  border-left: 1px solid #cbd5e1;
  padding-left: 22px;
}
.story-meta i {
  font-size: 14px;
  color: #ef001b;
}

.story-heading h2 {
  margin: 18px 0 0;
  max-width: 1100px;
  font-size: clamp(24px, 2.3vw, 34px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.4px;
  color: #0f172a;
}

/* News Rich-text Body Typography */
.story-body {
  display: flow-root;
  color: #334155;
  font-size: 16px;
  line-height: 1.78;
}

.story-body p {
  margin: 0 0 18px;
}

.story-body h2 {
  color: #0c2042;
  margin: 32px 0 14px;
  font-size: clamp(20px, 1.8vw, 24px);
  line-height: 1.35;
  font-weight: 750;
  letter-spacing: -0.3px;
}

.story-body h3 {
  color: #0c2042;
  margin: 24px 0 10px;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 700;
}

.story-body ul,
.story-body ol {
  padding-left: 0;
  margin: 0 0 22px;
  list-style: none;
}

.story-body li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 8px 0;
  font-size: 15px;
  line-height: 1.7;
  color: #475569;
}

.story-body li i {
  color: #ed001b;
  flex-shrink: 0;
  font-size: 15px;
}

.story-inline-image {
  float: right;
  width: 28%;
  margin: 16px 0 20px 32px;
}
.story-inline-image img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}
.story-inline-image figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: #64748b;
  font-style: italic;
  line-height: 1.5;
}

/* Article Navigation */
.story-adjacent {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  padding: 22px 0;
  margin: 32px 0 24px;
}
.story-adjacent a {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}
.story-adjacent a:last-child {
  justify-content: flex-end;
  text-align: right;
  border-left: 1px solid #cbd5e1;
  padding-left: 20px;
}
.story-adjacent i {
  color: #ed001b;
  font-size: 20px;
  flex-shrink: 0;
}
.story-adjacent small {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.story-adjacent a:last-child small {
  color: #ed001b;
}
.story-adjacent strong {
  display: block;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 700;
  color: #1e293b;
  transition: color 0.2s ease;
}
.story-adjacent a:hover strong {
  color: #e9001b;
}

/* ========================================================
   Related News Section
   ======================================================== */
.story-related {
  margin-top: 48px;
  padding: 40px 0 52px;
  border-top: 1px solid #e5ecf4;
}

.story-related > header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 30px;
}

.story-related-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.story-related-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #d71920;
  text-transform: uppercase;
  line-height: 1.2;
}

.story-related h2 {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  font-size: clamp(22px, 2.1vw, 28px);
  font-weight: 800;
  line-height: 1.2;
  color: #0c2042;
  letter-spacing: -0.4px;
}

.story-related h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 22px;
  background: #d71920;
  border-radius: 2px;
  flex-shrink: 0;
}

.story-related-all,
.story-related header a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 8px 18px;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.story-related-all i,
.story-related header a i {
  color: #d71920;
  font-size: 12px;
  margin: 0;
  transition: transform 0.25s ease, color 0.25s ease;
}

.story-related-all:hover,
.story-related header a:hover {
  background: #d71920;
  border-color: #d71920;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(215, 25, 32, 0.25);
}

.story-related-all:hover i,
.story-related header a:hover i {
  color: #fff;
  transform: translateX(4px);
}

/* Related News Cards Grid */
.story-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.story-related-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e6edf5;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(12, 32, 66, 0.05);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.32s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.32s ease;
  position: relative;
  min-width: 0;
}

.story-related-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(12, 32, 66, 0.1);
  border-color: #d0deee;
}

/* Card Thumbnail */
.story-related-thumb,
.story-related-card > img {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: auto;
  max-height: none;
  background: #f1f5f9;
  overflow: hidden;
  border-radius: 0;
}

.story-related-thumb img,
.story-related-card > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.story-related-card:hover .story-related-thumb img,
.story-related-card:hover > img {
  transform: scale(1.05);
}

/* Card Content */
.story-related-content,
.story-related-card > div {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 22px 22px;
  min-width: 0;
  box-sizing: border-box;
}

.story-related-card time {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: #7a869a;
  margin-bottom: 10px;
}

.story-related-card time i {
  color: #d71920;
  font-size: 13px;
  margin: 0;
}

.story-related-card h3 {
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.story-related-card h3 a {
  color: #0c2042;
  text-decoration: none;
  transition: color 0.22s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.story-related-card h3 a:hover,
.story-related-card:hover h3 a {
  color: #d71920;
}

.story-related-card p {
  margin: 0 0 18px;
  font-size: 13.5px;
  line-height: 1.55;
  color: #64748b;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.story-related-link,
.story-related-card > div > a {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #d71920;
  text-decoration: none;
  padding: 3px 0;
  border-bottom: 2px solid transparent;
  transition: all 0.22s ease;
  margin-top: auto;
}

.story-related-link i,
.story-related-card > div > a i {
  font-size: 12px;
  margin-left: 0;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.story-related-link:hover,
.story-related-card:hover .story-related-link,
.story-related-card:hover > div > a {
  color: #b80d14;
  border-bottom-color: #d71920;
}

.story-related-link:hover i,
.story-related-card:hover .story-related-link i,
.story-related-card:hover > div > a i {
  transform: translateX(5px);
}

/* ========================================================
   Responsive Media Queries
   ======================================================== */
@media (max-width: 1100px) {
  .story-heading h2 { font-size: clamp(22px, 2.8vw, 30px); }
  .story-body { font-size: 15.5px; }
  .story-related-grid { gap: 20px; }
  .story-related-content,
  .story-related-card > div { padding: 18px 20px 20px; }
  .story-related-card h3 { font-size: 15.5px; }
  .story-related-card p { font-size: 13px; margin-bottom: 16px; }
}

@media (max-width: 760px) {
  .story-container { width: 90%; }
  .story-hero { aspect-ratio: 2.5; }
  .story-heading { padding-top: 18px; margin-bottom: 18px; }
  .story-heading h2 { font-size: 24px; line-height: 1.3; }
  .story-body { font-size: 15px; line-height: 1.7; }
  .story-body h2 { font-size: 20px; margin: 26px 0 12px; }
  .story-adjacent { gap: 16px; padding: 18px 0; }
  .story-adjacent a { gap: 14px; }
  .story-adjacent strong { font-size: 14px; }
  .story-inline-image { width: 40%; margin-left: 20px; }

  .story-related {
    margin-top: 36px;
    padding-top: 28px;
  }
  .story-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (max-width: 580px) {
  .story-inline-image { float: none; width: 100%; margin: 20px 0; }
  .story-inline-image img { max-height: 260px; object-fit: cover; }
  .story-heading h2 { font-size: 22px; }
  .story-meta { gap: 14px; font-size: 12px; }
  .story-category { padding-left: 14px; }
  .story-adjacent { grid-template-columns: 1fr; }
  .story-adjacent a:last-child { border-left: 0; border-top: 1px solid #e0e6ee; padding: 16px 0 0; }
  .story-breadcrumb { font-size: 12px; gap: 8px; }

  .story-related > header {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
  }
  .story-related h2 { font-size: 21px; gap: 10px; }
  .story-related-all,
  .story-related header a {
    align-self: flex-start;
  }
  .story-related-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    max-width: 420px;
    margin: 0 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .story-related-card,
  .story-related-thumb img,
  .story-related-card > img,
  .story-related-all,
  .story-related-link i {
    transition: none !important;
    transform: none !important;
  }
}
