.blog-section {
    text-align: center;
    padding: 17px 0px;
}

.blog-title {
    font-size: 2rem;
    margin-bottom: 30px;
}

@media (max-width: 767px){
    .blog-grid{
        display: flex !important;
        flex-direction: column !important;
    }
}

.blog-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* this keeps the last row centered */
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.blog-card {
  flex: 0 1 320px;  /* each card ~320px, adjusts to screen */
  max-width: 320px;
}

@media (max-width: 600px) {
  .blog-card {
    flex: 0 1 100%;
    max-width: 100%;
  }
}
/* this is also working, however the last item is on the left */
/* .blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
} */

/* .blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  justify-items: center;
} */


@media (max-width: 900px) {
    .blog-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

/* new revise [added wrapping capability] -- 08262025 */
/* .blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
} */

/* original and working -- 08262025 */
/* .blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
} */

/* original */
/* .blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
} */

.blog-card {
    padding: 10px;
    border: 1px solid #e7ecef;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 0px rgb(233 30 99);
    overflow: hidden;
    display: flex;
    flex-direction: column;

    /* background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column; */
}

.blog-card img {
    width: 100%;
    height: 220px;   /* fixed height for consistent aspect ratio */
    object-fit: cover;  /* crop instead of stretching */
    border-radius: 5px;
}


/* original */

/* .blog-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 5px;
} */

.blog-content {
    padding: 20px;
    text-align: left;
}

.blog-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.blog-content p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 15px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    background: #e91e63;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}

.btn:hover {
    background: #c2185b;
}

.btn-large {
    padding: 15px 30px;
    margin-top: 30px;
}

.no-articles {
  font-size: 1rem;
  color: #777;
  margin-top: 20px;
}