.dre-library-page-wrap{
  padding:40px 24px 56px;
  background:#f7fafc;
}

.dre-library-page-inner{
  max-width:1320px;
  margin:0 auto;
}

.dre-library-header{
  margin:0 0 28px;
}

.dre-library-title{
  margin:0 0 10px;
  color:#4F535D;
  font-size:2.6rem;
  line-height:1.1;
  font-weight:700;
}

.dre-library-intro{
  max-width:760px;
  color:#4F535D;
  font-size:1rem;
  line-height:1.65;
}

.dre-library-intro > *:last-child{
  margin-bottom:0;
}

.dre-library-filters-section{
  margin:0 0 26px;
}

.dre-library-filters{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(180px, 1fr));
  gap:16px;
  align-items:end;
  padding:22px;
  background:#ffffff;
  border:1px solid #dbe4ea;
  border-radius:22px;
  box-shadow:0 10px 26px rgba(0,0,0,.04);
}

.dre-library-filter-group{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.dre-library-filter-group label{
  margin:0;
  font-size:.9rem;
  line-height:1.2;
  font-weight:700;
  color:#4F535D;
}

.dre-library-filter-group select{
  width:100%;
  min-height:48px;
  padding:0 16px;
  border:1px solid #cfd9df;
  border-radius:14px;
  background:#fff;
  color:#4F535D;
  font-size:.96rem;
  box-shadow:none;
}

.dre-library-filter-group select:focus{
  outline:none;
  border-color:#18a5dd;
  box-shadow:0 0 0 3px rgba(24,165,221,.12);
}

.dre-library-filter-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}

.dre-library-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:0 18px;
  border:none;
  border-radius:14px;
  text-decoration:none;
  font-weight:700;
  font-size:.96rem;
  line-height:1;
  cursor:pointer;
  transition:background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.dre-library-btn:hover{
  transform:translateY(-1px);
}

.dre-library-btn-primary{
  background:#18a5dd;
  color:#fff;
}

.dre-library-btn-primary:hover{
  background:#1293c7;
  color:#fff;
}

.dre-library-btn-secondary{
  background:#f3f6f8;
  color:#4F535D;
  border:1px solid #dbe4ea;
}

.dre-library-btn-secondary:hover{
  background:#eaf0f4;
  color:#4F535D;
}

.dre-library-results-summary{
  margin:0 0 20px;
  color:#4F535D;
  font-size:1rem;
  line-height:1.5;
}

.dre-library-results-summary p{
  margin:0;
}

.dre-library-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:24px;
}

.dre-library-card{
  display:flex;
}

.dre-library-card-inner{
  width:100%;
  display:flex;
  flex-direction:column;
  gap:18px;
  padding:24px;
  background:#fff;
  border:1px solid #dbe4ea;
  border-radius:24px;
  box-shadow:0 10px 26px rgba(0,0,0,.04);
}

.dre-library-card-top{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.dre-library-card-badge{
  display:inline-flex;
  align-self:flex-start;
  align-items:center;
  min-height:32px;
  padding:0 12px;
  border-radius:999px;
  background:#edf8fd;
  color:#18a5dd;
  font-size:.78rem;
  line-height:1;
  font-weight:700;
}

.dre-library-card-title{
  margin:0;
  font-size:1.45rem;
  line-height:1.28;
  font-weight:700;
}

.dre-library-card-title a{
  color:#4F535D;
  text-decoration:none;
}

.dre-library-card-title a:hover{
  color:#18a5dd;
}

.dre-library-card-meta{
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:16px 0;
  border-top:1px solid #eef3f6;
  border-bottom:1px solid #eef3f6;
}

.dre-library-card-meta-row{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:flex-start;
  font-size:.96rem;
  line-height:1.45;
}

.dre-library-meta-label{
  font-weight:700;
  color:#4F535D;
}

.dre-library-meta-value{
  color:#4F535D;
}

.dre-library-card-excerpt{
  color:#4F535D;
  font-size:.97rem;
  line-height:1.65;
  flex-grow:1;
}

.dre-library-card-excerpt p{
  margin:0 0 12px;
}

.dre-library-card-excerpt p:last-child{
  margin-bottom:0;
}

.dre-library-card-actions{
  margin-top:auto;
  padding-top:2px;
}

.dre-library-empty{
  padding:34px 28px;
  background:#fff;
  border:1px solid #dbe4ea;
  border-radius:24px;
  text-align:center;
  box-shadow:0 10px 26px rgba(0,0,0,.04);
}

.dre-library-empty h2{
  margin:0 0 10px;
  color:#4F535D;
}

.dre-library-empty p{
  margin:0 0 14px;
  color:#4F535D;
}

.dre-library-empty p:last-child{
  margin-bottom:0;
}

.dre-library-pagination{
  margin:34px 0 0;
}

.dre-library-pagination ul{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  list-style:none;
  padding:0;
  margin:0;
}

.dre-library-pagination a,
.dre-library-pagination span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:44px;
  min-height:44px;
  padding:0 14px;
  border:1px solid #dbe4ea;
  border-radius:12px;
  text-decoration:none;
  color:#4F535D;
  background:#fff;
  font-weight:600;
}

.dre-library-pagination a:hover{
  border-color:#18a5dd;
  color:#18a5dd;
}

.dre-library-pagination .current{
  background:#18a5dd;
  color:#fff;
  border-color:#18a5dd;
}

@media (max-width: 1100px){
  .dre-library-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px){
  .dre-library-page-wrap{
    padding:28px 16px 40px;
  }

  .dre-library-title{
    font-size:2.1rem;
  }

  .dre-library-filters{
    grid-template-columns:1fr;
    padding:18px;
  }

  .dre-library-filter-actions{
    flex-direction:column;
    align-items:stretch;
  }

  .dre-library-btn{
    width:100%;
  }

  .dre-library-grid{
    grid-template-columns:1fr;
    gap:18px;
  }

  .dre-library-card-inner{
    padding:20px;
    border-radius:20px;
  }
}

body.page-template-page-lesson-library .site-content > .ast-container{
  max-width:none;
  width:100%;
  padding-left:0;
  padding-right:0;
  display:block;
}