/* Variables */
:root {
    --primary: #2563eb; /* Blue */
    --primary-dark: #1d4ed8;
    --secondary: #374151; /* Dark Gray */
    --background: #f4f4f4; /* Light Gray */
    --card: #ffffff;
    --text: #111827;
    --text-light: #6b7280;
    --border: #e5e7eb;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
  /* Global Styles */
  body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
  }
  
  /* Header */
  header {
    background: var(--card);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    height: 60px;
    display: flex;
    align-items: center;
  }
  
  nav {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 1rem;
    display: flex;
    align-items: center;
  }
  
  .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
  }
  
  #search-form {
    flex: 1;
    display: flex;
    margin-left: 2rem;
  }
  
  #search-form input {
    flex: 1;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: 4px 0 0 4px;
    font-size: 0.9rem;
  }
  
  #search-form button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0 1rem;
    border-radius: 0 4px 4px 0;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
  }
  
  #search-form button:hover {
    background: var(--primary-dark);
  }
  
  /* Filters */
  .filters {
    display: flex;
    justify-content: center;
    flex-direction: row;
    background: var(--card);
    padding: 0.5rem 1rem;
    border-bottom: 1px solid var(--border);
  }
  
  .filter-list {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0 1rem;
  }
  
  .filter-item {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: var(--background);
    font-size: 0.9rem;
    cursor: pointer;
    white-space: nowrap;
    border: 1px solid var(--border);
    transition: background 0.2s, color 0.2s;
  }
  
  .filter-item.active,
  .filter-item:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
  }

  .filter-list.categories,
  .filter-list.countries {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
  }
  
  
  /* Main Content */
  main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
  }
  
  #articles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    padding: 2rem 1rem;
  }
  
  .article {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
  }
  
  .article:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
  }
  
  .article .overlay {
    background: rgba(0, 0, 0, 0.3);
  }

  .article-image {
    width: 100%;
    height: 200px;
    background: var(--border);
    background-size: cover;
    background-position: center;
  }
  
  .article .article-content {
  position: absolute;
  bottom: 0;
  padding: 1rem;
  color: white;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.article h2 {
  font-size: 1.25rem;
  margin: 0;
}

.article .article-meta {
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}
  .article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-light);
  }
  
  .article h2 {
    font-size: 1.25rem;
    margin: 0 0 0.5rem 0;
  }
  
  .article p {
    font-size: 0.95rem;
    color: var(--text-light);
  }
  
  .read-more {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
  }
  
  .read-more:hover {
    text-decoration: underline;
  }
  
  /* Buttons */
  button {
    font-family: 'Inter', sans-serif;
  }
  
  /* Article Detail Page */
  .article-detail {
    max-width: 800px;
    margin: 2rem auto;
    background: var(--card);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  
  .article-detail h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  .article-detail img {
    max-width: 100%;
    border-radius: 8px;
    margin: 1.5rem 0;
  }
  
  .article-detail .article-content {
    font-size: 1rem;
    color: var(--text);
  }
  
  .article-detail .article-meta {
    color: var(--text-light);
    margin-bottom: 1rem;
  }

  /* Pagination */
#pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
  }
  
  #pagination button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    margin: 0 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
  }
  
  #pagination button:hover {
    background: var(--primary-dark);
  }
  
  #pagination span {
    font-size: 1rem;
    color: var(--text-light);
  }

  /* Search Form */
  #search-form {
    max-width: 600px;
    margin: 1rem auto;
  }
  
  #search-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
  }
  
  #search-form button {
    padding: 0 1.5rem;
    border-radius: 0 4px 4px 0;
  }

  /* Loader Spinner */
.loader {
    border: 8px solid var(--border);
    border-top: 8px solid var(--primary);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
  }
  
  @keyframes spin {
    to {
      transform: rotate(360deg);
    }
  }
  
  .loading-indicator {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
  }
  
  .loading-indicator p {
    margin-top: 1rem;
  }

  /* Responsive Styles */
