/* =========================================================
   Polyfix Trading — Blog Module Stylesheet
   Covers: blog-list.html, blog-details.html
   Framework: Bootstrap 5 (grid, cols only — everything else
   below is custom so cards/sidebar don't look like default BS)
   ========================================================= */

:root{
  /* Brand tokens — matched to polyfixtrading.in's green identity */
  --pf-navy: #0f6b3f;      /* primary — Polyfix brand green */
  --pf-navy-deep: #073b22; /* deep green — headings, dark surfaces */
  --pf-navy-light: #14824c;/* lighter green — gradients, hover states */
  --pf-orange: #b8ca2e;    /* accent — safety / sealant orange (contrast to green) */
  --pf-orange-dark: #b8ca2e;
  --pf-slate: #5b6b79;     /* body copy */
  --pf-slate-light: #8695a1;
  --pf-bg: #f4f8f5;        /* page background — faint green-grey tint */
  --pf-surface: #ffffff;
  --pf-border: #e2ebe4;
  --pf-radius: 14px;
  --pf-shadow-sm: 0 2px 10px rgba(15,107,63,0.08);
  --pf-shadow-md: 0 12px 30px rgba(15,107,63,0.16);
  --pf-font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --pf-font-body: "Inter", "Segoe UI", sans-serif;
}

/* Note: variable names still say "navy" internally (e.g. --pf-navy,
   --pf-navy-deep) purely as historical labels — every one of them now
   holds a GREEN value above, and every rule in this file references
   these variables, so the whole page follows automatically. */

.pf-blog-scope{
  background: var(--pf-bg);
  font-family: var(--pf-font-body);
  color: var(--pf-slate);
  padding: 56px 0 72px;
}

.pf-blog-scope *{ box-sizing: border-box; }

.pf-blog-scope img{ max-width: 100%; display: block; }

/* -------------------------------------------------
   Section heading (shared "sealant bead" signature —
   a thin gradient rule that mimics a caulk/sealant
   line, tying the design back to waterproofing)
------------------------------------------------- */
.pf-section-head{
  text-align: center;
  max-width: 720px;
  margin: 0 auto 44px;
}
.pf-eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--pf-font-display);
  font-size: 15px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--pf-orange-dark);
  font-weight: 600;
  margin-bottom: 10px;
}
.pf-eyebrow::before{
  content: "";
  width: 26px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--pf-orange), var(--pf-navy));
}
.pf-section-head h1,
.pf-section-head h2{
  font-family: var(--pf-font-display);
  font-weight: 700;
  color: var(--pf-navy-deep);
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.15;
  margin-bottom: 12px;
}
.pf-seal-bead{
  width: 96px;
  height: 6px;
  margin: 18px auto 0;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--pf-navy) 0%, var(--pf-orange) 100%);
  position: relative;
}
.pf-seal-bead::after{
  content: "";
  position: absolute;
  right: -3px; top: -2px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--pf-orange);
  box-shadow: 0 0 0 3px rgba(244,118,42,.18);
}
.pf-section-head p{
  color: var(--pf-slate);
  font-size: 16px;
  margin-top: 14px;
}

/* =========================================================
   BLOG LIST — Card Grid
   ========================================================= */
.pf-blog-card{
  background: var(--pf-surface);
  border-radius: var(--pf-radius);
  border: 1px solid var(--pf-border);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: var(--pf-shadow-sm);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.pf-blog-card:hover{
  transform: translateY(-6px);
  box-shadow: var(--pf-shadow-md);
  border-color: transparent;
}

.pf-card-media{
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--pf-navy-light);
}
.pf-card-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.pf-blog-card:hover .pf-card-media img{
  transform: scale(1.08);
}

