/* ═══════════════════════════════════════
   BLOG STYLES - AiBotick
   ═══════════════════════════════════════ */

/* Search Bar */
.blog-search {
  max-width: 480px;
  margin: 28px auto 24px;
  position: relative;
}
.blog-search input {
  width: 100%;
  padding: 14px 20px 14px 48px;
  border: 2px solid #E2E8F0;
  border-radius: 14px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  color: #0F172A;
  background: #fff;
  outline: none;
  transition: all .3s;
  box-sizing: border-box;
}
.blog-search input:focus {
  border-color: #7C3AED;
  box-shadow: 0 0 0 4px rgba(124,58,237,.1);
}
.blog-search input::placeholder { color: #94A3B8; }
.blog-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #94A3B8;
  pointer-events: none;
}

/* Category Filter Bar */
.blog-categories {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0;
}
.blog-cat-btn {
  padding: 10px 22px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  text-decoration: none;
  color: #475569;
  background: #F1F5F9;
  border: 1.5px solid #E2E8F0;
  transition: all .25s;
  white-space: nowrap;
  cursor: pointer;
}
.blog-cat-btn:hover {
  color: #7C3AED;
  background: #F5F3FF;
  border-color: #DDD6FE;
}
.blog-cat-btn.active {
  background: #7C3AED;
  color: #fff;
  border-color: #7C3AED;
}

/* Blog Card Grid - 4 columns */
.blog-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 24px !important;
}
.blog-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #E2E8F0;
  transition: all .35s cubic-bezier(.22,.68,0,1.1);
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(15,23,42,.1);
  border-color: #DDD6FE;
}
.blog-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

/* Card Image - show full image, no crop */
.blog-card-img {
  width: 100%;
  overflow: hidden;
  background: #F1F5F9;
  border-bottom: 1px solid #f0f0f0;
}
.blog-card-img .blog-thumb,
.blog-card-img img {
  width: 100% !important;
  height: auto !important;
  display: block;
  transition: transform .5s;
  object-fit: contain;
}
.blog-card:hover .blog-thumb,
.blog-card:hover .blog-card-img img {
  transform: scale(1.03);
}
.blog-thumb-placeholder {
  width: 100%;
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
}
.blog-card-cat {
  display: inline-block;
  color: #7C3AED;
  font-size: 11px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  padding: 3px 0;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 6px;
}

/* Card Body - show FULL title, no clamp */
.blog-card-body {
  padding: 16px;
}
.blog-card-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  color: #0F172A;
  margin-bottom: 10px;
  transition: color .3s;
  /* NO line clamp - show full title */
}
.blog-card:hover .blog-card-title {
  color: #7C3AED;
}
.blog-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #94A3B8;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
}
.blog-card-date {
  display: flex;
  align-items: center;
  gap: 4px;
}
.blog-card-read {
  color: #7C3AED;
  font-weight: 600;
}
.blog-card-excerpt { display: none; }

/* Pagination */
.blog-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}
.blog-pagination .page-numbers {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #475569;
  background: #F1F5F9;
  text-decoration: none;
  transition: all .3s;
}
.blog-pagination .page-numbers:hover {
  background: #F5F3FF;
  color: #7C3AED;
}
.blog-pagination .page-numbers.current {
  background: #7C3AED;
  color: #fff;
}

/* ═══════════════════════════════════════
   SINGLE POST - Image on top, title below
   ═══════════════════════════════════════ */

/* Hero image full width */
.blog-single-hero {
  margin-top: 70px;
  width: 100%;
  max-height: 480px;
  overflow: hidden;
  background: #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: center;
}
.blog-single-hero img {
  width: 100%;
  max-height: 480px;
  display: block;
  object-fit: contain;
}

/* Title section below image */
.blog-single-header {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 0 0;
}
.blog-single-cat {
  display: inline-flex;
  padding: 5px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #7C3AED;
  color: #fff;
  text-decoration: none;
  transition: .3s;
  margin-bottom: 12px;
}
.blog-single-cat:hover {
  background: #6D28D9;
}
.blog-single-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.25;
  color: #0F172A;
  margin: 0 0 16px;
}
.blog-single-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: #64748b;
  font-size: 13px;
  font-weight: 500;
}
.blog-single-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Blog Content */
.blog-content {
  font-size: 17px;
  line-height: 1.85;
  color: #1e293b;
  font-family: 'Inter', sans-serif;
}
.blog-content p { margin-bottom: 20px; }
.blog-content h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: #0F172A;
  margin: 40px 0 16px;
  line-height: 1.25;
}
.blog-content h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #0F172A;
  margin: 32px 0 12px;
}
.blog-content h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #0F172A;
  margin: 24px 0 10px;
}
.blog-content img {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 14px;
  margin: 24px 0;
  display: block;
  box-shadow: 0 8px 32px rgba(0,0,0,.06);
}
.blog-content ul, .blog-content ol {
  margin: 18px 0 18px 28px;
  color: #334155;
}
.blog-content li { margin-bottom: 10px; line-height: 1.7; }
.blog-content a {
  color: #7C3AED;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(124,58,237,.2);
  transition: .3s;
}
.blog-content a:hover {
  color: #5B21B6;
  border-bottom-color: #5B21B6;
}
.blog-content blockquote {
  border-left: 4px solid #7C3AED;
  padding: 20px 28px;
  margin: 28px 0;
  background: #F5F3FF;
  border-radius: 0 14px 14px 0;
  color: #475569;
  font-style: italic;
}
.blog-content pre {
  background: #1E1B4B;
  color: #E2E8F0;
  padding: 24px;
  border-radius: 14px;
  overflow-x: auto;
  margin: 24px 0;
  font-size: 14px;
}
.blog-content code {
  background: #EDE9FE;
  color: #7C3AED;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 14px;
}
.blog-content pre code { background: none; color: inherit; padding: 0; }

