/* ============================================
   BLOG PAGE STYLES
   ============================================ */

.blog-section {
  background-color: #fff;
}
.banner-heading{
    font-size: calc(1.8rem + 2vw);
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

/* --- Top Row Layout --- */
.blog-top-row {
  margin-bottom: 60px;
}

/* --- Blog Card Base --- */
.blog-card {
  margin-bottom: 30px;
}

.blog-card-img {
  width: 100%;
  overflow: hidden;
 
  background: #e9ecef;
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}

.blog-card:hover .blog-card-img img {
  transform: scale(1.03);
}

/* --- Small Card (Left Column) --- */
.blog-card-sm .blog-card-img {
  height: 180px;
}

/* --- Large Card (Center Column) --- */
.blog-card-lg .blog-card-img-lg {
  height: 320px;
}

.blog-card-title-lg {
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.3;
}

/* --- Card Meta (tag, read time, date) --- */
.blog-card-meta {
     display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    margin-bottom: 16px;
    font-size: 14px;
    color: #888;

}

.blog-tag {
  font-weight: 600;
  color: #1a1a1a;
}

.blog-dot {
  font-size: 16px;
  color: #888;
}

.blog-date {
  margin-left: auto;
  color: #888;
}

/* --- Card Title --- */
.blog-card-title {
font-size: clamp(16px, 2.6vw, 26px);
 
  color: #303030;
  line-height: 1.4;
  margin: 0;
  transition: color 0.2s ease;
}

.blog-card:hover .blog-card-title {
  color: #333;
}

/* --- Most Popular Sidebar --- */
.blog-sidebar {
  padding-left: 10px;
}

.blog-sidebar-title {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 20px;
}

.blog-sidebar-item {
  padding: 18px 0;
  border-top: 1px solid #e0e0e0;
}

.blog-sidebar-item:last-child {
  border-bottom: 1px solid #e0e0e0;
}

.blog-sidebar-heading {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.4;
  margin: 0;
  transition: color 0.2s ease;
  cursor: pointer;
}

.blog-sidebar-heading:hover {
  color: #555;
}

.blog-sidebar-item .blog-card-meta {
  margin-top: 0;
  margin-bottom: 6px;
}

/* --- Blog Grid --- */

a.blog-card-grid {
  text-decoration: none;
  color: inherit;
  display: block;
}

.blog-card-grid .blog-card-img {
  aspect-ratio: 3 / 2;

}

/* --- Pagination --- */
.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 60px;
}

.blog-pagination .page-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  color: #1a1a1a;
  text-decoration: none;
  transition: all 0.2s ease;
}

.blog-pagination .page-num:hover {
  background-color: #f0f0f0;
}

.blog-pagination .page-num.active {
  background-color: #1a1a1a;
  color: #fff;
}

.blog-pagination .page-dots {
  font-size: 14px;
  color: #888;
  letter-spacing: 2px;
}

.blog-pagination .page-next {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #1a1a1a;
  text-decoration: none;
  transition: all 0.2s ease;
}

.blog-pagination .page-next:hover {
  background-color: #f0f0f0;
}

/* --- Blog Responsive --- */
@media (max-width: 991px) {
  .blog-top-row {
    margin-bottom: 40px;
  }

  .blog-sidebar {
    padding-left: 0;
    margin-top: 20px;
  }

  .blog-card-lg .blog-card-img-lg {
    height: 250px;
  }
}

@media (max-width: 767px) {
  .blog-card-sm .blog-card-img {
    height: 200px;
  }

  .blog-card-lg .blog-card-img-lg {
    height: 220px;
  }

  .blog-card-grid .blog-card-img {
    height: 200px;
  }

  .blog-grid {
    row-gap: 25px;
  }

  .blog-pagination {
    margin-top: 40px;
  }
}

/* ============================================
   BLOG DETAIL PAGE STYLES
   ============================================ */

