/* =====================================================
   BestU.in — Blog Pages Stylesheet
   Covers : blog.html (listing) + blog-detail.html
   Depends on : style.css (main site stylesheet)
   Usage  : <link href="assets/css/blog.css" rel="stylesheet" />
===================================================== */


/* ════════════════════════════════════════════════════
   SHARED — Sidebar Widgets (used on both pages)
════════════════════════════════════════════════════ */

.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}
.sidebar-widget h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: .82rem;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--teal);
}

/* Category list */
.cat-list { list-style: none; padding: 0; margin: 0; }
.cat-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.cat-list li:last-child { border-bottom: none; }
.cat-list a {
  font-size: .88rem;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color .2s;
}
.cat-list a:hover { color: var(--teal); }
.cat-list a i { color: var(--teal); font-size: .8rem; }
.cat-count {
  background: var(--bg);
  color: var(--muted);
  font-size: .72rem;
  font-weight: 600;
  border-radius: 50px;
  padding: 2px 9px;
}

/* Recent posts */
.recent-post {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.recent-post:last-child { border-bottom: none; padding-bottom: 0; }
.rp-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--teal);
  flex-shrink: 0;
}
.rp-info a {
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  line-height: 1.35;
  display: block;
}
.rp-info a:hover { color: var(--teal); }
.rp-info span { font-size: .74rem; color: var(--muted); }

/* Tag cloud */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: .78rem;
  font-weight: 500;
  border-radius: 50px;
  padding: 5px 14px;
  text-decoration: none;
  transition: all .2s;
}
.tag-cloud a:hover {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}

/* Search bar */
.blog-search { position: relative; }
.blog-search input {
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: .9rem;
  padding: 10px 44px 10px 14px;
  width: 100%;
  outline: none;
  transition: border-color .2s;
}
.blog-search input:focus { border-color: var(--teal); }
.blog-search button {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--teal);
  font-size: 1rem;
  cursor: pointer;
}


/* ════════════════════════════════════════════════════
   BLOG LISTING PAGE  (blog.html)
════════════════════════════════════════════════════ */

/* Post card */
.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all .3s;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-5px);
  border-color: var(--teal);
}
.blog-thumb {
  width: 100%;
  height: 210px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--teal);
  flex-shrink: 0;
}
.blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-body {
  padding: 22px 22px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-cat {
  display: inline-block;
  background: rgba(0,184,169,.1);
  color: var(--teal);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 50px;
  padding: 4px 12px;
  margin-bottom: 12px;
}
.blog-card h5 {
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.45;
}
.blog-card h5 a {
  color: var(--navy);
  text-decoration: none;
  transition: color .2s;
}
.blog-card h5 a:hover { color: var(--teal); }
.blog-card p {
  font-size: .86rem;
  color: var(--muted);
  margin-bottom: 0;
  flex: 1;
}
.blog-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: .78rem;
  color: var(--muted);
}
.blog-meta i { color: var(--teal); }

/* Featured post */
.blog-featured {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  gap: 0;
  transition: all .3s;
  margin-bottom: 32px;
}
.blog-featured:hover {
  box-shadow: var(--shadow);
  border-color: var(--teal);
}
.blog-featured .feat-img {
  width: 44%;
  min-height: 280px;
  background: linear-gradient(135deg, var(--navy) 0%, #1a3a6e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--teal);
  flex-shrink: 0;
}
.blog-featured .feat-body {
  padding: 36px 36px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.feat-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,184,169,.12);
  border: 1px solid rgba(0,184,169,.3);
  color: var(--teal);
  border-radius: 50px;
  padding: 5px 14px;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  margin-bottom: 14px;
  width: fit-content;
}
.blog-featured h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.35;
}
.blog-featured h3 a { color: var(--navy); text-decoration: none; }
.blog-featured h3 a:hover { color: var(--teal); }
.blog-featured p { color: var(--muted); font-size: .92rem; margin-bottom: 20px; }

/* Pagination */
.blog-pagination .page-link {
  color: var(--navy);
  border-color: var(--border);
  border-radius: 8px !important;
  margin: 0 3px;
  font-size: .88rem;
  font-weight: 600;
}
.blog-pagination .page-item.active .page-link {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}
.blog-pagination .page-link:hover {
  background: rgba(0,184,169,.1);
  color: var(--teal);
}


/* ════════════════════════════════════════════════════
   BLOG DETAIL PAGE  (blog-detail.html)
════════════════════════════════════════════════════ */

/* Post hero */
.post-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%);
  padding: 60px 0 50px;
  color: #fff;
}
.post-hero .post-cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,184,169,.18);
  border: 1px solid rgba(0,184,169,.4);
  color: var(--teal);
  border-radius: 50px;
  padding: 5px 16px;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.post-hero h1 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  line-height: 1.28;
  margin-bottom: 16px;
}
.post-hero .post-excerpt {
  color: rgba(255,255,255,.68);
  font-size: 1rem;
  max-width: 660px;
  margin-bottom: 24px;
}
.post-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: .82rem;
  color: rgba(255,255,255,.55);
}
.post-meta-bar span { display: flex; align-items: center; gap: 6px; }
.post-meta-bar i { color: var(--teal); }

/* Featured image placeholder */
.post-img-wrap {
  background: linear-gradient(135deg, #0F1B35 0%, #1a3a6e 100%);
  border-radius: var(--radius);
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  margin-bottom: 36px;
  border: 1px solid var(--border);
}

/* Article body typography */
.article-body {
  font-size: .97rem;
  line-height: 1.9;
  color: var(--text);
}
.article-body h2 {
  font-size: 1.3rem;
  color: var(--navy);
  margin-top: 38px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--teal);
}
.article-body h3 {
  font-size: 1.08rem;
  color: var(--navy);
  margin-top: 26px;
  margin-bottom: 10px;
}
.article-body p { margin-bottom: 18px; }
.article-body ul,
.article-body ol { padding-left: 22px; margin-bottom: 18px; }
.article-body li { margin-bottom: 8px; }
.article-body a { color: var(--teal); font-weight: 500; }
.article-body a:hover { color: var(--teal-d); }

