/* ==========================================================
   Sainest Tubes - Blog styles (master blog + single blog)
   Sab kuch ".sb" wrapper ke andar hai, isliye website ke baaki CSS se nahi takrayega.
   Colors website ke :root variables se aate hain (--thm-base, --thm-base2 ...).
   Agar color badalna ho to niche .sb { --sb-... } me badlo.
   ========================================================== */
.sb {
  --sb-primary: var(--thm-base2, #102039);     /* navy  */
  --sb-primary-dark: #0A1624;
  --sb-accent: var(--thm-base, #a33e93);       /* purple */
  --sb-accent-dark: #82306f;
  --sb-text: var(--thm-primary, #666666);
  --sb-muted: #777777;
  --sb-bg: var(--thm-base3, #f1f2f4);
  --sb-card: #ffffff;
  --sb-border: #e3e3e8;
  --sb-radius: 10px;
  --sb-shadow: 0 6px 24px rgba(16, 32, 57, .08);
  --sb-font: "Montserrat", sans-serif;
}
.sb *, .sb *::before, .sb *::after { box-sizing: border-box; }
.sb {
  margin: 0; font-family: var(--sb-font); color: var(--sb-text);
  background: #fff; line-height: 1.7; font-size: 16px;
}
.sb img { max-width: 100%; display: block; border-radius: 0; }
.sb a { color: var(--sb-primary); text-decoration: none; }
.sb a:hover { color: var(--sb-accent); }
.sb h1, .sb h2, .sb h3, .sb h4 { font-family: var(--sb-font); color: var(--sb-primary); line-height: 1.3; margin: 0 0 .6em; }
.sb .sb-container { width: min(1320px, 100% - 32px); margin-inline: auto; }

/* ---------- banner (website ke inner-page banner jaisa) ---------- */
.sb .blog-hero, .sb .post-hero {
  background: linear-gradient(82deg, #0A1624 40%, #273343 60%);
  color: #fff; padding: 250px 0 80px; position: relative; overflow: hidden;
}
.sb .blog-hero::after, .sb .post-hero::after {
  content: ""; position: absolute; right: -140px; bottom: -160px; width: 440px; height: 440px; border-radius: 50%;
  border: 60px solid rgba(163, 62, 147, .22); pointer-events: none;
}
.sb .blog-hero .sb-container, .sb .post-hero .sb-container { position: relative; z-index: 1; }
.sb .blog-hero .eyebrow { color: #f0b8e7; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; font-size: 13px; }
.sb .blog-hero h1 { color: #fff; font-size: clamp(28px, 4vw, 42px); font-weight: 700; margin: 8px 0 14px; max-width: 820px; }
.sb .blog-hero p { color: #d7dbe3; max-width: 640px; font-size: 16px; margin: 0 0 26px; }
.sb .search-box { display: flex; max-width: 560px; background: #fff; border-radius: 6px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.sb .search-box input { flex: 1; border: 0; padding: 15px 18px; font-size: 15px; font-family: var(--sb-font); outline: none; min-width: 0; color: #333; }
.sb .search-box button { background: var(--sb-accent); border: 0; color: #fff; padding: 0 24px; cursor: pointer; font-weight: 600; font-family: var(--sb-font); text-transform: uppercase; font-size: 13px; }
.sb .search-box button:hover { background: var(--sb-accent-dark); }

/* ---------- master blog: grid ---------- */
.sb .blog-list { background: var(--sb-bg); padding: 60px 0 80px; }
.sb .list-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 26px; flex-wrap: wrap; }
.sb .list-head h2 { margin: 0; font-size: 28px; font-weight: 700; }
.sb .list-head .count { color: var(--sb-muted); font-size: 14px; }
.sb .post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.sb .post-card {
  background: var(--sb-card); border-radius: var(--sb-radius); overflow: hidden; box-shadow: var(--sb-shadow);
  display: flex; flex-direction: column; border: 1px solid var(--sb-border); transition: transform .25s, box-shadow .25s;
}
.sb .post-card:hover { transform: translateY(-5px); box-shadow: 0 16px 36px rgba(16,32,57,.16); }
.sb .post-card.hide { display: none; }
.sb .pc-img { display: block; aspect-ratio: 16 / 10; background: linear-gradient(135deg, #efe9f0, #ddd3df); overflow: hidden; }
.sb .pc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.sb .pc-img img.contain { object-fit: contain; padding: 14px; }
.sb .post-card:hover .pc-img img { transform: scale(1.05); }
.sb .pc-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.sb .pc-meta { font-size: 12.5px; color: var(--sb-muted); margin-bottom: 8px; }
.sb .pc-body h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sb .pc-body h3 a { color: var(--sb-primary); font-weight: 700; }
.sb .pc-body h3 a:hover { color: var(--sb-accent); }
.sb .pc-body p { color: var(--sb-text); font-size: 14.5px; margin: 0 0 18px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sb .pc-more { margin-top: auto; font-weight: 700; font-size: 13.5px; text-transform: uppercase; color: var(--sb-accent); }
.sb .pc-more:hover { color: var(--sb-accent-dark); }
.sb .no-results { display: none; text-align: center; padding: 50px 0; color: var(--sb-muted); font-size: 18px; }
.sb .sb-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 42px; flex-wrap: wrap; }
.sb .sb-pagination button {
  min-width: 42px; height: 42px; border-radius: 4px; border: 1px solid var(--sb-border); background: #fff;
  color: var(--sb-primary); font-weight: 600; cursor: pointer; font-family: var(--sb-font);
}
.sb .sb-pagination button:hover { border-color: var(--sb-accent); color: var(--sb-accent); }
.sb .sb-pagination button.active { background: var(--sb-accent); color: #fff; border-color: var(--sb-accent); }
.sb .sb-pagination button:disabled { opacity: .4; cursor: default; }

/* ---------- single post ---------- */
.sb .sb-progress { position: fixed; top: 0; left: 0; height: 4px; width: 0; background: var(--sb-accent); z-index: 100; }
.sb .sb-breadcrumb { font-size: 13.5px; color: #c3c9d4; margin-bottom: 18px; }
.sb .sb-breadcrumb a { color: #c3c9d4; }
.sb .sb-breadcrumb a:hover { color: #fff; }
.sb .sb-breadcrumb span { margin: 0 8px; }
.sb .post-hero h1 { color: #fff; font-size: clamp(26px, 3.6vw, 40px); font-weight: 700; max-width: 960px; margin-bottom: 16px; }
.sb .post-meta { display: flex; flex-wrap: wrap; gap: 6px 22px; color: #c3c9d4; font-size: 14px; }
.sb .post-meta b { color: #fff; font-weight: 600; }
.sb .post-layout { width: min(860px, 100% - 32px); margin-inline: auto; padding: 50px 0 70px; }
.sb .post-cover { border-radius: var(--sb-radius); overflow: hidden; aspect-ratio: 16 / 8; background: linear-gradient(135deg, #efe9f0, #ddd3df); margin-bottom: 40px; }
.sb .post-cover img { width: 100%; height: 100%; object-fit: cover; }
.sb .post-cover img.contain { object-fit: contain; padding: 18px; }
.sb .article { font-size: 16.5px; line-height: 1.85; }
.sb .article h2 { font-size: 27px; font-weight: 700; margin: 1.7em 0 .55em; padding-bottom: 10px; border-bottom: 2px solid var(--sb-border); }
.sb .article h2:first-child { margin-top: 0; }
.sb .article h3 { font-size: 20px; font-weight: 700; margin: 1.5em 0 .4em; color: var(--sb-primary-dark); }
.sb .article p { margin: 0 0 1.15em; color: var(--sb-text); }
.sb .article ul { margin: 0 0 1.4em; padding: 0; list-style: none; }
.sb .article ul li { position: relative; padding-left: 28px; margin-bottom: .55em; list-style: none; }
.sb .article ul li::before {
  content: ""; position: absolute; left: 4px; top: .72em; width: 9px; height: 9px; border-radius: 2px;
  background: var(--sb-accent); transform: rotate(45deg);
}
.sb .article strong { color: var(--sb-primary); font-weight: 700; }
.sb .share { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 44px 0 0; padding-top: 24px; border-top: 1px solid var(--sb-border); }
.sb .share b { color: var(--sb-primary); margin-right: 4px; }
.sb .share a, .sb .share button {
  border: 1px solid var(--sb-border); background: #fff; color: var(--sb-primary); padding: 8px 16px; border-radius: 999px;
  font-size: 13.5px; font-weight: 500; cursor: pointer; font-family: var(--sb-font);
}
.sb .share a:hover, .sb .share button:hover { background: var(--sb-accent); color: #fff; border-color: var(--sb-accent); }
.sb .related { background: var(--sb-bg); padding: 64px 0 80px; }
.sb .related h2 { text-align: center; margin-bottom: 30px; font-size: 28px; font-weight: 700; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .sb .post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 650px) {
  .sb .blog-hero, .sb .post-hero { padding: 160px 0 40px; }
  .sb .post-grid { grid-template-columns: 1fr; }
  .sb .article { font-size: 15.5px; }
  .sb .post-cover { aspect-ratio: 16 / 10; margin-bottom: 28px; }
  .sb .article h2 { font-size: 22px; }
  .sb .blog-list, .sb .related { padding: 44px 0 56px; }
}
