/* Header Section */
.blog-header {
    background: linear-gradient(135deg, #000080, #334155);
    color: #ffffff;
    text-align: center;
    margin-top: 50px;
    padding: 60px 20px;
  }
  
  .blog-header .header-content h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
  }
  
  .blog-header .header-content p {
    font-size: 1.2rem;
  }
  
/* Blog Section */
.blog-section {
    padding: 50px 5%;
    background: #ffffff;
    text-align: center;
  }
  
  .blog-section h2 {
    font-size: 2rem;
    color: #000080;
    margin-bottom: 20px;
  }
  
  .blog-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 cards in one row for larger screens */
    gap: 20px;
    margin-top: 30px;
  }
  
  .blog-card {
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .blog-card:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  }
  
  .blog-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
  }
  
  .card-content {
    padding: 20px;
    text-align: left;
  }
  
  .card-content h3 {
    font-size: 1.5rem;
    color: #334155;
    margin-bottom: 10px;
  }
  
  .card-content p {
    font-size: 1rem;
    color: #6b7280;
    margin-bottom: 15px;
  }
  
  .read-more {
    text-decoration: none;
    color: #ffffff;
    background-color: #000080;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
  }
  
  .read-more:hover {
    background-color: #334155;
  }


  /* Subscription Section */
  .subscription {
    background: #000080;
    color: #ffffff;
    text-align: center;
    padding: 30px 15px;
    margin: 30px auto;
    margin-bottom: 50px;
    max-width: 90%;
    border-radius: 40px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  }
  
  .subscription h2 {
    font-size: 2rem;
    margin-bottom: 10px;
  }
  
  .subscription p {
    font-size: 1rem;
    margin-bottom: 20px;
  }
  
  .subscription-form {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
  }
  
  .subscription-form input {
    padding: 15px 20px;
    border-radius: 30px;
    border: 1px solid #ffffff;
    font-size: 1rem;
    color: #000080;
    flex: 1 1 auto;
    min-width: 250px;
    max-width: 700px;
  }
  
  .subscription-form button {
    background: #ffffff;
    color: #000080;
    padding: 15px 30px;
    border-radius: 30px;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
  }
  
  .subscription-form button:hover {
    background: #334155;
    color: #ffffff;
    transform: translateY(-3px);
  }
  
  /* Footer */
  footer {
    background: #f9fafb;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    color: #6b7280;
  }
  
  /* Responsive Design */


  @media (max-width: 1200px) {
    .blog-cards {
      grid-template-columns: repeat(3, 1fr); /* 3 cards in one row for medium screens */
    }
  }

  
  
  @media (max-width: 768px) {
    .blog-header .header-content h1 {
      font-size: 2rem;
    }
  
    .blog-header .header-content p {
      font-size: 1rem;
    }
    .blog-cards {
        grid-template-columns: repeat(2, 1fr); /* 2 cards in one row for smaller screens */
      }
    
      .blog-section h2 {
        font-size: 1.8rem;
      }
    
      .card-content h3 {
        font-size: 1.3rem;
      }
    
      .card-content p {
        font-size: 0.9rem;
      }
    
      .read-more {
        font-size: 0.8rem;
        padding: 8px 16px;
      }
    
  
    .subscription h2 {
      font-size: 1.8rem;
    }
  
    .subscription-form input {
      min-width: 200px;
    }
  }
  
  @media (max-width: 480px) {
    .blog-header .header-content h1 {
      font-size: 1.5rem;
    }
  
    .blog-header .header-content p {
      font-size: 0.9rem;
    }
    .blog-cards {
        grid-template-columns: 1fr; /* 1 card per row for mobile screens */
      }
    
      .blog-section h2 {
        font-size: 1.5rem;
      }
    
      .blog-card {
        margin-bottom: 20px;
      }
    
    .subscription h2 {
      font-size: 1.5rem;
    }
  
    .subscription-form button {
      font-size: 0.9rem;
      padding: 12px 20px;
    }
  }
  