/*
Theme Name: Painite Blogs Editorial Child
Template: popularfx
Version: 1.0
Description: Premium editorial child theme for Painite Blogs
Author: OpenAI
*/

:root{
  --pb-bg: #f6f8fb;
  --pb-surface: #ffffff;
  --pb-surface-soft: #fbfcfe;
  --pb-text: #111827;
  --pb-text-soft: #4b5563;
  --pb-border: #e5e7eb;
  --pb-blue: #1d4ed8;
  --pb-blue-soft: #dbeafe;
  --pb-dark: #0f172a;
  --pb-dark-soft: #1e293b;
  --pb-radius: 20px;
  --pb-radius-sm: 14px;
  --pb-shadow: 0 12px 36px rgba(15, 23, 42, 0.06);
  --pb-shadow-soft: 0 6px 18px rgba(15, 23, 42, 0.04);
  --pb-max: 1240px;
}

.pb-homepage,
.pb-homepage *{
  box-sizing: border-box;
}

.pb-homepage{
  background: var(--pb-bg);
  color: var(--pb-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
  padding: 0 0 80px;
}

.pb-wrap{
  width: min(var(--pb-max), calc(100% - 40px));
  margin: 0 auto;
}

.pb-section{
  padding: 72px 0;
}

.pb-eyebrow{
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: var(--pb-blue);
  text-transform: uppercase;
  margin-bottom: 18px;
}

.pb-title{
  font-size: clamp(30px, 4vw, 58px);
  line-height: 1.03;
  letter-spacing: -0.04em;
  margin: 0 0 20px;
  color: var(--pb-text);
  max-width: 12ch;
}

.pb-subtitle{
  font-size: 18px;
  line-height: 1.75;
  color: var(--pb-text-soft);
  max-width: 60ch;
  margin: 0;
}

.pb-section-title{
  font-size: clamp(26px, 2.5vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  color: var(--pb-text);
}

.pb-section-lead{
  max-width: 62ch;
  color: var(--pb-text-soft);
  font-size: 17px;
  line-height: 1.75;
  margin: 0 0 34px;
}

.pb-btn-row{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.pb-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: all .2s ease;
  border: 1px solid transparent;
}

.pb-btn-primary{
  background: var(--pb-blue);
  color: #fff;
  box-shadow: var(--pb-shadow-soft);
}

.pb-btn-primary:hover{
  background: #1742b7;
  color: #fff;
  transform: translateY(-1px);
}

.pb-btn-secondary{
  background: #fff;
  color: var(--pb-text);
  border-color: var(--pb-border);
}

.pb-btn-secondary:hover{
  background: #f8fafc;
  color: var(--pb-text);
}

.pb-topbar{
  padding: 18px 0 10px;
}

.pb-nav-shell{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: rgba(255,255,255,0.84);
  border: 1px solid rgba(229,231,235,0.9);
  border-radius: 999px;
  padding: 12px 18px;
  box-shadow: var(--pb-shadow-soft);
  backdrop-filter: blur(10px);
}

.pb-brand{
  display: flex;
  flex-direction: column;
  text-decoration: none;
  min-width: 220px;
}

.pb-brand-title{
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--pb-text);
  line-height: 1.1;
}

.pb-brand-tag{
  font-size: 12px;
  color: var(--pb-text-soft);
  margin-top: 3px;
}

.pb-nav{
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px 18px;
}

.pb-nav a{
  font-size: 14px;
  text-decoration: none;
  color: var(--pb-text-soft);
  font-weight: 600;
}

.pb-nav a:hover{
  color: var(--pb-text);
}

.pb-hero{
  padding-top: 30px;
}

.pb-hero-grid{
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 34px;
  align-items: stretch;
}

.pb-hero-copy{
  padding: 36px 0 18px;
}

.pb-hero-visual{
  position: relative;
  min-height: 560px;
}

.pb-hero-media{
  position: absolute;
  inset: 0;
  border-radius: 30px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(219,234,254,0.85), rgba(255,255,255,0.55));
  border: 1px solid var(--pb-border);
  box-shadow: var(--pb-shadow);
}

