a{
    text-decoration: none;
    color: inherit;
}



.main-blog-container{
    margin:30px auto;
}
.blog-heading {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 30px;
  color: #2c3e50;
}

/* Blog grid */
.blogs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Card styling */
.blog-card {
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 300px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
}

.blog-image {
  width: 100%;
  height: 100px;
  object-fit: cover;
}

.blog-body {
  padding: 16px;
  flex: 1;
}

.blog-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #1e1e1e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.blog-description {
  font-size: 0.9rem;
  line-height: 1.4;
  color: #555;
  max-height: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.blog-footer {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-top: 1px solid #eee;
  background-color: #fafafa;
}

.author-image {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 10px;
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
}

.post-date {
  font-size: 0.75rem;
  color: #888;
}


/* Responsive tweaks */
@media (max-width: 768px) {
  .blog-heading {
    font-size: 1.6rem;
  }

  .blog-card {
    height: auto;
  }

  .blog-title {
    font-size: 0.95rem;
  }

  .blog-description {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .blog-heading {
    font-size: 1.4rem;
    margin-bottom: 30px;
  }

  .blogs-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding:20px 40px;
  }
}


.adsense-box{
    margin-top:50px;
    display:flex;
    justify-content:center;
    max-width: 80vw;
}