/* ============================================================
   NEWS.CSS — Blog/noticias pages
   INOXKAREN
   ============================================================ */

/* ── LIST PAGE ───────────────────────────────────────────────── */
.news-layout {
  display: grid; grid-template-columns: 1fr 320px; gap: 48px;
  padding: 56px 0 88px;
}
.news-grid-main { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }

/* ── NEWS CARD ───────────────────────────────────────────────── */
.news-card {
  background: var(--dark-2); border: 1px solid var(--border);
  border-radius: var(--rll); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  cursor: pointer;
}
.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(0,0,0,.35);
  border-color: var(--border-gold);
}
.news-card-img {
  position: relative; overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--dark-3);
}
.news-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.news-card:hover .news-card-img img { transform: scale(1.05); }
.news-card-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,22,40,.7) 0%, transparent 60%);
  pointer-events: none;
}
.nc-cat-over {
  position: absolute; top: 14px; left: 14px; z-index: 1;
  background: var(--gold); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase;
  padding: 4px 10px; border-radius: var(--rmax);
}
.news-card-body {
  padding: 22px 24px; flex: 1; display: flex; flex-direction: column; gap: 10px;
}
.news-card-meta {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; color: var(--text-dim);
}
.news-card-meta i { color: var(--gold); }
.news-card-title {
  font-family: 'Rajdhani', sans-serif; font-size: 19px; font-weight: 700;
  color: var(--text); line-height: 1.25;
  transition: color var(--t);
}
.news-card:hover .news-card-title { color: var(--gold); }
.news-card-excerpt {
  font-size: 13px; color: var(--text-dim); line-height: 1.65;
  flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.news-card-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--gold); font-size: 13px; font-weight: 600;
  margin-top: 4px; transition: gap var(--t);
}
.news-card:hover .news-card-link { gap: 10px; }
.news-card-readtime {
  font-size: 11px; color: var(--text-dim);
  display: flex; align-items: center; gap: 5px;
}

/* ── FEATURED CARD (first) ───────────────────────────────────── */
.news-grid-main .news-card:first-child {
  grid-column: 1 / -1; flex-direction: row;
}
.news-grid-main .news-card:first-child .news-card-img {
  width: 52%; flex-shrink: 0; aspect-ratio: auto; min-height: 280px;
}
.news-grid-main .news-card:first-child .news-card-body { padding: 32px; justify-content: center; }
.news-grid-main .news-card:first-child .news-card-title { font-size: 26px; }
.news-grid-main .news-card:first-child .news-card-excerpt { -webkit-line-clamp: 4; }

/* ── SIDEBAR ─────────────────────────────────────────────────── */
.news-sidebar { display: flex; flex-direction: column; gap: 24px; }
.ns-card {
  background: var(--dark-2); border: 1px solid var(--border); border-radius: var(--rl);
}
.ns-card-header {
  padding: 14px 18px; border-bottom: 1px solid var(--border);
  background: var(--dark-3);
  font-size: 12px; font-weight: 700; color: var(--text);
  text-transform: uppercase; letter-spacing: 1px; display: flex; align-items: center; gap: 8px;
}
.ns-card-header i { color: var(--gold); }
.ns-card-body { padding: 16px 18px; }
.ns-recent-item {
  display: flex; gap: 12px; padding: 10px 0;
  border-bottom: 1px solid var(--border); cursor: pointer;
  transition: opacity var(--t);
}
.ns-recent-item:last-child { border-bottom: none; }
.ns-recent-item:hover { opacity: .8; }
.ns-recent-img {
  width: 60px; height: 60px; border-radius: var(--r); overflow: hidden;
  background: var(--dark-3); flex-shrink: 0;
}
.ns-recent-img img { width: 100%; height: 100%; object-fit: cover; }
.ns-recent-title { font-size: 13px; color: var(--text-mid); line-height: 1.4; margin-bottom: 4px; transition: color var(--t); }
.ns-recent-item:hover .ns-recent-title { color: var(--gold); }
.ns-recent-date { font-size: 11px; color: var(--text-dim); }
.ns-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.ns-tag {
  font-size: 12px; color: var(--text-dim);
  background: var(--dark-3); border: 1px solid var(--border);
  padding: 4px 12px; border-radius: var(--rmax);
  cursor: pointer; transition: all var(--t);
}
.ns-tag:hover { border-color: var(--border-gold); color: var(--gold); }

