/* =====================================================
   BLOG DETAIL — PREMIUM EDITORIAL UI (2026 FINAL)
   Visa Travel Expert
===================================================== */

:root{
  --primary:#ff6a00;
  --primary-soft:#fff4ec;
  --dark:#111;
  --text:#444;
  --light:#777;
  --bg:#f5f7fa;
  --white:#ffffff;
}

/* =====================================================
   GLOBAL
===================================================== */

body{
  margin:0;
  font-family:Poppins, Arial, sans-serif;
  background:var(--bg);
  color:var(--dark);
  line-height:1.7;
}

/* =====================================================
   READING PROGRESS BAR
===================================================== */

#readingProgress{
  position:fixed;
  top:0;
  left:0;
  height:4px;
  width:0%;
  background:var(--primary);
  z-index:9999;
}

/* =====================================================
   HERO
===================================================== */

.blogD-hero{
  height:340px;
  background:url('../images/blog/blog-banner.webp') center/cover no-repeat;
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
}

.blogD-hero::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(
      rgba(0,0,0,.45),
      rgba(0,0,0,.25)
  );
}

.hero-inner{
  position:relative;
  max-width:900px;
  padding:0 20px;
  text-align:center;
}

.hero-inner h1{
  color:#ffffff;
    text-shadow:
      0 3px 12px rgba(0,0,0,.6),
      0 0 30px rgba(0,0,0,.3);
  font-size:42px;
  font-weight:700;
  line-height:1.3;
}

/* =====================================================
   ARTICLE SECTION
===================================================== */

.blogD-section{
  max-width:860px;
  margin:50px auto 80px;
  background:var(--white);
  padding:50px 40px;
  border-radius:16px;
  box-shadow:0 20px 60px rgba(0,0,0,.08);
  position:relative;
}

/* =====================================================
   ARTICLE HEADER
===================================================== */

.article-header{
  text-align:center;
  margin-bottom:30px;
}

/* BACK BUTTON */

.back-blog-btn{
  display:inline-block;
  margin-bottom:14px;
  text-decoration:none;
  color:var(--primary);
  font-weight:600;
  background:var(--primary-soft);
  padding:10px 18px;
  border-radius:30px;
  transition:.25s;
}

.back-blog-btn:hover{
  background:#ffe6d4;
}

/* META */

.blogD-meta{
  color:var(--light);
  font-size:14px;
}

.reading-time{
  font-size:13px;
  color:#999;
  margin-top:6px;
}

/* =====================================================
   FEATURE IMAGE
===================================================== */

.blogD-main-img{
  width:100%;
  border-radius:14px;
  margin:25px 0 35px;
  box-shadow:0 10px 30px rgba(0,0,0,.06);
}

/* =====================================================
   CONTENT (MAGAZINE STYLE)
===================================================== */

.blogD-content{
  font-size:18px;
  line-height:1.9;
  color:var(--text);
}

.blogD-content p{
  margin-bottom:20px;
}

.blogD-content h2{
  margin-top:35px;
  font-size:26px;
}

.blogD-content h3{
  margin-top:28px;
  font-size:22px;
}

.blogD-content img{
  width:100%;
  border-radius:12px;
  margin:25px 0;
}

/* =====================================================
   STICKY SHARE BUTTONS
===================================================== */

.share-sticky{
  position:sticky;
  top:120px;
  float:left;
  margin-left:-70px;
  display:flex;
  flex-direction:column;
  gap:12px;
}

.share-sticky a,
.share-sticky button{
  width:42px;
  height:42px;
  border-radius:50%;
  border:none;
  background:#fff;
  box-shadow:0 6px 18px rgba(0,0,0,.15);
  cursor:pointer;
  font-size:18px;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:.25s;
}

.share-sticky a:hover,
.share-sticky button:hover{
  transform:translateY(-3px);
}

/* =====================================================
   CTA BOX (CONVERSION BOOSTER)
===================================================== */

.blog-cta{
  margin-top:50px;
  padding:35px;
  border-radius:16px;
  background:linear-gradient(135deg,#fff4ec,#ffe3cf);
  text-align:center;
}

.blog-cta h3{
  margin-bottom:10px;
  font-size:22px;
}

.blog-cta p{
  color:#555;
}

.cta-btn{
  display:inline-block;
  margin-top:14px;
  background:var(--primary);
  color:#fff;
  padding:12px 24px;
  border-radius:30px;
  text-decoration:none;
  font-weight:600;
  transition:.25s;
}

.cta-btn:hover{
  background:#e35e00;
}

/* =====================================================
   AUTHOR BOX
===================================================== */

.author-box{
  margin-top:35px;
  padding:25px;
  background:#f1f4f8;
  border-radius:14px;
}

.author-box h4{
  margin:0 0 8px;
}

.author-box p{
  color:#555;
  margin:0;
}

/* =====================================================
   PREV / NEXT NAV
===================================================== */

.blogD-nav{
  margin-top:50px;
  padding-top:25px;
  border-top:1px solid #eee;
  display:flex;
  justify-content:space-between;
  gap:15px;
}

.blogD-nav a{
  text-decoration:none;
  color:var(--primary);
  font-weight:600;
}

.blogD-nav a:hover{
  text-decoration:underline;
}

/* =====================================================
   RELATED POSTS
===================================================== */

.rel-heading{
  margin-top:60px;
  font-size:24px;
  font-weight:700;
}

.rel-grid{
  margin-top:18px;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:20px;
}

.rel-card{
  text-decoration:none;
  background:#fff;
  border-radius:14px;
  overflow:hidden;
  color:#222;
  box-shadow:0 10px 30px rgba(0,0,0,.08);
  transition:.3s;
}

.rel-card:hover{
  transform:translateY(-6px);
  box-shadow:0 18px 45px rgba(0,0,0,.12);
}

.rel-card img{
  width:100%;
  height:160px;
  object-fit:cover;
}

.rel-card p{
  padding:14px;
  font-size:15px;
}

/* =====================================================
   MOBILE OPTIMIZATION
===================================================== */

@media(max-width:992px){

  .share-sticky{
    display:none;
  }

}

@media(max-width:768px){

  .hero-inner h1{
    font-size:28px;
  }

  .blogD-section{
    margin:30px 15px 60px;
    padding:30px 20px;
  }

  .blogD-content{
    font-size:16px;
  }

  .blogD-nav{
    flex-direction:column;
  }
}

/* TOAST MESSAGE */

.blog-toast{
  position:fixed;
  bottom:30px;
  left:50%;
  transform:translateX(-50%);
  background:#111;
  color:#fff;
  padding:12px 20px;
  border-radius:30px;
  opacity:0;
  transition:.3s;
  z-index:9999;
  font-size:14px;
}

.blog-toast.show{
  opacity:1;
}