@media (max-width: 768px) {
    nav {
      flex-direction: column;
      align-items: flex-start;
    }
  
    #search-form {
      width: 100%;
      margin-left: 0;
      margin-top: 1rem;
    }
  
    .filter-list {
      flex-wrap: wrap;
    }
  
    #articles {
      grid-template-columns: 1fr;
    }
  
    .article-hero {
      height: 40vh;
    }
  
    .hero-content h1 {
      font-size: 1.75rem;
    }
  }

  /* Article Hero Section */
.article-hero {
    position: relative;
    height: 60vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .article-hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
  }
  
  .article-hero .hero-content {
    position: relative;
    color: white;
    text-align: center;
    padding: 0 1rem;
  }
  
  .article-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }
  
  .article-hero .article-meta span {
    margin-right: 1rem;
  }
  
  .article-body {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
    font-size: 1.1rem;
    line-height: 1.8;
  }
  
  .article-body img, .article-body video {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
  }
  
  .article-body .read-more-link {
    display: inline-block;
    margin-top: 2rem;
    font-weight: 500;
    color: var(--primary);
  }
  
  .article-body .read-more-link:hover {
    text-decoration: underline;
  }

  .article {
    position: relative;
    height: 300px;
    color: white;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    background-color: #333;
    cursor: pointer;
  }
  
  .article .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    transition: background 0.3s;
  }
  
  .article:hover .overlay {
    background: rgba(0, 0, 0, 0.6);
  }
  
  .article .article-content {
    position: relative;
    padding: 1rem;
    z-index: 1;
  }
  
  .article h2 {
    margin: 0;
    font-size: 1.5rem;
  }
  
  .article .article-meta {
    font-size: 0.85rem;
    color: #d1d5db;
    margin-bottom: 0.5rem;
  }

  /* Loading Indicator */
.loading-indicator {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
  }
  
  .loader {
    border: 8px solid var(--border);
    border-top: 8px solid var(--primary);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin: 1rem auto;
  }
  
  @keyframes spin {
    to {
      transform: rotate(360deg);
    }
  }
  
  /* Search Message */
  .search-message {
    max-width: 1200px;
    margin: 2rem auto 1rem auto;
    padding: 0 1rem;
    font-size: 1.5rem;
    color: var(--text);
  }

  /* Article Hero Section */
.article-hero {
    position: relative;
    height: 60vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .article-hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
  }
  
  .article-hero .hero-content {
    position: relative;
    color: white;
    text-align: center;
    padding: 0 1rem;
  }
  
  .article-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }
  
  .article-hero .article-meta span {
    margin-right: 1rem;
  }
  
  .article-body {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
    font-size: 1.1rem;
    line-height: 1.8;
  }
  
  .article-body img, .article-body video {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
  }
  
  .article-body .read-more-link {
    display: inline-block;
    margin-top: 2rem;
    font-weight: 500;
    color: var(--primary);
  }
  
  .article-body .read-more-link:hover {
    text-decoration: underline;
  }

  /* Container */
.container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
  }
  
  /* Article Title */
  .article-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text);
    line-height: 1.2;
  }
  
  /* Article Meta */
  .article-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 2rem;
  }
  
  .article-meta span::before {
    content: '•';
    margin-right: 0.5rem;
  }
  
  .article-meta span:first-child::before {
    content: '';
    margin: 0;
  }
  
  /* Article Image */
  .article-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 2rem;
  }
  
  /* Article Body */
  .article-body {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text);
  }
  
  .article-body p {
    margin-bottom: 1.5rem;
  }
  
  .article-body h2,
  .article-body h3,
  .article-body h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
    color: var(--text);
  }
  
  .article-body h2 {
    font-size: 2rem;
  }
  
  .article-body h3 {
    font-size: 1.75rem;
  }
  
  .article-body h4 {
    font-size: 1.5rem;
  }
  
  .article-body img,
  .article-body video {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
    border-radius: 8px;
  }
  
  /* Read More Link */
  .read-more-link {
    display: inline-block;
    margin-top: 2rem;
    font-weight: 500;
    color: var(--primary);
  }
  
  .read-more-link:hover {
    text-decoration: underline;
  }
  
  /* Footer */
  footer {
    background: var(--secondary);
    color: white;
    padding: 1rem 0;
    text-align: center;
  }
  
  footer p {
    margin: 0;
    font-size: 0.9rem;
  }
  
  /* Responsive Design */
  @media (max-width: 768px) {
    .article-title {
      font-size: 2rem;
    }
  
    .article-body {
      font-size: 1rem;
    }
  }

  /* Comments Section */
