/* TAC News */
/* ===== HEADER FIX ===== */
body:not(.home-page) #site-header {
  background: rgba(13,13,13,.97) !important;
  box-shadow: 0 2px 24px rgba(0,0,0,.4) !important;
}

/* ===== NEWS HERO ===== */
.news-hero {
  min-height: 380px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding-bottom: 60px;
  overflow: hidden;
}
.news-hero-bg {
  position: absolute; inset: 0;
  background-image: url('https://images.unsplash.com/photo-1504711434969-e33886168f5c?w=1920&q=70');
  background-size: cover; background-position: center;
  opacity: .18;
}
.news-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(13,13,13,.96) 40%, rgba(13,13,13,.6) 100%);
}
.news-hero-content {
  position: relative; z-index: 2;
  padding-top: 180px;
  max-width: 640px;
}
.news-hero-content .breadcrumb {
  display: flex; align-items: center; gap: 8px; margin-bottom: 20px;
}
.news-hero-content .breadcrumb a { color: #666; font-size: .82rem; }
.news-hero-content .breadcrumb a:hover { color: var(--red); }
.news-hero-content .breadcrumb i { color: #444; font-size: .65rem; }
.news-hero-content .breadcrumb span { color: #888; font-size: .82rem; }
.news-hero-content h1 { color: #fff; margin-bottom: 14px; }
.news-hero-content p { color: rgba(255,255,255,.6); font-size: 1rem; margin: 0; max-width: 500px; }

/* ===== CATEGORY TAGS ===== */
.cat-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.cat-industry  { background: rgba(221,25,26,.1);  color: var(--red); }
.cat-company   { background: rgba(13,13,13,.08);  color: #333; }
.cat-tips      { background: rgba(34,139,34,.1);  color: #228b22; }
.cat-regulations { background: rgba(255,140,0,.1); color: #e07b00; }

/* ===== FEATURED POST ===== */
.featured-section { padding-bottom: 0; }
.featured-post {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,.07);
}
.featured-img { position: relative; height: 100%; min-height: 360px; }
.featured-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.featured-badge {
  position: absolute; top: 20px; left: 20px;
  background: var(--red); color: #fff;
  padding: 5px 14px; border-radius: 50px;
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
}
.featured-content { padding: 44px 44px 44px 0; }
.post-cats { margin-bottom: 14px; }
.featured-content h2 { font-size: 1.5rem; margin-bottom: 16px; line-height: 1.3; }
.featured-content h2 a { color: var(--black); transition: color .3s; }
.featured-content h2 a:hover { color: var(--red); }
.featured-content p { color: #666; font-size: .95rem; line-height: 1.75; }
.post-meta-row {
  display: flex; gap: 16px; flex-wrap: wrap;
  color: #999; font-size: .8rem; margin-top: 16px;
}
.post-meta-row span { display: flex; align-items: center; gap: 5px; }
.post-meta-row i { color: var(--red); font-size: .75rem; }

/* ===== NEWS LAYOUT ===== */
.news-main { padding-top: 56px; }
.news-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: flex-start;
}

/* ===== FILTER BAR ===== */
.news-filter-bar {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 36px;
}
.filter-btn {
  padding: 8px 18px;
  border: 1px solid #e0e0e0;
  border-radius: 50px;
  background: #fff;
  color: #666;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .25s;
}
.filter-btn:hover { border-color: var(--red); color: var(--red); }
.filter-btn.active { background: var(--red); border-color: var(--red); color: #fff; }

/* ===== ARTICLES GRID ===== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.news-card {
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: 12px;
  overflow: hidden;
  transition: all .3s;
}
.news-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,.1); }
.news-card.hidden { display: none; }
.news-card-img {
  display: block;
  position: relative;
  height: 200px;
  overflow: hidden;
}
.news-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.news-card:hover .news-card-img img { transform: scale(1.05); }
.news-card-img .cat-tag {
  position: absolute; top: 14px; left: 14px;
}
.news-card-body { padding: 22px; }
.news-card-body .post-meta-row { margin-top: 0; margin-bottom: 12px; }
.news-card-body h3 { font-size: .95rem; margin-bottom: 10px; line-height: 1.45; }
.news-card-body h3 a { color: var(--black); transition: color .3s; }
.news-card-body h3 a:hover { color: var(--red); }
.news-card-body p { font-size: .85rem; color: #666; line-height: 1.65; margin-bottom: 14px; }
.read-more {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--red); font-size: .82rem; font-weight: 600;
  transition: gap .25s;
}
.read-more:hover { gap: 10px; color: var(--red-dark); }

/* ===== PAGINATION ===== */
.pagination {
  display: flex; align-items: center; gap: 8px;
  margin-top: 44px; flex-wrap: wrap;
}
.page-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px;
  border: 1px solid #e0e0e0;
  border-radius: var(--radius);
  color: #666; font-size: .85rem; font-weight: 600;
  transition: all .25s; background: #fff;
}
.page-btn:hover { border-color: var(--red); color: var(--red); }
.page-btn.active { background: var(--red); border-color: var(--red); color: #fff; }
.page-dots { color: #bbb; padding: 0 4px; }
.page-next { padding: 9px 20px; }

/* ===== SIDEBAR ===== */
.news-sidebar { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 100px; }
.sidebar-widget {
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: 12px;
  padding: 24px;
}
.widget-dark { background: var(--black); border-color: var(--black); }
.widget-red  { background: var(--red);   border-color: var(--red); }
.widget-title {
  font-size: .82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px;
  color: var(--black); margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--red);
  display: inline-block;
}
.search-box {
  display: flex;
  align-items: center;
  border: 1px solid #e0e0e0;
  border-radius: var(--radius);
  background: #fff;
}
.search-box input {
  flex: 1;
  padding: 11px 14px;
  border: none;
  outline: none;
  font-size: .88rem;
  font-family: var(--font);
  background: transparent;
  border-radius: var(--radius) 0 0 var(--radius);
}
.search-box button {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  background: var(--red);
  border: none;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: #fff;
  cursor: pointer;
  transition: background .25s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  line-height: 1;
}
.search-box button:hover { background: var(--red-dark); }
.cat-list li { margin-bottom: 10px; }
.cat-list li a {
  display: flex; align-items: center; gap: 10px;
  color: #555; font-size: .88rem; transition: color .25s;
  justify-content: space-between;
}
.cat-list li a:hover { color: var(--red); }
.cat-list li a i { color: var(--red); font-size: .8rem; width: 14px; }
.cat-list li a span {
  margin-left: auto;
  background: var(--gray-100); color: #888;
  padding: 2px 8px; border-radius: 50px; font-size: .72rem; font-weight: 600;
}
.popular-posts { display: flex; flex-direction: column; gap: 16px; }
.popular-post {
  display: flex; gap: 12px; align-items: flex-start;
  text-decoration: none; transition: opacity .25s;
}
.popular-post:hover { opacity: .8; }
.popular-post img { width: 72px; height: 52px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.popular-post p { font-size: .82rem; color: #333; font-weight: 600; line-height: 1.4; margin: 0 0 4px; }
.popular-post span { font-size: .75rem; color: #999; }
.newsletter-form input {
  width: 100%; padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius);
  background: rgba(255,255,255,.08); color: #fff;
  font-size: .88rem; font-family: var(--font); outline: none;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.3); }
.newsletter-form input:focus { border-color: var(--red); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .news-layout { grid-template-columns: 1fr; }
  .news-sidebar { position: static; }
}
@media (max-width: 768px) {
  .featured-post { grid-template-columns: 1fr; }
  .featured-img { min-height: 240px; }
  .featured-content { padding: 28px; }
  .articles-grid { grid-template-columns: 1fr; }
  .news-hero-content { padding-top: 160px; }
}
