/* News Page Styles */

/* Page Header */
.page-header {
    margin-bottom: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid #e7ebf3;
  }
  
  .page-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    color: #0d121b;
    margin: 0 0 0.5rem 0;
  }
  
  .page-subtitle {
    font-size: 1rem;
    color: #4c669a;
    margin: 0;
  }
  
  /* Tabs */
  .news-tabs {
    margin: 1.5rem 0 1.5rem 0;
    border-bottom: 1px solid #e7ebf3;
    padding-bottom: 0.5rem;
  }
  
  .tab-button {
    background: none;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 1rem;
    border-bottom: 2px solid transparent;
    color: #4c669a;
    transition: all 0.2s ease;
    border-radius: 4px 4px 0 0;
  }
  
  .tab-button:hover {
    color: #135bec;
    background-color: #f8f9fc;
  }
  
  .tab-button.active {
    border-bottom: 2px solid #135bec;
    color: #135bec;
    font-weight: 600;
  }
  
  /* Grid Layout */
  .content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0rem;
    margin-top: 0rem;
  }
  
  @media (min-width: 768px) {
    .content-grid {
      grid-template-columns: 300px 1fr;
      gap: 3rem;
    }
    
    .sidebar {
      width: 100%;
    }
    
    .news-section {
      width: 100%;
    }
  }
  
  /* Sticky Sidebar */
  .sticky-sidebar {
    position: sticky;
    top: 1rem;
  }
  
  /* Search Section */
  .search-section {
    margin-bottom: 1.5rem;
  }
  
  .search-container {
    display: block;
    position: relative;
  }
  
  .search-input-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #cfd7e7;
    border-radius: 6px;
    background-color: #fff;
    height: 42px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
  }
  
  .search-input-wrapper:focus-within {
    border-color: #135bec;
    box-shadow: 0 0 0 3px rgba(19, 91, 236, 0.1);
  }
  
  .search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    color: #4c669a;
  }
  
  .search-input {
    flex: 1;
    border: none;
    background-color: transparent;
    padding: 0.5rem;
    font-size: 1rem;
    color: #0d121b;
    outline: none;
  }
  
  .search-input::placeholder {
    color: #4c669a;
  }
  
  /* Filter Panel */
  .filter-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0d121b;
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e7ebf3;
  }
  
  .filter-subtitle {
    font-size: 0.9rem;
    font-weight: 500;
    color: #4c669a;
    margin: 1.5rem 0 0.5rem 0;
    padding-bottom: 0.25rem;
    border-bottom: 1px dashed #e7ebf3;
  }
  
  .filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .filter-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid #e7ebf3;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #fff;
    position: relative;
    overflow: hidden;
  }
  
  .filter-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #135bec, #3b82f6);
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .filter-option:hover {
    border-color: #135bec;
    background-color: #f8f9ff;
    transform: translateY(-2px);
  }
  
  .filter-option:hover::before {
    opacity: 1;
  }
  
  .filter-option.selected {
    background: linear-gradient(135deg, #f0f5ff, #e6f0ff);
    border: 1px solid #135bec;
    box-shadow: 0 4px 12px rgba(19, 91, 236, 0.15);
    transform: translateY(-2px);
  }
  
  .filter-option.selected::before {
    opacity: 1;
  }
  
  .filter-radio {
    width: 1.25rem;
    height: 1.25rem;
    border: 1px solid #cfd7e7;
    background-color: transparent;
    appearance: none;
    position: relative;
    border-radius: 50%;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
  }
  
  .filter-radio:checked {
    border: 1px solid #135bec;
    background-color: #135bec;
  }
  
  .filter-radio:checked::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 6px;
    height: 6px;
    background-color: white;
    border-radius: 50%;
  }
  
  .filter-text {
    font-size: 0.95rem;
    color: #0d121b;
    margin: 0;
    font-weight: 500;
  }
  
  /* News Grid */
  .news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
  }
  
  @media (min-width: 768px) {
    .news-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  @media (min-width: 1200px) {
    .news-grid {
      grid-template-columns: repeat(3, 1fr);
    }
  }
  
  /* News Card */
  .news-card {
    background: white;
    border: 1px solid #e7ebf3;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    position: relative;
    text-decoration: none;
    color: inherit;
  }
  
  .news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #135bec, #3b82f6);
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .news-card:hover {
    border-color: #135bec;
    box-shadow: 0 10px 25px rgba(19, 91, 236, 0.2);
    transform: translateY(-5px);
  }
  
  .news-card:hover::before {
    opacity: 1;
  }
  
  .news-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: #f8f9fc;
    position: relative;
  }
  
  .news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  
  
  /* Gradient overlay */
  .news-card:not(.loading) .news-card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    z-index: 1;
  }
  
  .news-card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #135bec;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
  }
  
  .news-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
  }
  
  .news-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    color: #6b7280;
  }
  
  .news-card-date {
    display: flex;
    align-items: center;
    gap: 0.35rem;
  }
  
  .news-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0d121b;
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  .news-card-excerpt {
    font-size: 0.9rem;
    color: #4c669a;
    margin: 0 0 1rem 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
  }
  
  .news-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
  }
  
  .news-tag {
    padding: 0.3rem 0.65rem;
    background: #f0f5ff;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #135bec;
    text-decoration: none;
    transition: all 0.2s ease;
  }
  
  .news-tag:hover {
    background: #dbeafe;
    transform: translateY(-1px);
  }
  
  /* Loading State */
  .news-card.loading {
    pointer-events: none;
  }
  
  .news-card.loading .news-card-image {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite;
  }
  
  @keyframes loading-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
  }
  
  .news-card.loading .news-card-title,
  .news-card.loading .news-card-excerpt,
  .news-card.loading .news-card-meta {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite;
    border-radius: 4px;
    color: transparent;
  }
  
  /* Results Count */
  .results-count {
    font-size: 0.9rem;
    color: #4c669a;
    margin-bottom: 1rem;
    font-weight: 500;
    padding: 0.5rem 0;
  }
  
  .results-count strong {
    color: #135bec;
    font-weight: 700;
  }
  
  /* Pagination */
  .pagination-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e7ebf3;
    flex-wrap: wrap;
  }
  
  .pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    color: #4c669a;
    transition: all 0.2s ease;
    border: 1px solid transparent;
  }
  
  .pagination-link:hover:not(.disabled) {
    background-color: #e7ebf3;
    color: #135bec;
  }
  
  .pagination-link.active {
    background-color: #135bec;
    color: white;
    border: 1px solid #135bec;
    font-weight: 600;
  }
  
  .pagination-link.disabled {
    color: #a0aec0;
    cursor: not-allowed;
    opacity: 0.6;
  }
  
  /* Collapsible filter panel for mobile */
  @media (max-width: 768px) {
    .sidebar {
      order: 2;
      width: 100%;
      margin-top: 1.5rem;
    }
    
    .sticky-sidebar {
      position: static;
    }
    
    .filter-panel {
      position: relative;
      border: 1px solid #e7ebf3;
      border-radius: 8px;
      background-color: #fff;
      overflow: hidden;
    }
    
    .filter-panel-header {
      padding: 1rem;
      background-color: #f8f9fc;
      border-bottom: 1px solid #e7ebf3;
      cursor: pointer;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    
    .filter-panel-header h3 {
      margin: 0;
      font-size: 1rem;
      font-weight: 600;
      color: #0d121b;
    }
    
    .filter-panel-toggle {
      background: none;
      border: none;
      cursor: pointer;
      padding: 0.25rem;
      border-radius: 4px;
      transition: transform 0.2s ease;
    }
    
    .filter-panel-toggle.expanded {
      transform: rotate(180deg);
    }
    
    .filter-options-container {
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.3s ease;
    }
    
    .filter-options-container.expanded {
      max-height: none;
    }
    
    .filter-options {
      padding: 1rem;
    }
    
    .search-section {
      padding: 1rem;
      border-bottom: 1px solid #e7ebf3;
    }
    
    .content-grid {
      display: flex;
      flex-direction: column;
    }
    
    .news-section {
      order: 2;
    }
    
    .sidebar {
      order: 1;
      margin-bottom: 0.5rem;
    }
    
    .news-tabs {
      margin-top: 0;
      display: flex;
      justify-content: center;
      padding: 0rem 0rem 1.5rem 0rem;
      margin: 0rem;
    }
    
    .tab-button {
      padding: 0.4rem 0.75rem;
      font-size: 0.9rem;
    }
    
    .news-grid {
      grid-template-columns: 1fr;
    }
    
    .page-header {
      padding: 1rem 0;
      text-align: center;
    }
    
    .page-title {
      font-size: 1.5rem;
    }
  }
  
  @media (min-width: 1920px) {
    .news-card-image {
      height: 260px;
    }
  }

  /* Filter sections */
.filter-section {
    margin-bottom: 1.5rem;
  }
  
  .filter-section:last-child {
    margin-bottom: 0;
  }
  
  /* Filter actions */
  .filter-actions {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e7ebf3;
  }
  
  .btn-reset-filters {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.08) 0%, rgba(220, 53, 69, 0.04) 100%);
    border: 2px solid rgba(220, 53, 69, 0.2);
    border-radius: 10px;
    color: #dc3545;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    justify-content: center;
  }
  
  .btn-reset-filters:hover {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.15) 0%, rgba(220, 53, 69, 0.08) 100%);
    border-color: rgba(220, 53, 69, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
  }
  
  .btn-reset-filters svg {
    stroke: currentColor;
  }
  
  /* Mobile filter improvements */
  @media (max-width: 768px) {
    .filter-panel-header {
      padding: 1rem;
      background-color: #f8f9fc;
      border-bottom: 1px solid #e7ebf3;
      cursor: pointer;
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 0.5rem;
    }
  
    .filter-panel-header h3 {
      margin: 0;
      font-size: 1rem;
      font-weight: 600;
      color: #0d121b;
      flex-shrink: 0;
    }
  
    .filter-panel-header-text {
      flex: 1;
      font-size: 0.75rem;
      color: #135bec;
      font-weight: 600;
      text-align: right;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
  
    .filter-panel-toggle {
      background: none;
      border: none;
      cursor: pointer;
      padding: 0.25rem;
      border-radius: 4px;
      transition: transform 0.2s ease;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }
  
    .filter-panel-toggle.expanded {
      transform: rotate(180deg);
    }
  
    .filter-options-container {
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.3s ease;
    }
  
    .filter-options-container.expanded {
      max-height: none;
    }
  
    .filter-section {
      padding: 1rem;
      border-bottom: 1px solid #e7ebf3;
    }
  
    .filter-section:last-of-type {
      border-bottom: none;
    }
  
    .filter-title {
      font-size: 0.95rem;
      margin-bottom: 0.75rem;
    }
  
    .filter-subtitle {
      font-size: 0.9rem;
      margin: 0 0 0.75rem 0;
    }
  
    .filter-options {
      gap: 0.5rem;
    }
  
    .filter-option {
      padding: 0.75rem;
    }
  
    .filter-actions {
      padding: 1rem;
      margin-top: 0;
      border-top: 1px solid #e7ebf3;
    }
  
    /* Search section inside filter panel on mobile */
    .search-section {
      padding: 1rem;
      margin-bottom: 0;
      border-bottom: 1px solid #e7ebf3;
    }
  
    /* Hide search section outside filter panel on mobile */
    .sidebar > .sticky-sidebar > .search-section {
      display: none;
    }
  
    /* Show search inside filter panel */
    .filter-panel .search-section {
      display: block;
    }
  }
  
  /* Desktop: keep search outside */
  @media (min-width: 769px) {
    .filter-panel .search-section {
      display: none;
    }
  
    .sidebar > .sticky-sidebar > .search-section {
      display: block;
    }
  
    .filter-panel-header {
      display: none;
    }
  
    .filter-options-container {
      max-height: none !important;
      overflow: visible !important;
    }
  
    .filter-section {
      padding: 0;
    }
  }
  
  /* Active filter indicator badge */
  .filter-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: #135bec;
    color: white;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-left: 0.5rem;
  }

