.cz-materials-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 24px 0;
}

.cz-material-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow: hidden;
}

.cz-material-image {
    aspect-ratio: 16 / 9;
    background: transparent;
    display: block;
    overflow: hidden;
}

.cz-material-image img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.cz-material-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 24px;
}

.cz-material-title {
    font-size: 1.15rem;
    line-height: 1.3;
    margin: 0 0 12px;
}

.cz-material-title a {
    color: #111827;
    text-decoration: none;
}

.cz-material-title a:hover,
.cz-material-title a:focus {
    color: #2563eb;
}

.cz-material-description {
    color: #4b5563;
    font-size: 0.96rem;
    line-height: 1.55;
    margin: 0 0 16px;
}

.cz-material-meta {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin: 0 0 18px;
}

.cz-material-meta span {
    color: #374151;
    font-size: 0.86rem;
    line-height: 1.35;
}

.cz-material-meta strong {
    color: #111827;
}

.cz-material-button {
    align-self: flex-start;
    background: #2563eb;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 700;
    margin-top: auto;
    padding: 10px 16px;
    text-decoration: none;
}

.cz-material-button:hover,
.cz-material-button:focus {
    background: #1d4ed8;
    color: #ffffff;
}

.cz-empty-message {
    background: transparent;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    color: #374151;
    padding: 24px;
}

.cz-nav-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 24px 0;
}

.cz-nav-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    color: #111827;
    display: block;
    font-weight: 700;
    padding: 22px;
    text-align: center;
    text-decoration: none;
}

.cz-nav-card:hover,
.cz-nav-card:focus {
    border-color: #bfdbfe;
    color: #2563eb;
}

@media (max-width: 900px) {
    .cz-materials-grid,
    .cz-nav-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .cz-materials-grid,
    .cz-nav-grid {
        grid-template-columns: 1fr;
    }
}
