:root{--primary-green:#275d46;--dark-green:#022b22;--light-green:#569578;--gray-light:#f8f9fa;--gray-medium:#e9ecef;--text-primary:#212529;--text-secondary:#6c757d}
.filter-section{background:#fff;padding:30px 0;box-shadow:0 2px 4px rgba(0,0,0,.06)}
.search-container{max-width:600px;margin:0 auto 25px;position:relative}
.search-input{width:100%;padding:15px 50px 15px 20px;border:2px solid var(--gray-medium);border-radius:8px;font-size:1rem}
.search-button{position:absolute;right:5px;top:50%;transform:translateY(-50%);background:var(--primary-green);border:none;padding:10px 20px;border-radius:6px;color:#fff;cursor:pointer}
.category-tabs{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-bottom:20px}
.tab-button{padding:10px 24px;background:#fff;border:2px solid var(--gray-medium);border-radius:25px;color:var(--text-secondary);cursor:pointer}
.tab-button.active{background:var(--primary-green);color:#fff;border-color:var(--primary-green)}
.sort-container{display:flex;align-items:center;justify-content:center;gap:10px}
.main-content{padding:60px 0}
.resource-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:30px;margin-bottom:60px}
.resource-card{background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 2px 4px rgba(0,0,0,.06);transition:.3s;display:flex;flex-direction:column}
.resource-card:hover{transform:translateY(-5px);box-shadow:0 10px 40px rgba(0,0,0,.15)}
.card-thumbnail{position:relative;height:200px;background:linear-gradient(135deg,var(--gray-light),var(--gray-medium));display:flex;align-items:center;justify-content:center}
.resource-type-badge{position:absolute;top:15px;left:15px;background:var(--primary-green);color:#fff;padding:5px 12px;border-radius:20px;font-size:.8rem;font-weight:700}
.card-content{padding:25px;flex:1;display:flex;flex-direction:column}
.card-title{font-size:1.1rem;font-weight:700;color:var(--text-primary);margin-bottom:12px;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.card-description{color:var(--text-secondary);font-size:.9rem;line-height:1.6;margin-bottom:20px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;flex:1}
.card-meta{display:flex;gap:15px;margin-bottom:20px;padding-bottom:20px;border-bottom:1px solid var(--gray-medium);flex-wrap:wrap;color:var(--text-secondary);font-size:.85rem}
.card-cta{display:block;width:100%;padding:12px;background:var(--primary-green);color:#fff;text-align:center;border:none;border-radius:6px;font-weight:700;cursor:pointer}
.load-more-container{text-align:center;margin-top:60px}
.load-more-button{padding:15px 50px;background:#fff;color:var(--primary-green);border:2px solid var(--primary-green);border-radius:8px;font-weight:700}
.modal-overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,.7);z-index:1000}
.modal-overlay.active{display:flex;align-items:center;justify-content:center;padding:20px}
.download-modal{background:#fff;border-radius:16px;max-width:900px;width:100%;max-height:90vh;overflow:auto;position:relative}
.modal-close{position:absolute;top:20px;right:20px;width:40px;height:40px;background:var(--gray-light);border:none;border-radius:50%;cursor:pointer}
.modal-content{display:grid;grid-template-columns:1fr 1fr;min-height:500px}
.modal-info{padding:50px;background:var(--gray-light)}
.modal-form{padding:50px}
.modal-badge{display:inline-block;background:var(--primary-green);color:#fff;padding:6px 15px;border-radius:20px;font-size:.85rem;font-weight:700;margin-bottom:20px}
.modal-title{font-size:1.6rem;font-weight:700;margin-bottom:15px}
.modal-description{color:var(--text-secondary);margin-bottom:20px}
.modal-details{background:#fff;padding:20px;border-radius:8px;margin-bottom:20px}
.detail-row{display:flex;justify-content:space-between;padding:10px 0;border-bottom:1px solid var(--gray-medium)}
.detail-row:last-child{border-bottom:none}
.modal-preview{width:100%;height:200px;background:#fff;border:1px solid var(--gray-medium);border-radius:8px;display:flex;align-items:center;justify-content:center;color:var(--text-secondary);margin-top:20px}
.form-title{font-size:1.2rem;font-weight:700;margin-bottom:10px}
.form-subtitle{color:var(--text-secondary);font-size:.9rem;margin-bottom:20px}
.form-group{margin-bottom:20px}
.form-label{display:block;margin-bottom:8px;font-weight:600}
.required{color:#dc3545;margin-left:4px}
.form-input{width:100%;padding:12px 15px;border:2px solid var(--gray-medium);border-radius:6px}
.checkbox-group{display:flex;align-items:flex-start;gap:10px;margin-bottom:15px}
.checkbox-input{width:20px;height:20px;margin-top:2px}
.checkbox-label{flex:1;color:var(--text-secondary);font-size:.9rem}
.submit-button{width:100%;padding:15px;background:var(--primary-green);color:#fff;border:none;border-radius:8px;font-size:1.05rem;font-weight:700}
.success-message{display:none;padding:40px 20px;text-align:center}
.success-message.active{display:block}
.success-icon{width:80px;height:80px;background:var(--light-green);border-radius:50%;display:flex;align-items:center;justify-content:center;margin:0 auto 20px;color:#fff;font-size:40px}
@media (max-width:768px){.modal-content{grid-template-columns:1fr}.modal-info,.modal-form{padding:30px 20px}}

/* Document page specific spacing adjustments */
body.page-template-page-document .page-header { margin-bottom: 48px; }

@media (max-width: 768px) {
  body.page-template-page-document .page-header { margin-bottom: 32px; }
}


