/**
 * Nexus Talent Group - News, Blog & Subpages Architecture CSS
 * High-fidelity styling matching NTG Brand Guidelines
 */

/* ==========================================================================
   PAGE HERO BANNER (SUBPAGES & BLOG)
   ========================================================================== */
.page-hero {
  position: relative;
  background: linear-gradient(135deg, #071224 0%, #0D1E39 60%, #162E56 100%);
  color: #FFFFFF;
  padding: 130px 0 60px;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 80% 20%, rgba(188, 153, 59, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 860px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #94A3B8;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.breadcrumbs a {
  color: #CBD5E1;
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumbs a:hover {
  color: var(--color-brand-gold, #BC993B);
}

.breadcrumbs .sep {
  color: #64748B;
}

.breadcrumbs .current {
  color: var(--color-brand-gold, #BC993B);
  font-weight: 600;
}

.page-hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
  color: #FFFFFF;
}

.page-hero-desc {
  font-size: 1.1rem;
  color: #CBD5E1;
  line-height: 1.6;
}

/* ==========================================================================
   NEWS & BLOG ARCHIVE LAYOUT
   ========================================================================== */
.news-section {
  padding: 60px 0 90px;
  background-color: var(--color-bg-slate, #FAFAF4);
}

.news-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 40px;
  background: #FFFFFF;
  padding: 16px 24px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cat-pill {
  padding: 8px 16px;
  border-radius: 30px;
  background: var(--color-slate-100, #F1F5F9);
  color: #475569;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.cat-pill:hover,
.cat-pill.active {
  background: var(--color-brand-navy, #0D1E39);
  color: var(--color-brand-gold, #BC993B);
  border-color: var(--color-brand-gold, #BC993B);
  box-shadow: 0 4px 12px rgba(13, 30, 57, 0.15);
}

.news-search-box {
  position: relative;
  min-width: 280px;
}

.news-search-input {
  width: 100%;
  padding: 10px 16px 10px 38px;
  border-radius: 30px;
  border: 1px solid #CBD5E1;
  font-size: 0.9rem;
  background: #F8FAFC;
  transition: all 0.2s;
}

.news-search-input:focus {
  outline: none;
  border-color: var(--color-brand-gold, #BC993B);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(188, 153, 59, 0.2);
}

.news-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94A3B8;
  pointer-events: none;
}

/* ==========================================================================
   NEWS CARDS GRID
   ========================================================================== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 30px;
}

.news-card {
  background: #FFFFFF;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(13, 30, 57, 0.12);
  border-color: rgba(188, 153, 59, 0.4);
}

.news-card-img-wrap {
  position: relative;
  width: 100%;
  height: 210px;
  overflow: hidden;
  display: block;
}

.news-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.news-card-category {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--color-brand-navy, #0D1E39);
  color: var(--color-brand-gold, #BC993B);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.news-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-card-meta {
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
  color: #64748B;
  margin-bottom: 12px;
  align-items: center;
}

.news-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 12px;
  color: var(--color-brand-navy, #0D1E39);
}

.news-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.news-card-title a:hover {
  color: var(--color-brand-gold, #BC993B);
}

.news-card-excerpt {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.news-card-footer {
  border-top: 1px solid #F1F5F9;
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.news-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-brand-navy, #0D1E39);
  text-decoration: none;
  transition: all 0.2s;
}

.news-read-more:hover {
  color: var(--color-brand-gold, #BC993B);
  transform: translateX(4px);
}

/* ==========================================================================
   FEATURED POST SPOTLIGHT BANNER
   ========================================================================== */
.featured-post-banner {
  background: #FFFFFF;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  margin-bottom: 45px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  border: 1px solid rgba(188, 153, 59, 0.3);
}

.featured-img-wrap {
  position: relative;
  min-height: 340px;
}

.featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-body {
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-badge {
  display: inline-block;
  background: linear-gradient(135deg, #D4AF37 0%, #BC993B 100%);
  color: #071224;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 16px;
  align-self: flex-start;
}

.featured-title {
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--color-brand-navy, #0D1E39);
  margin-bottom: 14px;
}

.featured-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.featured-title a:hover {
  color: var(--color-brand-gold, #BC993B);
}

.featured-desc {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.65;
  margin-bottom: 24px;
}

/* ==========================================================================
   SINGLE POST READER VIEW (bai-viet.html)
   ========================================================================== */
.post-layout-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  padding: 50px 0 80px;
}

.post-main-content {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.post-header-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #64748B;
  font-size: 0.85rem;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.post-header-title {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--color-brand-navy, #0D1E39);
  margin-bottom: 24px;
}

.post-featured-image {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 30px;
}

/* Rich Post Typography */
.post-article-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #334155;
}

.post-article-body p {
  margin-bottom: 1.5em;
}

.post-article-body h2 {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--color-brand-navy, #0D1E39);
  margin: 1.8em 0 0.8em;
  padding-bottom: 8px;
  border-bottom: 2px solid #F1F5F9;
}

.post-article-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-brand-navy, #0D1E39);
  margin: 1.5em 0 0.6em;
}

.post-article-body ul,
.post-article-body ol {
  margin: 0 0 1.5em 1.5em;
}

.post-article-body li {
  margin-bottom: 0.5em;
}

.post-article-body blockquote,
.article-quote-box {
  background: #F8FAFC;
  border-left: 4px solid var(--color-brand-gold, #BC993B);
  padding: 20px 24px;
  border-radius: 0 8px 8px 0;
  margin: 2em 0;
  font-style: italic;
  color: #1E293B;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.post-article-body blockquote cite,
.article-quote-box cite {
  display: block;
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-brand-navy, #0D1E39);
  margin-top: 10px;
}

.post-article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5em 0;
}

/* Post Share & Tags Bar */
.post-footer-actions {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.post-tags-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.post-tag-item {
  background: #F1F5F9;
  color: #475569;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.post-share-btns {
  display: flex;
  align-items: center;
  gap: 10px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #F1F5F9;
  color: var(--color-brand-navy, #0D1E39);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.share-btn:hover {
  background: var(--color-brand-gold, #BC993B);
  color: #FFFFFF;
  transform: translateY(-2px);
}

/* Author Box */
.author-box {
  background: #F8FAFC;
  border-radius: 12px;
  padding: 24px;
  margin-top: 36px;
  display: flex;
  gap: 20px;
  align-items: center;
  border: 1px solid #E2E8F0;
}

.author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-brand-navy, #0D1E39);
  color: var(--color-brand-gold, #BC993B);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  flex-shrink: 0;
}

.author-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-brand-navy, #0D1E39);
  margin-bottom: 4px;
}

.author-desc {
  font-size: 0.85rem;
  color: #64748B;
  line-height: 1.5;
}

/* ==========================================================================
   POST SIDEBAR WIDGETS
   ========================================================================== */
.post-sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.sidebar-widget {
  background: #FFFFFF;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.widget-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-brand-navy, #0D1E39);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-brand-gold, #BC993B);
}

.recent-post-mini {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  text-decoration: none;
  align-items: center;
}

.recent-post-mini:last-child {
  margin-bottom: 0;
}

.recent-post-mini-thumb {
  width: 70px;
  height: 52px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.recent-post-mini-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1E293B;
  line-height: 1.35;
  transition: color 0.2s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recent-post-mini:hover .recent-post-mini-title {
  color: var(--color-brand-gold, #BC993B);
}

.sidebar-cta-card {
  background: linear-gradient(135deg, #0D1E39 0%, #162E56 100%);
  color: #FFFFFF;
  border-radius: 14px;
  padding: 28px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(188, 153, 59, 0.3);
}

.sidebar-cta-card h4 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: #FFFFFF;
}

.sidebar-cta-card p {
  font-size: 0.85rem;
  color: #CBD5E1;
  margin-bottom: 20px;
  line-height: 1.5;
}

/* ==========================================================================
   CONTENT PAGE SECTION (GIỚI THIỆU, HỆ SINH THÁI, THỊ TRƯỜNG, LỘ TRÌNH)
   ========================================================================== */
.content-page-section {
  padding: 60px 0 90px;
  background-color: var(--color-bg-slate, #FAFAF4);
}

.content-page-card {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 45px 50px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
}

.content-page-card h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-brand-navy, #0D1E39);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}

.content-page-card h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--color-brand-gold, #BC993B);
}

.content-page-card p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #334155;
  margin-bottom: 1.5em;
}

/* Responsive */
@media (max-width: 992px) {
  .post-layout-grid {
    grid-template-columns: 1fr;
  }
  .featured-post-banner {
    grid-template-columns: 1fr;
  }
  .featured-img-wrap {
    min-height: 240px;
  }
  .page-hero-title {
    font-size: 2rem;
  }
}
