/***********************************************
 * Basic reset / utility
 ***********************************************/
 .blog-grid-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: Arial, sans-serif;
  }
  
  /***********************************************
   * Header: All articles + sort dropdown
   ***********************************************/
  .blog-grid-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
  }
  
  .blog-grid-header .all-articles h2 {
    margin: 0;
    font-size: 24px;
  }
  
  .sort-by {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  .sort-by label {
    font-weight: normal;
    color: #555;
  }
  
  .sort-by select {
    background-color: #eee;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 8px 12px;
    color: #333;
    font-size: 14px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: url("data:image/svg+xml,%3Csvg fill='none' height='12' viewBox='0 0 12 12' width='12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 4l3 3 3-3' stroke='%23666' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 12px center / 12px auto #eee;
    min-width: 200px;
}
  
  
  /***********************************************
   * Grid container
   ***********************************************/
  .blog-grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 columns */
    gap: 20px;
  }
  
  /***********************************************
   * Individual grid item
   ***********************************************/
  .grid-item {
    position: relative;
    background-size: cover;
    background-position: center;
    min-height: 462px;
    border-radius: 8px;
    overflow: hidden;
  }
  
  /* Overlay with Topic + Title */
  .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
  }
  
  .topic {
    position: absolute;
    top: 10px;
    left: 10px;
    border: 1px solid #fff;
    color: #fff;
    padding: 5px 10px;
    font-size: 14px;
    z-index: 2;
  }
  
  .grid-title a {
    color: #fff;
    text-decoration: none;
    font-weight: 400;
    font-family: Helvetica, sans-serif;
    font-size: 32px;
    line-height: 150%;
  }
  
  /***********************************************
   * Pagination
   ***********************************************/
  .blog-grid-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
  }
  
  .blog-grid-pagination .prev-page,
  .blog-grid-pagination .next-page {
    flex: 1;
  }
  
  .blog-grid-pagination .page-numbers {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex: 1;
  }
  
  .blog-grid-pagination a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
  }
  
  .current-page {
    font-weight: bold;
    /* color: red; (ustawione inline w PHP, można jednak nadpisać tu) */
  }
  
  .grid-short-description {
    display: none;
  }
  
  /***********************************************
   * Responsive
   ***********************************************/
  @media (max-width: 768px) {
    .blog-grid-container {
      grid-template-columns: 1fr; /* 1 column on mobile */
    }
  
    .blog-grid-header {
      flex-direction: column;
      align-items: flex-start;
      gap: 10px;
    }
  
    .sort-by {
      margin-left: auto;
    }
    .grid-short-description {
      display: block;
      font-family: Helvetica, sans-serif;
      font-size: 14px;
      font-weight: 400;
      color: #fff;
      margin-top: 8px;
    }
    .grid-title a {
      color: #fff;
      text-decoration: none;
      font-weight: 400;
      font-family: Helvetica, sans-serif;
      font-size: 18px;
      line-height: 120%;
    }

  }
  
