:root{
  --pexb-primary:#1c3f3a;
  --pexb-primary-dark:#16332f;
  --pexb-accent:#dcebe8;
  --pexb-bg:#f6f8f8;
  --pexb-card:#ffffff;
  --pexb-text:#1d2e2b;
  --pexb-muted:#6e7e7a;
  --pexb-border:rgba(28,63,58,.10);
  --pexb-shadow:0 14px 38px rgba(16,35,31,.08);
  --pexb-shadow-hover:0 22px 55px rgba(16,35,31,.14);
  --pexb-radius:24px;
}

.pexb-wrap,
.pexb-single-wrap{
  width:min(1280px, calc(100% - 32px));
  margin:40px auto;
  color:var(--pexb-text);
  font-family:inherit;
}

.pexb-section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin-bottom:24px;
}

.pexb-heading{
  margin:0;
  font-size:clamp(24px, 2.4vw, 38px);
  line-height:1.15;
  font-weight:800;
  color:var(--pexb-primary);
  letter-spacing:-0.02em;
}

.pexb-view-all-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:13px 20px;
  border-radius:16px;
  background:linear-gradient(135deg, var(--pexb-primary), var(--pexb-primary-dark));
  color:#ffffff !important;
  text-decoration:none !important;
  font-size:15px;
  font-weight:800;
  box-shadow:var(--pexb-shadow);
  white-space:nowrap;
  transition:.3s ease;
}

.pexb-view-all-btn:hover{
  transform:translateY(-2px);
  color:#ffffff !important;
}

/* home grid */
.pexb-home-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:24px;
}

/* archive grid */
.pexb-archive-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:26px;
}

/* card */
.pexb-card{
  position:relative;
  background:linear-gradient(180deg, #ffffff 0%, #fbfcfc 100%);
  border:1px solid var(--pexb-border);
  border-radius:26px;
  overflow:hidden;
  box-shadow:var(--pexb-shadow);
  transition:.35s ease;
  height:100%;
}

.pexb-card:hover{
  transform:translateY(-8px);
  box-shadow:var(--pexb-shadow-hover);
}

.pexb-card-link{
  display:flex;
  flex-direction:column;
  height:100%;
  color:inherit;
  text-decoration:none !important;
}

.pexb-card-media{
  position:relative;
  min-height:220px;
  overflow:hidden;
  background:#edf3f2;
  flex-shrink:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:10px;
}

.pexb-card-media img{
  width:100%;
  height:100%;
  max-height:200px;
  object-fit:contain;
  object-position:center;
  display:block;
  transition:transform .55s ease;
}

.pexb-card:hover .pexb-card-media img{
  transform:scale(1.06);
}

.pexb-card-media::after{
  content:"";
  position:absolute;
  inset:auto 0 0 0;
  height:45%;
  background:linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(13,30,27,.18) 100%);
  pointer-events:none;
}

.pexb-badge{
  position:absolute;
  left:14px;
  top:14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:7px 12px;
  border-radius:999px;
  background:rgba(28,63,58,.94);
  color:#ffffff;
  font-size:11px;
  font-weight:800;
  line-height:1;
  z-index:4;
  letter-spacing:.02em;
}

.pexb-source-logo-chip{
  position:absolute;
  top:12px;
  right:-8px;
  width:50px;
  height:34px;
  background:#ffffff;
  border-radius:18px 0 0 18px;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 8px 20px rgba(0,0,0,.10);
  z-index:4;
  padding:4px 8px 4px 10px;
}

.pexb-source-logo-chip img{
  max-width:28px;
  max-height:22px;
  width:auto;
  height:auto;
  object-fit:contain;
  display:block;
  background:#fff;
}

.pexb-card-body{
  padding:18px 18px 18px;
  display:flex;
  flex-direction:column;
  flex:1 1 auto;
  min-height:230px;
}

.pexb-meta,
.pexb-single-meta{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  color:var(--pexb-muted);
  font-size:13px;
  margin-bottom:12px;
}

.pexb-meta .dot,
.pexb-single-meta .dot{
  width:4px;
  height:4px;
  border-radius:50%;
  background:currentColor;
}

