/* =================================================================
   Whapi.Cloud Blog — Local overrides
   Base theme loaded from https://whapi.cloud/assets/css/style.css
   This file only contains blog-specific overrides not in the theme.
================================================================= */

/* --------------- Blog page style-5 — vertical card grid --------------- */
.blog-page.style-5 .all-news .card .img {
  height: 200px;
  overflow: hidden;
  border-radius: 20px;
}

.blog-page.style-5 .all-news .card .img img {
  height: 100%;
  transition: transform 0.3s ease;
}

.blog-page.style-5 .all-news .card:hover .img img {
  transform: scale(1.05);
}

.blog-page.style-5 .all-news .card .card-body .card-title {
  font-size: 17px;
  font-weight: bold;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  margin-bottom: 8px;
}

.blog-page.style-5 .all-news .card .card-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}

.blog-page.style-5 .all-news .card a:hover {
  color: var(--color-blue5);
}

.blog-page.style-5 .all-news .img-placeholder {
  height: 200px;
  background-color: #eef4f8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 14px;
}

.blog-page.style-5 .all-news .author-avatar {
  width: 24px;
  height: 24px;
  font-size: 11px;
  flex-shrink: 0;
}

.blog-page.style-5 .all-news .article-meta {
  font-size: 12px;
  padding-top: 8px;
  border-top: 1px solid #0001;
}

/* --------------- color-4 overrides (purple accent) --------------- */
.blog-page.style-5.color-4 .all-news .card a:hover {
  color: var(--color-blue4);
}

/* --------------- Article hero — desktop: preserve 16:9, no vertical crop --------------- */
@media (min-width: 992px) {
  .blog-page.style-5 .blog-details-slider .content-card .img {
    height: auto;
  }

  .blog-page.style-5 .blog-details-slider .content-card .img img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
  }
}

/* --------------- Pagination style-5 overrides --------------- */
.pagination.style-5 {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.pagination.style-5 a {
  width: 30px;
  height: 30px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: max-content;
  border: 1px solid #9993;
  border-radius: 8px;
  font-size: 11px;
  color: #666;
  text-decoration: none;
  transition: all 0.3s ease;
}

.pagination.style-5 a .text {
  padding: 3px 10px;
  font-size: 11px;
}

.pagination.color-4 a:hover {
  color: var(--color-blue4) !important;
  border-color: var(--color-blue4);
}

.pagination.color-4 a.active {
  color: #fff;
  border-color: var(--color-blue4);
  background-color: var(--color-blue4);
}

/* --------------- Article content — links and images --------------- */
.blog-content-info a {
  color: var(--color-main);
}

.blog-content-info img {
  margin-bottom: 20px;
}

/* --------------- Breadcrumbs mobile padding --------------- */
@media (max-width: 767px) {
  .container.breadcrumbs {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}

/* --------------- No-articles placeholder --------------- */
.no-articles {
  text-align: center;
  padding: 60px 0;
  color: #999;
  font-size: 18px;
}

/* --------------- Blog filter bar --------------- */
.blog-filter-bar {
  margin-top: 10px;
}

.blog-filter-row {
  row-gap: 12px;
}

.blog-filter-chips {
  overflow-x: auto;
  scrollbar-width: none;
  max-width: 100%;
  padding: 2px 0;
}

.blog-filter-chips::-webkit-scrollbar {
  display: none;
}

.blog-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid #9993;
  font-size: 13px;
  color: #555;
  background: #fff;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.25s ease;
}

.blog-chip:hover {
  border-color: var(--color-blue4);
  color: var(--color-blue4);
}

.blog-chip.is-active {
  background: var(--color-blue4);
  border-color: var(--color-blue4);
  color: #fff;
}

.blog-filter-search {
  margin-left: auto;
}

.blog-search-input-wrap {
  border: 1px solid #9993;
  border-radius: 999px;
  padding: 4px 6px 4px 16px;
  background: #fff;
  transition: border-color 0.25s ease;
  min-width: 260px;
}

.blog-search-input-wrap:focus-within {
  border-color: var(--color-blue4);
}

.blog-search-input {
  border: 0;
  outline: none;
  background: transparent;
  font-size: 13px;
  color: #333;
  width: 100%;
  padding: 6px 0;
}

.blog-search-input::placeholder {
  color: #999;
}

.blog-search-submit {
  background: var(--color-blue4);
  color: #fff;
  border: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: opacity 0.25s ease;
}

.blog-search-submit:hover {
  opacity: 0.85;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 767px) {
  .blog-filter-search {
    width: 100%;
    margin-left: 0;
  }

  .blog-search-input-wrap {
    min-width: 0;
  }
}

/* --------------- Author box (article footer) --------------- */
.blog-author-box .author-card {
  background-color: #f8fafc;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.blog-author-box .author-card img {
  object-fit: cover;
}

.author-social-icon {
  background-color: #eef4f8;
  color: #555;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.author-social-icon:hover {
  background-color: var(--color-blue4);
  color: #fff;
}

/* --------------- TL;DR block --------------- */
.tldr-block {
  background-color: #f4f2fb;
  border-radius: 10px;
  padding: 16px 20px;
}

.tldr-block strong:first-child {
  color: var(--color-blue4);
}
