 /* General Styles */

 body {
    font-family: 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
  }

  header {
    background-color: #2c3e50;
    color: #fff;
    padding: 2rem;
    text-align: center;
  }

  header h1 {
    margin: 0;
    font-size: 2.5rem;
  }

  .search-bar {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
  }

  .search-bar input {
    padding: 0.8rem;
    width: min(60%, 300px);
    border: none;
    border-radius: 25px;
  }

  .search-bar button {
    padding: 0.8rem 1.5rem;
    border: none;
    background-color: #3498db;
    color: #fff;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s;
  }

  .search-bar button:hover {
    background-color: #2980b9;
  }

  .filter-buttons {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;


  }

  .filter-buttons button {
    padding: 0.5rem 1rem;
    border: none;
    background-color: #3498db;
    color: #3a1212;
    font-weight: 500;
    text-decoration: underline;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s;
  }

  .filter-buttons button.active {
    background-color: #2980b9;
  }

  .filter-buttons button:hover {
    background-color: #2980b9;
  }

  /* Blog Post Styles */
  .blog-post {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }

  .post-title {
    margin-top: 0;
    color: #2c3e50;
  }

  .post-meta {
    color: #7f8c8d;
    font-size: 0.9em;
    margin-bottom: 1.5rem;
  }

  .post-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1 rem;
  }

  .post-content {
    margin-top: 1.2rem;
  }

  .post-content h4 {
    font-weight: 500;
    margin-bottom: 0.3rem;

  }

  .more {
    display: none;
  }

  .post-content .BtnSeeMore {
    color: #2980b9;
    border: none;
    background: none;
    font-size: 0.95rem;
    display: inline !important;
    /* Force inline display */
    padding: 0;
    margin: 0;
    vertical-align: baseline;

    text-decoration: underline;

  }

  .post-content .BtnSeeMore:hover {

    cursor: pointer;
    text-decoration-thickness: 1.6px;
  }



  .post-content a {
    color: #3498db;
    text-decoration: none;
  }

  .post-content a:hover {
    text-decoration: underline;
  }

  .post-tags,
  .post-categories {
    margin-top: 0.3rem;
    font-size: 0.9em;
  }

  .tag,
  .category {
    display: inline-block;
    margin-right: 0.2rem;
    padding: 0.22rem 0.9rem;
    background-color: #ecf0f1;
    border-radius: 20px;
    text-decoration: none;
    color: #2c3e50;
    transition: background-color 0.3s;
  }

  .tag:hover,
  .category:hover {
    background-color: #bdc3c7;
  }

  /* Related Posts Styles */
  .related-posts {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }

  .related-posts h3 {
    margin-top: 0;
    color: #2c3e50;
  }

  .related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
  }

  .related-post {
    text-align: center;
    transition: transform 0.3s;
  }

  .related-post:hover {
    transform: translateY(-5px);
  }

  .related-post img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
  }

  .related-post h4 {
    margin: 1rem 0 0;
    font-size: 1.1em;
    color: #2c3e50;
  }

  /* Footer Styles */
  footer {
    text-align: center;
    padding: 2rem;
    background-color: #2c3e50;
    color: #fff;
    margin-top: 4rem;
  }

  @media (max-width: 768px) {
    header h1 {
      font-size: 2rem;
    }

    .search-bar {
      flex-direction: row;
      gap: 0.5rem;
      align-items: center;
      /* Ensure items are aligned vertically */
    }

    .search-bar input {
      width: 60%;
      /* Adjust width as needed */
      margin-bottom: 0;
      /* Remove any margin-bottom */
      flex: 1;
      /* Allow input to grow and take available space */
    }

    .search-bar button {
      width: auto;
      /* Allow button to adjust its width based on content */
      padding: 0.8rem 1rem;
      /* Adjust padding for smaller screens */
      flex-shrink: 0;
      /* Prevent button from shrinking */
    }

    .filter-buttons {
      display: flex;
      justify-content: space-between;
      gap: 0.3rem;
      padding: 0 0.5rem;
      flex-wrap: nowrap;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
    }

    .filter-buttons::-webkit-scrollbar {
      display: none;
    }

    .filter-buttons button {
      flex: 1 1 auto;
      min-width: max-content;
      padding: 0.4rem 0.6rem;
      font-size: 0.8rem;
      white-space: nowrap;
      flex-shrink: 0;
    }

    .blog-post {
      padding: 1rem;
      margin: 1rem;
    }

    .post-image {
      height: 200px;
    }

    .related-posts-grid {
      grid-template-columns: 1fr;
    }

    .related-post img {
      height: 120px;
    }

    .related-post h4 {
      font-size: 1em;
    }
  }

  @media (max-width: 480px) {
    .search-bar button {
      padding: 0.6rem 0.8rem;
    }
  }