.pb-hero-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pb-hero-placeholder{
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 20% 20%, rgba(29,78,216,0.18), transparent 28%),
    radial-gradient(circle at 76% 24%, rgba(14,165,233,0.13), transparent 24%),
    linear-gradient(135deg, #eff6ff 0%, #ffffff 45%, #f8fafc 100%);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 28px;
}

.pb-hero-placeholder-note{
  max-width: 220px;
  background: rgba(255,255,255,0.84);
  border: 1px solid rgba(229,231,235,0.9);
  padding: 14px 16px;
  border-radius: 18px;
  color: var(--pb-text-soft);
  font-size: 13px;
  line-height: 1.5;
  box-shadow: var(--pb-shadow-soft);
}

.pb-float-card{
  position: absolute;
  left: -28px;
  bottom: 28px;
  width: min(360px, 88%);
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(229,231,235,0.95);
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 22px 50px rgba(15,23,42,0.12);
}

.pb-float-label{
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pb-blue);
  margin-bottom: 10px;
}

.pb-float-title{
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.pb-float-title a{
  text-decoration: none;
  color: var(--pb-text);
}

.pb-float-title a:hover{
  color: var(--pb-blue);
}

.pb-float-link{
  font-size: 14px;
  font-weight: 600;
  color: var(--pb-blue);
  text-decoration: none;
}

.pb-trust-strip{
  padding: 22px 0 10px;
}

.pb-trust-box{
  background: #fff;
  border: 1px solid var(--pb-border);
  border-radius: 999px;
  box-shadow: var(--pb-shadow-soft);
  padding: 16px 20px;
  text-align: center;
}

.pb-trust-top{
  font-size: 14px;
  color: var(--pb-text);
  font-weight: 600;
  line-height: 1.7;
}

.pb-trust-bottom{
  margin-top: 3px;
  font-size: 14px;
  color: var(--pb-text-soft);
}

.pb-featured-grid{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 26px;
  align-items: stretch;
}

.pb-featured-main,
.pb-featured-mini{
  background: #fff;
  border: 1px solid var(--pb-border);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--pb-shadow-soft);
}

.pb-featured-main-image{
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 40%, #ffffff 100%);
}

.pb-featured-main-image img,
.pb-featured-mini-thumb img,
.pb-latest-thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pb-featured-main-body{
  padding: 26px;
}

.pb-kicker{
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--pb-blue);
  margin-bottom: 12px;
}

