/* ===== BLOG PAGE — page-specific styles ===== */

/* Compact hero */
.page-hero { padding: 180px 0 60px; position: relative; overflow: hidden; text-align: center; display: flex; align-items: center; justify-content: center; }
.page-hero-inner { position: relative; z-index: 2; max-width: 800px; margin: 0 auto; text-align: center; }
.page-hero h1 { font-family: 'Outfit', sans-serif; font-weight: 200; font-size: 56px; line-height: 1.1; letter-spacing: -1px; margin-bottom: 24px; }
.page-hero h1 strong { font-weight: 600; background: linear-gradient(135deg, var(--teal), var(--lime)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.page-hero p { font-size: 17px; color: var(--gray-mid); line-height: 1.7; max-width: 700px; margin: 0 auto; }
/* Bilateral hero-tag lines */
.hero-tag::before,
.hero-tag::after { content: ''; width: 30px; height: 1px; background: linear-gradient(90deg, var(--teal), var(--lime)); }
.hero-tag::after { background: linear-gradient(270deg, var(--teal), var(--lime)); }

/* Grid-peek variants */
.peek-hero { width: 100%; height: 100%; top: 0; left: 0; mask-image: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(0,0,0,0.8) 0%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(0,0,0,0.8) 0%, transparent 70%); }
.peek-blog { width: 1200px; height: 900px; top: 30%; right: -300px; mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(0,0,0,0.4) 0%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(0,0,0,0.4) 0%, transparent 75%); }

/* Filter bar */
.blog-filters-wrap { border-bottom: 1px solid var(--glass-border); padding-bottom: 32px; margin-bottom: 60px; position: relative; z-index: 2; }
.blog-filters { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.filter-btn { background: transparent; border: 1px solid var(--glass-border); color: var(--gray-light); padding: 10px 24px; border-radius: 50px; font-family: 'Gabarito', sans-serif; font-size: 13px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; cursor: pointer; transition: all 0.3s; }
.filter-btn:hover { border-color: rgba(2,203,209,0.5); color: var(--white); }
.filter-btn.active { background: rgba(2,203,209,0.1); border-color: var(--teal); color: var(--teal); }

/* Blog grid */
.blog-section { padding-bottom: 100px; position: relative; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 32px; position: relative; z-index: 2; }
.blog-card { background: rgba(10,10,10,0.6); border: 1px solid var(--glass-border); border-radius: 12px; overflow: hidden; backdrop-filter: blur(10px); transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); display: flex; flex-direction: column; text-decoration: none; }
.blog-card:hover { transform: translateY(-8px); border-color: rgba(2,203,209,0.3); box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 20px rgba(2,203,209,0.05); }
.blog-card-img { width: 100%; height: 220px; background: var(--dark-subtle); position: relative; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); opacity: 0.55; color: transparent; font-size: 0; }
.blog-card:hover .blog-card-img img { transform: scale(1.05); opacity: 0.85; }
.blog-card-img::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at top right, rgba(2,203,209,0.25), transparent 60%), radial-gradient(circle at bottom left, rgba(121,211,18,0.15), transparent 60%), linear-gradient(to top, rgba(10,10,10,0.9), transparent 60%); z-index: 2; pointer-events: none; }
.blog-card-content { padding: 32px; display: flex; flex-direction: column; flex-grow: 1; }
.blog-category { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--teal); font-weight: 600; margin-bottom: 12px; display: block; }
.blog-title { font-family: 'Outfit', sans-serif; font-size: 22px; font-weight: 500; color: var(--white); line-height: 1.3; margin-bottom: 16px; transition: color 0.3s; }
.blog-card:hover .blog-title { color: var(--teal); }
.blog-excerpt { color: var(--gray-mid); font-size: 14px; line-height: 1.6; margin-bottom: 24px; flex-grow: 1; }
.blog-link { font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--lime); display: inline-flex; align-items: center; gap: 8px; transition: gap 0.3s; margin-top: auto; }
.blog-card:hover .blog-link { gap: 12px; }

/* Developer handoff: single-post components */
.components-section { padding: 80px 0 100px; border-top: 1px solid var(--glass-border); position: relative; background: radial-gradient(ellipse 800px 400px at 50% 0%, rgba(255,255,255,0.02) 0%, transparent 100%); }
.components-header { text-align: center; margin-bottom: 60px; }
.components-header h3 { font-family: 'Outfit', sans-serif; font-size: 28px; font-weight: 200; color: var(--gray-light); margin-bottom: 12px; }
.components-header p { color: var(--gray-dim); font-size: 14px; text-transform: uppercase; letter-spacing: 2px; }

/* Author bio component */
.author-bio-wrap { max-width: 800px; margin: 0 auto 60px; background: rgba(255,255,255,0.02); border: 1px solid var(--glass-border); border-radius: 12px; padding: 40px; display: flex; gap: 32px; align-items: flex-start; backdrop-filter: blur(10px); }
.author-avatar { width: 90px; height: 90px; border-radius: 50%; background: var(--dark-subtle); border: 1px solid var(--teal); flex-shrink: 0; padding: 4px; display: flex; align-items: center; justify-content: center; }
.author-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.author-info h4 { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--gray-dim); margin-bottom: 8px; }
.author-info h5 { font-family: 'Outfit', sans-serif; font-size: 22px; font-weight: 500; color: var(--white); margin-bottom: 12px; }
.author-info p { color: var(--gray-mid); font-size: 15px; line-height: 1.6; margin-bottom: 16px; }
.author-link { font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--teal); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: gap 0.3s; }
.author-link:hover { gap: 12px; }

/* Inline post footer CTA component */
.post-footer-cta { max-width: 800px; margin: 0 auto; background: rgba(10,10,10,0.8); border: 1px solid rgba(2,203,209,0.2); border-radius: 12px; padding: 48px; position: relative; overflow: hidden; text-align: left; display: flex; flex-direction: column; align-items: flex-start; box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.post-footer-cta::before { content: ''; position: absolute; top: 0; left: 0; bottom: 0; width: 4px; background: linear-gradient(to bottom, var(--teal), var(--lime)); }
.post-footer-cta h3 { font-family: 'Outfit', sans-serif; font-weight: 400; font-size: 28px; line-height: 1.2; margin-bottom: 16px; color: var(--white); }
.post-footer-cta h3 strong { font-weight: 600; color: var(--teal); }
.post-footer-cta p { color: var(--gray-mid); font-size: 15px; margin-bottom: 32px; max-width: 600px; line-height: 1.6; }
.post-footer-cta .cta-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.post-footer-cta .cta-phone { color: var(--white); font-size: 16px; font-family: 'Outfit', sans-serif; font-weight: 500; text-decoration: none; transition: color 0.3s; display: flex; align-items: center; gap: 8px; letter-spacing: 0.5px; }
.post-footer-cta .cta-phone:hover { color: var(--lime); }
.post-footer-cta .cta-phone svg { color: var(--lime); width: 18px; height: 18px; }

@media (max-width: 900px) {
  .page-hero h1 { font-size: 42px; }
  .author-bio-wrap { flex-direction: column; align-items: center; text-align: center; }
  .post-footer-cta .cta-actions { flex-direction: column; align-items: flex-start; }
  .post-footer-cta { padding: 32px 24px; }
}
@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; }
}
