/* Blog Cards Mobile Enhancements */

/* Hide pagination arrows on blog page */
.vl-blog-4-area-inner .page-item {
  display: none !important;
}

/* Improve blog card spacing on mobile */
@media (max-width: 991px) {
  .vl-blog-4-area .row > [class*="col-"] {
    margin-bottom: 30px;
  }
  
  .vl-blog-4-area .row > [class*="col-"]:last-child {
    margin-bottom: 0;
  }
}

/* Enhanced blog card styling for mobile */
.vl-blog-1-item {
  transition: all 0.4s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.vl-blog-1-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Blog thumbnail improvements */
.vl-blog-1-thumb {
  position: relative;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
  aspect-ratio: 16/10;
}

.vl-blog-1-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.vl-blog-1-item:hover .vl-blog-1-thumb img {
  transform: scale(1.08);
}

/* Blog content area */
.vl-blog-1-content {
  padding: 24px !important;
  flex: 1;
  display: flex;
  flex-direction: column;
}

@media (max-width: 767px) {
  .vl-blog-1-content {
    padding: 20px !important;
  }
}

/* Blog meta (date) styling */
.vl-blog-meta {
  margin-bottom: 12px;
}

.vl-blog-meta ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vl-blog-meta ul li a {
  font-size: 14px;
  font-weight: 500;
  color: #666;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(2, 1, 90, 0.05);
  border-radius: 20px;
  transition: all 0.3s ease;
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
  vertical-align: middle;
}

.vl-blog-meta ul li a:hover {
  background: rgba(2, 1, 90, 0.1);
  color: #02015A;
}

.vl-blog-meta ul li a svg {
  width: 14px;
  height: 14px;
}

/* Blog title improvements */
.vl-blog-1-title {
  flex: 1;
}

.vl-blog-1-title a {
  font-size: 20px !important;
  line-height: 1.4 !important;
  font-weight: 600 !important;
  color: #02015A !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.3s ease;
}

@media (max-width: 767px) {
  .vl-blog-1-title a {
    font-size: 18px !important;
    line-height: 1.3 !important;
  }
}

.vl-blog-1-title a:hover {
  color: #007bff !important;
}

/* Learn More button enhancement */
.vl-blog-1-icon {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.vl-blog-1-icon .learnmore {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #02015A;
  transition: all 0.3s ease;
  padding: 8px 0;
}

.vl-blog-1-icon .learnmore:hover {
  color: #007bff;
  gap: 12px;
}

.vl-blog-1-icon .learnmore svg {
  transition: transform 0.3s ease;
  width: 18px;
  height: 18px;
}

.vl-blog-1-icon .learnmore:hover svg {
  transform: translateX(4px);
}

.vl-blog-1-icon .learnmore:hover svg path {
  fill: #007bff;
}

/* Mobile specific improvements */
@media (max-width: 767px) {
  /* Full width cards on mobile */
  .vl-blog-4-area .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  /* Better spacing */
  .vl-blog-4-area {
    padding: 40px 0;
  }
  
  .vl-blog-1-section-box {
    margin-bottom: 40px !important;
  }
  
  /* Smaller heading on mobile */
  .vl-blog-1-section-box .vl-section-title {
    font-size: 28px !important;
    line-height: 1.2 !important;
  }
  
  .vl-blog-1-section-box .vl-section-subtitle {
    font-size: 14px;
  }
}

/* Tablet improvements */
@media (min-width: 768px) and (max-width: 991px) {
  /* Two columns on tablet */
  .vl-blog-4-area .col-lg-4 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  
  .vl-blog-4-area .col-lg-4:last-child {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Add loading skeleton effect */
.vl-blog-1-thumb::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.vl-blog-1-item:hover .vl-blog-1-thumb::before {
  left: 100%;
}

/* Smooth animations */
@media (prefers-reduced-motion: no-preference) {
  .vl-blog-1-item {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
  }
  
  .vl-blog-1-item:nth-child(1) {
    animation-delay: 0.1s;
  }
  
  .vl-blog-1-item:nth-child(2) {
    animation-delay: 0.2s;
  }
  
  .vl-blog-1-item:nth-child(3) {
    animation-delay: 0.3s;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Touch-friendly spacing */
@media (max-width: 767px) {
  .vl-blog-1-icon .learnmore {
    padding: 12px 0;
    min-height: 44px;
  }
}

/* Improve readability on small screens */
@media (max-width: 480px) {
  .vl-blog-1-title a {
    font-size: 17px !important;
  }
  
  .vl-blog-1-content {
    padding: 18px !important;
  }
  
  .vl-blog-meta ul li a {
    font-size: 13px;
    padding: 6px 12px;
    line-height: 1.3;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}
