:root {
      --primary-color: #3498db;
      --secondary-color: #2c3e50;
      --accent-color: #e74c3c;
      --light-color: #ecf0f1;
      --text-color: #2c3e50;
      --text-light: #7f8c8d;
    }
    
    
    .blog-page-container {
      width: 90%;
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 15px;
    }
    
   
    
    /* Blog Grid */
    .blog-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
      gap: 30px;
      margin: 60px 0;
    }
    
    .blog-card {
      background: white;
      border-radius: 10px;
      overflow: hidden;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      height: 100%;
      display: flex;
      flex-direction: column;
    }
    
    .blog-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
    }
    
    .card-image {
      height: 280px;
      overflow: hidden;
      border-bottom: 1px solid #eee;
      position: relative;
    }
    
    .card-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      transition: transform 0.5s ease;
    }
    
    .blog-card:hover .card-image img {
      transform: scale(1.05);
    }
    
    .card-date {
      position: absolute;
      top: 15px;
      right: 15px;
      background: var(--accent-color);
      color: white;
      padding: 5px 10px;
      border-radius: 5px;
      font-size: 0.85rem;
      font-weight: 500;
    }
    
    .card-content {
      padding: 20px;
      flex-grow: 1;
      display: flex;
      flex-direction: column;
    }
    
    .card-content h3 {
      font-size: 1.4rem;
      margin-bottom: 12px;
      color: var(--text-color);
      line-height: 1.3;
    }
    
    .card-content p {
      color: var(--text-light);
      margin-bottom: 20px;
      flex-grow: 1;
    }
    
    .read-more {
      display: inline-flex;
      align-items: center;
      color: var(--primary-color);
      font-weight: 600;
      text-decoration: none;
      margin-top: auto;
      transition: color 0.3s ease;
    }
    
    .read-more:hover {
      color: var(--accent-color);
    }
    
    .read-more i {
      margin-left: 5px;
      transition: transform 0.3s ease;
    }
    
    .read-more:hover i {
      transform: translateX(5px);
    }
    
    /* Category Filter */
    .category-filter {
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 15px;
      margin: 30px 0;
    }
    
    .category-btn {
      padding: 8px 20px;
      background: white;
      border: 1px solid #ddd;
      border-radius: 30px;
      cursor: pointer;
      transition: all 0.3s ease;
      font-weight: 500;
    }
    
    .category-btn:hover,
    .category-btn.active {
      background: var(--primary-color);
      color: white;
      border-color: var(--primary-color);
    }
    
    /* Newsletter Section */
    .newsletter {
      background: linear-gradient(120deg, #2c3e50, var(--secondary-color));
      padding: 60px 0;
      text-align: center;
      color: white;
      margin: 80px 0;
      border-radius: 12px;
    }
    
    .newsletter h2 {
      font-size: 2.2rem;
      margin-bottom: 20px;
      font-weight: 700;
    }
    
    .newsletter p {
      max-width: 600px;
      margin: 0 auto 30px;
      font-size: 1.1rem;
    }
    
    .subscribe-form {
      display: flex;
      max-width: 500px;
      margin: 0 auto;
    }
    
    .subscribe-form input {
      flex: 1;
      padding: 15px;
      border: none;
      border-radius: 5px 0 0 5px;
      font-size: 1rem;
    }
    
    .subscribe-form button {
      padding: 15px 25px;
      background: var(--accent-color);
      color: white;
      border: none;
      border-radius: 0 5px 5px 0;
      cursor: pointer;
      font-weight: 600;
      transition: background 0.3s ease;
    }
    
    .subscribe-form button:hover {
      background: #c0392b;
    }
    
    /* Responsive Adjustments */
    @media (max-width: 768px) {
      
      
      .blog-hero h1 {
        font-size: 2.2rem;
      }
      
      .blog-hero p {
        font-size: 1rem;
      }
      
      .blog-grid {
        grid-template-columns: 1fr;
        gap: 25px;
      }
      
      .subscribe-form {
        flex-direction: column;
      }
      
      .subscribe-form input,
      .subscribe-form button {
        width: 100%;
        border-radius: 5px;
        margin: 5px 0;
      }
    }

    /* Newsletter Section Responsive */
@media (max-width: 768px) {
    .newsletter h2 {
        font-size: 1.8rem; /* smaller heading */
    }

    .newsletter p {
        font-size: 1rem; /* smaller paragraph */
        padding: 0 15px; /* some horizontal padding */
    }

    .subscribe-form {
        flex-direction: column; /* stack input + button */
        gap: 10px; /* space between input and button */
    }

    .subscribe-form input,
    .subscribe-form button {
        width: 100%;
        border-radius: 5px; /* full width rounded */
        margin: 0; /* reset margin */
    }

    .newsletter {
        padding: 40px 20px; /* reduce top/bottom padding on mobile */
    }
}

/* Desktop by default, hide mobile banner */
.blog-hero .mobile-banner {
    display: none;
}

/* Show mobile banner on screens <= 768px */
@media (max-width: 768px) {
    .blog-hero .desktop-banner {
        display: none;
    }
    .blog-hero .mobile-banner {
        display: block;
    }
}