.pexb-card-title{
  margin:0 0 10px;
  font-size:clamp(18px, 1.5vw, 24px);
  line-height:1.28;
  font-weight:800;
  color:var(--pexb-primary);
  letter-spacing:-0.01em;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.pexb-card-excerpt{
  margin:0 0 16px;
  color:var(--pexb-muted);
  font-size:14px;
  line-height:1.72;
  display:-webkit-box;
  -webkit-line-clamp:4;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.pexb-card-button{
  margin-top:auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:44px;
  padding:11px 15px;
  border-radius:14px;
  background:linear-gradient(135deg, var(--pexb-primary), var(--pexb-primary-dark));
  color:#ffffff !important;
  font-size:14px;
  font-weight:800;
  line-height:1.2;
  text-align:center;
  box-shadow:0 8px 20px rgba(28,63,58,.16);
}

/* archive */
.pexb-archive-wrap .pexb-heading{
  margin-bottom:0;
}

.pexb-pagination{
  margin-top:32px;
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:10px;
}

.pexb-pagination .page-numbers{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:46px;
  height:46px;
  padding:0 14px;
  border-radius:14px;
  border:1px solid var(--pexb-border);
  background:#ffffff;
  color:var(--pexb-primary);
  text-decoration:none;
  font-weight:800;
  box-shadow:0 6px 18px rgba(20,40,36,.04);
}

.pexb-pagination .page-numbers.current,
.pexb-pagination .page-numbers:hover{
  background:var(--pexb-primary);
  border-color:var(--pexb-primary);
  color:#ffffff;
}

.pexb-empty{
  padding:24px;
  border-radius:18px;
  background:#ffffff;
  border:1px dashed var(--pexb-border);
  text-align:center;
}

/* single page wow layout */
.pexb-single-wrap{
  max-width:1220px;
}

.pexb-single-hero-card{
  margin-bottom:28px;
}

.pexb-single-image-wrap{
  position:relative;
  min-height:520px;
  border-radius:32px;
  overflow:hidden;
  background:#dfe9e7;
  box-shadow:0 24px 60px rgba(16,35,31,.14);
}

.pexb-single-image-wrap img{
  width:100%;
  height:100%;
  min-height:520px;
  object-fit:cover;
  display:block;
}

.pexb-single-overlay{
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg, rgba(7,18,16,.10) 0%, rgba(7,18,16,.25) 35%, rgba(7,18,16,.78) 100%);
}

.pexb-single-floating{
  position:absolute;
  top:18px;
  left:18px;
  right:0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  z-index:3;
  pointer-events:none;
}

.pexb-badge.single{
  position:static;
  pointer-events:auto;
}

.pexb-source-logo-chip.single{
  position:static;
  margin-right:-8px;
  pointer-events:auto;
}

.pexb-single-hero-content{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  z-index:3;
  padding:30px;
  color:#ffffff;
  max-width:980px;
}

.pexb-single-meta.white{
  color:rgba(255,255,255,.85);
  margin-bottom:14px;
}

.pexb-single-title{
  margin:0 0 18px;
  font-size:clamp(30px, 4vw, 58px);
  line-height:1.08;
  font-weight:900;
  color:#ffffff;
  letter-spacing:-0.03em;
  text-shadow:0 3px 18px rgba(0,0,0,.18);
}

.pexb-single-external-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:12px 18px;
  border-radius:14px;
  background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.26);
  color:#ffffff !important;
  text-decoration:none !important;
  font-size:14px;
  font-weight:800;
  backdrop-filter:blur(8px);
}

.pexb-single-content-card{
  background:#ffffff;
  border:1px solid var(--pexb-border);
  border-radius:28px;
  box-shadow:var(--pexb-shadow);
  padding:30px;
}

.pexb-single-content{
  max-width:920px;
  margin:0 auto;
  color:#273734;
  font-size:17px;
  line-height:1.9;
}

.pexb-single-content p:first-child{
  font-size:20px;
  line-height:1.8;
  color:#42524e;
}

.pexb-single-content h2,
.pexb-single-content h3,
.pexb-single-content h4{
  color:var(--pexb-primary);
  margin-top:30px;
  margin-bottom:12px;
  line-height:1.25;
}

.pexb-single-content a{
  color:var(--pexb-primary);
  font-weight:700;
}

/* remove theme underline issues */
.pexb-card a,
.pexb-card-title,
.pexb-card-link:hover,
.pexb-card-link:focus,
.pexb-card-link:active,
.pexb-single-wrap a{
  text-decoration:none !important;
}

/* responsive */
@media (max-width: 1280px){
  .pexb-home-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }

  .pexb-archive-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991px){
  .pexb-single-image-wrap,
  .pexb-single-image-wrap img{
    min-height:420px;
  }

  .pexb-single-content-card{
    padding:22px;
  }

  .pexb-single-content{
    font-size:16px;
  }
}

@media (max-width: 767px){
  .pexb-wrap,
  .pexb-single-wrap{
    width:min(100% - 20px, 1280px);
    margin:28px auto;
  }

  .pexb-section-head{
    flex-direction:column;
    align-items:flex-start;
  }

  .pexb-heading{
    font-size:30px;
  }

  .pexb-home-grid,
  .pexb-archive-grid{
    grid-template-columns:1fr;
    gap:18px;
  }

  .pexb-card-body{
    min-height:auto;
  }

  .pexb-view-all-btn{
    width:100%;
  }

  .pexb-single-image-wrap,
  .pexb-single-image-wrap img{
    min-height:340px;
    border-radius:24px;
  }

  .pexb-single-hero-content{
    padding:18px;
  }

  .pexb-single-title{
    font-size:34px;
  }

  .pexb-single-content-card{
    padding:18px;
    border-radius:22px;
  }

  .pexb-single-content p:first-child{
    font-size:18px;
  }

  .pexb-source-logo-chip{
    width:46px;
    height:32px;
  }

  .pexb-source-logo-chip img{
    max-width:24px;
    max-height:20px;
  }
}