/* ===== FADE-IN ANIMATIONS ===== */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity .55s ease, transform .55s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== SEARCH OVERLAY ===== */
.search-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(26,39,68,.97); display: flex;
  align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: all .3s ease;
}
.search-overlay.open { opacity: 1; visibility: visible; }
.search-overlay-inner { width: 100%; max-width: 680px; padding: 0 24px; }
.search-overlay h3 { color: rgba(255,255,255,.5); font-size: .9rem; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 2px; font-family: 'Inter',sans-serif; font-weight: 500; }
.search-overlay-input { display: flex; align-items: center; border-bottom: 2px solid rgba(255,255,255,.2); padding-bottom: 16px; }
.search-overlay-input input { background: none; border: none; flex: 1; font-size: 2rem; color: #fff; outline: none; font-family: 'Playfair Display',serif; }
.search-overlay-input input::placeholder { color: rgba(255,255,255,.2); }
.search-overlay-input button { background: none; border: none; color: rgba(255,255,255,.4); font-size: 1.4rem; cursor: pointer; transition: all .2s; padding: 8px; }
.search-overlay-input button:hover { color: var(--copper-light); }
.search-close { position: absolute; top: 28px; right: 28px; background: none; border: none; color: rgba(255,255,255,.4); font-size: 1.6rem; cursor: pointer; transition: all .2s; }
.search-close:hover { color: var(--white); }

/* ===== PROGRESS BAR ===== */
.reading-progress {
  position: fixed; top: 0; left: 0; height: 3px;
  background: var(--copper); z-index: 9999; width: 0%;
  transition: width .1s linear;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 500;
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: var(--blue-deep); color: #fff; border: none;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; box-shadow: var(--shadow-md); opacity: 0;
  transform: translateY(8px); transition: all .25s ease;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--copper); }

/* ===== NOTICE BOX ===== */
.notice-box {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 20px 24px; border-radius: var(--radius-md);
  border: 1px solid; margin-bottom: 20px;
}
.notice-box.info { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }
.notice-box.warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.notice-box.success { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.notice-box svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; }
.notice-box p { margin: 0; font-size: .9rem; }

/* ===== HIGHLIGHT STRIP ===== */
.highlight-strip {
  background: var(--copper); padding: 12px 0; overflow: hidden;
}
.highlight-strip-inner { display: flex; gap: 0; white-space: nowrap; }
.highlight-strip span { color: var(--white); font-size: .83rem; font-weight: 600; letter-spacing: .5px; }
.highlight-strip .sep { color: rgba(255,255,255,.4); margin: 0 20px; }

/* ===== RELATED ARTICLES ===== */
.related-articles { background: var(--off-white); padding: 56px 0; margin-top: 56px; }

/* ===== MEDIUM CARD (HORIZONTAL) ===== */
.h-card {
  display: flex; gap: 20px; align-items: center;
  padding: 20px; background: var(--white); border: 1px solid var(--gray-light);
  border-radius: var(--radius-md); transition: var(--transition); margin-bottom: 16px;
}
.h-card:hover { box-shadow: var(--shadow-sm); transform: translateX(4px); }
.h-card img { width: 100px; height: 80px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; }
.h-card-body h5 { font-size: .95rem; color: var(--blue-deep); margin-bottom: 6px; line-height: 1.3; }
.h-card-body h5 a { transition: var(--transition); }
.h-card-body h5 a:hover { color: var(--copper); }
.h-card-body p { font-size: .82rem; color: var(--gray-text); }
.h-card-meta { font-size: .76rem; color: var(--gray-text); margin-bottom: 6px; display: flex; gap: 10px; }

/* ===== NUMBERED LIST ===== */
.num-list { counter-reset: numlist; }
.num-list li {
  counter-increment: numlist; display: flex; gap: 16px; align-items: flex-start;
  padding: 16px 0; border-bottom: 1px solid var(--gray-light);
}
.num-list li:last-child { border-bottom: none; }
.num-list li::before {
  content: counter(numlist, decimal-leading-zero);
  font-family: var(--font-display); font-weight: 700; font-size: 1.3rem;
  color: var(--copper); min-width: 36px; line-height: 1;
}
.num-list li div h5 { font-size: .95rem; color: var(--blue-deep); }
.num-list li div p { font-size: .85rem; color: var(--gray-text); margin-top: 4px; }

/* ===== OPINION CARD ===== */
.opinion-card {
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--gray-light); box-shadow: var(--shadow-sm); transition: var(--transition);
}
.opinion-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.opinion-card-top { padding: 28px 28px 0; display: flex; gap: 14px; align-items: center; }
.opinion-card-top img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.opinion-card-top-info h5 { font-size: .95rem; color: var(--blue-deep); }
.opinion-card-top-info span { font-size: .8rem; color: var(--copper); font-weight: 600; }
.opinion-card-body { padding: 20px 28px 28px; }
.opinion-card-body q { font-family: var(--font-display); font-size: 1.05rem; color: var(--blue-deep); line-height: 1.55; font-style: italic; }
.opinion-card-body p { font-size: .87rem; color: var(--gray-text); margin-top: 12px; }

/* ===== TOPIC BADGE ===== */
.topic-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; background: var(--gray-light); border-radius: 100px; font-size: .78rem; font-weight: 600; color: var(--gray-dark); transition: var(--transition); }
.topic-badge:hover { background: var(--blue-deep); color: var(--white); }
.topic-badge .count { background: var(--white); color: var(--gray-dark); border-radius: 100px; padding: 1px 7px; font-size: .72rem; }
