/* ================= BLOG SECTION ================= */
.blog-page .container{
    padding:20px 0px;
}
.blog-section {
  padding: 60px 20px 40px 20px;
  background: #f8f9fb;
  overflow: hidden;
}
.blog-header{
    text-align: center;
    padding-bottom: 20px;
}

.blog-header .blog-tag {
  font-size: 13px;
  color: #ff7a00;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.blog-header h1 {
  font-size: 30px;
  font-weight: 600;
  margin-top: 8px;
}

/* HEADER */
.blog-section .blog-header {
  text-align: center;
  margin-bottom: 50px;
}

.blog-section .blog-header h2 span {
  color: #ff7800;
}

/* ================= SLIDER ================= */

.blog-wrapper {
  width: 100%;
  position: relative;
}
.blog-wrapper.layout-slider .blog-slider {
  overflow: hidden;
  position: relative;
}

.blog-wrapper.layout-slider .blog-track {
  display: flex;
  gap: 20px;
  transition: transform 0.4s ease;
}

.blog-wrapper.layout-grid .blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

@media (max-width: 992px) {
  .blog-wrapper.layout-grid .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
    .blog-page .container{
        padding:30px 16px;
    }
    .blog-header h1 {
        font-size:20px;
        margin:8px 0px;
    }
  .blog-wrapper.layout-grid .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-wrapper.layout-slider .blog-card {
    min-width: 80%;
  }
}

.blog-wrapper .blog-read-more {
  display: inline-block;
  margin-top: 10px;
  color: #0073aa;
  font-weight: 600;
  text-decoration: none;
}

/* ================= CARD ================= */

.blog-wrapper .blog-card {
  position: relative;
  flex: 0 0 calc(33.33% - 16px);
}

/* IMAGE */
.blog-wrapper .blog-img img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

/* ================= CONTENT (SUBTLE OVERLAP) ================= */

.blog-wrapper .blog-content {
    position: relative;
    margin: -5% 16px 0px;
    background: #fff;
    padding: 18px;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    z-index: 2;
}

/* HOVER */
.blog-wrapper .blog-card:hover .blog-content {
  transform: translateY(-5px);
}

/* ================= META ================= */

.blog-wrapper .blog-meta {
  font-size: 13px;
  color: #777;
  margin-bottom: 8px;
}

.blog-wrapper .blog-meta .cat {
  color: #7a3cff;
  margin-left: 10px;
}

/* ================= TITLE ================= */

.blog-wrapper .blog-content h3 {
  font-size: 17px;
  margin-bottom: 8px;
  line-height: 1.4;
  
}

.blog-wrapper .blog-content h3 a {
  text-decoration: none;
  color: #111;
  
  display: -webkit-box;
  -webkit-line-clamp: 2;      /* 👈 limit to 2 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ================= READ MORE ================= */

.blog-wrapper .blog-read-more {
  font-size: 14px;
  font-weight: 600;
  color: #111;
  text-decoration: none;
  transition: all 0.3s ease;
}

.blog-wrapper .blog-read-more:hover {
  color: #ff2b2b;
  transform: translateX(4px);
}

/* ================= RESPONSIVE ================= */

/* Tablet */
@media(max-width: 1024px){
  .blog-wrapper .blog-card {
    flex: 0 0 calc(50% - 12px);
  }

  .blog-wrapper .blog-content {
    bottom: -16px;
  }
}

/* Mobile */
@media(max-width: 600px){

  .blog-section {
    padding: 40px 16px;
  }

.blog-section .blog-header {
  text-align: center;
  margin-bottom: 30px;
}
  .blog-wrapper .blog-card {
    flex: 0 0 100%;
  }

  .blog-wrapper .blog-img img {
    height: 220px;
  }

  .blog-wrapper .blog-content {
    position: relative;
    bottom: 0;
    margin-top: -18px; /* 👈 subtle overlap */
    left: 0;
    right: 0;
    padding: 14px;
  }

  .blog-wrapper .blog-content h3 {
    font-size: 16px;
  }
}

.pagination {
  margin-top: 40px;
  text-align: center;
}

.pagination .page-numbers {
  display: inline-block;
  margin: 0 5px;
  padding: 8px 12px;
  border-radius: 6px;
  background: #f5f5f5;
  text-decoration: none;
}

.pagination .current {
  background: #0073aa;
  color: #fff;
}