/* ================= THEME ================= */
:root {
  --bg-sky: #eaf6ff;
  --bg-cloud: #f8fbff;
  --bg-card: #ffffff;

  --accent: #38bdf8;     /* Sky blue */
  --accent-2: #2563eb;   /* Deep blue */
  --accent-soft: #bae6fd;

  --text-main: #0f172a;
  --text-muted: #475569;
}

/* ================= WRAPPER ================= */
.blogs-wrapper {
  background: linear-gradient(
    180deg,
    #dbeafe 0%,
    var(--bg-sky) 50%,
    #f0f9ff 100%
  );
  padding: 100px 6% 140px;
  color: var(--text-main);
}

/* ================= HERO ================= */
.blogs-hero {
  max-width: 900px;
  margin: 0 auto 80px;
  text-align: center;
}

.blogs-badge {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-2);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 18px;
}

.blogs-hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--accent-2);
}

.blogs-hero p {
  margin-top: 14px;
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* ================= BLOG GRID ================= */
.blogs-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
}

/* ================= BLOG CARD ================= */
.blog-item {
  background: var(--bg-card);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(37, 99, 235, 0.15);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.blog-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 90px rgba(37, 99, 235, 0.25);
}

/* ================= IMAGE ================= */
.blog-media {
  height: 230px;
  overflow: hidden;
  background: #e0f2fe;
}

.blog-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.blog-item:hover .blog-media img {
  transform: scale(1.08);
}

/* ================= CONTENT ================= */
.blog-body {
  padding: 28px;
}

.blog-body h2 {
  font-size: 1.45rem;
  margin-bottom: 6px;
  color: var(--text-main);
}

.blog-body h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 14px;
}

.blog-excerpt {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ================= BUTTON ================= */
.blog-link {
  display: inline-block;
  margin-top: 22px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #fff;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  padding: 12px 28px;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.blog-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(56, 189, 248, 0.45);
}

/* ================= EMPTY STATE ================= */
.blogs-empty {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.empty-illustration {
  font-size: 4.8rem;
  margin-bottom: 20px;
  animation: float 2.5s ease-in-out infinite;
}

.blogs-empty h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: var(--accent-2);
}

.blogs-empty p {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* ================= FLOAT ANIMATION ================= */
@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
  100% { transform: translateY(0); }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
  .blogs-hero h1 { font-size: 2.7rem; }
}

@media (max-width: 768px) {
  .blogs-wrapper { padding: 80px 5% 110px; }
  .blog-media { height: 200px; }
}

@media (max-width: 480px) {
  .blogs-hero h1 { font-size: 2.2rem; }
  .blog-body { padding: 22px; }
}
