/* === Base Reset === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0b0c10;
    color: #ffffff;
    line-height: 1.6;
  }
  
  /* === Header === */
  .blog-header {
    text-align: center;
    padding: 3rem 1rem 2rem;
    background-color: #0b0c10;
  }
  
  .blog-header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #66fcf1;
  }
  
  /* === Controls Section (Categories + Search) === */
  .blog-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #1f2833;
    gap: 1rem;
  }
  
  .categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .category-btn {
    background-color: #45a29e;
    color: #0b0c10;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
  }
  
  .category-btn:hover {
    background-color: #66fcf1;
    transform: scale(1.05);
  }
  
  .search-bar {
    display: flex;
    align-items: center;
    background-color: #0b0c10;
    border: 1px solid #66fcf1;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    flex-grow: 1;
    max-width: 300px;
  }
  
  .search-icon {
    margin-right: 0.5rem;
    font-size: 1.1rem;
    color: #66fcf1;
  }
  
  .search-bar input {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 1rem;
    width: 100%;
  }
  
  /* === Blog Content Section === */
  .blog-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 2rem;
  }
  
  /* Left Side - Main Blogs */
  .main-blogs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    flex: 2;
  }
  
  /* Blog Card */
  .blog-card {
    background-color: #1f2833;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    transition: transform 0.3s ease;
  }
  
  .blog-card:hover {
    transform: translateY(-5px);
  }
  
  .blog-card img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
  }
  
  .blog-category {
    display: inline-block;
    background-color: #66fcf1;
    color: #0b0c10;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    margin: 1rem;
  }
  
  .blog-title {
    font-size: 1.6rem;
    margin: 0 1rem;
    color: #66fcf1;
  }
  
  .blog-excerpt {
    font-size: 1rem;
    color: #c5c6c7;
    margin: 1rem;
  }
  
  .blog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem 1rem;
    font-size: 0.9rem;
    color: #bbb;
  }
  
  .read-more {
    text-decoration: none;
    color: #66fcf1;
    font-weight: bold;
    position: relative;
    transition: all 0.3s ease;
  }
  
  .read-more::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: #66fcf1;
    transition: width 0.3s ease;
  }
  
  .read-more:hover::after {
    width: 100%;
  }
  
  /* === Right Side - Popular Blogs === */
  .popular-blogs {
    flex: 1;
    min-width: 280px;
  }
  
  .popular-blogs h3 {
    font-size: 1.8rem;
    color: #66fcf1;
    margin-bottom: 1rem;
  }
  
  .popular-blog-card {
    display: flex;
    align-items: flex-start;
    background-color: #1f2833;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1.2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
  }
  
  .popular-blog-card:hover {
    transform: translateY(-3px);
  }
  
  .popular-blog-card img {
    width: 90px;
    height: 90px;
    object-fit: cover;
  }
  
  .popular-blog-info {
    padding: 0.5rem 0.8rem;
    flex: 1;
  }
  
  .popular-blog-info .blog-category {
    margin: 0 0 0.3rem;
    padding: 0.2rem 0.6rem;
    font-size: 0.75rem;
  }
  
  .popular-blog-info .blog-title {
    font-size: 1rem;
    color: #ffffff;
    font-weight: 600;
  }
  
  /* === Responsive Styles === */
  @media (max-width: 1024px) {
    .blog-controls {
      flex-direction: column;
      align-items: flex-start;
    }
  
    .search-bar {
      max-width: 100%;
    }
  
    .blog-content {
      flex-direction: column;
    }
  
    .main-blogs, .popular-blogs {
      width: 100%;
    }
  }
  
  @media (max-width: 576px) {
    .blog-header h1 {
      font-size: 2rem;
    }
  
    .category-btn {
      font-size: 0.8rem;
      padding: 0.4rem 0.8rem;
    }
  
    .blog-title {
      font-size: 1.3rem;
    }
  
    .popular-blog-card {
      flex-direction: column;
      align-items: center;
    }
  
    .popular-blog-card img {
      width: 100%;
      height: auto;
    }
  
    .popular-blog-info {
      text-align: center;
    }
  }
  