.pb-card-title-lg{
  margin: 0 0 14px;
  font-size: clamp(24px, 2vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.pb-card-title-lg a,
.pb-card-title-md a,
.pb-card-title-sm a,
.pb-latest-title a{
  text-decoration: none;
  color: var(--pb-text);
}

.pb-card-title-lg a:hover,
.pb-card-title-md a:hover,
.pb-card-title-sm a:hover,
.pb-latest-title a:hover{
  color: var(--pb-blue);
}

.pb-card-text{
  font-size: 16px;
  line-height: 1.75;
  color: var(--pb-text-soft);
  margin: 0 0 16px;
}

.pb-read-link{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 600;
  color: var(--pb-blue);
  font-size: 15px;
}

.pb-featured-side{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.pb-featured-mini{
  display: flex;
  flex-direction: column;
}

.pb-featured-mini-thumb{
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
}

.pb-featured-mini-body{
  padding: 18px;
}

.pb-card-title-sm{
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.22;
  letter-spacing: -0.03em;
}

.pb-topic-grid{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.pb-topic-card{
  background: #fff;
  border: 1px solid var(--pb-border);
  border-radius: 22px;
  padding: 22px;
  box-shadow: var(--pb-shadow-soft);
  min-height: 210px;
}

.pb-topic-icon{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--pb-blue-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--pb-blue);
  font-size: 18px;
  font-weight: 700;
}

.pb-card-title-md{
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.pb-topic-text{
  margin: 0;
  color: var(--pb-text-soft);
  font-size: 15px;
  line-height: 1.7;
}

.pb-value-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.pb-value-card{
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  border: 1px solid var(--pb-border);
  border-radius: 26px;
  padding: 26px;
  box-shadow: var(--pb-shadow-soft);
}

.pb-value-number{
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--pb-blue-soft);
  color: var(--pb-blue);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 16px;
}

.pb-dark-panel{
  background: linear-gradient(135deg, var(--pb-dark) 0%, var(--pb-dark-soft) 100%);
  border-radius: 34px;
  padding: 52px;
  color: #fff;
  box-shadow: 0 20px 50px rgba(15,23,42,0.18);
}

.pb-dark-panel .pb-section-title{
  color: #fff;
  max-width: 12ch;
}

.pb-dark-panel .pb-section-lead{
  color: rgba(255,255,255,0.78);
}

.pb-dark-panel .pb-btn-secondary{
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.14);
  color: #fff;
}

.pb-dark-panel .pb-btn-secondary:hover{
  background: rgba(255,255,255,0.14);
}

.pb-latest-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.pb-latest-card{
  background: #fff;
  border: 1px solid var(--pb-border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--pb-shadow-soft);
  display: flex;
  flex-direction: column;
}

.pb-latest-thumb{
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
}

.pb-latest-body{
  padding: 22px;
}

.pb-meta{
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pb-blue);
  margin-bottom: 10px;
}

.pb-latest-title{
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.pb-latest-excerpt{
  color: var(--pb-text-soft);
  font-size: 15px;
  line-height: 1.75;
  margin: 0 0 16px;
}

.pb-footer{
  padding-top: 16px;
}

.pb-footer-shell{
  background: #fff;
  border: 1px solid var(--pb-border);
  border-radius: 30px;
  box-shadow: var(--pb-shadow-soft);
  padding: 34px;
}

.pb-footer-top{
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 0.8fr;
  gap: 28px;
}

.pb-footer-brand h3{
  margin: 0 0 8px;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.pb-footer-brand p{
  margin: 0;
  color: var(--pb-text-soft);
  line-height: 1.75;
  max-width: 38ch;
}

.pb-footer-col h4{
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 14px;
  color: var(--pb-text);
}

.pb-footer-col ul{
  list-style: none;
  margin: 0;
  padding: 0;
}

.pb-footer-col li{
  margin-bottom: 10px;
}

.pb-footer-col a{
  text-decoration: none;
  color: var(--pb-text-soft);
}

.pb-footer-col a:hover{
  color: var(--pb-text);
}

.pb-footer-bottom{
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--pb-border);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--pb-text-soft);
  font-size: 14px;
}

@media (max-width: 1180px){
  .pb-topic-grid{
    grid-template-columns: repeat(3, 1fr);
  }

  .pb-latest-grid{
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 980px){
  .pb-nav-shell{
    border-radius: 24px;
    align-items: flex-start;
    flex-direction: column;
  }

  .pb-nav{
    justify-content: flex-start;
  }

  .pb-hero-grid,
  .pb-featured-grid,
  .pb-footer-top{
    grid-template-columns: 1fr;
  }

  .pb-hero-visual{
    min-height: 420px;
  }

  .pb-float-card{
    left: 18px;
    right: 18px;
    width: auto;
    bottom: 18px;
  }

  .pb-featured-side,
  .pb-value-grid,
  .pb-topic-grid{
    grid-template-columns: repeat(2, 1fr);
  }

  .pb-dark-panel{
    padding: 34px 26px;
  }
}

@media (max-width: 680px){
  .pb-wrap{
    width: min(var(--pb-max), calc(100% - 24px));
  }

  .pb-section{
    padding: 52px 0;
  }

  .pb-hero-copy{
    padding-top: 14px;
  }

  .pb-hero-visual{
    min-height: 360px;
  }

  .pb-trust-box{
    border-radius: 24px;
  }

  .pb-featured-side,
  .pb-topic-grid,
  .pb-value-grid,
  .pb-latest-grid{
    grid-template-columns: 1fr;
  }

  .pb-footer-shell{
    padding: 24px;
    border-radius: 24px;
  }

  .pb-footer-bottom{
    flex-direction: column;
  }
}