/* ======================================================
   Techfyte Blogs Page (Premium + ChicMic-like polish)
   UPDATED: Fix H1 override + small hero polish
   ====================================================== */

.techfyte-blogs-page { background: #fff; }

/* -------- HERO -------- */
.tf-blog-hero{
  padding: 64px 0 26px;
  background:
    radial-gradient(900px 520px at 18% 10%, rgba(63,129,251,0.12), transparent 60%),
    radial-gradient(900px 520px at 82% 20%, rgba(219,93,34,0.10), transparent 60%);
}

.tf-hero-content .contact-title{
  gap: 10px;
  margin-bottom: 10px;
}
.tf-hero-content .contact-title h3{
  font-weight: 800;
  font-size: 16px;
  margin: 0;
  color: #0f172a;
}

/* ✅ FIX: Your theme has: h1,.h1 { font-size: ... !important }
   So we override with higher specificity + !important */
.techfyte-blogs-page .tf-blog-hero .tf-hero-content h1,
.techfyte-blogs-page .tf-blog-hero .tf-hero-content h1.h1,
.techfyte-blogs-page .tf-blog-hero .tf-hero-content .h1{
  font-size: clamp(30px, 3.1vw, 44px) !important;
  line-height: 1.10 !important;
  letter-spacing: -0.02em !important;
  margin: 10px 0 12px !important;
  color: #0b1220 !important;
}

/* Make the strong look nicer */
.tf-hero-content h1 strong{
  font-weight: 900;
}

.tf-hero-content p{
  font-size: 15.5px;
  color: #6b7280;
  max-width: 520px;
  margin-bottom: 0;
}

.tf-hero-actions{
  display:flex;
  gap:12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.tf-btn-primary{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 18px;
  border-radius: 12px;
  color:#fff;
  background:#3F81FB;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(63,129,251,0.25);
  transition: .25s ease;
  text-decoration: none;
}
.tf-btn-primary:hover{
  color:#fff;
  transform: translateY(-1px);
  filter: brightness(0.98);
  text-decoration: none;
}

.tf-hero-image img{
  width:100%;
  max-width:560px;
  height:auto;
  display:block;
  margin-left:auto;
}

.tf-hero-image-fallback{
  height: 250px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(63,129,251,0.18), rgba(219,93,34,0.12));
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
  color:#111827;
}

/* -------- TABS (pills) -------- */
.blogs-nav-row .nav-tabs{
  border-bottom: 0;
  padding-bottom: 10px;
  gap: 10px;
  margin: 6px 0 6px;
  flex-wrap: nowrap;
  overflow-x: auto;
}
.blogs-nav-row .nav-tabs::-webkit-scrollbar{ height: 6px; }
.blogs-nav-row .nav-tabs::-webkit-scrollbar-thumb{
  background: rgba(17,24,39,0.12);
  border-radius: 999px;
}

.blogs-nav-row .nav-tabs .nav-item{ margin: 0; }

.blogs-nav-row .nav-tabs .nav-link{
  border-radius: 999px !important;
  padding: 9px 14px !important;
  font-size: 13px !important;
  border: 1px solid rgba(17,24,39,0.12) !important;
  background: #fff !important;
  color: #111827 !important;
  font-weight: 800 !important;
  white-space: nowrap;
  transition: .2s ease;
}

.blogs-nav-row .nav-tabs .nav-link.active,
.blogs-nav-row .nav-tabs .nav-link:hover{
  background: #3F81FB !important;
  border-color: #3F81FB !important;
  color: #fff !important;
  box-shadow: 0 14px 30px rgba(63,129,251,0.20) !important;
}

/* Slightly reduce gap between hero and tabs */
#blogs-section{ padding-top: 8px; }
.all-blogs-secn{ margin-top: 8px !important; }

/* -------- BLOG CARDS -------- */
.tf-blog-card{
  border-radius: 16px !important;
  background: #fff !important;
  border: 1px solid rgba(17,24,39,0.10) !important;
  box-shadow: 0 10px 25px rgba(17,24,39,0.06);
  overflow:hidden;
  height: 100%;
  transition: .25s ease;
}

.tf-blog-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(17,24,39,0.10);
}

