.worksheets-filter-wrapper {
display: flex;
gap: 15px;
flex-wrap: wrap;
align-items: flex-start;
}
.filter-sidebar {
width: 200px;
flex-shrink: 0;
}
.filter-sidebar label, 
.filter-sidebar a, 
.filter-sidebar span,
.filter-sidebar .filter-item {
font-size: 14px !important; 
font-weight: 500;
color: #586d96;
line-height: 2;
} .total-worksheets-count {
width: 100%;
text-align: center;
font-size: 18px;
font-weight: bold;
color: #333;
padding: 15px;
background-color: #e3f2fd;
border: 1px solid #0e76bc;
border-radius: 8px;
margin-bottom: 25px;
} .worksheets-grid {
flex: 1;
min-width: 0;
}
.worksheets-grid-container {
display: grid;
grid-template-columns: repeat(4, 1fr); 
gap: 15px;
margin-bottom: 30px;
}
.grid-item-worksheet {
background: #ffffff;
border: 1px solid #e0e0e0 !important;
border-radius: 8px;
display: flex;
flex-direction: column;
overflow: hidden;
height: 100%;
transition: box-shadow 0.3s ease;
}
.grid-item-worksheet .thumb {
background-color: #fcfcfc;
display: flex;
align-items: center;
justify-content: center;
height: 260px;
padding: 5px;
margin-bottom: 15px;
}
.grid-item-worksheet .thumb img {
max-width: 100%;
max-height: 100%;
width: auto !important;
height: auto !important;
object-fit: contain;
}
.grid-item-worksheet h4 {
font-size: 14px;
margin: 12px 8px;
font-family: 'Avenir Next Demi Bold', sans-serif !important;
color: #333;
min-height: 40px;
line-height: 1.3;
text-align: center;
} .worksheet-stats {
text-align: center;
margin-bottom: 12px;
}
.dl-count-text {
background: #fff3e0;
color: #e65100;
padding: 5px 14px;
border-radius: 20px;
font-size: 14px;
font-weight: bold;
border: 1px solid #ffcc80;
display: inline-flex;
align-items: center;
gap: 6px;
}
.worksheet-footer-bar {
display: flex;
justify-content: space-between;
align-items: center;
padding: 12px 10px;
background: #fafafa;
border-top: 1px solid #f0f0f0;
margin-top: auto;
gap: 8px;
}
.worksheet-grade-tag {
background-color: #586D96;
color: white;
padding: 6px 14px;
border-radius: 5px;
font-size: 13px;
font-weight: bold;
}
.worksheet-view-button {
background-color: #0e76bc;
color: white !important;
padding: 10px 20px;
font-size: 14px;
font-weight: bold;
border-radius: 8px;
text-decoration: none;
transition: background-color 0.3s ease, transform 0.2s ease;
display: inline-block;
}
.worksheet-view-button:hover {
background-color: #f1574e;
transform: translateY(-2px);
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
} .worksheets-pagination {
display: flex;
justify-content: center;
gap: 10px;
padding: 45px 0;
width: 100%;
clear: both;
border-top: 1px solid #eee;
}
.worksheets-pagination a, 
.worksheets-pagination .current {
padding: 5px 15px;
border: 1px solid #ddd;
border-radius: 6px;
font-size: 14px;
text-decoration: none;
color: #333;
transition: all 0.2s ease;
}
.worksheets-pagination .current {
background: #0e76bc;
color: #fff !important;
border-color: #0e76bc;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
} @media (max-width: 1200px) {
.worksheets-grid-container { grid-template-columns: repeat(4, 1fr) !important; }
}
@media (max-width: 992px) {
.worksheets-grid-container { grid-template-columns: repeat(3, 1fr) !important; }
} @media (max-width: 600px) { .worksheets-filter-wrapper { flex-direction: column; }
.filter-sidebar { width: 100%; margin-bottom: 20px; } .total-worksheets-count { font-size: 16px; padding: 15px; } .worksheets-grid-container { 
grid-template-columns: repeat(2, 1fr) !important; 
gap: 10px !important; 
}
.grid-item-worksheet .thumb { height: 160px; margin-bottom: 8px; } .dl-count-text { font-size: 12px; padding: 3px 10px; }
.dl-count-label { display: none; }  .worksheet-footer-bar {
flex-direction: row !important;
justify-content: space-between;
padding: 8px 5px;
gap: 5px;
}
.grid-item-worksheet h4 {
font-size: 14px !important;
margin: 12px 8px;
font-family: 'Avenir Next Demi Bold', sans-serif !important;
color: #333;
min-height: 40px;
line-height: 1.3;
text-align: center;
}
.worksheet-grade-tag, 
.worksheet-view-button {
padding: 6px 4px !important;
font-size: 10px !important; 
flex: 1; 
text-align: center;
white-space: nowrap;
min-width: 0;
} .worksheets-pagination { 
padding: 25px 0; 
gap: 5px; }
.worksheets-pagination a, 
.worksheets-pagination .current { 
padding: 6px 10px !important; font-size: 13px !important; border-radius: 4px;
}
} .worksheet-stats {
display: flex;
justify-content: center;
gap: 50px;
margin: 0 10px 12px 10px;
}
.stat-pill {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 5px;
padding: 5px 8px;
border-radius: 20px;
font-size: 12px;
font-weight: bold;
border: 1px solid transparent;
flex: 1; min-width: 0;
} .download-pill {
background: #fff3e0;
color: #e65100;
border: 1px solid #ffcc80;
} .view-pill {
background: #e8f5e9;
color: #2e7d32;
border: 1px solid #a5d6a7;
}
.stat-icon {
font-size: 14px;
}
.stat-value {
white-space: nowrap;
}
.stat-label {
font-weight: 500;
opacity: 0.9;
} @media (max-width: 600px) {
.worksheet-stats {
gap: 50px;
padding: 0 5px;
}
.stat-pill {
padding: 4px 5px;
font-size: 11px;
}
.stat-label {
display: none; }
}