:root {
  --bg-page: #fff8f9;
  --heading: #0f172a;
  --text-main: #1f2937;
  --text-muted: #4b5563;

  --glass-bg: rgba(255,255,255,0.85);
  --glass-border: rgba(255,182,187,0.45);

  --shadow:
    0 28px 80px rgba(31,41,55,0.14),
    0 12px 28px rgba(31,41,55,0.08);

  --radius: 22px;
}

* { margin:0; padding:0; box-sizing:border-box; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-page);
  color: var(--text-main);
  line-height: 1.7;
}

/* PAGE */
.blog-page {
  max-width: 1200px;
  padding: 160px 96px 180px;
  margin: auto;
}

/* HERO */
.blog-hero {
  max-width: 720px;
  margin-bottom: 80px;
}

.blog-hero h1 {
  font-size: clamp(44px,5vw,64px);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.blog-hero p {
  font-size: 18px;
  color: var(--text-muted);
}

/* GLASS BASE */
.glass-card,
.glass-surface {
  background: var(--glass-bg);
  backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* CONTROLS */
.blog-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 26px;
  margin-bottom: 80px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.95);
  padding: 12px 16px;
  border-radius: 999px;
  width: 100%;
  max-width: 320px;
}

.search-box input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 15px;
  width: 100%;
}

.blog-controls select {
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.1);
  background: rgba(255,255,255,0.95);
  font-size: 14px;
}

/* GRID */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 36px;
}

/* CARD */
.blog-card {
  padding: 36px;
  transition: transform .4s ease, box-shadow .4s ease;
}

.blog-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.blog-card p {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.blog-meta a {
  text-decoration: none;
  color: #cf333e;
  font-weight: 500;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 40px 100px rgba(31,41,55,0.18),
    0 18px 40px rgba(31,41,55,0.12);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .blog-page { padding: 120px 48px 160px; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .blog-page { padding: 100px 22px 140px; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-controls { flex-direction: column; align-items: stretch; }
}
.blog-card {
  animation: fadeUp 0.4s ease;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.blog-loader {
  display: none;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 30px 0;
  color: #777;
  font-size: 14px;
}

.blog-loader i {
  font-size: 18px;
}
/* Skeleton container */
.skeleton-container {
  display: none;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 20px;
}

/* Skeleton card */
.skeleton-card {
  height: 220px;
  border-radius: 16px;
  background: linear-gradient(
    90deg,
    #e5e7eb 25%,
    #f3f4f6 37%,
    #e5e7eb 63%
  );
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
}

/* Shimmer animation */
@keyframes shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

/* Match grid layout */
.blog-grid,
.skeleton-container {
  display: grid;
}
@media (prefers-reduced-motion: reduce) {
  .skeleton-card {
    animation: none;
  }
}
#scrollSentinel {
  height: 1px;
}