/* ========================================
   LOADING STATES
   ======================================== */

/* Loading animation keyframes */
@keyframes loading-shimmer {
    0% {
      background-position: -200% 0;
    }
    100% {
      background-position: 200% 0;
    }
  }
  
  /* Loading grid */
  .news-grid.loading {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
  }
  
  @media (min-width: 768px) {
    .news-grid.loading {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  @media (min-width: 1200px) {
    .news-grid.loading {
      grid-template-columns: repeat(3, 1fr);
    }
  }
  
  /* Loading card */
  .news-card.loading {
    display: flex;
    flex-direction: column;
    min-height: 400px;
    pointer-events: none;
    cursor: default;
    background: white;
    border: 1px solid #e7ebf3;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  }
  
  .news-card.loading:hover {
    transform: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  }
  
  .news-card.loading .news-card-image {
    width: 100%;
    height: 220px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite;
    flex-shrink: 0;
  }
  
  .news-card.loading .news-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
  }
  
  .news-card.loading .news-card-meta {
    width: 40%;
    height: 0.85rem;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite;
    border-radius: 4px;
    margin: 0;
  }
  
  .news-card.loading .news-card-date {
    display: none;
  }
  
  .news-card.loading .news-card-title {
    width: 85%;
    height: 1.3rem;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite;
    border-radius: 4px;
    margin: 0;
    color: transparent;
    overflow: hidden;
  }
  
  .news-card.loading .news-card-excerpt {
    width: 100%;
    height: 0.9rem;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite;
    border-radius: 4px;
    margin: 0;
    color: transparent;
    overflow: hidden;
  }
  
  .news-card.loading .news-card-excerpt:nth-of-type(2) {
    width: 90%;
  }
  
  .news-card.loading .news-card-excerpt:last-of-type {
    width: 75%;
  }
  
  .news-card.loading .news-card-tags {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
  }
  
  .news-card.loading .news-tag {
    width: 60px;
    height: 24px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite;
    border-radius: 6px;
    color: transparent;
  }
  
  .news-card.loading .news-tag:nth-child(2) {
    width: 75px;
  }
  
  .news-card.loading .news-tag:nth-child(3) {
    width: 55px;
  }
  
  /* ========================================
     ERROR & EMPTY STATES
     ======================================== */
  
  /* Base styles for empty/error states */
  .no-results,
  .error-state {
    text-align: center;
    padding: 4rem 2rem;
    background: #f8f9fc;
    border-radius: 12px;
    border: 1px solid #e7ebf3;
    margin: 2rem 0;
    grid-column: 1 / -1;
  }
  
  /* Error state specific */
  .error-state {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.03) 0%, rgba(220, 53, 69, 0.01) 100%);
    border: 2px dashed rgba(220, 53, 69, 0.2);
  }
  
  /* Icon container */
  .state-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1;
    filter: grayscale(0.2);
    animation: fadeIn 0.4s ease-out;
  }
  
  .error-state .state-icon {
    animation: shake 0.5s ease-out;
  }
  
  @keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
  }
  
  /* Title */
  .state-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0d121b;
    margin: 0 0 0.75rem 0;
    line-height: 1.3;
  }
  
  .error-state .state-title {
    color: #dc3545;
  }
  
  /* Description */
  .state-description {
    font-size: 1rem;
    color: #4c669a;
    margin: 0 0 1.5rem 0;
    line-height: 1.6;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .error-state .state-description {
    color: #6b7280;
  }
  
  /* Actions */
  .state-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 2rem;
  }
  
  .state-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
  }
  
  .state-actions .btn-primary {
    background: linear-gradient(135deg, #135bec 0%, #0d47a1 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(19, 91, 236, 0.25);
  }
  
  .state-actions .btn-primary:hover {
    background: linear-gradient(135deg, #0d47a1 0%, #135bec 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(19, 91, 236, 0.35);
  }
  
  .state-actions .btn-secondary {
    background: white;
    color: #4c669a;
    border: 2px solid #e7ebf3;
  }
  
  .state-actions .btn-secondary:hover {
    background: #f8f9fc;
    border-color: #135bec;
    color: #135bec;
    transform: translateY(-2px);
  }
  
  .state-actions .btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
  }
  
  /* Error details (collapsible) */
  .error-details {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(220, 53, 69, 0.15);
  }
  
  .error-details-toggle {
    background: none;
    border: none;
    color: #dc3545;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
    transition: opacity 0.2s ease;
  }
  
  .error-details-toggle:hover {
    opacity: 0.7;
  }
  
  .error-details-content {
    margin-top: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid rgba(220, 53, 69, 0.2);
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    display: none;
  }
  
  .error-details-content.visible {
    display: block;
    animation: fadeIn 0.3s ease-out;
  }
  
  .error-details-content pre {
    margin: 0;
    padding: 0.75rem;
    background: #f8f9fc;
    border-radius: 6px;
    font-size: 0.8rem;
    color: #6b7280;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
  }
  
  /* Loading indicator for retry */
  .btn.loading {
    pointer-events: none;
    opacity: 0.7;
    position: relative;
  }
  
  .btn.loading::after {
    content: '';
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
  }
  
  @keyframes spin {
    to { transform: translateY(-50%) rotate(360deg); }
  }
  
  /* Mobile adjustments */
  @media (max-width: 768px) {
    .no-results,
    .error-state {
      padding: 3rem 1.5rem;
    }
  
    .state-icon {
      font-size: 3rem;
      margin-bottom: 1rem;
    }
  
    .state-title {
      font-size: 1.25rem;
    }
  
    .state-description {
      font-size: 0.9rem;
    }
  
    .state-actions {
      flex-direction: column;
      gap: 0.75rem;
    }
  
    .state-actions .btn {
      width: 100%;
      justify-content: center;
      max-width: 300px;
    }
  
    .news-card.loading .news-card-image {
      height: 180px;
    }
  }
  
  /* Animation for fade in */
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Prevent animation on loading cards */
  .news-card.loading {
    animation: none !important;
  }
  
  /* Smooth transition when loading completes */
  .news-card:not(.loading) {
    animation: fadeIn 0.6s ease-out;
  }
  