/**
 * Websirg - Engineering Blog & Insights Stylesheet
 * High-Tech Dark Hero, Filter Pills, Modern Bento Article Cards, Responsive Typography
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --ws-primary: #f97316;
  --ws-primary-hover: #ea580c;
  --ws-dark: #070b14;
  --ws-dark-surface: #0f172a;
  --ws-dark-border: rgba(255, 255, 255, 0.08);
  --ws-light-bg: #f8fafc;
  --ws-card-border: #e2e8f0;
  --ws-text-main: #0f172a;
  --ws-text-muted: #64748b;
  --ws-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body.ws-blog-page {
  font-family: var(--ws-font) !important;
  color: var(--ws-text-main);
  background: var(--ws-light-bg);
  overflow-x: hidden;
}


.ws-blog-hero {
  position: relative;
  background: var(--ws-dark);
  color: #ffffff;
  padding: 130px 0 50px;
  overflow: hidden;
  border-bottom: 1px solid var(--ws-dark-border);
}

.ws-blog-glow-1 {
  position: absolute;
  top: -120px;
  right: 15%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.18) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.ws-blog-glow-2 {
  position: absolute;
  bottom: -100px;
  left: 10%;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.14) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.ws-blog-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
}

.ws-blog-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.ws-blog-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.3);
  color: #fdba74;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.ws-blog-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ws-primary);
  box-shadow: 0 0 10px var(--ws-primary);
  display: inline-block;
  animation: wsDotPopUp 1.8s infinite ease-in-out;
  will-change: transform, box-shadow, opacity;
}

@keyframes wsDotPopUp {
  0% {
    transform: scale(0.75);
    opacity: 0.55;
    box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.7);
  }

  50% {
    transform: scale(1.35);
    opacity: 1;
    box-shadow: 0 0 10px 3px rgba(249, 115, 22, 0.5);
  }

  100% {
    transform: scale(0.75);
    opacity: 0.55;
    box-shadow: 0 0 0 0 rgba(249, 115, 22, 0);
  }
}

.ws-blog-title {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 14px;
}

.ws-blog-desc {
  font-size: 16px;
  line-height: 1.6;
  color: #94a3b8;
  margin-bottom: 22px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.ws-blog-main-section {
  padding: 50px 0 70px;
  background: var(--ws-light-bg);
}

.ws-article-card {
  background: #ffffff;
  border: 1px solid var(--ws-card-border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.04);
  height: 100%;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.ws-article-card:hover {
  transform: translateY(-5px);
  border-color: #cbd5e1;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.09);
}

.ws-article-thumb-wrap {
  position: relative;
  height: 200px;
  background: #0f172a;
  overflow: hidden;
}

.ws-article-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.ws-article-card:hover .ws-article-thumb {
  transform: scale(1.05);
}

.ws-article-category-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 12px;
  border-radius: 8px;
  background: rgba(7, 11, 20, 0.85);
  backdrop-filter: blur(8px);
  color: #fb923c;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  border: 1px solid rgba(251, 146, 60, 0.3);
}

.ws-article-body {
  padding: 24px 24px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.ws-article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 10px;
}

.ws-article-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--ws-text-main);
  line-height: 1.35;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.ws-article-title a {
  color: var(--ws-text-main);
  text-decoration: none !important;
  transition: color 0.2s ease;
}

.ws-article-title a:hover {
  color: var(--ws-primary);
}

.ws-article-summary {
  font-size: 13.5px;
  line-height: 1.6;
  color: #64748b;
  margin-bottom: 18px;
  flex-grow: 1;
}

.ws-article-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}

.ws-article-author {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
}

.ws-author-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff7ed;
  color: var(--ws-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  border: 1px solid rgba(249, 115, 22, 0.3);
}

.ws-read-more-btn {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ws-primary);
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: transform 0.2s ease;
}

.ws-read-more-btn:hover {
  color: var(--ws-primary-hover);
  transform: translateX(3px);
}

/* Category Filter Bar */
.ws-blog-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}

.ws-filter-chip {
  padding: 8px 18px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.ws-filter-chip:hover,
.ws-filter-chip.active {
  background: #fff7ed;
  border-color: #f97316;
  color: #ea580c;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.12);
}

@media (max-width: 767px) {
  .ws-blog-hero {
    padding: 110px 0 40px;
  }

  .ws-blog-title {
    font-size: 30px;
  }
}