:root {
  --bg: #050608;
  --panel: #0b1018;
  --panel-2: #0a0e14;
  --line: #1a2638;
  --text: #e8eef8;
  --muted: #9eb0c8;
  --blue: #0f86ff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Sora", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 16% -8%, rgba(22, 94, 255, 0.19), transparent 40%),
    radial-gradient(circle at 84% 8%, rgba(15, 123, 255, 0.13), transparent 30%),
    var(--bg);
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh;
}

.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.3;
  background:
    repeating-linear-gradient(to right, transparent 0, transparent 62px, rgba(255, 255, 255, 0.02) 63px, transparent 64px),
    repeating-linear-gradient(to bottom, transparent 0, transparent 62px, rgba(255, 255, 255, 0.018) 63px, transparent 64px);
}

.blogs-wrap {
  width: min(1800px, calc(100% - 2rem));
  margin: 0 auto 1.8rem;
  padding-left: max(1rem, env(safe-area-inset-left));
  padding-right: max(1rem, env(safe-area-inset-right));
  display: grid;
  gap: 1rem;
}

.blogs-hero {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(1.2rem, 3.2vw, 2.2rem);
  background:
    radial-gradient(circle at 50% 95%, rgba(15, 123, 255, 0.2), transparent 44%),
    repeating-linear-gradient(
      to right,
      transparent 0,
      transparent 62px,
      rgba(255, 255, 255, 0.02) 63px,
      transparent 64px
    ),
    linear-gradient(160deg, rgba(16, 22, 31, 0.95), rgba(7, 10, 15, 0.98));
}

.blogs-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 4.3rem);
  line-height: 1.06;
  background: linear-gradient(92deg, #f8fbff, #d9e8ff 36%, #8dc4ff 70%, #f8fbff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.blogs-hero p {
  margin: 0.7rem 0 0;
  max-width: 900px;
  color: var(--muted);
  font-size: clamp(0.96rem, 1.4vw, 1.1rem);
  line-height: 1.7;
}

.blogs-hero-image {
  margin-top: 0.9rem;
  border: 1px solid rgba(65, 146, 255, 0.34);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(9, 14, 21, 0.86);
}

.blogs-hero-image img {
  width: 100%;
  height: clamp(200px, 28vw, 360px);
  object-fit: cover;
  object-position: center;
  display: block;
}

.blogs-meta {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.blogs-meta span {
  border: 1px solid rgba(64, 146, 255, 0.4);
  border-radius: 999px;
  padding: 0.46rem 0.78rem;
  color: #9fd1ff;
  background: rgba(15, 123, 255, 0.1);
  font-size: 0.87rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.95rem;
}

.blog-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  min-height: 300px;
  padding: 1rem;
  display: grid;
  gap: 0.8rem;
  align-content: start;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    radial-gradient(circle at 80% -20%, rgba(15, 123, 255, 0.14), transparent 45%),
    var(--panel-2);
  transition: transform 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
}

.blog-card::before {
  content: "";
  position: absolute;
  inset: -30% auto auto -30%;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(14, 136, 255, 0.18), transparent 68%);
  opacity: 0;
  transition: opacity 260ms ease;
  pointer-events: none;
}

.blog-card:hover {
  transform: translateY(-6px);
  border-color: rgba(71, 155, 255, 0.56);
  box-shadow: 0 20px 34px rgba(5, 14, 28, 0.56);
}

.blog-card:hover::before {
  opacity: 1;
}

.blog-badge {
  width: fit-content;
  border: 1px solid rgba(171, 98, 255, 0.35);
  box-shadow:
    inset 0 0 0 1px rgba(16, 127, 255, 0.2),
    0 9px 20px rgba(11, 19, 33, 0.45);
  border-radius: 999px;
  padding: 0.42rem 0.7rem;
  color: #98ccff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.blog-card h3 {
  margin: 0;
  font-size: clamp(1.12rem, 1.8vw, 1.42rem);
  line-height: 1.35;
  color: var(--text);
}

.blog-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.97rem;
}

.blog-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  color: #d4e6ff;
  font-weight: 600;
  font-size: 0.9rem;
}

.blog-card-footer span {
  color: #eaf3ff;
  border: 1px solid rgba(26, 137, 255, 0.62);
  background: linear-gradient(140deg, rgba(16, 54, 108, 0.9), rgba(10, 24, 46, 0.96));
  box-shadow:
    inset 0 0 0 1px rgba(120, 182, 255, 0.16),
    0 8px 18px rgba(8, 29, 63, 0.36);
  border-radius: 999px;
  min-height: 34px;
  padding: 0.35rem 0.72rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.blog-card-footer span::after {
  content: "→";
  font-size: 0.9rem;
  line-height: 1;
}

.blog-card:hover .blog-card-footer span {
  transform: translateY(-1px);
  border-color: rgba(85, 174, 255, 0.9);
  box-shadow:
    inset 0 0 0 1px rgba(133, 194, 255, 0.25),
    0 10px 22px rgba(9, 39, 82, 0.45);
}

.blog-empty {
  border: 1px dashed rgba(91, 167, 255, 0.38);
  border-radius: 18px;
  padding: 1rem;
  color: #b7cae3;
  background: rgba(9, 16, 27, 0.75);
  line-height: 1.7;
}

.blog-empty strong {
  color: #ebf3ff;
}

@media (max-width: 1250px) {
  .blog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .blogs-wrap {
    width: min(1800px, calc(100% - 1rem));
    padding-left: max(0.5rem, env(safe-area-inset-left));
    padding-right: max(0.5rem, env(safe-area-inset-right));
  }

  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .blogs-wrap {
    width: min(1800px, calc(100% - 0.5rem));
    padding-left: max(0.25rem, env(safe-area-inset-left));
    padding-right: max(0.25rem, env(safe-area-inset-right));
    gap: 0.72rem;
  }

  .blogs-hero {
    border-radius: 16px;
    padding: 0.95rem;
  }

  .blogs-hero h1 {
    font-size: clamp(1.5rem, 9vw, 2.2rem);
  }

  .blogs-hero p {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.55;
  }

  .blogs-meta {
    margin-top: 0.74rem;
    gap: 0.4rem;
  }

  .blogs-meta span {
    font-size: 0.78rem;
    padding: 0.34rem 0.6rem;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 0.72rem;
  }

  .blog-card {
    border-radius: 15px;
    min-height: 255px;
    padding: 0.85rem;
  }

  .blog-card h3 {
    font-size: 1.05rem;
  }

  .blog-card p {
    font-size: 0.88rem;
  }

  .blog-empty {
    border-radius: 15px;
    padding: 0.82rem;
    font-size: 0.9rem;
  }
}
