/* =========================================
   BLOG PAGE PRO STYLES
========================================= */

/* Blog Hero */
.blog-hero {
    background: linear-gradient(180deg, var(--gray-100) 0%, var(--white) 100%);
    padding: 80px 20px 60px;
    text-align: center;
  }
  .blog-hero-inner {
    max-width: 800px;
    margin: 0 auto;
  }
  .blog-hero h1 {
    font-size: 46px;
    font-weight: 900;
    color: var(--black);
    margin-bottom: 16px;
  }
  .blog-hero h1 .accent {
    color: var(--purple);
  }
  .blog-hero p {
    font-size: 16px;
    color: var(--gray-600);
    margin-bottom: 32px;
  }
  
  /* Search Bar */
  .blog-search {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.04);
    transition: border-color 0.3s;
  }
  .blog-search:focus-within {
    border-color: var(--purple);
  }
  .blog-search input {
    flex: 1;
    border: none;
    padding: 16px 24px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 14px;
    outline: none;
    background: transparent;
    color: var(--black);
  }
  .blog-search button {
    background: transparent;
    border: none;
    padding: 0 20px;
    color: var(--gray-400);
    cursor: pointer;
    transition: color 0.3s;
  }
  .blog-search button:hover {
    color: var(--purple);
  }
  .blog-search button svg {
    width: 20px; height: 20px;
  }
  
  /* Blog Layout Container */
  .blog-layout {
    padding: 0 48px 100px;
    max-width: 1280px;
    margin: 0 auto;
  }
  
  /* Featured Post */
  .featured-post-section {
    margin-bottom: 60px;
  }
  .featured-post {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 24px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0,0,0,0.03);
  }
  .featured-post:hover {
    box-shadow: 0 16px 48px rgba(0,0,0,0.08);
    border-color: var(--purple-light);
  }
  .featured-image {
    background: var(--gray-100);
    min-height: 340px;
    position: relative;
    overflow: hidden;
  }
  .featured-content {
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .post-badge {
    align-self: flex-start;
    background: var(--black);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 16px;
  }
  .featured-post h2 {
    font-size: 26px;
    font-weight: 900;
    color: var(--black);
    line-height: 1.4;
    margin-bottom: 16px;
    transition: color 0.2s;
  }
  .featured-post:hover h2 {
    color: var(--purple);
  }
  .featured-post p {
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 24px;
  }
  
  /* Post Meta (Date & Time) */
  .post-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    font-weight: 500;
    color: var(--gray-400);
  }
  .post-meta .date::after {
    content: "•";
    margin-right: 16px;
    color: var(--gray-200);
  }
  
  /* Category Filters */
  .category-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
  }
  .filter-btn {
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    color: var(--gray-600);
    padding: 8px 20px;
    border-radius: 50px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  .filter-btn:hover {
    border-color: var(--gray-400);
    color: var(--black);
  }
  .filter-btn.active {
    background: var(--black);
    border-color: var(--black);
    color: var(--white);
  }
  
  /* Posts Grid */
  .posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
  .post-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
  }
  .post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.06);
  }
  .post-card a {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
  }
  .post-img-wrap {
    position: relative;
    overflow: hidden;
  }
  .post-category {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    color: var(--purple);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50px;
  }
  .post-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
  }
  .post-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--black);
    line-height: 1.5;
    margin-bottom: 12px;
    transition: color 0.2s;
  }
  .post-card:hover .post-title {
    color: var(--purple);
  }
  .post-excerpt {
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 24px;
    flex: 1;
  }
  
  /* Pagination */
  .pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 60px;
  }
  .page-btn {
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    color: var(--black);
    min-width: 40px;
    height: 40px;
    border-radius: 8px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
  }
  .page-btn:hover:not(:disabled) {
    border-color: var(--black);
  }
  .page-btn.active {
    background: var(--purple);
    color: var(--white);
    border-color: var(--purple);
  }
  .page-btn:disabled {
    color: var(--gray-400);
    background: var(--gray-100);
    cursor: not-allowed;
    border-color: var(--gray-200);
  }
  .page-dots {
    color: var(--gray-400);
    font-weight: 700;
  }
  
  /* Responsive */
  @media (max-width: 900px) {
    .blog-hero h1 { font-size: 32px; }
    .blog-layout { padding: 0 20px 60px; }
    
    .featured-post { grid-template-columns: 1fr; }
    .featured-image { min-height: 240px; }
    .featured-content { padding: 32px 24px; }
    
    .posts-grid { grid-template-columns: 1fr; gap: 24px; }
    
    .category-filters { overflow-x: auto; padding-bottom: 8px; flex-wrap: nowrap; }
    .filter-btn { white-space: nowrap; }
  }