/* --- Sticky Breadcrumb Bar --- */
.blog-detail-breadcrumb-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  z-index: 999;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  padding: 12px 0;
}

.blog-detail-breadcrumb-bar.visible {
  transform: translateY(0);
}

.breadcrumb-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.breadcrumb-links {
  font-size: 14px;
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 80%;
}

.breadcrumb-links a {
  color: #1a1a1a;
  font-weight: 500;
  text-decoration: none;
}

.breadcrumb-links a:hover {
  text-decoration: underline;
}

.breadcrumb-sep {
  margin: 0 8px;
  color: #999;
}

.breadcrumb-current {
  color: #1a1a1a;
  font-weight: 500;
  text-decoration: underline;
}

.breadcrumb-actions,
.blog-detail-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.action-btn {
  background: none;
  border: none;
  font-size: 18px;
  color: #555;
  cursor: pointer;
  padding: 6px;
  transition: color 0.2s ease;
}

.action-btn:hover {
  color: #1a1a1a;
}

/* --- Blog Detail Hero --- */
.blog-detail-hero {
  padding: 40px 0 30px;
}

.blog-detail-hero-inner {
  max-width: 700px;
  margin: 0 auto;
}

.blog-detail-category {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 20px;
  color: var(--main-color);
}

.blog-detail-category a {
  color: var(--main-color);
  text-decoration: none;
}

.blog-detail-category a:hover {
  text-decoration: underline;
}

.blog-detail-title {
 font-size: clamp(28px, 3.5vw, 44px);
    font-weight: 400;
    /* color: #1a1a1a; */
    line-height: 1.3;
    margin-bottom: 24px;
}

.blog-detail-author {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.author-bio {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  margin: 0;
  max-width: 600px;
}

.author-bio strong {
  color: #1a1a1a;
}

.blog-detail-meta {
  font-size: 13px;
  color: #888;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.blog-detail-readtime {
  font-size: 13px;
  color: #888;
  margin-top: 4px;
}

/* --- Featured Image --- */
.blog-detail-featured-img {
  margin-bottom: 80px;
}

.blog-detail-featured-img img {
  width: 100%;
 max-width: 80%;
 aspect-ratio: 2 / 1;
  margin: 0 auto;
  display: block;
  border-radius: 0;
  object-fit: cover;
}

/* --- Content Section (3 Columns) --- */
.blog-detail-content-section {
  padding-bottom: 100px;
}

/* --- Table of Contents (Left Sidebar) --- */
.blog-toc {
  position: sticky;
  top: 100px;
  padding-right: 20px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.blog-toc-title {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 20px;
}

.blog-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.blog-toc-list li {
  margin-bottom: 16px;
}

.blog-toc-list li a {
  font-size: 14px;
  color: #555;
  text-decoration: none;
  line-height: 1.5;
  transition: color 0.2s ease;
  display: block;
}

.blog-toc-list li a:hover {
  color: var(--main-color);
}

.blog-toc-list li a.active {
  color: var(--main-color);
  font-weight: 600;
}

/* --- Share Toast Notification --- */
.share-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1a1a1a;
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 9999;
  pointer-events: none;
}

.share-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* --- Article Content --- */
.blog-detail-article {
  max-width: 100%;
}

.blog-detail-article p {
  font-size: 16px;
  color: #333;
  line-height: 1.8;
  margin-bottom: 24px;
  font-weight: 300;
  letter-spacing: 0.3px;
}

.blog-detail-article h2 {
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 300;
  color: #1a1a1a;
  margin-top: 48px;
  margin-bottom: 20px;
  line-height: 1.3;
}

.blog-detail-article h3 {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 600;
  color: #1a1a1a;
  margin-top: 36px;
  margin-bottom: 16px;
  line-height: 1.3;
}

.blog-detail-article a {
  color: var(--main-color);
  text-decoration: underline;
}

.blog-detail-article a:hover {
  color: #c99400;
}

/* Nutshell / Highlight Box */
.blog-nutshell-box {
  background-color: #fef8e7;
  padding: 30px 35px;
  border-radius: 8px;
  margin: 36px 0;
  border-left: 4px solid var(--main-color);
}

.blog-nutshell-box h4 {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 14px;
}

.blog-nutshell-box p {
  font-size: 15px;
  color: #444;
  line-height: 1.7;
  margin-bottom: 0;
}

/* Comparison Table */
.blog-table-wrapper {
  overflow-x: auto;
  margin: 30px 0;
}

.blog-comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.blog-comparison-table th {
  background: #1a1a1a;
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
}

.blog-comparison-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #e8e8e8;
  color: #333;
}

