:root{
  --acpt-blue:#2147c6;
  --acpt-text:#1f2430;
  --acpt-muted:#6d7788;
  --acpt-bg:#f3f5fb;
  --acpt-card:#ffffff;
  --acpt-radius:24px;
  --acpt-shadow:0 16px 40px rgba(33,71,198,.10);
}

body.post-type-archive-anunturi,
body.tax-categorie_anunt,
body.single-anunturi{
  background:var(--acpt-bg);
}

.acpt-wrap{
  max-width:1280px;
  margin:0 auto;
  padding:34px 20px 72px;
}

.acpt-hero{
  margin:0 0 24px;
}

.acpt-kicker{
  color:var(--acpt-blue);
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.08em;
  margin-bottom:8px;
  font-size:12px;
}

.acpt-page-title,
.acpt-single-title{
  font-size:clamp(32px, 4.4vw, 52px);
  line-height:1.05;
  letter-spacing:-.03em;
  color:var(--acpt-text);
  margin:0 0 10px;
  font-weight:700;
}

.acpt-page-subtitle{
  margin:0;
  font-size:16px;
  line-height:1.7;
  color:var(--acpt-muted);
  max-width:820px;
}

.acpt-tabs{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin:0 0 22px;
  padding:12px;
  background:rgba(255,255,255,.7);
  border:1px solid rgba(33,71,198,.08);
  border-radius:20px;
  backdrop-filter:blur(8px);
}

.acpt-tab{
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:46px;
  padding:10px 16px;
  border-radius:14px;
  background:#fff;
  border:1px solid rgba(33,71,198,.08);
  color:var(--acpt-text);
  text-decoration:none;
  font-weight:700;
  box-shadow:0 6px 16px rgba(33,71,198,.05);
  transition:all .2s ease;
}

.acpt-tab:hover,
.acpt-tab.is-active{
  background:var(--acpt-blue);
  color:#fff;
  border-color:var(--acpt-blue);
}

.acpt-tab-count{
  min-width:24px;
  height:24px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  background:rgba(33,71,198,.08);
  color:var(--acpt-blue);
  font-size:12px;
  font-weight:700;
}

.acpt-tab:hover .acpt-tab-count,
.acpt-tab.is-active .acpt-tab-count{
  background:rgba(255,255,255,.18);
  color:#fff;
}

.acpt-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
  align-items:start;
}

.acpt-card{
  position:relative;
  display:flex;
  flex-direction:column;
  background:linear-gradient(180deg,#fff 0%,#f9fbff 100%);
  border-radius:var(--acpt-radius);
  padding:20px 20px 18px;
  box-shadow:var(--acpt-shadow);
  border:1px solid rgba(33,71,198,.08);
  overflow:hidden;
  min-height:220px;
  transition:transform .2s ease, box-shadow .2s ease;
}

.acpt-card:before{
  content:"";
  position:absolute;
  inset:0 auto auto 0;
  width:100%;
  height:4px;
  background:var(--acpt-blue);
}

.acpt-card:hover{
  transform:translateY(-4px);
  box-shadow:0 22px 48px rgba(33,71,198,.14);
}

.acpt-card-top{
  display:flex;
  flex-direction:column;
  gap:12px;
  margin-bottom:14px;
}

.acpt-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:max-content;
  max-width:100%;
  min-height:32px;
  padding:6px 12px;
  border-radius:999px;
  background:rgba(33,71,198,.08);
  color:var(--acpt-blue);
  font-size:12px;
  font-weight:700;
}

.acpt-meta,
.acpt-single-meta{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  color:var(--acpt-muted);
  font-size:13px;
}

.acpt-meta-item{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:#fff;
  border:1px solid rgba(33,71,198,.08);
  padding:6px 10px;
  border-radius:999px;
}

.acpt-title{
  font-size:22px;
  line-height:1.22;
  margin:0 0 10px;
  font-weight:700;
}

.acpt-title a{
  color:var(--acpt-text);
  text-decoration:none;
}

.acpt-title a:hover{
  color:var(--acpt-blue);
}

.acpt-excerpt{
  color:#364152;
  font-size:15px;
  line-height:1.65;
  margin-bottom:14px;
}

.acpt-excerpt p{
  margin:0;
}

