/* =============================================
   ABGL Inc. — Blog Article Stylesheet
   Extends style.css — must be loaded after it
   ============================================= */

/* === ARTICLE HEADER === */
.article-hero {
  background: var(--blue-dark);
  padding: 100px 0 60px;
  color: var(--white);
}

.article-hero .breadcrumb {
  font-size: .85rem;
  color: rgba(255,255,255,.65);
  margin-bottom: 16px;
}

.article-hero .breadcrumb a {
  color: var(--orange-light);
  text-decoration: none;
}

.article-hero .breadcrumb a:hover { text-decoration: underline; }

.article-hero .breadcrumb span { margin: 0 6px; }

.article-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.article-category {
  background: var(--orange);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 50px;
}

.article-date, .article-read-time {
  font-size: .85rem;
  color: rgba(255,255,255,.65);
}

.article-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.2;
  max-width: 820px;
  margin-bottom: 20px;
}

.article-hero .article-intro {
  font-size: 1.1rem;
  color: rgba(255,255,255,.82);
  max-width: 720px;
  line-height: 1.7;
}

/* === ARTICLE LAYOUT === */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
  padding: 60px 0 80px;
}

@media (max-width: 900px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
}

/* === ARTICLE BODY === */
.article-body {
  min-width: 0;
}

.article-body h2 {
  font-size: 1.5rem;
  color: var(--blue-dark);
  margin: 2rem 0 .85rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--border);
}

.article-body h3 {
  font-size: 1.15rem;
  color: var(--blue);
  margin: 1.5rem 0 .6rem;
}

.article-body p {
  margin-bottom: 1.15rem;
  line-height: 1.8;
  color: #2d3748;
}

.article-body ul, .article-body ol {
  margin: 1rem 0 1.25rem 1.5rem;
}

.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }

.article-body li {
  margin-bottom: .5rem;
  line-height: 1.7;
  color: #2d3748;
}

.article-body strong { color: var(--blue-dark); }

.article-body a {
  color: var(--blue-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-body a:hover { color: var(--orange); }

/* === CALLOUT BOXES === */
.callout {
  border-left: 4px solid var(--orange);
  background: #fff8f0;
  padding: 18px 20px;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.callout p { margin-bottom: 0; }

.callout-blue {
  border-left-color: var(--blue);
  background: #f0f5ff;
}

/* === CHECKLIST === */
.checklist {
  list-style: none !important;
  margin-left: 0 !important;
}

.checklist li {
  padding-left: 28px;
  position: relative;
  margin-bottom: .6rem;
}

.checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 700;
}

/* === DATA TABLE === */
.article-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: .9rem;
}

.article-table th {
  background: var(--blue-dark);
  color: var(--white);
  padding: 10px 14px;
  text-align: left;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
}

.article-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.article-table tr:nth-child(even) td { background: var(--gray-light); }

/* === SIDEBAR === */
.article-sidebar {
  position: sticky;
  top: 88px;
}

.sidebar-card {
  background: var(--gray-light);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}

.sidebar-card h4 {
  font-size: 1rem;
  color: var(--blue-dark);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}

.toc-list {
  list-style: none !important;
  margin: 0 !important;
}

.toc-list li { margin-bottom: 0 !important; }

.toc-list a {
  display: block;
  padding: 6px 0;
  font-size: .88rem;
  color: var(--gray);
  border-bottom: 1px solid var(--border);
  text-decoration: none !important;
}

.toc-list a:hover { color: var(--orange); }

.toc-list li:last-child a { border-bottom: none; }

.cta-card {
  background: var(--blue-dark);
  color: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  margin-bottom: 24px;
}

.cta-card h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--white);
}

.cta-card p {
  font-size: .88rem;
  color: rgba(255,255,255,.78);
  margin-bottom: 18px;
  line-height: 1.6;
}

.cta-card .btn {
  width: 100%;
  justify-content: center;
}

.related-list {
  list-style: none !important;
  margin: 0 !important;
}

.related-list li { margin-bottom: 0 !important; }

.related-list a {
  display: block;
  padding: 8px 0;
  font-size: .88rem;
  color: var(--blue-light);
  border-bottom: 1px solid var(--border);
  text-decoration: none !important;
  line-height: 1.4;
}

.related-list a:hover { color: var(--orange); }
.related-list li:last-child a { border-bottom: none; }

/* === ARTICLE CTA SECTION === */
.article-cta-banner {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  color: var(--white);
  text-align: center;
  padding: 56px 24px;
  border-radius: var(--radius);
  margin: 2.5rem 0 1rem;
}

.article-cta-banner h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--white);
}

.article-cta-banner p {
  color: rgba(255,255,255,.82);
  max-width: 520px;
  margin: 0 auto 22px;
}

.article-cta-banner .btn-group {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* === NAV — article overrides === */
.site-header .main-nav a[href="index.html"]:not([href^="#"]),
.site-header .main-nav a { color: var(--white); }

/* === BLOG INDEX PAGE === */
.blog-hero {
  background: var(--blue-dark);
  padding: 100px 0 60px;
  color: var(--white);
  text-align: center;
}

.blog-hero h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 14px; }
.blog-hero p { color: rgba(255,255,255,.78); font-size: 1.1rem; }

.blog-grid-section { padding: 60px 0 80px; }

.blog-filter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 7px 18px;
  border: 2px solid var(--border);
  border-radius: 50px;
  background: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--blue-dark);
  color: var(--white);
  border-color: var(--blue-dark);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 900px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; }
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.blog-card-header {
  background: var(--blue-dark);
  padding: 28px 24px 20px;
}

.blog-card-header .article-category { margin-bottom: 10px; display: inline-block; }

.blog-card-header h3 {
  color: var(--white);
  font-size: 1rem;
  line-height: 1.35;
}

.blog-card-body {
  padding: 18px 24px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-body p {
  font-size: .88rem;
  color: var(--gray);
  margin-bottom: 16px;
  flex: 1;
  line-height: 1.65;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-top: 1px solid var(--border);
  font-size: .8rem;
  color: var(--gray-mid);
}

.read-more {
  color: var(--orange);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: .82rem;
  text-decoration: none;
}

.read-more:hover { text-decoration: underline; }
