/* === Blog Section on Homepage === */
.home-blog-highlight {
    background-color: #ffffff;
    padding: 20px 10px;
    border-radius: 15px;
    text-align: center;
    overflow: hidden;
    margin-bottom: 20px;
    margin-top: 40px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.171);
}

.home-blog-highlight h2 {
    font-size: 20px;
    font-weight: 800;
    color: #343434;
    margin-bottom: 20px;
}

/* Carousel wrapper for positioning arrows */
.blog-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-card-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    justify-content: center;
}

/* Individual blog card */
.blog-card-item {
    flex: 0 0 22%;
    max-width: 300px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease;
    display: none; /* Hidden by default — shown with JS */
}

.blog-card-item a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.blog-card-item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
    display: block;
}

.blog-card-item h3 {
    font-size: 14px;
    margin: 10px;
    color: #0c5cac;
    text-align: center;
    line-height: 1.3;
}

.blog-card-item:hover {
    transform: translateY(-4px);
}

.blog-card-item:hover h3 {
    color: #063c7a;
}

/*this is script based css for incoming item*/
.blog-card-item {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    display: none;
}

.blog-card-item.visible {
    display: block !important;
    opacity: 1;
    transform: translateX(0);
}

.blog-card-item.animating-in {
    /* Incoming animation only */
    opacity: 0;
    transform: translateX(60px);
}


/* Arrows */
.blog-nav-btn {
    background-color: #6A1B9A;
    color: white;
    border: none;
    font-size: 15px;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    margin: 0 10px;
    transition: background 0.3s;
}

.blog-nav-btn:hover {
    background-color: #4a116e;
}

.blog-carousel-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 30px; /* spacing for arrows */
}

/* Position arrow buttons absolutely over the grid */
.blog-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    /* background-color: rgba(106, 27, 154, 0.8); */
    background: linear-gradient(135deg, #6A1B9A, #0c5cac);
    color: white;
    border: none;
    font-size: 10px;
    padding: 10px 14px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.blog-nav-btn:hover {
    /* background-color: rgba(74, 17, 110, 0.9); */
    background: linear-gradient(135deg, #7d20b7, #106ac4);
}

.blog-nav-btn.left-arrow {
    left: 0;
}

.blog-nav-btn.right-arrow {
    right: 0;
}

.blog-card-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    overflow: hidden;
    width: 100%;
    justify-content: center;
    position: relative;
    z-index: 0;
}


@media (max-width: 768px) {
  .blog-card-item {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  .blog-nav-btn {
    font-size: 18px;
    padding: 6px 10px;
  }

  .blog-nav-btn.left-arrow {
    left: 0px;
  }

  .blog-nav-btn.right-arrow {
    right: 0px;
  }

  .blog-carousel-wrapper {
    padding: 0 10px;
  }
}




/* Header section with H2 and View All button */
.blog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 10px;
}

.view-all-btn {
    padding: 6px 14px;
    font-size: 13px;
    /* background-color: #6A1B9A; */
    background: linear-gradient(135deg, #6A1B9A, #0c5cac);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.view-all-btn:hover {
    /* background-color: #4a116e; */
    background: linear-gradient(135deg, #7d20b7, #106ac4);
}




.lazy-img.blog-lazy {
    opacity: 0;
    filter: blur(8px);
    transition: opacity 0.8s ease, filter 0.8s ease;
}

.lazy-img.blog-lazy.loaded {
    opacity: 1;
    filter: blur(0);
}

