/* ================= BLOGS HERO ================= */
.blogs-hero {
  padding: 140px 0 80px;
  background: linear-gradient(180deg, #ffffff, #f8f9fa);
}

.blogs-hero h1 {
  font-size: 2.6rem;
}

/* ================= FEATURED BLOG ================= */

.featured-blog {
  display: block;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #eee;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.06);
  transition: transform 0.35s ease;
  color: inherit;
  text-decoration: none;
}

.featured-blog:hover {
  transform: translateY(-6px);
}

.featured-blog .row {
  align-items: stretch !important;
}

.featured-blog .row .col-lg-6:first-child {
  border-radius: 18px 0 0 18px;
  overflow: hidden;
  display: flex;
}

.featured-blog img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.featured-content {
  padding: 40px;
}

.read-more {
  display: inline-block;
  margin-top: 16px;
  font-weight: 600;
  color: #ffc107;
}

/* ================= BLOG GRID ================= */

.blog-link {
  text-decoration: none;
  color: inherit;
}

.blog-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #eee;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.06);
}

/* ================= LAZY LOADING & SKELETON ================= */

.blog-image-wrapper,
.featured-image-wrapper {
  position: relative;
  height: 210px;
  width: 100%;
  overflow: hidden;
  background-color: #f0f0f0;
}

.featured-image-wrapper {
  height: 100%;
}

.skeleton-loader {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    #f0f0f0 0%,
    #e8e8e8 50%,
    #f0f0f0 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.2s ease-in-out infinite;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.lazy-load {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease-out;
}

.lazy-load.loaded {
  opacity: 1;
}

.featured-blog .lazy-load {
  height: 100%;
}

/* Fallback for browsers without Intersection Observer */
.no-js .lazy-load {
  opacity: 1;
  position: relative;
}

.no-js .skeleton-loader {
  display: none;
}

.blog-content {
  padding: 18px;
}

.blog-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: #ffc107;
  text-transform: uppercase;
}

.blog-content h5 {
  font-weight: 600;
  margin: 8px 0;
}

.blog-content p {
  font-size: 0.95rem;
  color: #666;
}

.blog-item[data-hidden="true"] {
  display: none;
}

/* ================= PAGINATION ================= */
.pagination {
  gap: 0.5rem;
}

.pagination .page-link {
  color: rgb(25, 25, 112);
  border: 2px solid #dee2e6;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.pagination .page-link:hover {
  background-color: rgba(25, 25, 112, 0.1);
  border-color: rgb(25, 25, 112);
  color: rgb(25, 25, 112);
  transform: translateY(-2px);
}

.pagination .page-item.active .page-link {
  background-color: rgb(25, 25, 112);
  border-color: rgb(25, 25, 112);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(25, 25, 112, 0.3);
}

.pagination .page-item.disabled .page-link {
  background-color: #f8f9fa;
  border-color: #dee2e6;
  color: #6c757d;
  cursor: not-allowed;
}

.pagination .page-link[aria-label="Previous"],
.pagination .page-link[aria-label="Next"] {
  font-size: 1.2rem;
  padding: 0.5rem 0.875rem;
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {
  .featured-content {
    padding: 24px;
  }
}
