/* ===== BLOG PAGE ===== */

/* Blog Hero */
.blog-hero {
  padding: 60px 0 0;
}

.blog-hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.blog-hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.blog-hero-content h1 {
  font-size: 36px;
  font-weight: 600;
  line-height: 46px;
  color: var(--main);
}

.blog-hero-content p {
  font-size: 16px;
  line-height: 24px;
  color: var(--grey-9);
  max-width: 354px;
}

/* Search */
.blog-search {
  display: flex;
  gap: 12px;
  width: 100%;
  max-width: 500px;
}

.blog-search-form {
  display: flex;
  gap: 12px;
  width: 100%;
}

.blog-search-input {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 50px;
  padding: 0 16px;
  border: 1px solid var(--grey-2);
  border-radius: 24px;
  background: var(--white);
}

.blog-search-input svg { flex-shrink: 0; }

.blog-search-input input {
  flex: 1;
  border: none;
  outline: none;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  line-height: 24px;
  color: var(--main);
  background: transparent;
}

.blog-search-input input::placeholder { color: var(--grey-5); }

.blog-search-btn {
  height: 50px;
  padding: 0 24px;
  background: var(--main);
  color: var(--white);
  border: none;
  border-radius: 24px;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}

/* Featured Blog Post */
.blog-featured {
  padding: 32px 0 0;
}

.blog-featured-card {
  position: relative;
  display: block;
  width: 100%;
  height: 400px;
  border-radius: 24px;
  overflow: hidden;
  text-decoration: none;
}

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

.blog-featured-placeholder {
  width: 100%;
  height: 100%;
  background: var(--grey-1);
}

.blog-featured-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 240px;
  background: linear-gradient(to top, rgba(0,0,0,1) 9.375%, rgba(0,0,0,0.74) 48.25%, rgba(0,0,0,0) 100%);
}
 

.blog-featured-text h2 {
  font-size: 20px;
  font-weight: 600;
  line-height: 30px;
  color: var(--white);
  margin-bottom: 4px;
}

.blog-featured-content1{
  margin: 0;
}

.blog-featured-text p {
  font-size: 14px;
  line-height: 22px;
  color: var(--grey-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
 

.blog-featured-arrow {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--main);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Blog Posts Section */
.blog-posts {
  padding: 48px 0 60px;
}

/* Tab Filters */
.blog-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.blog-tabs::-webkit-scrollbar { display: none; }

.blog-tab {
  padding: 8px 16px;
  height: 40px;
  border: 1px solid var(--grey-2);
  border-radius: 12px;
  background: var(--white);
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 24px;
  color: var(--grey-9);
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0px 4px 12px rgba(0,0,0,0.04);
}

.blog-tab.active {
  background: var(--main);
  color: var(--white);
  border-color: var(--main);
}

/* Blog Cards Grid */
.blog-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 48px;
}
 

.blog-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.blog-card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

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

.blog-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  gap: 16px;
}

.blog-card-top {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.blog-card-author {
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  color: var(--grey-5);
}

.blog-card-date {
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  color: var(--grey-5);
}

.blog-card-meta .blog-card-date::before {
  content: '•';
  margin-right: 8px;
  color: var(--grey-4);
}

.blog-title {
  font-size: 20px;
  font-weight: 600;
  line-height: 30px;
  color: var(--main);
}

.blog-card-bottom {
  margin-top: auto;
}

.blog-card-footer {
  display: flex;
  align-items: center; 
}

.blog-card-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 500;
  color: var(--main);
  text-decoration: none;
}

.blog-card-arrow svg {
  flex-shrink: 0;
}

.blog-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 0;
  color: var(--grey-5);
  font-size: 16px;
}

/* Blog card hidden by filter */
.blog-card.hidden {
  display: none;
}

/* Pagination */
.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.blog-pagination .nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.blog-pagination .page-numbers {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--grey-2);
  background: var(--white);
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--grey-9);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.blog-pagination .page-numbers.current {
  background: var(--main);
  color: var(--white);
  border-color: var(--main);
}

.blog-pagination .page-numbers.prev,
.blog-pagination .page-numbers.next {
  border: 1px solid var(--grey-2);
}

/* ===== DESKTOP ===== */
@media (min-width: 1024px) {
  .blog-hero {
    padding: 84px 0 0;
  }

  .blog-hero-content h1 {
    font-size: 64px;
    line-height: 76px;
  }

  .blog-hero-content p {
    font-size: 18px;
    line-height: 28px;
    max-width: 600px;
  }

  .blog-search {
    max-width: 520px;
  }

  .blog-search-input {
    height: 58px;
    width: 400px;
  }

  .blog-search-btn {
    height: 58px;
    padding: 0 32px;
  }

  .blog-featured {
    padding: 48px 0 0;
  }

  .blog-featured-card {
    height: 480px;
  } 

  .blog-featured-text {
    max-width: 700px;
  }

  .blog-featured-text h2 {
    font-size: 24px;
    line-height: 34px;
  }

  .blog-featured-arrow {
    width: 58px;
    height: 58px;
  }

  .blog-posts {
    padding: 48px 0 84px;
  }

  .blog-tab {
    font-size: 16px;
  }

  .blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 60px;
  }

  .blog-card-image {
    height: 220px;
  }

  .blog-title {
    font-size: 22px;
    line-height: 32px;
  }

  .blog-pagination .page-numbers {
    width: 48px;
    height: 48px;
  }
}