/* ============================================================
   BLOG.CSS — Blog index (home.php)
   ============================================================ */

/* ── Hero ── */
.rl-blog-hero {
  position: relative;
  min-height: 40vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
  overflow: hidden;
  padding: 0 0 5rem;
  text-align: center;
}
.rl-blog-hero .rl-glow {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 700px;
  background: rgba(96,165,250,0.15);
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}
.rl-hero-inner { position: relative; z-index: 1; max-width: 48rem; margin: 0 auto; }
.rl-eyebrow {
  display: block;
  color: #60a5fa;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
  text-decoration: none;
}
.rl-hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
}
.rl-hero-sub {
  font-size: 1.125rem;
  color: #d1d5db;
  max-width: 36rem;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── Blog section ── */
.rl-blog-section {
  background: #f5f5f0;
  padding: 5rem 1.5rem 6rem;
}
@media (min-width: 768px)  { .rl-blog-section { padding: 5rem 3rem 6rem; } }
@media (min-width: 1024px) { .rl-blog-section { padding: 5rem 6rem 6rem; } }

/* ── Grid ── */
.rl-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 72rem;
  margin: 0 auto 3rem;
}
@media (max-width: 640px) { .rl-blog-grid { grid-template-columns: 1fr; } }

/* ── Card ── */
.rl-card {
  background: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 3px solid #60a5fa;
}
.rl-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.13);
  border-top-color: #2563eb;
}
.rl-card-body {
  padding: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #ffffff;
}
.rl-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}
.rl-cat-label {
  color: #60a5fa;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  text-decoration: none;
}
.rl-cat-label:hover { color: #2563eb; }
.rl-meta-date { color: #9ca3af; font-size: 0.8rem; }
.rl-card-title {
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.35;
  color: #111827;
  margin: 0 0 0.75rem;
}
.rl-card-title a { color: #111827; text-decoration: none; transition: color 0.2s ease; }
.rl-card-title a:hover { color: #2563eb; }
.rl-card-excerpt,
.rl-card-excerpt p { color: #4b5563; font-size: 0.9375rem; line-height: 1.7; margin: 0 0 1.25rem; flex: 1; }
.rl-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: #2563eb;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  margin-top: auto;
  transition: color 0.2s ease, gap 0.2s ease;
}
.rl-read-more:hover { color: #1d4ed8; gap: 0.5rem; }

/* ── Pagination ── */
.rl-pagination { display: flex; justify-content: center; padding-top: 1rem; }
.rl-pagination .nav-links { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; }
.rl-pagination .page-numbers {
  display: inline-flex; align-items: center;
  padding: 0.5rem 0.875rem;
  background: #ffffff; border: 1px solid #e5e7eb;
  border-radius: 0.375rem; color: #4b5563;
  font-size: 0.875rem; font-weight: 500;
  text-decoration: none; transition: all 0.2s ease;
}
.rl-pagination .page-numbers.current,
.rl-pagination .page-numbers:hover { background: #2563eb; border-color: #2563eb; color: #fff; }
/* ── Work With Me ── */
.rl-work-section {
  background: #f5f5f0;
  padding: 5rem 1.5rem 6rem;
  border-top: 1px solid #e5e7eb;
}
.rl-work-inner { max-width: 72rem; margin: 0 auto; }
.rl-work-header { text-align: center; margin-bottom: 3rem; }
.rl-work-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: #111827 !important;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}
.rl-work-sub { font-size: 1.0625rem; color: #6b7280 !important; margin: 0; }
.rl-work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}
@media (max-width: 640px) { .rl-work-grid { grid-template-columns: 1fr; } }
.rl-work-card,
.rl-work-card:visited,
.rl-work-card:hover {
  background: #ffffff !important;
  border-radius: 1rem;
  padding: 1.75rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  border: 1px solid #f3f4f6 !important;
  display: flex;
  flex-direction: column;
  text-decoration: none !important;
  color: inherit !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.rl-work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.12);
  border-color: #1e3a5f !important;
}
.rl-work-icon {
  width: 48px; height: 48px;
  border-radius: 0.75rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.rl-icon-blue   { background: #eff6ff !important; color: #2563eb !important; }
.rl-icon-red    { background: #fef2f2 !important; color: #dc2626 !important; }
.rl-icon-amber  { background: #fffbeb !important; color: #d97706 !important; }
.rl-icon-purple { background: #faf5ff !important; color: #9333ea !important; }
.rl-work-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827 !important;
  margin: 0 0 0.5rem;
}
.rl-work-card-desc {
  font-size: 0.9375rem;
  color: #4b5563 !important;
  line-height: 1.65;
  margin: 0;
  flex: 1;
}
.rl-work-link {
  display: inline-block;
  margin-top: 1.25rem;
  color: #1e3a5f !important;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none !important;
}