/* ============================================================
   Online eMenu — Blog Stylesheet
   Typography, TOC, Author Card, Related Posts, Article Layout
   ============================================================ */

/* ── Blog Hero ──────────────────────────────────────────────── */
.blog-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 100px 0 64px;
  color: var(--white);
  text-align: center;
}
.blog-hero .breadcrumb {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; font-size: .85rem; color: rgba(255,255,255,.6);
  margin-bottom: 20px;
}
.blog-hero .breadcrumb a { color: rgba(255,255,255,.75); }
.blog-hero .breadcrumb a:hover { color: var(--white); }
.blog-hero .breadcrumb span { opacity: .5; }
.blog-hero .post-category {
  display: inline-block;
  background: rgba(232,98,42,.15); color: #E8622A;
  border: 1px solid rgba(232,98,42,.4);
  padding: 4px 14px; border-radius: 100px;
  font-size: .8rem; font-weight: 600; letter-spacing: .05em;
  text-transform: uppercase; margin-bottom: 18px;
}
.blog-hero h1 {
  max-width: 820px; margin: 0 auto 20px;
  color: var(--white); font-size: clamp(1.9rem, 4vw, 3rem);
}
.blog-hero .post-meta {
  display: flex; align-items: center; justify-content: center;
  gap: 20px; flex-wrap: wrap;
  font-size: .9rem; color: rgba(255,255,255,.65); margin-top: 16px;
}
.blog-hero .post-meta i { color: #E8622A; }
.post-summary {
  max-width: 700px; margin: 0 auto; font-size: 1.12rem;
  color: rgba(255,255,255,.8); line-height: 1.7;
}

/* ── Blog Layout ────────────────────────────────────────────── */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  padding: 64px 0 96px;
  align-items: start;
}
@media (max-width: 900px) {
  .blog-layout { grid-template-columns: 1fr; }
  .blog-sidebar { order: -1; }
}