.comments {
    margin-top: 4rem;
  }
  
  .comments h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
  }
  
  .comments p {
    font-size: 1rem;
    color: var(--text-light);
  }

  a {
    color: var(--primary);
    text-decoration: none;
  }

  a:hover {
    text-decoration: underline;
  }

  .btn.summarize-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 2rem;
  }
  
  .btn.summarize-btn:hover {
    background: var(--primary-dark);
  }
  
  /* Summary Section */
  .summary-section {
    margin-top: 2rem;
    padding: 1rem;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
  }
  
  .summary-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .summary-section p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
  }

  /* styles.css */

/* Container */
.container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
  }
  
  /* Article Title */
  .article-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text);
    line-height: 1.2;
  }
  
  /* Article Meta */
  .article-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 2rem;
  }
  
  .article-meta span::before {
    content: '•';
    margin-right: 0.5rem;
  }
  
  .article-meta span:first-child::before {
    content: '';
    margin: 0;
  }
  
  /* Article Image */
  .article-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
  }
  
  /* Article Body */
  .article-body {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text);
  }
  
  .article-body p {
    margin-bottom: 1.5rem;
  }
  
  .article-body h2,
  .article-body h3,
  .article-body h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
    color: var(--text);
  }
  
  .article-body h2 {
    font-size: 2rem;
  }
  
  .article-body h3 {
    font-size: 1.75rem;
  }
  
  .article-body h4 {
    font-size: 1.5rem;
  }
  
  .article-body img,
  .article-body video {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
  }
  
  /* Read More Link */
  .read-more-link {
    display: inline-block;
    margin-top: 2rem;
    font-weight: 500;
    color: var(--primary);
  }
  
  .read-more-link:hover {
    text-decoration: underline;
  }
  
  /* Summarize Button */
  .btn.summarize-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 2rem;
    box-shadow: var(--shadow-sm);
  }
  
  .btn.summarize-btn:hover {
    background: var(--primary-dark);
  }
  
  /* Summary Section */
  .summary-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }
  
  .summary-section h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--text);
  }
  
  .summary-section p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
  }
  
  /* Comments Section */
  .comments {
    margin-top: 4rem;
    padding: 1.5rem;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
  }
  
  .comments h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--text);
  }
  
  .comments p {
    font-size: 1rem;
    color: var(--text-light);
  }
  
  /* Footer */
  footer {
    background: var(--secondary);
    color: white;
    padding: 1rem 0;
    text-align: center;
  }
  
  footer p {
    margin: 0;
    font-size: 0.9rem;
  }
  
  /* Responsive Design */
  @media (max-width: 768px) {
    .article-title {
      font-size: 2rem;
    }
  
    .article-body {
      font-size: 1rem;
    }
  
    .btn.summarize-btn {
      width: 100%;
      text-align: center;
    }
  
    .summary-section {
      padding: 1rem;
    }
  }

  .article-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
  }
  
  .btn.summarize-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
  }
  
  .btn.summarize-btn:hover {
    background: var(--primary-dark);
  }
  
  /* Summary Section */
  .summary-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
  }
  
  .summary-section h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--text);
  }
  
  .summary-section p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
  }