/* droplet-shaped category badge — nods to waterproofing */
.pf-card-tag{
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--pf-orange);
  color: #fff;
  font-family: var(--pf-font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .03em;
  text-transform: uppercase;
  padding: 6px 14px 6px 12px;
  border-radius: 3px 14px 14px 14px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

.pf-card-media::after{
  content:"";
  position:absolute; inset:auto 0 0 0;
  height: 46%;
  background: linear-gradient(180deg, rgba(7,31,56,0) 0%, rgba(7,31,56,.55) 100%);
  pointer-events: none;
}

.pf-card-body{
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.pf-card-meta{
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12.5px;
  color: var(--pf-slate-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 10px;
}
.pf-card-meta span{ display: inline-flex; align-items: center; gap: 6px; }
.pf-card-meta i{ color: var(--pf-orange); font-size: 13px; }

.pf-card-title{
  font-weight: 700;
  font-size: 21px;
  line-height: 1.28;
  color: var(--pf-navy-deep);
  margin-bottom: 10px;
}
.pf-card-title a{
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(var(--pf-orange), var(--pf-orange));
  background-repeat: no-repeat;
  background-size: 0% 2px;
  background-position: left bottom;
  transition: background-size .3s ease, color .3s ease;
   display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* .pf-card-title a:hover{
  background-size: 100% 2px;
} */

/* SEO / text-overflow ellipsis — clamps description to 3 lines */
.pf-card-desc{
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--pf-slate);
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pf-card-footer{
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--pf-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pf-readmore{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--pf-font-display);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: .02em;
  color: var(--pf-navy);
  text-decoration: none;
  text-transform: uppercase;
}
.pf-readmore i{
  transition: transform .25s ease;
  font-size: 13px;
}
.pf-blog-card:hover .pf-readmore{ color: var(--pf-orange-dark); }
.pf-blog-card:hover .pf-readmore i{ transform: translateX(4px); }

.pf-card-readtime{
  font-size: 12.5px;
  color: var(--pf-slate-light);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Pagination */
.pf-pagination{
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}
.pf-pagination a{
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--pf-border);
  background: var(--pf-surface);
  color: var(--pf-navy);
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
  transition: all .2s ease;
}
.pf-pagination a.active,
.pf-pagination a:hover{
  background: var(--pf-navy);
  border-color: var(--pf-navy);
  color: #fff;
}
.pf-pagination a.pf-next{ width: auto; padding: 0 18px; gap: 8px; }

/* =========================================================
   BLOG DETAILS PAGE
   ========================================================= */

.pf-details-hero{
  position: relative;
  border-radius: var(--pf-radius);
  overflow: hidden;
  margin-bottom: 28px;
  box-shadow: var(--pf-shadow-md);
}
.pf-details-hero img{
  width: 100%;
  height: clamp(260px, 42vw, 460px);
  object-fit: cover;
}
.pf-details-hero .pf-card-tag{
  top: 20px; left: 20px;
}

.pf-details-breadcrumb{
  font-size: 13.5px;
  color: var(--pf-slate-light);
  margin-bottom: 16px;
  font-weight: 500;
}
.pf-details-breadcrumb a{ color: var(--pf-navy); text-decoration: none; }
.pf-details-breadcrumb a:hover{ color: var(--pf-orange-dark); }
.pf-details-breadcrumb i{ font-size: 11px; margin: 0 6px; color: var(--pf-slate-light); }

.pf-article-meta{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  font-size: 13.5px;
  color: var(--pf-slate-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
  margin-bottom: 16px;
}
.pf-article-meta span{ display: inline-flex; align-items: center; gap: 7px; }
.pf-article-meta i{ color: var(--pf-orange); }

.pf-article-title{
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.18;
  color: var(--pf-navy-deep);
  margin-bottom: 22px;
}

/* .pf-article-body{
  background: var(--pf-surface);
  border: 1px solid var(--pf-border);
  border-radius: var(--pf-radius);
  padding: clamp(20px, 3vw, 40px);
  box-shadow: var(--pf-shadow-sm);
} */

.pf-article-body p{
  font-size: 16px;
  line-height: 1.85;
  color: var(--pf-slate);
  margin-bottom: 20px;
}
.pf-article-body h2,
.pf-article-body h3{
  font-weight: 700;
  color: var(--pf-navy-deep);
  margin: 30px 0 14px;
  line-height: 1.25;
}
.pf-article-body h2{ font-size: 26px; }
.pf-article-body h3{ font-size: 21px; }
.pf-article-body ul{
  margin: 0 0 20px;
  padding-left: 0;
  list-style: none;
}
.pf-article-body ul li{
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--pf-slate);
}
.pf-article-body ul li::before{
  content: "\f26b"; /* bootstrap-icons droplet */
  font-family: "bootstrap-icons";
  position: absolute;
  left: 0; top: 1px;
  color: var(--pf-orange);
  font-size: 14px;
}

.pf-article-body img{
  border-radius: 12px;
  margin: 24px 0;
}
.pf-article-body strong{ color: var(--pf-navy-deep); }


.pf-tag-pill{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--pf-bg);
  border: 1px solid var(--pf-border);
  color: var(--pf-navy);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 20px;
  text-decoration: none;
  transition: all .2s ease;
}
.pf-tag-pill:hover{
  background: var(--pf-orange);
  border-color: var(--pf-orange);
  color: #fff;
}

/* -------------------------------------------------
   Sidebar (col-lg-3)
------------------------------------------------- */
.pf-sidebar{
  position: sticky;
  top: 95px;
}
.pf-widget{
  background: var(--pf-surface);
  border: 1px solid var(--pf-border);
  border-radius: var(--pf-radius);
  padding: 22px;
  margin-bottom: 24px;
  box-shadow: var(--pf-shadow-sm);
}
.pf-widget-title{
  font-family: var(--pf-font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--pf-navy-deep);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--pf-bg);
  position: relative;
}
.pf-widget-title::after{
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 42px; height: 2px;
  background: var(--pf-orange);
}

/* search widget */
.pf-search-form{
  display: flex;
  border: 1px solid var(--pf-border);
  border-radius: 10px;
  overflow: hidden;
}
.pf-search-form input{
  border: none;
  outline: none;
  padding: 12px 14px;
  font-size: 14px;
  flex: 1;
  min-width: 0;
  font-family: var(--pf-font-body);
}
.pf-search-form button{
  border: none;
  background: var(--pf-navy);
  color: #fff;
  width: 46px;
  flex-shrink: 0;
  cursor: pointer;
  transition: background .2s ease;
}
.pf-search-form button:hover{ background: var(--pf-orange); }

/* recent posts widget */
.pf-recent-post{
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--pf-bg);
  text-decoration: none;
}
.pf-recent-post:last-child{ border-bottom: none; padding-bottom: 0; }
.pf-recent-post:first-child{ padding-top: 0; }
.pf-recent-post .pf-rp-thumb{
  width: 70px; height: 70px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}
.pf-recent-post .pf-rp-thumb img{
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s ease;
}
.pf-recent-post:hover .pf-rp-thumb img{ transform: scale(1.1); }
.pf-recent-post .pf-rp-info{ min-width: 0; }
.pf-recent-post .pf-rp-date{
  font-size: 11.5px;
  color: var(--pf-orange-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  display: block;
  line-height:normal;
  margin-bottom: 4px;
}
.pf-recent-post .pf-rp-title{
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--pf-navy-deep);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .2s ease;
}
.pf-recent-post:hover .pf-rp-title{ color: var(--pf-orange-dark); }

/* categories widget */
.pf-cat-list{ list-style: none; padding: 0; margin: 0; }
.pf-cat-list li{ border-bottom: 1px solid var(--pf-bg); }
.pf-cat-list li:last-child{ border-bottom: none; }
.pf-cat-list a{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 2px;
  text-decoration: none;
  color: var(--pf-slate);
  font-size: 14.5px;
  font-weight: 500;
  transition: color .2s ease, padding-left .2s ease;
}
.pf-cat-list a:hover{ color: var(--pf-orange-dark); padding-left: 6px; }
.pf-cat-list a i.pf-cat-arrow{ font-size: 12px; opacity: 0; transition: opacity .2s ease; color: var(--pf-orange); }
.pf-cat-list a:hover i.pf-cat-arrow{ opacity: 1; }
.pf-cat-list .badge{
  background: var(--pf-bg);
  color: var(--pf-navy);
  font-weight: 700;
  font-size: 12px;
  border-radius: 20px;
  padding: 3px 9px;
}

/* tags widget */
.pf-tag-cloud{ display: flex; flex-wrap: wrap; gap: 8px; }

/* CTA / contact widget */
.pf-widget-cta{
  background: linear-gradient(150deg, var(--pf-navy) 0%, var(--pf-navy-deep) 100%);
  color: #fff;
  text-align: center;
  border: none;
}
.pf-widget-cta i{
  font-size: 30px;
  color: #fff;
  margin-bottom: 10px;
}
.pf-widget-cta h5{
  font-family: var(--pf-font-display);
  font-size: 19px;
  margin-bottom: 8px;
  color: #fff;
}
.pf-widget-cta p{
  font-size: 13.5px;
  color: #c3d2de;
  margin-bottom: 16px;
}
.pf-widget-cta a{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--pf-orange);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 11px 22px;
  border-radius: 8px;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}
.pf-widget-cta a:hover{ background: var(--pf-orange-dark); transform: translateY(-2px); }

/* -------------------------------------------------
   Responsive
------------------------------------------------- */
@media (max-width: 991.98px){
  .pf-sidebar{ position: static; margin-top: 8px; }
  .pf-article-footer{ flex-direction: column; align-items: flex-start; }
}
@media (max-width: 575.98px){
  .pf-blog-scope{ padding: 40px 0 52px; }
  .pf-card-title{ font-size: 19px; }
  .pf-author-box{ flex-direction: column; text-align: center; }
}