/* ===============================
   Blog Post - Hakuna TV
   File: /assets/css/blog-post.css
================================ */

/* Reset */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root{
  --bg: #f6f7fb;
  --card: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --shadow: 0 16px 45px rgba(0,0,0,.08);
  --brand: #ff7a00;
  --brand2: #2563eb;
  --radius: 18px;
}

body{
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
}

/* Container */
.container{
  max-width: 980px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Main spacing (prevents overlap with header) */
.blog-post{
  padding-top: 42px;
  padding-bottom: 80px;
}

/* Article card layout */
.blog-post article{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
}

/* Intro */
.blog-post .intro{
  margin-top: 14px;
  color: var(--muted);
  font-size: 16px;
  max-width: 80ch;
}

/* Headings */
.blog-post h1{
  font-size: 40px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.blog-post h2{
  font-size: 26px;
  margin-top: 34px;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.blog-post h3{
  font-size: 18px;
  margin-top: 18px;
  margin-bottom: 8px;
}

/* Paragraphs & lists */
.blog-post p{
  margin: 10px 0 0;
  color: #1f2937;
}

.blog-post ul,
.blog-post ol{
  margin: 12px 0 0 18px;
  color: #1f2937;
}

.blog-post li{ margin: 8px 0; }

/* Horizontal rule (when you used --- in content) */
.blog-post hr{
  border: none;
  border-top: 1px solid var(--border);
  margin: 26px 0;
}

/* Links */
.blog-post a{
  color: var(--brand2);
  text-decoration: none;
  font-weight: 600;
}
.blog-post a:hover{
  text-decoration: underline;
}

/* Highlighted inline text */
.blog-post strong{
  color: #0f172a;
}

/* Table - modern */
.blog-post table{
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
}

.blog-post thead th{
  background: #0f172a;
  color: #fff;
  font-weight: 700;
  text-align: left;
  padding: 14px 14px;
  font-size: 14px;
}

.blog-post tbody td{
  padding: 14px 14px;
  border-top: 1px solid var(--border);
  font-size: 14.5px;
  color: #111827;
}

.blog-post tbody tr:nth-child(even) td{
  background: #f8fafc;
}

/* Make tables scrollable on small screens */
.blog-post table{
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.blog-post thead, .blog-post tbody, .blog-post tr{
  width: 100%;
}

/* Callouts (optional if you want) */
.callout{
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,122,0,.25);
  background: rgba(255,122,0,.08);
  color: #111827;
}
.callout strong{ color: #111827; }

/* FAQ blocks (nice spacing) */
.faq{
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fbfdff;
}
.faq h3{
  margin-top: 0;
}

/* Sticky reading progress (optional) */
/* If you later add a progress bar div, this CSS is ready */
.reading-progress{
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--brand);
  z-index: 9999;
}

/* Responsive */
@media (max-width: 900px){
  .blog-post h1{ font-size: 34px; }
  .blog-post article{ padding: 28px; }
}

@media (max-width: 600px){
  .blog-post{ padding-top: 26px; padding-bottom: 60px; }
  .blog-post h1{ font-size: 28px; }
  .blog-post h2{ font-size: 22px; }
  .blog-post article{ padding: 20px; border-radius: 16px; }
  .blog-post .intro{ font-size: 15px; }
}
body {
    padding-top: 90px; /* نفس ارتفاع header + navbar */
}