.acpt-actions{
  margin-top:auto;
}

.acpt-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:10px 16px;
  border-radius:14px;
  background:#fff;
  color:var(--acpt-blue);
  font-weight:700;
  text-decoration:none;
  border:1px solid rgba(33,71,198,.12);
  box-shadow:0 8px 20px rgba(33,71,198,.06);
  transition:all .2s ease;
}

.acpt-button:hover{
  background:var(--acpt-blue);
  color:#fff;
  border-color:var(--acpt-blue);
}

.acpt-pagination{
  display:flex;
  gap:10px;
  justify-content:center;
  align-items:center;
  margin:24px 0 0;
  flex-wrap:wrap;
}

.acpt-pagination .page-numbers{
  min-width:42px;
  height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  background:#fff;
  color:var(--acpt-text);
  text-decoration:none;
  font-weight:700;
  border:1px solid rgba(33,71,198,.1);
  box-shadow:0 8px 20px rgba(33,71,198,.06);
}

.acpt-pagination .page-numbers.current,
.acpt-pagination .page-numbers:hover{
  background:var(--acpt-blue);
  color:#fff;
  border-color:var(--acpt-blue);
}

.acpt-empty{
  background:#fff;
  border-radius:var(--acpt-radius);
  padding:26px;
  box-shadow:var(--acpt-shadow);
  border:1px solid rgba(33,71,198,.08);
  color:var(--acpt-text);
  font-size:17px;
}

.acpt-single-wrap{
  max-width:980px;
}

.acpt-single{
  background:#fff;
  border-radius:var(--acpt-radius);
  padding:34px;
  box-shadow:var(--acpt-shadow);
  border:1px solid rgba(33,71,198,.08);
}

.acpt-single-top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:18px;
  flex-wrap:wrap;
  margin-bottom:14px;
}

.acpt-single-intro{
  font-size:20px;
  line-height:1.7;
  color:var(--acpt-muted);
  margin:0 0 22px;
  padding-left:18px;
  border-left:4px solid var(--acpt-blue);
}

.acpt-single-intro p:last-child{
  margin-bottom:0;
}

.acpt-single-content{
  font-size:18px;
  line-height:1.85;
  color:#2a3240;
}

.acpt-single-content > *:first-child{
  margin-top:0;
}

.acpt-single-content a{
  color:var(--acpt-blue);
}

.acpt-single-content img{
  max-width:100%;
  height:auto;
  border-radius:18px;
}

.acpt-single-footer{
  margin-top:30px;
  padding-top:24px;
  border-top:1px solid rgba(33,71,198,.08);
}

@media (max-width: 1100px){
  .acpt-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width: 767px){
  .acpt-wrap{
    padding:28px 16px 60px;
  }
  .acpt-tabs{
    padding:10px;
    gap:8px;
  }
  .acpt-tab{
    width:100%;
    justify-content:space-between;
  }
  .acpt-grid{
    grid-template-columns:1fr;
    gap:14px;
  }
  .acpt-card{
    min-height:auto;
    padding:18px 16px 16px;
  }
  .acpt-title{
    font-size:20px;
  }
  .acpt-single{
    padding:24px 18px;
  }
  .acpt-page-subtitle,
  .acpt-single-intro,
  .acpt-single-content{
    font-size:16px;
  }
}

/* Shortcode grids */
.acpt-shortcode-grid.acpt-cols-1{
  grid-template-columns:1fr;
}

.acpt-shortcode-grid.acpt-cols-2{
  grid-template-columns:repeat(2,minmax(0,1fr));
}

.acpt-shortcode-grid.acpt-cols-3{
  grid-template-columns:repeat(3,minmax(0,1fr));
}

.acpt-shortcode-grid.acpt-cols-4{
  grid-template-columns:repeat(4,minmax(0,1fr));
}

@media (max-width: 1100px){
  .acpt-shortcode-grid.acpt-cols-3,
  .acpt-shortcode-grid.acpt-cols-4{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width: 767px){
  .acpt-shortcode-grid.acpt-cols-2,
  .acpt-shortcode-grid.acpt-cols-3,
  .acpt-shortcode-grid.acpt-cols-4{
    grid-template-columns:1fr;
  }
}
