/* ========================================
   Insights Module Styles — Runlink AI HR
   ======================================== */

/* ---- Reset & Base ---- */
.insights-page { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; color: #1a1a1a; line-height: 1.6; background: #fff; }
.insights-page * { box-sizing: border-box; }
.insights-page a { text-decoration: none; color: inherit; }

/* ---- Hero Section ---- */
.insights-hero { background: #003366; width: 100%; padding: 100px 20px 80px; text-align: center; }
.insights-hero-title { color: #fff; font-size: 48px; font-weight: 700; margin: 0 0 16px; letter-spacing: -0.5px; }
.insights-hero-subtitle { color: rgba(255,255,255,0.85); font-size: 18px; font-weight: 400; margin: 0; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ---- Category Filter ---- */
.insights-filter { background: #f8f9fa; padding: 24px 20px; border-bottom: 1px solid #e5e7eb; text-align: center; }
.insights-filter-list { display: inline-flex; flex-wrap: wrap; gap: 10px; justify-content: center; list-style: none; margin: 0; padding: 0; }
.insights-filter-pill { display: inline-block; padding: 8px 20px; border-radius: 24px; font-size: 14px; font-weight: 500; color: #6b7280; background: #fff; border: 1px solid #e5e7eb; cursor: pointer; transition: all 0.2s; }
.insights-filter-pill:hover { color: #003366; border-color: #003366; }
.insights-filter-pill.active { background: #FF6B35; color: #fff; border-color: #FF6B35; }

/* ---- Article Grid ---- */
.insights-grid { max-width: 1200px; margin: 0 auto; padding: 48px 20px; }
.insights-grid-inner { display: grid; gap: 32px; }

/* Featured article */
.insights-featured { display: grid; grid-template-columns: 60% 40%; gap: 0; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.06); border: 1px solid #e5e7eb; }
.insights-featured-image { width: 100%; height: 100%; min-height: 320px; object-fit: cover; display: block; background: #f0f4f8; }
.insights-featured-body { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.insights-category-tag { display: inline-block; padding: 4px 12px; border-radius: 4px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px; }
.insights-category-hiring-risks { background: #fff0eb; color: #FF6B35; }
.insights-category-local-guide { background: #e6f0ff; color: #003366; }
.insights-category-ai-technology { background: #f0fdf4; color: #16a34a; }
.insights-category-industry { background: #fef3c7; color: #d97706; }
.insights-category-video { background: #f3e8ff; color: #9333ea; }
.insights-featured-title { font-size: 28px; font-weight: 700; color: #1a1a1a; margin: 0 0 12px; line-height: 1.3; }
.insights-featured-excerpt { font-size: 15px; color: #6b7280; margin: 0 0 20px; line-height: 1.7; }
.insights-read-more { display: inline-flex; align-items: center; gap: 6px; color: #003366; font-weight: 600; font-size: 14px; transition: color 0.2s; }
.insights-read-more:hover { color: #FF6B35; }
.insights-read-more svg { width: 16px; height: 16px; }

/* Card grid */
.insights-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.insights-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.05); border: 1px solid #e5e7eb; transition: transform 0.2s, box-shadow 0.2s; }
.insights-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.insights-card-image { width: 100%; height: 180px; object-fit: cover; display: block; background: #f0f4f8; }
.insights-card-body { padding: 20px; }
.insights-card-title { font-size: 17px; font-weight: 600; color: #1a1a1a; margin: 0 0 8px; line-height: 1.4; }
.insights-card-excerpt { font-size: 14px; color: #6b7280; margin: 0 0 16px; line-height: 1.6; }
.insights-card-meta { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: #9ca3af; }

/* ---- Single Article ---- */
.insights-article-page { background: #fff; }
.insights-article-header { background: #003366; padding: 80px 20px 60px; text-align: center; }
.insights-article-header-inner { max-width: 720px; margin: 0 auto; }
.insights-article-category { display: inline-block; padding: 4px 12px; border-radius: 4px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 16px; }
.insights-article-title { color: #fff; font-size: 36px; font-weight: 700; margin: 0 0 12px; line-height: 1.25; }
.insights-article-meta { color: rgba(255,255,255,0.7); font-size: 14px; }

.insights-article-body { max-width: 720px; margin: 0 auto; padding: 48px 20px; }
.insights-article-body p { font-size: 17px; line-height: 1.85; color: #333333; margin: 0 0 24px; }
.insights-article-body h2 { font-size: 24px; font-weight: 700; color: #1a1a1a; margin: 40px 0 16px; }
.insights-article-body h3 { font-size: 20px; font-weight: 600; color: #1a1a1a; margin: 32px 0 12px; }
.insights-article-body blockquote { border-left: 4px solid #FF6B35; padding-left: 20px; margin: 24px 0; font-style: italic; color: #6b7280; }
.insights-article-body ul, .insights-article-body ol { margin: 0 0 24px; padding-left: 24px; }
.insights-article-body li { margin-bottom: 8px; font-size: 17px; color: #333333; }
.insights-article-body strong { color: #003366; }

/* ---- CTA Section ---- */
.insights-cta { background: #003366; padding: 60px 20px; text-align: center; }
.insights-cta-title { color: #fff; font-size: 28px; font-weight: 700; margin: 0 0 12px; }
.insights-cta-subtitle { color: rgba(255,255,255,0.8); font-size: 16px; margin: 0 0 28px; }
.insights-cta-button { display: inline-block; background: #FF6B35; color: #fff; padding: 14px 36px; border-radius: 8px; font-size: 16px; font-weight: 600; transition: background 0.2s, transform 0.2s; }
.insights-cta-button:hover { background: #e55a2b; transform: translateY(-2px); }

/* ---- Back Link ---- */
.insights-back { display: inline-flex; align-items: center; gap: 8px; color: #6b7280; font-size: 14px; margin-bottom: 24px; transition: color 0.2s; }
.insights-back:hover { color: #003366; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .insights-featured { grid-template-columns: 1fr; }
  .insights-featured-image { min-height: 220px; }
  .insights-cards { grid-template-columns: repeat(2, 1fr); }
  .insights-hero-title { font-size: 36px; }
  .insights-article-title { font-size: 28px; }
}
@media (max-width: 600px) {
  .insights-cards { grid-template-columns: 1fr; }
  .insights-hero { padding: 80px 16px 60px; }
  .insights-hero-title { font-size: 28px; }
  .insights-article-header { padding: 60px 16px 40px; }
  .insights-article-body p { font-size: 16px; }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