/* ── ARTICLE PAGE ────────────────────────────────────────────── */
.article-layout { display: grid; grid-template-columns: 1fr 320px; gap: 48px; padding: 56px 0 88px; }
.article-header { margin-bottom: 32px; }
.article-meta { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.article-cat {
  background: rgba(201,168,76,.12); color: var(--gold);
  font-size: 11px; font-weight: 700; padding: 4px 12px;
  border-radius: var(--rmax); text-transform: uppercase; letter-spacing: .5px;
  border: 1px solid rgba(201,168,76,.3);
}
.article-date { font-size: 12px; color: var(--text-dim); display: flex; align-items: center; gap: 6px; }
.article-readtime { font-size: 12px; color: var(--text-dim); display: flex; align-items: center; gap: 5px; }
.article-readtime i, .article-date i { color: var(--gold); font-size: 11px; }
.article-title {
  font-family: 'Rajdhani', sans-serif; font-size: 42px; font-weight: 700;
  color: var(--text); line-height: 1.1; margin-bottom: 12px;
}
.article-excerpt-lead {
  font-size: 17px; color: var(--text-mid); line-height: 1.7;
  border-left: 3px solid var(--gold); padding-left: 18px; margin-bottom: 28px;
  font-style: italic;
}
.article-hero-img {
  border-radius: var(--rll); overflow: hidden; aspect-ratio: 16/9;
  margin-bottom: 40px; border: 1px solid var(--border);
}
.article-hero-img img { width: 100%; height: 100%; object-fit: cover; }

/* ── ARTICLE BODY (rich text) ─────────────────────────────────── */
.article-body { font-size: 16px; color: var(--text-mid); line-height: 1.85; }
.article-body h1 { font-family:'Rajdhani',sans-serif; font-size:32px; font-weight:700; color:var(--text); margin:36px 0 14px; }
.article-body h2 { font-family:'Rajdhani',sans-serif; font-size:26px; font-weight:700; color:var(--text); margin:32px 0 12px; border-bottom:1px solid var(--border); padding-bottom:8px; }
.article-body h3 { font-family:'Rajdhani',sans-serif; font-size:20px; font-weight:700; color:var(--gold); margin:24px 0 10px; }
.article-body p  { margin-bottom: 18px; }
.article-body strong { color: var(--text); font-weight: 700; }
.article-body em { color: var(--gold-light); }
.article-body a  { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { color: var(--gold-light); }
.article-body ul { list-style: none; padding: 0; margin: 0 0 18px; }
.article-body ul li { padding-left: 20px; position: relative; margin-bottom: 8px; }
.article-body ul li::before { content:''; position:absolute; left:0; top:10px; width:7px; height:7px; border-radius:50%; background:var(--gold); }
.article-body ol { padding-left: 24px; margin: 0 0 18px; }
.article-body ol li { margin-bottom: 8px; }
.article-body ol li::marker { color: var(--gold); font-weight: 700; }
.article-body blockquote {
  border-left: 3px solid var(--gold); padding: 18px 24px;
  background: rgba(201,168,76,.06); border-radius: 0 var(--r) var(--r) 0;
  margin: 28px 0; font-style: italic; color: var(--text);
  font-size: 17px; line-height: 1.7;
}
.article-body blockquote::before { content: '"'; font-size: 48px; color: var(--gold); line-height: 0; vertical-align: -18px; margin-right: 6px; font-family: Georgia, serif; }
.article-body code {
  background: var(--dark-3); padding: 2px 6px; border-radius: 4px;
  font-family: monospace; font-size: 14px; color: var(--gold-light);
}
.article-body hr { border: none; border-top: 1px solid var(--border); margin: 32px 0; }
.article-body img { max-width: 100%; border-radius: var(--r); margin: 16px 0; border: 1px solid var(--border); }

/* ── ARTICLE SHARE BAR ───────────────────────────────────────── */
.article-share {
  margin-top: 40px; padding: 20px 24px;
  background: var(--dark-2); border: 1px solid var(--border); border-radius: var(--rl);
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.article-share span { font-size: 13px; color: var(--text-dim); font-weight: 600; }
.article-share-btns { display: flex; gap: 8px; }
.article-share-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: var(--rmax); font-size: 12px; font-weight: 600;
  cursor: pointer; border: 1px solid var(--border); background: var(--dark-3);
  color: var(--text-mid); transition: all var(--t); text-decoration: none;
}
.article-share-btn:hover { border-color: var(--border-gold); color: var(--gold); }
.article-share-btn.wa { background: rgba(37,211,102,.1); border-color: rgba(37,211,102,.3); color: #25D366; }
.article-share-btn.wa:hover { background: #25D366; color: #fff; }

.article-inline-img { margin: 28px 0; border-radius: var(--rll); overflow: hidden; border: 1px solid var(--border); }
.article-inline-img img { width: 100%; display: block; object-fit: cover; max-height: 480px; }

/* ── ARTICLE BREADCRUMB ──────────────────────────────────────── */
.art-breadcrumb {
  background: var(--dark-3); border-bottom: 1px solid var(--border);
  padding: 11px 0; font-size: 12px; color: var(--text-dim);
}
.art-breadcrumb a { color: var(--text-dim); transition: color var(--t); }
.art-breadcrumb a:hover { color: var(--gold); }
.art-bc-sep { margin: 0 8px; color: var(--border); font-size: 10px; }

/* ── SIDEBAR CATEGORY LIST ───────────────────────────────────── */
.ns-cat-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--border);
  color: var(--text-mid); font-size: 13px;
  text-decoration: none; transition: all var(--t);
}
.ns-cat-item:last-child { border-bottom: none; }
.ns-cat-item:hover { color: var(--gold); padding-left: 4px; }
.ns-cat-item > i:first-child { width: 16px; color: var(--gold); font-size: 13px; flex-shrink: 0; }

/* ── CTA CARD ────────────────────────────────────────────────── */
.ns-cta-card {
  background: linear-gradient(145deg, #0a2a4a 0%, #0d1b2e 100%);
  border: 1px solid rgba(201,168,76,.25); border-radius: var(--rl); overflow: hidden;
}
.ns-cta-content { padding: 24px 20px 20px; }
.ns-cta-title {
  font-family: 'Rajdhani', sans-serif; font-size: 20px; font-weight: 700;
  color: #ffffff; margin-bottom: 10px; line-height: 1.25;
}
.ns-cta-desc { font-size: 13px; color: rgba(255,255,255,.7); line-height: 1.6; margin-bottom: 18px; }
.ns-cta-img {
  height: 130px;
  background: url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?auto=format&fit=crop&w=600&q=80') center/cover no-repeat;
  opacity: .65;
}

/* ── FAQ ACCORDION ───────────────────────────────────────────── */
.art-faq-list { display: flex; flex-direction: column; gap: 10px; }

.art-faq-item {
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color .2s;
}
.art-faq-item:hover { border-color: var(--border-gold); }

.art-faq-q {
  width: 100%; display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; background: var(--dark-2); border: none;
  text-align: left; cursor: pointer; color: var(--text);
  font-size: 14px; font-weight: 600; line-height: 1.4;
  transition: background .2s;
}
.art-faq-q:hover { background: rgba(255,255,255,.04); }
.art-faq-q span { flex: 1; }
.art-faq-icon { flex-shrink: 0; color: var(--gold); font-size: 13px; transition: transform .3s ease; }

.art-faq-a {
  background: var(--dark-3); padding: 14px 18px;
  border-top: 1px solid var(--border);
}
.art-faq-a p { margin: 0; font-size: 14px; color: var(--text-mid); line-height: 1.7; }

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .news-layout, .article-layout { grid-template-columns: 1fr; }
  .news-sidebar { display: none; }
  .news-grid-main { grid-template-columns: 1fr; }
  .news-grid-main .news-card:first-child { flex-direction: column; }
  .news-grid-main .news-card:first-child .news-card-img { width: 100%; min-height: 220px; aspect-ratio: 16/9; }
}
@media (max-width: 640px) {
  .news-layout, .article-layout { padding: 32px 0 56px; }
  .article-title { font-size: 26px; }
  .news-grid-main { grid-template-columns: 1fr; }
  .news-grid-main .news-card:first-child .news-card-title { font-size: 20px; }
}
@media (max-width: 400px) {
  .article-title { font-size: 22px; }
  .article-body h2 { font-size: 20px; }
}
