/* ALIX Blog Shared Styles — matches main site */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:   #111827;
  --navy-2: #1F2937;
  --white:  #FFFFFF;
  --off:    #F9FAFB;
  --off-2:  #F3F4F6;
  --text:   #111827;
  --text-2: #4B5563;
  --text-3: #9CA3AF;
  --border: #E5E7EB;
  --ease:   cubic-bezier(0.4, 0, 0.2, 1);
  --sans:   'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--white);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4rem;
  height: 60px;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-logo { display: flex; align-items: center; gap: 0.6rem; }
.nav-logo-mark { width: 26px; height: 26px; flex-shrink: 0; }
.nav-logo-text { font-size: 0.95rem; font-weight: 700; color: var(--navy); }

nav ul { list-style: none; display: flex; gap: 2rem; font-size: 0.82rem; color: var(--text-2); }
nav ul a { transition: color 0.2s; }
nav ul a:hover { color: var(--navy); }

.nav-cta {
  font-size: 0.8rem; font-weight: 600;
  padding: 0.5rem 1.2rem;
  background: var(--navy); color: var(--white);
  border-radius: 6px;
  transition: background 0.2s, transform 0.15s;
}
.nav-cta:hover { background: var(--navy-2); transform: translateY(-1px); }

/* FOOTER */
footer {
  background: var(--navy);
  padding: 2rem 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0;
}
.f-left { display: flex; align-items: center; gap: 0.6rem; }
.f-logo-mark { width: 22px; height: 22px; }
.f-logo-text { font-size: 0.88rem; font-weight: 700; color: rgba(255,255,255,0.4); }
.f-info { font-size: 0.72rem; color: rgba(255,255,255,0.28); text-align: right; line-height: 1.65; }
.f-info a { color: rgba(255,255,255,0.4); transition: color 0.2s; }
.f-info a:hover { color: rgba(255,255,255,0.75); }

/* BLOG INDEX */
.blog-hero {
  background: var(--navy);
  padding: 10rem 4rem 5rem;
}
.blog-hero-inner { max-width: 1100px; margin: 0 auto; }
.blog-hero-label {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: rgba(255,255,255,0.3);
  margin-bottom: 1.25rem; display: block;
}
.blog-hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800; letter-spacing: -0.035em;
  color: var(--white); line-height: 1.05;
  margin-bottom: 1.1rem;
}
.blog-hero-title .dim { color: rgba(255,255,255,0.3); font-weight: 300; }
.blog-hero-sub {
  font-size: 1rem; color: rgba(255,255,255,0.45);
  max-width: 500px; line-height: 1.8;
}

.blog-grid-wrap { max-width: 1100px; margin: 0 auto; padding: 4rem 4rem 6rem; }

.featured-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1px;
}

.articles-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 12px 12px;
  overflow: hidden;
}

.ac {
  background: var(--white);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
}
.ac:hover { background: var(--off); }

.ac-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; transition: transform 0.5s var(--ease); }
.ac:hover .ac-img { transform: scale(1.02); }
.ac-img-wrap { overflow: hidden; }
.ac-img.tall { aspect-ratio: 4/3; }

.ac-body { padding: 1.75rem; flex: 1; display: flex; flex-direction: column; }

.ac-tag {
  font-size: 0.62rem; font-weight: 600; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--text-3);
  margin-bottom: 0.75rem; display: block;
}

.ac-title {
  font-weight: 700; color: var(--navy);
  line-height: 1.2; margin-bottom: 0.75rem; flex: 1;
}
.ac-title.lg { font-size: 1.5rem; }
.ac-title.md { font-size: 1.15rem; }
.ac-title.sm { font-size: 1rem; }

.ac-excerpt { font-size: 0.84rem; color: var(--text-2); line-height: 1.8; margin-bottom: 1.25rem; }

.ac-footer {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--border); padding-top: 1rem; margin-top: auto;
}
.ac-meta { font-size: 0.7rem; color: var(--text-3); }
.ac-read { font-size: 0.75rem; font-weight: 500; color: var(--navy); display: flex; align-items: center; gap: 0.3rem; transition: gap 0.2s; }
.ac:hover .ac-read { gap: 0.6rem; }

/* ARTICLE PAGE */
.article-wrap { max-width: 740px; margin: 0 auto; padding: 7rem 2rem 0; }

.breadcrumb { display: flex; align-items: center; gap: 0.5rem; font-size: 0.73rem; color: var(--text-3); margin-bottom: 2.5rem; }
.breadcrumb a { color: var(--text-3); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb-sep { color: var(--border); }

.article-tag {
  display: inline-block; font-size: 0.65rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 1.1rem;
}

.article-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800; letter-spacing: -0.03em;
  color: var(--navy); line-height: 1.08; margin-bottom: 1.4rem;
}

.article-intro {
  font-size: 1.08rem; color: var(--text-2);
  line-height: 1.9; max-width: 600px;
  margin-bottom: 1.75rem; font-weight: 400;
  border-left: 3px solid var(--border);
  padding-left: 1.25rem;
}

.article-meta {
  display: flex; align-items: center; gap: 1rem;
  font-size: 0.75rem; color: var(--text-3);
  padding-bottom: 2.5rem; border-bottom: 1px solid var(--border);
}
.meta-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--border); flex-shrink: 0; }

.article-hero { width: 100%; height: 400px; object-fit: cover; display: block; margin: 2.5rem 0; border-radius: 8px; }
.article-hero-caption { font-size: 0.72rem; color: var(--text-3); text-align: center; margin-top: -1.5rem; margin-bottom: 2.5rem; font-style: italic; }