/* WP images */
.wp-block-image img,
figure.wp-block-image img {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 14px !important;
}

/* Tags */
.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid #E2E8F0;
}
.blog-tag {
  padding: 6px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #7C3AED;
  background: #F5F3FF;
  text-decoration: none;
  transition: .3s;
}
.blog-tag:hover { background: #7C3AED; color: #fff; }

/* Share */
.blog-share {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #E2E8F0;
}
.blog-share-btns { display: flex; gap: 8px; }
.blog-share-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .3s;
  text-decoration: none;
}
.blog-share-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,.15);
}

/* ═══════════════════════════════════════
   MOBILE - 2 columns, proper images
   ═══════════════════════════════════════ */
@media (max-width: 1200px) {
  .blog-grid { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 900px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 16px !important; }
  .blog-card-title { font-size: 14px; }
  .blog-card-body { padding: 12px; }
  .blog-single-header { margin: 0 auto; padding: 24px 16px 0; }
  .blog-single-title { font-size: 24px; }
  .blog-single-hero { max-height: 300px; }
  .blog-single-hero img { }
}
@media (max-width: 639px) {
  .blog-grid { grid-template-columns: 1fr !important; gap: 14px !important; }
  .blog-card { display: block; }
  .blog-card-link { display: block; }
  .blog-card-img { width: 100%; }
  .blog-card-img .blog-thumb,
  .blog-card-img img { width: 100% !important; height: auto !important; object-fit: cover; }
  .blog-thumb-placeholder { width: 100%; aspect-ratio: 16/10; }
  .blog-card-body { padding: 14px; }
  .blog-card { border-radius: 10px; }
  .blog-card-body { padding: 10px; }
  .blog-card-title { font-size: 13px; line-height: 1.35; }
  .blog-card-meta { font-size: 10px; }
  .blog-card-cat { font-size: 9px; padding: 3px 7px; top: 6px; left: 6px; }
  .blog-card-read { display: none; }
  .blog-categories { gap: 5px; }
  .blog-cat-btn { padding: 6px 12px; font-size: 11px; }
  .blog-search input { font-size: 14px; padding: 12px 16px 12px 40px; }
  .blog-content { font-size: 15px; }
  .blog-content h2 { font-size: 20px; }
  .blog-content h3 { font-size: 18px; }
  .blog-content img { border-radius: 10px; margin: 16px 0; }
  .blog-share { flex-direction: column; align-items: flex-start; }
  .blog-single-header { margin: 0 auto; padding: 20px 16px 0; }
  .blog-single-title { font-size: 20px; }
  .blog-single-meta { font-size: 12px; gap: 10px; }
  .blog-single-hero { margin-top: 60px; }
  .blog-single-hero img { }
}

/* Subcategory pills */
.blog-subcategories {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  justify-content: center;
  overflow-x: auto;
  padding: 4px 0;
}
.blog-subcat-btn {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  text-decoration: none;
  color: #7C3AED;
  background: #F5F3FF;
  border: 1px solid #EDE9FE;
  transition: all .25s;
  white-space: nowrap;
}
.blog-subcat-btn:hover {
  background: #EDE9FE;
  border-color: #DDD6FE;
}
.blog-subcat-btn.active {
  background: #6D28D9;
  color: #fff;
  border-color: #6D28D9;
}

/* Subcategory pills - smaller, outlined, different look */
.blog-subcat-pill {
  background: transparent !important;
  color: #7C3AED !important;
  border: 1.5px dashed #C4B5FD !important;
  border-radius: 20px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  padding: 6px 16px !important;
  letter-spacing: 0.2px !important;
}
.blog-subcat-pill:hover {
  background: #F5F3FF !important;
  border-color: #7C3AED !important;
  border-style: solid !important;
}
.blog-subcat-pill.active {
  background: #EDE9FE !important;
  color: #5B21B6 !important;
  border: 1.5px solid #7C3AED !important;
  font-weight: 700 !important;
}