/* ── Article Body ───────────────────────────────────────────── */
.article-body {
  min-width: 0;
}
.article-body h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  color: var(--navy); margin: 52px 0 16px;
  padding-top: 8px;
}
.article-body h2:first-child { margin-top: 0; }
.article-body h3 {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--navy); margin: 36px 0 12px;
}
.article-body h4 {
  font-size: 1.05rem; color: var(--navy-mid);
  margin: 28px 0 10px; font-weight: 600;
}
.article-body p {
  font-size: 1.07rem; line-height: 1.8;
  color: #334155; margin-bottom: 20px;
}
.article-body ul, .article-body ol {
  margin: 0 0 24px 24px; padding: 0;
}
.article-body li {
  font-size: 1.05rem; line-height: 1.75;
  color: #334155; margin-bottom: 8px;
  list-style: disc;
}
.article-body ol li { list-style: decimal; }
.article-body a { color: #E8622A; text-decoration: underline; }
.article-body a:hover { color: #c45220; }
.article-body strong { color: var(--navy); font-weight: 700; }
.article-body em { font-style: italic; }
.article-body hr {
  border: none; border-top: 1px solid var(--border);
  margin: 48px 0;
}
.article-body blockquote {
  border-left: 4px solid #E8622A;
  margin: 32px 0; padding: 16px 24px;
  background: #FFF5F0; border-radius: 0 8px 8px 0;
}
.article-body blockquote p {
  font-size: 1.05rem; color: var(--navy); font-style: italic; margin: 0;
}

/* ── Callout / Highlight Box ────────────────────────────────── */
.callout {
  background: #FFF5F0; border: 1px solid rgba(232,98,42,.2);
  border-left: 4px solid #E8622A;
  padding: 20px 24px; border-radius: 0 10px 10px 0;
  margin: 32px 0;
}
.callout.blue {
  background: #EFF6FF; border-color: rgba(37,99,235,.2);
  border-left-color: #2563EB;
}
.callout.green {
  background: #F0FDF4; border-color: rgba(16,185,129,.2);
  border-left-color: #10B981;
}
.callout p { margin: 0; font-size: 1rem; color: var(--navy); }
.callout strong { color: #E8622A; }
.callout.blue strong { color: #2563EB; }
.callout.green strong { color: #10B981; }

/* ── Comparison Table ───────────────────────────────────────── */
.comp-table-wrap { overflow-x: auto; margin: 32px 0; border-radius: 12px; box-shadow: var(--shadow); }
.comp-table {
  width: 100%; border-collapse: collapse;
  font-size: .95rem;
}
.comp-table thead th {
  background: var(--navy); color: var(--white);
  padding: 14px 18px; font-weight: 700;
  text-align: left; white-space: nowrap;
}
.comp-table thead th:first-child { border-radius: 12px 0 0 0; }
.comp-table thead th:last-child { border-radius: 0 12px 0 0; }
.comp-table thead th.highlight-col { background: #E8622A; }
.comp-table tbody tr:nth-child(even) { background: var(--off-white); }
.comp-table tbody td {
  padding: 12px 18px; border-bottom: 1px solid var(--border);
  color: var(--gray-800); vertical-align: top;
}
.comp-table tbody td:first-child { font-weight: 600; color: var(--navy); }
.comp-table tbody td.highlight-col {
  background: #FFF5F0; color: var(--navy); font-weight: 600;
}
.comp-table .check { color: #10B981; font-weight: 700; }
.comp-table .cross { color: #EF4444; font-weight: 700; }
.comp-table .partial { color: #F59E0B; font-weight: 700; }

/* ── Verdict Card ───────────────────────────────────────────── */
.verdict-card {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: 16px; padding: 32px 36px; margin: 40px 0;
  color: var(--white);
}
.verdict-card h3 { color: #E8622A; margin-bottom: 12px; font-size: 1.1rem; text-transform: uppercase; letter-spacing: .05em; }
.verdict-card p { color: rgba(255,255,255,.85); margin: 0; font-size: 1.05rem; }
.verdict-card .cta-row {
  display: flex; gap: 14px; margin-top: 24px; flex-wrap: wrap;
}

/* ── Pro/Con List ───────────────────────────────────────────── */
.pro-con {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px; margin: 32px 0;
}
@media (max-width: 600px) { .pro-con { grid-template-columns: 1fr; } }
.pro-con-box {
  background: var(--off-white); border-radius: 12px; padding: 24px;
}
.pro-con-box h4 { margin-bottom: 14px; font-size: 1rem; }
.pro-con-box.pros h4 { color: #10B981; }
.pro-con-box.cons h4 { color: #EF4444; }
.pro-con-box ul { margin: 0; }
.pro-con-box li {
  font-size: .95rem; color: var(--gray-800);
  padding: 5px 0 5px 22px; position: relative;
  list-style: none; border-bottom: none;
}
.pro-con-box.pros li::before { content: "✓"; position: absolute; left: 0; color: #10B981; font-weight: 700; }
.pro-con-box.cons li::before { content: "✗"; position: absolute; left: 0; color: #EF4444; font-weight: 700; }

/* ── Rating Stars ───────────────────────────────────────────── */
.rating-row {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 6px;
}
.stars { color: #F59E0B; font-size: 1rem; letter-spacing: 1px; }
.rating-val { font-weight: 700; color: var(--navy); }
.rating-count { color: var(--text-muted); font-size: .9rem; }

/* ── Product Card (in-article) ──────────────────────────────── */
.product-cards { display: grid; gap: 28px; margin: 40px 0; }
.product-card {
  border: 1px solid var(--border); border-radius: 16px;
  padding: 28px; position: relative; overflow: hidden;
  transition: var(--transition);
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.product-card.top-pick::before {
  content: "⭐ Top Pick"; position: absolute; top: 0; right: 0;
  background: #E8622A; color: #fff; font-size: .75rem; font-weight: 700;
  padding: 4px 14px; border-radius: 0 16px 0 10px;
}
.product-card h3 {
  font-size: 1.25rem; color: var(--navy); margin: 0 0 8px;
}
.product-card .tagline {
  font-size: .9rem; color: var(--text-muted); margin-bottom: 16px;
}
.product-card .feature-list {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px;
}
.product-card .feature-tag {
  background: var(--gray-100); color: var(--gray-800);
  font-size: .8rem; padding: 4px 10px; border-radius: 6px;
}

/* ── TOC (Table of Contents) ─────────────────────────────────── */
.toc-box {
  background: var(--off-white); border-radius: 14px;
  border: 1px solid var(--border); padding: 24px; margin-bottom: 40px;
}
.toc-box h3 {
  font-size: 1rem; color: var(--navy); margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.toc-box ol { margin: 0 0 0 20px; padding: 0; }
.toc-box li { list-style: decimal; margin-bottom: 8px; }
.toc-box a {
  font-size: .92rem; color: var(--text-muted); text-decoration: none;
  line-height: 1.5;
}
.toc-box a:hover { color: #E8622A; }

/* ── Sidebar ─────────────────────────────────────────────────── */
.blog-sidebar {
  position: sticky; top: 100px;
  display: flex; flex-direction: column; gap: 28px;
}
.sidebar-card {
  background: var(--off-white); border-radius: 14px;
  border: 1px solid var(--border); padding: 24px;
}
.sidebar-card h4 {
  font-size: .95rem; color: var(--navy); margin-bottom: 16px;
  padding-bottom: 12px; border-bottom: 1px solid var(--border);
  text-transform: uppercase; letter-spacing: .05em;
}
.sidebar-cta {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: var(--white); text-align: center;
}
.sidebar-cta h4 { color: var(--white); border-color: rgba(255,255,255,.15); }
.sidebar-cta p { color: rgba(255,255,255,.75); font-size: .9rem; margin-bottom: 16px; }
.sidebar-cta .btn { width: 100%; justify-content: center; }
.sidebar-links li { margin-bottom: 10px; }
.sidebar-links a {
  font-size: .9rem; color: #E8622A;
  display: flex; align-items: center; gap: 6px;
}
.sidebar-links a i { font-size: .75rem; }

/* ── Author Card ─────────────────────────────────────────────── */
.author-card {
  display: flex; gap: 20px; align-items: flex-start;
  background: var(--off-white); border-radius: 16px;
  border: 1px solid var(--border); padding: 28px; margin: 56px 0 40px;
}
.author-avatar {
  width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #E8622A, var(--navy));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: var(--white); font-weight: 700;
}
.author-info h4 { font-size: 1rem; color: var(--navy); margin-bottom: 4px; }
.author-info .role { font-size: .85rem; color: #E8622A; font-weight: 600; margin-bottom: 8px; }
.author-info p { font-size: .9rem; color: var(--text-muted); margin: 0; }

/* ── Related Posts ───────────────────────────────────────────── */
.related-posts { margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--border); }
.related-posts h2 { font-size: 1.5rem; color: var(--navy); margin-bottom: 32px; }
.related-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
@media (max-width: 700px) { .related-grid { grid-template-columns: 1fr; } }
.related-card {
  border: 1px solid var(--border); border-radius: 14px;
  overflow: hidden; transition: var(--transition);
}
.related-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.related-card-body { padding: 20px; }
.related-card .cat-tag {
  font-size: .75rem; font-weight: 700; color: #E8622A;
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px;
}
.related-card h4 { font-size: .98rem; color: var(--navy); line-height: 1.4; margin-bottom: 10px; }
.related-card .read-link {
  font-size: .85rem; color: #E8622A; font-weight: 600;
  display: flex; align-items: center; gap: 4px;
}

/* ── Blog Index ──────────────────────────────────────────────── */
.blog-index-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 100px 0 64px; color: var(--white); text-align: center;
}
.blog-index-hero h1 { color: var(--white); margin-bottom: 16px; }
.blog-index-hero p { color: rgba(255,255,255,.75); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }
.blog-filters {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 24px 0 40px;
}
.filter-btn {
  padding: 8px 18px; border-radius: 100px;
  font-size: .85rem; font-weight: 600;
  border: 1.5px solid var(--border); color: var(--gray-600);
  background: var(--white); cursor: pointer; transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  background: #E8622A; color: var(--white); border-color: #E8622A;
}
.blog-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px; padding-bottom: 96px;
}
.blog-card {
  border: 1px solid var(--border); border-radius: 18px;
  overflow: hidden; transition: var(--transition); background: var(--white);
}
.blog-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.blog-card-img {
  height: 180px;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}
.blog-card-img.ksa   { background: linear-gradient(135deg, #0D1F0A 0%, #1A2E10 100%); }
.blog-card-img.india { background: linear-gradient(135deg, #FF6B00 0%, #FFA940 100%); }
.blog-card-img.odoo  { background: linear-gradient(135deg, #0A1628 0%, #1A2E4A 100%); }
.blog-card-img.uae   { background: linear-gradient(135deg, #0A1628 0%, #0d3320 100%); }
.blog-card-img.uk    { background: linear-gradient(135deg, #0A1628 0%, #0d1a38 100%); }
.blog-card-img.de    { background: linear-gradient(135deg, #0A1628 0%, #0d1a40 100%); }
.blog-card-img.es    { background: linear-gradient(135deg, #0A1628 0%, #3d0814 100%); }
.blog-card-img.fr    { background: linear-gradient(135deg, #0A1628 0%, #2d0a1a 100%); }
.blog-card-body { padding: 24px; }
.blog-card .cat-tag {
  font-size: .75rem; font-weight: 700; color: #E8622A;
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px;
}
.blog-card h3 { font-size: 1.15rem; color: var(--navy); line-height: 1.4; margin-bottom: 10px; }
.blog-card p { font-size: .9rem; color: var(--text-muted); margin-bottom: 16px; line-height: 1.6; }
.blog-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  font-size: .82rem; color: var(--text-muted); padding-top: 16px;
  border-top: 1px solid var(--border);
}
.blog-card-footer .read-link { color: #E8622A; font-weight: 600; }

/* ── FAQ in Article ──────────────────────────────────────────── */
.faq-section { margin: 48px 0; }
.faq-section h2 { margin-bottom: 24px; }
.faq-item {
  border: 1px solid var(--border); border-radius: 12px;
  margin-bottom: 12px; overflow: hidden;
}
.faq-item summary {
  padding: 18px 22px; font-weight: 600; font-size: 1rem;
  color: var(--navy); cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: #E8622A; flex-shrink: 0; }
.faq-item[open] summary::after { content: "−"; }
.faq-item[open] { border-color: #E8622A; }
.faq-item p {
  padding: 0 22px 18px; font-size: .97rem;
  color: var(--gray-600); margin: 0; line-height: 1.7;
}

/* ── Article Image ───────────────────────────────────────────── */
.article-img {
  width: 100%; border-radius: 14px; margin: 32px 0;
  overflow: hidden; background: var(--gray-100);
  min-height: 220px; display: flex; align-items: center; justify-content: center;
  font-size: 4rem;
}

/* ── CTA Banner in Article ───────────────────────────────────── */
.article-cta {
  background: linear-gradient(135deg, #E8622A 0%, #c45220 100%);
  border-radius: 18px; padding: 40px; margin: 48px 0; text-align: center;
}
.article-cta h3 { color: var(--white); font-size: 1.5rem; margin-bottom: 10px; }
.article-cta p { color: rgba(255,255,255,.9); margin-bottom: 24px; }
.article-cta .btn-white {
  background: var(--white); color: #E8622A; font-weight: 700;
  padding: 13px 32px; border-radius: 8px; display: inline-flex; align-items: center; gap: 8px;
}
.article-cta .btn-white:hover { background: var(--off-white); }
