/* ================================
   BLOGS PAGE — HERO SECTION
   ================================ */
.blogs-page .blogs-hero {
  text-align: center;
  padding: 60px 0 30px;
}

.blogs-page .hero-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 8px;
}

.blogs-page .hero-subtitle {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Mobile */
@media (max-width: 768px) {
  .blogs-page .blogs-hero {
    padding: 40px 0 20px;
  }

  .blogs-page .hero-title {
    font-size: 1.8rem;
  }

  .blogs-page .hero-subtitle {
    font-size: 0.95rem;
  }
}


/* ================================
   BLOGS PAGE — SEARCH BAR (Centered)
   ================================ */

.blogs-page .blogs-search {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 0 auto 40px;
}

.blogs-page .blogs-search .container {
  display: flex;
  justify-content: center;
}

.blogs-page .blogs-search form {
  width: 70%;
  max-width: 750px;
  position: relative;
  display: flex;
  align-items: center;
}

.blogs-page .blogs-search input {
  width: 100%;
  padding: 14px 20px;
  padding-right: 60px;
  border-radius: 35px;
  border: 1px solid #ddd;
  background: #fff;
  font-size: 1rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
  transition: 0.3s ease;
}

.blogs-page .blogs-search input:focus {
  border-color: var(--green-dark);
  box-shadow: 0 4px 20px rgba(47,93,56,0.12);
  outline: none;
}

/* SEARCH BUTTON */
.blogs-page .blogs-search button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--green-dark);
  color: #fff;
  padding: 10px 18px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  transition: 0.3s;
}

.blogs-page .blogs-search button:hover {
  background: var(--accent-2);
}

/* MOBILE */
@media (max-width: 768px) {
  .blogs-page .blogs-search form {
    width: 90%;
  }
  .blogs-page .blogs-search input {
    padding: 12px 16px;
    padding-right: 60px;
  }
  .blogs-page .blogs-search button {
    padding: 8px 14px;
  }
}

/* ================================
   BLOGS PAGE — 3 COLUMN GRID
   ================================ */
.blogs-page .blogs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}

/* Tablet (2 per row) */
@media (max-width: 992px) {
  .blogs-page .blogs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile (1 per row) */
@media (max-width: 600px) {
  .blogs-page .blogs-grid {
    grid-template-columns: 1fr;
  }
}


/* ================================
   BLOG CARD (PREMIUM CLEAN)
   ================================ */
.blogs-page .blog-card {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
  transition: 0.3s ease;
  display: flex;
  flex-direction: column;
}

/* Hover lift */
.blogs-page .blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 35px rgba(0,0,0,0.10);
}

/* IMAGE */
.blogs-page .blog-thumb img {
  width: 100%;
  height: 200px;
  object-fit: cover;
   transition: transform 0.5s ease, filter 0.5s ease;
}

/* CONTENT BOX */
.blogs-page .blog-card-content {
  padding: 22px 20px 26px;
  display: flex;
  flex-direction: column;
}

/* DATE */
.blogs-page .blog-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

/* TITLE */
.blogs-page .blog-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1.35;
  margin-bottom: 10px;
}

/* EXCERPT */
.blogs-page .blog-excerpt {
  font-size: 0.97rem;
  color: #444;
  line-height: 1.55;
  margin-bottom: 18px;
  min-height: 50px; /* consistent card height */
}

/* READ MORE */
.blogs-page .read-more {
  font-size: 1rem;
  font-weight: 600;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  transition: 0.3s ease;
}

.blogs-page .read-more:hover {
  color: #b35611;
  transform: translateX(4px);
}


/* ================================
   BLOGS PAGE — PAGINATION UI
   ================================ */

.blogs-page .pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 45px 0 40px;
}

/* Buttons */
.blogs-page .pagination .page-link {
  padding: 10px 16px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #ddd;
  color: #333;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.25s ease;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

/* Hover */
.blogs-page .pagination .page-link:hover {
  background: var(--green-dark);
  color: #fff;
  border-color: var(--green-dark);
  transform: translateY(-2px);
}

/* Active Page */
.blogs-page .pagination .page-link.active {
  background: var(--green-dark);
  color: #fff;
  border-color: var(--green-dark);
  pointer-events: none;
  box-shadow: 0 5px 15px rgba(47,93,56,0.25);
}

/* Disabled state (if needed in future) */
.blogs-page .pagination .page-link.disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* Mobile responsive */
@media (max-width: 600px) {
  .blogs-page .pagination {
    gap: 8px;
  }

  .blogs-page .pagination .page-link {
    padding: 8px 12px;
    font-size: 0.85rem;
  }
}


/* ================================
   BLOGS PAGE — NO RESULTS UI
   ================================ */

.blogs-page .no-results {
  text-align: center;
  padding: 60px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
  border: 1px solid #eee;
  margin: 40px auto;
  max-width: 650px;
}

/* Message text */
.blogs-page .no-results p {
  font-size: 1.15rem;
  color: #555;
  margin-bottom: 20px;
  line-height: 1.6;
}

/* Back Button */
.blogs-page .no-results .back-btn {
  display: inline-block;
  padding: 12px 24px;
  background: var(--green-dark);
  color: #fff;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: 0.3s ease;
}

.blogs-page .no-results .back-btn:hover {
  background: var(--accent-2);
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 600px) {
  .blogs-page .no-results {
    padding: 40px 16px;
  }

  .blogs-page .no-results p {
    font-size: 1rem;
  }
}


/* ================================
   BLOGS PAGE — IMAGE HOVER ZOOM
   ================================ */

/* Wrap image for overflow control */
.blogs-page .blog-thumb {
  display: block;
  overflow: hidden;
  border-radius: 0; /* card already rounded */
}


/* On hover → zoom slightly */
.blogs-page .blog-card:hover .blog-thumb img {
  transform: scale(1.06);
  filter: brightness(1.05);
}


/* ================================
   BLOGS PAGE — SKELETON LOADER
   ================================ */

.blogs-page .skeleton-card {
  background: #fff;
  border-radius: 18px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

/* Shimmer Animation */
@keyframes skeleton-loading {
  0% {
    background-color: hsl(200, 20%, 85%);
  }
  50% {
    background-color: hsl(200, 20%, 92%);
  }
  100% {
    background-color: hsl(200, 20%, 85%);
  }
}

.skeleton {
  animation: skeleton-loading 1.2s linear infinite alternate;
  border-radius: 10px;
}

/* Skeleton Image */
.skeleton-thumb {
  width: 100%;
  height: 200px;
  margin-bottom: 0;
}

/* Skeleton Lines */
.skeleton-line {
  height: 16px;
  margin: 12px 0;
  border-radius: 6px;
}

.skeleton-line.short { width: 40%; }
.skeleton-line.medium { width: 70%; }
.skeleton-line.long { width: 100%; }

/* Spacing inside fake card */
.skeleton-content {
  padding: 20px;
}

/* RESPONSIVE */
@media (max-width: 600px) {
  .skeleton-thumb {
    height: 180px;
  }
}
