/* ==========================================
   News Pages CSS
   ========================================== */

/* ==========================================
   Navigation - Always Scrolled Style
   ========================================== */
.nav-scrolled-always {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.nav-scrolled-always .nav-logo-img {
  filter: brightness(0);
}

.nav-scrolled-always .nav-link {
  color: #111827;
}

.nav-scrolled-always .hamburger,
.nav-scrolled-always .hamburger::before,
.nav-scrolled-always .hamburger::after {
  background-color: #111827;
}

.nav-link-active {
  position: relative;
}

.nav-link-active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #c73e3a;
}

/* ==========================================
   Breadcrumb
   ========================================== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: #000000;
  margin-bottom: 2rem;
}

.breadcrumb a {
  color: #000000;
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: #111827;
}

.breadcrumb-separator {
  color: #d1d5db;
}

.breadcrumb-current {
  color: #111827;
}

/* ==========================================
   Page Header
   ========================================== */
.page-header {
  padding: 8rem 0 4rem;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.page-header-content {
  max-width: 700px;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .page-title {
    font-size: 3rem;
  }
}

.page-lead {
  font-size: 1rem;
  color: #000000;
  line-height: 1.75;
}

/* ==========================================
   News List Section
   ========================================== */
.news-list-section {
  padding: 3rem 0 6rem;
  background: #fff;
}

@media (min-width: 768px) {
  .news-list-section {
    padding: 4rem 0 8rem;
  }
}

/* Category Filter */
.news-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e5e7eb;
}

.news-filter-btn {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #000000;
  background: transparent;
  border: 1px solid #e5e7eb;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.news-filter-btn:hover {
  border-color: #111827;
  color: #111827;
}

.news-filter-btn.active {
  background: #111827;
  border-color: #111827;
  color: #fff;
}

/* News List */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* News List Item */
.news-list-item {
  display: grid;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

@media (min-width: 768px) {
  .news-list-item {
    grid-template-columns: 280px 1fr;
    gap: 2rem;
  }
}

.news-list-item:first-child {
  padding-top: 0;
}

.news-list-item:hover {
  opacity: 0.85;
}

/* Featured Item */
.news-list-item-featured {
  background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
  padding: 2rem;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .news-list-item-featured {
    grid-template-columns: 320px 1fr;
    padding: 2.5rem;
  }
}

.news-list-item-featured:first-child {
  padding-top: 2rem;
}

@media (min-width: 768px) {
  .news-list-item-featured:first-child {
    padding-top: 2.5rem;
  }
}

/* News List Image */
.news-list-image {
  position: relative;
  width: 100%;
  height: 200px;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #f3f4f6;
}

@media (min-width: 768px) {
  .news-list-image {
    height: 180px;
  }
}

.news-list-item-featured .news-list-image {
  height: 220px;
}

@media (min-width: 768px) {
  .news-list-item-featured .news-list-image {
    height: 200px;
  }
}

.news-list-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news-list-item:hover .news-list-image img {
  transform: scale(1.05);
}

.news-list-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.375rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  background: #111827;
  border-radius: 4px;
}

/* News List Content */
.news-list-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-list-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.news-list-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.news-list-item-featured .news-list-title {
  font-size: 1.375rem;
}

@media (min-width: 768px) {
  .news-list-item-featured .news-list-title {
    font-size: 1.5rem;
  }
}

.news-list-excerpt {
  font-size: 0.875rem;
  color: #000000;
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 1rem;
}

.news-list-item-featured .news-list-excerpt {
  -webkit-line-clamp: 3;
}

.news-list-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #111827;
  margin-top: auto;
  transition: gap 0.3s ease;
}

.news-list-link svg {
  width: 16px;
  height: 16px;
}

.news-list-item:hover .news-list-link {
  gap: 0.75rem;
}

/* ==========================================
   Pagination
   ========================================== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid #e5e7eb;
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #000000;
  background: transparent;
  border: 1px solid #e5e7eb;
  border-radius: 9999px;
  transition: all 0.3s ease;
}

.pagination-btn:hover {
  border-color: #111827;
  color: #111827;
}

.pagination-btn svg {
  width: 16px;
  height: 16px;
}

.pagination-numbers {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pagination-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #000000;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.pagination-num:hover {
  background: #f3f4f6;
  color: #111827;
}

.pagination-num.active {
  background: #111827;
  color: #fff;
}

.pagination-ellipsis {
  padding: 0 0.5rem;
  color: #9ca3af;
}

@media (max-width: 640px) {
  .pagination {
    flex-wrap: wrap;
  }
  
  .pagination-btn {
    padding: 0.625rem 1rem;
    font-size: 0.75rem;
  }
  
  .pagination-num {
    width: 36px;
    height: 36px;
    font-size: 0.8125rem;
  }
}

/* ==========================================
   Article Header
   ========================================== */
.article-header {
  padding: 8rem 0 2rem;
  background: #fff;
}

/* ==========================================
   Article Section
   ========================================== */
.article-section {
  padding: 0 0 6rem;
  background: #fff;
}

@media (min-width: 768px) {
  .article-section {
    padding: 0 0 8rem;
  }
}

.article-wrapper {
  display: grid;
  gap: 4rem;
}

@media (min-width: 1024px) {
  .article-wrapper {
    grid-template-columns: 1fr 300px;
    gap: 4rem;
  }
}

