/* News Sidebar Styles */
.news-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  margin-top: 2rem;
}

.news-main {
  /* Full width on mobile */
}

.news-sidebar {
  padding-right: 30px;
  position: sticky;
  top: 2rem;
  align-self: start;
}

.sidebar-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.sidebar-card h3 {
  margin-bottom: 1rem;
  color: #2d3748;
  font-size: 1.1rem;
  font-weight: 600;
}

.category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-list li {
  margin-bottom: 0.5rem;
}

.category-list a {
  display: block;
  padding: 0.75rem 1rem;
  color: #4a5568;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

.category-list a:hover,
.category-list a.active {
  background: linear-gradient(135deg, #4299e1, #3182ce);
  color: white;
  transform: translateX(4px);
}

.page-subtitle {
  color: #718096;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .news-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .news-sidebar {
    position: static;
    order: 1;
  }

  /* Toggle button for sidebar */
  .toggle-sidebar-btn {
    display: block;
    background: var(--global-palette1);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
  }

  .toggle-sidebar-btn:hover {
    background: var(--global-palette3);
    transform: translateY(-2px);
  }

  /* Modify sidebar layout */
  .news-sidebar {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    max-height: none;
    overflow-y: visible;
    transition: none;
  }

  .news-sidebar.hidden {
    max-height: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
  }
}

@media (max-width: 768px) {
  .share-buttons {
    flex-wrap: wrap;
    padding: 12px;
    gap: 8px;
  }

  .share-btn {
    width: 45px;
    height: 45px;
    font-size: 18px;
  }
}