/* ================================================================
   news.css — Gold Rate Today (News Article Page)
================================================================ */

/* ── PAGE LAYOUT ──────────────────────────────────────────── */
.news-page-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 32px 60px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}

/* ── BREADCRUMB ───────────────────────────────────────────── */
.breadcrumb {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: Calibri, sans-serif;
  font-size: 13px;
  color: #888;
  flex-wrap: wrap;
  padding-bottom: 18px;
  border-bottom: 1px solid #EEEEEE;
  margin-bottom: 4px;
}
.breadcrumb a {
  color: #111111;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.18s;
}
.breadcrumb a:hover { color: #B8972A; }
.breadcrumb .bc-sep {
  color: #CCCCCC;
  font-size: 14px;
  user-select: none;
}
.breadcrumb .bc-current {
  color: #555;
  font-weight: 400;
  max-width: 380px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── LEFT COLUMN — ARTICLE ────────────────────────────────── */
.article-col { min-width: 0; }

/* Hero image */
.article-hero-img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  background: #F0F0F0;
}

/* Article header */
.article-header { margin: 22px 0 0; }

.article-h1 {
  font-family: Calibri, sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #0A0A0A;
  line-height: 1.35;
  margin-bottom: 14px;
}

.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-family: Calibri, sans-serif;
  font-size: 13px;
  color: #777;
  padding-bottom: 14px;
  border-bottom: 2px solid #EEEEEE;
  margin-bottom: 22px;
}
.article-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
}
.article-meta-item svg {
  width: 14px; height: 14px;
  flex-shrink: 0;
  color: #B8972A;
}
.article-meta a {
  color: #B8972A;
  text-decoration: none;
  font-weight: 600;
}
.article-meta a:hover { text-decoration: underline; }
.article-cat-badge {
  background: #0A0A0A;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  padding: 3px 11px;
  border-radius: 4px;
}

/* Article body */
.article-body {
  font-family: Calibri, sans-serif;
  font-size: 17px;
  color: #222222;
  line-height: 1.88;
}

/* Paragraphs — justified */
.article-body p {
  margin-bottom: 18px;
  text-align: justify;
  text-justify: inter-word;
}
.article-body p:last-child { margin-bottom: 0; }
.article-body strong { color: #0A0A0A; font-weight: 700; }

/* H1 inside article body — left aligned */
.article-body h1 {
  text-align: left;
}

/* H2 inside article body — left aligned, styled strip */
.article-body h2 {
  font-size: 20px;
  font-weight: 700;
  color: #0A0A0A;
  background: #F2F2F2;
  border-left: 4px solid #0A0A0A;
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  margin: 30px 0 14px;
  line-height: 1.3;
  text-align: left;
}

/* H3 inside article body — left aligned */
.article-body h3 {
  text-align: left;
}

/* Blockquote — left aligned */
.article-body blockquote {
  background: #FFFBF0;
  border-left: 4px solid #B8972A;
  border-radius: 0 10px 10px 0;
  padding: 14px 20px;
  margin: 22px 0;
  font-style: italic;
  color: #555;
  font-size: 16px;
  text-align: left;
}

/* ── LEFT SIDEBAR ARTICLE BOX ─────────────────────────────── */
/* Wraps from just after breadcrumb to just before bottom-related */
.article-sidebar-box {
  background: #FFFFFF;
  border: 1px solid #E5E5E5;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(0,0,0,0.06);
  margin-bottom: 32px;
}
/* The hero image sits flush inside the box */
.article-sidebar-box .article-hero-img {
  border-radius: 13px 13px 0 0;
  margin-bottom: 0;
}
.article-box-inner {
  padding: 22px 24px 28px;
}

/* ── IN-ARTICLE RELATED NEWS ──────────────────────────────── */
.inline-related {
  background: #F7F7F7;
  border: 1px solid #E5E5E5;
  border-radius: 12px;
  padding: 20px 22px;
  margin: 28px 0;
}
.inline-related-heading {
  font-family: Calibri, sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #888;
  margin-bottom: 14px;
}
.inline-related-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.inline-related-card {
  display: flex;
  gap: 12px;
  text-decoration: none;
  align-items: flex-start;
  transition: opacity 0.18s;
}
.inline-related-card:hover { opacity: 0.78; }
.inline-related-card img {
  width: 80px; height: 56px;
  object-fit: cover;
  border-radius: 7px;
  flex-shrink: 0;
  background: #DDD;
}
.inline-related-info { flex: 1; }
.inline-related-cat {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: #B8972A;
  margin-bottom: 3px;
}
.inline-related-title {
  font-family: Calibri, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #111;
  line-height: 1.35;
}
.inline-related-card:hover .inline-related-title { color: #B8972A; }

/* ── BOTTOM RELATED NEWS (4 cards) ───────────────────────── */
.bottom-related { margin: 40px 0 36px; }
.bottom-related-heading {
  font-family: Calibri, sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #0A0A0A;
  background: #F2F2F2;
  border-left: 4px solid #0A0A0A;
  padding: 11px 16px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 20px;
}
.bottom-related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.bottom-related-card {
  text-decoration: none;
  border: 1px solid #EBEBEB;
  border-radius: 10px;
  overflow: hidden;
  background: #FFFFFF;
  transition: box-shadow 0.2s, transform 0.18s;
}
.bottom-related-card:hover {
  box-shadow: 0 4px 18px rgba(0,0,0,0.09);
  transform: translateY(-2px);
}
.bottom-related-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  background: #EEE;
}
.bottom-related-body { padding: 12px 14px 14px; }
.bottom-related-cat {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: #B8972A;
  margin-bottom: 5px;
}
.bottom-related-title {
  font-family: Calibri, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #111;
  line-height: 1.38;
}
.bottom-related-card:hover .bottom-related-title { color: #B8972A; }

/* ── AUTHOR BOX ───────────────────────────────────────────── */
.author-box {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  background: #F7F7F7;
  border: 1px solid #E5E5E5;
  border-radius: 14px;
  padding: 24px;
  margin: 0 0 28px;
}
.author-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid #FFFFFF;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
  background: #DDD;
}
.author-info { flex: 1; }
.author-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #B8972A;
  margin-bottom: 3px;
}
.author-name {
  font-family: Calibri, sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #0A0A0A;
  margin-bottom: 8px;
}
.author-bio {
  font-family: Calibri, sans-serif;
  font-size: 14px;
  color: #555;
  line-height: 1.75;
  margin-bottom: 14px;
}
.author-socials {
  display: flex;
  gap: 8px;
}
.author-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 8px;
  border: 1px solid #DEDEDE;
  background: #FFFFFF;
  text-decoration: none;
  color: #444;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.author-social-btn:hover { background: #0A0A0A; color: #FFFFFF; border-color: #0A0A0A; }