.article-body { color: var(--text-2); }
.article-body p { font-size: 0.97rem; line-height: 1.95; margin-bottom: 1.6rem; font-weight: 400; }
.article-body h2 { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.025em; color: var(--navy); margin-top: 3rem; margin-bottom: 1rem; line-height: 1.15; }
.article-body h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-top: 2rem; margin-bottom: 0.7rem; }
.article-body strong { font-weight: 600; color: var(--text); }

.callout {
  border-left: 3px solid var(--border);
  background: var(--off);
  padding: 1.4rem 1.75rem;
  margin: 2.5rem 0;
  border-radius: 0 6px 6px 0;
}
.callout p { margin-bottom: 0; font-size: 0.95rem; line-height: 1.85; }
.callout strong { color: var(--navy); }

.warning {
  border-left: 3px solid #DC2626;
  background: rgba(220,38,38,0.04);
  padding: 1.4rem 1.75rem;
  margin: 2.5rem 0;
  border-radius: 0 6px 6px 0;
}
.warning p { margin-bottom: 0; font-size: 0.95rem; line-height: 1.85; }
.warning strong { color: #991B1B; }

.pull-quote {
  border-top: 2px solid var(--navy);
  border-bottom: 1px solid var(--border);
  padding: 1.75rem 0;
  margin: 3rem 0;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
  line-height: 1.3;
}

.check-list {
  list-style: none; padding: 0;
  display: flex; flex-direction: column; gap: 0;
  margin: 1.5rem 0 2rem;
  border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden;
}
.check-list li {
  display: flex; align-items: flex-start; gap: 0.85rem;
  font-size: 0.93rem; color: var(--text-2);
  line-height: 1.75; padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--white);
  transition: background 0.15s;
}
.check-list li:last-child { border-bottom: none; }
.check-list li:hover { background: var(--off); }
.check-list li::before {
  content: '✓'; font-size: 0.65rem; font-weight: 700;
  color: var(--navy); flex-shrink: 0; margin-top: 2px;
}

.flag-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0; margin: 1.5rem 0 2rem; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.flag-item { display: flex; align-items: flex-start; gap: 1rem; padding: 1.2rem 1.4rem; border-bottom: 1px solid var(--border); background: var(--white); transition: background 0.15s; }
.flag-item:last-child { border-bottom: none; }
.flag-item:hover { background: var(--off); }
.flag-num { font-size: 0.85rem; font-weight: 700; color: var(--text-3); flex-shrink: 0; width: 20px; margin-top: 1px; }
.flag-content h4 { font-size: 0.88rem; font-weight: 700; color: var(--navy); margin-bottom: 0.3rem; }
.flag-content p { font-size: 0.83rem; color: var(--text-2); line-height: 1.7; margin-bottom: 0; }

.steps { display: flex; flex-direction: column; gap: 0; margin: 2rem 0; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.step-card { display: flex; align-items: flex-start; gap: 1.25rem; padding: 1.4rem; border-bottom: 1px solid var(--border); background: var(--white); transition: background 0.15s; }
.step-card:last-child { border-bottom: none; }
.step-card:hover { background: var(--off); }
.step-num { font-size: 0.85rem; font-weight: 700; color: var(--text-3); flex-shrink: 0; width: 24px; margin-top: 1px; }
.step-content h4 { font-size: 0.9rem; font-weight: 700; color: var(--navy); margin-bottom: 0.35rem; }
.step-content p { font-size: 0.85rem; color: var(--text-2); line-height: 1.75; margin-bottom: 0; }

.article-img { width: 100%; border-radius: 6px; display: block; margin: 2.5rem 0 0.75rem; }
.img-caption { font-size: 0.72rem; color: var(--text-3); text-align: center; margin-bottom: 2rem; font-style: italic; }

hr.section-break { border: none; border-top: 1px solid var(--border); margin: 3.5rem 0; }

.article-cta {
  background: var(--navy);
  padding: 3rem;
  margin: 4rem 0 0;
  border-radius: 12px;
}
.article-cta h3 { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.025em; color: var(--white); margin-bottom: 0.75rem; line-height: 1.15; }
.article-cta p { font-size: 0.92rem; color: rgba(255,255,255,0.5); margin-bottom: 2rem; line-height: 1.8; }
.cta-btn { display: inline-block; padding: 0.8rem 1.75rem; border-radius: 6px; color: var(--navy); background: var(--white); font-size: 0.82rem; font-weight: 700; transition: background 0.2s, transform 0.15s; }
.cta-btn:hover { background: rgba(255,255,255,0.9); transform: translateY(-2px); }

.related { padding: 4rem 0; border-top: 1px solid var(--border); margin-top: 4rem; }
.related-label { font-size: 0.67rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-3); margin-bottom: 1.75rem; display: block; }
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.related-card { background: var(--white); text-decoration: none; color: inherit; transition: background 0.2s; }
.related-card:hover { background: var(--off); }
.related-img { width: 100%; height: 140px; object-fit: cover; display: block; }
.related-content { padding: 1.1rem; }
.related-tag { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 0.5rem; display: block; }
.related-title { font-size: 0.93rem; font-weight: 700; color: var(--navy); line-height: 1.3; }

@media (max-width: 768px) {
  nav { padding: 0 1.5rem; }
  nav ul { display: none; }
  .blog-hero { padding: 7rem 1.5rem 3rem; }
  .blog-grid-wrap { padding: 2.5rem 1.5rem 4rem; }
  .featured-row { grid-template-columns: 1fr; }
  .articles-row { grid-template-columns: 1fr; }
  .article-wrap { padding: 6rem 1.5rem 0; }
  .article-hero { height: 260px; }
  .article-cta { padding: 2rem 1.5rem; }
  footer { padding: 2rem 1.5rem; flex-direction: column; align-items: flex-start; }
  .f-info { text-align: left; }
  .related-grid { grid-template-columns: 1fr; }
}