/* Tip callout box */
.tip-box {
  background: rgba(0,184,169,.07);
  border-left: 4px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px;
  margin: 24px 0;
}
.tip-box strong {
  display: block;
  color: var(--teal);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.tip-box p { margin: 0; font-size: .91rem; color: var(--text); }

/* Warning callout box */
.warn-box {
  background: #fffbeb;
  border-left: 4px solid #f6ad55;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px;
  margin: 24px 0;
}
.warn-box strong {
  color: #c05621;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 6px;
}
.warn-box p { margin: 0; font-size: .91rem; }

/* Numbered tip cards */
.tip-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 16px;
  transition: box-shadow .2s;
}
.tip-card:hover { box-shadow: var(--shadow); }
.tip-num {
  width: 40px;
  height: 40px;
  background: var(--navy);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: .95rem;
  flex-shrink: 0;
}
.tip-card h6 { font-size: .95rem; color: var(--navy); margin-bottom: 5px; }
.tip-card p  { font-size: .86rem; color: var(--muted); margin: 0; }

/* Post footer — tags + share bar */
.post-footer-bar {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.post-tags span {
  font-size: .8rem;
  font-weight: 700;
  color: var(--navy);
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.post-tags a {
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: .78rem;
  border-radius: 50px;
  padding: 4px 13px;
  text-decoration: none;
  transition: all .2s;
}
.post-tags a:hover { background: var(--teal); color: #fff; border-color: var(--teal); }
.share-btns { display: flex; gap: 8px; align-items: center; }
.share-btns span {
  font-size: .8rem;
  font-weight: 700;
  color: var(--navy);
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.share-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  text-decoration: none;
  transition: opacity .2s;
}
.share-btn:hover { opacity: .82; }
.share-btn.tw { background: #1da1f2; color: #fff; }
.share-btn.wa { background: #25d366; color: #fff; }
.share-btn.li { background: #0077b5; color: #fff; }
.share-btn.cp { background: var(--navy); color: #fff; cursor: pointer; border: none; }

/* Author box */
.author-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-top: 36px;
}
.author-avatar {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #fff;
  flex-shrink: 0;
}
.author-info h6  { font-size: .95rem; color: var(--navy); margin-bottom: 2px; }
.author-role     { font-size: .78rem; color: var(--teal); font-weight: 600; margin-bottom: 8px; }
.author-info p   { font-size: .86rem; color: var(--muted); margin: 0; }

/* Related posts */
.related-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all .3s;
  height: 100%;
}
.related-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--teal);
  transform: translateY(-4px);
}
.related-thumb {
  height: 150px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  color: var(--teal);
}
.related-body { padding: 16px 18px; }
.related-cat {
  font-size: .7rem;
  font-weight: 700;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 8px;
}
.related-card h6 { font-size: .9rem; color: var(--navy); margin-bottom: 6px; line-height: 1.4; }
.related-card h6 a { color: var(--navy); text-decoration: none; }
.related-card h6 a:hover { color: var(--teal); }
.related-meta { font-size: .76rem; color: var(--muted); }

/* Table of contents */
.toc-list { list-style: none; padding: 0; margin: 0; }
.toc-list li {
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.toc-list li:last-child { border-bottom: none; }
.toc-list a {
  font-size: .86rem;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  transition: color .2s;
}
.toc-list a:hover { color: var(--teal); }
.toc-num {
  color: var(--teal);
  font-weight: 700;
  font-size: .8rem;
  flex-shrink: 0;
}


/* ════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  /* Listing */
  .blog-featured { flex-direction: column; }
  .blog-featured .feat-img { width: 100%; min-height: 180px; }
  .blog-featured .feat-body { padding: 22px 20px; }

  /* Detail */
  .post-hero { padding: 40px 0 36px; }
  .post-img-wrap { height: 200px; font-size: 3.5rem; }
  .author-box { flex-direction: column; }
  .post-footer-bar { flex-direction: column; align-items: flex-start; }
}


/* HOME PAGE BLOG CSS */
.swiper-slide {
    height: auto;
    display: flex;
  }

  .blog-card {
    height: 100%;
    display: flex;
    flex-direction: column;
  }

  .swiper-button-next,
  .swiper-button-prev {
    width: 40px;
    height: 40px;
    margin-top: 10px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  }

  .swiper-button-next:after,
  .swiper-button-prev:after {
    font-size: 14px;
    font-weight: bold;
    color: #000;
  }
  
  
.article-body h2 {
font-size: 1.3rem;
}

.article-body h3 {
	font-size: 1.15rem;
}

.article-body h4 {
	font-size: 1rem;
}

/* Wrapper for mobile scroll */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
}

/* Main table */
.article-body table {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
    margin: 20px 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    min-width: 600px;
}

/* Header */
.article-body th {
    background: #4CAF50;
    color: #fff;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    border: 1px solid #e6e6e6;
}

/* Cells */
.article-body td {
    padding: 12px 15px;
    border: 1px solid #eaeaea;
    color: #333;
}

/* Row effects */
.article-body tr:nth-child(even) {
    background-color: #fafafa;
}

.article-body tr:hover {
    background-color: #f1f1f1;
    transition: 0.2s;
}

/* Responsive */
@media (max-width: 768px) {
    .article-body table {
        min-width: 100%;
        font-size: 14px;
    }

    .article-body th,
    .article-body td {
        padding: 10px;
    }
}