.blog-comparison-table tr:nth-child(even) td {
  background: #f9f9f9;
}

/* --- You May Also Like (Right Sidebar) --- */
.blog-also-like {
  position: sticky;
  top: 100px;
  padding-left: 20px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.blog-also-like-title {
  font-size: 20px;
  
  color: var(--main-color);
  margin-bottom: 24px;
}

.blog-also-like-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.blog-also-like-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--main-color);
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.blog-also-like-list li:hover {
  opacity: 0.7;
}

.also-like-num {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  min-width: 18px;
}

.also-like-text {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.4;
}

/* --- Blog Detail Responsive --- */
@media (max-width: 991px) {
  .blog-toc {
    position: relative;
    top: auto;
    padding-right: 0;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e8e8e8;
  }

  .blog-also-like {
    position: relative;
    top: auto;
    padding-left: 0;
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid #e8e8e8;
  }

  .blog-detail-hero-inner {
    max-width: 100%;
  }

  .blog-detail-featured-img img {
    max-width: 100%;
  }
}

@media (max-width: 767px) {
  .blog-detail-hero {
    padding: 30px 0 20px;
  }

  .blog-detail-author {
    flex-direction: column;
    gap: 12px;
  }

  .breadcrumb-links {
    max-width: 70%;
    font-size: 13px;
  }

  .blog-detail-content-section {
    padding-bottom: 60px;
  }

  .blog-nutshell-box {
    padding: 20px 24px;
  }
}

/* ============================================
   BLOG CTA SECTION
   ============================================ */

.blog-cta-section {
  background: linear-gradient(135deg, #510a88 0%, #7e4ca4 100%);
  padding: 70px 0;
}

.blog-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.blog-cta-content {
  flex: 1;
  min-width: 280px;
}

.blog-cta-heading {
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 600;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 16px;
}

.blog-cta-heading span {
  color: #f84d50;
}

.blog-cta-text {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  margin: 0;
  max-width: 580px;
}

.blog-cta-actions {
  flex-shrink: 0;
}

/* --- Animated Button (btn-animation white-btn) --- */
.btn-animation {
  position: relative;
  display: inline-block;
  padding: 14px 36px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid #ffffff;
  border-radius: 50px;
  overflow: hidden;
  transition: color 0.3s ease, background 0.3s ease;
}

.btn-animation .text {
  position: relative;
  z-index: 1;
}

.btn-animation .top-key {
  position: absolute;
  top: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #f84d50;
  transition: width 0.3s ease;
}

.btn-animation .bottom-key-2 {
  position: absolute;
  bottom: -2px;
  right: 0;
  width: 0;
  height: 2px;
  background: #f84d50;
  transition: width 0.3s ease;
}

.btn-animation:hover .top-key,
.btn-animation:hover .bottom-key-2 {
  width: 100%;
}

.btn-animation.white-btn {
  color: #ffffff;
  background: transparent;
}

.btn-animation.white-btn:hover {
  color: #ffffff;
  background: #f84d50;
  border-color: #f84d50;
}

@media (max-width: 767px) {
  .blog-cta-inner {
    flex-direction: column;
    
    align-items: flex-start;
  }

  .blog-cta-section {
    padding: 50px 0;
  }
}