.tf-thumb{
  position: relative;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
}

.tf-thumb img{
  width:100%;
  object-fit: cover;
  border-radius: 16px 16px 0 0;
  box-shadow:none;
  transition: transform .35s ease;
  transform:none !important;
}

.tf-blog-card:hover .tf-thumb img{
  transform: scale(1.03) !important;
}

.summary-content{
  padding: 18px 18px 16px;
}

.blog_summary .h6{
  margin: 0;
  min-height: 54px;
}

.blog_summary .h6 a{
  font-size: 20px;
  line-height: 1.35;
  font-weight: 900;
  color: #0f172a;
  text-decoration: none;
  letter-spacing: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog_summary .h6 a:hover{
  color: #3F81FB;
  text-decoration: none;
}
.tf-readmore svg {
  transition: 0.5s;
}

.tf-readmore:hover svg {
  transform: translateX(4px);
}
.blog_summary p{
  margin-top: 10px;
  margin-bottom: 0;
  font-size: 14.8px;
  line-height: 1.55;
  color: #6b7280;

  text-overflow: ellipsis;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

/* Date badge */
.blog-date{
  position: absolute;
  top: 14px;
  left: 14px;
  right: auto;
  bottom: auto;

  border-radius: 999px !important;
  padding: 8px 12px !important;
  font-size: 12px !important;
  font-weight: 800;
  color: #fff;

  background: rgba(17,24,39,0.70) !important;
  backdrop-filter: blur(10px);
}

.blog-date span{ font-size: inherit; }

/* Meta row */
.blog-meta{
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(17,24,39,0.08);

  display:flex;
  justify-content: space-between;
  align-items:center;
}

.meta-author{
  font-size: 13px;
  color: #64748b !important;
  font-weight: 700;
}

.tf-readmore{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  color: #3F81FB;
  font-weight: 900;
  font-size: 15px;
  text-decoration: none;
  letter-spacing: 0;
}
.tf-readmore:hover{ text-decoration: underline; }

/* -------- SIDEBAR -------- */
.tf-sidebar-card{
  background:#fff;
  border:1px solid rgba(17,24,39,0.10);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 10px 25px rgba(17,24,39,0.06);
}

.tf-sidebar-card h5{
  margin-bottom: 12px;
  font-weight: 900;
  color: #0f172a;
}

.tf-search-form{
  display:flex;
  align-items:center;
  gap: 10px;

  border: 1px solid rgba(17,24,39,0.12);
  border-radius: 14px;
  padding: 10px 12px;
  background: #fff;
}

.tf-search-form input{
  border:0 !important;
  outline:0 !important;
  width:100%;
  font-size: 14px;
  color: #0f172a;
  background: transparent;
}

.tf-search-btn{
  border:0;
  background:#3F81FB;
  width: 40px;
  height: 36px;
  border-radius: 10px;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}

.tf-search-btn img{ filter: brightness(0) invert(1); }

/* Featured list */
.widget.post-category ul{
  margin: 0;
  padding: 0;
  list-style: none;
}

.widget.post-category ul li{
  padding: 10px 0;
  border-bottom: 1px solid rgba(17,24,39,0.06);
}

.widget.post-category ul li:last-child{ border-bottom: 0; }

.widget.post-category ul li a{
  color: #0f172a;
  font-weight: 800;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: 0;
  text-decoration: none;
}
.widget.post-category ul li a:hover{
  color: #3F81FB;
  text-decoration: none;
}
.tf-sidebar-card{
  margin-bottom: 20px;
}
/* -------- RESPONSIVE -------- */
@media(max-width: 991px){
  .tf-blog-hero{ padding: 52px 0 24px; }
  .tf-hero-image{ margin-top: 24px; }
  .blog_summary .h6 a{ font-size: 18px; }
}

@media(max-width: 575px){
  .techfyte-blogs-page .tf-blog-hero .tf-hero-content h1,
  .techfyte-blogs-page .tf-blog-hero .tf-hero-content h1.h1,
  .techfyte-blogs-page .tf-blog-hero .tf-hero-content .h1{
    font-size: 30px !important;
    line-height: 1.15 !important;
  }
  .tf-btn-primary{ width: 100%; }
}
