/* ===== SECTION ===== */
.blog-section {
  padding: 80px 0;
  background: #f8fafc;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

/* ===== HEADER ===== */
.blog-header {
  margin-bottom: 40px;
}

.blog-header h1 {
  font-size: 36px;
  font-weight: 700;
  color: #0f172a;
}

.blog-header p {
  color: #64748b;
  margin-top: 6px;
}

/* ===== FEATURED POST (FIRST ONE BIG) ===== */
.featured-post {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 30px;
  align-items: center;
  margin-bottom: 60px;
}

.featured-image img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 16px;
}

.featured-content h2 {
  font-size: 28px;
  font-weight: 700;
  color: #0f172a;
  margin: 12px 0;
}

.featured-content p {
  color: #475569;
  line-height: 1.7;
}

.featured-tags {
  margin-bottom: 10px;
}

.featured-tags span {
  background: #eef2ff;
  color: #6366f1;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 6px;
  margin-right: 6px;
}

.read-more {
  display: inline-block;
  margin-top: 12px;
  color: #2563eb;
  font-weight: 600;
}

/* ===== GRID ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

/* ===== CARD ===== */
.blog-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  transition: 0.3s;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.08);
}

.blog-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.blog-content {
  padding: 18px;
}

.blog-tags span {
  background: #eef2ff;
  color: #6366f1;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 6px;
  margin-right: 5px;
}

.blog-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: #0f172a;
  margin: 10px 0;
}

.blog-content p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
}

/* AUTHOR */
.blog-meta {
  display: flex;
  align-items: center;
  margin-top: 14px;
  gap: 7px;
}

.blog-meta img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  margin-right: 8px;
}

.blog-meta span {
  font-size: 12px;
  color: #64748b;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .featured-post {
    grid-template-columns: 1fr;
  }

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}



/* ===== META ===== */
.featured-meta {
  margin-top: 10px;
  font-size: 13px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
}

.featured-meta .author {
  font-weight: 500;
  color: #0f172a;
}

.featured-meta .dot {
  margin: 0 4px;
}

/* ===== BUTTON ===== */



/* ===== PREMIUM CTA BUTTON ===== */
.read-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: #2563eb;
  background: rgba(37, 99, 235, 0.08);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* HOVER BACKGROUND GLOW */
.read-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, #2563eb, #3b82f6);
  opacity: 0;
  transition: 0.3s;
  border-radius: inherit;
  z-index: 0;
}

.read-btn span,
.read-btn svg {
  position: relative;
  z-index: 1;
}

/* ICON ANIMATION */
.read-btn svg {
  transition: transform 0.3s ease;
}

/* HOVER EFFECT */
.read-btn:hover {
  color: #fff;
}

.read-btn:hover::before {
  opacity: 1;
}

.read-btn:hover svg {
  transform: translateX(5px);
}

/* SMALL VERSION (cards) */
.read-btn.small {
  padding: 6px 12px;
  font-size: 13px;
}


/* ===== HERO BANNER ===== */
.blog-hero {
  position: relative;
  height: 220px;
  
  display: flex;
  align-items: center;
}

/* DARK OVERLAY */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: #0D1B2A; 
}


.banner {
  width: 100%;
  max-width: 1905px;
  height: 200px;
  margin: auto;
  position: relative;
  overflow: hidden;
  background: #0D1B2A;
}

canvas {
  position: absolute;
  top: 0;
  left: 0;
}

.banner-text {
  position: relative;
  z-index: 2;
  color: white;
  padding: 80px;
 
}

.banner-text h1 {
  margin: 0;
  font-size: 40px;
}

.banner-text p {
  opacity: 0.7;
}

/* CONTENT */
.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
}

.hero-content h1 {
  font-size: 42px;
  font-weight: 700;
}

.hero-content p {
  margin-top: 10px;
  color: #cbd5f5;
  font-size: 16px;
}

/* SECTION BELOW */
.blog-section {
  margin-top: -80px;
  position: relative;
  z-index: 3;
}







.td-post-content h2{font-size: 26px;   color: #232323;}

.td-post-content h3{font-size: 22px;   color: #232323;}

.td-post-content h4{font-size: 18px;   color: #232323;}

.td-post-content h5{font-size: 16px;   color: #232323;}

.td-post-content h6{font-size: 14px;   color: #232323;}




.td-blog-single {

  color: #232323;
 
}

.td-container {
  max-width: 1200px;
  margin: auto;
  padding: 10  !important;
}

/* HERO */
.td-post-hero {
  padding: 80px 0 40px;  background: #0D1B2A; min-height: 400px;
}

.td-post-meta-top {
  font-size: 14px;
  opacity: 0.7;
  margin-bottom: 20px;     color: #fff;
}

.td-dot {
  margin: 0 10px;     color: #fff;
}

.td-post-title {
  font-size: 42px;
  margin-bottom: 20px;
    color: #fff;
}

.td-post-author {
  display: flex;
  align-items: center;     color: #fff;
  gap: 10px;
}

/* COVER */
.td-post-cover img {
    width: 100%;
    border-radius: 12px;
    
}
.td-post-cover {
  margin-top: -120px; 
}


img.avatar.avatar-40.photo {
    border-radius: 100px;
}

/* GRID */
.td-post-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  padding: 60px 0;
  align-items: start; 
}

/* CONTENT */
.td-post-content {
  line-height: 1.8;
}

.td-post-content h2,
.td-post-content h3 {
  margin-top: 30px; 
}

.td-post-content p {
  opacity: 0.9;
}

/* CTA */
.td-post-cta {
  margin-top: 50px;
  padding: 30px;
  background: #13293D;
  border-radius: 12px;
}

.td-cta-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 20px;
  background: #1E90FF;
 color: #fff;
  text-decoration: none;
  border-radius: 6px;
}

/* SIDEBAR */
.td-post-sidebar h4 {
  margin-bottom: 15px;
}

.td-toc ul {
  list-style: none;
  padding: 0;
}

.td-toc li {
  margin-bottom: 8px;
  opacity: 0.8;
}

/* RECENT */
.td-recent-item {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  text-decoration: none;
  color: #232323;
}

.td-recent-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .td-post-grid {
    grid-template-columns: 1fr;
  }

  .td-post-title {
    font-size: 28px;
  }
}







/* SIDEBAR FIX */
.td-post-sidebar {
  align-self: start;
}

.td-toc {
    position: sticky;
    top: 100px;
    background: linear-gradient(145deg, #13293D, #0D1B2A);
    padding: 20px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    width: 100%;
    max-width: 280px;
    margin-bottom: 60px;
}

/* TEXT */
.td-toc h4 {
  font-size: 14px;
  margin-bottom: 15px;
  color: #4cc9f0;
}

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

.td-toc li {
  margin-bottom: 10px;
}

.td-toc a {
  text-decoration: none;
  color: #cbd5e1;
  font-size: 14px;
  display: block;
  padding: 6px 10px;
  border-radius: 6px;
  transition: 0.2s;
}

.td-toc a:hover {
  background: rgba(76,201,240,0.1);
  color: #4cc9f0;
}

.td-toc a.active {
  background: rgba(76,201,240,0.15);
  color: #4cc9f0;
  border-left: 3px solid #4cc9f0;
}


.td-post-cta h3 {
     color: #fff;
}

.td-post-cta p {
     color: #fff;
}

.td-post-cta a {
     color: #fff;
}


.td-post-grid {
  overflow: visible !important;
}