/* Article Main */
.article-main {
  max-width: 100%;
  overflow: hidden;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.article-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.5;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .article-title {
    font-size: 2.25rem;
  }
}

/* Featured Image */
.article-featured-image {
  width: 100%;
  height: auto;
  margin-bottom: 3rem;
  border-radius: 0.75rem;
  overflow: hidden;
}

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

/* Article Body */
.article-body {
  font-size: 1rem;
  color: #000;
  line-height: 2;
}

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

.article-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #c73e3a;
}

.article-body h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.article-body ul,
.article-body ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

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

.article-body a {
  color: #c73e3a;
  text-decoration: underline;
  transition: opacity 0.3s ease;
}

.article-body a:hover {
  opacity: 0.7;
}

/* Article Figure */
.article-figure {
  margin: 2.5rem 0;
}

.article-figure img {
  width: 100%;
  border-radius: 0.5rem;
}

.article-figure figcaption {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: #000000;
  text-align: center;
}

/* Blockquote */
.article-body blockquote {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  background: #f8fafc;
  border-left: 4px solid #c73e3a;
  border-radius: 0 0.5rem 0.5rem 0;
}

.article-body blockquote p {
  margin-bottom: 0;
  font-style: italic;
  color: #000000;
}

/* Info Box */
.article-info-box {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  background: #f3f4f6;
  border-radius: 0.75rem;
}

.article-info-box h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 1rem;
}

.article-info-box p {
  margin-bottom: 0;
  font-size: 0.9375rem;
  line-height: 1.75;
}

/* ==========================================
   Article Share
   ========================================== */
.article-share {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}

.article-share-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #000000;
  letter-spacing: 0.05em;
}

.article-share-buttons {
  display: flex;
  gap: 0.75rem;
}

.article-share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #e5e7eb;
  border-radius: 50%;
  color: #000000;
  transition: all 0.3s ease;
}

.article-share-btn:hover {
  background: #111827;
  border-color: #111827;
  color: #fff;
}

.article-share-btn svg {
  width: 18px;
  height: 18px;
}

.article-copy-btn.copied {
  background: #10b981;
  border-color: #10b981;
  color: #fff;
}

/* ==========================================
   Article Navigation
   ========================================== */
.article-nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}

@media (min-width: 768px) {
  .article-nav {
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
  }
}

.article-nav-link {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem;
  background: #f8fafc;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
}

.article-nav-link:hover {
  background: #f3f4f6;
}

.article-nav-prev {
  text-align: left;
}

.article-nav-next {
  text-align: right;
}

@media (min-width: 768px) {
  .article-nav-next {
    order: 3;
  }
}

.article-nav-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #000000;
  letter-spacing: 0.05em;
}

.article-nav-label svg {
  width: 14px;
  height: 14px;
}

.article-nav-next .article-nav-label {
  justify-content: flex-end;
}

.article-nav-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: #111827;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-nav-back {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.25rem 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #111827;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
}

.article-nav-back:hover {
  border-color: #111827;
}

.article-nav-back svg {
  width: 16px;
  height: 16px;
}

@media (min-width: 768px) {
  .article-nav-back {
    order: 2;
  }
}

/* ==========================================
   Sidebar
   ========================================== */
.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .article-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
  }
}

.sidebar-section {
  padding: 1.5rem;
  background: #f8fafc;
  border-radius: 1rem;
}

.sidebar-title {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #c73e3a;
}

/* Sidebar News List */
.sidebar-news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-news-list li {
  border-bottom: 1px solid #e5e7eb;
}

.sidebar-news-list li:last-child {
  border-bottom: none;
}

.sidebar-news-item {
  display: block;
  padding: 1rem 0;
  transition: opacity 0.3s ease;
}

.sidebar-news-item:hover {
  opacity: 0.7;
}

.sidebar-news-date {
  display: block;
  font-size: 0.75rem;
  color: #000000;
  margin-bottom: 0.375rem;
}

.sidebar-news-title {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #111827;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Sidebar Category List */
.sidebar-category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-category-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  font-size: 0.875rem;
  color: #111827;
  border-bottom: 1px solid #e5e7eb;
  transition: color 0.3s ease;
}

.sidebar-category-item:hover {
  color: #c73e3a;
}

.sidebar-category-list li:last-child .sidebar-category-item {
  border-bottom: none;
}

.sidebar-category-count {
  font-size: 0.75rem;
  color: #000000;
  background: #e5e7eb;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
}

/* Sidebar Archive List */
.sidebar-archive-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-archive-list li {
  border-bottom: 1px solid #e5e7eb;
}

.sidebar-archive-list li:last-child {
  border-bottom: none;
}

.sidebar-archive-list a {
  display: block;
  padding: 0.75rem 0;
  font-size: 0.875rem;
  color: #111827;
  transition: color 0.3s ease;
}

.sidebar-archive-list a:hover {
  color: #c73e3a;
}

/* ==========================================
   Related News Section
   ========================================== */
.related-news-section {
  padding: 4rem 0 6rem;
  background: #f8fafc;
}

@media (min-width: 768px) {
  .related-news-section {
    padding: 5rem 0 8rem;
  }
}

.related-news-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 2rem;
}

.related-news-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .related-news-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.related-news-item {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.related-news-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.related-news-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.related-news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.related-news-item:hover .related-news-image img {
  transform: scale(1.05);
}

.related-news-content {
  padding: 1.5rem;
}

.related-news-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.related-news-item-title {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
