/* =========================================
   BLOG PAGE
========================================= */

body {
  background: #020202;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

/* =========================================
   BACKGROUND
========================================= */

.blog-bg-overlay {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(0,0,0,0.55),
      rgba(0,0,0,0.9)
    ),
    url("../assets/about-background.png");
  background-size: cover;
  background-position: center;
  opacity: 0.5;
  z-index: -2;
}

.blog-bg-overlay::after {
  content: "";

  position: absolute;
  inset: 0;

  background:
    radial-gradient(
      circle at top right,
      rgba(155, 208, 255, 0.12),
      transparent 30%
    ),
    radial-gradient(
      circle at bottom left,
      rgba(255, 218, 180, 0.08),
      transparent 25%
    );
}

/* =========================================
   HERO
========================================= */

.blog-hero {
  min-height: 55vh;

  display: flex;
  align-items: center;
  justify-content: center;

  text-align: center;

  padding:
    160px 24px
    80px;
}

.blog-hero-content {
  max-width: 760px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 12px 18px;

  border-radius: 999px;

  border: 1px solid rgba(255,255,255,0.08);

  background:
    rgba(255,255,255,0.03);

  color: #cfcfcf;

  font-size: 0.95rem;

  margin-bottom: 28px;

  backdrop-filter: blur(20px);
}

.blog-hero h1 {
  font-size: clamp(3rem, 7vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: -0.06em;

  margin-bottom: 28px;

  font-weight: 700;
}

.blog-hero p {
  font-size: 1.1rem;
  line-height: 1.8;

  color: rgba(255,255,255,0.7);

  max-width: 680px;
  margin: 0 auto;
}

/* =========================================
   POSTS SECTION
========================================= */

.posts-section {
  width: 100%;
  padding:
    40px 7vw
    120px;
}

.posts-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;

  gap: 40px;

  margin-bottom: 60px;

  flex-wrap: wrap;
}

.section-mini-title {
  display: inline-block;

  margin-bottom: 18px;

  color: #9bd0ff;

  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.posts-header h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.posts-filter {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-btn {
  border: 1px solid rgba(255,255,255,0.08);

  background: rgba(255,255,255,0.03);

  color: rgba(255,255,255,0.75);

  padding: 12px 20px;

  border-radius: 999px;

  cursor: pointer;

  transition: 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background:
    linear-gradient(
      135deg,
      #ffe5c2,
      #9bd0ff
    );

  color: #050505;
}

/* =========================================
   POSTS GRID
========================================= */

.posts-grid {
  display: grid;

  grid-template-columns:
    repeat(auto-fit, minmax(320px, 1fr));

  gap: 28px;
}

.blog-card {
  position: relative;

  border-radius: 28px;

  overflow: hidden;

  border: 1px solid rgba(255,255,255,0.06);

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,0.05),
      rgba(255,255,255,0.02)
    );

  backdrop-filter: blur(24px);

  transition:
    transform 0.4s ease,
    border 0.4s ease;
}

.blog-card:hover {
  transform: translateY(-8px);

  border-color:
    rgba(155,208,255,0.3);
}

.blog-card-image {
  width: 100%;
  height: 240px;

  object-fit: cover;
}

.blog-card-content {
  padding: 28px;
}

.blog-card-category {
  display: inline-flex;

  padding: 8px 14px;

  border-radius: 999px;

  margin-bottom: 18px;

  background:
    rgba(155,208,255,0.12);

  color: #9bd0ff;

  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.blog-card h3 {
  font-size: 1.6rem;
  line-height: 1.2;

  margin-bottom: 18px;
}

.blog-card p {
  color: rgba(255,255,255,0.68);

  line-height: 1.7;

  margin-bottom: 28px;
}

.blog-read-more {
  color: #ffffff;
  text-decoration: none;

  font-weight: 600;

  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* =========================================
   LOADER
========================================= */

.posts-loader {
  margin-top: 60px;

  display: flex;
  flex-direction: column;
  align-items: center;

  gap: 18px;

  color: rgba(255,255,255,0.6);
}

.loader-line {
  width: 240px;
  height: 2px;

  border-radius: 999px;

  background:
    linear-gradient(
      90deg,
      transparent,
      #9bd0ff,
      #ffe5c2,
      transparent
    );

  background-size: 200%;

  animation: loaderMove 2s linear infinite;
}

@keyframes loaderMove {
  0% {
    background-position: 200%;
  }

  100% {
    background-position: -200%;
  }
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 768px) {

  .blog-hero {
    min-height: auto;

    padding:
      140px 20px
      80px;
  }

  .posts-section {
    padding:
      20px 20px
      100px;
  }

  .blog-cta-section {
    padding:
      0 20px
      100px;
  }

  .blog-cta-card {
    padding:
      60px 24px;
  }

  .posts-header {
    align-items: flex-start;
  }

}
