/* =========================================================
   blogs.css — TopRankster Blog
   Extends design tokens & shared header/footer from styles.css.
   Typography tuned for maximum reading comfort:
   - Generous line-height (1.7+) on body copy
   - Restrained heading sizes (no oversized display type)
   - Warm, low-glare surfaces and soft, muted accent colors
   ========================================================= */

/* ===== Breadcrumb ===== */
.breadcrumb{
  margin-bottom:18px;
}
.breadcrumb ol{
  display:flex;
  align-items:center;
  gap:8px;
  list-style:none;
  font-size:13px;
  font-weight:500;
  color:var(--text-muted);
}
.breadcrumb li:not(:last-child)::after{
  content:'/';
  margin-left:8px;
  color:var(--border);
}
.breadcrumb a{color:var(--text-secondary); transition:color 0.2s;}
.breadcrumb a:hover{color:var(--gold-600);}
.breadcrumb li[aria-current="page"]{color:var(--navy-800); font-weight:600;}

/* ===== Blog hero ===== */
.blog-hero{
  padding:150px 0 56px;
  background:radial-gradient(ellipse 90% 60% at 50% 0%, #F0EEFB 0%, var(--bg) 65%);
}
.blog-hero .container{max-width:820px;}
.blog-hero .eyebrow{
  opacity:0;
  animation:blogFadeUp 0.7s var(--ease-out) forwards;
  animation-delay:0.05s;
}
.blog-hero h1{
  font-size:44px;
  line-height:1.14;
  margin:18px 0 16px;
  opacity:0;
  animation:blogFadeUp 0.75s var(--ease-out) forwards;
  animation-delay:0.14s;
}
.blog-hero-lede{
  font-size:17.5px;
  line-height:1.75;
  color:var(--text-secondary);
  max-width:640px;
  opacity:0;
  animation:blogFadeUp 0.75s var(--ease-out) forwards;
  animation-delay:0.24s;
}
@keyframes blogFadeUp{
  from{opacity:0; transform:translateY(14px);}
  to{opacity:1; transform:translateY(0);}
}

/* ===== Topic filter chips ===== */
.blog-topics{
  border-bottom:1px solid var(--border);
  background:var(--surface);
  position:sticky;
  top:0;
  z-index:40;
}
.blog-topics-inner{
  display:flex;
  gap:10px;
  overflow-x:auto;
  padding:14px 32px;
  scrollbar-width:none;
}
.blog-topics-inner::-webkit-scrollbar{display:none;}
.topic-chip{
  flex:0 0 auto;
  padding:8px 16px;
  border-radius:20px;
  font-size:13.5px;
  font-weight:600;
  color:var(--text-secondary);
  background:var(--bg);
  border:1px solid var(--border);
  white-space:nowrap;
  transition:background 0.2s, color 0.2s, border-color 0.2s;
}
.topic-chip:hover{border-color:var(--gold-500); color:var(--navy-900);}
.topic-chip.is-active{
  background:var(--navy-900);
  color:var(--gold-400);
  border-color:var(--navy-900);
}

/* ===== Featured post ===== */
.featured-post-section{padding:64px 0 20px;}
.featured-post{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:0;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:22px;
  overflow:hidden;
  box-shadow:var(--shadow-card);
  transition:box-shadow 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.featured-post:hover{box-shadow:var(--shadow-card-hover); transform:translateY(-3px);}
.featured-post-thumb{
  position:relative;
  min-height:280px;
  background:linear-gradient(150deg, var(--navy-800) 0%, var(--navy-700) 55%, var(--gold-600) 150%);
  display:block;
  overflow:hidden;
}
.featured-post-thumb-img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.featured-post-thumb-badge{
  position:absolute;
  top:20px; left:20px;
  background:var(--gold-500);
  color:var(--navy-900);
  font-family:'Fraunces',serif;
  font-weight:600;
  font-size:13px;
  padding:6px 14px;
  border-radius:20px;
}
.featured-post-body{
  padding:40px 44px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.featured-post-body h2{
  font-size:27px;
  line-height:1.28;
  margin:12px 0 14px;
}
.featured-post-body h2 a{transition:color 0.2s;}
.featured-post-body h2 a:hover{color:var(--gold-600);}
.featured-post-body p{
  font-size:16px;
  line-height:1.75;
  color:var(--text-secondary);
  margin-bottom:20px;
}

/* ===== Shared post meta / tags ===== */
.post-tag{
  display:inline-block;
  font-size:12.5px;
  font-weight:600;
  letter-spacing:0.02em;
  color:var(--gold-600);
  background:var(--gold-100);
  padding:5px 12px;
  border-radius:16px;
}
.post-meta{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:13px;
  color:var(--text-muted);
  font-weight:500;
  margin-top:4px;
}
.post-meta-dot{opacity:0.6;}
.post-readmore{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:14.5px;
  font-weight:600;
  color:var(--navy-800);
  transition:gap 0.2s var(--ease-out), color 0.2s;
}
.post-readmore:hover{color:var(--gold-600); gap:9px;}

/* ===== Latest articles grid ===== */
.latest-posts-section{padding:20px 0 100px;}
.blog-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:26px;
}
.blog-card{
  display:flex;
  flex-direction:column;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:18px;
  overflow:hidden;
  transition:transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.blog-card:hover{transform:translateY(-6px); box-shadow:var(--shadow-card-hover);}
.blog-card-thumb{
  display:block;
  position:relative;
  height:168px;
}
.blog-card-thumb::before{
  content:'';
  position:absolute;
  inset:0;
  display:flex;
}
.blog-card-thumb::after{
  position:absolute;
  top:50%; left:50%;
  transform:translate(-50%,-50%);
  font-size:38px;
}
.thumb-business{background:linear-gradient(140deg, #EDE9FE, #C7D2FE);}
.thumb-business::after{content:'📈';}
.thumb-travel{background:linear-gradient(140deg, #FDECC8, #FBBF4A);}
.thumb-travel::after{content:'✈️';}
.thumb-education{background:linear-gradient(140deg, #DBEAFE, #93C5FD);}
.thumb-education::after{content:'🎓';}
.thumb-finance{background:linear-gradient(140deg, #D1FAE5, #6EE7B7);}
.thumb-finance::after{content:'💰';}
.thumb-food{background:linear-gradient(140deg, #FEE2E2, #FCA5A5);}
.thumb-food::after{content:'🍽️';}
.thumb-beauty{background:linear-gradient(140deg, #FCE7F3, #F9A8D4);}
.thumb-beauty::after{content:'💄';}
.thumb-auto{background:linear-gradient(140deg, #E0E7FF, #A5B4FC);}
.thumb-auto::after{content:'🚗';}
.thumb-home{background:linear-gradient(140deg, #FEF3C7, #FCD34D);}
.thumb-home::after{content:'🏠';}

.blog-card-body{
  padding:22px 22px 24px;
  display:flex;
  flex-direction:column;
  flex:1;
}
.blog-card-body h3{
  font-size:18.5px;
  line-height:1.35;
  margin:12px 0 10px;
}
.blog-card-body h3 a{transition:color 0.2s;}
.blog-card-body h3 a:hover{color:var(--gold-600);}
.blog-card-body p{
  font-size:14.5px;
  line-height:1.7;
  color:var(--text-secondary);
  margin-bottom:16px;
  flex:1;
}

/* ===== Pagination ===== */
.blog-pagination{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:22px;
  margin-top:56px;
}
.page-btn{
  font-size:14px;
  font-weight:600;
  color:var(--navy-800);
  padding:10px 18px;
  border-radius:10px;
  border:1px solid var(--border);
  transition:background 0.2s, border-color 0.2s, color 0.2s;
}
.page-btn:hover{background:var(--navy-800); color:#fff; border-color:var(--navy-800);}
.page-btn.is-disabled{
  color:var(--text-muted);
  pointer-events:none;
  opacity:0.55;
}
.page-current{
  font-size:13.5px;
  color:var(--text-muted);
  font-weight:500;
}

/* ===== Responsive ===== */
@media (max-width:1080px){
  .blog-grid{grid-template-columns:repeat(2, 1fr);}
}
@media (max-width:900px){
  .blog-hero{padding:128px 0 44px;}
  .blog-hero h1{font-size:34px;}
  .featured-post{grid-template-columns:1fr;}
  .featured-post-thumb{min-height:200px;}
  .featured-post-body{padding:30px 28px;}
  .featured-post-body h2{font-size:23px;}
}
@media (max-width:640px){
  .blog-hero{padding:118px 0 36px;}
  .blog-hero h1{font-size:28px;}
  .blog-hero-lede{font-size:16px;}
  .blog-topics-inner{padding:12px 20px;}
  .featured-post-section{padding:44px 0 8px;}
  .featured-post-body{padding:26px 22px;}
  .blog-grid{grid-template-columns:1fr;}
  .blog-pagination{gap:14px;}
}
/* =========================================================
   Individual blog post page (blog/*.html)
   Extends the tokens above. Kept in this same file per the
   "one blogs.css for the whole blog section" rule.
   ========================================================= */

/* ===== Post hero ===== */
.post-hero{
  padding:148px 0 8px;
  background:#FFFFFF;
}
.post-hero-grid{
  max-width:1180px;
  display:grid;
  grid-template-columns:minmax(0,1fr) 300px;
  gap:56px;
  align-items:center;
}
.post-hero-copy{min-width:0;}
@media (max-width:960px){
  .post-hero-grid{grid-template-columns:minmax(0,1fr);}
}
.post-hero-cta{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:16px;
  padding:24px 24px 26px;
}
.post-hero-cta h5{
  font-family:'Fraunces',serif;
  font-size:14.5px;
  font-weight:600;
  color:var(--navy-900);
  margin-bottom:12px;
  text-transform:uppercase;
  letter-spacing:0.04em;
}
.post-hero-cta p{
  font-size:14.5px;
  color:var(--text-secondary);
  line-height:1.6;
  margin-bottom:16px;
}
.post-hero-cta .btn-primary{
  display:block;
  text-align:center;
  width:100%;
  padding:12px 16px;
}
@media (max-width:960px){
  .post-hero-cta{max-width:420px;}
}
.post-hero-copy .post-tag{margin-top:6px;}
.post-hero h1{
  font-size:38px;
  line-height:1.2;
  margin:16px 0 18px;
}
.post-byline{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
  padding-bottom:26px;
  border-bottom:1px solid var(--border);
}
.post-byline-avatar{
  width:38px; height:38px;
  border-radius:50%;
  background:linear-gradient(140deg, var(--navy-800), var(--navy-600));
  color:var(--gold-400);
  font-family:'Fraunces',serif;
  font-weight:600;
  font-size:14px;
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
}
.post-byline-who{font-size:13.5px; line-height:1.4;}
.post-byline-who strong{display:block; color:var(--navy-900); font-weight:600;}
.post-byline-who span{color:var(--text-muted);}
.post-byline-meta{
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:8px;
  font-size:13px;
  color:var(--text-muted);
  font-weight:500;
}
.post-share{
  display:flex;
  gap:8px;
  margin-left:auto;
}
@media (max-width:640px){
  .post-share{margin-left:0; width:100%; margin-top:4px;}
}
.post-share a{
  width:34px; height:34px;
  border-radius:50%;
  border:1px solid var(--border);
  display:flex; align-items:center; justify-content:center;
  color:var(--text-secondary);
  font-size:13px;
  transition:background 0.2s, color 0.2s, border-color 0.2s;
}
.post-share a:hover{background:var(--navy-900); color:var(--gold-400); border-color:var(--navy-900);}

/* ===== Post layout: content + sidebar ===== */
.post-layout-section{padding:56px 0 90px;}
.post-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 280px;
  gap:56px;
  max-width:1080px;
  margin:0 auto;
  align-items:start;
}
@media (max-width:960px){
  .post-layout{grid-template-columns:minmax(0,1fr); max-width:720px;}
}

/* ===== Sidebar ===== */
.post-sidebar{
  min-width:0;
  position:sticky;
  top:100px;
}
@media (max-width:960px){
  .post-sidebar{order:-1; position:static;}
}
.sidebar-box{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:16px;
  padding:22px 22px 24px;
}
.sidebar-box h5{
  font-family:'Fraunces',serif;
  font-size:14.5px;
  font-weight:600;
  color:var(--navy-900);
  margin-bottom:14px;
  text-transform:uppercase;
  letter-spacing:0.04em;
}
.toc-list{display:flex; flex-direction:column; gap:2px;}
.toc-list a{
  display:block;
  padding:7px 10px;
  border-radius:8px;
  font-size:14.5px;
  color:var(--text-secondary);
  line-height:1.4;
  transition:background 0.2s, color 0.2s;
}
.toc-list a:hover{background:var(--bg); color:var(--navy-900);}
.toc-list a.toc-sub{padding-left:22px; font-size:13.5px; color:var(--text-muted);}

/* ===== Responsive post image ===== */
.post-image{
  margin:28px 0;
}
.post-image img{
  width:100%;
  height:auto;
  display:block;
  border-radius:16px;
  border:1px solid var(--border);
}
.post-image figcaption{
  font-size:13.5px;
  color:var(--text-muted);
  text-align:center;
  margin-top:10px;
}

/* ===== Quick answer / TL;DR box ===== */
.quick-answer{
  background:var(--gold-100);
  border:1px solid #F0D9A0;
  border-left:4px solid var(--gold-500);
  border-radius:14px;
  padding:22px 26px;
  margin:28px 0 8px;
}
.quick-answer p:first-child{
  font-family:'Fraunces',serif;
  font-weight:600;
  font-size:13px;
  text-transform:uppercase;
  letter-spacing:0.04em;
  color:var(--gold-600);
  margin-bottom:8px;
}
.quick-answer p{font-size:17px; line-height:1.7; color:var(--text-primary);}

/* ===== Article body typography ===== */
.post-body{
  font-size:18px;
  line-height:1.85;
  color:var(--text-primary);
  min-width:0;
}
.post-body > p{margin:20px 0;}
.post-body h2{
  font-size:27px;
  line-height:1.3;
  margin:48px 0 16px;
  scroll-margin-top:104px;
}
.post-body h3{
  font-size:21px;
  line-height:1.35;
  margin:32px 0 12px;
  scroll-margin-top:104px;
}
.post-body ul, .post-body ol{
  margin:18px 0 18px 22px;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.post-body li{font-size:17.5px; line-height:1.7;}
.post-body strong{color:var(--navy-900); font-weight:600;}
.post-body a{color:var(--navy-700); text-decoration:underline; text-decoration-color:var(--border); text-underline-offset:3px;}
.post-body a:hover{color:var(--gold-600);}
.post-lede{
  font-size:20px;
  line-height:1.7;
  color:var(--text-secondary);
  margin:26px 0 0;
}

/* ===== Comparison table ===== */
.table-wrap{
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  margin:24px 0 32px;
  border:1px solid var(--border);
  border-radius:14px;
  max-width:100%;
}
.comparison-table{
  width:100%;
  border-collapse:collapse;
  font-size:15px;
  min-width:560px;
}
.comparison-table caption{
  text-align:left;
  font-size:13.5px;
  color:var(--text-muted);
  padding:12px 18px 0;
}
.comparison-table th, .comparison-table td{
  padding:14px 18px;
  text-align:left;
  border-bottom:1px solid var(--border);
  white-space:nowrap;
}
.comparison-table thead th{
  background:var(--navy-900);
  color:#fff;
  font-family:'Fraunces',serif;
  font-weight:600;
  font-size:13.5px;
}
.comparison-table tbody tr:last-child td{border-bottom:none;}
.comparison-table tbody tr:nth-child(even){background:var(--bg);}
.comparison-table td strong{color:var(--navy-900);}

/* ===== Ranked pick cards ===== */
.pick-card{
  border:1px solid var(--border);
  border-radius:16px;
  padding:26px 28px;
  margin:22px 0 32px;
  background:var(--surface);
}
.pick-card-head{
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:6px;
}
.pick-rank{
  flex-shrink:0;
  width:38px; height:38px;
  border-radius:10px;
  background:var(--navy-900);
  color:var(--gold-400);
  font-family:'Fraunces',serif;
  font-weight:700;
  font-size:15px;
  display:flex; align-items:center; justify-content:center;
}
.pick-card h3{margin:0;}
.pick-bestfor{
  display:inline-block;
  font-size:12.5px;
  font-weight:600;
  color:var(--gold-600);
  background:var(--gold-100);
  padding:4px 12px;
  border-radius:14px;
  margin:10px 0 14px;
}
.pros-cons{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
  margin:16px 0 4px;
}
@media (max-width:560px){
  .pros-cons{grid-template-columns:1fr;}
}
.pros-cons > div{
  border-radius:12px;
  padding:14px 16px;
  font-size:14.5px;
  line-height:1.6;
}
.pros{background:#EAF7EF;}
.cons{background:#FCECEC;}
.pros-cons h6{
  font-size:12.5px;
  text-transform:uppercase;
  letter-spacing:0.04em;
  font-weight:700;
  margin-bottom:8px;
}
.pros h6{color:#1E7A4C;}
.cons h6{color:#B8342E;}
.pros-cons ul{margin:0 0 0 16px; display:flex; flex-direction:column; gap:5px;}
.pros-cons li{font-size:14.5px; line-height:1.55;}

/* ===== Methodology / callout box ===== */
.callout-box{
  display:flex;
  gap:16px;
  background:var(--bg);
  border:1px solid var(--border);
  border-radius:14px;
  padding:22px 24px;
  margin:24px 0;
}
.callout-box .callout-icon{font-size:26px; line-height:1;}
.callout-box p{font-size:16px; line-height:1.7; color:var(--text-secondary); margin:0;}
.callout-box strong{color:var(--navy-900);}

/* ===== FAQ ===== */
.faq-list{margin-top:8px;}
.faq-item{
  border-bottom:1px solid var(--border);
  padding:6px 0;
}
.faq-item summary{
  list-style:none;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 4px;
  font-family:'Fraunces',serif;
  font-weight:600;
  font-size:17.5px;
  color:var(--navy-900);
}
.faq-item summary::-webkit-details-marker{display:none;}
.faq-item summary::after{
  content:'+';
  flex-shrink:0;
  font-size:20px;
  color:var(--gold-600);
  transition:transform 0.25s var(--ease-out);
}
.faq-item[open] summary::after{transform:rotate(45deg);}
.faq-item p{
  font-size:16.5px;
  line-height:1.75;
  color:var(--text-secondary);
  padding:0 4px 16px;
}

/* ===== Author bio card ===== */
.author-bio{
  display:flex;
  gap:18px;
  align-items:flex-start;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:16px;
  padding:26px;
  margin:48px 0 0;
}
.author-bio-avatar{
  width:56px; height:56px;
  border-radius:50%;
  flex-shrink:0;
  background:linear-gradient(140deg, var(--navy-800), var(--navy-600));
  color:var(--gold-400);
  font-family:'Fraunces',serif;
  font-weight:700;
  font-size:19px;
  display:flex; align-items:center; justify-content:center;
}
.author-bio h5{
  font-family:'Fraunces',serif;
  font-size:16px;
  font-weight:600;
  color:var(--navy-900);
  margin-bottom:6px;
}
.author-bio p{font-size:14.5px; line-height:1.7; color:var(--text-secondary); margin:0;}

/* ===== Related posts ===== */
.related-posts-section{padding:20px 0 90px;}
.related-posts-section .section-head{max-width:820px; margin-left:auto; margin-right:auto;}
.related-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:26px;
  max-width:1080px;
  margin:0 auto;
}
@media (max-width:960px){
  .related-grid{grid-template-columns:repeat(2, 1fr); max-width:720px;}
}
@media (max-width:640px){
  .related-grid{grid-template-columns:1fr;}
  .post-hero{padding:120px 0 4px;}
  .post-hero h1{font-size:27px;}
  .post-layout-section{padding:36px 0 60px;}
  .pick-card{padding:20px 20px;}
}

/* ===== Post page: white background page-wide ===== */
body.post-page{background:#FFFFFF;}
body.post-page .post-layout-section,
body.post-page .related-posts-section{background:#FFFFFF;}