.author-social-btn.fb:hover  { background: #1877F2; border-color: #1877F2; }
.author-social-btn.tw:hover  { background: #1DA1F2; border-color: #1DA1F2; }
.author-social-btn.li:hover  { background: #0A66C2; border-color: #0A66C2; }
.author-social-btn.ig:hover  { background: #E1306C; border-color: #E1306C; }

/* ── DISCLAIMER ───────────────────────────────────────────── */
.article-disclaimer {
  background: #F9F9F9;
  border: 1px solid #E8E8E8;
  border-left: 4px solid #CCCCCC;
  border-radius: 0 10px 10px 0;
  padding: 16px 20px;
  margin-bottom: 40px;
}
.article-disclaimer-label {
  font-family: Calibri, sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #999;
  margin-bottom: 6px;
}
.article-disclaimer p {
  font-family: Calibri, sans-serif;
  font-size: 13px;
  color: #777;
  line-height: 1.70;
  margin: 0;
}

/* ── RIGHT SIDEBAR ────────────────────────────────────────── */
.sidebar-col {
  position: sticky;
  top: 80px;
}

/* Search box */
.sidebar-search {
  margin-bottom: 26px;
}
.sidebar-search-form {
  display: flex;
  border: 1.5px solid #DDDDDD;
  border-radius: 9px;
  overflow: hidden;
  transition: border-color 0.18s, box-shadow 0.18s;
  background: #FFFFFF;
}
.sidebar-search-form:focus-within {
  border-color: #0A0A0A;
  box-shadow: 0 0 0 3px rgba(10,10,10,0.07);
}
.sidebar-search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 11px 14px;
  font-family: Calibri, sans-serif;
  font-size: 14px;
  color: #111;
  background: transparent;
}
.sidebar-search-input::placeholder { color: #AAAAAA; }
.sidebar-search-btn {
  background: #0A0A0A;
  border: none;
  padding: 0 16px;
  cursor: pointer;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
  flex-shrink: 0;
}
.sidebar-search-btn:hover { background: #333333; }
.sidebar-search-btn svg { width: 16px; height: 16px; }

/* Category news widget */
.sidebar-widget {
  background: #FFFFFF;
  border: 1px solid #E5E5E5;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.sidebar-widget-heading {
  background: #0A0A0A;
  color: #FFFFFF;
  font-family: Calibri, sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  padding: 12px 16px;
}
.sidebar-widget-heading span { color: #B8972A; }
.sidebar-news-list { list-style: none; padding: 0; margin: 0; }
.sidebar-news-item {
  border-bottom: 1px solid #F0F0F0;
}
.sidebar-news-item:last-child { border-bottom: none; }
.sidebar-news-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  text-decoration: none;
  transition: background 0.15s;
}
.sidebar-news-link:hover { background: #F7F7F7; }
.sidebar-news-num {
  font-family: Calibri, sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #EBEBEB;
  min-width: 26px;
  text-align: center;
  flex-shrink: 0;
  line-height: 1;
}
.sidebar-news-title {
  font-family: Calibri, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #222;
  line-height: 1.4;
}
.sidebar-news-link:hover .sidebar-news-title { color: #B8972A; }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 960px) {
  .news-page-wrap {
    grid-template-columns: 1fr;
    padding: 20px 20px 48px;
  }
  /* On mobile: breadcrumb → article → sidebar (top to bottom) */
  .breadcrumb  { order: 1; }
  .article-col { order: 2; }
  .sidebar-col { order: 3; position: static; }

  .bottom-related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .news-page-wrap  { padding: 16px 14px 40px; gap: 24px; }
  .article-h1      { font-size: 21px; }
  .article-body    { font-size: 15px; }
  .author-box      { flex-direction: column; align-items: center; text-align: center; }
  .author-socials  { justify-content: center; }
  .bottom-related-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .inline-related-card img { width: 68px; height: 48px; }
  .bc-current      { max-width: 200px; }
}
